@font-face { font-family: 'PT Serif'; src: url('/fonts/PTSerif_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PT Serif'; src: url('/fonts/PTSerif_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --slate: #3E474B;
  --slate-2: #2E3538;
  --slate-3: #566267;
  --gold: #C5A55A;
  --gold-d: #A88A42;
  --gold-l: #F5EEDC;
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --line: #E4E1D8;
  --ink: #1F2528;
  --muted: #6B7478;
  --ok: #2F7A4F;   --ok-bg: #E4F2EA;
  --warn: #9A6A12; --warn-bg: #FBF0D9;
  --info: #3F5F7A; --info-bg: #E6EEF5;
  --err: #A23B32;  --err-bg: #F8E5E2;
  --r: 12px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink); background: var(--bg); }
a { color: var(--slate); }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.mt { margin-top: 18px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.test-banner { background: repeating-linear-gradient(45deg, #FBF0D9, #FBF0D9 12px, #F6E6C2 12px, #F6E6C2 24px); color: #6d4c0c; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; }

/* ---------- Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--slate); color: #fff; }
.btn.dark:hover { background: var(--slate-2); }
.btn.gold { background: var(--gold); color: #1f1a0e; }
.btn.gold:hover { background: #BA9A4E; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #cfcabd; }
.btn.danger, .link-btn.danger { color: var(--err); }
.btn.wide { width: 100%; }
.btn.big { padding: 14px 18px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 4px 6px; font: 600 13px var(--sans); color: var(--slate); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn .ic { width: 15px; height: 15px; }
.icon-btn { background: none; border: 0; color: #c9d0d2; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Forma */
label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-3); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 15px var(--sans); color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.form label { margin-bottom: 14px; }
.fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fields6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.fields6 label { margin-bottom: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.alert { border-radius: 10px; padding: 11px 14px; margin: 0 0 16px; font-size: 14px; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Kirish sahifasi */
body.auth { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0%, #56626a 0%, var(--slate-2) 70%); }
.auth-card { margin: auto; width: min(380px, calc(100% - 32px)); background: var(--card); border-radius: 18px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center; }
.auth-card label { text-align: left; margin-bottom: 14px; }
.auth-logo { width: 84px; height: 84px; }
.auth-card h1 { margin-top: 10px; }
.auth-card p { margin: 4px 0 22px; }

/* ---------- Panel */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--slate); color: #dfe4e5; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 6px 8px; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; color: #aab4b7; font-size: 12px; }
.new-btn { width: 100%; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #cfd6d8; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(197,165,90,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid rgba(255,255,255,.1); }
.me > span:nth-child(2) { flex: 1; min-width: 0; }
.me b { display: block; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { color: #aab4b7; font-size: 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1f1a0e; display: grid; place-items: center; font-weight: 700; flex: none; }
.me form { margin: 0; }
.main { padding: 28px 32px 48px; min-width: 0; max-width: 1240px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-h h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-h p { margin: 6px 0 0; }
.crumb { margin: 0 0 4px !important; font-size: 13px; }
.crumb a { color: var(--muted); }
.h-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 460px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.stat:hover { border-color: var(--gold); }
.stat small { display: block; color: var(--muted); font-size: 13px; }
.stat b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; margin-top: 4px; }

.funnel { display: flex; flex-direction: column; gap: 14px; }
.f-row { display: grid; grid-template-columns: 26px 90px 1fr 44px; align-items: center; gap: 10px; }
.f-n { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.f-bar { height: 10px; background: #EFEDE6; border-radius: 6px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--slate); border-radius: 6px; }
.f-row:last-child .f-bar i { background: var(--gold); }
.f-row b { text-align: right; font-variant-numeric: tabular-nums; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed a { text-decoration: none; color: var(--ink); }
.feed span { color: var(--muted); grid-column: 1; font-size: 13px; }
.feed time { color: var(--muted); font-size: 12px; grid-column: 2; grid-row: 1 / 3; align-self: center; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.st-sent { background: var(--info-bg); color: var(--info); }
.st-open { background: var(--warn-bg); color: var(--warn); }
.st-signed { background: var(--ok-bg); color: var(--ok); }
.st-cancel { background: var(--err-bg); color: var(--err); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 300px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { margin: 0; padding-left: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 500; }
.chip.on { background: var(--slate); color: #fff; border-color: var(--slate); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 12px 16px; background: #FAF9F6; border-bottom: 1px solid var(--line); }
.list td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tbody tr { cursor: pointer; }
.list tbody tr:hover { background: #FBFAF7; }
.list tr:last-child td { border-bottom: 0; }
.list td small { display: block; color: var(--muted); font-size: 12.5px; }
.list td a { text-decoration: none; }
.list td.actions { cursor: default; }
.list .acts { display: flex; gap: 2px 6px; flex-wrap: wrap; align-items: center; }
.list .acts form { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; }
.pager a { min-width: 34px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }
.pager a.on { background: var(--slate); color: #fff; border-color: var(--slate); }

.person { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin-bottom: 12px; background: #FCFBF8; }
.person-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.person:only-child [data-remove] { visibility: hidden; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.steps li { padding: 14px 16px; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps span { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done span .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.steps small { color: var(--muted); font-size: 12.5px; }

.link-card { border-color: #E7D9B5; background: linear-gradient(0deg, #fff, #FFFCF4); }
.link-card p { margin: -6px 0 14px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #fff; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row-actions form { margin: 0; }
.ok-card { border-color: #BFDCC9; }
.ok-card h2 { color: var(--ok); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.scroll-x { overflow-x: auto; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini th, .mini td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.mini th { background: #FAF9F6; font-weight: 600; }
.chain { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.chain .ic { width: 14px; height: 14px; }
.chain.ok { background: var(--ok-bg); color: var(--ok); }
.chain.bad { background: var(--err-bg); color: var(--err); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); max-height: 520px; overflow: auto; }
.timeline li { position: relative; padding: 0 0 14px 12px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.timeline time { display: block; color: var(--muted); font-size: 12.5px; }
.timeline code { font-size: 11px; color: #9aa2a5; }

/* ---------- Mijoz sahifalari */
body.public { background: #EEECE6; }
.pub-h { background: var(--slate); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.pub-h img { width: 40px; height: 40px; }
.pub-h b { display: block; letter-spacing: .04em; }
.pub-h small { color: #b9c2c5; font-size: 12.5px; }
.pub-main { max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; }
.pub-f { text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 16px 28px; }
.pub-intro { background: var(--card); border-radius: var(--r); padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); }
.pub-intro h1 { font-size: 21px; }
.pub-intro p { margin: 8px 0 12px; color: #3e464a; }
.pub-meta { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.preview-note { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }

.doc-wrap { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 32px 36px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.doc { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: #1d2224; }
.doc p { margin: 0 0 8px; text-align: justify; hyphens: auto; }
.doc p.ind { padding-left: 18px; }
.doc h3 { text-align: center; font-size: 15.5px; margin: 22px 0 10px; }
.doc-t { text-align: center; font-size: 18px; margin: 0; display: block; }
.doc-st { text-align: center !important; font-weight: 700; margin: 4px 0 18px !important; }
.doc-date { display: flex; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.doc-right { text-align: right; font-size: 14px; margin-bottom: 12px; }
.doc-sep { border: 0; border-top: 1px dashed #cfc8b4; margin: 32px 0 20px; }
.req { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #bbb; margin: 10px 0 16px; }
.req > div { padding: 12px 14px; }
.req > div + div { border-left: 1px solid #bbb; }
.req h4 { margin: 0 0 8px; text-align: center; }
.req p { text-align: left; margin: 0 0 4px; font-size: 14.5px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 12px; }
.doc-table th, .doc-table td { border: 1px solid #aaa; padding: 6px 7px; text-align: left; vertical-align: top; }
.doc-table th { background: #F6F4EE; }

.sign-box { background: var(--card); border: 2px solid var(--gold); border-radius: var(--r); padding: 18px 18px 14px; margin-top: 16px; scroll-margin-top: 16px; }
.read-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--slate); color: #fff; font: 600 14px var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
.read-bar.gone { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--slate); }
.check input:disabled + span { color: #9aa2a5; }
#get-code { margin: 4px 0 10px; }
#code-step p { margin: 6px 0 10px; font-size: 14px; }
.test-code { background: var(--gold-l); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px; text-align: center; margin-bottom: 10px; font-size: 13px; color: #6d5415; }
.test-code b { display: block; font-size: 28px; letter-spacing: .3em; font-family: ui-monospace, Consolas, monospace; color: var(--ink); }
.code-input { text-align: center; font-size: 26px; letter-spacing: .5em; font-family: ui-monospace, Consolas, monospace; margin: 0 0 10px; padding: 12px; }
.sign-box .small { margin: 8px 0 0; }

.done-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 36px 24px; text-align: center; }
.done-card h1 { font-size: 22px; margin: 14px 0 8px; }
.done-card > p { margin: 8px auto; max-width: 520px; }
.done-card .btn { margin: 14px 0 8px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto; }
.done-ic .ic { width: 34px; height: 34px; stroke-width: 2.2; }
.done-card.bad .done-ic { background: var(--err-bg); color: var(--err); }
.kv.left { text-align: left; max-width: 560px; margin: 22px auto 0; }
.file-check { text-align: left; max-width: 560px; margin: 26px auto 0; border-top: 1px solid var(--line); padding-top: 18px; }
.file-check h2 { margin-bottom: 4px; }
#file-res { font-weight: 600; }
#file-res.ok { color: var(--ok); }
#file-res.bad { color: var(--err); }

/* ---------- Moslashuvchan */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .fields6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 8px; }
  .brand { padding: 0; }
  .brand small, .new-btn { display: none; }
  .side nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 4px; }
  .side nav a { padding: 8px 10px; white-space: nowrap; font-size: 14px; }
  .side nav a span { display: none; }
  .side nav a.on span { display: inline; }
  .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  .me > span:nth-child(2) { display: none; }
  .main { padding: 18px 16px 40px; }
  h1 { font-size: 21px; }
  .fields2, .fields6 { grid-template-columns: 1fr; }
  .list th:nth-child(3), .list td:nth-child(3), .list th:nth-child(4), .list td:nth-child(4) { display: none; }
  .list th, .list td { padding: 10px 12px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .linkbox { flex-direction: column; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
  .doc-wrap { padding: 20px 16px; }
  .doc { font-size: 15px; }
  .req { grid-template-columns: 1fr; }
  .req > div + div { border-left: 0; border-top: 1px solid #bbb; }
  .f-row { grid-template-columns: 24px 76px 1fr 36px; }
}

/* ---------- Xodimlar */
.staff-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; align-items: end; }
.staff-form .btn { margin-bottom: 14px; }
.staff-form .full { grid-column: 1 / -1; margin: 0; }
.staff-form label[hidden] { display: none; }
.nowrap { white-space: nowrap; }
.role-owner { background: var(--gold-l); color: var(--gold-d); }
.role-admin { background: #E3E6EF; color: #3B4A73; }
.role-operator { background: #EEEDE8; color: var(--slate-3); }
.list tr.off td { opacity: .55; }
.list.staff tbody tr { cursor: default; }
.move { display: inline-flex; gap: 4px; align-items: center; }
.move select { margin: 0; padding: 4px 6px; font-size: 13px; width: auto; max-width: 140px; }

/* ---------- 2026-09 o'zgarishlari */
.fields3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.auth-card h1 { letter-spacing: .04em; margin-bottom: 0; }
.auth-sub { margin: 2px 0 4px !important; color: var(--gold-d); font-weight: 600; }
.pub-intro p.upper { text-transform: none; font-weight: 600; font-size: 14px; letter-spacing: .01em; line-height: 1.55; }

/* Xodim tanlovi va davr tugmalari */
.sub-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.staff-pick { display: inline-flex; margin: 0; }
.pick { position: relative; display: inline-flex; align-items: center; margin: 0; font-weight: 600; }
.pick .ic { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--slate-3); pointer-events: none; }
.pick select { margin: 0; width: auto; max-width: 280px; padding: 7px 30px 7px 32px; border-radius: 999px; font: 600 13.5px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.pick select:hover { border-color: var(--gold); }
.seg { display: inline-flex; margin-left: auto; background: #EFEDE6; border-radius: 999px; padding: 3px; gap: 2px; }
.seg a { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--slate-3); text-decoration: none; }
.seg a.on { background: var(--slate); color: #fff; }

/* Mijoz sahifasi: qisqa bo'limlar */
.sec { position: relative; border-bottom: 1px solid #EEEAE0; padding-bottom: 6px; margin-bottom: 6px; }
.sec.collapsed .sec-body { max-height: 5.2em; overflow: hidden; position: relative; }
.sec.collapsed .sec-body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.sec-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #FCFBF8; color: var(--slate); font: 600 13px var(--sans); cursor: pointer; }
.sec-toggle:hover { border-color: var(--gold); }
.sec .less, .sec.collapsed .more { display: inline; }
.sec .more, .sec.collapsed .less { display: none; }

/* 1-ilova: shaxsiy ma'lumotlar izohi */
.privacy { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; background: #FAF6EA; border: 1px solid #E7D9B5; border-radius: 12px; font-family: var(--sans); }
.privacy b { display: block; color: var(--slate); font-size: 15px; margin-bottom: 4px; }
.privacy p { margin: 0 !important; font-size: 14px; line-height: 1.55; color: #3a4245; text-align: left !important; }
.privacy-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.privacy-ic .ic { width: 18px; height: 18px; stroke-width: 2; }

/* Xodimlar: imkoniyatlar va kod bilan tasdiqlash */
.perm-box { position: relative; }
.perm-box > summary { list-style: none; }
.perm-box > summary::-webkit-details-marker { display: none; }
.perm-box[open] > summary { color: var(--gold-d); }
.perm-form { position: absolute; right: 0; top: 100%; z-index: 10; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: 14px 14px 10px; }
.perm-form .check { font-size: 13.5px; margin-bottom: 8px; }
.perm-form .btn { width: 100%; margin-top: 4px; }
.confirm-form { max-width: 420px; }
.confirm-form p { margin: 0 0 8px; }
.confirm-form .code-input { margin-top: 6px; }

@media (max-width: 760px) {
  .fields3 { grid-template-columns: 1fr; }
  .seg { margin-left: 0; }
  .pick select { max-width: 220px; }
  .perm-form { position: static; width: auto; box-shadow: none; margin-top: 6px; }
}

/* ---------- CRM jadvali */
.crm-period { align-items: flex-end; }
.crm-period label { margin: 0; }
.crm-period input { margin-top: 4px; width: auto; }
.crm-table td { vertical-align: top; }
.crm-table tbody tr { cursor: default; }
.pilgrims { margin: 0; padding-left: 18px; }
.pilgrims li { margin: 0 0 2px; }
