/* VG MOD VIP — obsidian, ember, and gold. No remote fonts or image dependencies. */
:root {
  color-scheme: dark;
  --background: #0c0d12;
  --surface: #15161d;
  --surface-raised: #1b1c24;
  --nav: #101116;
  --text: #f4f1ed;
  --muted: #a4a4b4;
  --line: #2a2b36;
  --brand: #ff7446;
  --brand-bright: #ff9b53;
  --brand-soft: #36231f;
  --gold: #f4c178;
  --blue: #9bbdff;
  --blue-soft: #222c43;
  --danger: #ff8992;
  --danger-soft: #37212b;
  --amber: #f1c171;
  --amber-soft: #352b1d;
  --radius: 16px;
  --shadow: 0 8px 28px #00000015;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); }
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px;
  border: 1px solid #393944; border-radius: 10px;
  background: #101116; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #62606a; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px #ff744622; }
input::placeholder, textarea::placeholder { color: #9695a6; opacity: 1; }
input[readonly] { background: #1a1b22; color: #c1bfce; }
textarea { resize: vertical; min-height: 90px; }
svg { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 650; }
small { font-size: 12px; }
code, pre, .mono { font-family: "Cascadia Code", Consolas, monospace; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 500; padding: 12px 20px; background: var(--surface); border: 1px solid var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: block; color: #b3adac; font-size: 10px; font-weight: 750; letter-spacing: 1.8px; }
.eyebrow.light { color: #ffc59d; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #72d4ad; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 16px; border: 1px solid #393944; border-radius: 10px;
  background: #1c1d25; color: #e0dce3; font-size: 12px; font-weight: 650;
  white-space: nowrap; transition: background .15s, border-color .15s, transform .15s;
}
.button svg { width: 16px; height: 16px; }
.button:hover { background: #262630; border-color: #65616d; }
.button:active { transform: translateY(1px); }
.button.primary { color: #210e08; border-color: #ff875b; background: linear-gradient(115deg, #ff7045, #ffa25c); box-shadow: 0 4px 18px #f7683525; }
.button.primary:hover { background: linear-gradient(115deg, #ff936c, #ffb377); border-color: #ffb187; }
.button.danger { background: #b52d43; color: #fff; border-color: #d34e62; }
.button.soft { background: var(--brand-soft); color: #ffbb96; border-color: #684034; }
.button.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.button.full { width: 100%; }
.button.small { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b3afbf; transition: background .15s, color .15s; }
.icon-button:hover { background: #ff8a5214; color: #ffb48e; border-color: #ff8a5220; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #ff899233; }
.link-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #ffb48e; font-size: 12px; font-weight: 600; }
.link-button svg { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border: 1px solid #494351; border-radius: 6px; color: #c4bdd0; background: #27232f; font-size: 10px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.active { background: #18342c; border-color: #2c5647; color: #8ce3bd; }
.badge.waiting { background: #232d43; border-color: #3b4e70; color: #b7d1ff; }
.badge.expired { background: #38212b; border-color: #633340; color: #ffacb5; }
.badge.blocked { background: #2e273b; border-color: #514060; color: #d4b5f2; }
.badge.neutral::before { display: none; }
.badge.amber { background: var(--amber-soft); border-color: #5a4628; color: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 30px; color: #bab6c6; background: #191a22; font-size: 10px; line-height: 1; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--muted); font-size: 12px; background: radial-gradient(ellipse at 50% 40%, #40221e55, transparent 50%); }
.boot-screen img { border-radius: 17px; border: 1px solid #805336; box-shadow: 0 0 40px #ff6a4526; }

/* Sign in */
.auth-shell { display: grid; grid-template-columns: minmax(360px, 49%) 1fr; min-height: 100dvh; }
.auth-brand { display: flex; flex-direction: column; position: relative; isolation: isolate; overflow: hidden; padding: 42px 48px; background: #100e12; border-right: 1px solid #3d2923; }
.auth-artwork { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; }
.auth-brand::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #0b0a10c9 0%, #160c0a15 27%, #110b0c7a 48%, #0d0c12f5 83%), linear-gradient(90deg, #100e1288, transparent 75%); }
.auth-brand::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 3px; background: linear-gradient(90deg, #e32f29, #ff9b53, #ffe1a4); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff4eb; padding: 27px 24px 24px; }
.brand img { flex: none; object-fit: cover; border-radius: 12px; border: 1px solid #8f542e; box-shadow: 0 0 20px #ef5f2412; }
.brand > span { font-size: 19px; font-weight: 850; letter-spacing: -.6px; line-height: 1.4; }
.brand em { margin-left: 3px; font-style: normal; color: #ffc276; font-size: 11px; font-weight: 800; letter-spacing: .7px; vertical-align: 2px; }
.brand small { display: block; color: #b9a89a; font-size: 8px; font-weight: 600; letter-spacing: 2.2px; margin-top: 2px; }
.brand-large { padding: 0; }
.brand-large > span { font-size: 24px; }
.brand-large small { font-size: 8px; }
.auth-story { margin-top: auto; padding: 160px 0 40px; }
.auth-story h1 { margin: 17px 0 20px; font-size: clamp(36px, 4.1vw, 58px); font-weight: 800; letter-spacing: -2.3px; line-height: 1.16; text-shadow: 0 2px 28px #0008; }
.auth-story h1 span { color: #ffc28b; }
.auth-story > p { color: #ddd0c8; font-size: 13px; line-height: 1.9; }
.auth-features { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
.auth-features span { display: flex; align-items: center; gap: 7px; color: #d4c4b8; font-size: 10px; }
.auth-features svg { width: 14px; height: 14px; color: #ffb27a; }
.auth-brand-footer { display: flex; align-items: center; gap: 8px; font-size: 10px; color: #baaaa2; }
.auth-brand-footer .status-dot { background: #ffb36e; box-shadow: 0 0 10px #ffab6740; }
.auth-form-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: 55px 35px 80px; background: radial-gradient(ellipse at 70% 0, #54282220, transparent 65%), #0d0e13; }
.auth-card { width: 100%; max-width: 410px; padding: 30px; border: 1px solid #35303a; border-top-color: #5e3b2e; border-radius: 20px; background: linear-gradient(145deg, #1b1b23, #14151c); box-shadow: 0 20px 80px #0003; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.auth-card-top img { border-radius: 16px; border: 1px solid #9a5e36; }
.private-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #4b392d; border-radius: 6px; color: #d6b99a; font-size: 8px; font-weight: 650; letter-spacing: 1px; background: #35261e6b; }
.private-label svg { width: 11px; height: 11px; }
.auth-card > .eyebrow { color: #efab81; font-size: 9px; letter-spacing: 1.6px; }
.auth-card h2 { margin: 10px 0 9px; font-size: 25px; line-height: 1.3; font-weight: 750; letter-spacing: -.9px; }
.auth-card > p { color: #b1a9b8; font-size: 12px; }
.auth-card form { margin-top: 25px; outline: none; }
.field { margin-bottom: 19px; }
.field > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #ded8e1; }
.field > small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field .icon-button { position: absolute; top: 6px; right: 5px; }
.auth-card .button { min-height: 46px; margin-top: 8px; }
.auth-card .button span { flex: 1; padding-left: 16px; }
.auth-card .auth-secure { display: flex; align-items: flex-start; gap: 7px; margin-top: 21px; color: #b4acbb; font-size: 10px; line-height: 1.8; }
.auth-secure svg { width: 14px; height: 14px; color: #c59b77; margin-top: 2px; }
.auth-copyright { position: absolute; bottom: 24px; padding: 0 20px; text-align: center; font-size: 9px; color: #aaa1b0; }
.auth-copyright a { color: #c1b3b8; }
.inline-error { padding: 11px 13px; margin-bottom: 15px; border: 1px solid #79404d; border-radius: 9px; background: #37202a; color: #ffb7c1; font-size: 12px; }
.field-help { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; border: 1px solid #3f4260; border-radius: 10px; background: #24273b; color: #c4cdef; font-size: 11px; line-height: 1.8; }
.field-help svg { width: 16px; height: 16px; margin-top: 2px; }
.field-help.warning { background: #34291b; border-color: #5b4529; color: #f3c98d; }

/* App frame and navigation */
.app-shell { display: flex; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: 252px; border-right: 1px solid #28242d; background: radial-gradient(ellipse at 0 0, #652c2325, transparent 40%), var(--nav); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #514047 transparent; }
.workspace-chip { display: flex; align-items: center; gap: 10px; margin: 0 20px 25px; padding: 12px; border: 1px solid #37303a; border-radius: 10px; background: linear-gradient(100deg, #292027, #1b1a22); color: #e0d5d8; font-size: 11px; }
.workspace-chip small { display: block; margin-top: 1px; color: #b4a7b1; font-size: 10px; }
.workspace-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 1px solid #6e4532; border-radius: 9px; background: #422c20; color: #ffbd7b; }
.workspace-icon svg { width: 17px; height: 17px; }
.workspace-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #eeb36d; box-shadow: 0 0 8px #ee983c50; }
.nav-heading { display: block; margin-bottom: 10px; padding: 0 26px; color: #a49aaa; font-size: 8px; font-weight: 650; letter-spacing: 1.6px; }
.nav-heading.secondary { margin: 26px 0 10px; padding: 0 12px; }
.sidebar nav { padding: 0 14px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 9px; color: #b7b0bf; font-size: 12px; transition: color .15s, background .15s; }
.nav-link svg { width: 18px; height: 18px; color: #aaa1b5; }
.nav-link:hover { background: #ffffff06; color: #fff3e9; }
.nav-link[aria-current="page"] { background: linear-gradient(90deg, #a942242b, #b94c1a10); border-color: #b65b3c3d; color: #ffbb90; font-weight: 650; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -15px; top: 11px; bottom: 11px; width: 3px; background: #ff814d; border-radius: 0 4px 4px 0; box-shadow: 0 0 12px #ff6b4550; }
.nav-link[aria-current="page"] svg { color: #ffab78; }
.nav-counter { margin-left: auto; min-width: 23px; padding: 1px 5px; border: 1px solid #8f543640; border-radius: 5px; background: #d26b2a21; color: #ffc48f; text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding: 34px 22px 0; }
.sidebar-note { position: relative; padding: 16px; overflow: hidden; border: 1px solid #4d342a; border-radius: 12px; background: radial-gradient(ellipse at 100% 0, #98402230, transparent 75%), #201b1f; }
.sidebar-note-icon { position: absolute; right: 13px; top: 14px; color: #ffb36e; }
.sidebar-note-icon svg { width: 18px; height: 18px; }
.sidebar-note strong { color: #f6dece; font-size: 11px; }
.sidebar-note p { margin: 8px 0 13px; color: #bca9a5; font-size: 11px; line-height: 1.7; }
.sidebar-note a { display: inline-flex; align-items: center; gap: 8px; color: #ffbc8c; font-size: 10px; }
.sidebar-note a svg { width: 13px; height: 13px; }
.sidebar-version { display: flex; align-items: center; gap: 7px; padding: 19px 0; margin-top: 22px; border-top: 1px solid var(--line); color: #a99ba7; font-size: 9px; }
.sidebar-version span:last-child { margin-left: auto; }
.sidebar-version .status-dot { width: 4px; height: 4px; background: #f2b971; }
.app-content { display: flex; flex-direction: column; flex: 1; min-width: 0; margin-left: 252px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; height: 75px; padding: 0 34px; border-bottom: 1px solid var(--line); background: #111218; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-crumb { color: #aaa3b1; font-size: 11px; }
.crumb-arrow { width: 11px; height: 11px; color: #766d7c; }
.topbar-left > strong { color: #d4ceda; font-size: 11px; font-weight: 550; white-space: nowrap; }
.connection-status { display: flex; align-items: center; gap: 7px; color: #b7b4c2; font-size: 10px; white-space: nowrap; }
.connection-status.offline .status-dot { background: var(--danger); }
.topbar-divider { width: 1px; height: 26px; margin: 0 6px; background: #36303b; }
.user-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border: 1px solid #7d5435; border-radius: 10px; background: linear-gradient(145deg, #503626, #2a2221); color: #ffd3a3; font-size: 11px; font-weight: 750; }
.user-name strong, .user-name span { display: block; font-size: 10px; line-height: 1.8; }
.user-name span { color: #aaa1b2; font-size: 9px; }
.logout-button { margin-left: 3px; }
.mobile-menu { display: none; }
main { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 31px 34px 40px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0; font-size: 28px; font-weight: 750; letter-spacing: -1px; line-height: 1.4; }
.page-heading p { color: #aba5b5; font-size: 12px; line-height: 1.8; }
.page-heading .eyebrow { color: #c79979; font-size: 9px; letter-spacing: 1.7px; }
.page-actions { display: flex; align-items: center; flex: none; gap: 9px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 34px; border-top: 1px solid var(--line); background: #101116; color: #a89daa; font-size: 9px; }
.app-footer a { color: #c3a99c; }
.nav-scrim { position: fixed; inset: 0; z-index: 39; background: #050409b3; backdrop-filter: blur(4px); }

/* Dashboard */
.overview-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 266px; padding: 32px; margin-bottom: 23px; border: 1px solid #614033; border-radius: 18px; background: linear-gradient(110deg, #241b1c, #1b151a); box-shadow: 0 8px 35px #0002; }
.hero-copy { position: relative; z-index: 2; max-width: 65%; }
.overview-hero .eyebrow { display: flex; align-items: center; gap: 7px; color: #f1b98e; font-size: 9px; letter-spacing: 1.8px; }
.overview-hero .eyebrow svg { width: 13px; height: 13px; }
.overview-hero h2 { color: #fff3eb; font-size: clamp(26px, 2.7vw, 38px); font-weight: 780; line-height: 1.25; letter-spacing: -1.2px; margin: 15px 0 13px; }
.overview-hero h2 span { color: #ffc18b; }
.overview-hero p { color: #d0bab5; font-size: 12px; line-height: 1.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.hero-buttons .button { min-height: 39px; font-size: 11px; }
.hero-art { position: absolute; inset: 0 0 0 43%; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; opacity: .9; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #241b1c 0%, #241b1c44 50%, #180f1710 100%), linear-gradient(0deg, #1c151a99, transparent 45%); }
.hero-art-label { position: absolute; right: 17px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #e2a1714d; border-radius: 6px; background: #160f14d6; color: #f7c494; font-size: 8px; letter-spacing: .6px; }
.hero-art-label svg { width: 12px; height: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.stat-card { position: relative; overflow: hidden; background: linear-gradient(120deg, #1a191f, #15161d); border: 1px solid #353039; border-radius: 13px; padding: 19px 20px; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.stat-top > span { color: #b6aebd; font-size: 11px; }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border: 1px solid #80472955; border-radius: 9px; background: #ff924216; color: #ffb873; }
.stat-icon svg { width: 17px; height: 17px; }
.stat-icon.blue { border-color: #619b8044; background: #74d8ab13; color: #93e3bc; }
.stat-icon.amber { border-color: #97743c44; background: #eab75813; color: #f3cc87; }
.stat-icon.red { border-color: #c66a7b44; background: #f06c7d13; color: #ffa6b2; }
.stat-value { margin-top: 9px; color: #fff5ee; font-size: 33px; line-height: 1.4; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-detail { margin-top: 7px; color: #a9a0b0; font-size: 10px; }
.stat-detail > span { color: #e7bb8e; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; }
.dashboard-lower { margin-top: 20px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 23px 18px; }
.panel-head h2 { color: #ede6ef; font-size: 14px; font-weight: 650; }
.panel-head p { color: #aaa0b2; font-size: 10px; margin-top: 5px; }
.panel-head > svg { color: #cf9e7f; width: 19px; height: 19px; }
.panel-head .link-button { font-size: 10px; white-space: nowrap; }
.panel-head .pill { font-size: 9px; padding: 7px 9px; }
.panel-head .pill .status-dot { width: 4px; height: 4px; }
.chart { padding: 0 18px 8px 7px; }
.chart svg { width: 100%; height: auto; display: block; stroke: none; overflow: visible; }
.chart text { fill: #b0a3b5; font-size: 10px; font-family: inherit; }
.chart .chart-grid { stroke: #39313f; stroke-width: 1; stroke-dasharray: 3 4; }
.chart .chart-bar { fill: #df7349; }
.chart .chart-today { fill: #ffb36c; }
.chart .chart-baseline { fill: #41303a; }
.chart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 23px; border-top: 1px solid var(--line); color: #b0a4b6; font-size: 10px; }
.chart-bottom strong { color: #ffc68e; font-size: 11px; }
.mini-legend { display: flex; align-items: center; gap: 7px; }
.mini-legend i { width: 6px; height: 6px; border-radius: 2px; background: #df7349; }
.activity-list { padding: 0 23px 12px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid #2b2731; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border: 1px solid #69432b66; border-radius: 9px; background: #f3a35d13; color: #edb17b; }
.activity-icon svg { width: 14px; height: 14px; }
.activity-main { flex: 1; min-width: 0; }
.activity-main strong { display: block; color: #dcd0df; font-size: 11px; font-weight: 550; }
.activity-main p { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ac9eaf; font-size: 10px; }
.activity-time { margin-top: 3px; color: #b2a0ac; font-size: 9px; white-space: nowrap; }
.expiring-list { padding: 0 23px 10px; }
.expiring-row { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-top: 1px solid var(--line); }
.customer-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border: 1px solid #57404a; border-radius: 9px; background: #33272f; color: #e6b9b2; font-size: 10px; font-weight: 650; }
.customer-avatar svg { width: 17px; height: 17px; }
.expiring-row > div { flex: 1; min-width: 0; }
.expiring-row strong { display: block; color: #e1d4df; font-size: 12px; font-weight: 550; }
.expiring-row small { color: #baa6b6; font-size: 10px; }
.expiring-row > .badge { font-size: 9px; }
.system-summary { padding: 0 23px 8px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); color: #b5a8bb; font-size: 11px; }
.summary-row strong { color: #e1d5e2; font-size: 11px; font-weight: 550; text-align: right; }
.summary-row .badge { font-size: 9px; }
.integration-state { display: flex; align-items: center; gap: 7px; color: #d9b394; font-size: 10px; }
.integration-state .status-dot { background: #e4b06d; }
.local-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #4e425d; border-radius: 11px; background: #272135; color: #d2c3e4; font-size: 11px; line-height: 1.8; }
.local-note > svg { margin-top: 2px; width: 16px; height: 16px; color: #d5b8ff; }
.local-note strong, .local-note a { color: #e7d7ff; }

/* Key, device, application, and audit tables */
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toolbar-left { flex: 1; }
.toolbar-right { flex: none; }
.search-field { position: relative; display: block; min-width: 220px; max-width: 360px; flex: 1; }
.search-field svg { position: absolute; left: 13px; top: 13px; width: 15px; height: 15px; color: #aaa0b5; pointer-events: none; }
.search-field input { min-height: 40px; padding: 10px 12px 10px 36px; font-size: 11px; background: #111218; border-color: #393440; }
.toolbar-select { width: auto; max-width: 185px; min-height: 40px; padding: 9px 26px 9px 12px; font-size: 11px; color: #ccc0d2; background: #1b1b24; border-color: #3e3445; cursor: pointer; }
.table-info-label { color: #aea0b7; font-size: 10px; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #7d4c39 #19161f; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 14px 15px; border-bottom: 1px solid #39303e; background: #191820; color: #b8a9be; font-size: 9px; font-weight: 650; letter-spacing: .8px; }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 20px; }
.data-table td { padding: 19px 15px; border-bottom: 1px solid #2b2530; color: #bfb0c7; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #ffffff03; }
.data-table strong { font-weight: 550; color: #e7dbea; }
.data-table .index-cell { width: 40px; color: #ae9bb5; font-size: 10px; }
.table-customer { display: flex; align-items: center; gap: 10px; max-width: 210px; }
.table-customer .customer-avatar { width: 30px; height: 30px; font-size: 10px; }
.table-customer div { min-width: 0; }
.table-customer strong { display: block; max-width: 165px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.table-customer small { display: block; max-width: 165px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; color: #ad9cb6; font-size: 10px; }
.key-cell { display: flex; align-items: center; gap: 7px; }
.key-cell code { color: #e4bc9f; font-size: 10px; letter-spacing: -.3px; }
.key-cell .icon-button { width: 28px; height: 28px; color: #c4a59a; }
.key-cell .icon-button svg { width: 13px; height: 13px; }
.application-label { display: block; color: #d3b4c8; font-size: 11px; }
.application-version { display: block; margin-top: 3px; color: #b0a1ba; font-size: 10px; }
.device-count { display: flex; align-items: center; gap: 6px; color: #e5d6e6; font-size: 11px; }
.device-count svg { width: 13px; height: 13px; color: #bda7b6; }
.device-count span { color: #ad97b2; }
.expiry-cell { font-size: 11px; }
.expiry-cell small { display: block; margin-top: 4px; color: #b29db9; font-size: 10px; }
.expiry-cell .text-expired { color: #ffabb5; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.row-actions .icon-button { width: 30px; height: 30px; }
.row-actions .icon-button svg { width: 14px; height: 14px; }
.row-actions .renew-button { color: #e6b986; }
.row-actions .locked { color: #d5b2ee; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-top: 1px solid var(--line); color: #b9a5c2; font-size: 10px; }
.pagination-controls { display: flex; align-items: center; gap: 6px; }
.pagination-controls .icon-button { width: 30px; height: 30px; border: 1px solid #493744; border-radius: 7px; }
.pagination-controls svg { width: 12px; height: 12px; }
.pagination-controls .previous svg { transform: rotate(180deg); }
.pagination-controls span { display: flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border: 1px solid #9b5c38; border-radius: 7px; color: #ffcc9d; background: #442b20; font-size: 11px; }
.pagination-controls .icon-button:disabled { cursor: not-allowed; opacity: .4; }
.table-footnote { display: flex; align-items: flex-start; gap: 7px; margin: 15px 2px; color: #b09fba; font-size: 10px; line-height: 1.8; }
.table-footnote svg { width: 13px; height: 13px; margin-top: 2px; }
.filter-tabs { display: flex; gap: 6px; padding: 15px 20px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: #18171f; scrollbar-width: none; }
.filter-tab { padding: 9px 12px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #b9a8c2; font-size: 11px; white-space: nowrap; }
.filter-tab.selected { color: #ffbf97; border-bottom-color: #ff955c; font-weight: 650; }
.filter-tab:hover { color: #ffd0a7; }
.filter-tab span { margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #342938; color: #d7bfe4; font-size: 9px; }
.filter-tab.selected span { background: #4b2f24; color: #ffce9e; }
.empty-state { padding: 44px 24px; text-align: center; white-space: normal; }
.empty-state-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 13px; border: 1px solid #57404c; border-radius: 14px; background: #29212c; color: #d2a7b6; }
.empty-state-icon svg { width: 22px; height: 22px; }
.empty-state h3 { margin-bottom: 7px; color: #e6d3e8; font-size: 13px; font-weight: 600; }
.empty-state p { max-width: 390px; margin: 0 auto; color: #bca9c7; font-size: 11px; line-height: 1.8; }
.empty-state .button { margin-top: 18px; font-size: 11px; }
.empty-state.compact { padding: 31px 20px; }
.empty-state.compact .empty-state-icon { width: 38px; height: 38px; margin-bottom: 11px; border-radius: 12px; }
.empty-state.compact .empty-state-icon svg { width: 18px; height: 18px; }
.empty-state.compact h3 { font-size: 11px; }
.empty-state.compact p { font-size: 10px; }
.table-skeleton { padding: 26px; text-align: center; color: var(--muted); font-size: 12px; }
.spinner { display: inline-block; width: 17px; height: 17px; margin-right: 8px; border: 2px solid #5b3d34; border-top-color: #ffb572; border-radius: 50%; vertical-align: middle; animation: spin .7s linear infinite; }
.page-loading { display: flex; align-items: center; justify-content: center; min-height: 300px; color: #c3b0ce; font-size: 12px; }

/* Dialogs and forms */
.modal { width: 560px; max-width: calc(100vw - 32px); max-height: 90dvh; overflow-y: auto; padding: 0; border: 1px solid #81513d; border-radius: 18px; background: #19171f; color: var(--text); box-shadow: 0 25px 100px #0009; }
.modal::backdrop { background: #030207c9; backdrop-filter: blur(5px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 25px 27px 19px; border-bottom: 1px solid #48313d; background: linear-gradient(115deg, #36221e, #19171f 85%); }
.modal-head h2 { color: #fff0e7; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.modal-head p { margin-top: 5px; color: #ccb6c5; font-size: 11px; overflow-wrap: anywhere; }
.modal-head .icon-button { margin: -3px -8px 0 0; }
.modal-body { padding: 23px 27px; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 18px 27px; border-top: 1px solid #3d2e3d; background: #141219; }
.modal .field > label { font-size: 11px; }
.modal .field { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.form-grid .span-two { grid-column: 1 / -1; }
.preset-days { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.preset-days button { padding: 5px 9px; border: 1px solid #604333; border-radius: 5px; background: #30211d; color: #edba91; font-size: 10px; }
.preset-days button:hover { border-color: #d58a55; background: #4c2e22; }
.modal-body .field-help { margin-top: 3px; }
.modal-error { padding: 0 27px; }
.confirm-visual { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 19px; border: 1px solid #8d3e52; border-radius: 14px; background: #3d222e; color: #ff9fae; }
.confirm-message { color: #cbb8d3; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.confirm-message strong { color: #f4dbea; }
.created-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.created-heading > svg { width: 37px; height: 37px; padding: 8px; border: 1px solid #835839; border-radius: 50%; background: #463022; color: #ffd19b; }
.created-heading h3 { font-size: 14px; color: #f3d9c2; }
.created-heading p { margin-top: 4px; color: #c2a8c2; font-size: 11px; }
.created-key { margin-top: 11px; padding: 15px; border: 1px solid #634231; border-radius: 10px; background: #2b201d; }
.created-key > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.created-key strong { color: #f1d2ba; font-size: 11px; }
.created-key .badge { font-size: 9px; }
.created-key code { display: block; margin-top: 11px; color: #ffcd95; font-size: 11px; overflow-wrap: anywhere; }
.created-key .icon-button { width: 29px; height: 29px; }
.created-list { max-height: 330px; overflow: auto; }
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 270px; max-width: 420px; padding: 15px; border: 1px solid #855a38; border-radius: 12px; background: #2b211f; box-shadow: 0 8px 40px #0007; color: #f6d4ae; font-size: 12px; animation: toast-in .2s ease-out; }
.toast > svg { width: 18px; height: 18px; margin-top: 1px; color: #ffd196; }
.toast.error { border-color: #ae4f65; background: #3b1e2a; color: #ffc4d3; }
.toast.error > svg { color: #ffa8bc; }
.toast .icon-button { width: 26px; height: 26px; margin: -4px -5px -3px auto; }
.toast .icon-button svg { width: 13px; height: 13px; }

/* Settings and API documentation */
.settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 21px; }
.settings-body { padding: 0 23px 23px; }
.settings-body .field > label { font-size: 11px; }
.settings-body input { font-size: 12px; }
.settings-body .button { font-size: 11px; }
.settings-body .summary-row:first-child { border-top: 0; }
.settings-body > .field-help { margin-top: 16px; }
.settings-note { margin-top: 17px; color: #beaccb; font-size: 11px; line-height: 1.9; }
.setting-indicator { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.api-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr); align-items: start; gap: 20px; }
.api-body { padding: 0 23px 23px; }
.api-body .field > label { font-size: 11px; }
.api-body input { font-size: 11px; }
.copy-input { display: flex; gap: 8px; }
.copy-input input { min-width: 0; }
.copy-input .button { min-height: 42px; padding: 8px 11px; }
.api-endpoint { display: flex; align-items: center; gap: 8px; margin: 25px 0 11px; color: #ead2e9; font-size: 11px; }
.method-tag { padding: 4px 7px; border: 1px solid #774c35; border-radius: 5px; background: #38271e; color: #ffcc9f; font-family: Consolas, monospace; font-size: 9px; font-weight: 650; }
.code-block { overflow: auto; margin: 0; padding: 17px; border: 1px solid #423147; border-radius: 10px; background: #100d15; color: #e8bfaf; font-size: 10px; line-height: 1.9; white-space: pre; tab-size: 2; }
.api-step { display: flex; align-items: flex-start; gap: 12px; margin: 19px 0; }
.step-number { display: flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border: 1px solid #835237; border-radius: 8px; background: #3d281f; color: #ffc48e; font-size: 10px; }
.api-step strong { color: #ead1e5; font-size: 11px; }
.api-step p { margin-top: 5px; color: #beabcb; font-size: 11px; line-height: 1.8; }
.api-side-note { margin-top: 19px; padding: 16px; border: 1px solid #4e3b58; border-radius: 11px; background: #251d2e; color: #cdb7db; font-size: 11px; line-height: 1.9; }
.api-side-note strong { display: block; margin-bottom: 6px; color: #f0c9e2; }
.test-result { margin-top: 17px; padding-top: 17px; border-top: 1px solid #67403e; }
.test-result h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #f6cc9d; font-size: 12px; }
.test-result h3 svg { width: 17px; height: 17px; }
.test-result .code-block { max-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.test-result .button { margin-top: 11px; }
.test-warning { margin-bottom: 19px; padding: 12px 13px; border: 1px solid #71502e; border-radius: 9px; background: #35271b; color: #f4ca94; font-size: 11px; line-height: 1.8; }
.package-slug { color: #dfbda5; font-size: 11px; }
.audit-action { display: flex; align-items: center; gap: 9px; }
.audit-action .activity-icon { width: 28px; height: 28px; border-radius: 8px; }
.audit-details { max-width: 340px; overflow: hidden; text-overflow: ellipsis; color: #c5aacc; font-size: 11px; }
.notice-banner { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; padding: 13px 16px; border: 1px solid #5d4445; border-radius: 10px; background: #292024; color: #d9bec2; font-size: 11px; line-height: 1.8; }
.notice-banner svg { width: 16px; height: 16px; margin-top: 2px; color: #f0b194; }
.notice-banner strong { color: #ffd0b5; }
.status-key-count { margin-left: 9px; color: #b9a0c2; font-size: 10px; font-weight: 450; }
.error-panel { padding: 43px 25px; border: 1px solid #a24b60; border-radius: 13px; background: #2f1b25; text-align: center; }
.error-panel > svg { width: 29px; height: 29px; margin-bottom: 13px; color: #ffacc1; }
.error-panel h3 { color: #ffd0df; font-size: 14px; }
.error-panel p { margin: 8px 0 18px; color: #e3b4cd; font-size: 12px; }
.busy { pointer-events: none; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Keep the same dashboard and all admin operations usable on a phone. */
@media (min-width: 1550px) {
  main { padding: 36px 42px 45px; }
  .topbar { padding-inline: 42px; }
  .overview-hero { min-height: 300px; padding: 37px; }
  .overview-hero h2 { font-size: 41px; }
  .stats-grid { gap: 21px; }
  .stat-card { padding: 23px 25px; }
  .stat-value { font-size: 37px; }
  .activity-item { padding-block: 17px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 224px; }
  .app-content { margin-left: 224px; }
  .sidebar .brand { padding-inline: 20px; gap: 10px; }
  .sidebar .brand > span { font-size: 17px; }
  .sidebar .brand img { width: 42px; height: 42px; }
  .sidebar .brand small { font-size: 7px; letter-spacing: 1.8px; }
  .workspace-chip { margin-inline: 16px; padding: 11px 10px; }
  .sidebar-bottom { padding-inline: 18px; }
  main { padding: 27px 25px 35px; }
  .topbar { padding-inline: 25px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-top > span { font-size: 10px; }
  .stat-value { font-size: 30px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); gap: 16px; }
  .panel-head { padding: 19px 18px 17px; }
  .activity-list, .expiring-list, .system-summary { padding-inline: 18px; }
  .activity-time { font-size: 8px; }
  .hero-copy { max-width: 72%; }
}
@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid.dashboard-lower { grid-template-columns: 1fr 1fr; }
  .activity-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .settings-grid, .api-grid { grid-template-columns: 1fr; }
  .topbar-crumb, .crumb-arrow, .page-actions .date-pill { display: none; }
  .app-footer { flex-direction: column; align-items: flex-start; gap: 5px; padding-inline: 25px; }
  .auth-shell { grid-template-columns: 43% 1fr; }
  .auth-brand { padding: 34px 28px; }
  .auth-story h1 { font-size: 40px; letter-spacing: -1.7px; }
  .auth-story > p { font-size: 12px; }
  .auth-features { flex-direction: column; gap: 10px; }
  .auth-brand-footer { font-size: 9px; }
  .auth-form-area { padding-inline: 26px; }
  .auth-card { padding: 26px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 11px; }
}
@media (max-width: 800px) {
  .sidebar { width: 252px; transform: translateX(-100%); transition: transform .2s ease; }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .app-content { margin-left: 0; }
  .sidebar .brand { padding: 27px 24px 24px; gap: 12px; }
  .sidebar .brand img { width: 48px; height: 48px; }
  .sidebar .brand > span { font-size: 19px; }
  .sidebar .brand small { font-size: 8px; letter-spacing: 2.2px; }
  .workspace-chip { margin-inline: 20px; padding: 12px; }
  .sidebar-bottom { padding-inline: 22px; }
  .mobile-menu { display: flex; width: 38px; height: 38px; }
  .topbar { position: sticky; top: 0; z-index: 20; height: 65px; padding-inline: 18px; background: #111218f5; backdrop-filter: blur(12px); }
  .topbar-left, .topbar-right { gap: 10px; }
  .topbar-divider { margin-inline: 0; }
  .user-name { display: none; }
  main { padding: 25px 20px 32px; }
  .page-heading { margin-bottom: 22px; }
  .overview-hero { min-height: 270px; padding: 27px; }
  .overview-hero h2 { font-size: 32px; }
  .hero-art { left: 42%; }
  .hero-copy { max-width: 70%; }
  .page-actions { gap: 7px; }
  .page-actions .button { padding: 9px 12px; font-size: 11px; }
  .toolbar-left { min-width: 260px; }
  .search-field { min-width: 170px; }
  .app-footer { padding-inline: 20px; }
  .auth-shell { display: flex; flex-direction: column; }
  .auth-brand { min-height: 245px; padding: 25px; border-right: 0; border-bottom: 1px solid #654131; }
  .auth-artwork { object-position: 62% 35%; }
  .auth-brand::before { background: linear-gradient(90deg, #0c0b12ee 4%, #1b0f0c99 45%, #110c0c10), linear-gradient(0deg, #100d12dd, transparent 80%); }
  .brand-large img { width: 44px; height: 44px; border-radius: 11px; }
  .brand-large > span { font-size: 20px; }
  .brand-large small { font-size: 7px; }
  .auth-story { padding: 29px 0 0; }
  .auth-story .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .auth-story h1 { margin: 9px 0 0; font-size: 30px; letter-spacing: -1px; }
  .auth-story > p, .auth-features, .auth-brand-footer { display: none; }
  .auth-form-area { min-height: calc(100dvh - 245px); padding: 26px 20px 75px; justify-content: flex-start; }
  .auth-card { max-width: 440px; }
  .auth-card-top { margin-bottom: 23px; }
  .auth-card-top img { width: 52px; height: 52px; border-radius: 13px; }
  .auth-card h2 { font-size: 25px; }
  .auth-copyright { font-size: 8px; bottom: 24px; }
  input, select, textarea, .api-body input, .settings-body input { font-size: 16px; }
  .search-field input, .toolbar-select { font-size: 16px; }
  .modal input, .modal select, .modal textarea { font-size: 16px; }
  .field > label, .modal .field > label { font-size: 12px; }
  .icon-button, .row-actions .icon-button, .key-cell .icon-button { min-width: 40px; min-height: 40px; }
  .row-actions { gap: 4px; }
  .modal-head .icon-button { min-width: 36px; min-height: 36px; }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 13px; }
  .topbar-left, .topbar-right { gap: 6px; }
  .topbar-left > strong { font-size: 10px; }
  .connection-status { font-size: 9px; }
  .topbar-divider { display: none; }
  .user-avatar { width: 29px; height: 29px; font-size: 10px; border-radius: 8px; }
  .logout-button { margin-left: 0; min-width: 34px; width: 34px; }
  main { padding: 23px 15px 28px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 13px; }
  .page-heading > div:first-child { flex: 1; min-width: 180px; }
  .page-heading h1 { font-size: 25px; margin-block: 5px; }
  .page-heading p { font-size: 11px; max-width: 330px; }
  .page-actions { margin-left: auto; }
  .page-actions .button { min-height: 42px; }
  .page-actions .export-label { display: none; }
  .overview-hero { min-height: 310px; padding: 23px; margin-bottom: 18px; }
  .overview-hero h2 { font-size: 29px; letter-spacing: -.9px; }
  .overview-hero p { font-size: 11px; }
  .hero-copy { max-width: 100%; }
  .hero-art { left: 23%; opacity: .55; }
  .hero-art::after { background: linear-gradient(90deg, #241b1ced, #241b1c55), linear-gradient(0deg, #1c151ae8, transparent 90%); }
  .hero-art-label { display: none; }
  .hero-buttons { margin-top: 22px; gap: 8px; }
  .hero-buttons .button { font-size: 10px; padding: 10px 12px; min-height: 42px; }
  .hero-buttons .button svg { width: 14px; height: 14px; }
  .stats-grid { gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 15px 13px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-top { gap: 6px; }
  .stat-top > span { font-size: 10px; }
  .stat-value { font-size: 31px; }
  .stat-detail { font-size: 9px; line-height: 1.7; }
  .dashboard-grid.dashboard-lower { grid-template-columns: 1fr; }
  .panel-head { padding: 19px 17px 16px; }
  .panel-head h2 { font-size: 13px; }
  .panel-head p { font-size: 9px; }
  .panel-head .link-button { font-size: 9px; }
  .panel-head .pill { font-size: 8px; }
  .chart { padding-inline: 0 13px; }
  .chart-bottom { padding: 13px 17px; font-size: 9px; }
  .chart-bottom strong { font-size: 10px; }
  .activity-list { display: block; padding-inline: 17px; }
  .activity-time { font-size: 9px; }
  .table-toolbar { padding: 14px; gap: 12px; }
  .toolbar-left { flex-wrap: wrap; min-width: 0; width: 100%; flex-basis: 100%; }
  .search-field { min-width: 0; max-width: none; flex-basis: 100%; }
  .toolbar-select { max-width: 100%; }
  .toolbar-right { margin-left: auto; }
  .filter-tabs { padding: 12px 9px 0; gap: 0; }
  .filter-tab { padding: 10px 10px 13px; font-size: 10px; }
  .filter-tab span { display: none; }
  .table-pagination { padding: 15px 14px; gap: 9px; font-size: 9px; }
  .table-footnote { font-size: 9px; }
  .local-note, .notice-banner { padding: 12px 13px; font-size: 10px; }
  .modal { max-width: calc(100vw - 20px); max-height: 92dvh; border-radius: 15px; }
  .modal-head { padding: 21px 20px 17px; }
  .modal-head h2 { font-size: 19px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; }
  .modal-error { padding-inline: 20px; }
  .form-grid { column-gap: 12px; }
  .preset-days button { padding: 6px 8px; font-size: 9px; }
  .created-key > div { justify-content: flex-start; }
  .created-key .icon-button { margin-left: auto; }
  .created-key code { font-size: 10px; }
  .settings-body, .api-body { padding-inline: 17px; }
  .code-block { padding: 14px; font-size: 9px; }
  .api-endpoint { font-size: 10px; }
  .toast-stack { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .toast { min-width: 240px; font-size: 11px; }
  .app-footer { padding: 18px 15px max(18px, env(safe-area-inset-bottom)); font-size: 8px; }
  .auth-brand { min-height: 220px; padding: 22px; }
  .auth-story { padding-top: 25px; }
  .auth-story h1 { font-size: 28px; }
  .auth-form-area { min-height: calc(100dvh - 220px); padding: 22px 15px 70px; }
  .auth-card { padding: 25px 22px; border-radius: 16px; }
  .auth-card h2 { font-size: 24px; }
  .auth-card > p { font-size: 11px; }
  .auth-card .button { min-height: 48px; }
  .auth-card .auth-secure { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
