@font-face { font-family: "Vazirmatn"; src: url("vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #E7EEEB; --surface: #FFFFFF; --ink: #10252C; --muted: #56686D; --line: #CBD8D4;
  --firouzeh: #0B7A75; --deep: #0A4F4D; --lapis: #2A3F8F;
  --ok: #1E7B45; --warn: #9A5B00; --err: #B3261E; --ok-bg: #E2F3E8; --warn-bg: #FBF0DC; --err-bg: #FBE6E4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.75 "Vazirmatn", Tahoma, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--lapis); }
.ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
code, .mono { font-family: Consolas, "DejaVu Sans Mono", monospace; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid #7FC8C3; outline-offset: 2px; }

header.top { background: var(--deep); color: #EAF6F4; }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 14px; align-items: center; position: relative; }
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand svg { width: 34px; height: 34px; }
nav.main { display: flex; gap: 2px; flex: 1; align-items: center; flex-wrap: nowrap; }
nav.main > a, .dd > summary { color: #B9DCD7; text-decoration: none; padding: 6px 11px; border-radius: 8px; font-size: 14.5px; white-space: nowrap; cursor: pointer; }
nav.main > a:hover, .dd > summary:hover { color: #fff; background: #0E5F5C; }
nav.main > a.on, .dd.on > summary { background: var(--bg); color: var(--ink); font-weight: 700; }
.who { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #B9DCD7; }
.who a { color: #EAF6F4; }
.who form { margin: 0; }
.linkbtn { background: none; border: 1px solid #3F7F7B; color: #EAF6F4; border-radius: 8px; padding: 2px 10px; cursor: pointer; font-size: 13px; }

main { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 800; }
h2 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.lead { color: var(--muted); margin: 0 0 18px; max-width: 75ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.hint { color: var(--muted); font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.btn { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 7px 16px; cursor: pointer; font-weight: 600; background: var(--firouzeh); color: #fff; text-decoration: none; }
.btn:hover { background: #096864; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: #F1F6F4; }
.btn.danger { background: var(--surface); color: var(--err); border-color: #E7B7B3; }
.btn.danger:hover { background: var(--err-bg); }
.btn.small { padding: 2px 10px; font-size: 13px; font-weight: 500; }
form.inline { display: inline; margin: 0; }
label.field { display: block; }
label.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=file], textarea, select {
  width: 100%; border: 1px solid #B7C8C3; border-radius: 8px; padding: 7px 10px; background: #FBFDFC; }
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--firouzeh); outline: none; box-shadow: 0 0 0 3px #CDE9E6; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 6px; accent-color: var(--firouzeh); width: 16px; height: 16px; flex: none; }
.perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 6px 16px; }

table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { text-align: right; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; font-size: 14px; }
table.list th { background: #F3F8F6; color: var(--muted); font-weight: 600; border-top: 0; white-space: nowrap; }
table.list tr:hover td { background: #FAFCFB; }
.tablewrap { overflow-x: auto; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

.pill { display: inline-block; border-radius: 999px; padding: 0 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }
.pill.idle { background: #EDF1F0; color: var(--muted); }
.notice { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.notice.warn { background: var(--warn-bg); color: #6B4100; }
.notice.err { background: var(--err-bg); color: #7E1A14; }
.notice.ok { background: var(--ok-bg); color: #145A32; }
.chip { display: inline-block; background: #EEF4F2; border-radius: 6px; padding: 0 8px; font-size: 13px; margin: 1px; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13.5px; }

.auth { max-width: 400px; margin: 60px auto; }
.auth .panel { padding: 26px; }
.captcha { display: flex; gap: 8px; align-items: center; }
.captcha img { border: 1px solid var(--line); border-radius: 6px; height: 50px; }
.qr { background: #fff; padding: 10px; display: inline-block; border: 1px solid var(--line); border-radius: 8px; }
.qr svg { display: block; width: 200px; height: 200px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; font-family: Consolas, monospace; direction: ltr; font-size: 15px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--deep); }
ol.steps { padding-right: 22px; padding-left: 0; list-style: persian; }

@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.helpbar { display: flex; justify-content: flex-end; margin: -8px 0 6px; }

.help { font-size: 16px; line-height: 2; max-width: 75ch; }
.help h2 { margin-top: 18px; }
.help ol.steps li, .help ul li { margin-bottom: 6px; }
.help table.list { margin: 10px 0; }
ul.helplist { margin: 0; padding-right: 20px; padding-left: 0; line-height: 2.1; font-size: 15.5px; }
.wizard { background: var(--surface); border: 2px solid var(--firouzeh); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.wsteps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.wsteps li { display: flex; align-items: center; gap: 6px; }
.wsteps .wnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #EDF1F0; font-weight: 700; font-size: 13px; }
.wsteps li.done { color: var(--ok); }
.wsteps li.done .wnum { background: var(--ok-bg); color: var(--ok); }
.wsteps li.now { color: var(--ink); font-weight: 700; }
.wsteps li.now .wnum { background: var(--firouzeh); color: #fff; }
.wbox { background: #EAF6F4; border-radius: 8px; padding: 12px 14px; }
.wbox p { margin: 6px 0 10px; }
.wwait { color: var(--deep); font-weight: 600; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid #9CCFC9; border-top-color: var(--firouzeh); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px; margin-left: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.wmode { margin-top: 10px; font-size: 13.5px; }
.wmode summary { font-weight: 500; color: var(--lapis); }
.wmode form { margin-top: 6px; }
.panel.big { border: 2px solid var(--firouzeh); }
.panel.big .btn { font-size: 16px; padding: 9px 22px; }
.panel.big ol.steps > li { margin-bottom: 10px; font-size: 15.5px; }
[hidden] { display: none !important; }

/* dropdown menu */
.dd { position: relative; }
.dd > summary { list-style: none; display: block; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: " ▾"; font-size: 11px; opacity: .8; }
.ddm { position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,40,40,.18); padding: 6px; z-index: 50; }
.ddm a { display: block; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 7px; font-size: 14.5px; white-space: nowrap; }
.ddm a:hover { background: #EEF5F3; }
.ddm a.on { background: #E2F1EE; font-weight: 700; }
.navtoggle { display: none; background: none; border: 1px solid #3F7F7B; color: #EAF6F4; border-radius: 8px; font-size: 20px; line-height: 1; padding: 4px 10px; cursor: pointer; margin-inline-start: auto; }
.who { white-space: nowrap; }
@media (max-width: 1080px) {
  .navtoggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--deep); flex-direction: column; align-items: stretch; padding: 8px 14px 14px; z-index: 40; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
  nav.main.open { display: flex; }
  nav.main > a, .dd > summary { padding: 10px 12px; }
  .ddm { position: static; box-shadow: none; border: 0; background: #0E5F5C; margin: 2px 0 6px; }
  .ddm a { color: #EAF6F4; }
  .ddm a:hover, .ddm a.on { background: #0A4F4D; color: #fff; }
  .who { margin-inline-start: 0; }
}
@media (max-width: 560px) {
  main { padding: 16px 12px 64px; }
  .panel { padding: 14px; }
  .who a { max-width: 90px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
  table.list th, table.list td { padding: 7px 8px; font-size: 13px; }
  h1 { font-size: 19px; }
  .row.spread { gap: 8px; }
}
/* back to top */
.totop { position: fixed; left: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--firouzeh); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 60; }
.totop:hover { background: var(--deep); }
/* floating help window */

.hwin { position: fixed; top: 90px; left: 24px; width: min(460px, calc(100vw - 24px)); max-height: 70vh; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(10,40,40,.28); z-index: 70; display: flex; flex-direction: column; }
.hwin .hbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--deep); color: #EAF6F4; border-radius: 12px 12px 0 0; cursor: move; user-select: none; touch-action: none; }
.hwin .hbar b { flex: 1; font-size: 14px; }
.hwin .hbar button, .hwin .hbar a { background: none; border: 1px solid #3F7F7B; color: #EAF6F4; border-radius: 6px; padding: 1px 8px; cursor: pointer; font-size: 13px; text-decoration: none; }
.hwin .hbody { overflow: auto; padding: 12px 16px; }
.hwin .hbody h2 { font-size: 16px; margin-top: 0; }
.hwin .help { font-size: 14.5px; line-height: 1.95; }
.hwin.min .hbody { display: none; }
@media (max-width: 560px) { .hwin { left: 6px; right: 6px; width: auto; top: auto; bottom: 70px; } }

/* session timer */
.sess { display: inline-flex; align-items: center; gap: 4px; font-size: 8.75px; color: #CFE9E5; border: 1px solid #3F7F7B; border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.sess b { font-weight: 600; }
.sess.warn { background: #9A5B00; border-color: #9A5B00; color: #fff; }
.sess.end { background: var(--err); border-color: var(--err); color: #fff; }
/* data tables */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar .search { display: flex; gap: 6px; flex: 1; min-width: 220px; max-width: 420px; }
.toolbar .search input { flex: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chipf { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 12px; font-size: 13px; text-decoration: none; color: var(--ink); }
.chipf.on { background: var(--firouzeh); border-color: var(--firouzeh); color: #fff; }
.tablewrap.scroll { max-height: 68vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tablewrap.scroll table.list { border: 0; border-radius: 0; min-width: 900px; }
table.list.grid thead th { position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 0 var(--line); }
table.list.grid tbody tr:nth-child(even) td { background: #FAFCFB; }
table.list.grid tbody tr:hover td { background: #F0F7F5; }
.nowrap { white-space: nowrap; }
.actions .btn, .actions form { margin-bottom: 3px; }
.cell-err { color: var(--err); font-size: 12.5px; margin-top: 3px; max-width: 320px; }
.tablefoot { margin-top: 10px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.pager .cur { background: var(--firouzeh); color: #fff; border-color: var(--firouzeh); }
.pager .off { opacity: .45; }
@media (max-width: 560px) { .sess { padding: 1px 6px; font-size: 11.5px; } .who .linkbtn { padding: 2px 7px; } }
.ddm form { margin: 0; display: block; }
.menuitem { display: block; width: 100%; text-align: right; background: none; border: 0; padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.menuitem:hover { background: #EEF5F3; }
.menuitem.danger { color: var(--err); }
.datecell { font-size: 13px; line-height: 1.5; text-align: right; }
.sess-l { opacity: .85; }
.sess b { font-size: 10px; }
@media (max-width: 420px) { .sess-l { display: none; } }

/* ---------- data table (modern, flat, responsive) ---------- */
.dtable { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dscroll { max-height: 66vh; overflow: auto; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.dt th { position: sticky; top: 0; z-index: 3; background: #F4F8F7; color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dt td { padding: 12px 14px; border-bottom: 1px solid #E6EEEB; vertical-align: middle; }
table.dt tbody tr:last-child td { border-bottom: 0; }
table.dt tbody tr { transition: background .12s; }
table.dt tbody tr:hover td { background: #F7FBFA; }
.cell-main { font-weight: 700; color: var(--ink); }
.cell-link { display: inline-block; font-size: 12.5px; color: var(--lapis); text-decoration: none; direction: ltr; white-space: nowrap; }
.cell-link:hover { text-decoration: underline; }
.sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.sub.only { margin-top: 0; }
.sub.ltr { direction: ltr; text-align: right; }
.cell-err { color: var(--err); font-size: 12px; margin-top: 4px; max-width: 340px; }
.cell-actions { width: 1%; white-space: nowrap; text-align: left; }
.cell-actions > * { vertical-align: middle; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 10px 2px 10px; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.idle { background: #EDF1F0; color: var(--muted); }
.dfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); background: #FAFCFB; font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* row action menu: opens as a floating layer (never clipped by the table) */
.rowmenu { display: inline-block; margin-inline-start: 6px; }
.rowmenu > summary { list-style: none; cursor: pointer; width: 32px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu > summary:hover, .rowmenu[open] > summary { background: #EEF5F3; border-color: #B7C8C3; }
.popmenu { position: fixed; z-index: 90; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(10,40,40,.2); padding: 6px; }
.popmenu a, .popmenu .menuitem { display: block; width: 100%; text-align: right; padding: 8px 12px; border-radius: 7px; font-size: 14px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.popmenu a:hover, .popmenu .menuitem:hover { background: #EEF5F3; }
.popmenu .menuitem.danger { color: var(--err); }
.popmenu .menuitem.danger:hover { background: var(--err-bg); }
.popmenu form { margin: 0; }
.popmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
/* small screens: each row becomes a card */
@media (max-width: 820px) {
  .dscroll { max-height: none; }
  table.dt thead { display: none; }
  table.dt, table.dt tbody, table.dt tr, table.dt td { display: block; width: 100%; }
  table.dt tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.dt tbody tr:last-child { border-bottom: 0; }
  table.dt td { border: 0; padding: 4px 96px 4px 0; position: relative; min-height: 24px; }
  table.dt td::before { content: attr(data-label); position: absolute; right: 0; top: 6px; width: 88px; color: var(--muted); font-size: 12px; }
  table.dt td:first-child { padding-right: 0; padding-bottom: 8px; }
  table.dt td:first-child::before { display: none; }
  table.dt tbody tr:hover td { background: none; }
  .badge { margin-bottom: 2px; }
  table.dt td.cell-actions { display: flex; gap: 6px; justify-content: flex-start; padding: 10px 0 0; width: 100%; }
  table.dt td.cell-actions::before { display: none; }
  .sub { white-space: normal; }
}

/* ---- help: one control, two ways to open */
.helpdd { position: relative; }
.helpbtn { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 12px; cursor: pointer; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.helpbtn:hover, .helpdd.open .helpbtn { border-color: var(--firouzeh); box-shadow: 0 0 0 3px rgba(11,122,117,.10); }
.helpbtn .hi { width: 20px; height: 20px; border-radius: 50%; background: var(--firouzeh); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.helpbtn .car { font-size: 10px; color: var(--muted); transition: transform .15s; }
.helpdd.open .car { transform: rotate(180deg); }
.helpmenu { position: absolute; inset-inline-end: 0; top: 100%; padding-top: 6px; z-index: 40; min-width: 250px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .14s, visibility .14s; }
.helpmenu::before { content: ""; position: absolute; inset: 6px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,37,44,.14); z-index: -1; }
.helpdd.open .helpmenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .helpdd:hover .helpmenu, .helpdd:focus-within .helpmenu { opacity: 1; visibility: visible; transform: none; } }
.helpmenu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; margin: 4px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.helpmenu a:hover, .helpmenu a:focus-visible { background: #EAF4F2; }
.helpmenu .mi { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #E3F1EF; color: var(--firouzeh); display: grid; place-items: center; font-weight: 700; }
.helpmenu b { display: block; font-size: 13.5px; }
.helpmenu small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---- confirmation dialog */
.cfm-bg { position: fixed; inset: 0; z-index: 200; background: rgba(10,30,34,.42); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .16s; backdrop-filter: blur(2px); }
.cfm-bg.in { opacity: 1; }
.cfm { width: min(420px, 100%); background: var(--surface); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(10,30,34,.28); transform: translateY(8px) scale(.98); transition: transform .16s; text-align: center; }
.cfm-bg.in .cfm { transform: none; }
.cfm-ic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; background: #E3F1EF; color: var(--firouzeh); }
.cfm.danger .cfm-ic { background: var(--err-bg); color: var(--err); }
.cfm h2 { margin: 0 0 6px; font-size: 17px; }
.cfm p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.9; overflow-wrap: anywhere; }
.cfm-act { display: flex; gap: 10px; }
.cfm-act .btn { flex: 1; justify-content: center; }
body.cfm-open { overflow: hidden; }

/* ---- footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.fbrand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.fbrand svg { width: 18px; height: 18px; }
.foot .sep { opacity: .5; margin: 0 2px; }
.flinks { display: flex; gap: 16px; align-items: center; }
.flinks a { color: var(--muted); text-decoration: none; }
.flinks a:hover { color: var(--firouzeh); }
.foot .ver { background: var(--bg); border-radius: 999px; padding: 0 8px; }
.foot.bare { background: transparent; border-top: 0; }
.foot.bare .foot-in { justify-content: center; gap: 6px; padding: 14px 20px 18px; }
@media (max-width: 600px) { .foot-in { justify-content: center; text-align: center; } }
.cfm .btn.danger { background: var(--err); color: #fff; border-color: var(--err); }
.cfm .btn.danger:hover { background: #962019; }

/* ---- guided steps: slim reminder away from the step's page */
.wizard.slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; border-width: 1px; border-color: var(--line); padding: 8px 14px; margin-bottom: 14px; }
.wizard.slim .wsteps { margin: 0; font-size: 13px; }
.wizard.slim .wnum { width: 21px; height: 21px; font-size: 12px; }
.wgo { font-size: 13.5px; font-weight: 700; color: var(--firouzeh); text-decoration: none; white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: #E3F1EF; }
.wgo:hover { background: #D3EAE6; }

/* ---- help search */
.hsearch { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 8px; margin: 4px 0 18px; transition: border-color .15s, box-shadow .15s; }
.hsearch:focus-within { border-color: var(--firouzeh); box-shadow: 0 0 0 4px rgba(11,122,117,.10); }
.hs-ic { width: 20px; height: 20px; flex: none; color: var(--muted); margin-inline-start: 8px; }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 4px; font-size: 15px; }
.hsearch input:focus-visible { outline: 0; }
.hresults h2 { font-size: 16px; }
.hres { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.hres + .hres { margin-top: 4px; }
.hres:hover { background: #F2F8F7; border-color: var(--line); }
.hres b { display: block; color: var(--lapis); }
.hres .hg { float: left; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 10px; }
.hres .hsnip { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.hres mark, .helplist mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 2px; }
.hgroup[hidden] { display: none; }
.hnone { color: var(--muted); }
.hnone[hidden], .helplist li[hidden] { display: none; }
.hsearch input[type=search], .hsearch input[type=search]:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: 0; }
