@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #f5f7f8;
  --surface: #fff;
  --surface-soft: #f8faf9;
  --ink: #17211e;
  --muted: #68756f;
  --line: #e1e8e4;
  --brand: #14785b;
  --brand-dark: #0c5e46;
  --brand-soft: #e7f4ef;
  --danger: #b83d45;
  --danger-soft: #fcecee;
  --warning: #96640d;
  --warning-soft: #fff7e4;
  --sidebar: #10271f;
  --sidebar-muted: #9db1aa;
  --shadow: 0 12px 32px rgba(18, 42, 33, .07);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

.dashboard-page { min-height: 100vh; }
.sidebar-toggle { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sidebar-backdrop { display: none; }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 0 0 auto;
  width: 276px;
  min-height: 100vh;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, #122b22 0%, #0c2019 100%);
  border-left: 1px solid rgba(255,255,255,.06);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 25px; }
.brand { min-height: 52px; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #21a57b, #137356);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  font-size: 21px;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 4px; color: var(--sidebar-muted); font-size: 11px; font-weight: 400; }
.sidebar-close { display: none; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: var(--sidebar-muted); cursor: pointer; font-size: 28px; }
.sidebar-nav { flex: 1; }
.nav-label { margin: 7px 13px 10px; color: #718b81; font-size: 11px; font-weight: 700; }
.nav-label-spaced { margin-top: 27px; }
.sidebar-nav a {
  position: relative;
  min-height: 48px;
  margin: 5px 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  color: #b6c5c0;
  font-size: 13px;
  font-weight: 650;
  transition: background .16s ease, color .16s ease;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.sidebar-nav a.active { color: #fff; background: rgba(37, 166, 124, .18); }
.sidebar-nav a.active::before { content: ""; position: absolute; right: -18px; width: 3px; height: 25px; border-radius: 0 4px 4px 0; background: #32bd8d; }
.sidebar-nav svg, .logout-button svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.nav-count { margin-right: auto; min-width: 24px; height: 22px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; color: #8fb1a6; background: rgba(255,255,255,.06); font-size: 11px; }
.nav-count.danger { color: #ffd9dc; background: rgba(212, 70, 81, .2); }
.sidebar-foot { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.08); }
.user-card { min-height: 54px; padding: 0 7px 13px; display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #d9eee7; background: rgba(255,255,255,.06); font-weight: 800; }
.user-card strong, .user-card small { display: block; }
.user-card strong { max-width: 158px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-card small { margin-top: 4px; color: var(--sidebar-muted); direction: ltr; text-align: right; font-size: 10px; }
.logout-button { width: 100%; min-height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; color: #c1cfca; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.055); }

.dashboard-main { min-height: 100vh; margin-right: 276px; }
.mobile-header { display: none; }
.mobile-bottom-nav { display: none; }
.content-shell { width: min(1250px, 100%); margin: 0 auto; padding: 42px 38px 80px; }
.page-heading { min-height: 96px; margin-bottom: 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 5px 0 9px; font-size: clamp(27px, 3vw, 34px); line-height: 1.35; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.heading-badge { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #d8e6e1; border-radius: 11px; color: var(--brand-dark); background: #eef7f3; font-size: 12px; font-weight: 800; white-space: nowrap; }
.heading-badge.danger { border-color: #f1d3d6; color: var(--danger); background: var(--danger-soft); }
.overview-heading { align-items: center; }

.service-card { min-width: 390px; padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.service-card.is-on { border-color: #b9ddcf; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #edf1ef; }
.service-icon span { width: 11px; height: 11px; border-radius: 50%; background: #9aa5a1; box-shadow: 0 0 0 5px rgba(154,165,161,.13); }
.service-card.is-on .service-icon { background: var(--brand-soft); }
.service-card.is-on .service-icon span { background: #20a777; box-shadow: 0 0 0 5px rgba(32,167,119,.13); }
.service-copy strong, .service-copy small { display: block; }
.service-copy strong { font-size: 13px; }
.service-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; }

.button { min-height: 44px; padding: 0 17px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; font-size: 12px; font-weight: 800; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); box-shadow: 0 7px 16px rgba(20,120,91,.16); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { color: var(--brand-dark); background: var(--brand-soft); }
.button-danger { color: var(--danger); background: var(--danger-soft); }
.button:disabled { color: #8b9692; background: #edf1ef; box-shadow: none; cursor: not-allowed; transform: none; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, label:focus-visible { outline: 3px solid rgba(25, 134, 101, .25); outline-offset: 2px; }

.alert { margin: 0 0 20px; padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; line-height: 1.8; }
.alert-success { border-color: #cbe7dc; color: var(--brand-dark); background: var(--brand-soft); }
.alert-error { border-color: #f1d0d4; color: var(--danger); background: var(--danger-soft); }
.alert-warning { border-color: #f3e0ad; color: var(--warning); background: var(--warning-soft); }

.onboarding-hub { margin-bottom: 22px; overflow: hidden; border: 1px solid #b8dace; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.onboarding-hub-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.onboarding-hub-head h2, .onboarding-hub-head p { margin: 0; }
.onboarding-hub-head h2 { margin-top: 4px; font-size: 18px; }
.onboarding-hub-head p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.onboarding-stage-track { width: min(460px,100%); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.onboarding-stage-track > span { position: relative; min-width: 0; display: flex; align-items: center; gap: 8px; color: #78847f; }
.onboarding-stage-track > span:not(:last-child)::after { content: ""; position: absolute; left: -13px; width: 9px; height: 2px; border-radius: 999px; background: #dce4e1; }
.onboarding-stage-track b { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; color: #78847f; background: #edf1ef; font-size: 10px; }
.onboarding-stage-track small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 800; }
.onboarding-stage-track .current { color: var(--brand-dark); }
.onboarding-stage-track .current b { color: #fff; background: var(--brand); }
.onboarding-stage-track .done { color: var(--brand-dark); }
.onboarding-stage-track .done b { color: var(--brand-dark); background: var(--brand-soft); }
.onboarding-stage-track .locked { opacity: .58; }
.onboarding-current-action { margin: 0 22px; padding: 17px 18px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; border: 1px solid #c6e1d7; border-radius: 15px; background: linear-gradient(100deg,#f0faf6,#fbfdfc); }
.onboarding-action-number { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--brand); font-size: 15px; font-weight: 900; }
.onboarding-current-action h3, .onboarding-current-action p { margin: 0; }
.onboarding-current-action h3 { margin-top: 4px; font-size: 16px; }
.onboarding-current-action p:not(.eyebrow) { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.onboarding-help { margin-top: 18px; border-top: 1px solid var(--line); }
.onboarding-help summary { min-height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.onboarding-help summary::-webkit-details-marker { display: none; }
.onboarding-help summary:focus-visible { outline: 3px solid rgba(25,134,101,.25); outline-offset: -3px; }
.onboarding-help summary strong, .onboarding-help summary small { display: block; }
.onboarding-help summary strong { font-size: 11px; }
.onboarding-help summary small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.onboarding-help summary > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 17px; transition: transform .18s ease; }
.onboarding-help[open] summary > b { transform: rotate(180deg); }
.onboarding-help-flow { padding: 0 22px 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.onboarding-help-flow > div { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.onboarding-help-flow > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--brand-dark); background: var(--brand-soft); font-size: 10px; font-weight: 900; }
.onboarding-help-flow p, .onboarding-help-flow strong, .onboarding-help-flow small { margin: 0; display: block; }
.onboarding-help-flow strong { font-size: 10px; }
.onboarding-help-flow small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.service-card.is-locked { border-color: var(--line); background: #fafbfb; box-shadow: none; }

.context-guide { margin-bottom: 20px; padding: 17px 18px; display: grid; grid-template-columns: 42px minmax(240px,1fr) auto; align-items: center; gap: 14px; border: 1px solid #cfe1da; border-radius: 15px; background: #f7fbf9; }
.guide-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-weight: 900; }
.context-guide strong, .context-guide p { margin: 0; }
.context-guide > div > strong { font-size: 12px; }
.context-guide p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.context-guide ol { margin: 0; padding-right: 20px; display: flex; gap: 25px; color: #42504b; font-size: 10px; font-weight: 800; }
.context-guide ol li::marker { color: var(--brand); font-weight: 900; }
.field-help { display: block; min-height: auto; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.6; }
.optional-label { margin-right: 5px; padding: 3px 6px; border-radius: 6px; color: var(--muted); background: #edf1ef; font-size: 8px; }
.verify-title { display: flex; align-items: center; gap: 10px; }
.verify-title > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font-weight: 900; }
.verify-title strong, .verify-title small { display: block; }
.verify-title small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.account-phone { direction: ltr; text-align: right; color: #34413d !important; font-weight: 800; }
.guided-empty { border: 1px dashed #d6e1dd; border-radius: 13px; background: #fbfcfc; }
.mini-flow { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--brand); font-size: 9px; font-weight: 800; }
.mini-flow b { color: #a5b0ac; }

.blocked-step { min-height: 190px; padding: 26px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.blocked-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: #eff3f1; font-size: 22px; }
.blocked-step h2, .blocked-step p { margin: 0; }
.blocked-step h2 { margin-top: 5px; font-size: 19px; }
.blocked-step p:not(.eyebrow) { margin-top: 8px; max-width: 650px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.credential-sync-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.credential-sync-list form { min-width: 245px; padding: 8px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.credential-sync-list form > span { flex: 1; }
.credential-sync-list strong, .credential-sync-list small { display: block; }
.credential-sync-list strong { font-size: 10px; }
.credential-sync-list small { margin-top: 3px; color: var(--muted); direction: ltr; text-align: right; font-size: 9px; }
.channel-guide { grid-template-columns: 42px minmax(240px,1fr) minmax(280px,auto); }
.channel-account { display: flex; align-items: center; gap: 10px; }
.channel-account > span:last-child strong, .channel-account > span:last-child small { display: block; }
.channel-account > span:last-child strong { direction: ltr; text-align: right; font-size: 10px; }
.channel-account > span:last-child small { margin-top: 3px; font-size: 8px; }

.stats { margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats a { min-height: 108px; padding: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border .15s ease, transform .15s ease, box-shadow .15s ease; }
.stats a:hover { transform: translateY(-2px); border-color: #cbd9d4; box-shadow: var(--shadow); }
.stats small, .stats strong { display: block; }
.stats small { color: var(--muted); font-size: 11px; }
.stats strong { margin-top: 5px; font-size: 26px; line-height: 1; }
.stats .has-error strong { color: var(--danger); }
.stat-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg { width: 21px; height: 21px; fill: currentColor; }
.stat-icon.green { color: #187d5e; background: #e4f4ee; }
.stat-icon.blue { color: #3578a6; background: #eaf3fa; }
.stat-icon.purple { color: #7158a6; background: #f0ecf8; }
.stat-icon.red { color: #b74950; background: #f9e9eb; }

.usage-panel { margin-bottom: 22px; }
.usage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.usage-heading h2, .usage-heading p { margin: 0; }
.usage-heading h2 { margin-top: 5px; font-size: 19px; }
.usage-heading p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 10px; }
.usage-totals { display: flex; gap: 9px; }
.usage-totals > span { min-width: 120px; min-height: 64px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.usage-totals small, .usage-totals strong { display: block; }
.usage-totals small { color: var(--muted); font-size: 8px; }
.usage-totals strong { margin-top: 6px; font-size: 14px; }
.usage-legend { margin: 20px 0 5px; display: flex; gap: 18px; color: var(--muted); font-size: 9px; }
.usage-legend span { display: flex; align-items: center; gap: 6px; }
.usage-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; }
.usage-legend .message-key::before { background: var(--brand); }
.usage-legend .file-key::before { background: #448dbd; }
.usage-chart { height: 225px; padding-top: 12px; display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #edf1ef 45px); }
.usage-day { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-area { width: 100%; height: 135px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.usage-bar { width: min(18px,32%); min-height: 3px; border-radius: 5px 5px 2px 2px; transition: height .2s ease; }
.message-bar { background: linear-gradient(180deg, #25a87e, var(--brand)); }
.file-bar { background: linear-gradient(180deg, #69acd7, #397eab); }
.usage-bar.level-0 { height: 3px; opacity: .25; }
.usage-bar.level-1 { height: 10%; }.usage-bar.level-2 { height: 20%; }.usage-bar.level-3 { height: 30%; }.usage-bar.level-4 { height: 40%; }.usage-bar.level-5 { height: 50%; }
.usage-bar.level-6 { height: 60%; }.usage-bar.level-7 { height: 70%; }.usage-bar.level-8 { height: 80%; }.usage-bar.level-9 { height: 90%; }.usage-bar.level-10 { height: 100%; }
.usage-day > strong { margin-top: 8px; color: #43504c; font-size: 9px; white-space: nowrap; }
.usage-day > small { margin-top: 4px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.usage-day > em { margin-top: 3px; color: #7a8782; font-size: 7px; font-style: normal; white-space: nowrap; }
.usage-mobile-list { display: none; }

.panel { padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 5px 18px rgba(18,42,33,.025); }
.panel-heading { margin-bottom: 21px; display: flex; align-items: center; justify-content: space-between; }
.panel h2 { margin: 4px 0; font-size: 19px; }
.quick-start { margin-top: 20px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.step-grid > a { min-height: 92px; padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); transition: border .15s ease, background .15s ease; }
.step-grid > a:hover { border-color: #bcd8ce; background: #f2f8f5; }
.step-grid > a > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 900; }
.step-grid strong, .step-grid small { display: block; }
.step-grid strong { font-size: 13px; }
.step-grid small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.groups-layout { grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); }
.section-title { min-height: 50px; margin-bottom: 21px; display: flex; align-items: center; gap: 12px; }
.section-title h2, .section-title p { margin: 0; }
.section-title h2 { font-size: 16px; }
.section-title p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.section-number { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); font-size: 12px; font-weight: 900; }
.section-number.soft { color: var(--brand); background: var(--brand-soft); }
.stack { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-submit { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: #34413d; font-size: 11px; font-weight: 800; }
input, select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #d1dcd7; border-radius: 10px; color: var(--ink); background: #fff; outline: none; font-size: 12px; }
input::placeholder { color: #a3ada9; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,120,91,.1); }
.verify-box { margin-top: 18px; padding: 17px; display: grid; gap: 13px; border: 1px dashed #8cc9b3; border-radius: 13px; background: #f4faf7; }
.account-connect-panel { margin-bottom: 20px; }
.account-connect-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.account-connect-header h2, .account-connect-header p { margin: 0; }
.account-connect-header h2 { margin-top: 4px; font-size: 19px; }
.account-connect-header p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.account-flow-badge { min-height: 31px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid #cfe1da; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: 9px; font-weight: 900; white-space: nowrap; }
.account-process { margin-top: 22px; padding: 14px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; border: 1px solid #dce7e2; border-radius: 14px; background: #f8faf9; }
.account-process-step { position: relative; min-width: 0; min-height: 46px; padding: 6px 8px; display: flex; align-items: center; gap: 10px; border-radius: 10px; color: #718079; }
.account-process-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; left: -23px; width: 18px; border-top: 2px solid #d8e2de; }
.account-process-number { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid #d5dfdb; border-radius: 10px; color: #74817c; background: #fff; font-size: 10px; font-weight: 900; }
.account-process-step > span:last-child { min-width: 0; }
.account-process-step strong, .account-process-step small { display: block; }
.account-process-step strong { color: #59665f; font-size: 10px; }
.account-process-step small { margin-top: 4px; color: #89938f; font-size: 8px; white-space: nowrap; }
.account-process-step.is-active { color: var(--brand-dark); background: #fff; box-shadow: 0 3px 12px rgba(24,74,57,.07); }
.account-process-step.is-active .account-process-number { color: #fff; border-color: var(--brand); background: var(--brand); }
.account-process-step.is-active strong { color: var(--brand-dark); }
.account-process-step.is-complete .account-process-number { color: var(--brand); border-color: #bcd9ce; background: var(--brand-soft); }
.account-process-step.is-complete strong { color: #44544e; }
.account-connect-body { width: min(820px, 100%); padding-top: 24px; }
.account-task-heading { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-task-heading h3, .account-task-heading p { margin: 0; }
.account-task-heading h3 { margin-top: 4px; font-size: 15px; }
.account-task-heading p:not(.eyebrow) { max-width: 610px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.account-phone-review { display: flex; align-items: center; gap: 8px; }
.account-phone-chip { min-width: 154px; min-height: 51px; padding: 8px 11px; display: flex; justify-content: center; flex-direction: column; border: 1px solid #d7e5df; border-radius: 11px; background: #f7faf9; direction: rtl; }
.account-phone-chip small, .account-phone-chip strong { display: block; }
.account-phone-chip small { color: var(--muted); font-size: 8px; }
.account-phone-chip strong { margin-top: 4px; font-size: 11px; direction: ltr; text-align: right; }
.account-change-button { min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--brand); background: transparent; cursor: pointer; font-size: 9px; font-weight: 900; white-space: nowrap; }
.account-change-button:hover { background: var(--brand-soft); }
.account-change-button:focus-visible { outline: 3px solid rgba(25,134,101,.2); outline-offset: 2px; }
.personal-account-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 16px; }
.account-primary-action { grid-column: 1 / -1; width: fit-content; min-width: 190px; }
.account-verification-form { padding: 18px; display: grid; gap: 16px; border: 1px solid #c8ded5; border-radius: 14px; background: #f7fbf9; }
.verify-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.account-form-footnote { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.bot-connect-option { margin-top: 25px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfc; }
.bot-connect-option summary { min-height: 66px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #33413c; cursor: pointer; list-style: none; }
.bot-connect-option summary::-webkit-details-marker { display: none; }
.bot-connect-option summary:focus-visible { outline: 3px solid rgba(25,134,101,.25); outline-offset: 3px; border-radius: 8px; }
.bot-connect-option summary strong, .bot-connect-option summary small { display: block; }
.bot-connect-option summary strong { font-size: 10px; }
.bot-connect-option summary small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
.details-chevron { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; color: var(--brand); background: var(--brand-soft); font-size: 18px; transition: transform .18s ease; }
.bot-connect-option[open] .details-chevron { transform: rotate(180deg); }
.bot-account-form { margin: 0 12px 12px; padding: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.bot-form-note { grid-column: 1 / -1; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.bot-form-note strong, .bot-form-note p { margin: 0; }
.bot-form-note strong { font-size: 10px; }
.bot-form-note p { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.bot-account-form .button { grid-column: 1 / -1; width: fit-content; min-width: 150px; }
.connected-accounts-panel { margin-top: 20px; }
.account-list-heading { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-list-heading h2, .account-list-heading p { margin: 0; }
.account-list-heading h2 { margin-top: 4px; }
.account-list-heading p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.account-list .account-item { min-height: 82px; background: #fbfcfc; }
.accounts-empty-state { min-height: 98px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px dashed #d4e0dc; border-radius: 13px; background: #fbfcfc; }
.accounts-empty-state .empty-icon { margin: 0; flex: 0 0 42px; }
.accounts-empty-state > div { flex: 1; }
.accounts-empty-state strong, .accounts-empty-state p { margin: 0; }
.accounts-empty-state strong { display: block; color: #42504b; font-size: 12px; }
.accounts-empty-state p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.item-list { display: flex; flex-direction: column; gap: 10px; }
.list-item, .group-card { min-height: 74px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.item-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.platform-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-weight: 900; }
.list-item strong, .list-item small, .group-card small { display: block; }
.list-item strong, .group-card strong { font-size: 12px; }
.list-item small, .group-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.row-actions, .group-title { display: flex; align-items: center; gap: 9px; }
.status-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.status-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a6b0ac; }
.status-label.active { color: var(--brand); }
.status-label.active::before { background: #26a779; box-shadow: 0 0 0 4px #e4f4ee; }

.table-panel { padding: 7px 20px 20px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 16px 13px; border-bottom: 1px solid var(--line); text-align: right; font-size: 11px; vertical-align: middle; }
th { height: 53px; color: var(--muted); background: #fbfcfb; font-weight: 800; white-space: nowrap; }
td strong, td small { display: block; }
td strong { font-size: 12px; }
td small { margin-top: 5px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.mono { direction: ltr; text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #4a5752; }
.platform-pill, .pill { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 8px; color: #53615c; background: #eff3f1; font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill.success { color: var(--brand-dark); background: var(--brand-soft); }
.pill.warning { color: var(--warning); background: var(--warning-soft); }
.pill.neutral { color: var(--muted); background: #eff2f1; }
.error-text { max-width: 390px; color: var(--danger); line-height: 1.7; }
.empty-state { width: 100%; padding: 34px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: #42504b; font-size: 13px; }
.empty-state p { margin: 7px auto 14px; max-width: 330px; font-size: 11px; line-height: 1.8; }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-size: 19px; font-weight: 900; }
.success-state .empty-icon { color: #fff; background: var(--brand); }
.failures-mobile-list { display: none; }

fieldset { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
legend { padding: 0 8px; color: #34413d; font-size: 11px; font-weight: 900; }
.check-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.check-row label { min-height: 36px; flex-direction: row; align-items: center; cursor: pointer; }
.check-row input, .channel-option > input { width: 17px; min-height: 17px; accent-color: var(--brand); }
.channel-picker { max-height: 430px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.channel-option { min-height: 64px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0,1fr) 135px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.channel-option:has(input:checked) { border-color: #a9d3c4; background: #f5faf8; }
.channel-option strong, .channel-option small { display: block; }
.channel-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.channel-option small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.channel-option select { min-height: 39px; font-size: 10px; }
.group-form { padding-left: 34px; border-left: 1px solid var(--line); }
.group-card { align-items: flex-start; }
.group-card > div { min-width: 0; }
.event-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.event-tags span { padding: 5px 7px; border-radius: 7px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }

.sharing-guide { grid-template-columns: 42px minmax(240px,1fr) auto; }
.sharing-example { display: flex; align-items: center; gap: 8px; }
.sharing-example span { padding: 8px 10px; border: 1px solid #cddfd8; border-radius: 9px; color: var(--brand-dark); background: #fff; font-size: 9px; font-weight: 800; }
.sharing-example b { color: var(--brand); }
.sharing-builder { margin-bottom: 20px; }
.simple-channel-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.simple-channel-option { min-height: 76px; padding: 12px; display: grid; grid-template-columns: auto 32px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.simple-channel-option:hover { border-color: #afd2c5; }
.simple-channel-option:has(input:checked) { border-color: #69b99d; background: #f3faf7; box-shadow: 0 0 0 3px rgba(20,120,91,.06); }
.simple-channel-option > input { width: 18px; min-height: 18px; accent-color: var(--brand); }
.channel-check { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #9ba7a2; background: #eff3f1; }
.simple-channel-option:has(input:checked) .channel-check { color: #fff; background: var(--brand); }
.simple-channel-option strong, .simple-channel-option small { display: block; }
.simple-channel-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.simple-channel-option small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; }
.channel-owner { min-width: 115px; padding-right: 12px; border-right: 1px solid var(--line); }
.channel-owner b, .channel-owner small { display: block; }
.channel-owner b { color: var(--brand-dark); font-size: 9px; }
.channel-owner small { direction: ltr; text-align: right; }
.sharing-submit { margin-top: 15px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 13px; background: #f4f8f6; }
.sharing-submit strong, .sharing-submit small { display: block; }
.sharing-submit strong { font-size: 10px; }
.sharing-submit small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.active-sharing-panel { margin-top: 20px; }
.active-sharing-list { display: flex; flex-direction: column; gap: 9px; }
.active-sharing-list article { min-height: 75px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 13px; }
.active-sharing-list article > div { display: flex; align-items: center; gap: 11px; }
.sharing-status { width: 11px; height: 11px; border-radius: 50%; background: #a5afab; }
.sharing-status.active { background: #25a779; box-shadow: 0 0 0 5px #e5f4ef; }
.active-sharing-list strong { font-size: 11px; }
.sharing-channel-names { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.sharing-channel-names span { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: #f0f3f2; font-size: 8px; }

.auth-page { min-height: 100vh; padding: 22px; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #dff4eb, transparent 35%), var(--bg); }
.auth-card { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-card .brand-mark { margin-bottom: 23px; }
.auth-card h1 { margin: 6px 0 10px; font-size: 26px; }
.auth-card .stack { margin-top: 23px; }
.text-link { min-height: 44px; display: grid; place-items: center; color: var(--brand); font-size: 12px; font-weight: 800; }

@media (max-width: 1080px) {
  .content-shell { padding-inline: 25px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .service-card { width: 100%; min-width: 0; }
  .groups-layout { grid-template-columns: 1fr; }
  .group-form { padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--line); }
  .context-guide, .channel-guide, .sharing-guide { grid-template-columns: 42px 1fr; }
  .context-guide > ol, .credential-sync-list, .sharing-example { grid-column: 1 / -1; justify-content: flex-start; }
  .usage-heading { flex-direction: column; }
  .usage-totals { width: 100%; }
  .usage-totals > span { flex: 1; }
}

@media (max-width: 760px) {
  .sidebar { width: min(300px, 86vw); justify-content: space-between; transform: translateX(105%); transition: transform .22s ease; box-shadow: -20px 0 45px rgba(0,0,0,.2); }
  .sidebar-nav { display: none; }
  .sidebar-close { display: grid; }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; background: rgba(7, 20, 15, .52); backdrop-filter: blur(2px); }
  .sidebar-toggle:checked ~ .sidebar-backdrop { display: block; }
  .sidebar-toggle:checked ~ .sidebar { transform: translateX(0); }
  .dashboard-main { margin-right: 0; }
  .mobile-header { position: sticky; z-index: 25; top: 0; height: 64px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
  .menu-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; cursor: pointer; }
  .menu-button svg { width: 23px; height: 23px; fill: #35443e; }
  .mobile-brand { font-size: 16px; font-weight: 900; }
  .service-indicator { width: 10px; height: 10px; margin: 17px; border-radius: 50%; background: #a7b0ad; }
  .service-indicator.online { background: #20a777; box-shadow: 0 0 0 5px rgba(32,167,119,.12); }
  .content-shell { padding: 25px 15px calc(104px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; min-height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 5px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: start; border-top: 1px solid #dbe4e0; background: rgba(255,255,255,.96); box-shadow: 0 -10px 28px rgba(18,42,33,.08); backdrop-filter: blur(16px); }
  .mobile-bottom-nav a { position: relative; min-width: 0; min-height: 56px; padding: 4px 2px 3px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border-radius: 12px; color: #74817c; font-size: 9px; font-weight: 800; line-height: 1.35; transition: color .15s ease, background .15s ease; }
  .mobile-bottom-nav a.active { color: var(--brand-dark); }
  .mobile-nav-icon { position: relative; width: 38px; height: 29px; display: grid; place-items: center; border-radius: 12px; transition: background .15s ease; }
  .mobile-bottom-nav a.active .mobile-nav-icon { background: var(--brand-soft); }
  .mobile-nav-icon svg { width: 20px; height: 20px; fill: currentColor; }
  .mobile-nav-badge { position: absolute; top: -3px; left: -2px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--danger); font-size: 7px; line-height: 1; }
  .page-heading { min-height: auto; margin-bottom: 20px; align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 27px; }
  .heading-badge { min-height: 34px; }
  .panel { padding: 18px; border-radius: 16px; }
  .table-panel { padding: 4px 12px 14px; }
  .step-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { grid-column: auto; }
  .account-connect-header { gap: 14px; }
  .account-process { padding: 10px; gap: 11px; }
  .account-process-step { padding: 7px 2px; align-items: center; flex-direction: column; gap: 6px; text-align: center; }
  .account-process-step:not(:last-child)::after { top: 23px; left: -9px; width: 8px; }
  .account-process-step small { white-space: normal; line-height: 1.5; }
  .account-task-heading { flex-direction: column; }
  .account-phone-review { width: 100%; align-items: stretch; flex-direction: column; }
  .account-phone-chip { width: 100%; }
  .account-change-button { width: 100%; border: 1px solid #d5e3dd; background: #fff; }
  .personal-account-form, .verify-fields, .bot-account-form { grid-template-columns: 1fr; }
  .account-primary-action, .bot-account-form .button { grid-column: auto; width: 100%; min-height: 48px; }
  .account-form-footnote { grid-column: auto; }
  .account-list-heading { align-items: flex-start; }
  .onboarding-hub-head { padding: 17px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .onboarding-stage-track { width: 100%; gap: 10px; }
  .onboarding-stage-track > span { align-items: center; flex-direction: column; gap: 5px; text-align: center; }
  .onboarding-stage-track > span:not(:last-child)::after { top: 15px; left: -7px; width: 5px; }
  .onboarding-stage-track small { width: 100%; font-size: 8px; }
  .onboarding-current-action { margin: 0 14px; padding: 14px; grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
  .onboarding-action-number { width: 42px; height: 42px; }
  .onboarding-current-action h3 { font-size: 14px; line-height: 1.6; }
  .onboarding-current-action p:not(.eyebrow) { font-size: 10px; }
  .onboarding-current-action .button { grid-column: 1 / -1; width: 100%; min-height: 48px; }
  .onboarding-help { margin-top: 14px; }
  .onboarding-help summary { min-height: 62px; padding: 0 16px; }
  .onboarding-help-flow { padding: 0 16px 16px; grid-template-columns: 1fr; gap: 8px; }
  .onboarding-help-flow > div { min-height: 0; }
  .context-guide, .channel-guide, .sharing-guide { grid-template-columns: 38px 1fr; align-items: start; }
  .context-guide ol { grid-column: 1 / -1; flex-direction: column; gap: 8px; }
  .credential-sync-list, .sharing-example { grid-column: 1 / -1; width: 100%; }
  .credential-sync-list form { width: 100%; min-width: 0; }
  .blocked-step { padding: 20px; grid-template-columns: 48px 1fr; }
  .blocked-icon { width: 48px; height: 48px; }
  .blocked-step .button { grid-column: 1 / -1; width: 100%; }
  .usage-panel { padding-inline: 14px; overflow: hidden; }
  .usage-heading { gap: 16px; }
  .usage-heading h2 { font-size: 18px; }
  .usage-heading p:not(.eyebrow) { font-size: 10px; line-height: 1.8; }
  .usage-totals { display: grid; grid-template-columns: 1fr 1fr; }
  .usage-totals > span { min-width: 0; min-height: 70px; padding: 12px; }
  .usage-totals small { font-size: 9px; }
  .usage-totals strong { margin-top: 7px; font-size: 15px; }
  .usage-totals > span:last-child { grid-column: 1 / -1; }
  .usage-legend, .usage-chart { display: none; }
  .usage-mobile-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
  .usage-mobile-day { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfc; }
  .usage-mobile-day header { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .usage-mobile-day header strong { font-size: 11px; }
  .usage-mobile-day header em { color: var(--muted); font-size: 9px; font-style: normal; }
  .usage-mobile-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .usage-mobile-metrics > div { min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; }
  .usage-mobile-metrics span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
  .usage-mobile-metrics b { font-size: 11px; }
  .usage-dot { width: 7px; height: 7px; border-radius: 3px; }
  .message-dot { background: var(--brand); }
  .file-dot { background: #448dbd; }
  .mobile-usage-meter { grid-column: 1 / -1; width: 100%; height: 5px; display: block; overflow: hidden; border-radius: 999px; background: #e8eeeb; }
  .mobile-usage-meter > i { height: 100%; display: block; border-radius: inherit; }
  .mobile-usage-meter .message-fill { background: var(--brand); }
  .mobile-usage-meter .file-fill { background: #448dbd; }
  .mobile-usage-meter > i.level-0 { width: 3px; opacity: .3; }.mobile-usage-meter > i.level-1 { width: 10%; }.mobile-usage-meter > i.level-2 { width: 20%; }.mobile-usage-meter > i.level-3 { width: 30%; }.mobile-usage-meter > i.level-4 { width: 40%; }.mobile-usage-meter > i.level-5 { width: 50%; }
  .mobile-usage-meter > i.level-6 { width: 60%; }.mobile-usage-meter > i.level-7 { width: 70%; }.mobile-usage-meter > i.level-8 { width: 80%; }.mobile-usage-meter > i.level-9 { width: 90%; }.mobile-usage-meter > i.level-10 { width: 100%; }
  .failures-table-panel { display: none; }
  .failures-mobile-list { display: flex; flex-direction: column; gap: 12px; }
  .failure-mobile-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 5px 18px rgba(18,42,33,.035); }
  .failure-mobile-card header { padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
  .failure-mobile-card time { color: var(--muted); font-size: 9px; }
  .failure-mobile-meta { padding: 13px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .failure-mobile-meta span { padding: 11px; border-radius: 11px; background: var(--surface-soft); }
  .failure-mobile-meta small, .failure-mobile-meta strong { display: block; }
  .failure-mobile-meta small { color: var(--muted); font-size: 9px; }
  .failure-mobile-meta strong { margin-top: 5px; font-size: 12px; }
  .failure-mobile-error { margin-bottom: 13px; padding: 12px; border: 1px solid #f0d9db; border-radius: 11px; background: #fff8f8; }
  .failure-mobile-error small { color: var(--danger); font-size: 9px; font-weight: 900; }
  .failure-mobile-error p { margin: 6px 0 0; color: #6a474a; overflow-wrap: anywhere; font-size: 10px; line-height: 1.8; }
  .failure-mobile-card form, .failure-mobile-card .button { width: 100%; }
  .failure-mobile-card .button { min-height: 48px; }
  .failure-mobile-empty { min-height: 106px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #d5e5df; border-radius: 16px; background: var(--surface); box-shadow: 0 5px 18px rgba(18,42,33,.03); }
  .failure-mobile-empty .empty-icon { margin: 0; flex: 0 0 42px; color: #fff; background: var(--brand); }
  .failure-mobile-empty strong, .failure-mobile-empty p { margin: 0; }
  .failure-mobile-empty strong { font-size: 12px; }
  .failure-mobile-empty p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.7; }
  .simple-channel-picker { grid-template-columns: 1fr; }
  .sharing-submit { align-items: stretch; flex-direction: column; }
  .sharing-submit .button { width: 100%; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stats a { min-height: 98px; padding: 14px 12px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .stats strong { font-size: 22px; }
  .stats small { font-size: 9px; }
  .service-card { grid-template-columns: 38px 1fr; }
  .service-card .button { grid-column: 1 / -1; width: 100%; }
  .service-icon { width: 38px; height: 38px; }
  .list-item, .group-card { align-items: stretch; flex-direction: column; }
  .row-actions { justify-content: space-between; }
  .row-actions form, .row-actions .button, .group-card form, .group-card form .button { width: 100%; }
  .accounts-empty-state { align-items: flex-start; }
  .accounts-empty-state { flex-wrap: wrap; }
  .accounts-empty-state .button { width: 100%; }
  .channel-option { grid-template-columns: auto minmax(0,1fr); }
  .channel-option select { grid-column: 2; }
  .check-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .auth-card { padding: 27px 22px; }
  .simple-channel-option { grid-template-columns: auto 30px minmax(0,1fr); }
  .channel-owner { grid-column: 3; padding: 7px 0 0; border: 0; border-top: 1px solid var(--line); }
  .active-sharing-list article { align-items: stretch; flex-direction: column; }
  .active-sharing-list form, .active-sharing-list .button { width: 100%; }
  .sharing-example { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
