/* ════════════════════════════════════════════════════════════════
   بۆردی وەرزشی — شێوەی ڕووکار (پارچەکان)
   ڕەنگەکان هەموویان لە themes.css ـەوە دێن (شەش ستایل × ڕووناک/تاریک).
   هەموو شوێنەکان بە خاسیەتی «لۆجیکی» نووسراون، بۆیە بۆ کوردی و عەرەبی (ڕاست بۆ چەپ)
   و ئینگلیزی (چەپ بۆ ڕاست) یەکسان کار دەکەن.
   ════════════════════════════════════════════════════════════════ */

/* ───── بنەڕەت ───── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font, 'Zain'), 'Zain', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-static, var(--bg));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
html[lang="en"] body { line-height: 1.6; }
main { flex: 1; outline: none; position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.3; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 24px; } }

.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.bic { width: 1.4em; height: 1.4em; flex: none; fill: currentColor; }
/* ئایکۆنی ئاڕاستەدار: تیری «پێشەوە» لە ئینگلیزیدا و تیری «دواوە» لە کوردی/عەرەبیدا هەڵدەگەڕێتەوە */
html[dir="ltr"] .ic-flip, html[dir="ltr"] .ic-fwd { transform: scaleX(-1); }
html[dir="rtl"] .ic-back { transform: scaleX(-1); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; z-index: 100; inset-inline-start: 12px; top: -60px;
  padding: 10px 16px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--border-strong); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ───── شریتی سەرەوە ───── */

.demo-banner, .net-banner {
  position: relative; z-index: 31;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px; font-size: .95rem; line-height: 1.5; text-align: center;
  background: var(--t-amber-bg); color: var(--t-amber-fg);
}
.net-banner { background: var(--t-red-bg); color: var(--t-red-fg); }
.net-banner.ok { background: var(--t-green-bg); color: var(--t-green-fg); }
@media (max-width: 640px) { .demo-banner, .net-banner { font-size: .85rem; padding: 6px 12px; } }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--glass-border, var(--border));
}
.topbar-in { display: flex; align-items: center; gap: 10px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin-inline-end: auto; color: inherit; text-decoration: none; }
.brand img { width: 46px; height: 46px; flex: none; border-radius: 50%; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .18)); }
.brand-text { min-width: 0; }
.brand b { display: block; font-size: 1.3rem; font-weight: 900; line-height: 1.1; }
.brand small { display: block; overflow: hidden; color: var(--muted); font-size: .88rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; color: var(--text-2); text-decoration: none;
  font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-3); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
.nav-link .lang-code { font-size: .85rem; font-weight: 900; letter-spacing: .02em; }
@media (max-width: 760px) {
  .nav-link span:not(.lang-code) { display: none; }
  .nav-link { padding: 0 10px; }
  .nav-link .ic { width: 22px; height: 22px; }
  .brand small { display: none; }
}
@media (max-width: 400px) { .brand b { font-size: 1.1rem; } .brand img { width: 40px; height: 40px; } }

/* ───── لیستی کورت (مینیو) ───── */

.menu-wrap { position: relative; }
.menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transform-origin: top;
  animation: menu-in .16s ease-out;
}
.menu.start { inset-inline-end: auto; inset-inline-start: 0; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--text); font-size: 1rem; font-weight: 700; text-align: start; text-decoration: none; cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); outline: none; }
.menu-item .ic { color: var(--muted); }
.menu-item small { margin-inline-start: auto; color: var(--muted); font-weight: 400; font-size: .85rem; }
.menu-item.on { color: var(--primary); }
.menu-item.on .ic { color: var(--primary); }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--border); }

/* ───── پێپەڕە ───── */

.foot { position: relative; z-index: 1; border-top: 1px solid var(--glass-border, var(--border)); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px 0; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 50%; }

