/* =============================================================================
   Customer Feedback Portal — teal design
   Teal sign-in & accents (#15889a) · pale-teal paper background · tabular numerals
   No inline styles are used anywhere (strict Content-Security-Policy).
   ============================================================================= */
:root {
  --ink: #122b2e; --ink-2: #24484d; --muted: #4c6b70; --faint: #7a9aa0;
  --line: #d3e5e8; --line-2: #e5f0f2; --bg: #eef6f7; --card: #ffffff;
  --brand-950: #07262b; --brand-900: #0c3b43; --brand-800: #0f5762; --brand-700: #12707d; --brand-600: #15889a; --brand-500: #1a9bb0; --brand-200: #a9dbe4; --brand-100: #cdeff4; --brand-50: #e8f7f9;
  --red: #c0392b; --red-bg: #fbeceb; --amber: #a86a0b; --amber-bg: #fdf3df; --blue: #2b6c9e; --blue-bg: #e8f1f8; --green: #2a7d52; --green-bg: #e5f4ec;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 43, 46, .05), 0 4px 14px rgba(18, 43, 46, .05);
  --shadow-lg: 0 18px 50px rgba(36, 12, 19, .22);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --side-w: 256px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.55 var(--font); color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-900); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(77, 149, 158, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.i-lg { width: 22px; height: 22px; } .i-flip { transform: rotate(90deg); }
.chev { width: 14px; height: 14px; opacity: .6; }

/* ---------------------------------------------------------------- utilities */
.mb0 { margin-bottom: 0 !important; } .mb { margin-bottom: 16px; } .mt { margin-top: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .gap { gap: 10px; } .wrap-f { flex-wrap: wrap; }
.text-muted { color: var(--muted); } .text-right { text-align: right; } .nowrap { white-space: nowrap; } .small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s ease; }
body.nav-mini { --side-w: 76px; }
.bar-collapse { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); cursor: pointer; } .bar-collapse:hover { border-color: var(--brand-200); color: var(--brand-800); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); z-index: 40; }
.side-brand { display: block; padding: 18px 22px 12px; border-bottom: 1px solid var(--line-2); }
.side-brand:hover { text-decoration: none; }
.side-brand img { display: block; width: 176px; height: auto; }
.side-app { display: inline-flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-700); }
.side-app::before { content: ""; width: 18px; height: 2px; background: var(--brand-500); }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 0 8px; } .side-scroll::-webkit-scrollbar { display: none; }
.side-brand .side-mark { display: none; width: 34px; height: 34px; }
.side-label { padding: 12px 24px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.side-link { display: flex; align-items: center; gap: 12px; margin: 1px 12px; padding: 8px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 550; position: relative; }
.side-link .i { color: var(--faint); }
.side-link:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.side-link.active { background: var(--brand-50); color: var(--brand-800); }
.side-link.active .i { color: var(--brand-600); }
.side-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-600); }
.side-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line-2); background: #f0f7f8; }
.side-user { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; min-width: 0; }
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who small { color: var(--muted); font-size: 12px; }
.side-out { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.side-out:hover { background: var(--red-bg); border-color: #efc4bf; color: var(--red); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-800); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

.stage { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 32px; background: rgba(237, 245, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-menu { display: none; }
.bar-logo { display: none; }
.bar-search { flex: 1; max-width: 560px; position: relative; }
.bar-search .i { position: absolute; left: 13px; top: 50%; margin-top: -9px; color: var(--faint); }
.bar-search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; outline: none; }
.bar-search input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(77, 149, 158, .18); }
.bar-user { margin-left: auto; position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.user-btn:hover { border-color: var(--brand-200); }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.2; max-width: 150px; } .user-meta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .user-meta small { font-size: 11.5px; color: var(--muted); }
.menu { position: absolute; top: calc(100% + 8px); min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: none; z-index: 60; }
.menu.right { right: 0; }
.menu-wrap.open > .menu { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink-2); font-weight: 550; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg); text-decoration: none; }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

