@import url('/tokens.css');

/* Quiet chrome. The map and its ratings are the primary content. */
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .3; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #769de1; outline-offset: 4px; }
button:focus:not(:focus-visible) { outline: none; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.8px; font-weight: 600; }
h1:focus { outline: none; }
::selection { background: #dde8f7; }
.muted { color: var(--muted); font-size: 13px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.workspace { min-height: 100vh; }
.map-workspace { height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: relative; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; min-height: 76px;
  padding: 12px 32px; flex-shrink: 0;
  background: #f6f7f9ee; border-bottom: 1px solid #e9ebee;
}
.navigation { display: flex; align-items: center; gap: 25px; min-width: 0; }
.brand { font-size: 23px; font-weight: 650; letter-spacing: -1px; padding: 7px 0; min-height: 44px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs svg { color: #b2b6bd; }
.breadcrumbs button { flex-shrink: 0; color: #717781; font-size: 13px; min-height: 44px; padding: 4px 0; white-space: nowrap; }
.back-link { display: flex; align-items: center; gap: 9px; }
.back-link span { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs button:hover { color: #22252b; }
.toolbar { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.demo-label { color: #81858e; font-size: 11px; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: #606773;
}
.icon-button:hover { background: #e9ecf0; }
.icon-button:active { background: #dde2e8; }
.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 9px 18px; border-radius: 12px; font-size: 13px; font-weight: 500;
  transition: background .15s, transform .15s;
}
.button:active { transform: scale(.98); }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #465367; }
.secondary { border: 1px solid #dfe3e8; background: #fff; color: #545d69; }
.secondary:hover { background: #f0f3f7; }
.danger { background: #bc483e; color: #fff; }
.danger-ghost { color: #bc483e; }
.danger-ghost:hover { background: #fbedea; }

/* Search and secondary actions are kept in one toolbar. */
.search-wrap { position: relative; width: 200px; }
.search-box {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 12px; background: #eaedf1; color: #8a909a;
}
.search-box input { width: 100%; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 13px; }
.search-box input::placeholder { color: #858b94; }
.search-box:focus-within { border-color: #9eb7dc; background: white; box-shadow: 0 0 0 3px #a7bedc22; }
.search-results, .menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fffffff5; backdrop-filter: blur(20px); border: 1px solid #e2e5ea;
  border-radius: 16px; box-shadow: 0 12px 48px #202b4020; padding: 7px;
}
.search-results { width: 420px; max-width: calc(100vw - 32px); max-height: 60vh; overflow: auto; }
.search-results-label { padding: 10px 12px; color: var(--muted); font-size: 12px; }
.search-results>button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; text-align: left; color: #757e8b; }
.search-results>button:hover { background: #eef2f7; }
.search-results>button>span { min-width: 0; flex: 1; }
.search-results strong { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.search-results small { display: block; font-size: 11px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results p { color: var(--muted); padding: 12px; }
.actions-menu { position: relative; }
.actions-menu summary { list-style: none; cursor: pointer; background: #eaedf1; }
.actions-menu summary::-webkit-details-marker { display: none; }
.actions-menu[open] summary { background: #dfe5ed; color: var(--text); }
.menu-panel { width: 270px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); overflow-y: auto; }
.menu-panel button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; font-size: 13px; text-align: left; border-radius: 9px; }
.menu-panel button:hover { background: #edf1f6; }
.menu-panel button svg { color: #7c8593; }
.menu-panel hr { height: 1px; border: 0; background: #e9ecf0; margin: 6px 8px; }
.menu-count { color: #8b919b; margin-left: auto; font-size: 12px; }

/* A full-window map with legible, quiet clouds and prominent scores. */
.map-main { flex: 1; min-height: 600px; display: flex; }
.map-panel { width: 100%; position: relative; display: flex; flex-direction: column; }
.map-canvas { flex: 1; position: relative; overflow: hidden; cursor: grab; touch-action: none; min-height: 510px; }
.map-canvas.panning { cursor: grabbing; }
.map-stage { width: 1080px; position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-connectors { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; color: #c4cad3; }
.connector { fill: none; stroke: #ccd2da; stroke-width: 1.5; animation: appear .35s ease both; }
.map-center, .map-node {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center;
  background: white; border: 1px solid #e5e8ed;
  box-shadow: 0 6px 24px #26344c05, 0 1px 2px #26344c03;
  transition: box-shadow .2s, border-color .2s;
}
.map-center:hover, .map-node:hover { border-color: #c4cedb; box-shadow: 0 10px 32px #26344c10; }
.map-center:active, .map-node:active { background: #f9fafc; }
.map-center { width: 330px; height: 200px; border-radius: 54px; padding: 24px; gap: 15px; flex-direction: column; justify-content: center; box-shadow: 0 14px 50px #26344c08; animation: cloud-in .4s ease both; }
.map-center>strong { font-size: 25px; font-weight: 550; letter-spacing: -.65px; line-height: 1.2; max-width: 280px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.score { color: var(--score-text); font-weight: 500; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1; flex-shrink: 0; display: inline-block; }
.score.large { font-size: 50px; letter-spacing: -2px; }
.map-center .score { font-size: 64px; letter-spacing: -3px; }
.map-node { width: 290px; height: 144px; border-radius: 38px; gap: 18px; padding: 23px; text-align: left; animation: cloud-in .4s var(--delay) backwards; }
.map-node>strong { flex: 1; min-width: 0; font-size: 20px; line-height: 1.3; color: var(--text); letter-spacing: -.45px; font-weight: 500; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.map-node .score { font-size: 48px; }
.metric-orbit { position: absolute; transform: translate(-50%, -50%); display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: 330px; }
.metric-bubble { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 69px; height: 69px; background: #eff1f4; border-radius: 50%; gap: 3px; }
.metric-bubble strong { font-size: 19px; letter-spacing: -.5px; font-weight: 500; color: #6f7783; }
.metric-bubble span { font-size: 10px; color: #848b96; }
.map-empty { position: absolute; left: 540px; top: 550px; transform: translateX(-50%); }
.map-bottom { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 8px 32px 24px; gap: 20px; }
.rating-key { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #818791; padding: 12px 0; min-height: 44px; }
.rating-key:hover { color: #414b58; }
.rating-spectrum { width: 65px; height: 4px; background: linear-gradient(90deg, #c44940, #c6a15a 50%, #35905b); border-radius: 2px; opacity: .75; }
.zoom-controls { display: flex; align-items: center; background: #fff9; border: 1px solid #e3e7ed; border-radius: 24px; padding: 0 3px; }
.zoom-controls button { width: 44px; height: 42px; display: grid; place-items: center; color: #89909b; border-radius: 50%; }
.zoom-controls button:hover { color: #414b58; background: #eef1f5; }
#zoom-value { font-size: 11px; font-variant-numeric: tabular-nums; }
.map-pagination { display: flex; align-items: center; gap: 10px; color: #8b929e; font-size: 12px; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes cloud-in { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }

/* Lists and screen galleries keep secondary details in the selected item. */
.content-main { max-width: 1500px; padding: 42px 48px 64px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.flow-heading>div:first-child { min-width: 0; }
.flow-heading h1 { overflow-wrap: anywhere; }
.flow-heading .muted { display: block; margin-top: 9px; }
.flow-actions { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.flow-rating { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0; }
.flow-rating>span:last-child { color: var(--muted); font-size: 12px; max-width: 55px; text-align: left; line-height: 1.5; }
.catalog { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.catalog-row { display: flex; align-items: center; gap: 28px; text-align: left; padding: 24px 28px; min-height: 98px; width: 100%; }
.catalog-row+.catalog-row { border-top: 1px solid #edf0f4; }
.catalog-row:hover { background: #f8fafc; }
.catalog-row>span:first-child { flex: 1; min-width: 0; }
.catalog-row strong { font-weight: 500; font-size: 17px; }
.catalog-row small { display: block; font-size: 12px; margin-top: 6px; color: var(--muted); }
.catalog-row .score { font-size: 36px; }
.catalog-row>svg { color: #a4aebc; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px; min-height: 380px; text-align: center; color: #7a8390; }
.empty-state h2 { font-size: 20px; font-weight: 500; }
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 32px; border-radius: 22px; outline: 2px dashed transparent; outline-offset: 12px; }
.screens-grid.drag-over { outline-color: #8fa9cd; background: #eaf0f8; }
.screen-card { min-width: 0; }
.screen-preview { display: block; width: 100%; padding: 0; text-align: left; border-radius: 22px; }
.screen-image { display: flex; align-items: center; justify-content: center; height: 450px; padding: 26px; border-radius: 25px; background: #eceff3; border: 1px solid #e4e8ee; transition: background .2s; }
.screen-image img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px #2732470a); transition: transform .2s; }
.screen-preview:hover .screen-image { background: #e7ebf1; }
.screen-preview:hover img { transform: translateY(-3px); }
.screen-caption { display: flex; align-items: center; gap: 10px; padding: 19px 4px; }
.screen-number { color: #9199a5; font-size: 12px; }
.screen-caption strong { font-size: 14px; line-height: 1.5; font-weight: 500; flex: 1; }
.screen-caption .score { font-size: 34px; letter-spacing: -1px; }
.upload-card { min-height: 360px; border: 1px dashed #cbd3df; border-radius: 24px; color: #8c97a7; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; background: #f2f4f7; }
.upload-card:hover { background: #eaedf3; }
.upload-card strong { color: #667489; font-weight: 500; font-size: 16px; }
.upload-card span { font-size: 12px; }

/* Contextual details and editing. */
.dialog { width: 590px; max-width: calc(100vw - 32px); max-height: 90dvh; border: 1px solid #e5e9ef; border-radius: 24px; padding: 0; color: var(--text); background: #fff; overflow: auto; box-shadow: 0 24px 90px #1f2b4030; }
.dialog::backdrop { background: #28334540; backdrop-filter: blur(5px); }
.dialog.wide { width: 1000px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border-bottom: 1px solid #eef0f4; }
.dialog-header h2 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; line-height: 1.35; overflow-wrap: anywhere; }
.dialog-header .icon-button { flex-shrink: 0; background: #f0f2f6; }
.node-details { padding: 28px; }
.detail-rating, .health-score { display: flex; align-items: center; gap: 20px; }
.detail-rating strong, .health-score strong { display: block; font-weight: 500; font-size: 15px; }
.detail-rating>div>span, .health-score>div>span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.node-details>.muted { margin-top: 16px; }
.detail-description { margin: 26px 0 20px; font-size: 14px; color: #656f7e; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #486e9f; font-size: 13px; }
.text-link:hover { text-decoration: underline; }
.team-info { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin: 25px 0 0; }
.team-info dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.team-info dd { margin: 0; font-size: 14px; }
.demo-note { color: #939aa5; font-size: 11px; margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 26px 28px; }
.full { grid-column: 1/-1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field>span, .rating-label>span { font-size: 13px; font-weight: 500; color: #5d697a; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #dce2eb; background: #fcfdfe; border-radius: 10px; color: #3e4a5d; padding: 12px; font-size: 13px; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder { color: #a0a8b4; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid #a3bbdf28; border-color: #94afd6; }
.form-section h3 { font-size: 16px; font-weight: 500; }
.form-section p, .form-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #7a8595; }
.checkbox-label input { accent-color: #5a759a; width: 16px; height: 16px; }
.rating-field { background: #f6f8fb; border: 1px solid #e7ecf3; border-radius: 14px; padding: 19px; }
.rating-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.rating-input { display: flex; align-items: center; gap: 26px; }
.rating-input>output { min-width: 54px; text-align: center; }
.rating-input>div { flex: 1; }
.rating-input input { width: 100%; accent-color: #6484b0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #818da0; font-size: 10px; margin-top: 8px; gap: 5px; }
.dialog-footer { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafbfd; border-top: 1px solid #e9edf3; }
.dialog-footer>div { display: flex; gap: 9px; }
.form-error { font-size: 13px; line-height: 1.6; color: #b54b40; padding: 0 28px 20px; }
.form-error:empty { display: none; }
.file-picker { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 17px; padding: 28px; border: 1px dashed #bac9df; background: #f7f9fc; border-radius: 16px; color: #8497b2; min-height: 230px; }
.file-picker strong { font-size: 16px; font-weight: 500; color: #607898; }
.file-picker>span { font-size: 12px; }
.file-picker input { font-size: 12px; max-width: 100%; }
.file-picker input::file-selector-button { padding: 10px 14px; border: 0; border-radius: 9px; background: #e5ecf6; color: #5a7192; margin-right: 12px; cursor: pointer; }
.delete-description { padding: 28px; font-size: 14px; color: #727d8d; line-height: 1.8; }
.delete-description strong { font-weight: 500; color: #36465b; }
.delete-description p+p { margin-top: 12px; }
.lightbox { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 560px; }
.lightbox-image { background: #eef1f5; padding: 28px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.lightbox-image img { max-height: 68vh; object-fit: contain; filter: drop-shadow(0 12px 20px #2732470d); }
.lightbox-details { display: flex; flex-direction: column; padding: 30px 24px; }
.lightbox-details .health-score { margin-bottom: 26px; }
.lightbox-details>p { font-size: 13px; color: #7a8596; line-height: 1.8; margin-bottom: 22px; white-space: pre-line; overflow-wrap: anywhere; }
.lightbox-details .button { margin-top: 25px; }
.review-meta { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid #e9edf3; padding-top: 20px; margin-top: 25px; color: #909bad; font-size: 12px; }
.review-meta strong { font-size: 13px; color: #6c7e97; font-weight: 500; }
.lightbox-navigation { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; color: #8797af; font-size: 12px; }
.help-content { padding: 28px; color: #6e7d93; font-size: 13px; line-height: 1.8; }
.help-content h3 { font-size: 16px; font-weight: 500; color: #4d6585; margin: 24px 0 10px; }
.help-steps { display: flex; align-items: center; justify-content: space-between; gap: 5px; background: #f0f4f9; padding: 15px 12px; border-radius: 12px; font-size: 11px; margin-top: 22px; }
.help-content>.muted { margin-top: 22px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; background: #303c50; color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: 0 8px 30px #1d294422; max-width: calc(100vw - 32px); z-index: 100; font-size: 13px; transition: opacity .2s, transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #ac453e; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; font-size: 32px; font-weight: 600; }
.boot>span, .boot p { font-size: 14px; font-weight: 400; color: var(--muted); }
.boot p { padding: 20px; text-align: center; }
.boot .boot-error { font-size: 23px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; border-radius: 10px; background: white; z-index: 200; }
.skip-link:focus { top: 10px; }

@media (max-width: 1000px) {
  .topbar { padding: 12px 24px; gap: 18px; }
  .navigation { gap: 16px; }
  .toolbar { gap: 12px; }
  .search-wrap { width: 155px; }
  .breadcrumbs { gap: 8px; }
  .breadcrumbs button { max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .content-main { padding: 32px 28px 50px; }
  .flow-actions { gap: 20px; }
  .screens-grid { gap: 24px; }
  .screen-image { height: 430px; padding: 22px; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 12px 20px; gap: 4px 16px; }
  .navigation { display: contents; }
  .brand { order: 0; }
  .toolbar { order: 1; margin-left: auto; }
  .breadcrumbs { order: 2; flex-basis: 100%; gap: 8px; }
  .breadcrumbs button { max-width: none; min-height: 36px; }
  .breadcrumbs svg { display: block; }
  .demo-label { font-size: 10px; }
  .map-bottom { padding: 8px 20px 22px; gap: 10px; }
  .rating-key { font-size: 11px; gap: 9px; }
  .rating-spectrum { width: 40px; }
  .page-heading { align-items: flex-start; gap: 20px; }
  h1 { font-size: 25px; }
  .flow-actions { gap: 14px; }
  .flow-rating { gap: 9px; }
  .flow-rating .score { font-size: 42px; }
  .flow-rating>span:last-child { font-size: 11px; }
  .screens-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
  .screen-image { height: 390px; padding: 20px; }
  .lightbox { grid-template-columns: minmax(0, 1fr) 250px; }
  .lightbox-details { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .map-workspace { height: auto; }
  .map-main { min-height: 0; }
  .map-canvas { flex: none; min-height: 0; overflow: visible; touch-action: pan-y; cursor: auto; }
  .map-stage { position: relative; transform: none!important; width: 100%; height: auto!important; display: flex; flex-direction: column; align-items: center; padding: 30px 20px 15px; }
  .map-connectors { display: none; }
  .map-center { position: relative; left: auto!important; top: auto!important; transform: none; width: min(330px, 100%); margin: 0 0 40px; height: 190px; border-radius: 42px; }
  .map-center>strong { font-size: 23px; }
  .map-center .score { font-size: 58px; }
  .metric-orbit { position: relative; left: auto!important; top: auto!important; transform: none; order: -1; width: 100%; margin-bottom: 24px; }
  .metric-bubble { width: 64px; height: 64px; }
  .metric-bubble strong { font-size: 18px; }
  .metric-bubble span { font-size: 9px; }
  .map-node { position: relative; left: auto!important; top: auto!important; transform: none; width: calc(100% - 26px); min-height: 108px; height: auto; padding: 25px; border-radius: 30px; margin: 0 0 20px 26px; }
  .map-node>strong { font-size: 17px; line-height: 1.4; }
  .map-node .score { font-size: 42px; }
  .map-node:before { content: ''; position: absolute; left: -25px; top: -45px; width: 24px; height: calc(50% + 45px); border-left: 1px solid #cbd2dd; border-bottom: 1px solid #cbd2dd; border-bottom-left-radius: 18px; }
  .map-empty { position: static; transform: none; margin-bottom: 30px; }
  .map-bottom { flex-wrap: wrap; justify-content: center; padding: 15px 20px 24px; }
  .zoom-controls { display: none; }
  .map-pagination { flex-basis: 100%; justify-content: center; }
  .rating-key { font-size: 12px; gap: 12px; }
  .rating-spectrum { width: 60px; }
  .content-main { padding: 28px 20px 40px; }
  .flow-heading { flex-wrap: wrap; gap: 20px; }
  .flow-actions { width: 100%; justify-content: space-between; }
  .flow-rating .score { font-size: 44px; }
  .flow-rating>span:last-child { max-width: none; font-size: 12px; }
  .screens-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .screen-image { height: 490px; padding: 30px; }
  .screen-caption { padding: 16px 5px; }
  .screen-caption strong { font-size: 15px; }
  .catalog-row { gap: 15px; padding: 22px 18px; }
  .catalog-row strong { font-size: 15px; }
  .catalog-row .score { font-size: 32px; }
  .catalog-row>svg { display: none; }
  .lightbox { display: flex; flex-direction: column; }
  .lightbox-image img { max-height: 55vh; }
  .lightbox-details { padding: 24px; }
  .lightbox-navigation { padding-top: 18px; margin-top: 20px; }
  .dialog-header { padding: 20px; }
  .dialog-header h2 { font-size: 20px; }
  .form-grid { padding: 22px 20px; grid-template-columns: minmax(0, 1fr); }
  .full { grid-column: auto; }
  .dialog-footer { padding: 18px 20px; }
  .dialog-footer .button { padding: 9px 12px; font-size: 12px; }
  .node-details { padding: 24px; }
  .rating-label { align-items: flex-start; }
  .rating-label>span, .checkbox-label { font-size: 11px; }
  .rating-field { padding: 16px; }
  .rating-input { gap: 18px; }
  .range-labels { font-size: 9px; }
  .help-content { padding: 24px; }
  .help-steps { font-size: 9px; padding: 12px 8px; }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 16px; }
  .search-wrap { width: 125px; }
  .toolbar { gap: 8px; }
  .demo-label { display: none; }
  .map-stage { padding-inline: 16px; }
  .screen-image { height: 430px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

/* Account access uses the same quiet visual language as the atlas. */
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% 25%, #e9edf4, transparent 65%), var(--canvas); }
.login-card { width: min(100%, 420px); padding: 38px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 80px #26344c0a; }
.login-brand { display: block; font-size: 25px; font-weight: 650; letter-spacing: -1px; color: #63728b; margin-bottom: 32px; }
.login-card h1 { font-size: 29px; }
.login-intro { color: var(--muted); margin: 14px 0 28px; line-height: 1.7; }
.login-card form { display: grid; gap: 20px; }
.login-card input { width: 100%; min-height: 48px; }
.login-card .button { width: 100%; min-height: 48px; }
.login-error { padding: 0; min-height: 0; }
.login-error:empty { display: none; }
.login-note { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 24px; }
.account-label { padding: 10px 12px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.members-list { padding: 8px 28px; max-height: 55vh; overflow: auto; }
.member-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.member-row + .member-row { border-top: 1px solid var(--line); }
.member-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member-row strong, .member-row span { display: block; }
.member-row span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.field small { font-size: 12px; color: var(--muted); line-height: 1.6; }
@media (max-width: 480px) { .login-card { padding: 28px 24px; } .members-list { padding: 8px 20px; } .member-row { gap: 8px; } }