/* ───── دوگمەکان ───── */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1.05rem; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .08s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--glow); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover:not(:disabled) { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn-icon { width: 46px; padding: 0; }
.btn-sm { height: 38px; padding: 0 12px; font-size: .95rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 22px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn .short { display: none; }
.icon-btn {
  position: relative; overflow: hidden;
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .ic { width: 22px; height: 22px; }

.spinner {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2.5px solid currentColor; border-inline-end-color: transparent;
  animation: spin .7s linear infinite;
}
.spinning .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───── لاپەڕەی سەرەکی ───── */

.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: var(--hero-bg); isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--hero-accent), transparent); opacity: .7;
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 48px 56px; }
.hero-eyebrow { margin: 0; color: var(--hero-accent); font-size: 1.05rem; font-weight: 700; }
.hero-title { margin: 4px 0 2px; font-size: clamp(2.7rem, 8vw, 4.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.hero-org { margin: 0 0 12px; font-size: clamp(1.1rem, 2.6vw, 1.4rem); font-weight: 700; color: var(--hero-ink); opacity: .92; }
.hero-lead { margin: 0; max-width: 620px; color: var(--hero-muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stats > div {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--hero-ink) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 16%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-stats b { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.hero-stats span { font-size: .95rem; color: var(--hero-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-art { display: grid; place-items: center; }
.hero-logo { width: 220px; height: 220px; border-radius: 50%; }
.logo-halo { position: relative; display: inline-grid; place-items: center; border-radius: 50%; }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 30px 36px; gap: 18px; }
  .hero-art { order: -1; justify-items: start; }
  .hero-logo { width: 116px; height: 116px; }
}

.page { padding-block: 28px 80px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-size: 1.55rem; font-weight: 900; }
.block-head .muted { font-size: .97rem; }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.sec-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 18px;
  background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.sec-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.sec-card::after {
  content: ''; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%);
  transition: transform .5s;
}
html[dir="ltr"] .sec-card::after { inset: auto auto -60% -30%; }
.sec-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.sec-card:hover::after { transform: scale(1.25); }
.sec-card-ic {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px;
  border-radius: 18px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c-ink, var(--c));
}
.sec-card-ic .bic { width: 44px; height: 44px; }
.sec-card-no { position: absolute; top: 18px; inset-inline-end: 20px; font-size: .95rem; font-weight: 900; color: var(--border-strong); }
.sec-card h3 { margin: 0; font-size: 1.45rem; font-weight: 900; }
.sec-card p { flex: 1; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.sec-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .97rem;
}
.state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.state.open { color: var(--t-green-fg); font-weight: 700; }
.go { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: var(--c-ink, var(--c)); }
.go .ic { transition: transform .2s; }
.sec-card:hover .go .ic { transform: translateX(-4px); }
html[dir="ltr"] .sec-card:hover .go .ic { transform: scaleX(-1) translateX(-4px); }

.home-duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .home-duo { grid-template-columns: minmax(0, 1fr); } }
.admin-card {
  --c: var(--admin);
  background: linear-gradient(140deg, #24364a, #101a25); border-color: transparent; color: #fff;
}
.admin-card::before { background: var(--accent); }
.admin-card .sec-card-ic { background: rgb(255 255 255 / .1); color: #f3d892; }
.admin-card .sec-card-ic .ic { width: 32px; height: 32px; }
.admin-card p, .admin-card .state { color: rgb(255 255 255 / .74); }
.admin-card .state.open { color: #8ee0b2; }
.admin-card .go { color: #f3d892; }
.admin-card .sec-card-foot { border-top-color: rgb(255 255 255 / .16); }
.style-card { --c: var(--primary); }
.style-dots { display: flex; gap: 8px; margin: 6px 0 2px; }
.style-dots i {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border);
}

/* ───── سەرپەڕەی بەش ───── */

.sec-hero {
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--bg)), color-mix(in srgb, var(--bg) 75%, transparent));
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; font-size: .95rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-ink, var(--c)); }
.sec-hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 0 16px; }
.sec-hero-ic {
  display: grid; place-items: center; width: 70px; height: 70px; flex: none;
  border-radius: 20px; background: var(--c); color: #fff;
  box-shadow: 0 12px 26px -12px var(--c);
}
.sec-hero-ic .bic { width: 48px; height: 48px; }
.sec-hero-ic .ic { width: 34px; height: 34px; }
.sec-hero-text { flex: 1; min-width: 220px; }
.sec-hero h1 { margin: 0; font-size: clamp(1.75rem, 4.6vw, 2.4rem); font-weight: 900; }
.sec-hero-text p { margin: 2px 0 0; color: var(--muted); font-size: 1.05rem; }
.role-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: .95rem; font-weight: 700;
}

