@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-italic-200-1000-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-italic-200-1000-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-italic-200-1000-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-italic-200-1000-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-italic-200-1000-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-normal-200-1000-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-normal-200-1000-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-normal-200-1000-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-normal-200-1000-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-normal-200-1000-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/zain-normal-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/zain-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/zain-normal-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Zain';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/zain-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root { --font-ui:'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-heading:'Zain', 'Nunito', sans-serif; }
body { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  color: var(--theme-fg);
  text-decoration: none;
  font: 700 20px/1.1 var(--font-ui);
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand img { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.brand:hover { color: var(--theme-fg); }
.workspaceIdentity { display: flex; align-items: center; min-width: 0; gap: 16px; }
.organizationLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 210px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--theme-line);
  border-radius: 8px;
  background: var(--theme-panel);
  color: var(--theme-fg);
  text-decoration: none;
  font: 500 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.organizationLink span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organizationLink::after { content: ''; width: 5px; height: 5px; flex-shrink: 0; border: solid var(--theme-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.organizationLink:hover { color: var(--theme-fg); border-color: var(--theme-edge); background: var(--theme-hover); }
.mobileOrganization { padding: 6px 3px 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.adminMode {
  min-height: 36px; max-width: 100%; padding: 6px 28px 6px 10px;
  border: 1px solid var(--theme-edge); border-radius: 8px; background-color: var(--theme-panel2);
  color: var(--theme-fg); font: 500 13px/1.4 var(--font-ui); cursor: pointer;
}
.adminMode:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.mobileMenu .adminModeMount { padding: 0 12px 12px; }
.mobileMenu .adminMode { width: 100%; min-height: 44px; font-size: 16px; }
.app-header .adminMode { min-height: 44px; }
@media (max-width: 700px) {
  .app-header .adminMode { width: 142px; font-size: 14px; }
}

.signOutDialog {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 24px; border: 1px solid var(--theme-edge); border-radius: 16px;
  background: var(--theme-panel); color: var(--theme-fg); box-shadow: 0 24px 80px var(--theme-scrim); overflow-y: auto;
}
.signOutDialog::backdrop { background: var(--theme-scrim); }
.signOutDialog h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.signOutDialog p { color: var(--theme-muted); line-height: 1.6; }
.signOutDialog .signOutError { color: var(--theme-bad); }
.signOutError:empty { display: none; }
.signOutActions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.signOutActions button { min-height: 44px; padding: 9px 14px; font: 500 14px/1.4 var(--font-ui); border: 1px solid var(--theme-edge); border-radius: 8px; background: var(--theme-panel2); color: var(--theme-fg); }
.signOutActions [data-sign-out] { background: var(--theme-badTint); border-color: var(--theme-bad); color: var(--theme-bad); }
.signOutActions [data-sign-out]:hover { background: var(--theme-badTint); }

.contextHelp { color: var(--theme-muted); font-size: 13px; text-underline-offset: 3px; }
.contextHelp:hover { color: var(--theme-fg); }
.boardHelp { color: var(--muted); min-height: 36px; min-width: 36px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.mobileHelp,.mobileAppearance,.mobileDeviceNotifications { display: flex; align-items: center; min-height: 44px; padding: 12px; color: var(--fg); text-decoration: none; }
.mobileHelp:hover,.mobileAppearance:hover,.mobileDeviceNotifications:hover { background: var(--panel2); }
.boardHelp { display: inline-flex; align-items: center; justify-content: center; }