.page { width: 100%; max-width: 1480px; padding: 26px 32px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.crumb { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 5px; }
.crumb a { color: inherit; }
.page-head h1 { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.page-head .sub { margin-top: 5px; color: var(--muted); max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }

/* ----------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-800); color: #fff; box-shadow: 0 1px 2px rgba(16, 38, 41, .25); }
.btn-primary:hover { background: var(--brand-900); color: #fff; }
.btn-accent { background: var(--brand-600); color: #fff; } .btn-accent:hover { background: var(--brand-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-900); }
.btn-danger { background: var(--red); color: #fff; } .btn-danger:hover { background: #a02e22; color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--red); border-color: var(--line); } .btn-danger-ghost:hover { background: var(--red-bg); border-color: #efc4bf; color: var(--red); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 34px; padding: 0; } .btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; height: 46px; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* ------------------------------------------------------------ cards, badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.card.narrow { max-width: 560px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: linear-gradient(#fff, #f0f7f8); }
.card-head h2 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; letter-spacing: -.005em; }
.card-head h2 .i { color: var(--brand-600); }
.card-head .sub { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.card-body { padding: 20px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #f0f7f8; }
.grid { display: grid; gap: 20px; align-items: start; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid > .card { margin-bottom: 0; }
.span-2 { grid-column: span 2; } .row-2 { grid-row: span 2; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge.success { background: var(--green-bg); color: var(--green); } .badge.danger { background: var(--red-bg); color: var(--red); } .badge.danger-soft { background: var(--red-bg); color: var(--red); }
.badge.warning { background: var(--amber-bg); color: var(--amber); } .badge.info { background: var(--blue-bg); color: var(--blue); } .badge.muted { background: var(--line-2); color: var(--muted); }
.badge.plain { background: transparent; box-shadow: inset 0 0 0 1px currentColor; padding: 2px 9px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 650; }
.chip.admin { background: var(--brand-100); color: var(--brand-900); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: #f1f7f8; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; overflow-wrap: anywhere; }
.table tbody tr:hover { background: #f2f8f9; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; } .table th.num { text-align: right; }
.cell-title { font-weight: 650; color: var(--ink); }
.wide-table { min-width: 4400px; font-size: 13px; }
.wide-table th, .wide-table td { padding: 10px 12px; }
.wide-table td.long { min-width: 260px; max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wide-table td.strong { font-weight: 650; min-width: 160px; }
.wide-table td.mono { font-size: 12px; }
.wide-table th:first-child, .wide-table td:first-child { position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 var(--line); z-index: 1; }
.wide-table th:first-child { background: #f1f7f8; }
.table td.note { min-width: 220px; max-width: 560px; white-space: normal; }
.filechip { display: inline-flex; align-items: center; gap: 3px; margin-right: 5px; padding: 3px 8px; border-radius: 6px; background: var(--brand-50); border: 1px solid var(--brand-200); font-size: 12px; font-weight: 650; color: var(--brand-800); }
.filechip .i { width: 13px; height: 13px; }
.filechip:hover { background: var(--brand-100); text-decoration: none; }

.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pager nav { display: flex; gap: 4px; }
.pager nav a, .pager nav .cur, .pager nav .gap { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.pager nav a:hover { background: var(--brand-50); text-decoration: none; }
.pager nav .cur { background: var(--brand-800); color: #fff; } .pager nav .off { opacity: .35; pointer-events: none; } .pager nav .gap { color: var(--faint); }
.pager .select { height: 34px; padding: 0 8px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .i { width: 34px; height: 34px; color: var(--brand-200); margin-bottom: 10px; }
.empty h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.empty.sm { padding: 24px 20px; }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 14px; min-width: 0; }
.field label, .label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.req { color: var(--red); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid #badfe4; border-radius: var(--radius-sm); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6e77' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(77, 149, 158, .18); }
.input[readonly] { background: #eef6f7; color: var(--muted); }
.hint { margin-top: 5px; font-size: 12.5px; color: var(--muted); } .hint.warn { color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 18px; }
.form-grid > * { grid-column: span 12; }
.form-grid > .col-3 { grid-column: span 3; } .form-grid > .col-4 { grid-column: span 4; } .form-grid > .col-5 { grid-column: span 5; } .form-grid > .col-6 { grid-column: span 6; } .form-grid > .col-8 { grid-column: span 8; } .form-grid > .col-9 { grid-column: span 9; } .form-grid > .col-12 { grid-column: span 12; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-700); }
.pw-wrap { position: relative; } .pw-wrap .input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { background: var(--bg); }
.strength { height: 5px; margin-top: 8px; border-radius: 3px; background: var(--line-2); overflow: hidden; } .strength i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }
.strength[data-s="1"] i { width: 25%; } .strength[data-s="2"] i { width: 50%; background: var(--amber); } .strength[data-s="3"] i { width: 75%; background: var(--brand-500); } .strength[data-s="4"] i { width: 100%; background: var(--green); }
.temp-pw { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #fff; border: 1px dashed var(--brand-600); color: var(--brand-900); font-weight: 700; user-select: all; }

.fieldset { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.fieldset .legend { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 15.5px; background: linear-gradient(#fff, #f0f7f8); border-radius: var(--radius) var(--radius) 0 0; }
.fieldset .legend small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-800); color: #fff; font-size: 12px; font-weight: 700; }
.fieldset .body { padding: 20px; }
.form-bar { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; margin: 0 -2px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 20px rgba(18, 43, 46, .06); }

.filters-card summary { display: flex; align-items: center; gap: 9px; padding: 13px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.filters-card summary::-webkit-details-marker { display: none; }
.filters-card[open] summary { border-bottom: 1px solid var(--line-2); }
.filters-card summary .i { color: var(--brand-600); }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; align-items: end; }
.filters .field.wide { grid-column: span 2; }
.filter-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.search { position: relative; } .search .i { position: absolute; left: 12px; top: 50%; margin-top: -9px; color: var(--faint); } .search .input { padding-left: 38px; }
.card-head .search { width: 260px; } .card-head .search .input { min-height: 36px; padding-top: 5px; padding-bottom: 5px; }

.dropzone { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 18px 20px; border: 2px dashed var(--brand-200); border-radius: var(--radius); background: var(--brand-50); color: var(--ink-2); }
.dropzone.drag { border-color: var(--brand-600); background: var(--brand-100); }
.dropzone input[type=file] { flex: 1 1 260px; min-width: 0; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.fieldset .file-list li { padding-left: 0; padding-right: 0; }
.file-list li:last-child { border-bottom: 0; }
.file-list .i { color: var(--brand-600); }
.fname { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; overflow-wrap: anywhere; } .fname small, .file-list .meta { font-weight: 500; color: var(--muted); font-size: 12px; }
.file-list .name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.file-list .row-actions { margin-left: auto; }

/* ------------------------------------------------------------ detail view */
.hero-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-strip > div { padding: 15px 20px; background: #fff; } .hero-strip small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); } .hero-strip b { font-size: 19px; }
.hero-strip.danger > div:nth-child(2) b { color: var(--red); } .hero-strip.warning > div:nth-child(2) b { color: var(--amber); } .hero-strip.success > div:nth-child(2) b { color: var(--green); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.dl > div { min-width: 0; } .dl .span2 { grid-column: span 2; }
.dl dt { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- dashboard */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n ic" "l l"; align-items: center; gap: 2px 10px; padding: 16px 18px 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); border-top: 3px solid var(--brand-600); transition: transform .15s, box-shadow .15s; }
.kpi:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18, 43, 46, .1); }
.kpi-n { grid-area: n; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi-ic { grid-area: ic; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.kpi-l { grid-area: l; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi.danger { border-top-color: var(--red); } .kpi.danger .kpi-ic { background: var(--red-bg); color: var(--red); } .kpi.danger .kpi-n { color: var(--red); }
.kpi.warning { border-top-color: #d99a2b; } .kpi.warning .kpi-ic { background: var(--amber-bg); color: var(--amber); }
.kpi.info { border-top-color: var(--blue); } .kpi.info .kpi-ic { background: var(--blue-bg); color: var(--blue); }
.kpi.success { border-top-color: var(--green); } .kpi.success .kpi-ic { background: var(--green-bg); color: var(--green); }
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; } .dash > .card { margin-bottom: 0; }
.ring-box { display: flex; align-items: center; gap: 20px; }
.ring { width: 150px; height: 150px; flex: none; }
.ring-bg { stroke: var(--line-2); } circle.seg-open { stroke: var(--brand-600); } circle.seg-pend { stroke: #e0a02d; } circle.seg-closed { stroke: #94a9b3; }
.ring-n { font-size: 26px; font-weight: 700; fill: var(--ink); } .ring-l { font-size: 10px; fill: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; } .legend li { display: flex; align-items: center; gap: 9px; padding: 5px 0; } .legend li b { margin-left: auto; }
.legend .legend-note { color: var(--muted); font-size: 12.5px; padding-top: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot.seg-open { background: var(--brand-600); } .dot.seg-pend { background: #e0a02d; } .dot.seg-closed { background: #94a9b3; }
.legend-mini { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .legend-mini .dot { margin-left: 8px; }
.card-head .legend-mini .dot.seg-closed { background: var(--brand-200); }
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; } .bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; } .bar-top small { color: var(--muted); font-weight: 500; }
.bar2 { display: block; width: 100%; height: 8px; } .b-bg { fill: var(--line-2); } .b-open { fill: var(--brand-600); } .b-closed { fill: var(--brand-200); }
.quick { display: grid; gap: 10px; }
.quick a { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.quick a:hover { background: var(--brand-50); border-color: var(--brand-200); text-decoration: none; }
.quick a > .i { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.quick span { display: flex; flex-direction: column; line-height: 1.3; } .quick small { color: var(--muted); font-size: 12.5px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.tile:hover { border-color: var(--brand-200); background: var(--brand-50); text-decoration: none; }
.tile-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand-800); } .tile-ic .i { width: 22px; height: 22px; }
.tile-t { display: flex; flex-direction: column; line-height: 1.3; } .tile-t b { font-size: 15.5px; } .tile-t small { color: var(--muted); }
.tile-go { margin-left: auto; color: var(--faint); transform: rotate(-90deg); }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 5px; background: #d3eff3; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.tab-link:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.tab-link.active { background: #fff; color: var(--brand-800); box-shadow: var(--shadow); }

/* ------------------------------------------------------------- alerts, dialog */
.alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; border-left-width: 4px; }
.alert .msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alert.success { background: var(--green-bg); border-color: #bfe3cf; border-left-color: var(--green); color: #1c5a3a; } .alert.danger { background: var(--red-bg); border-color: #efc4bf; border-left-color: var(--red); color: #8c2a1f; }
.alert.warning { background: var(--amber-bg); border-color: #f0d9a3; border-left-color: #d99a2b; color: #7a4d06; } .alert.info { background: var(--blue-bg); border-color: #c4dbed; border-left-color: var(--blue); color: #1f4f77; }
.alert-x { border: 0; background: none; cursor: pointer; color: inherit; opacity: .6; padding: 2px; } .alert-x:hover { opacity: 1; }
dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(16, 38, 41, .5); backdrop-filter: blur(2px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); } .dlg-head h3 { font-size: 17px; }
.dlg-close { border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 8px; padding: 6px; } .dlg-close:hover { background: var(--bg); }
.dlg-body { padding: 20px; } .dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #f0f7f8; border-radius: 0 0 14px 14px; }

/* ------------------------------------------------------------- auth + error pages */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; background: linear-gradient(165deg, #f2eaec 0%, #e5d6da 100%); border-right: 1px solid var(--brand-200); }
.auth-copy { position: relative; z-index: 1; padding: 64px 56px 0; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-800); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand-600); }
.auth-copy h2 { margin: 16px 0 14px; font-size: 38px; line-height: 1.12; letter-spacing: -.025em; color: var(--brand-950); font-weight: 700; }
.auth-copy .lead { color: #29565c; font-size: 16px; max-width: 52ch; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; color: #29565c; }
.auth-points li .i { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #fff; color: var(--brand-700); box-shadow: 0 2px 8px rgba(16, 38, 41, .12); }
.auth-points b { display: block; color: var(--brand-950); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; min-height: 160px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { display: block; margin-bottom: 34px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13.5px; }
.auth-note { display: flex; gap: 10px; margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--brand-50); color: #5e4c3d; font-size: 12.5px; }
.auth-foot { margin-top: 30px; color: var(--faint); font-size: 12px; text-align: center; }
.plain-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.plain-card { width: min(480px, 100%); padding: 38px 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.plain-card img { margin-bottom: 18px; } .plain-card h1 { font-size: 24px; margin-bottom: 8px; } .plain-card p { margin-bottom: 18px; }
.code { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--brand-800); line-height: 1; margin-bottom: 10px; } .code b { color: var(--brand-500); }

/* ----------------------------------------------------------------- help desk */
.bot-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 9px; padding: 13px 19px 13px 15px; border: 0; border-radius: 999px; background: var(--brand-800); color: #fff; font-weight: 650; cursor: pointer; box-shadow: 0 10px 28px rgba(16, 38, 41, .35); }
.bot-fab:hover { background: var(--brand-900); }
.bot-fab .i { width: 22px; height: 22px; }
.bot { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(392px, calc(100vw - 28px)); height: min(600px, calc(100vh - 44px)); display: none; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(16, 38, 41, .35); border: 1px solid var(--brand-200); }
.bot.open { display: flex; }
.bot-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); color: #fff; }
.bot-head .av { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.bot-head b { display: block; font-size: 15.5px; } .bot-head small { color: #b4e5eb; }
.bot-head .x { margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: 8px; padding: 7px; cursor: pointer; }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; background: #f0f7f8; display: flex; flex-direction: column; gap: 10px; }
.msg-b, .msg-u { max-width: 90%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg-b { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-b p { margin: 0 0 6px; } .msg-b p:last-child { margin: 0; } .msg-b ul { margin: 6px 0 0; padding-left: 18px; } .msg-b li { margin-bottom: 3px; }
.msg-b ul.soon { list-style: none; padding: 0; } .msg-b ul.soon li { padding: 7px 0; border-top: 1px solid var(--line-2); } .msg-b small.bad { color: var(--red); font-weight: 650; }
.msg-u { align-self: flex-end; background: var(--brand-800); color: #fff; border-bottom-right-radius: 4px; }
.msg-b .go { display: inline-block; margin-top: 8px; font-weight: 650; }
.msg-b.typing { display: flex; gap: 4px; } .msg-b.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-200); animation: blink 1s infinite; } .msg-b.typing span:nth-child(2) { animation-delay: .15s; } .msg-b.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--brand-200); background: #fff; color: var(--brand-800); font-size: 13px; font-weight: 600; cursor: pointer; }
.chips button:hover { background: var(--brand-50); }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.bot-form .input { flex: 1; min-height: 40px; }

/* ------------------------------------------------------- mobile app layout */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16, 38, 41, .5); backdrop-filter: blur(2px); }
.tabbar { display: none; }
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); } .grid > .span-2 { grid-column: auto; } .row-2 { grid-row: auto; }
}
@media (max-width: 1080px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; z-index: 100; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-lg); padding-top: env(safe-area-inset-top); }
  body.nav-open .side { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .bar { height: 56px; padding: 0 14px; gap: 10px; }
  .bar-menu { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); cursor: pointer; }
  .bar-logo { display: block; } .bar-logo img { display: block; width: 130px; height: auto; }
  .bar-search { display: none; }
  .user-meta, .user-btn .chev { display: none; } .user-btn { padding: 3px; }
  .page { padding: 18px 14px calc(96px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 23px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(18, 43, 46, .08); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 650; cursor: pointer; text-decoration: none; }
  .tab .i { width: 22px; height: 22px; }
  .tab.active { color: var(--brand-800); background: var(--brand-50); }
  .bot-fab { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; padding: 13px; } .bot-fab span { display: none; }
  .bot { right: 0; bottom: 0; width: 100vw; height: calc(100dvh - 20px); border-radius: 18px 18px 0 0; }
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } .auth-card .logo { margin-bottom: 24px; }
}
@media (max-width: 820px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .kpi { padding: 13px 14px; } .kpi-n { font-size: 27px; }
  .dash { grid-template-columns: minmax(0, 1fr); } .dash > .span-2 { grid-column: auto; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid > .col-3, .form-grid > .col-4, .form-grid > .col-5, .form-grid > .col-6, .form-grid > .col-8, .form-grid > .col-9 { grid-column: span 12; }
  .dl { grid-template-columns: minmax(0, 1fr); } .dl .span2 { grid-column: auto; }
  .filters .field.wide { grid-column: auto; }
  .card-head .search { width: 100%; }
  .hide-sm { display: none; }
  .card-head h2 .sub { flex-basis: 100%; margin: 2px 0 0 27px; }
  .page-actions { width: 100%; } .page-actions .btn { flex: 1; }
  .ring-box { flex-direction: column; align-items: stretch; } .ring { align-self: center; }
  .pager { justify-content: center; }
  .dlg-foot .btn { flex: 1; }
}
/* tables become cards on small screens (the JS labels every cell) */
@media (max-width: 820px) {
  .table-wrap, .table-wrap.wide { overflow: visible; }
  .table.stack, .table.stack tbody { display: block; width: auto; min-width: 0; }
  .table.stack thead { display: none; }
  .table.stack tr { display: block; margin: 12px; padding: 4px 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .table.stack tbody tr:hover { background: #fff; }
  .table.stack td { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); text-align: left; white-space: normal; max-width: none; min-width: 0; }
  .table.stack td:last-child { border-bottom: 0; }
  .table.stack td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .table.stack td.cell-title { display: block; padding: 10px 0 8px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .table.stack td.cell-title::before { display: none; }
  .table.stack td.cell-actions { display: block; padding-top: 10px; border-bottom: 0; } .table.stack td.cell-actions::before { display: none; }
  .table.stack td.cell-actions .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .table.stack td.cell-wide { display: block; }
  .table.stack td.e { display: none; }
  .table.stack td.num { text-align: left; }
  .wide-table th:first-child, .wide-table td:first-child { position: static; box-shadow: none; }
  .wide-table { min-width: 0; }
}
@media print { .side, .bar, .tabbar, .bot, .bot-fab, .page-actions { display: none !important; } .shell { display: block; } }

/* ---- collapsed (icon-only) sidebar, desktop ---- */
@media (min-width: 1081px) {
  body.nav-mini .side-brand { padding: 16px 0 12px; text-align: center; }
  body.nav-mini .side-brand > img:not(.side-mark), body.nav-mini .side-app { display: none; }
  body.nav-mini .side-brand .side-mark { display: inline-block; }
  body.nav-mini .side-label { height: 1px; padding: 0; margin: 10px 18px; background: var(--line-2); font-size: 0; }
  body.nav-mini .side-link { justify-content: center; margin: 2px 10px; padding: 11px 0; }
  body.nav-mini .side-link span { display: none; }
  body.nav-mini .side-link.active::before { left: -10px; }
  body.nav-mini .side-foot { padding: 12px 8px; }
  body.nav-mini .side-user { justify-content: center; } body.nav-mini .who, body.nav-mini .side-out span { display: none; }
}
@media (max-width: 1080px) { .bar-collapse { display: none; } }
@media (min-width: 1081px) and (max-height: 760px) { .side-link { padding: 6px 14px; } .side-label { padding-top: 8px; } .side-brand img { width: 150px; } }

/* ---- full report: every record is a wrapped card grid, so nothing scrolls sideways ---- */
@media (min-width: 821px) {
  .table-wrap.wide { overflow: visible; }
  .wide-table.stack { min-width: 0; display: block; width: auto; }
  .wide-table.stack thead { display: none; }
  .wide-table.stack tbody { display: block; }
  .wide-table.stack tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 14px 18px; padding: 14px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .wide-table.stack tbody tr:hover { background: #fff; }
  .wide-table.stack td { display: block; padding: 0; border: 0; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; position: static; box-shadow: none; }
  .wide-table.stack td.e { display: none; }
  .wide-table.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .wide-table.stack td.cell-title { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
  .wide-table.stack td.cell-title::before { display: inline; margin-right: 8px; }
  .wide-table.stack td.long, .wide-table.stack td.strong { min-width: 0; max-width: none; grid-column: span 2; }
}
.table td a.mono, .table td:first-child { white-space: nowrap; overflow-wrap: normal; }
.wide-table.stack td.cell-title { white-space: normal; }

/* =============================================================================
   Teal overrides: the sidebar and sign-in page use the portal teal (#15889a)
   ============================================================================= */
.side { background: #15889a; border-right: 0; box-shadow: 2px 0 14px rgba(16, 38, 41, .14); }
.side-brand { display: flex; flex-direction: column; align-items: center; padding: 16px 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .2); text-align: center; }
.side-brand img { width: 104px; height: auto; }
.side-app { margin-top: 4px; color: #fff; letter-spacing: .2em; font-size: 10.5px; } .side-app::before { display: none; }
.side-label { color: rgba(255, 255, 255, .75); }
.side-link { color: #fff; } .side-link .i { color: rgba(255, 255, 255, .85); }
.side-link:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.side-link.active { background: #fff; color: var(--brand-900); box-shadow: 0 2px 8px rgba(16, 38, 41, .22); } .side-link.active .i { color: var(--brand-700); }
.side-link.active::before { display: none; }
.side-foot { background: rgba(16, 38, 41, .14); border-top: 1px solid rgba(255, 255, 255, .2); }
.side-user .who b { color: #fff; } .side-user .who small { color: rgba(255, 255, 255, .8); }
.side .avatar { background: #fff; color: var(--brand-800); }
.side-out { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.side-out:hover { background: #fff; border-color: #fff; color: var(--red); }
.bar-logo img { width: 40px; height: auto; }
body.nav-mini .side-brand { padding: 14px 0 10px; } body.nav-mini .side-brand img { width: 46px; }
body.nav-mini .side-label { background: rgba(255, 255, 255, .25); }
.side-brand .side-mark { display: none !important; }
@media (min-width: 1081px) { body.nav-mini .side-link.active::before { display: none; } }
@media (min-width: 1081px) and (max-height: 760px) { .side-brand img { width: 78px; } }

/* ---- sign-in: full teal page, white card, logo above it (as on the original sign-in) ---- */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; padding: 0; }
.auth-art { position: relative; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: #15889a; background-image: radial-gradient(900px 480px at 20% -10%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(165deg, #1a9bb0 0%, #0f5762 100%); }
.auth-copy { position: relative; z-index: 1; padding: 56px 56px 0; max-width: 620px; }
.auth-copy img.mark { display: block; width: 150px; height: auto; margin: 0 0 26px -6px; }
.auth-art .eyebrow { color: #ceeff3; }
.auth-copy h2 { margin: 14px 0 14px; font-size: 36px; line-height: 1.13; letter-spacing: -.025em; color: #fff; font-weight: 700; }
.auth-copy .lead { color: #e5f1f2; font-size: 16px; max-width: 52ch; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; color: #e5f1f2; }
.auth-points li .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #fff; color: #316e76; box-shadow: 0 2px 8px rgba(16, 38, 41, .18); }
.auth-points b { display: block; color: #fff; }
.auth-art .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 230px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.auth-card .logo { display: block; width: 120px; height: auto; margin: 0 0 26px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 6px; } .auth-card .lead { margin-bottom: 24px; color: var(--muted); }
.auth-foot { margin-top: 30px; color: var(--faint); }
.input.static { display: flex; align-items: center; background: var(--brand-50); color: var(--ink-2); font-weight: 600; }
@media (min-width: 861px) {
  .report-table th, .report-table td { padding-left: 10px; padding-right: 10px; }
  .report-table th { white-space: normal; }
  .report-table td.nowrap { white-space: normal; }
  .report-table .badge { white-space: normal; text-align: left; }
}
@media (min-width: 861px) {
  .report-table { table-layout: fixed; width: 100%; min-width: 0; }
  .report-table th, .report-table td { overflow-wrap: anywhere; }
  .report-table th:nth-child(1) { width: 17%; } .report-table th:nth-child(2) { width: 14%; } .report-table th:nth-child(3) { width: 11%; }
  .report-table th:nth-child(4) { width: 10%; } .report-table th:nth-child(5) { width: 9%; } .report-table th:nth-child(6) { width: 13%; }
  .report-table th:nth-child(7) { width: 8%; } .report-table th:nth-child(8) { width: 9%; } .report-table th:nth-child(9) { width: 6%; } .report-table th:nth-child(10) { width: 5%; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-copy { padding: 26px 24px 22px; text-align: center; max-width: none; }
  .auth-copy img.mark { width: 104px; margin: 0 auto 8px; }
  .auth-copy h2, .auth-copy .lead, .auth-points, .auth-art .hills, .auth-art .eyebrow::before { display: none; }
  .auth-art .eyebrow { justify-content: center; margin: 0; }
  .auth-card .logo { display: none; }
  .auth-main { align-items: flex-start; padding-top: 28px; }
}

/* ---- wide wordmark logo ---------------------------------------------------- */
.side-brand img { width: 176px; height: auto; } .side-glyph { display: none; }
body.nav-mini .side-brand img, body.nav-mini .side-app { display: none; }
body.nav-mini .side-glyph { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto; border-radius: 12px; background: var(--brand-600); color: #fff; font-weight: 800; letter-spacing: .02em; }
.bar-logo img { width: 130px; height: auto; }
.auth-copy img.mark { width: 240px; height: auto; margin: 0 0 28px 0; }
.auth-card .logo { width: 200px; height: auto; margin: 0 0 28px; }
@media (max-width: 1080px) { .auth-copy img.mark { width: 170px; margin: 0 auto 6px; } }
.plain-card img { width: 200px; height: auto; }

/* ---- public feedback page (mobile first) --------------------------------------- */
.pub-body { background: linear-gradient(180deg, var(--brand-50) 0, var(--bg) 320px); min-height: 100vh; }
.pub-wrap { max-width: 560px; margin: 0 auto; padding: 18px 14px 28px; }
.pub-head { display: flex; justify-content: center; padding: 8px 0 16px; } .pub-head img { width: 200px; height: auto; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 20px 24px; }
.pub-title { font-size: 15px; font-weight: 600; margin: 0 0 18px; padding: 11px 14px; border: 1px solid var(--brand-200); border-left: 4px solid var(--brand-600); border-radius: 10px; background: var(--brand-50); color: var(--ink-2); line-height: 1.4; }
.pub-title span { color: var(--brand-800); font-weight: 700; }
.pub-foot { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.rating-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.rating-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.stars { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: block; width: 46px; height: 46px; margin: 0; color: #cdd9db; cursor: pointer; transition: color .12s, transform .12s; }
.stars label .i { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: .6; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5a623; }
.stars label:active { transform: scale(.92); }
.stars input:focus-visible + label { outline: 3px solid rgba(21, 136, 154, .45); outline-offset: 2px; border-radius: 8px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.btn-lg { min-height: 50px; font-size: 16px; }
.pub-msg { text-align: center; padding: 18px 6px 8px; }
.pub-msg .i { width: 54px; height: 54px; margin-bottom: 8px; } .pub-msg h1 { font-size: 22px; margin-bottom: 8px; } .pub-msg p { color: var(--muted); margin: 0 auto 10px; max-width: 38ch; }
.pub-msg.success .i { color: var(--green); } .pub-msg.warning .i { color: var(--amber); } .pub-msg.error .i { color: var(--red); }
.pub-where { font-size: 13px; font-weight: 600; color: var(--ink-2) !important; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---- feedback tables / charts ------------------------------------------------- */
@media (min-width: 861px) {
  .report-table th:nth-child(1) { width: 19%; } .report-table th:nth-child(2) { width: 14%; } .report-table th:nth-child(3) { width: 9%; }
  .report-table th:nth-child(4) { width: 9%; } .report-table th:nth-child(5) { width: 14%; } .report-table th:nth-child(6) { width: 10%; } .report-table th:nth-child(7) { width: 25%; }
}
.kpis.kpis-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi.success { border-top-color: var(--green); } .kpi.success .kpi-ic { background: var(--green-bg); color: var(--green); }
.stars-sm { color: #f5a623; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.comment-cell { max-width: 46ch; white-space: normal; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; } .chart .ax { fill: var(--faint); font-size: 10.5px; }
.chart .col { fill: var(--brand-600); } .chart .col:hover { fill: var(--brand-800); }
.bar2 .b-open { fill: var(--brand-600); } .bar2 .b-star { fill: #f5a623; } .bar2 .b-low { fill: var(--red); } .bar2 .b-ok { fill: var(--green); }
@media (max-width: 860px) { .kpis.kpis-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rate-row { display: grid; grid-template-columns: 54px 1fr 64px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.rate-row b { text-align: right; } .rate-row .bar2 { width: 100%; height: 9px; }
.split-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; } .split-2 > .card { margin: 0; }
@media (max-width: 860px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.quote { padding: 11px 0; border-bottom: 1px solid var(--line-2); } .quote:last-child { border-bottom: 0; }
.quote p { margin: 4px 0 2px; color: var(--ink-2); overflow-wrap: anywhere; } .quote .meta { font-size: 12.5px; color: var(--muted); }
.split-2.inner { grid-template-columns: minmax(0, 1fr); margin: 0; gap: 18px; }

/* ---- QR manager --------------------------------------------------------------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; margin-bottom: 18px; }
.qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.qr-card.off { opacity: .72; }
.qr-head { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 8px; }
.qr-frame { display: block; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; } .qr-frame img { display: block; width: 170px; height: 170px; image-rendering: pixelated; }
.qr-title { margin: 10px 0 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; } .qr-where { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; min-height: 18px; overflow-wrap: anywhere; }
.qr-cat { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-weight: 600; font-size: 12.5px; max-width: 100%; }
.qr-cat .i { width: 14px; height: 14px; flex: none; }
.qr-stats { display: flex; gap: 22px; margin: 10px 0 4px; } .qr-stats div { text-align: center; } .qr-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .qr-stats dd { margin: 0; font-size: 18px; font-weight: 700; }
.qr-size { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 10px; font-size: 12px; color: var(--muted); } .qr-size .i { width: 14px; height: 14px; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; width: 100%; }
[data-copy].copied { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.sizes-note { font-size: 12.5px; color: var(--muted); }
.warn-text { color: var(--amber); font-weight: 600; }