.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 14px 13px; border-radius: 12px 12px 0 0;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tab.active { color: var(--c-ink, var(--c)); }
/* هێڵی ژێر تابی چالاک — ئەگەر motion.js هەبێت .tab-ink دەجوڵێت، ئەگەر نا ئەم هێڵە نیشان دەدرێت */
.tabs:not(.has-ink) .tab.active { box-shadow: inset 0 -3px 0 var(--c); }
.tab-count {
  display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 7px;
  border-radius: 999px; background: var(--surface-3); color: var(--text-2);
  font-size: .85rem; font-weight: 900; line-height: 1;
}
.tab-count:empty { display: none; }
.tab.active .tab-count { background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c-ink, var(--c)); }

/* ───── پانێڵ و ئامرازەکان ───── */

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel.pad { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.25rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.panel-head .ic { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.search {
  flex: 1 1 240px; display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); cursor: text;
}
.search:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: var(--focus); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1.05rem; color: var(--text); }
.search kbd {
  padding: 1px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
  font-family: inherit; font-size: .8rem; color: var(--muted); background: var(--surface);
}
@media (max-width: 760px) { .search kbd { display: none; } }
.filter, .field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889890' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px;
}
html[dir="rtl"] :is(.filter, .field select) { background-position: left 12px center; padding-left: 38px; }
html[dir="ltr"] :is(.filter, .field select) { background-position: right 12px center; padding-right: 38px; }
.filter {
  height: 46px; padding-inline-start: 14px; max-width: 100%;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background-color: var(--surface-2); font-size: 1rem; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.filter:focus { outline: 0; border-color: var(--primary); box-shadow: var(--focus); }
.filter.on { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); color: var(--primary); background-color: var(--primary-soft); }
.toolbar-end { display: flex; gap: 8px; margin-inline-start: auto; }

/* ───── خشتە ───── */

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  padding: 11px 14px; text-align: start; white-space: nowrap;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: .93rem; font-weight: 900;
  cursor: pointer; user-select: none;
}
.tbl th:hover { color: var(--text); }
.tbl th.sorted { color: var(--primary); }
.sort-ic { font-style: normal; }
.tbl th.sorted.asc .sort-ic::after { content: '▲'; font-size: 10px; margin-inline-start: 5px; }
.tbl th.sorted.desc .sort-ic::after { content: '▼'; font-size: 10px; margin-inline-start: 5px; }
.tbl th.col-act { cursor: default; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background-color .12s; }
.tbl tbody tr:hover, .tbl tbody tr:focus-visible { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); outline: none; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.flash { animation: row-flash 1.6s ease-out; }
@keyframes row-flash { 0%, 30% { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); } }
.col-id { width: 64px; color: var(--muted); font-size: .93rem; }
.col-act { width: 52px; text-align: center; color: var(--muted); }
.row-edit { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.tbl tbody tr:hover .row-edit { background: var(--primary-soft); color: var(--primary); }
.title { font-weight: 900; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 340px; }
.unit { color: var(--muted); font-size: .85em; }
.tel { color: inherit; text-decoration: none; }
.tel:hover, .link:hover { color: var(--primary); text-decoration: underline; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }
.tag { color: var(--text-2); }
.files-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: .9rem; font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--tb, var(--t-gray-bg)); color: var(--tf, var(--t-gray-fg));
  font-size: .93rem; font-weight: 900; line-height: 1.5;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.t-green  { --tb: var(--t-green-bg);  --tf: var(--t-green-fg); }
.t-blue   { --tb: var(--t-blue-bg);   --tf: var(--t-blue-fg); }
.t-amber  { --tb: var(--t-amber-bg);  --tf: var(--t-amber-fg); }
.t-red    { --tb: var(--t-red-bg);    --tf: var(--t-red-fg); }
.t-gray   { --tb: var(--t-gray-bg);   --tf: var(--t-gray-fg); }
.t-gold   { --tb: var(--t-gold-bg);   --tf: var(--t-gold-fg); }
.t-silver { --tb: var(--t-silver-bg); --tf: var(--t-silver-fg); }
.t-bronze { --tb: var(--t-bronze-bg); --tf: var(--t-bronze-fg); }

.prog { display: inline-flex; align-items: center; gap: 8px; min-width: 130px; }
.prog-bar { flex: 1; min-width: 70px; height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.prog-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.prog b { min-width: 40px; font-size: .9rem; color: var(--text-2); }

.list-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--border); font-size: .97rem;
}
.print-head { display: none; }

