/* Unified: readable, compact operational workspace. No external assets. */
:root {
  --bg: #0b1014; --panel: #131b22; --panel2: #1a242d;
  --muted: #a5b1bc; --dim: #8998a6;
  --line: rgba(190,213,232,.12); --line2: rgba(190,213,232,.23);
  --mint: #93edc8; --radius: 18px; --sidebar: 222px;
  --shadow: 0 8px 30px rgba(0,0,0,.13);
}
body { font-size: 14px; line-height: 1.5; letter-spacing: -.012em; }
button,input,select,textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .52; transform: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
input,select,textarea { scroll-margin: 90px; }
input::placeholder,textarea::placeholder { color: #8997a2; opacity: 1; }
input[type=number] { font-variant-numeric: tabular-nums; }
::selection { background: #93edc840; color: #fff; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #33454f; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; background: var(--mint); color: #0b1710; padding: 12px 18px; border-radius: 10px; font-weight: 750; }
.skip-link:focus { top: 12px; }
.sidebar-backdrop,.noise { display: none; }
.sidebar { padding: 25px 13px 18px; background: #0d141bef; }
.brand { padding: 0 12px 30px; }
.brand strong { font-size: 17px; }
.brand small,.login-brand small { font-size: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: none; }
.nav-item { min-height: 45px; padding: 11px 13px; font-size: 13px; font-weight: 650; }
.nav-item span { color: #90a1ae; }
.nav-item.active span { color: var(--mint); }
.nav-badge { font-size: 10px; }
.sidebar-status { border-radius: 12px; padding: 12px 10px; }
.sidebar-status strong { font-size: 11px; }
.sidebar-status small { font-size: 10px; margin-top: 3px; }
main { margin: 0 auto; padding: 30px clamp(22px,3vw,48px) 55px; }
.topbar { align-items: center; gap: 20px; margin-bottom: 26px; }
.topbar h1 { font-size: clamp(26px,2.5vw,35px); font-weight: 720; letter-spacing: -.045em; }
.eyebrow { color: #8da2b3; font-size: 10px; letter-spacing: .15em; }
.sub { max-width: 680px; font-size: 13px; }
.header-actions { flex-shrink: 0; }
.ghost { font-size: 12px; font-weight: 650; }
.ghost kbd { font-size: 10px; color: var(--muted); }
.primary,.soft-button,.outline-button,.danger-button { min-height: 40px; font-size: 12px; }
.primary { padding: 10px 17px; }
.primary:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 4px 16px #93edc817; }
.text-button { font-size: 12px; min-height: 30px; }
.icon-button { font-size: 18px; }
.section-head h2 { font-size: 18px; }
.section-head p,.panel-head small { font-size: 12px; }
.section-head { gap: 14px; }
.panel-head h2,.panel-head h3 { font-size: 15px; }
.panel { padding: 20px; }
.metrics { gap: 14px; }
.metric-card { min-height: 150px; padding: 20px; }
.metric-top { font-size: 12px; gap: 8px; align-items: center; }
.metric-value { font-size: 32px; margin-top: 13px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.metric-note { font-size: 11px; line-height: 1.5; }
.metric-card:hover,.account-card:hover,.collection-card:hover { transform: none; }
.metric-icon { width: 30px; height: 30px; flex-shrink: 0; }
.status-pill,.tag { font-size: 10px; padding: 4px 9px; line-height: 1.4; white-space: nowrap; }
.job-main strong { font-size: 13px; }
.job-main small,.progress-meta { font-size: 11px; }
.job-main small { overflow-wrap: anywhere; }
.quick-action { min-height: 100px; }
.quick-action b { font-size: 12px; margin-top: 10px; }
.quick-action small { font-size: 11px; }
.account-head strong { font-size: 15px; }
.account-head small,.account-stats span,.account-footer,.account-footer small,.collection-card small { font-size: 11px; }
.account-stats b { font-variant-numeric: tabular-nums; }
.account-stats small,.timeline-row small,.timeline-row time,.toggle-row small,.resource-row small { font-size: 10px; }
.timeline-row b,.toggle-row b,.resource-row b,.chat-row b,.setting-row b,.secret-card b { font-size: 12px; }
.resource-row span,.mono,.collection-card p,.detail-box small,.event small,.event div,.buyer-preview small { font-size: 11px; }
.command-list button,.nft-item b,.nft-price { font-size: 12px; }
.nft-item small { font-size: 11px; }
.input,.select,.textarea { font-size: 13px; min-height: 43px; border-color: var(--line2); background: #0c131a; }
.textarea { line-height: 1.55; }
.field label,.field>span { font-size: 12px; }
.field small,.form-hint { font-size: 11px; line-height: 1.55; }
.form-error,.sale-action-error { font-size: 12px; line-height: 1.5; }
.form-error:empty { min-height: 0; }
.table-wrap { overflow: auto; overscroll-behavior-x: contain; border-radius: 12px; }
.data-table { font-size: 12px; width: 100%; }
.data-table th { color: #a8bac8; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: #141e27; }
.data-table td,.data-table th { padding: 13px 14px; line-height: 1.5; }
.data-table td { font-size: 12px; font-variant-numeric: tabular-nums; vertical-align: middle; }
.data-table td small,.data-table .telegram-value { font-size: 11px; }
.data-table tr:hover td { background: #b4d4ee05; }
.filterbar { flex-wrap: wrap; gap: 10px; }
.empty-state,.empty-inline { font-size: 12px; line-height: 1.6; }
.empty-inline { padding: 18px; background: #ffffff02; }
.setting-row { padding-block: 14px; gap: 16px; }
.setting-row label,.setting-row strong { font-size: 13px; }
.setting-row small,.secret-card small { font-size: 11px; line-height: 1.6; }
.settings-grid { gap: 16px; }
.restart-banner b { font-size: 13px; }
.restart-banner span { font-size: 11px; }
.restart-banner button { font-size: 12px; min-height: 40px; flex-shrink: 0; }
.modal { width: min(880px,calc(100vw - 40px)); max-height: calc(100dvh - 40px); }
.modal-card { width: 100%; max-height: calc(100dvh - 40px); padding: 28px; border-radius: 22px; }
.modal-card h2 { font-size: 22px; line-height: 1.35; }
.modal-card p { font-size: 12px; }
.modal-close { width: 36px; height: 36px; font-size: 20px; }
.manager-head { gap: 14px; }
.manager-section { margin-top: 22px; padding-top: 20px; }
.finance-lines span { font-size: 12px; padding: 13px 14px; }
.finance-lines b { font-variant-numeric: tabular-nums; }
.finance-lines .finance-target { background: #1b3531; }
.finance-form .field label { font-size: 12px; }
.nft-choice { padding: 12px; gap: 11px; }
.nft-choice b { font-size: 12px; }
.nft-choice small,.price-privacy b,.price-privacy small { font-size: 11px; }
.chat-layout { border-color: var(--line2); }
.chat-row { padding: 14px 13px; }
.chat-row strong { font-size: 13px; }
.chat-row small,.chat-row time { font-size: 11px; }
.conversation-head strong { font-size: 14px; }
.conversation-head small { font-size: 11px; }
.messages { padding: 20px; gap: 12px; }
.message { font-size: 13px; line-height: 1.6; padding: 11px 14px; max-width: 84%; overflow-wrap: anywhere; }
.message time { font-size: 10px; margin-top: 7px; }
.message.system { font-size: 11px; border-radius: 12px; }
.sale-mini { font-size: 11px; line-height: 1.5; }
.chat-composer { background: #101920; }
.chat-composer .textarea { min-height: 76px; }
.chat-composer>small { font-size: 10px; line-height: 1.5; }
.photo-picker label span,.photo-picker small,.chat-photo-preview span { font-size: 11px; }
.quick-message-row .select { min-width: 0; }
.order-data-head small { font-size: 10px; }
.order-data-head b { font-size: 12px; }
.order-data-line span { font-size: 10px; }
.order-data-line b { font-size: 12px; }
.order-data-line button { font-size: 10px; min-height: 28px; }
.order-data-line:has(button) b { padding-right: 68px; }
.order-data-line { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 6px; align-items: start; }
.order-data-line span { grid-column: 1; }
.order-data-line button { position: static; grid-column: 2; grid-row: 1; padding: 4px 6px; }
.order-data-line b,.order-data-line:has(button) b { grid-column: 1 / -1; padding-right: 0; }
.order-data-actions span,.sync-note { font-size: 11px; }
.order-data-card.compact .order-data-line { padding: 8px; }
.order-data-card.compact .order-data-line b { font-size: 11px; }
.sales-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 20px 0 12px; }
.sales-toolbar .input { flex: 1 1 240px; }
.sales-toolbar .select { flex: 0 1 180px; }
.sales-summary-note { color: var(--muted); font-size: 12px; margin: 12px 0; }
.sales-summary-note { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-inline: 15px; }
.sales-summary-note small { font-size: 11px; }
.sales-toolbar { padding-inline: 15px; }
.sales-table td small { display: block; }
.chat-send-status,.form-save-status { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; margin-block: 8px; }
.chat-send-status.queued { background: #ffc86f0b; color: var(--amber); }
.chat-send-status.error,.form-save-status.error { color: var(--danger); background: #ff77840b; }
.chat-send-status.succeeded,.form-save-status.succeeded { color: var(--mint); background: #93edc80b; }
.unsaved-indicator { color: var(--amber); font-size: 11px; }
.toast { font-size: 12px; border-color: var(--line2); box-shadow: 0 12px 50px #0008; }
.toast strong { font-size: 13px; }
.toast small { font-size: 12px; }
.login-card label { font-size: 12px; }
.login-card input { font-size: 14px; }
.login-card h1 { max-width: 260px; font-size: 30px; line-height: 1.15; }
.login-orbit { top: 38px; right: 28px; }
.secure-note { font-size: 11px; }
.login-view:before,.login-view:after { animation: none; pointer-events: none; }
@media(min-width:781px) {
  .chat-layout { height: calc(100dvh - 190px); min-height: 600px; grid-template-columns: minmax(230px,.7fr) minmax(0,1.65fr); }
  .chat-list,.conversation { min-width: 0; }
}
@media(max-width:1150px) and (min-width:781px) {
  :root { --sidebar: 194px; }
  main { padding: 25px 20px 50px; }
  .header-actions .ghost { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-grid,.operation-layout { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 220px minmax(0,1fr); }
  .composer-actions { grid-template-columns: 1fr; }
  .order-data-card.compact .order-data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:780px) and (min-width:481px) {
  .sidebar { width: 265px; left: -280px; }
  .app-shell.menu-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 19; border: 0; background: #0009; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-grid,.operation-layout { grid-template-columns: 1fr; }
}
@media(max-width:780px) {
  main { padding: 20px 15px 55px; }
  .topbar { gap: 12px; }
  .topbar h1 { font-size: 27px; }
  .modal { width: calc(100vw - 24px); }
  .modal-card { padding: 23px; }
  .finance-lines,.finance-form { grid-template-columns: 1fr; }
  .quick-message-row { grid-template-columns: minmax(0,1fr) auto; }
  .chat-send-status { font-size: 11px; }
}
@media(max-width:480px) {
  body { font-size: 13px; }
  main { padding: 16px 12px 38px; }
  .sidebar { padding: 6px 5px env(safe-area-inset-bottom); }
  .nav-item { min-width: 68px; padding: 5px 8px; min-height: 55px; }
  .nav-item em { font-size: 10px; }
  .app-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { margin: -16px -12px 18px; padding: 12px; gap: 8px; }
  .topbar h1 { font-size: 25px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .metric-card { min-height: 136px; padding: 14px 12px; border-radius: 14px; }
  .metric-top { font-size: 10px; align-items: flex-start; }
  .metric-icon { display: none; }
  .metric-value { font-size: 25px; margin-top: 14px; }
  .metric-note { font-size: 10px; }
  .workspace-grid,.operation-layout { grid-template-columns: minmax(0,1fr); }
  .panel,.account-card,.collection-card { padding: 15px; }
  .section-head h2 { font-size: 17px; }
  .section-head p { font-size: 11px; }
  .section-head { flex-wrap: wrap; }
  .input,.select,.textarea { font-size: 16px; }
  .sales-toolbar { display: grid; grid-template-columns: 1fr; }
  .sales-toolbar .input,.sales-toolbar .select { width: 100%; }
  .sales-table,.sales-table tbody { display: block; }
  .sales-table thead { display: none; }
  .sales-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 8px; padding: 12px; margin: 0 10px 12px; border: 1px solid var(--line2); border-radius: 13px; background: #0d151c; }
  .sales-table td { display: block; min-width: 0; border: 0; padding: 7px 0; overflow-wrap: anywhere; }
  .sales-table td:nth-child(1),.sales-table td:nth-child(2),.sales-table td:nth-child(5) { grid-column: 1/-1; }
  .sales-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
  .sales-table td:nth-child(1)::before { display: none; }
  .sales-table td:nth-child(1)>b { font-size: 14px; color: var(--text); }
  .sales-table td .mono { color: var(--dim); }
  .order-data-card:not(.compact) .order-data-grid { grid-template-columns: 1fr; }
  .chat-layout { height: calc(100dvh - 170px); min-height: 540px; }
  .chat-composer { padding: 10px; }
  .chat-composer .textarea { min-height: 62px; }
  .messages { padding: 12px; }
  .message { font-size: 13px; max-width: 94%; }
  .order-data-card.compact .order-data-head { margin-bottom: 7px; }
  .order-data-card.compact .order-data-line { padding: 6px; }
  .order-data-actions { gap: 6px; }
  .quick-message-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .quick-message-row .outline-button { width: auto; padding: 0 9px; font-size: 11px; }
  .quick-message-row .select { font-size: 13px; }
  .modal { width: 100vw; height: 100dvh; max-height: 100dvh; }
  .modal-card { max-height: 100dvh; min-height: 100dvh; border-radius: 0; padding: 24px 15px 35px; }
  .modal-card h2 { font-size: 20px; padding-right: 12px; }
  .login-card { padding: 32px 23px; }
  .login-card h1 { font-size: 27px; max-width: 215px; }
  .login-orbit { display: none; }
  .restart-banner { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
