:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --text: #203b34;
  --muted: #64756d;
  --border: #e0e6df;
  --input-border: #a0b2a7;
  --accent: #226450;
  --accent-hover: #174c3c;
  --accent-soft: #edf4ed;
  --sidebar: #163c35;
  --sidebar-text: #d7e8de;
  --sidebar-muted: #a9c4b7;
  --error: #a32d2d;
  --error-bg: #fff0ed;
  --warning: #785511;
  --warning-bg: #fff7e1;
  --radius: 12px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.55; }
button, input, select { font: inherit; }
button, .file-button { min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 10px 16px; background: var(--accent); color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.35; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-align: center; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s; touch-action: manipulation; }
button:hover, .file-button:hover { background: var(--accent-hover); }
button:active, .file-button:active { box-shadow: inset 0 2px 4px #0002; }
button:disabled, input:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
button svg, .section-footnote svg, .local-label svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
input, select { display: block; width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--input-border); border-radius: 7px; padding: 10px 12px; color: var(--text); background: var(--surface); line-height: 1.4; }
input::placeholder { color: #728177; opacity: 1; }
input[type="password"] { font-family: var(--mono); }
input:focus, select:focus { border-color: var(--accent); }
:focus-visible { outline: 3px solid #4e937b; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
button.secondary, .secondary { color: var(--text); background: var(--surface); border-color: var(--input-border); }
button.secondary:hover, .secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
button.text-button { padding: 8px 0; background: transparent; border-color: transparent; color: var(--accent); justify-content: flex-start; text-align: left; }
button.text-button:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
button.small { padding: 8px 12px; font-size: 13px; }
.icon-button { display: inline-grid; place-items: center; width: 46px; min-width: 46px; min-height: 46px; padding: 0; }
.icon-button svg { width: 19px; height: 19px; }
.variable-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.9px; font-weight: 650; text-wrap: balance; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.3px; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.4; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
#storage-details { margin-top: 9px; font-size: 12px; }
#storage-details summary { width: fit-content; cursor: pointer; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
#storage-debug { margin: 8px 0 2px; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--mono); }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 15px 18px; border: 1px solid #c9d9cc; border-radius: 10px; background: var(--accent-soft); }
.batch-toolbar > div:first-child { min-width: 0; }
.batch-toolbar strong { display: block; font-size: 14px; }
.batch-toolbar p { margin-top: 3px; font-size: 12px; }
.batch-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-toolbar-actions button { min-height: 42px; }
.batch-pending { display: block; margin-top: 5px; color: var(--warning); font-size: 11px; font-weight: 600; }
.visually-hidden { 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: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: #fff; color: var(--accent); border: 2px solid var(--accent); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: 100dvh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); padding: 32px 18px 20px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark { display: flex; flex: 0 0 auto; justify-content: center; align-items: center; width: 38px; height: 42px; border-radius: 9px; background: #d8efb9; color: var(--sidebar); }
.brand-mark svg { width: 30px; height: 30px; }
.brand-title { display: block; color: #fff; font-size: 23px; font-weight: 700; letter-spacing: -.8px; line-height: 1.2; }
.brand-title > span { font-weight: 350; color: #d8efb9; }
.brand-subtitle { display: block; color: var(--sidebar-muted); font-size: 10px; margin-top: 7px; letter-spacing: .1px; }
.mobile-menu-toggle, .drawer-topbar, .mobile-menu-backdrop { display: none; }
.nav-label { margin: 48px 15px 12px; color: var(--sidebar-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; }
.main-nav { display: flex; flex-direction: column; gap: 7px; }
.main-nav button { width: 100%; justify-content: flex-start; padding: 13px 14px; min-height: 49px; background: transparent; color: var(--sidebar-text); border-radius: 8px; border-color: transparent; font-size: 14px; font-weight: 450; text-align: left; }
.main-nav button svg { width: 19px; height: 19px; margin-right: 2px; }
.main-nav button:hover { background: #254b42; }
.main-nav button[aria-current="page"], .main-nav button.active { background: #31564a; color: #f1f7e9; border: 1px solid #476d5a; font-weight: 600; }
.main-nav button[aria-current="page"]::after, .main-nav button.active::after { content: ""; margin-left: auto; width: 5px; height: 5px; flex: 0 0 auto; background: #d8efb9; border-radius: 50%; }
.drawer-app-refresh:not([hidden]) { display: grid; gap: 9px; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid #43665b; }
.drawer-app-refresh > p:first-child { color: var(--sidebar-muted); font-size: 12px; }
.drawer-app-refresh > button { width: 100%; min-height: 46px; justify-content: center; background: #1a4139; color: var(--sidebar-text); border-color: #43665b; }
#refresh-app-status { color: var(--sidebar-text); font-size: 12px; line-height: 1.5; }
.sidebar :focus-visible { outline-color: #d8efb9; }
.sidebar-bottom { margin-top: auto; padding-top: 45px; }
.room-card { border: 1px solid #43665b; padding: 17px 16px; border-radius: 9px; background: #1a4139; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.room-card-label { color: var(--sidebar-muted); font-size: 9px; letter-spacing: 1.2px; margin-bottom: 6px; font-weight: 650; }
.room-card strong { color: #f2f7f0; font-size: 14px; font-weight: 550; }
.room-switcher { margin-top: 5px; width: 100%; min-height: 38px; padding: 6px 8px; background: #1a4139; color: var(--sidebar-text); border-color: #43665b; font-size: 12px; }
#hotel-label { font-size: 12px; color: var(--sidebar-muted); }
.connection-status { margin-top: 11px; padding-top: 12px; border-top: 1px solid #3b5d51; font-size: 11px; color: #d7e8de; display: flex; align-items: center; gap: 7px; }
.connection-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.connection-status[data-connected="true"] { color: #d8efb9; }
.local-label { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 19px; color: var(--sidebar-muted); font-size: 10px; }
.local-label svg { width: 13px; height: 13px; }
.main-content { width: 100%; max-width: 1510px; min-width: 0; padding: 31px clamp(24px,4vw,62px) 24px; }
.main-content:focus:not(:focus-visible), #page-title:focus:not(:focus-visible) { outline: none; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 39px; }
.install-button { margin-left: auto; min-height: 38px; padding-block: 7px; }
.eyebrow, .section-kicker { font-size: 10px; line-height: 1.5; letter-spacing: 1.35px; color: var(--muted); font-weight: 650; }
.eyebrow span { margin: 0 9px; color: #92a095; }
.edition { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); }
.edition-dot { width: 6px; height: 6px; border-radius: 50%; background: #759776; }
.page-header { margin-bottom: 29px; }
.page-header p { color: var(--muted); margin-top: 10px; max-width: 65ch; font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 29px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 22px 25px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 10px; }
.stat-icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stat > div:last-child { min-width: 0; }
.stat-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.stat strong { display: block; font-size: 25px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .stat-text { font-size: 15px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 25px 21px; }
.panel-toolbar h2 { font-size: 16px; }
.panel-toolbar p { margin-top: 4px; font-size: 12px; }
.list-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 25px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.search-field { position: relative; display: block; width: 100%; max-width: 340px; }
.search-field input { padding-left: 37px; font-size: 13px; min-height: 42px; border-color: #acbaaf; }
.search-field svg { width: 17px; height: 17px; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; }
.list-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
.variable-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(65px,auto) auto; align-items: center; gap: 22px; padding: 18px 25px; border-bottom: 1px solid var(--border); }
.variable-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.variable-row:hover { background: var(--surface-soft); }
.variable-info { min-width: 0; }
.variable-name { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.variable-time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.variable-value { display: block; max-width: 25ch; font-size: 15px; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border: 1px solid #dce8dc; border-radius: 5px; text-align: right; overflow-wrap: anywhere; }
.empty-state { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 46px 26px; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #e0e9db; border-radius: 19px; background: #f2f7ec; margin-bottom: 21px; color: #6a8b66; }
.empty-icon svg { width: 38px; height: 38px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { font-size: 21px; margin-bottom: 9px; }
.empty-state p { max-width: 44ch; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state button { margin-top: 23px; }
.empty-state.compact { min-height: 185px; padding: 28px 18px; }
.empty-state.compact h3 { margin-bottom: 7px; }
.empty-state.compact p { font-size: 12px; }
.section-footnote { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: var(--muted); margin: 17px 3px 0; }
.section-footnote svg { width: 14px; height: 14px; margin-top: 2px; }
.section-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-actions > p { font-size: 13px; }
.scan-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.scan-controls > p { font-size: 13px; }
.scan-options { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 550; }
.scan-field select { width: auto; min-height: 42px; padding: 7px 30px 7px 10px; font-size: 13px; }
#scan-variable-wrap select { max-width: 220px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.users-layout { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: 22px; align-items: start; }
.holder-panel { margin-bottom: 18px; }
.holder-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 18px; }
.holder-controls select { min-width: 190px; max-width: min(420px, 65vw); min-height: 42px; padding: 7px 30px 7px 10px; font-size: 13px; }
.holder-controls .search-field { max-width: 320px; }
.holder-list { border-top: 1px solid var(--border); }
.holder-row, .assign-user-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.holder-row > .user-info, .assign-user-row > .user-info { min-width: 0; flex: 1; }
.holder-row .variable-value { min-width: 70px; }
.holder-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; }
.holder-pagination button { min-height: 38px; padding: 8px 13px; }
.assign-panel .panel-heading { padding-bottom: 15px; }
.assign-panel .panel-heading h2 { font-size: 19px; }
.assign-panel .panel-heading p { line-height: 1.6; }
.assign-user-row:last-child { border-bottom: 0; }
.assign-user-row .secondary { flex: 0 0 auto; }
.panel-heading { padding: 23px 24px 21px; }
.panel-heading p { font-size: 12px; margin-top: 5px; }
.user-search-wrap { padding: 0 16px 17px; }
.user-search-wrap .search-field { max-width: none; }
.user-list { border-top: 1px solid var(--border); }
.user-item { width: 100%; display: flex; justify-content: flex-start; padding: 14px 17px; gap: 12px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--surface); color: var(--text); text-align: left; }
.user-item:hover { background: var(--surface-soft); }
.user-item.selected { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.avatar, .detail-avatar { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 10px; background: #e6ede3; color: var(--accent); font-size: 14px; font-weight: 650; }
.user-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.user-id { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; overflow-wrap: anywhere; }
.lookup-form { padding: 18px 17px 19px; background: var(--surface-soft); border-radius: 0 0 var(--radius) var(--radius); }
.lookup-form > label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 9px; }
.input-action { display: flex; gap: 7px; }
.input-action input { min-width: 0; font-size: 12px; padding: 9px; }
.input-action button { padding: 9px 12px; font-size: 12px; }
.user-detail { min-height: 420px; }
.user-detail > .empty-state { min-height: 420px; }
.detail-header { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 23px 24px; border-bottom: 1px solid var(--border); }
.detail-header > div:not(.detail-avatar):not(.detail-actions) { min-width: 0; flex: 1; }
.detail-header p { color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.detail-header h2 { overflow-wrap: anywhere; }
.detail-avatar { width: 47px; height: 47px; font-size: 18px; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.profile-add-variable { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.profile-add-variable label { color: var(--muted); font-size: 12px; font-weight: 600; }
.profile-add-variable select { min-width: 180px; max-width: 100%; min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.profile-add-variable .field-help { flex-basis: 100%; }
.user-detail .variable-row { grid-template-columns: minmax(0,1fr) minmax(65px,auto) auto; gap: 12px; padding: 17px 20px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(270px,.85fr); gap: 25px; align-items: start; }
.room-management { grid-column: 1 / -1; }
.room-management .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.room-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 24px 22px; }
.room-management-item { display: flex; align-items: center; gap: 8px; width: 100%; }
.room-choice { flex: 1; justify-content: flex-start; }
.room-choice.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.danger-button { color: var(--error); background: var(--surface); border-color: #d8aaa4; }
.danger-button:hover { color: #7f1d1d; background: var(--error-bg); border-color: var(--error); }
.settings-panel .panel-heading { padding: 25px 28px 21px; border-bottom: 1px solid var(--border); }
.section-kicker { display: block; font-size: 9px; letter-spacing: 1.15px; margin-bottom: 9px; }
.settings-panel .panel-heading h2 { font-size: 21px; }
.settings-panel .panel-heading p { font-size: 13px; margin-top: 7px; }
.settings-form { padding: 25px 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; min-width: 0; }
.field > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.field input, .field select { font-size: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-help { display: block; color: var(--muted); font-size: 11px; line-height: 1.65; }
.required-label, .optional-label { color: var(--muted); font-size: 10px; font-weight: 400; }
.settings-form > .text-button { margin-top: -13px; font-size: 12px; }
.form-footer { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 22px; }
.form-footer > p { margin-top: 12px; }
.settings-aside { display: flex; flex-direction: column; gap: 20px; }
.portable-card { padding: 23px 24px 21px; background: #e9efdf; border: 1px solid #d8e2ce; border-radius: var(--radius); }
.portable-art { width: 122px; margin-bottom: 15px; color: #5f7a53; }
.portable-art svg { display: block; width: 100%; height: auto; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portable-card .section-kicker { color: #53694c; }
.portable-card h2 { font-size: 23px; font-weight: 600; }
.portable-card > p { font-size: 13px; color: #52624d; line-height: 1.75; margin-top: 10px; }
.portable-card > button { margin-top: 20px; width: 100%; }
.portable-card > p.portable-note { margin-top: 13px; font-size: 10px; line-height: 1.65; }
.transfer-panel { padding: 22px 24px; }
.transfer-panel h2 { font-size: 15px; }
.transfer-panel > p { margin-top: 8px; font-size: 12px; }
.transfer-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 18px 0 7px; }
.transfer-actions button, .transfer-actions .file-button { font-size: 12px; }
.transfer-panel > .text-button { font-size: 11px; }
.transfer-panel > .field-help { font-size: 10px; margin-top: 0; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #4e937b; outline-offset: 3px; }
.error { color: var(--error); font-size: 13px; overflow-wrap: anywhere; }
.warning { color: var(--warning); background: var(--warning-bg); }
.banner { padding: 13px 17px; border-radius: 8px; margin-bottom: 18px; border: 1px solid currentColor; }
.error.banner { background: var(--error-bg); }
.notice:not(:empty) { border: 1px solid #b0cdb5; background: var(--accent-soft); padding: 12px 16px; margin-bottom: 18px; border-radius: 8px; color: var(--accent); font-size: 13px; }
.progress:not(:empty) { margin: -4px 0 18px; color: var(--accent); font-size: 12px; padding: 11px 14px; background: var(--accent-soft); border-radius: 8px; }
.badge { display: inline-flex; align-items: center; width: fit-content; gap: 5px; padding: 4px 8px; border: 1px solid #d4e2d3; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 600; }
.list-summary { padding: 12px 20px; font-size: 12px; color: var(--muted); }
.pagination { padding: 15px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.loading { color: var(--muted); }
.loading::before { content: ""; width: 14px; height: 14px; display: inline-block; border: 2px solid #c0d0c4; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 9px; vertical-align: -2px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 43px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.page-footer > span:first-child { font-weight: 650; letter-spacing: -.15px; }
dialog { width: min(460px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 20px 80px #102b3540; }
dialog::backdrop { background: #0d251ac2; }
.edit-form { padding: 28px; }
.edit-form h2 { font-size: 24px; margin-bottom: 8px; }
.edit-form > p { font-size: 13px; }
.edit-variable-name { display: block; padding: 13px; margin: 18px 0 21px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; }
.edit-form .field input { font-family: var(--mono); font-size: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.batch-dialog-content { padding: 26px; }
.batch-dialog-content h2 { margin-bottom: 7px; font-size: 22px; }
.batch-dialog-content > .muted { margin-bottom: 16px; font-size: 13px; }
.batch-review-list, .batch-result-list { display: grid; gap: 7px; max-height: min(46vh,480px); overflow: auto; padding: 2px 4px 2px 0; }
.batch-review-item, .batch-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); font-size: 12px; }
.batch-review-item > div, .batch-result-item > div { min-width: 0; }
.batch-review-item strong, .batch-result-item strong { display: block; overflow-wrap: anywhere; }
.batch-review-item span, .batch-result-item span { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.batch-operation-value { flex: 0 0 auto; font-family: var(--mono); color: var(--accent); }
.batch-operation-delete { color: var(--error); font-weight: 650; }
.batch-result-list { margin-top: 10px; }
.batch-result-item.is-success { border-color: #b9d5c1; }
.batch-result-item.is-failure { border-color: #dfb9b4; background: var(--error-bg); }
.batch-result-item.is-success > strong { color: var(--accent); }
.batch-result-item.is-failure > strong { color: var(--error); }
.batch-dialog-content > .progress:not(:empty) { margin-top: 12px; }
.noscript-message { position: fixed; inset: 20px 20px auto; z-index: 20; background: var(--error-bg); color: var(--error); border: 2px solid var(--error); border-radius: 8px; padding: 20px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .main-content { margin: 0 auto; } }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 215px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { padding: 0 5px; gap: 9px; }
  .brand-subtitle { font-size: 9px; }
  .main-content { padding-left: 27px; padding-right: 27px; }
  .stat { padding: 19px 16px; gap: 10px; }
  .stat-icon { width: 32px; height: 32px; }
  .settings-layout { gap: 18px; grid-template-columns: minmax(0,1.25fr) minmax(255px,.85fr); }
  .settings-form, .settings-panel .panel-heading { padding-left: 22px; padding-right: 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .users-layout { grid-template-columns: minmax(235px,.8fr) minmax(0,1.2fr); gap: 16px; }
  .user-detail .variable-row { grid-template-columns: minmax(0,1fr) auto; }
  .user-detail .variable-row .variable-info { grid-column: 1 / -1; }
  .user-detail .variable-row .variable-value { justify-self: start; text-align: left; max-width: 100%; }
}
@media (max-width: 950px) {
  .batch-toolbar { align-items: stretch; flex-direction: column; }
  .settings-layout { grid-template-columns: 1fr; }
  .room-management { grid-column: auto; }
  .settings-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .portable-art { width: 95px; margin-bottom: 12px; }
  .portable-card, .transfer-panel { padding: 20px; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-icon { display: none; }
  .section-actions { flex-wrap: wrap; }
  .users-layout { grid-template-columns: 1fr; }
  .user-list { max-height: 340px; overflow: auto; }
  .holder-controls { align-items: stretch; flex-direction: column; padding: 0 18px 16px; }
  .holder-controls .scan-field { align-items: flex-start; flex-direction: column; }
  .holder-controls select, .holder-controls .search-field { width: 100%; max-width: none; }
  .holder-row, .assign-user-row { gap: 9px; padding: 12px 15px; }
  .holder-row { flex-wrap: wrap; }
  .holder-row > .user-info { flex-basis: calc(100% - 4px); }
  .holder-row .variable-value { margin-right: auto; }
  .holder-pagination { padding: 13px 15px; }
  .user-detail .variable-row { grid-template-columns: minmax(0,1fr) minmax(65px,auto) auto; }
  .user-detail .variable-row .variable-info { grid-column: auto; }
}
@media (max-width: 700px) {
  .batch-toolbar-actions { width: 100%; }
  .batch-toolbar-actions button { flex: 1 1 120px; }
  .batch-dialog-content { padding: 22px 18px; }
  .batch-dialog-content .dialog-actions { flex-direction: column-reverse; }
  .batch-dialog-content .dialog-actions button { width: 100%; }
  body { font-size: 16px; }
  .app-shell { display: block; }
  .sidebar { padding: max(18px,env(safe-area-inset-top)) 18px 12px; position: relative; z-index: auto; width: 100%; height: auto; }
  .brand { padding: 0; }
  .brand > div { min-width: 0; }
  .mobile-menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; margin-left: auto; padding: 0; border: 1px solid #43665b; border-radius: 9px; background: #1a4139; color: #fff; }
  .mobile-menu-toggle:hover { background: #254b42; }
  .mobile-menu-toggle svg { width: 23px; height: 23px; }
  .drawer-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 18px; color: var(--sidebar-muted); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
  .drawer-topbar button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #43665b; background: #1a4139; color: #fff; }
  .drawer-topbar button svg { width: 21px; height: 21px; }
  .brand-mark { width: 32px; height: 35px; border-radius: 7px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-title { font-size: 22px; }
  .brand-subtitle { font-size: 10px; margin-top: 3px; }
  .nav-label { display: none; }
  .main-nav { position: fixed; z-index: 1002; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 7px; width: min(320px,86vw); height: 100dvh; margin: 0; padding: max(16px,env(safe-area-inset-top)) 18px max(20px,env(safe-area-inset-bottom)); background: var(--sidebar); box-shadow: 16px 0 40px #10271f55; transform: translateX(-105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  body.mobile-menu-open .main-nav { transform: translateX(0); visibility: visible; }
  .main-nav button { justify-content: flex-start; min-height: 50px; padding: 12px 14px; font-size: 14px; gap: 10px; border-radius: 8px; }
  .main-nav button svg { width: 19px; height: 19px; margin: 0; }
  .main-nav .drawer-topbar button { width: 44px; min-height: 44px; flex: 0 0 44px; justify-content: center; padding: 0; }
  .main-nav .drawer-topbar button svg { width: 21px; height: 21px; }
  .main-nav button[aria-current="page"]::after, .main-nav button.active::after { display: block; }
  .drawer-app-refresh:not([hidden]) { margin-top: auto; padding: 20px 4px max(8px,env(safe-area-inset-bottom)); }
  .drawer-app-refresh > button { width: 100%; min-height: 46px; }
  .mobile-menu-backdrop:not([hidden]) { display: block; position: fixed; z-index: 1001; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: #10271f80; }
  body.mobile-menu-open { overflow: hidden; }
  .sidebar-bottom { padding-top: 12px; margin: 0; }
  .room-card { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 0 2px; border: 0; background: transparent; }
  .room-card-label, #hotel-label, .local-label { display: none; }
  .room-card strong { font-size: 10px; font-weight: 450; color: var(--sidebar-muted); }
  .room-switcher { width: auto; max-width: 48%; margin: 0; min-height: 32px; font-size: 11px; }
  .connection-status { margin: 0 0 0 auto; padding: 0; border: 0; font-size: 10px; }
  .main-content { padding: 24px 18px max(22px,env(safe-area-inset-bottom)); }
  .topline { margin-bottom: 22px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .edition { font-size: 10px; }
  .edition-dot { display: none; }
  .page-header { margin-bottom: 23px; }
  h1 { font-size: 29px; }
  .page-header p { font-size: 13px; max-width: 40ch; }
  .stats-grid { margin-bottom: 23px; }
  .stat { padding: 15px 12px; align-items: flex-start; }
  .stat-label { font-size: 10px; line-height: 1.4; min-height: 28px; margin-bottom: 7px; }
  .stat strong { font-size: 23px; }
  .stat .stat-text { font-size: 12px; line-height: 1.45; }
  .panel-toolbar { padding: 18px; flex-wrap: wrap; gap: 13px; }
  .panel-toolbar > div { flex: 1; min-width: 150px; }
  .panel-toolbar > button { font-size: 12px; padding: 10px 12px; }
  .panel-toolbar h2 { font-size: 16px; }
  .panel-toolbar p { font-size: 11px; }
  .list-tools { padding: 14px 18px; }
  .search-field { max-width: none; }
  .search-field input { min-height: 45px; font-size: 16px; }
  .list-hint { display: none; }
  .empty-state { min-height: 310px; padding: 35px 22px; }
  .empty-state h2 { font-size: 20px; }
  .empty-state p { font-size: 13px; }
  .variable-row, .user-detail .variable-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 17px 18px; }
  .variable-info, .user-detail .variable-row .variable-info { grid-column: 1 / -1; }
  .variable-value, .user-detail .variable-row .variable-value { justify-self: start; text-align: left; max-width: 100%; }
  .variable-name { font-size: 14px; }
  .variable-time { font-size: 11px; }
  .settings-aside { display: flex; flex-direction: column; }
  .settings-aside > * { width: 100%; }
  .settings-panel .panel-heading { padding: 22px; }
  .room-management .panel-heading { align-items: flex-start; flex-wrap: wrap; padding: 19px; }
  .room-list { padding: 0 18px 18px; }
  .room-choice { width: 100%; }
  .danger-button { padding-inline: 13px; font-size: 13px; }
  .settings-form { padding: 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .input-action input { font-size: 16px; }
  .field > label { font-size: 14px; }
  .field-help { font-size: 12px; }
  .required-label, .optional-label { font-size: 11px; }
  .form-footer button { width: 100%; }
  .settings-form > .text-button { font-size: 13px; }
  .portable-card, .transfer-panel { padding: 24px; }
  .portable-art { width: 115px; }
  .portable-card > p.portable-note, .transfer-panel > .field-help { font-size: 11px; }
  .transfer-panel > .text-button { font-size: 12px; }
  .transfer-actions button, .transfer-actions .file-button { font-size: 13px; }
  .section-actions { gap: 13px; flex-direction: column; align-items: stretch; }
  .scan-controls { display: grid; gap: 10px; }
  .scan-options { display: grid; }
  .scan-field { justify-content: space-between; font-size: 12px; }
  .scan-field select { max-width: 65%; font-size: 14px; }
  .button-row { width: 100%; }
  #scan-full, #scan-incremental { flex: 1; }
  .user-list { max-height: 320px; }
  .user-item { padding: 15px 18px; }
  .user-name { font-size: 14px; }
  .user-id { font-size: 11px; }
  .lookup-form > label { font-size: 13px; }
  .input-action button { font-size: 13px; }
  .user-detail, .user-detail > .empty-state { min-height: 300px; }
  .detail-header { padding: 20px 18px; }
  .detail-header p { font-size: 12px; }
  .page-footer { margin-top: 32px; }
  .edit-form { padding: 24px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions button { flex: 1; }
}
@media (max-width: 360px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .main-nav button { font-size: 10px; }
  .main-nav button svg { width: 14px; }
  .edition { display: none; }
  .stat { padding: 13px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