.empty { padding: 56px 20px; text-align: center; }
.empty-ic {
  display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 12px;
  border-radius: 22px; background: var(--primary-soft); color: var(--primary);
}
.empty-ic .ic { width: 36px; height: 36px; }
.empty-ic.danger { background: var(--danger-soft); color: var(--danger); }
.empty h3 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 900; }
.empty p { margin: 0 auto 18px; max-width: 460px; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.skel { display: grid; gap: 10px; padding: 16px; }
.skel i, .skel-line, .skel-box {
  display: block; height: 46px; border-radius: 10px; list-style: none;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skel-line { margin-bottom: 10px; }
.skel-box { min-height: 96px; border: 0 !important; }
.skel-box.tall { min-height: 220px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.fab {
  position: fixed; z-index: 20; overflow: hidden;
  display: none; place-items: center;
  inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 62px; height: 62px; border: 0; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); cursor: pointer;
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
html[dir="rtl"] .fab { inset-inline-end: auto; inset-inline-start: 18px; }
.fab .ic { width: 30px; height: 30px; stroke-width: 2.2; }

/* مۆبایل: خشتە دەبێتە کارت */
@media (max-width: 760px) {
  .toolbar { padding: 12px; }
  .search { flex-basis: 100%; }
  .filter { flex: 1 1 140px; }
  .toolbar-end { margin-inline-start: 0; flex-wrap: wrap; }
  .toolbar-end .add-btn { display: none; }
  .toolbar-end > .btn, .toolbar-end > .menu-wrap > .btn { width: 46px; padding: 0; }
  .toolbar-end .btn span:not(.spinner) { display: none; }
  .fab { display: grid; }
  .page { padding-bottom: 110px; }

  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tbody { display: grid; gap: 10px; padding: 12px; }
  .tbl tbody tr {
    position: relative; display: flex; flex-direction: column;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  }
  .tbl td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 5px 0; border: 0; font-size: 1.02rem; text-align: end;
  }
  .tbl td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .9rem; text-align: start; }
  .tbl td.col-title { order: -1; display: block; padding: 0 0 8px; padding-inline-end: 54px; margin-bottom: 4px; border-bottom: 1px dashed var(--border); font-size: 1.2rem; text-align: start; }
  .tbl td.col-title::before, .tbl td.col-id::before { display: none; }
  .tbl td.col-id { position: absolute; top: 13px; inset-inline-end: 14px; width: auto; padding: 0; font-size: .87rem; }
  .tbl td.col-act { display: none; }
  .clip { max-width: 65%; }
  .prog { min-width: 150px; }
}

/* ───── پوختەی بەش ───── */

.ov-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
a.kpi:hover { border-color: color-mix(in srgb, var(--c, var(--primary)) 45%, var(--border)); box-shadow: var(--shadow); }
.kpi > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.kpi > span .ic { color: var(--c-ink, var(--primary)); }
.kpi b { display: block; margin-top: 2px; font-size: 2.2rem; font-weight: 900; line-height: 1.2; }
.kpi b.small { font-size: 1.25rem; padding-top: 8px; }
.kpi small { color: var(--muted); font-size: .88rem; }
.kpi.alert b { color: var(--danger); }
.kpi.wide-err { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--danger); font-weight: 700; }

.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.chart-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.chart-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; font-weight: 900; }
.chart-card h3 .ic { color: var(--muted); }
.chart-box { min-height: 180px; }
.span-2 { grid-column: 1 / -1; }

