:root {
  --ink: #0d1a2a;
  --muted: #708096;
  --muted-2: #a3afbe;
  --line: #e4eaf1;
  --surface: #ffffff;
  --canvas: #f5f8fb;
  --navy: #07111f;
  --blue: #3778ff;
  --blue-soft: #eaf1ff;
  --green: #1f9c73;
  --green-soft: #e7f7f0;
  --amber: #c9852a;
  --amber-soft: #fff3df;
  --violet: #7b5ce1;
  --violet-soft: #f0ebff;
  --danger: #d55c67;
  --shadow: 0 16px 42px rgba(23, 41, 65, .06);
  --shadow-small: 0 6px 18px rgba(23, 41, 65, .07);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 24px; background: radial-gradient(circle at 14% 12%, rgba(70, 124, 255, .18), transparent 30%), radial-gradient(circle at 88% 88%, rgba(81, 205, 174, .1), transparent 28%), var(--navy); color: white; }
.auth-card { width: min(100%, 430px); position: relative; z-index: 1; padding: 42px 36px 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: rgba(12, 28, 49, .78); box-shadow: 0 28px 80px rgba(0, 0, 0, .25); backdrop-filter: blur(20px); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center; position: relative; border-radius: 11px; background: linear-gradient(145deg, #5f96ff, #355de8); color: white; font-size: 17px; font-weight: 800; box-shadow: 0 7px 16px rgba(55,120,255,.3); }
.brand-mark span { position: relative; z-index: 1; }
.brand-mark i { position: absolute; width: 7px; height: 7px; right: -2px; bottom: -2px; border: 2px solid #07111f; border-radius: 50%; background: #4dd6a5; }
.brand-mark.large { width: 52px; height: 52px; flex-basis: 52px; border-radius: 17px; font-size: 24px; margin-bottom: 28px; }
.brand-mark.large i { width: 11px; height: 11px; right: -3px; bottom: -3px; }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .14em; line-height: 1.2; }
.auth-card .eyebrow { color: #8aaeff; }
.auth-card h1 { margin: 0; font-size: clamp(32px, 8vw, 50px); letter-spacing: -.06em; line-height: .98; }
.auth-card h1 em, .hero-banner h2 em { color: #73a2ff; font-style: normal; }
.auth-copy { max-width: 340px; margin: 22px 0 30px; color: #a9bad0; font-size: 14px; line-height: 1.7; }
.auth-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 19px 0 0; color: #7f95ad; font-size: 11px; }
.auth-footer { position: absolute; bottom: 20px; z-index: 1; margin: 0; color: #60748c; font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.auth-orbit { position: absolute; border: 1px solid rgba(116,157,255,.15); border-radius: 50%; pointer-events: none; }
.orbit-a { width: 580px; height: 580px; top: -260px; left: -180px; }
.orbit-b { width: 680px; height: 680px; right: -230px; bottom: -330px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; display: inline-block; border-radius: 50%; background: #40d09e; box-shadow: 0 0 0 4px rgba(64,208,158,.12); }

.primary-button, .secondary-button, .ghost-button, .icon-button { border: 0; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--blue); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(55,120,255,.2); }
.primary-button:hover { background: #2869ef; transform: translateY(-1px); box-shadow: 0 11px 22px rgba(55,120,255,.28); }
.full-width { width: 100%; min-height: 50px; }
.google-g { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: white; color: #4285f4; font-family: Arial, sans-serif; font-size: 14px; font-weight: 800; }
.secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.secondary-button:hover { border-color: #b9c8dc; background: #fbfcfe; }
.ghost-button, .text-button { color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }
.ghost-button:hover, .text-button:hover { color: #1e5fe2; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: #c5d1df; background: #fbfcfe; }
.close-button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--canvas); color: var(--muted); font-size: 23px; line-height: 1; }

.app-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 25px 14px 15px; background: var(--navy); color: white; }
.sidebar-top { padding: 0 10px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 13px; letter-spacing: -.02em; }
.brand-lockup small { margin-top: 2px; color: #8396af; font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.environment-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; color: #9db0c6; font-family: "DM Mono", monospace; font-size: 9px; }
.environment-pill i { width: 5px; height: 5px; border-radius: 50%; background: #49d4a2; }
.sidebar-nav { margin-top: 43px; }
.nav-label { margin: 0 10px 10px; color: #5d728c; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .13em; }
.nav-label-spaced { margin-top: 29px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 41px; margin: 3px 0; padding: 0 10px; border-radius: 10px; color: #93a6bd; font-size: 11px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.is-active { color: white; background: linear-gradient(90deg, rgba(67,119,255,.23), rgba(67,119,255,.08)); box-shadow: inset 2px 0 #5f91ff; }
.nav-icon { width: 18px; color: #6f87a4; font-size: 19px; line-height: 1; text-align: center; }
.nav-item.is-active .nav-icon { color: #75a2ff; }
.nav-count { min-width: 20px; margin-left: auto; padding: 3px 5px; border-radius: 999px; background: rgba(255,255,255,.1); color: #c6d4e5; font-family: "DM Mono", monospace; font-size: 9px; text-align: center; }
.nav-soon { margin-left: auto; color: #5c7087; font-family: "DM Mono", monospace; font-size: 8px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-health { display: flex; align-items: center; gap: 9px; margin: 0 7px 16px; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-health strong, .sidebar-health small { display: block; }
.sidebar-health strong { color: #c3d1df; font-size: 10px; }
.sidebar-health small { margin-top: 3px; color: #66809c; font-family: "DM Mono", monospace; font-size: 8px; }
.sidebar-user { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px; border: 0; border-radius: 10px; background: transparent; color: white; text-align: left; }
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 30px; border-radius: 10px; background: linear-gradient(145deg, #7ba6ff, #486adf); color: white; font-size: 11px; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.small { width: 27px; height: 27px; flex-basis: 27px; border-radius: 9px; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { color: #d5e0ec; font-size: 10px; }
.user-meta small { margin-top: 3px; color: #6f88a3; font-size: 8px; }
.more-dot { color: #7790a9; font-size: 10px; letter-spacing: 2px; }

.main-content { min-width: 0; background: var(--canvas); }
.content-wrap { width: min(100%, 1230px); margin: 0 auto; padding: 46px 52px 70px; }
.mobile-header, .mobile-nav { display: none; }
.page-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 35px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; margin-bottom: 20px; color: #9aa9ba; font-family: "DM Mono", monospace; font-size: 9px; }
.breadcrumb b { color: #c2ccd7; font-weight: 400; }
.breadcrumb strong { color: #5d7088; font-weight: 500; }
.page-header h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 36px); letter-spacing: -.055em; line-height: 1.1; }
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-actions .primary-button { min-height: 40px; }
.hero-banner { display: flex; justify-content: space-between; align-items: center; min-height: 225px; overflow: hidden; position: relative; padding: 28px 35px; border-radius: 19px; background: linear-gradient(118deg, #102645 0%, #15345e 62%, #275b9b 100%); color: white; box-shadow: 0 18px 30px rgba(23, 52, 91, .15); }
.hero-banner::before { content: ""; position: absolute; width: 310px; height: 310px; top: -190px; right: 130px; border: 1px solid rgba(161, 197, 255, .14); border-radius: 50%; }
.hero-banner::after { content: ""; position: absolute; width: 370px; height: 370px; top: -225px; right: 100px; border: 1px solid rgba(161, 197, 255, .1); border-radius: 50%; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #96baff; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.hero-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #55d8ad; }
.hero-banner h2 { margin: 14px 0 10px; font-size: clamp(25px, 3.1vw, 36px); letter-spacing: -.06em; line-height: 1.08; }
.hero-banner p { margin: 0; color: #afc2db; font-size: 11px; }
.hero-art { width: 215px; height: 150px; display: grid; place-items: center; position: relative; z-index: 1; margin-right: 30px; transform: rotate(-5deg); }
.art-grid { width: 112px; height: 112px; display: grid; place-items: center; position: relative; border: 1px solid rgba(176, 210, 255, .5); border-radius: 12px; background: rgba(7, 17, 31, .27); color: #d2e3ff; font-family: "DM Mono", monospace; font-size: 17px; font-weight: 500; line-height: 2.2; letter-spacing: 8px; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.art-grid::after { content: ""; position: absolute; inset: 15px; border: 1px dashed rgba(171, 207, 255, .3); border-radius: 5px; }
.art-orbit { width: 180px; height: 180px; position: absolute; border: 1px solid rgba(147, 192, 255, .24); border-radius: 50%; }
.art-star { position: absolute; top: 12px; right: 15px; color: #66dfba; font-size: 19px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-top: 14px; }
.metric-card { min-height: 132px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid; border-radius: 14px; background: white; box-shadow: var(--shadow-small); }
.accent-blue { border-top-color: var(--blue); }.accent-green { border-top-color: var(--green); }.accent-amber { border-top-color: var(--amber); }.accent-violet { border-top-color: var(--violet); }
.metric-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 800; }
.accent-green .metric-icon { background: var(--green-soft); color: var(--green); }.accent-amber .metric-icon { background: var(--amber-soft); color: var(--amber); }.accent-violet .metric-icon { background: var(--violet-soft); color: var(--violet); }
.metric-card > strong { display: block; margin-top: 16px; color: var(--ink); font-size: 26px; letter-spacing: -.06em; }
.metric-card > small { display: block; margin-top: 3px; color: #98a7b7; font-size: 9px; }
.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.surface-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-small); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.section-heading h3 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.04em; }
.heading-chip, .file-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-family: "DM Mono", monospace; font-size: 8px; font-weight: 500; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.quick-action { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); text-align: left; }
.quick-action:hover { border-color: #b8c9de; box-shadow: var(--shadow-small); transform: translateY(-1px); }
.quick-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 9px; font-size: 18px; font-weight: 500; }.quick-icon.blue { background: var(--blue-soft); color: var(--blue); }.quick-icon.amber { background: var(--amber-soft); color: var(--amber); }.quick-icon.violet { background: var(--violet-soft); color: var(--violet); }.quick-icon.green { background: var(--green-soft); color: var(--green); }
.quick-action strong, .quick-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.quick-action strong { font-size: 10px; }.quick-action small { margin-top: 4px; color: var(--muted); font-size: 8px; }.quick-action b { margin-left: auto; color: #a2b0c0; font-size: 16px; font-weight: 400; }
.health-ring { color: var(--green); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; }.health-bar { height: 7px; overflow: hidden; margin: 26px 0 15px; border-radius: 99px; background: #edf1f4; }.health-bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #52c69d, #8fe1c3); }.insight-title { margin: 0; font-size: 12px; font-weight: 800; }.insight-copy { max-width: 270px; margin: 7px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }.text-button { padding: 0; }

.section-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.toolbar-search { width: min(100%, 360px); display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }.toolbar-search span { color: #9babba; font-size: 19px; }.toolbar-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 11px; }.toolbar-search input::placeholder { color: #a3afbd; }.toolbar-filters { display: flex; gap: 8px; }.toolbar-filters select { min-height: 40px; padding: 0 28px 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: white; color: var(--ink); font-size: 11px; font-weight: 700; }.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-small); }.table-meta { display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); }.table-meta strong { font-size: 11px; }.table-meta > div > span { color: #91a0b0; font-size: 9px; }.meta-divider { margin: 0 6px; }.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 730px; } th { height: 40px; padding: 0 12px; background: #fbfcfd; color: #94a2b1; font-family: "DM Mono", monospace; font-size: 8px; font-weight: 500; letter-spacing: .08em; text-align: left; text-transform: uppercase; } td { height: 61px; padding: 0 12px; border-top: 1px solid #eef2f6; color: var(--ink); font-size: 10px; } td:first-child, th:first-child { padding-left: 18px; }.check-col { width: 42px; }.action-col { width: 64px; }.table-check, input[type="checkbox"] { accent-color: var(--blue); }.question-clue { max-width: 310px; font-weight: 700; }.question-id { display: block; margin-top: 4px; color: #a3afbd; font-family: "DM Mono", monospace; font-size: 8px; }.answer-code { display: inline-block; padding: 5px 7px; border-radius: 5px; background: #f0f3f7; color: #52657c; font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; }.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; }.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-badge.active { background: var(--green-soft); color: var(--green); }.status-badge.inactive { background: #f1f3f5; color: #8795a5; }.date-code { color: #8492a3; font-family: "DM Mono", monospace; font-size: 9px; }.row-menu { width: 29px; height: 29px; border: 0; border-radius: 7px; background: transparent; color: #8fa0b2; font-size: 17px; }.row-menu:hover { background: #f2f5f8; color: var(--ink); }.question-cards { display: none; }.empty-state { padding: 65px 20px; text-align: center; }.empty-state h3, .empty-state p { margin: 0; }.empty-state h3 { margin-top: 14px; font-size: 15px; }.empty-state p { margin-top: 6px; color: var(--muted); font-size: 11px; }.empty-state .secondary-button { margin-top: 18px; }.state-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 22px; font-weight: 800; }.state-icon.danger { background: rgba(213,92,103,.12); color: var(--danger); }.pagination { display: flex; justify-content: space-between; align-items: center; min-height: 57px; padding: 0 18px; border-top: 1px solid var(--line); color: #97a5b4; font-family: "DM Mono", monospace; font-size: 9px; }.pagination > div { display: flex; gap: 5px; }.pagination-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 19px; line-height: 1; }.pagination-button:disabled { color: #c2cad3; }
.placeholder-card { max-width: 550px; margin: 70px auto; padding: 45px 30px; border: 1px solid var(--line); border-radius: 16px; background: white; text-align: center; box-shadow: var(--shadow-small); }.placeholder-card h2 { margin: 16px 0 8px; font-size: 24px; letter-spacing: -.05em; }.placeholder-card p:not(.eyebrow) { margin: 0 auto 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.modal-dialog { width: min(calc(100% - 32px), 480px); padding: 0; border: 0; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 25px 90px rgba(6, 20, 37, .28); }.modal-dialog::backdrop { background: rgba(5, 16, 30, .52); backdrop-filter: blur(3px); }.modal-dialog form, .preview-dialog { padding: 25px; }.wide-dialog { width: min(calc(100% - 32px), 620px); }.preview-dialog { width: min(calc(100% - 32px), 680px); }.modal-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }.modal-head h2 { margin: 0; font-size: 22px; letter-spacing: -.06em; }.modal-copy { margin: 10px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }.modal-copy code { padding: 2px 4px; border-radius: 4px; background: #f0f3f7; font-family: "DM Mono", monospace; font-size: 10px; }.field-label { display: block; margin: 16px 0 7px; color: #52657b; font-size: 10px; font-weight: 800; }.field-label span { color: var(--danger); }.modal-dialog textarea, .modal-dialog input:not([type="checkbox"]), .modal-dialog select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fbfcfd; color: var(--ink); font-size: 12px; }.modal-dialog textarea { resize: vertical; line-height: 1.5; }.modal-dialog textarea:focus, .modal-dialog input:focus, .modal-dialog select:focus { border-color: #77a0ff; background: white; box-shadow: 0 0 0 3px rgba(55,120,255,.1); }.field-footer { display: flex; justify-content: space-between; margin-top: 5px; color: #a0adba; font-family: "DM Mono", monospace; font-size: 8px; }.field-footer strong { color: var(--blue); font-weight: 500; }.field-hint { margin-top: 6px; color: #9aa8b7; font-size: 9px; }.switch-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }.switch-row span { flex: 1; }.switch-row strong, .switch-row small { display: block; }.switch-row strong { font-size: 10px; }.switch-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }.switch-row input { display: none; }.switch-row i { width: 37px; height: 21px; position: relative; flex: 0 0 37px; border-radius: 99px; background: #cbd4dd; transition: background .2s ease; }.switch-row i::after { content: ""; width: 15px; height: 15px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 4px rgba(0,0,0,.16); transition: transform .2s ease; }.switch-row input:checked + i { background: var(--green); }.switch-row input:checked + i::after { transform: translateX(16px); }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }.import-area { min-height: 190px; font-family: "DM Mono", monospace !important; font-size: 11px !important; }.import-options { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #8f9dad; font-size: 9px; }.preview-loading { display: grid; place-items: center; min-height: 250px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 10px; }.preview-summary { display: flex; align-items: center; gap: 9px; margin: 3px 0 16px; }.preview-summary strong { font-size: 11px; }.preview-summary small { margin-left: auto; color: var(--muted); font-size: 9px; }.preview-grid-wrap { overflow: auto; max-height: 440px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #e9edf2; }.preview-grid { display: grid; grid-template-columns: repeat(13, 24px); grid-auto-rows: 24px; width: max-content; margin: auto; border: 1px solid #0e1a2a; background: #0e1a2a; }.preview-cell { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #1b2b40; background: white; color: #1b2b40; font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; }.preview-cell.empty { background: #0e1a2a; }.preview-clues { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 15px; margin-top: 15px; }.preview-clue { display: flex; gap: 7px; color: #62748a; font-size: 9px; line-height: 1.4; }.preview-clue b { color: var(--blue); font-family: "DM Mono", monospace; font-size: 8px; }.profile-popover { width: 245px; position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 18px 45px rgba(9, 23, 39, .18); }.popover-user { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.popover-user strong, .popover-user small { display: block; }.popover-user strong { font-size: 10px; }.popover-user small { max-width: 175px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.profile-popover button { width: 100%; margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: var(--danger); font-size: 10px; font-weight: 800; text-align: left; }
.center-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 30px; background: var(--canvas); text-align: center; }.center-state h2 { max-width: 400px; margin: 16px 0 8px; font-size: 25px; letter-spacing: -.05em; }.center-state p:not(.eyebrow) { max-width: 420px; margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.toast-region { width: min(calc(100% - 32px), 360px); display: flex; flex-direction: column; gap: 8px; position: fixed; z-index: 50; top: 20px; right: 20px; }.toast { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; background: white; color: var(--ink); box-shadow: 0 14px 35px rgba(15,35,58,.15); font-size: 11px; font-weight: 700; animation: slide-in .25s ease both; }.toast.success { border-left-color: var(--green); }.toast.error { border-left-color: var(--danger); }.toast.fade { opacity: 0; transform: translateX(15px); transition: .25s ease; } @keyframes slide-in { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) {
  .app-shell { display: block; }.app-sidebar { display: none; }.mobile-header { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: white; }.content-wrap { padding: 28px 22px 100px; }.page-header { align-items: flex-start; margin-bottom: 25px; }.page-header .header-actions { padding-top: 23px; }.page-header h1 { font-size: 28px; }.overview-grid { grid-template-columns: 1fr; }.hero-art { margin-right: -15px; }.mobile-nav { height: 70px; display: flex; align-items: center; justify-content: space-around; position: fixed; right: 0; bottom: 0; left: 0; z-index: 12; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }.mobile-nav a { width: 65px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #9aa8b7; }.mobile-nav a.is-active { color: var(--blue); }.mobile-nav a span { font-size: 20px; line-height: 1; }.mobile-nav a small { font-size: 8px; font-weight: 700; }.mobile-add { width: 45px; height: 45px; margin-top: -24px; border: 5px solid var(--canvas); border-radius: 50%; background: var(--blue); color: white; font-size: 24px; box-shadow: 0 7px 17px rgba(55,120,255,.3); }.profile-popover { right: 15px; bottom: 80px; }.header-actions .icon-button { display: none; }
}
@media (max-width: 650px) {
  .content-wrap { padding: 22px 15px 98px; }.page-header { gap: 10px; margin-bottom: 21px; }.page-header .eyebrow { margin-top: 16px; }.page-header h1 { font-size: 24px; }.page-subtitle { font-size: 10px; }.header-actions .primary-button { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 11px; font-size: 0; }.header-actions .primary-button span { font-size: 22px; }.breadcrumb { margin-bottom: 0; }.hero-banner { min-height: 210px; padding: 22px 20px; }.hero-banner h2 { font-size: 24px; }.hero-banner p { max-width: 190px; line-height: 1.5; }.hero-art { width: 110px; height: 125px; margin-right: -32px; transform: scale(.75) rotate(-5deg); }.metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 112px; padding: 13px; }.metric-label { font-size: 9px; line-height: 1.3; }.metric-card > strong { margin-top: 12px; font-size: 22px; }.metric-card > small { font-size: 8px; }.surface-card { padding: 17px; }.quick-grid { grid-template-columns: 1fr; margin-top: 17px; }.section-toolbar { display: block; }.toolbar-search { width: 100%; }.toolbar-filters { margin-top: 8px; }.toolbar-filters select { flex: 1; }.toolbar-filters .secondary-button { flex: 0 0 auto; }.table-meta { min-height: 51px; padding: 0 13px; }.table-meta > div > span { display: none; }.table-meta .ghost-button { font-size: 9px; }.table-scroll, table { display: none; }.question-cards { display: grid; gap: 8px; padding: 10px; }.question-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }.question-card-top { display: flex; gap: 8px; align-items: flex-start; }.question-card .card-check { margin-top: 2px; }.question-card-body { min-width: 0; flex: 1; }.question-card .question-clue { max-width: none; font-size: 11px; line-height: 1.45; }.question-card-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 13px; padding-top: 10px; border-top: 1px solid #eef2f6; }.question-card .row-menu { margin-left: auto; }.pagination { min-height: 52px; padding: 0 13px; }.preview-clues { grid-template-columns: 1fr; }.preview-dialog { padding: 18px; }.modal-dialog { margin: auto; }.modal-dialog form { padding: 20px; }.toast-region { top: auto; right: 15px; bottom: 82px; left: 15px; width: auto; }.toast { font-size: 10px; }
}
@media (max-width: 390px) { .hero-banner h2 { font-size: 21px; }.hero-banner p { font-size: 10px; }.metric-card { padding: 11px; }.metric-card > strong { font-size: 20px; } }
