:root {
  --bg: #f8fafc;
  --surface: #fff;
  --border: #e5e9ef;
  --border-dark: #d4dbe5;
  --text: #1c2737;
  --muted: #66758b;
  --faint: #8793a3;
  --primary: #2563eb;
  --primary-bg: #eef4ff;
  --primary-border: #d5e3ff;
  --green: #137c57;
  --green-bg: #effaf5;
  --red: #bb3c45;
  --red-bg: #fff2f2;
  --amber: #99610b;
  --amber-bg: #fff8e8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #acc8ff; outline-offset: 2px; }
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.app { min-height: 100vh; display: flex; }
/* SIDEBAR */
.sidebar { width: 228px; flex: none; position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--border); padding: 22px 12px 16px; display: flex; flex-direction: column; z-index: 25; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 11px 34px; }
.brand-icon, .login-logo { background: #2563eb; color: #fff; border-radius: 9px; height: 34px; width: 34px; flex: none; display: grid; place-items: center; font-size: 18px; font-weight: 750; }
.brand-title { font-size: 16px; font-weight: 750; letter-spacing: -.3px; }
.brand-sub { color: var(--muted); font-size: 11px; margin-top: 1px; }
.sidebar-kicker { font-size: 10px; color: #97a1af; font-weight: 750; letter-spacing: .9px; padding: 2px 12px 10px; }
.sidebar-kicker.secondary-nav { padding-top: 24px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 10px 12px; background: transparent; border: 1px solid transparent; color: #526074; border-radius: 7px; font-weight: 550; font-size: 13px; min-height: 41px; }
.nav-item:hover { background: #f4f7fb; color: #253750; }
.nav-item.active { background: var(--primary-bg); color: #174ec1; font-weight: 700; }
.nav-item .ni { width: 18px; flex: none; text-align: center; font-size: 19px; line-height: 1; font-weight: 400; }
.sidebar-bottom { margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid var(--border); }
.server-tile { display: flex; gap: 9px; align-items: center; padding: 10px 0; }
.server-dot { width: 7px; height: 7px; border-radius: 50%; background: #40ac78; display: inline-block; flex: none; }
.server-tile strong { font-size: 12px; display: block; font-weight: 650; }
.server-tile small { display: block; color: var(--faint); font-size: 10px; }
.sidebar-note { display: grid; gap: 3px; color: #98a4b3; font-size: 10px; padding-top: 8px; }
/* TOP */
.workspace { flex: 1; min-width: 0; }
.topbar { height: 69px; background: #fff; border-bottom: 1px solid var(--border); padding: 0 31px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.breadcrumb-current { font-weight: 700; font-size: 14px; }
.header-sub { color: #95a0ae; font-size: 11px; margin-top: 0; }
.timezone-pill { border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; font-size: 11px; color: #758296; white-space: nowrap; }
.timezone-pill b { margin-left: 5px; color: #344054; font-variant-numeric: tabular-nums; font-weight: 650; }
.user-pill { display: flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.user-avatar { height: 29px; width: 29px; border-radius: 50%; background: #edf2f8; color: #43566d; display: grid; place-items: center; font-weight: 750; }
.top-logout { border: 0; background: none; color: #7a879a; font-size: 12px; padding: 8px 0; }
.top-logout:hover { color: var(--primary); }
.menu-toggle { display: none; font-size: 19px; border: 0; background: none; padding: 4px; }
.demo-warning { display: flex; gap: 9px; align-items: center; padding: 9px 31px; font-size: 11px; color: #64748b; background: #f2f6fc; border-bottom: 1px solid #e5ecf6; }
.demo-warning strong { color: #46566c; }
.demo-warning-icon { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #9cacbe; border-radius: 50%; color: #6d7d91; font-size: 10px; font-weight: 750; }
/* CONTENT */
.page-content { max-width: 1480px; margin: auto; padding: 28px 31px 70px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.eyebrow { display: none; }
.page-heading h1 { font-size: 23px; font-weight: 730; margin: 0 0 5px; letter-spacing: -.55px; line-height: 1.3; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 780px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.btn { border: 1px solid var(--border-dark); background: white; color: #34445a; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 35px; padding: 8px 13px; font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.btn:hover:not(:disabled) { background: #f6f9fc; border-color: #b9c5d5; }
.btn-primary, .btn-blue { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover:not(:disabled), .btn-blue:hover:not(:disabled) { background: #1e55cf; border-color: #1e55cf; }
.btn-danger { background: #fff; border-color: #f0cdd1; color: #ae3c48; }
.btn-danger:hover:not(:disabled) { background: #fff3f3; border-color: #e8a8af; }
.btn-ghost { background: white; }
.btn-small { min-height: 28px; padding: 5px 9px; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 17px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px 18px; min-width: 0; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 550; }
.stat-value { font-weight: 740; font-size: 26px; letter-spacing: -.7px; margin: 8px 0 1px; color: #243448; line-height: 1.35; font-variant-numeric: tabular-nums; }
.stat-sub { color: #9aa5b4; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,1fr); gap: 15px; }
.stack { display: grid; gap: 15px; align-content: start; }
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; align-items: start; }
.panel { border: 1px solid var(--border); background: white; border-radius: var(--radius); padding: 19px; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-title h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.1px; }
.panel-title p { margin: 4px 0 0; color: #8591a1; font-size: 11px; line-height: 1.55; }
.subtext { color: var(--muted); font-size: 12px; line-height: 1.55; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: #f3f5f8; color: #5a6980; font-weight: 650; font-size: 10px; padding: 4px 7px; white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green); border-color: #d8efe2; }
.badge.blue { background: var(--primary-bg); color: #245bc4; border-color: #dce7fe; }
.badge.amber { background: var(--amber-bg); color: var(--amber); border-color: #ffebc5; }
.badge.red { background: var(--red-bg); color: var(--red); border-color: #f5d4d8; }
/* DATA TABLE */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; color: #758398; background: #f8fafc; font-weight: 650; font-size: 11px; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #edf0f4; vertical-align: middle; color: #344154; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table .emph { font-weight: 700; color: #1e5bcf; }
.table-foot { color: #92a0af; font-size: 11px; margin-top: 11px; }
/* INVENTORY AND PROGRESS */
.bar-row { padding: 5px 0; }
.bar-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bar-head span { font-weight: 650; }
.bar-head small { color: var(--muted); font-size: 11px; }
.bar-track, .progress-track { height: 7px; overflow: hidden; border-radius: 6px; background: #ebeff5; }
.bar-fill { height: 100%; background: #a5c2fa; border-radius: inherit; }
.progress-list { display: grid; gap: 14px; }
.progress-row { display: grid; grid-template-columns: 45px minmax(0,1fr) 145px; align-items: center; gap: 12px; }
.progress-row .val { font-weight: 700; font-size: 12px; color: #37465c; }
.progress-row .amount { text-align: right; color: #728196; font-size: 11px; }
.progress-fill { height: 100%; background: #5e9aef; border-radius: inherit; }
.progress-fill.short { background: #e6a257; }
.empty { min-height: 145px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; color: var(--muted); gap: 7px; padding: 23px 15px; }
.empty-symbol { font-size: 26px; color: #bcc8d7; }
.empty strong { color: #4d5c70; font-size: 12px; }
.empty span { max-width: 420px; font-size: 11px; }
.step-list { display: grid; gap: 9px; }
.step { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #edf0f4; border-radius: 7px; padding: 12px; }
.step-no { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; background: var(--primary-bg); color: #2861bd; font-size: 11px; font-weight: 750; }
.step strong { display: block; font-weight: 650; font-size: 12px; }
.step small { display: block; color: #8995a6; font-size: 11px; margin-top: 2px; }
.notice { padding: 11px 12px; border: 1px solid #d9e5f5; background: #f4f8fd; color: #55677c; font-size: 11px; line-height: 1.6; border-radius: 7px; }
.notice strong { color: #34465a; }
.notice.ok { background: var(--green-bg); color: #287a58; border-color: #d3eadc; }
.notice.warn { background: var(--amber-bg); color: #84570f; border-color: #f1dfb8; }
.notice.danger { background: var(--red-bg); color: #aa414d; border-color: #efd3d7; }
/* FORMS */
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .login-card label { color: #54647b; font-size: 11px; font-weight: 650; }
.field input, .field select, .field textarea, .code-input, .search-form input { display: block; width: 100%; color: #263449; background: white; border: 1px solid #dbe1e9; border-radius: 7px; padding: 10px 11px; outline: none; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus, .code-input:focus, .search-form input:focus { border-color: #6a9cf2; box-shadow: 0 0 0 3px #e7efff; outline: none; }
textarea.code-input { min-height: 325px; width: 100%; resize: vertical; font-size: 12px; line-height: 1.65; font-family: ui-monospace, Consolas, monospace; }
.form-hint { font-size: 11px; line-height: 1.55; color: #8a96a5; }
.field input[type=file] { padding: 8px; }
.upload-zone { border: 1.5px dashed #becbdc; border-radius: 8px; padding: 25px 18px; text-align: center; background: #fcfdff; }
.upload-zone.dragover { border-color: #4980d6; background: #f1f6ff; }
.upload-zone .upload-icon { color: #68809e; font-size: 25px; }
.upload-zone h3 { font-size: 14px; font-weight: 650; margin: 8px 0 6px; }
.upload-zone p { color: #8a96a6; font-size: 11px; margin: 0 0 13px; }
.upload-zone input { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .field { min-width: 185px; }
.toolbar .field input, .toolbar .field select { padding: 8px 10px; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pills, .req-amounts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.denom-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; border: 1px solid #e2e8f0; background: #f8fafc; color: #4c5c72; padding: 4px 7px; font-size: 11px; }
.denom-pill b { color: #344b68; }
/* REQUESTS */
.req-card { border: 1px solid var(--border); background: white; border-radius: 7px; margin-bottom: 9px; padding: 12px 13px; }
.req-top { display: flex; align-items: center; gap: 12px; }
.req-id { display: grid; place-items: center; min-width: 40px; height: 30px; padding: 0 7px; background: var(--primary-bg); border: 1px solid #dbe7ff; border-radius: 6px; color: #2257bc; font-size: 13px; font-weight: 750; }
.req-meta { flex: 1; min-width: 0; color: #929faf; font-size: 11px; }
.req-meta strong { display: block; color: #35455b; font-size: 12px; font-weight: 650; }
.req-controls { display: flex; gap: 6px; }
.req-amounts { margin-top: 10px; }
.result-batch { padding: 13px; border: 1px solid #e6eaf0; border-radius: 8px; margin-bottom: 11px; }
.result-batch-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.result-batch-header h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.result-batch-header small { color: var(--muted); font-size: 11px; }
.result-batch-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 7px; margin-top: 12px; }
.result-group { background: #fafbfc; border: 1px solid var(--border); border-radius: 7px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-group strong { font-size: 12px; }
.result-group small { color: var(--muted); font-size: 11px; }
.result-group button { border: 0; background: none; color: var(--primary); font-size: 18px; padding: 4px; }
/* LOOKUP, SETTINGS, AUDIT */
.search-form { display: flex; gap: 9px; align-items: center; }
.search-form input { flex: 1; min-width: 160px; }
.search-result { margin-top: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.detail-item { border: 1px solid var(--border); border-radius: 7px; padding: 11px 12px; min-width: 0; }
.detail-item label { display: block; color: #8492a5; font-size: 10px; font-weight: 650; }
.detail-item strong { display: block; margin-top: 5px; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.audit-entry { display: flex; align-items: start; gap: 11px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.audit-dot { width: 7px; height: 7px; background: #91b4ed; border-radius: 50%; flex: none; margin-top: 6px; }
.audit-entry h4 { margin: 0 0 5px; font-size: 12px; font-weight: 650; }
.audit-entry p { margin: 0; color: var(--muted); font-size: 11px; }
.account-row { display: grid; grid-template-columns: 1.2fr .8fr repeat(4,70px); align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.account-row.header { background: #fafbfc; padding: 12px 7px; color: #718096; font-size: 11px; font-weight: 650; }
.accounts-scroll { overflow: auto; }
.account-name { font-weight: 700; }
.account-name small { display: block; color: var(--muted); font-size: 10px; font-weight: 450; }
.switch { width: 34px; height: 20px; display: inline-block; position: relative; }
.switch input { opacity: 0; height: 0; width: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 20px; background: #cfd7e2; transition: .15s; cursor: pointer; }
.switch-slider:after { content: ''; width: 14px; height: 14px; position: absolute; border-radius: 50%; left: 3px; top: 3px; background: white; box-shadow: 0 1px 3px #0002; transition: .15s; }
.switch input:checked + .switch-slider { background: #3975dc; }
.switch input:checked + .switch-slider:after { transform: translateX(14px); }
.switch input:disabled + .switch-slider { opacity: .5; cursor: not-allowed; }
.info-pair { display: grid; grid-template-columns: 125px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.info-pair span { color: var(--muted); }
.info-pair strong { overflow-wrap: anywhere; }
/* MODAL AND NOTICES */
.modal-root { display: none; position: fixed; inset: 0; z-index: 100; padding: 18px; background: #18243983; align-items: center; justify-content: center; }
.modal-root.visible { display: flex; }
.modal { width: min(485px,100%); padding: 23px; border-radius: 10px; background: white; box-shadow: 0 20px 55px #182a4540; }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 9px; }
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 8px; width: min(390px,calc(100vw - 40px)); }
.toast { border: 1px solid #c4dbcf; background: white; box-shadow: 0 4px 25px #192d4540; color: #275e46; padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.toast.bad { border-color: #efc2c5; color: #ab4450; }
/* LOGIN */
.login-screen { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: center; padding: 24px; background: #f6f8fb; overflow: auto; }
.login-card { width: min(412px,100%); background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 35px rgba(27,44,70,.06); padding: 32px; }
.login-logo { height: 39px; width: 39px; font-size: 20px; margin-bottom: 18px; }
.login-card h2 { font-size: 21px; margin: 0 0 6px; font-weight: 740; letter-spacing: -.4px; }
.login-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 23px; }
.login-card form { display: flex; flex-direction: column; gap: 8px; }
.login-card input { border: 1px solid #dbe1e9; border-radius: 7px; padding: 11px 12px; color: var(--text); outline: 0; width: 100%; font-size: 13px; }
.login-card input:focus { border-color: #86a7ee; box-shadow: 0 0 0 3px #eaf1ff; }
.login-card .login-submit { margin-top: 9px; min-height: 40px; width: 100%; }
.login-error { min-height: 12px; font-size: 11px; color: #b7424c; }
.demo-accounts { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 15px; display: grid; gap: 5px; }
.demo-accounts > div { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.demo-accounts button { background: #f9fbfe; border: 1px solid #edf0f4; border-radius: 6px; display: flex; justify-content: space-between; padding: 9px 10px; color: #41516b; text-align: left; }
.demo-accounts button:hover { border-color: #b4caf0; background: #f4f8ff; }
.demo-accounts small { color: #8c99aa; }
.login-footer { color: #9da7b5; font-size: 10px; text-align: center; margin-top: 17px; }
/* BREAKPOINTS */
@media (max-width: 1240px) {
  .content-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .page-content { padding: 23px; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; transform: translateX(-110%); transition: transform .2s; box-shadow: 10px 0 45px #0001; }
  .sidebar.mobile-open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .topbar { padding: 0 16px; }
  .page-content { padding: 18px 16px 50px; }
  .demo-warning { padding: 8px 16px; }
  .page-heading { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .topbar { gap: 8px; }
  .topbar-right { gap: 9px; }
  .top-logout { font-size: 0; }
  .top-logout:after { content: '↪'; font-size: 22px; }
  .timezone-pill { display: none; }
  .user-pill { gap: 5px; }
  .user-pill #userDisplay { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 23px; }
  .stat-sub { line-height: 1.5; }
  .panel { padding: 15px; }
  .page-heading h1 { font-size: 20px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; min-width: 0; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .progress-row { grid-template-columns: 30px minmax(0,1fr) 116px; gap: 8px; }
  .progress-row .amount { font-size: 10px; }
  .req-top { flex-wrap: wrap; }
  .req-controls { margin-left: auto; }
  .result-batch-header { align-items: start; }
  .login-card { padding: 25px 20px; }
  .account-row { min-width: 510px; }
  .search-form { flex-wrap: wrap; }
  .search-form .btn { width: 100%; }
}

.allocation-check { display: grid; gap: 10px; }
.allocation-rules { border: 1px solid #e5e9ef; border-radius: 7px; padding: 10px 13px; background: #fff; color: #77849a; font-size: 11px; }
/* Minimalist Telegram-integrated extension */
.tight { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.narrow-panel { max-width: 850px; }
.long-help { font-size: 12px; line-height: 1.75; color: #5a6b81; }
.monospace { font-family: ui-monospace, Consolas, monospace; }
.simple-code { background: #f4f6f9; border: 1px solid #e2e8f0; border-radius: 7px; padding: 12px; line-height: 1.8; white-space: pre-wrap; color: #334155; font-family: ui-monospace,Consolas,monospace; font-size: 12px; }
.light-gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pair { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.pair:last-child {border-bottom:0}
.field input[type=checkbox] { width: auto; display: inline-block; }
.compact-form input:not([type=checkbox]) { width:100%;padding:8px;border:1px solid #dbe1e9;border-radius:6px; }
.compact-form { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px; align-items:end; }
.compact-form label {font-size:11px;color:#64748b;display:grid;gap:5px;}
.settings-row { display: grid; grid-template-columns:minmax(145px,1fr) minmax(100px,1fr) minmax(130px,1fr) 70px 70px auto; gap:9px; align-items:center; padding:11px 0; border-bottom:1px solid #edf0f4; }
.settings-row input { max-width:100%; min-width:0; padding:8px; border:1px solid #e0e5ed; border-radius:6px; }
.settings-row label { text-align:center; }
.settings-head { color:#64748b;font-size:11px;font-weight:650; }
.settings-scroll {overflow:auto}
.settings-scroll .settings-row {min-width:780px}
.telegram-mark { width:40px; height:40px; border-radius:10px; display:grid;place-items:center; background:#eaf4ff; color:#2b88c6; font-size:24px; }
.progress-dot {height:9px; width:9px;border-radius:50%;background:#16a34a;display:inline-block;margin-right:6px}
.progress-dot.off{background:#ef4444}
.notice a { color:#215bb8; }
.stat-grid-small { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px; margin-bottom:15px;}
.code-preview { border:1px solid #edf0f4; padding:12px; border-radius:6px; background:#fafbfe; }
.item-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.empty-line {padding:24px;color:#7d899a;text-align:center}
@media(max-width:900px){ .settings-row{grid-template-columns:repeat(6,1fr)} .item-grid{grid-template-columns:1fr} }
@media(max-width:650px){ .stat-grid-small{grid-template-columns:repeat(2,minmax(0,1fr))} .topbar-right .timezone-pill{display:none} .compact-form{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* Production account controls: plain, compact, easy to scan */
.account-box{border:1px solid var(--border);border-radius:9px;padding:15px;margin:0 0 11px;background:#fff}
.account-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;flex-wrap:wrap}
.account-top strong{font-size:13px}.account-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:12px}
.account-fields input{font-size:12px;padding:9px 10px;border:1px solid var(--border-dark);border-radius:7px;width:100%}
.account-permissions{display:flex;gap:10px 17px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--border);padding-top:12px}
.account-permissions label{font-size:11px;color:#53657c;display:inline-flex;align-items:center;gap:6px}
.account-permissions input{accent-color:#2563eb}.profile-form{max-width:450px;display:grid;gap:16px}
@media(max-width:650px){.account-fields{grid-template-columns:1fr}.account-box{padding:12px}}

/* V3 simple brand filter */
.brand-picker{border:1px solid #d8e0e8;border-radius:8px;background:#fff;color:#18212f;padding:9px 10px;max-width:135px;font-weight:650;}
.brand-picker.hidden{display:none;}
@media(max-width:700px){.brand-picker{max-width:105px;padding:7px 4px;font-size:12px}}