.agenda { margin: 0; padding: 0; list-style: none; }
.agenda li { border-bottom: 1px solid var(--border); }
.agenda li:last-child { border-bottom: 0; }
.agenda a, .agenda button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px;
  border: 0; background: none; color: inherit; text-align: start; text-decoration: none; cursor: pointer;
}
.agenda a:hover .ag-title, .agenda button:hover .ag-title { color: var(--primary); }
.ag-date {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.05;
}
.ag-date b { font-size: 1.25rem; font-weight: 900; }
.ag-date small { font-size: .75rem; color: var(--muted); }
.ag-date.late { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.ag-date.late small { color: inherit; }
.ag-body { flex: 1; min-width: 0; }
.ag-title { display: block; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ag-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .88rem; }
.ag-when.late { color: var(--danger); font-weight: 700; }

/* ───── پەنجەرەی فۆرم ───── */

dialog { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; overflow: visible; }
dialog::backdrop { background: var(--overlay, rgb(8 14 11 / .55)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#modal { width: min(820px, calc(100% - 32px)); margin: auto; }
#modal:has(.sheet-sm) { width: min(540px, calc(100% - 32px)); }
#modal:has(.sheet-lg) { width: min(1000px, calc(100% - 32px)); }
.sheet {
  display: flex; flex-direction: column; overflow: hidden;
  max-height: min(92vh, 960px); max-height: min(92dvh, 960px);
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg);
}
dialog[open] .sheet, dialog[open] .confirm { animation: pop .28s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
dialog[open]::backdrop { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } }
html[data-motion="off"] dialog[open] .sheet, html[data-motion="off"] dialog[open] .confirm, html[data-motion="off"] dialog[open]::backdrop { animation: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sheet-ic {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 14px; background: color-mix(in srgb, var(--c, var(--primary)) 14%, var(--surface)); color: var(--c-ink, var(--c, var(--primary)));
}
.sheet-ic .ic { width: 24px; height: 24px; }
.sheet-ic .bic { width: 32px; height: 32px; }
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { margin: 0; font-size: 1.4rem; font-weight: 900; }
.sheet-title p { margin: 0; font-size: .95rem; color: var(--muted); }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface-2); }
.sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grow { flex: 1; }
.form-error { margin: 0 0 10px; color: var(--danger); font-size: .97rem; font-weight: 700; }
.form-error:empty { display: none; }
.form-error.ok { color: var(--t-green-fg); }

@media (max-width: 640px) {
  #modal, #modal:has(.sheet-sm), #modal:has(.sheet-lg) { width: 100%; margin: auto 0 0; }
  .sheet { border-radius: 24px 24px 0 0; max-height: 94vh; max-height: 94dvh; border-bottom: 0; }
  .sheet-body { padding: 16px; }
  .sheet-head { padding: 14px 16px; }
  .sheet-foot { padding-inline: 16px; }
  .sheet-actions { flex-wrap: nowrap; }
  .sheet-actions .grow, .sheet-actions .hide-sm { display: none; }
  .sheet-actions .btn { flex: 1 1 0; min-width: 0; height: 52px; padding: 0 12px; }
  .sheet-actions .btn-primary { flex-grow: 1.6; order: 9; }
  .sheet-actions .btn-icon-sm { flex: 0 0 52px; padding: 0; }
  .sheet-actions .btn-icon-sm span:not(.spinner) { display: none; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
}

/* ───── خانەکانی فۆرم ───── */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 1rem; font-weight: 900; color: var(--text-2); }
.req { margin-inline-start: 4px; color: var(--danger); font-style: normal; }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background-color: var(--surface); font-size: 1.1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select { cursor: pointer; }
.field textarea { height: auto; min-height: 100px; padding: 11px 14px; line-height: 1.6; resize: vertical; }
html[dir="rtl"] .field input[dir=ltr] { text-align: right; }
.field :is(input, select, textarea):focus { outline: 0; border-color: var(--primary); box-shadow: var(--focus); }
.field :is(input, textarea)::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field.invalid :is(input, select, textarea) { border-color: var(--danger); }
.field.invalid .pills .pill span { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.field .err { color: var(--danger); font-size: .9rem; font-weight: 700; }
.field .err:empty { display: none; }
.field .warn { display: flex; align-items: center; gap: 6px; color: var(--t-amber-fg); font-size: .9rem; font-weight: 700; }
.field .warn:empty { display: none; }
.hint { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.affix { position: relative; }
.affix > span { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); color: var(--muted); font-size: .95rem; font-weight: 700; pointer-events: none; }
.field .affix.has-unit input { padding-inline-end: 52px; }

.date-wrap { display: flex; gap: 8px; }
.date-wrap input { flex: 1; min-width: 0; }
.mini {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 50px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-2); font-size: .97rem; font-weight: 700; cursor: pointer;
}
.mini:hover { border-color: var(--border-strong); background: var(--surface-3); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; height: 46px; padding: 0 17px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text-2); font-size: 1.05rem; font-weight: 700; transition: all .15s;
}
.pill:hover span { border-color: var(--border-strong); }
.pill input:checked + span { background: var(--tb, var(--primary-soft)); color: var(--tf, var(--primary)); border-color: currentColor; }
.pill input:focus-visible + span { box-shadow: var(--focus); }

