@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --bg: #f6f4f0; --surface: #fff; --surface-2: #f2efea; --surface-3: #eae5de;
  --text: #302b31; --muted: #716b74; --line: #e5dfd9;
  --brand: #b45c46; --brand-dark: #994b38; --brand-soft: #f9ece5;
  --plum: #302331; --plum-light: #493b49; --lime: #e8efc6;
  --danger: #aa3e3e; --success: #3f735b; --warning: #946519;
  --shadow: 0 12px 36px rgba(48,35,49,.055); --shadow-raised: 0 18px 46px rgba(48,35,49,.12);
  --radius: 20px; --sidebar-width: 248px;
  font-family: Manrope, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; }
::selection { background: #e5eabf; color: var(--plum); }
:focus-visible { outline: 3px solid #9b694c; outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 750; }
h1 { margin-bottom: 10px; font-size: clamp(27px,4.5vw,38px); letter-spacing: -.045em; }
h2 { margin-bottom: 16px; font-size: 21px; letter-spacing: -.028em; }
h3 { margin-bottom: 8px; font-size: 16px; letter-spacing: -.018em; }
p { margin-bottom: 14px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 10px; line-height: 1.5; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.svg-icon, .icon svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.7; }
.stack { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: white; color: var(--plum); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.menu-open { overflow: hidden; }

/* Application frame */
.app-shell { min-height: 100dvh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(18px,env(safe-area-inset-top)) 22px 18px; background: rgba(246,244,240,.94); border-bottom: 1px solid rgba(229,223,217,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.page-heading { min-width: 0; }
.page-kicker { display: block; margin: 0 0 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
#page-description { margin: 5px 0 0; color: var(--muted); font-size: 12px; max-width: 640px; }
.topbar .eyebrow { margin-bottom: 3px; font-size: 10px; }
.topbar-actions { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.header-date { display: none; color: var(--muted); font-size: 12px; white-space: nowrap; }
.profile-avatar, .user-avatar { width: 39px; height: 39px; border-radius: 14px; display: grid; place-items: center; background: #e7dccf; color: #68543d; flex-shrink: 0; font-size: 13px; font-weight: 750; letter-spacing: .025em; }
.profile-avatar { border: 1px solid rgba(110,86,59,.12); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; color: var(--text); transition: background .16s,border-color .16s; }
.icon-button:hover { background: var(--surface-2); border-color: #cbbfb5; }
.view { width: min(100%,1320px); margin: 0 auto; padding: 24px 20px 36px; min-width: 0; }
.view > * { min-width: 0; }
.view > .section-head:first-child { margin-top: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e4d8cd; background: #f4ede5; color: #7b604a; padding: 6px 10px; border-radius: 9px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; min-height: 72px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; gap: 3px; padding: 8px max(9px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -5px 24px rgba(48,35,49,.035); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 52px; padding: 7px 3px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 10px; line-height: 1.25; font-weight: 600; transition: color .18s,background .18s; }
.nav-button .icon { display: inline-flex; align-items: center; justify-content: center; font-size: 21px; }
.nav-button.active { color: var(--brand); background: var(--brand-soft); }
.nav-button:hover { background: var(--surface-2); }
.nav-button.active:hover { background: #f4e3d8; }
.nav-button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Navigation drawer */
.nav-sheet { position: fixed; inset: auto 0 0; width: min(100%,680px); max-width: 100%; max-height: min(90dvh,850px); margin: auto auto 0; padding: 24px 22px calc(20px + env(safe-area-inset-bottom)); color: var(--text); background: var(--bg); border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -14px 70px rgba(32,23,33,.16); overscroll-behavior: contain; }
.nav-sheet::backdrop { background: rgba(36,26,36,.4); backdrop-filter: blur(3px); }
.nav-sheet[open] { animation: sheet-appear .2s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sheet-head h2 { margin: 0; font-size: 25px; }
.sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.nav-search { display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); }
.nav-search input { border: 0; background: transparent; box-shadow: none; padding: 13px 0; }
.nav-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180,92,70,.1); }
.nav-search input:focus { box-shadow: none; }
.sheet-grid { display: grid; gap: 22px; margin-top: 22px; }
.sheet-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sheet-group h3, .sheet-group .nav-group-title { grid-column: 1/-1; margin: 0 0 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.menu-link { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); text-align: left; font-size: 12px; font-weight: 600; }
.menu-link > span:not(.icon) { min-width: 0; overflow-wrap: anywhere; }
.menu-link .svg-icon { color: #978275; }
.menu-link.active { background: var(--brand-soft); border-color: #e8c6b8; color: var(--brand-dark); }
.menu-link.active .svg-icon { color: var(--brand); }
.menu-arrow { margin-left: auto; width: 15px !important; height: 15px !important; opacity: .45; }
.menu-empty { grid-column: 1/-1; padding: 25px 0; color: var(--muted); text-align: center; }
.sheet-user { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-user strong { display: block; font-size: 13px; }
.sheet-user small, .sheet-user > span { display: block; color: var(--muted); }

/* Home */
.dashboard-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.dashboard-intro h2 { margin-bottom: 7px; font-size: clamp(26px,4.3vw,34px); font-weight: 650; letter-spacing: -.045em; }
.dashboard-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; white-space: nowrap; color: #716575; font-size: 12px; }
.date-pill .svg-icon { width: 16px; height: 16px; }
.dashboard-grid { display: grid; gap: 20px; align-items: start; }
.overview-panel { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-heading h2, .panel-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading .svg-icon { color: #9a8b83; }
.panel-heading .badge { color: #796b5c; background: #f2ece3; }
.dashboard-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.dashboard-stats .stat { text-align: left; padding: 16px; border: 0; min-height: 142px; box-shadow: none; background: #f5f2eb; transition: transform .18s,filter .18s; }
.dashboard-stats .stat:hover { transform: translateY(-2px); filter: saturate(1.2); }
.dashboard-stats .stat:nth-child(4n+1) { background: #f5eae2; }
.dashboard-stats .stat:nth-child(4n+2) { background: #ebeddb; }
.dashboard-stats .stat:nth-child(4n+3) { background: #ece8f1; }
.dashboard-stats .stat:nth-child(4n+4) { background: #e7eeeb; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 10px; color: #856657; background: rgba(255,255,255,.6); }
.stat-icon .svg-icon { width: 18px; height: 18px; }
.stat-value { color: var(--text); font-size: 32px; font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.stat-label { display: block; margin-top: 7px; color: #736872; font-size: 12px; line-height: 1.4; }
.stat small { color: #827581; font-size: 11px; }
.stat-arrow { position: absolute; top: 19px; right: 17px; width: 15px; height: 15px; opacity: .35; }
.quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.quick-action { display: flex; align-items: center; gap: 13px; padding: 19px 16px; min-width: 0; min-height: 92px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--text); text-align: left; transition: border-color .18s,transform .18s,box-shadow .18s; }
.quick-action:hover { border-color: #c6b4a6; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(48,35,49,.055); }
.quick-icon { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border-radius: 13px; background: #f2eee7; color: #897562; }
.quick-action:nth-child(3n+2) .quick-icon { background: #eef0df; color: #748044; }
.quick-action:nth-child(3n+3) .quick-icon { background: #f4e8e2; color: #af735d; }
.quick-copy { min-width: 0; flex: 1; }
.quick-copy strong, .quick-copy h3 { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.quick-copy span, .quick-copy p { display: block; margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.quick-arrow { flex-shrink: 0; color: #a8998d; width: 16px; height: 16px; }
.activity-panel { border: 1px solid var(--line); border-radius: 23px; padding: 22px 19px 14px; background: #fffefa; }
.activity-panel .panel-heading { margin-bottom: 12px; padding: 0 3px; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.action-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 3px; border: 0; border-top: 1px solid #eee8e1; background: transparent; color: var(--text); text-align: left; }
.action-row:hover .action-row-copy strong { color: var(--brand); }
.action-row-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #f3eee7; color: #a1856a; flex-shrink: 0; }
.action-row-copy { flex: 1; min-width: 0; }
.action-row-copy strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.4; }
.action-row-copy span, .action-row-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.action-count { display: grid; place-items: center; flex-shrink: 0; min-width: 28px; height: 27px; padding: 0 7px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; }
.all-clear { padding: 25px 5px 20px; text-align: center; }
.all-clear-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 17px; background: #edf1de; color: #778754; }
.all-clear strong { display: block; font-size: 15px; margin-bottom: 7px; }
.all-clear p { margin: 0; color: var(--muted); font-size: 12px; }
.home-note { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; overflow: hidden; margin-top: 20px; padding: 23px; border: 0; border-radius: 21px; background: var(--lime); color: #47513d; text-align: left; }
.home-note > span { flex: 1; min-width: 0; position: relative; z-index: 1; }
.home-note strong { display: block; color: #394632; font-size: 14px; margin-bottom: 5px; }
.home-note span span { display: block; font-size: 11px; line-height: 1.6; }
.home-note .svg-icon { width: 23px; height: 23px; color: #728348; }
.home-note::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(95,116,56,.15); border-radius: 50%; right: -38px; top: -25px; box-shadow: 0 0 0 23px rgba(95,116,56,.04),0 0 0 47px rgba(95,116,56,.03); pointer-events: none; }

/* Shared cards and data */
.stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 28px; }
.stat { position: relative; min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.stat strong { display: block; margin-bottom: 5px; font-size: 31px; font-weight: 650; line-height: 1.15; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 12px; }
.stats-grid .stat:nth-child(1) { border-top: 3px solid #d7ac93; }
.stats-grid .stat:nth-child(2) { border-top: 3px solid #b8ba8c; }
.stats-grid .stat:nth-child(3) { border-top: 3px solid #a5b9ad; }
.stats-grid .stat:nth-child(4) { border-top: 3px solid #b3a2bd; }
.stats-grid .stat .stat-icon { margin-bottom: 12px; }
.dashboard-stats .stat:first-child { background: var(--plum); border-top-color: #8e788f; }
.dashboard-stats .stat:first-child .stat-value { color: #fffaf4; }
.dashboard-stats .stat:first-child .stat-label { color: #ded2dd; }
.dashboard-stats .stat:first-child .stat-icon { background: rgba(232,239,198,.13); color: var(--lime); }
.dashboard-stats .stat:first-child .stat-arrow { color: var(--lime); opacity: .8; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 15px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head .actions { margin-top: 0; }
.section-head > div { min-width: 0; }
.section-block { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #f0ede7; }
.section-block .section-head:first-child { margin-top: 0; }
.monthly-schedule { margin: 18px 0; }
.social-history { margin-top: 14px; }
.social-history summary { cursor: pointer; font-weight: 650; }
.social-history-entry { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.social-history-entry span { color: var(--muted); font-size: 12px; }
.monthly-schedule summary { font-size: 13px; font-weight: 700; cursor: pointer; }
.schedule-recipients { min-width: 0; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.schedule-recipients legend { padding: 0 5px; font-size: 12px; }
.card-list { display: grid; gap: 15px; align-items: start; }
.card-list > .empty, .card-list > .empty-state { grid-column: 1/-1; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; box-shadow: 0 3px 10px rgba(48,35,49,.018); overflow-wrap: anywhere; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-top > div { min-width: 0; flex: 1; }
.card-top .badge { flex-shrink: 0; }
.card p { font-size: 13px; }
.card p:last-child { margin-bottom: 0; }
.card.button { text-align: left; white-space: normal; }
.card.button p { font-weight: 400; }
.card .notice { margin-top: 15px; }
.card-list + .card-list, .card-list + .form-card, .form-card + .card-list, .form-card + .form-card { margin-top: 16px; }
[id$="-form-slot"]:not(:empty), [id$="-action-slot"]:not(:empty), [id$="-detail-slot"]:not(:empty) { margin: 18px 0; }
.meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.meta span { overflow-wrap: anywhere; }
.compact-history { display: grid; gap: 5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.compact-history strong { color: var(--text); font-size: 12px; }
.linked-account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); font-size: 12px; }
.linked-account span { color: var(--muted); }
.linked-account a { margin-left: auto; }
.bundle-summary { display: grid; gap: 8px; margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #faf8f5; font-size: 12px; }
.bundle-summary div { display: flex; flex-wrap: wrap; gap: 6px; }
.bundle-summary span { padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.bundle-members { display: grid; gap: 11px; margin-top: 14px; }
.bundle-member { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 15px; border-radius: 14px; background: var(--surface-2); }
.bundle-member .actions, .bundle-member .bundle-secret { grid-column: 1/-1; }
.ticket-history { display: grid; gap: 11px; margin-top: 13px; }
.ticket-history > div { padding: 13px 15px; border-left: 3px solid #c0a090; border-radius: 0 12px 12px 0; background: var(--surface-2, #f8f4f0); color: var(--text, inherit); } /* 29.10: тёмная тема */
.ticket-history strong, .ticket-history span { display: block; }
.ticket-history span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.ticket-history p { margin: 8px 0 0; white-space: pre-wrap; }
.creator-full-card { display: grid; gap: 22px; }
.creator-full-card .stats-grid { margin: 0; }
.creator-card-section { display: grid; gap: 10px; }
.creator-card-section h3 { margin: 0 0 3px; }
.compact-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fbf9f6; }
.compact-row > div { min-width: 0; flex: 1; display: grid; gap: 4px; }
.compact-row strong { font-size: 13px; }
.compact-row span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.compact-row a { font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.detail-grid > div { display: grid; gap: 5px; padding: 13px; border-radius: 12px; background: var(--surface-2); }
.detail-grid span { color: var(--muted); font-size: 11px; }
.compact-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compact-stats span { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.compact-stats strong { color: var(--text); font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.compact-stats + p { margin-top: 15px; }

/* Receipts and list tools */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 18px; }
.toolbar-copy { min-width: 0; }
.toolbar-copy h2 { margin: 0 0 5px; font-size: 21px; }
.toolbar-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 200px; max-width: 400px; padding: 0 13px; background: #f7f5f1; border: 1px solid transparent; border-radius: 11px; color: #9b9088; }
.search-field input { min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 11px 0; font-size: 12px; }
.search-field input:focus { box-shadow: none; }
.search-field:focus-within { border-color: #be9988; box-shadow: 0 0 0 3px rgba(180,92,70,.07); }
.filter-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 3px; background: #f5f2ed; border-radius: 11px; }
.filter-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: #877a73; font-size: 11px; font-weight: 600; white-space: nowrap; transition: color .16s,background .16s; }
.filter-tab[aria-pressed="true"], .filter-tab.active { color: var(--text); background: white; box-shadow: 0 2px 5px rgba(48,35,49,.08); }
.filter-tab:hover { color: var(--text); }
.filter-tab span { font-size: 10px; opacity: .7; }
.results-label { margin: 18px 1px 12px; color: var(--muted); font-size: 11px; }
.receipt-list { display: grid; gap: 14px; }
.receipt-list .card { box-shadow: none; }
.receipt-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.receipt-stats .stat { text-align: left; padding: 21px 23px; min-height: 155px; transition: box-shadow .18s,transform .18s; }
.receipt-stats .stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.receipt-stats .stat:nth-child(1) .stat-icon { background: #f5eae2; color: #a57756; }
.receipt-stats .stat:nth-child(2) .stat-icon { background: #eee8f2; color: #8c7198; }
.receipt-stats .stat:nth-child(3) .stat-icon { background: #eaf0e5; color: #738f5b; }
.receipt-stats .stat[aria-pressed="true"] { outline: 2px solid #bb9176; outline-offset: 2px; }
.receipt-person { display: flex; align-items: center; gap: 12px; }
.receipt-person > div { min-width: 0; }
.receipt-person .eyebrow { margin-bottom: 4px; }
.receipt-person h3 { margin-bottom: 0; font-size: 15px; }
.receipt-avatar { display: grid; place-items: center; width: 42px; height: 44px; flex-shrink: 0; border-radius: 13px; background: #f0e7dd; color: #a08065; font-size: 13px; font-weight: 650; }
.receipt-summary { display: flex; flex-direction: column; gap: 4px; padding: 19px 0 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.receipt-amount { color: var(--text); font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.receipt-summary > span { font-size: 12px; }
.receipt-card .actions { padding-top: 16px; border-top: 1px solid var(--line); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; padding: 36px 24px 42px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.8); text-align: center; grid-column: 1/-1; }
.empty-art { position: relative; display: grid; place-items: center; width: 128px; height: 116px; margin-bottom: 22px; isolation: isolate; }
.empty-orbit { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: #f1ece4; z-index: -1; }
.empty-orbit::before { content: ""; position: absolute; width: 19px; height: 19px; border-radius: 6px; background: #dce6b5; top: 8px; right: 2px; transform: rotate(20deg); }
.empty-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #dab59f; left: 1px; bottom: 18px; }
.empty-document { display: grid; place-items: center; width: 63px; height: 79px; border: 1px solid #e8ded1; border-radius: 10px; background: white; box-shadow: 5px 9px 16px rgba(92,72,55,.1); color: #b9947b; transform: rotate(-8deg); }
.empty-document .svg-icon { width: 35px; height: 35px; stroke-width: 1.2; }
.empty-check { position: absolute; display: grid; place-items: center; right: 15px; bottom: 9px; width: 33px; height: 33px; border: 3px solid white; border-radius: 50%; background: #dfe9ba; color: #7b8e4b; box-shadow: 0 3px 8px rgba(72,89,48,.08); }
.empty-check .svg-icon { width: 16px; height: 16px; stroke-width: 2; }
.empty-title { margin: 0 0 9px; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.empty-copy { max-width: 360px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state .button { margin-top: 3px; }
.empty { grid-column: 1/-1; padding: 38px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.65); text-align: center; color: var(--muted); font-size: 13px; }
.empty h3 { color: var(--text); font-size: 17px; }
.empty p { max-width: 440px; margin-left: auto; margin-right: auto; }

/* States */
.badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: #82776d; font-size: 10px; line-height: 1.4; font-weight: 650; white-space: normal; }
.badge.pending_approval, .badge.waiting_address, .badge.pending, .badge.requested, .badge.waiting, .badge.needs_revision, .badge.scheduled { color: #91652b; background: #fbf1d9; }
.badge.queued, .badge.ready, .badge.submitted, .badge.in_progress, .badge.in_school, .badge.packing { color: #686087; background: #ede9f4; }
.badge.offered, .badge.reserved, .badge.shipped { color: #3f7885; background: #e5f0f2; }
.badge.assigned, .badge.active, .badge.approved, .badge.completed, .badge.delivered, .badge.working, .badge.closed, .badge.resolved, .badge.acknowledged { color: #447255; background: #e8f0e5; }
.badge.rejected, .badge.cancelled, .badge.terminated, .badge.blocked, .badge.quarantined, .badge.overdue { color: #a4564d; background: #fae9e4; }
.badge.draft, .badge.inactive { color: #877b6b; background: #eee9e1; }
.notice { margin: 15px 0; border: 1px solid #e9d8ca; border-left: 3px solid #c38b68; background: #fbf5ed; padding: 14px 16px; border-radius: 0 12px 12px 0; color: #7c6450; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.notice.success { color: #456b4e; border-color: #d2e0c9; border-left-color: #85a66c; background: #f2f7eb; }
.notice.warning { color: #85672f; border-color: #eadcb9; border-left-color: #b79949; background: #fff9e9; }
.notice.error, .notice.danger { color: #984f44; border-color: #edcfc9; border-left-color: #bc796d; background: #fff2ee; }

/* Controls */
.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.4; font-weight: 650; text-decoration: none; transition: background .16s,border-color .16s,box-shadow .16s,transform .16s; }
.button .svg-icon { width: 17px; height: 17px; }
.button:hover { background: #faf8f5; border-color: #c9bdb1; color: var(--text); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--brand); border-color: var(--brand); color: white; box-shadow: 0 3px 7px rgba(180,92,70,.12); }
.button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; }
.button.danger { color: var(--danger); border-color: #e9cfc9; background: #fff5f1; }
.button.danger:hover { background: #fae9e3; }
.button.success { color: white; border-color: var(--success); background: var(--success); }
.button.success:hover { background: #315c47; border-color: #315c47; }
.button.small { min-height: 38px; padding: 9px 12px; font-size: 11px; }
.button.wide { width: 100%; }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.actions input { width: auto; min-width: 0; }
.support-issue { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
.support-page { display: grid; gap: 22px; width: 100%; min-width: 0; max-width: 100%; }
.support-overview { display: grid; gap: 24px; padding: 25px; border-radius: 24px; color: #f7f2ed; background: linear-gradient(135deg,#302331 0%,#493446 62%,#68483f 100%); box-shadow: var(--shadow-raised); overflow: hidden; position: relative; }
.support-overview, .support-library { width: 100%; min-width: 0; max-width: 100%; }
.support-overview::after { content: ""; position: absolute; width: 210px; height: 210px; right: -85px; top: -100px; border: 1px solid rgba(232,239,198,.2); border-radius: 50%; box-shadow: 0 0 0 34px rgba(232,239,198,.035),0 0 0 70px rgba(232,239,198,.025); pointer-events: none; }
.support-overview > div { position: relative; z-index: 1; }
.support-overview .eyebrow { color: var(--lime); }
.support-overview h2 { margin-bottom: 9px; color: white; font-size: 25px; }
.support-overview p:not(.eyebrow) { max-width: 650px; margin: 0; color: #d9cfd8; font-size: 13px; line-height: 1.75; }
.support-overview-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.support-overview-stats span { display: grid; gap: 3px; padding: 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.065); color: #cfc2cd; font-size: 10px; }
.support-overview-stats strong { color: white; font-size: 19px; }
.support-library { padding: 21px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.support-library-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; min-width: 0; }
.support-library-head h2 { margin-bottom: 4px; }
.support-library-head p { margin: 0; color: var(--muted); font-size: 12px; }
.support-search { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; margin: 18px 0 13px; padding: 0 14px; border: 1px solid #ded7cf; border-radius: 13px; background: #f8f6f2; color: #9b9088; }
.support-search:focus-within { border-color: #b6856d; box-shadow: 0 0 0 3px rgba(180,92,70,.1); background: white; }
.support-search input { border: 0; padding: 13px 0; background: transparent; box-shadow: none; }
.support-search input:focus { box-shadow: none; }
.support-search .svg-icon { width: 18px; height: 18px; }
.support-platforms { display: flex; gap: 7px; width: 100%; min-width: 0; max-width: 100%; padding-bottom: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.support-platform { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 36px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: 11px; font-weight: 650; }
.support-platform span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; background: var(--surface-2); font-size: 9px; }
.support-platform.active { border-color: var(--plum); background: var(--plum); color: white; }
.support-platform.active span { background: rgba(255,255,255,.14); color: white; }
#support-results { margin-top: 17px; }
.support-card-grid { display: grid; gap: 11px; }
.support-guide-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; width: 100%; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fcfbf9; color: var(--text); text-align: left; transition: border-color .16s,box-shadow .16s,transform .16s; }
.support-guide-card:hover { border-color: #cdbeb4; box-shadow: 0 8px 24px rgba(48,35,49,.065); transform: translateY(-1px); }
.support-platform-mark { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 13px; background: #eee8e3; color: #795f52; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.support-platform-mark.platform-instagram { background: #f8e7ed; color: #a44e70; }
.support-platform-mark.platform-threads { background: #ecebea; color: #302b31; }
.support-platform-mark.platform-tiktok { background: #e5f1f0; color: #34706d; }
.support-platform-mark.platform-youtube { background: #f9e7e4; color: #b04b41; }
.support-platform-mark.platform-vk { background: #e5eef8; color: #4474a8; }
.support-platform-mark.platform-pinterest { background: #fae7e6; color: #ac443f; }
.support-platform-mark.platform-wibes { background: #eee8f5; color: #785c98; }
.support-platform-mark.platform-accounts { background: #f3eadf; color: #8e6947; }
.support-platform-mark.platform-bot { background: #e8edcf; color: #66753b; }
.support-guide-copy { display: grid; gap: 4px; min-width: 0; }
.support-guide-copy strong { line-height: 1.4; font-size: 13px; }
.support-guide-copy > span:last-child { color: var(--muted); font-size: 10px; }
.support-guide-meta { color: var(--brand); font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.support-card-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--surface-2); color: var(--brand); font-size: 17px; }
.support-ticket-section { margin-top: 30px; }
.guide-detail, .guide-diagnostic { max-width: 920px; margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.guide-back { margin: -4px 0 20px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; }
.guide-back:hover { color: var(--brand); }
.guide-detail-head { display: flex; align-items: flex-start; gap: 15px; }
.guide-detail-head > div { min-width: 0; }
.guide-detail-head h2 { margin-bottom: 7px; font-size: 23px; }
.guide-detail-head p:last-child { color: var(--muted); font-size: 12px; }
.guide-video { display: grid; gap: 14px; margin: 22px 0; padding: 13px; border: 1px solid #dfd6ce; border-radius: 17px; background: #f6f2ed; }
.guide-video-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: var(--plum); }
.guide-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guide-video > div:last-child { display: grid; align-content: center; gap: 5px; }
.guide-video span { color: var(--muted); font-size: 11px; }
.guide-video .button { justify-self: start; margin-top: 6px; }
.guide-checklist { display: grid; gap: 0; margin: 23px 0 0; padding: 0; list-style: none; }
.guide-checklist li { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; min-height: 66px; padding: 0 0 18px; }
.guide-checklist li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 1px; background: #ded4cb; }
.guide-checklist li > span, .guide-current-step > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 750; }
.guide-checklist p { margin: 4px 0 0; color: #554d53; font-size: 13px; line-height: 1.7; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; padding-top: 19px; border-top: 1px solid var(--line); }
.guide-progress { height: 5px; margin: 0 0 23px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.guide-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),#cc8a67); transition: width .2s; }
.guide-current-step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 13px; margin: 22px 0; padding: 19px; border-radius: 17px; background: #f7f3ee; }
.guide-current-step p { margin: 3px 0 0; font-size: 14px; line-height: 1.75; }
label { display: grid; gap: 8px; min-width: 0; color: #6d605a; font-size: 11px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #ded7cf; background: white; color: var(--text); border-radius: 11px; padding: 12px 13px; outline: none; font-size: 13px; line-height: 1.5; transition: border-color .16s,box-shadow .16s; }
input::placeholder, textarea::placeholder { color: #a29993; opacity: 1; }
input:read-only, textarea:read-only { background: #f8f5f1; }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: #f2efea; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; accent-color: var(--brand); cursor: pointer; border-radius: 5px; }
input[type="file"] { padding: 9px; font-size: 12px; }
input::file-selector-button { padding: 8px 10px; margin-right: 10px; border: 0; border-radius: 7px; background: #efe7df; color: #715b4b; font: inherit; cursor: pointer; }
label.checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 0; line-height: 1.65; cursor: pointer; }
label.checkbox input { margin-top: 1px; }
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #b6856d; box-shadow: 0 0 0 3px rgba(180,92,70,.1); }
.form-card { display: grid; gap: 17px; }
.form-card > h3 { margin: 0 0 4px; }
.form-card > p { margin: 0; }
.form-card > .button { justify-self: start; min-width: 130px; }
.form-card > .button.wide { justify-self: stretch; }
.form-grid { display: grid; gap: 17px; min-width: 0; }
.form-card .section-head { margin: 0; }
.secret { margin-top: 13px; padding: 17px; border-radius: 13px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 15px; overflow-wrap: anywhere; background: var(--plum); color: #f8f2e7; }
.secret-stack { display: grid; gap: 15px; white-space: pre-wrap; }
.secret-stack small { display: block; margin-bottom: 5px; color: #bbadbb; font-family: Manrope,"Segoe UI",sans-serif; font-size: 11px; }
.sensitive-card { border-color: #c9ae9b; box-shadow: 0 0 0 4px #f0e5dc; }
.cdek-map { min-height: 360px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface-2); }
.timeline { display: grid; gap: 0; padding: 5px 0; }
.timeline-item { position: relative; display: grid; gap: 4px; margin-left: 8px; padding: 0 0 22px 25px; border-left: 1px solid #d9cbbf; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #b99076; box-shadow: 0 0 0 4px var(--bg); }
.timeline-item strong { font-size: 13px; }
.timeline-item span, .timeline-item small { color: var(--muted); font-size: 11px; }
details { margin-top: 15px; }
details summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; padding: 5px 0; }
details pre { margin: 12px 0 0; padding: 14px; max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 11px; }

/* Authentication and feedback */
.auth-shell { min-height: 100dvh; display: grid; place-items: center; padding: 26px; background: radial-gradient(ellipse at 20% 10%,#ece8d8 0,transparent 52%),radial-gradient(ellipse at 90% 100%,#eeddd4 0,transparent 45%),var(--bg); }
.auth-card { width: min(100%,430px); padding: 36px 28px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 26px; text-align: center; box-shadow: var(--shadow-raised); }
.auth-card h1 { font-size: 29px; }
.auth-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.auth-card .eyebrow { color: var(--brand); font-size: 11px; }
.brand-mark { display: grid; place-items: center; width: 60px; height: 66px; margin: 0 auto 21px; border-radius: 16px 16px 24px 16px; background: var(--plum); color: var(--lime); font-family: Georgia,serif; font-weight: 400; font-size: 37px; box-shadow: 5px 5px 0 #ede8d6; }
.brand-mark > span, .brand-symbol > span { display: none; }
.pin-form { margin-top: 28px; }
.pin-boxes { display: flex; justify-content: center; gap: 11px; margin-bottom: 23px; }
.pin-boxes input { width: 55px; height: 63px; border: 1px solid #dbd3c9; border-radius: 13px; text-align: center; font-size: 27px; font-weight: 650; background: #faf8f4; }
.pin-boxes input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180,92,70,.1); background: white; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(calc(100% - 32px),480px); padding: 15px 19px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: var(--plum); color: white; box-shadow: var(--shadow-raised); text-align: center; font-size: 12px; font-weight: 500; }
.toast.error { background: #974b40; }
.skeleton-card { height: 130px; border-radius: 20px; margin-bottom: 15px; background: linear-gradient(100deg,#eae5df 30%,#f6f3ef 50%,#eae5df 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position-x: -150%; } }
@keyframes sheet-appear { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 650px) {
  .view { padding: 30px 30px 44px; }
  .topbar { padding: 20px 30px; }
  .header-date { display: inline; }
  .stats-grid { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card-list, .receipt-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-stats { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
  .bottom-nav { left: 50%; right: auto; width: 500px; transform: translateX(-50%); bottom: 12px; border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow); padding: 9px; }
  .nav-button { font-size: 11px; }
  .empty-state { min-height: 355px; }
  .sheet-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .sheet-group { grid-template-columns: 1fr; }
  .support-overview { grid-template-columns: minmax(0,1.5fr) minmax(310px,.75fr); align-items: end; padding: 31px; }
  .support-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-video { grid-template-columns: minmax(0,1.55fr) minmax(210px,.75fr); }
}
@media (max-width: 649px) {
  .support-overview { padding: 23px; }
  .support-overview h2 { font-size: 22px; }
  .support-overview-stats { gap: 6px; }
  .support-overview-stats span { min-width: 0; padding: 10px 8px; overflow-wrap: anywhere; }
  .support-library { padding: 19px; }
  .support-library-head { flex-direction: column; }
  .support-library-head .button { width: 100%; }
  .support-guide-card { padding: 13px; }
  .guide-detail, .guide-diagnostic { padding: 20px; }
}
@media (min-width: 1100px) {
  .app-shell { padding-left: var(--sidebar-width); padding-bottom: 0; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 30px 17px 18px; background: var(--plum); color: #e7dde5; }
  .sidebar-brand { display: flex; align-items: center; gap: 13px; padding: 0 13px 29px; text-decoration: none; }
  .brand-symbol { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 42px; border: 1px solid rgba(232,239,198,.65); border-radius: 9px 9px 17px 9px; color: var(--lime); font-family: Georgia,serif; font-size: 28px; line-height: 1; }
  .brand-wordmark { color: #faf6ee; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: .13em; }
  .brand-caption { display: block; margin-top: 5px; color: #a899a8; font-size: 9px; letter-spacing: .1em; }
  .sidebar-search { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 4px 26px; padding: 10px 12px; border: 1px solid rgba(218,204,218,.12); border-radius: 9px; background: rgba(255,255,255,.025); color: #b7a9b7; font-size: 11px; }
  .sidebar-search .svg-icon { width: 15px; height: 15px; }
  .sidebar-search kbd { margin-left: auto; padding: 1px 5px; border: 1px solid rgba(218,204,218,.12); border-radius: 4px; font: inherit; font-size: 9px; }
  .sidebar-search:hover { background: rgba(255,255,255,.06); }
  #desktop-nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #615161 transparent; padding: 0 2px 20px; }
  .nav-group + .nav-group { margin-top: 22px; }
  .nav-group-title { margin: 0 0 9px; padding: 0 14px; color: #a899a8; font-size: 9px; font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
  #desktop-nav .nav-button { display: flex; flex-direction: row; justify-content: flex-start; gap: 13px; width: 100%; min-height: 43px; padding: 10px 13px; margin: 3px 0; border-radius: 10px; color: #c9bdc9; font-size: 13px; font-weight: 450; }
  #desktop-nav .nav-button .icon { color: #a899a8; }
  #desktop-nav .nav-button .svg-icon { width: 19px; height: 19px; stroke-width: 1.6; }
  #desktop-nav .nav-button:hover { background: rgba(255,255,255,.055); color: #fff; }
  #desktop-nav .nav-button.active { background: var(--lime); color: #3b4530; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
  #desktop-nav .nav-button.active .icon { color: #56603b; }
  .sidebar-footer { display: flex; align-items: center; gap: 11px; padding: 18px 10px 0; border-top: 1px solid rgba(218,204,218,.12); }
  .sidebar-footer .user-avatar { background: #5b4752; color: #e7cfbd; border: 1px solid rgba(240,216,192,.1); }
  .user-details { flex: 1; min-width: 0; }
  .user-details strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; color: #f3eaf0; }
  .user-details span, .user-details small { display: block; color: #a998a8; font-size: 10px; margin-top: 3px; }
  .sidebar-footer .icon-button { width: 31px; height: 33px; border: 0; background: transparent; color: #b5a6b3; }
  .sidebar-footer .icon-button:hover { background: rgba(255,255,255,.07); color: white; }
  .bottom-nav { display: none; }
  .topbar { min-height: 94px; padding: 22px 36px; }
  .topbar h1 { font-size: 24px; }
  .view { padding: 34px 36px 52px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 23px; }
  .dashboard-stats { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-panel { padding: 24px; }
  .activity-panel { padding: 24px 19px 12px; }
  .toast { bottom: 25px; margin-left: calc(var(--sidebar-width)/2); }
  .empty-state { min-height: 350px; }
  .nav-sheet { border-radius: 24px; margin: auto; }
}
@media (min-width: 1440px) {
  .view { padding: 38px 44px 56px; }
  .topbar { padding-left: 44px; padding-right: 44px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 25px; }
  .dashboard-stats { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
  .stats-grid { gap: 17px; }
  .stat { padding: 23px; }
  .quick-action { padding: 21px 18px; }
  .empty-state { min-height: 390px; }
}
@media (max-width: 649px) {
  .menu-link .menu-arrow { display: none; }
  .menu-link > span:not(.icon) { overflow-wrap: normal; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .chip { display: none; }
  #page-description { display: none; }
  .topbar h1 { font-size: 23px; }
  .topbar { padding: max(16px,env(safe-area-inset-top)) 20px 16px; }
  .dashboard-intro { margin-bottom: 23px; }
  .dashboard-intro .date-pill { display: none; }
  .dashboard-intro h2 { font-size: 27px; }
  .dashboard-grid { gap: 19px; }
  .overview-panel { padding: 19px 16px; border-radius: 20px; }
  .dashboard-stats { gap: 10px; }
  .dashboard-stats .stat { min-height: 136px; padding: 15px; }
  .quick-grid { gap: 10px; }
  .quick-action { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 15px; min-height: 128px; }
  .quick-icon { width: 38px; height: 38px; border-radius: 11px; }
  .quick-copy { flex-basis: 100%; }
  .quick-copy strong { font-size: 13px; }
  .quick-copy span { font-size: 11px; }
  .quick-arrow { display: none; }
  .panel-heading { margin-bottom: 18px; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .section-head h2 { font-size: 20px; }
  .section-head .actions { width: 100%; }
  .stats-grid { gap: 10px; margin-bottom: 24px; }
  .stats-grid .stat { padding: 17px 15px; }
  .receipt-stats { gap: 9px; }
  .receipt-stats .stat { min-height: 114px; padding: 13px 12px; }
  .receipt-stats .stat .stat-icon { width: 25px; height: 25px; margin-bottom: 8px; border-radius: 8px; }
  .receipt-stats .stat .stat-icon .svg-icon { width: 16px; height: 16px; }
  .receipt-stats .stat-arrow { top: 17px; right: 10px; width: 12px; }
  .receipt-stats .stat-label { font-size: 10px; line-height: 1.5; }
  .receipt-stats .stat strong { font-size: 27px; }
  .stat strong { font-size: 29px; }
  .stat > span { font-size: 11px; line-height: 1.45; }
  .card { padding: 18px; border-radius: 17px; }
  .card-top { flex-wrap: wrap; }
  .card-top > div { flex-basis: 180px; }
  .card-top .badge { max-width: 100%; }
  .card-top > .button { margin-left: auto; }
  .page-toolbar { align-items: flex-start; flex-direction: column; margin-top: 23px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .button { flex: 1; }
  .filter-bar { padding: 12px; gap: 12px; }
  .search-field { max-width: none; flex-basis: 100%; }
  .filter-tabs { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .filter-tab { justify-content: space-between; min-height: 44px; padding: 9px 11px; font-size: 12px; }
  .results-label { margin-top: 15px; }
  .empty-state { min-height: 300px; padding: 29px 20px 32px; }
  .empty-title { font-size: 19px; }
  .empty-copy { font-size: 12px; }
  .empty-art { transform: scale(.88); margin-bottom: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .compact-row { align-items: flex-start; flex-wrap: wrap; }
  .section-block { padding: 17px 14px; }
  .button.small { min-height: 44px; font-size: 12px; }
  input, select, textarea, .search-field input { font-size: 16px; }
  input[type="file"] { font-size: 12px; }
  .form-card > .button { justify-self: stretch; }
  .pin-boxes input { font-size: 27px; }
  .auth-card { padding: 31px 22px; }
}
@media (max-width: 359px) {
  .view { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 15px; padding-right: 15px; }
  .topbar-actions > .icon-button { display: none; }
  .profile-avatar { width: 35px; height: 35px; border-radius: 11px; }
  .quick-action { padding: 14px; }
  .nav-button { font-size: 9px; }
  .dashboard-stats .stat { padding: 13px; }
  .nav-sheet { padding-left: 16px; padding-right: 16px; }
  .menu-link { padding: 12px 9px; font-size: 11px; gap: 8px; }
  .filter-tab { font-size: 11px; padding: 8px 9px; }
  .pin-boxes { gap: 7px; }
  .pin-boxes input { width: 46px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.catalog-lines { list-style: none; padding: 0; margin: 12px 0; }
.catalog-lines li { display: flex; align-items: start; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border, #e6e2dc); }
.catalog-lines li div { min-width: 0; overflow-wrap: anywhere; }
.catalog-lines small { display: block; color: var(--muted, #727078); margin-top: 4px; }
.catalog-lines li > span { white-space: nowrap; }
.catalog-line-edit { display: grid; grid-template-columns: minmax(0, 1fr) 100px 44px; align-items: end; gap: 10px; margin-bottom: 14px; }
#catalog-form-slot, #shipment-form-slot { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  .catalog-line-edit { grid-template-columns: minmax(0, 1fr) 44px; }
  .catalog-line-edit > label:first-child { grid-column: 1 / -1; }
}
/* Contract form: readable, touch-friendly sections without exposing sensitive
   values until the creator explicitly opens the relevant section. */
.legal-sections { display: grid; gap: 12px; margin: 18px 0; }
.legal-sections summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 44px; align-items: center; }
.legal-sections summary strong { font-size: 16px; color: #302735; }
.legal-sections summary::after { content: "+"; font-size: 20px; }
.legal-sections details[open] summary::after { content: "−"; }
.legal-sections .form-card { margin-top: 16px; }
.legal-sections small { display: block; font-weight: 400; white-space: pre-line; line-height: 1.5; }
.legal-error { color: #a12222; }
.legal-sections input[aria-invalid="true"] { border-color: #a12222; }
.legal-summary { margin-top: 20px; padding-top: 12px; border-top: 1px solid #ddd4ce; overflow-wrap: anywhere; }

#creator-filters summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
@media (max-width: 600px) {
  .creator-directory-stats { gap: 8px; margin-bottom: 20px; }
  .creator-directory-stats .stat { padding: 12px; }
  .creator-directory-stats .stat strong { font-size: 24px; }
  .creator-directory-stats .stat > span { font-size: 11px; }
}
.source-handles > div { margin-bottom: 12px; }
.source-handles dt { font-size: 12px; color: var(--muted); }
.source-handles dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Creator registration: comfortable forms on a phone, below the sticky header. */
#registration-form-slot { scroll-margin-top: 110px; margin-block: 20px; }
#registration-form details { margin-block: 12px; }
#registration-form details > label { display: grid; gap: 8px; margin-block: 16px; }
#registration-form details > .check-row { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; }
#registration-form .check-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
#registration-form-slot li { line-height: 1.6; }

.staff-workbench { margin: 0 0 28px; }
.staff-issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.staff-issue { display: block; min-width: 0; padding: 19px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.staff-issue-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-issue-top b { flex: 0 0 auto; min-width: 31px; padding: 5px 8px; text-align: center; border-radius: 10px; background: #f2e8df; color: #9c4d39; }
.staff-issue p, .staff-issue small { display: block; margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.staff-person { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 0; text-align: left; color: var(--text); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.staff-person span { color: #ad563d; white-space: nowrap; }
.staff-show-all { margin-top: 8px; }
.staff-note { margin: 13px 0 0; font-size: 12px; color: var(--muted); }
.staff-links { display: grid; gap: 10px; margin-top: 24px; }
.staff-links > div { display: flex; flex-wrap: wrap; gap: 7px; }
#staff-correction-slot { scroll-margin-top: 96px; margin-top: 18px; }
@media (max-width: 700px) { .staff-issue-grid { grid-template-columns: 1fr; } }

/* «Команды»: the whole team card opens the team */
.team-card-clickable{cursor:pointer;transition:box-shadow .15s}
.team-card-clickable:hover,.team-card-clickable:focus-visible{box-shadow:0 0 0 2px var(--accent,#b85c38)}

/* REC-37: code pool rows */
.pool-row{grid-template-columns:28px minmax(0,1fr) minmax(0,1fr) auto;align-items:center;cursor:default}

/* Sets by team matrix */
.set-matrix .matrix-scroll{overflow-x:auto}
.matrix-table{width:100%;border-collapse:collapse;min-width:560px}
.matrix-table th,.matrix-table td{padding:6px 8px;border-bottom:1px solid var(--line,#e6e0da);text-align:center}
.matrix-table tbody th{text-align:left;font-weight:600}
.matrix-cell{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;min-height:44px;background:none;border:1px solid var(--line,#e6e0da);border-radius:10px;cursor:pointer;padding:4px}
.matrix-cell:hover,.matrix-cell:focus-visible{border-color:var(--accent,#b85c38)}
.matrix-mark{font-size:20px;font-weight:700;line-height:1}
.matrix-mark.ok{color:#2f8a4c}.matrix-mark.none{color:#c0392b}.matrix-mark.draft{color:#c08a1e}
.matrix-cell small{font-size:11px;color:var(--muted,#8a817a)}

/* Articles search (03.10) */
.as-chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.as-chip{border:1px solid var(--line,#e6e0da);background:none;border-radius:999px;padding:6px 12px;cursor:pointer;font:inherit}
.as-chip.active{background:var(--accent,#b85c38);color:#fff;border-color:transparent}
.as-row{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);cursor:default}
.badge.as-zero{background:#e7f4ea;color:#2f8a4c}.badge.as-transfer{background:#fdf0dc;color:#a8650f}

/* Personal screen (03.10) */
.nav-more-group{margin-top:8px}
.nav-more-group>summary{cursor:pointer;list-style:none}
.nav-more-group>summary::-webkit-details-marker{display:none}
.nav-more-group>summary::after{content:" ▾"}
.quick-action.big{min-height:72px;font-size:1.05em}

/* Shipment plan (03.10) */
.plan-items{width:100%;border-collapse:collapse;margin:8px 0}
.plan-items th,.plan-items td{text-align:left;padding:5px 6px;border-bottom:1px solid var(--line,#e6e0da);font-size:.95em}
.plan-people{margin:6px 0 0;padding-left:18px;line-height:1.7}
.plan-check{color:#a8650f}

/* Own photo (03.10) */
.has-photo{background-size:cover;background-position:center;color:transparent!important}

/* People search (04.10) */
.people-search{position:relative;min-width:240px}
.people-search input{width:100%;padding:8px 12px;border:1px solid var(--line,#e6e0da);border-radius:999px;font:inherit;background:var(--surface,#fff)}
.people-search-results{position:absolute;top:110%;left:0;right:0;z-index:50;background:var(--surface,#fff);border:1px solid var(--line,#e6e0da);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:360px;overflow:auto}
.people-search-results button{display:block;width:100%;text-align:left;padding:8px 12px;border:0;background:none;cursor:pointer;font:inherit}
.people-search-results button:hover{background:rgba(184,92,56,.08)}
.people-search-results small{display:block;color:var(--muted,#8a817a)}
.team-stat-link{cursor:pointer;border-radius:8px}
.team-stat-link:hover{background:rgba(184,92,56,.08)}
@media (max-width:700px){.people-search{min-width:0;flex:1}}

/* Work UI (04.10) */
.red-badge{display:inline-block;min-width:20px;padding:1px 7px;border-radius:999px;background:#c0392b;color:#fff;font-size:.8em;font-weight:700;text-align:center;vertical-align:middle}
.team-tabs-more{display:inline-block;margin-left:6px}
.team-tabs-more>summary{cursor:pointer;padding:6px 10px;list-style:none}
.team-tabs-more>div{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.work-home{display:grid;gap:12px;margin-bottom:16px}
.danger-text{color:#c0392b}

/* Inbox «Дела» (05.10) */
.inbox-head{margin-bottom:12px}
.inbox-head h2{margin:0 0 4px;font-size:clamp(24px,4vw,30px)}
.inbox{display:grid;gap:12px;margin-bottom:18px}
.inbox-card{background:var(--surface,#fff);border:1px solid var(--line,#e6e0da);border-left:4px solid var(--accent,#b85c38);border-radius:14px;padding:14px 16px}
.inbox-card.late{border-left-color:#c0392b}
.inbox-card.done{border-left-color:#2f8a4c}
.inbox-card.promo{border-left-color:#c08a1e}
.inbox-card h3{margin:0 0 6px;font-size:1.05em}
.inbox-card p{margin:0 0 10px;color:var(--muted,#6f665f)}
.inbox-card .actions .button{min-height:42px}
.inbox-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}
.inbox-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.inbox-list li{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line,#eee);padding-top:6px}
.home-more{margin-top:8px}
.home-more>summary{cursor:pointer;color:var(--muted,#6f665f);padding:8px 0}
.card-quick-actions{margin:10px 0 4px;flex-wrap:wrap}
@media (max-width:600px){.inbox-form{grid-template-columns:1fr 1fr}.inbox-form button{grid-column:1/-1}}
/* 05.10 work VPN */
.vpn-button{margin-right:6px;font-weight:600}
.vpn-guide ol{padding-left:20px;margin:8px 0}.vpn-guide li{margin:6px 0}
.vpn-downloads{list-style:none;padding:0;margin:6px 0;display:grid;gap:4px}