.meta-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--border);
  color: var(--muted); font-size: .9rem;
}
.meta-line .sep { opacity: .6; }

/* هاوپێچ */
.dropzone {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  min-height: 74px; padding: 14px; text-align: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font-weight: 700; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.dropzone .ic { width: 26px; height: 26px; }
.file-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.file-chip.busy { opacity: .75; }
.file-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--surface-3); color: var(--text-2); overflow: hidden; }
.file-ic img { width: 100%; height: 100%; object-fit: cover; }
.file-name { flex: 1; min-width: 0; }
.file-name b { display: block; overflow: hidden; font-size: .97rem; white-space: nowrap; text-overflow: ellipsis; direction: auto; }
.file-name small { color: var(--muted); font-size: .82rem; }

/* ───── هێنانی ئێکسڵ ───── */

.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); }
.steps span.on { background: var(--primary); }
.map-table { width: 100%; border-collapse: collapse; }
.map-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.map-table td:first-child { font-weight: 700; width: 40%; overflow-wrap: anywhere; }
.map-table select { width: 100%; height: 44px; border: 1.5px solid var(--border); border-radius: 10px; background-color: var(--surface); padding-inline-start: 10px; }
.preview-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; }
.preview { border-collapse: collapse; font-size: .9rem; min-width: 100%; }
.preview th, .preview td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: start; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.preview th { background: var(--surface-2); color: var(--muted); }
.preview tr.bad td { color: var(--danger); }
.import-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.progress-line { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s; }

/* ───── دڵنیاکردنەوە ───── */

#confirm { width: min(440px, calc(100% - 32px)); margin: auto; }
.confirm { padding: 26px 24px 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); }
.confirm-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.confirm-ic.danger { background: var(--danger-soft); color: var(--danger); }
.confirm-ic .ic { width: 28px; height: 28px; }
.confirm h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 900; }
.confirm p { margin: 0 0 20px; color: var(--muted); }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions .btn { flex: 1; }

/* ───── چوونەژوورەوە ───── */

.login-wrap { display: grid; place-items: center; padding-block: 44px 72px; }
.login {
  position: relative; overflow: hidden; width: 100%; max-width: 460px;
  padding: 34px 28px 26px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg);
}
.login::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.login-ic {
  display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 10px;
  border-radius: 24px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c-ink, var(--c));
}
.login-ic .bic { width: 58px; height: 58px; }
.login-ic .ic { width: 40px; height: 40px; }
.login-kicker { margin: 0; color: var(--muted); font-size: .97rem; font-weight: 700; }
.login h1 { margin: 0 0 6px; font-size: 1.85rem; font-weight: 900; }
.login > .muted { margin: 0 0 22px; }
.code-box { position: relative; }
.code-box input {
  width: 100%; height: 60px; padding: 0 54px;
  border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface-2);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .2em; text-align: center;
}
.code-box input::placeholder { letter-spacing: 0; font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.code-box input:focus { outline: 0; border-color: var(--c); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.code-box .icon-btn { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); }
.check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 6px; color: var(--text-2); font-size: 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.login .form-error { margin: 6px 0 12px; }
.login .btn-primary { background: var(--c); color: #fff; box-shadow: 0 10px 24px -12px var(--c); }
.login .btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 86%, #000); }
.demo-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--t-amber-bg); color: var(--t-amber-fg); font-size: .95rem; line-height: 1.5;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: .97rem; text-decoration: none; }
.back-link:hover { color: var(--text); }
.shake { animation: shake .36s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* ───── پانێڵی بەڕێوەبەر ───── */

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-block: 22px; }
@media (max-width: 1040px) { .admin-grid { grid-template-columns: minmax(0, 1fr); } }
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.ov-card {
  position: relative; overflow: hidden;
  display: block; padding: 16px; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  border-top: 4px solid var(--c);
  transition: box-shadow .2s, transform .2s;
}
.ov-card:hover { box-shadow: var(--shadow); }
.ov-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ov-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c-ink, var(--c)); }
.ov-ic .bic { width: 34px; height: 34px; }
.ov-head > div { flex: 1; min-width: 0; }
.ov-head h3 { margin: 0; font-size: 1.12rem; font-weight: 900; }
.ov-total { color: var(--muted); font-size: .93rem; }
.ov-total b { color: var(--text); font-size: 1.05rem; }
.ov-go { color: var(--c-ink, var(--c)); }
html[dir="ltr"] .ov-go .ic, html[dir="ltr"] .sr-item > .ic { transform: scaleX(-1); }
.ov-tables { display: grid; margin: 0; padding: 0; list-style: none; }
.ov-tables li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--border); font-size: .95rem; color: var(--text-2); }
.ov-tables li span { display: inline-flex; align-items: center; gap: 6px; }
.ov-tables li .ic { color: var(--muted); }

.activity { margin: 0; padding: 0; list-style: none; max-height: 640px; overflow-y: auto; }
.act { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.act:last-child { border-bottom: 0; }
.act-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--tb); color: var(--tf); }
.act p { margin: 0; font-size: .97rem; line-height: 1.55; }
.act-title { color: var(--text-2); }
.act small { color: var(--muted); font-size: .85rem; }
.act-empty { padding: 16px 0; color: var(--muted); }
.seg-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  position: relative; overflow: hidden;
  height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: .9rem; font-weight: 700; cursor: pointer;
}
.chip.on { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }

.search-results { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sr-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  color: inherit; text-align: start; cursor: pointer;
}
.sr-item:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); background: var(--surface); }
.sr-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c-ink, var(--c)); }
.sr-ic .bic { width: 28px; height: 28px; }
.sr-body { flex: 1; min-width: 0; }
.sr-body b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-body small { color: var(--muted); }
mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tool {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
  color: inherit; text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.tool:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface); }
.tool-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.tool-ic .ic { width: 24px; height: 24px; }
.tool b { display: block; font-size: 1.05rem; }
.tool small { color: var(--muted); font-size: .9rem; }

.codes { display: grid; gap: 10px; }
.code-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}
.code-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c-ink, var(--c)); }
.code-ic .bic { width: 34px; height: 34px; }
.code-ic .ic { width: 24px; height: 24px; }
.code-name b { display: block; font-size: 1.05rem; }
.code-link { display: block; direction: ltr; text-align: start; color: var(--muted); font-size: .87rem; text-decoration: none; overflow-wrap: anywhere; }
html[dir="rtl"] .code-link { text-align: right; }
.code-link:hover { color: var(--primary); }
.code-val { display: flex; align-items: center; gap: 2px; padding-block: 2px; padding-inline: 12px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.code-val code { min-width: 100px; font-family: inherit; font-size: 1.25rem; font-weight: 900; letter-spacing: .14em; text-align: center; direction: ltr; }
.code-actions { display: flex; gap: 6px; }
@media (max-width: 760px) {
  .code-row { grid-template-columns: 48px minmax(0, 1fr); }
  .code-val { grid-column: 1 / -1; justify-content: space-between; }
  .code-actions { grid-column: 1 / -1; }
  .code-actions .btn { flex: 1; }
}

/* ───── ستایل و ڕێکخستن ───── */

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.set-block { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.set-block + .set-block { margin-top: 16px; }
.set-block h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; }
.set-block h2 .ic { color: var(--primary); }
.set-block > p { margin: 0 0 14px; color: var(--muted); font-size: .97rem; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.theme-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; padding: 10px;
  border: 2px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--surface-2);
  color: inherit; text-align: start; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.theme-card .tick {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); opacity: 0; transform: scale(.6); transition: all .2s;
}
.theme-card.on .tick { opacity: 1; transform: none; }
.theme-card .tick .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.mock { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 108px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.mock-half { position: relative; padding: 9px 8px; background: var(--m-bg); }
.mock-hero { height: 30px; border-radius: 7px; background: var(--m-hero); }
.mock-card { display: flex; align-items: center; gap: 5px; margin-top: 7px; padding: 6px; border-radius: 7px; background: var(--m-surface); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.mock-card i { width: 14px; height: 14px; border-radius: 4px; background: var(--m-primary); flex: none; }
.mock-card s { flex: 1; height: 5px; border-radius: 9px; background: color-mix(in srgb, var(--m-primary) 30%, transparent); text-decoration: none; }
.mock-btn { width: 60%; height: 12px; margin-top: 7px; border-radius: 6px; background: var(--m-accent); }
.theme-card b { font-size: 1.05rem; }
.theme-card small { color: var(--muted); font-size: .85rem; line-height: 1.45; }

/* هەڵبژێری بەشبەش (وەک ئایفۆن) */
.segmented {
  position: relative; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
  padding: 4px; border-radius: 14px; background: var(--surface-3); isolation: isolate;
}
.segmented button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 10px; border: 0; border-radius: 11px; background: none;
  color: var(--text-2); font-weight: 700; font-size: 1rem; cursor: pointer; transition: color .2s;
}
.segmented button.on { color: var(--text); }
.segmented .thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 11px;
  background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .14), 0 0 0 1px var(--border);
  transition: inset-inline-start .32s cubic-bezier(.3, 1.3, .4, 1), width .32s;
}
html[data-motion="off"] .segmented .thumb { transition: none; }
.segmented .lang-sample { font-size: 1.05rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.set-row:first-of-type { border-top: 0; }
.set-row b { display: block; }
.set-row small { color: var(--muted); font-size: .9rem; }

.switch { position: relative; flex: none; width: 54px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background-color .25s;
}
.switch span::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / .25); transition: inset-inline-start .25s cubic-bezier(.3, 1.3, .4, 1);
}
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { inset-inline-start: 25px; }
.switch input:focus-visible + span { box-shadow: var(--focus); }

.preview-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.preview-card .pv-hero { padding: 16px; border-radius: calc(var(--radius) - 4px); background: var(--hero-bg); color: var(--hero-ink); }
.preview-card .pv-hero b { display: block; font-size: 1.3rem; font-weight: 900; }
.preview-card .pv-hero small { color: var(--hero-muted); }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* ───── کارتی چوونەژوورەوە (چاپ) ───── */
/* ستایلی کارتەکان لە ناو پەنجەرەی چاپدا لە app.js دا دانراوە */

/* ───── پەیامی کورت ───── */

#toasts {
  position: fixed; z-index: 2147483000; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid; gap: 8px; width: min(460px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none;
}
/* پەیامەکان وەک popover دەکرێنەوە بۆ ئەوەی لە سەرووی پەنجەرەی فۆرمەکانەوە بن */
#toasts[popover] { inset: auto auto calc(22px + env(safe-area-inset-bottom)) 50%; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
#toasts[popover]:popover-open { display: grid; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: #15211b; color: #fff; box-shadow: var(--shadow-lg);
  font-size: 1rem; font-weight: 700; line-height: 1.45; pointer-events: auto;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: #7fe0ae; width: 20px; height: 20px; }
.toast.err { background: #9b2a1e; }
.toast.err .ic, .toast.info .ic { color: #fff; }
.toast button { margin-inline-start: auto; border: 0; background: rgb(255 255 255 / .15); color: inherit; padding: 6px 12px; border-radius: 9px; font-weight: 700; cursor: pointer; }
:root[data-mode="dark"] .toast:not(.err) { background: #26302c; border: 1px solid rgb(255 255 255 / .1); }

/* ───── چاپ ───── */

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  :root { color-scheme: light; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  #bg-fx, .topbar, .foot, .demo-banner, .net-banner, .sec-hero, .toolbar, .list-foot, .fab, #toasts, dialog, .skip-link { display: none !important; }
  .page { padding: 0; }
  .container { max-width: none; padding: 0; }
  .panel { border: 0; box-shadow: none; background: none; }
  .print-head { display: flex !important; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #0b6e4f; }
  .print-head img { width: 54px; height: 54px; }
  .print-head div { flex: 1; }
  .print-head b { display: block; font-size: 15pt; }
  .print-head small { font-size: 10pt; color: #444; }
  .table-wrap { overflow: visible; }
  .tbl { display: table !important; font-size: 10.5pt; }
  .tbl thead { display: table-header-group !important; }
  .tbl tbody { display: table-row-group !important; padding: 0 !important; }
  .tbl tbody tr { display: table-row !important; border: 0 !important; padding: 0 !important; }
  .tbl td, .tbl th { display: table-cell !important; position: static !important; padding: 5px 7px !important; border: 1px solid #bbb !important; color: #000 !important; background: none !important; font-size: 10.5pt !important; text-align: start !important; }
  .tbl th { background: #eef3f0 !important; }
  .tbl td::before, .sort-ic, .tbl .col-act { display: none !important; }
  .badge { padding: 0; background: none !important; color: #000 !important; }
  .badge::before { display: none; }
  .clip { display: block; -webkit-line-clamp: unset; max-width: none; }
  .prog-bar { display: none; }
  tr { break-inside: avoid; }
}
