/* Fieldlog product layer. Keep drawing coordinates, canvases and gesture layers untouched. */
:root {
  --surface: #fff;
  --ink: #182336;
  --muted: #69778b;
  --line: #e3e8ef;
  --accent: #315eea;
  --accent-soft: #edf2ff;
  --canvas: #f5f7fb;
  --radius: 12px;
  --shadow: 0 3px 12px #1d2f4c05;
}
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button {
  min-height: 44px;
  border-color: #dce3ed;
  border-radius: 9px;
  color: #40516a;
  padding: 10px 14px;
  font-weight: 600;
  transition: background-color .14s, border-color .14s, box-shadow .14s;
}
button:hover:not(:disabled) { background: #f6f8fc; border-color: #bfcce0; }
button.primary, button.dark { background: var(--accent); border-color: var(--accent); color: white; }
button.primary:hover:not(:disabled), button.dark:hover:not(:disabled) { background: #254dcc; border-color: #254dcc; }
button.ghost { color: #596b82; }
button.ghost:hover:not(:disabled) { background: #eef2f7; border-color: transparent; }
button.danger, button.record-delete { color: #b84445; }
button:disabled { opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #81a0ff;
  outline-offset: 3px;
}
input, select, textarea {
  min-height: 44px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #646d7b; }
input:focus, select:focus, textarea:focus { border-color: #7d9bf2; }
input[type=checkbox] { min-height: 20px; accent-color: var(--accent); }
input[type=range] { accent-color: var(--accent); }
a { color: #315eea; }
.muted, .meta { color: var(--muted); }
.eyebrow { color: #616d7d; font-size: 11px; letter-spacing: 1.7px; font-weight: 750; }
.layout { grid-template-columns: 218px minmax(0, 1fr); }
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  color: #5f6d81;
  padding: 26px 14px 16px;
}
.brand { color: #1b2d48; font-size: 23px; letter-spacing: -.9px; padding: 0 12px 32px; gap: 10px; }
.brand img { width: 31px; height: 31px; }
.sidebar .brand span { line-height: 1.1; }
.sidebar .brand small { display: block; font-size: 7px; font-weight: 600; letter-spacing: 1.5px; color: #687a95; margin-top: 8px; }
.nav { gap: 3px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-section { color: #656e7a; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 20px 12px 9px; }
.nav-section:first-child { padding-top: 4px; }
.nav button {
  border-radius: 9px;
  color: #616d83;
  font-size: 13px;
  font-weight: 550;
  padding: 12px;
  min-height: 45px;
  gap: 11px;
}
.nav button .icon { width: 19px; height: 19px; stroke-width: 1.65; }
.nav button.active { color: #315eea; background: #edf2ff; box-shadow: none; font-weight: 700; }
.nav button:hover:not(:disabled) { color: #254dcc; background: #f4f6fc; }
.nav button.active:hover:not(:disabled) { background: #e6edff; }
.nav small { background: #e8edf6; color: #5f7089; border-radius: 5px; font-size: 11px; min-width: 19px; text-align: center; }
.nav button.active small { background: #dbe5ff; color: #315eea; }
.sidefoot { border: 0; border-radius: 10px; padding: 15px 12px; background: #f7f9fc; color: #656e7d; font-size: 11px; line-height: 1.8; }
.sidefoot strong { color: #5b6b82; font-size: 12px; margin-bottom: 3px; }
.sidefoot { display: flex; align-items: center; gap: 10px; }
.sidefoot .avatar { width: 32px; height: 32px; flex: none; }
.sidefoot small { font-size: 11px; }
.topbar { height: 64px; border-color: var(--line); padding: 0 32px; gap: 16px; box-shadow: none; }
.top-context { display: flex; align-items: center; gap: 12px; min-width: 0; color: #65707d; font-size: 12px; }
.top-context > .icon { width: 18px; height: 18px; color: #9ca8b9; }
.top-context > span { white-space: nowrap; }
.top-context > strong { color: #4d627f; font-size: 12px; font-weight: 550; }
.top-context .workspace-back { color: #798da9; padding: 7px; min-height: 36px; }
.projectpick { color: #35445b; font-size: 13px; padding: 6px 28px 6px 0; min-height: 44px; font-weight: 650; }
.topright { gap: 12px; }
.topright > button { font-size: 12px; min-height: 40px; padding: 8px 12px; }
.connection { color: #517565; background: #f0f7f3; padding: 6px 10px; font-size: 11px; gap: 6px; }
.connection::before { width: 6px; height: 6px; background: #2fa576; }
.connection.offline { color: #90672f; background: #fff5e8; }
.account { font-size: 12px; }
.avatar { width: 31px; height: 31px; background: #ebeffb; color: #4d64a3; font-size: 12px; }
.warningbar { background: #fffaf0; border-color: #f0e6d0; color: #81683b; padding: 7px 32px; font-size: 11px; }
.pagehead { padding: 30px 32px 22px; }
.pagehead h1 { margin: 6px 0 0; font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.pagehead .headbuttons button { font-size: 12px; }
.list-content { padding: 0 32px 32px; scrollbar-gutter: stable; }
.workspace-heading { padding: 24px 0 21px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-heading h1 { margin: 7px 0 10px; font-size: clamp(25px, 2.3vw, 34px); letter-spacing: -1.2px; line-height: 1.35; }
.workspace-heading h2 { margin: 6px 0 8px; font-size: clamp(23px, 2.2vw, 28px); letter-spacing: -1px; line-height: 1.4; font-weight: 650; }
.workspace-heading p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; }
.workspace-date { white-space: nowrap; color: #617591; font-size: 11px; }
.workspace-intro { border: 0; padding: 0 0 26px; max-width: none; }
.workspace-intro h2 { font-size: 27px; letter-spacing: -.9px; }
.workspace-intro p { font-size: 13px; }
.workspace-total { color: #626e7f; font-size: 25px; }
.workspace-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 25px; }
.overview-stat {
  display: flex;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  min-height: 105px;
}
.overview-stat strong { font-size: 28px; line-height: 1.1; font-weight: 670; letter-spacing: -.8px; color: #213653; font-variant-numeric: tabular-nums; }
.overview-stat strong small { font-size: 12px; font-weight: 450; color: #687d9b; letter-spacing: 0; margin-left: 7px; }
.overview-stat > span { display: inline-flex; align-items: center; gap: 7px; }
.overview-stat > span > .icon { width: 15px; height: 15px; color: #6583b9; }
.overview-stat span { font-size: 12px; font-weight: 500; color: #637081; }
.overview-stat > .icon { color: #718fca; }
.overview-stat:hover:not(:disabled) { border-color: #b9cafd; background: #fff; box-shadow: 0 4px 18px #315eea0a; }
.projects-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.projects-header h2 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.projects-header p, .projects-header span { font-size: 12px; color: #626f7f; }
.project-grid { grid-template-columns: repeat(auto-fill, minmax(325px, 1fr)); max-width: none; gap: 20px; margin: 0 0 22px; align-items: start; }
.project-card { border-color: var(--line); border-radius: 14px; padding: 23px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.project-card-head { gap: 8px; }
.project-card-head > .muted { font-size: 11px; }
.project-title { margin: 26px 0 22px; gap: 13px; }
.project-symbol { background: #f0f3ff; color: #4367d2; border: 1px solid #e4e9fc; width: 46px; height: 46px; border-radius: 12px; }
.project-symbol .icon { width: 22px; height: 22px; }
.project-title h2 { font-size: 20px; line-height: 1.4; font-weight: 680; margin: 0 0 5px; letter-spacing: -.55px; }
.project-title small { font-size: 11px; color: #636d7d; }
.project-counts { border: 0; border-radius: 0; background: transparent; padding: 0 0 21px; margin: 0; gap: 12px; }
.project-counts span { font-size: 11px; color: #626d7d; }
.project-counts span + span { border-left: 1px solid #edf0f5; padding-left: 17px; }
.project-counts b { display: block; color: #2a3d57; font-size: 25px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.project-counts > button { display: block; min-height: 0; border: 0; border-radius: 5px; padding: 0; text-align: left; background: transparent; color: #60718a; font-size: 11px; font-weight: 500; }
.project-counts > button:hover:not(:disabled) { background: #f3f6fd; }
.project-counts > button .icon { display: inline-block; width: 12px; height: 12px; vertical-align: middle; color: #567be0; }
.project-counts > * + * { border-left: 1px solid #edf0f5; padding-left: 17px; }
.project-sync-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; font-size: 11px; color: #617791; }
.project-sync-line .linkbutton { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; font-size: 11px; text-decoration: none; color: #4d6fc0; }
.project-sync-line .icon { width: 14px; height: 14px; }
.project-card .project-sync-meta { font-size: 10px; line-height: 1.6; margin: 0 0 13px; color: #6e7f96; }
.workspace-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: #6d809a; font-size: 11px; line-height: 1.8; }
.workspace-footnote .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.project-card > p { margin: 0 0 18px; font-size: 11px; color: #616d7d; line-height: 1.9; }
.project-card > p strong { color: #976429; }
.project-actions { border-color: #edf0f5; padding-top: 17px; gap: 8px; }
.project-actions button { font-size: 12px; min-height: 44px; padding: 10px 12px; }
.project-actions .primary { flex: 1; }
.project-actions button:not(.primary) { background: #fff; border-color: #dfe5ee; }
.pill { border-radius: 5px; padding: 4px 7px; font-size: 11px; font-weight: 550; background: #f0f3f7; color: #636e7d; }
.pill.blue { color: #4868be; background: #edf2ff; }
.pill.green { color: #317959; background: #edf7f1; }
.pill.orange { color: #8c6831; background: #fcf5e8; }
.pill.red { color: #a65652; background: #fceeed; }

/* Project -> drawing library -> drawing is the main navigation path. */
.drawing-library { min-width: 0; }
.library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin: 4px 0 24px; }
.library-head h2 { font-size: 23px; letter-spacing: -.65px; margin: 0 0 8px; }
.library-head p { color: #616f81; margin: 0; font-size: 12px; line-height: 1.8; }
.library-search { display: flex; align-items: center; gap: 9px; min-width: 240px; position: relative; }
.library-search > .icon { position: absolute; left: 13px; color: #616d7c; width: 18px; height: 18px; pointer-events: none; }
.library-search input { width: 100%; background: #fff; min-height: 44px; font-size: 12px; }
.library-search:has(> .icon) input { padding-left: 39px; }
.library-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 0 20px; }
.library-filters button { border-color: transparent; background: transparent; color: #636f7f; font-size: 12px; min-height: 40px; padding: 9px 15px; }
.library-filters button.on, .library-filters button.active, .library-filters button[aria-pressed=true] { color: #315eea; background: #e9efff; border-color: #dce5ff; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 18px; padding-bottom: 12px; }
.sheet-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; align-items: stretch; text-align: left; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.sheet-card:hover:not(:disabled) { background: #fff; border-color: #a8bbee; box-shadow: 0 6px 20px #273f6e0b; }
.sheet-preview { position: relative; display: grid; place-items: center; aspect-ratio: 1.9; padding: 18px; overflow: hidden; border-bottom: 1px solid #e6ebf3; background: #eef2f8; color: #99a9c0; }
.sheet-preview > svg { width: min(100%, 190px); height: 100%; max-height: 100px; filter: drop-shadow(0 2px 3px #253d6810); }
.sheet-preview > svg.icon { width: 60px; height: 60px; stroke-width: .7; color: #8198bb; margin-top: -10px; }
.sheet-preview > span, .sheet-preview > small { position: absolute; bottom: 9px; right: 10px; font-size: 10px; color: #656e7d; font-weight: 500; }
.sheet-preview > span { left: 14px; right: auto; bottom: 11px; color: #5b7599; font-size: 11px; font-weight: 600; }
.sheet-info { padding: 17px 17px 15px; }
.sheet-info h3 { margin: 0 0 6px; font-size: 15px; font-weight: 670; color: #293d59; letter-spacing: -.25px; }
.sheet-info p { margin: 0; font-size: 11px; color: #656f7d; font-weight: 400; line-height: 1.7; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; color: #5e7089; font-size: 11px; font-weight: 500; }
.sheet-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sheet-meta .icon { width: 14px; height: 14px; }
.sheet-badges { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 12px; }
.sheet-badges:empty { display: none; }
.sheet-badges .pill { font-size: 10px; padding: 3px 6px; }
.sheet-badges > span { color: #687994; font-size: 11px; font-weight: 450; }
.sheet-badges > span + span::before { content: "·"; padding-right: 5px; color: #718098; }
.sheet-badges .sheet-cache.ready { color: #428165; }
.sheet-open { display: flex; align-items: center; justify-content: space-between; margin: 0 17px; padding: 12px 0; border-top: 1px solid #ecf0f6; color: #416dd6; font-size: 11px; font-weight: 600; }
.sheet-open .icon { height: 15px; width: 15px; }
.library-grid > .empty { grid-column: 1 / -1; }

/* Retain the wide canvas; visually group tools without changing their hit geometry. */
.layout.plan-compact { grid-template-columns: 68px minmax(0, 1fr); }
.plan-compact .sidebar { padding: 17px 6px 10px; }
.plan-compact .brand { padding: 0 12px 25px; }
.plan-compact .nav-section { display: none; }
.plan-compact .nav-group { gap: 5px; margin-bottom: 12px; }
.plan-compact .nav { gap: 5px; }
.plan-compact .nav button { min-height: 55px; padding: 8px 3px; gap: 5px; }
.plan-compact .nav .navtext { font-size: 10px; max-width: 56px; }
.plan-compact .topbar { height: 54px; padding: 0 16px; }
.plan-compact .topbar button { min-height: 40px; }
.plan-compact .projectpick { font-size: 13px; }
.plan-compact .workspace { margin: 0 10px 10px; border-radius: 11px; border-color: #dce3ed; grid-template-columns: minmax(0, 1fr) 304px; }
.plan-compact .workspace.panel-hidden { grid-template-columns: minmax(0, 1fr); }
.plan-compact .drawtop { min-height: 55px; padding: 6px 10px; gap: 9px; border-color: #e8edf4; }
.plan-compact .drawtop select { font-size: 13px; font-weight: 650; }
.plan-compact .drawtop .drawing-find { background: #f8f9fc; border-color: #e6ebf3; color: #656e7e; }
.layer-switch { background: #f0f3f8; border: 0; border-radius: 8px; padding: 3px; gap: 2px; }
.layer-switch button { min-height: 37px; padding: 8px 13px; font-size: 12px; font-weight: 550; border-radius: 6px; color: #606d7d; }
.layer-switch button.on, .layer-switch button[aria-pressed=true] { color: #314765; background: #fff; border-color: transparent; box-shadow: 0 1px 4px #344d7614; }
.layer-dot { width: 6px; height: 6px; }
.plan-compact .toolbar { min-height: 48px; padding: 4px 9px; border-color: #e6ebf2; background: #fff; gap: 4px; }
.plan-compact .toolbar button { min-height: 39px; font-size: 11px; border-color: #e2e7ef; padding: 8px 9px; }
.plan-compact .toolbar button.on { color: #315eea; border-color: #dbe5ff; background: #edf2ff; }
.plan-compact .toolbar .divider { background: #e4e9f1; }
.style-tools { font-size: 11px; color: #656f7e; }
.style-tools input[type=color] { padding: 5px; border-color: #e1e7f0; border-radius: 7px; }
.style-tools input[type=number] { border-color: #e1e7f0; }
.viewport { background: #e9edf3; }
.plan-compact .drawfoot { min-height: 28px; color: #646f7f; font-size: 11px; border-color: #e6ebf3; }
.plan-compact .drawing-nav { border-color: #d7dfed; border-radius: 10px; padding: 8px; box-shadow: 0 7px 25px #2e456c1a; top: 118px; }
.selection-tools { border-color: #d5e0f7; border-top: 2px solid #547bed; border-radius: 12px; box-shadow: 0 6px 24px #263e6721; padding: 12px 14px; }
.selection-caption strong { color: #315eea; }
.selection-caption span { color: #5e6d81; }
.selection-tools button { min-height: 40px; border-color: #e4e9f2; font-size: 11px; }
.selection-tools button.on { border-color: #d5dfff; color: #315eea; background: #edf2ff; }
.plan-compact .rightpanel { border-color: #e3e9f2; }
.plan-compact .rightpanel .panelhead { padding: 14px 18px 15px; border-color: #e8edf3; }
.plan-compact .rightpanel .panelhead h2 { font-size: 20px; letter-spacing: -.65px; margin-top: 9px; }
.plan-compact .panelbody { padding: 18px; }
.panelhead .sub { font-size: 11px; color: #656f7d; }
.metricbox { background: #f6f8fd; border: 1px solid #e8edf7; border-radius: 10px; padding: 17px; }
.metricbox .number { color: #284a8a; font-size: 31px; font-weight: 650; letter-spacing: -1px; }
.metricbox .unit { color: #5f6e83; font-size: 11px; }
.metricbox .caption { color: #616d7d; font-size: 11px; line-height: 1.6; margin-top: 5px; }
.field { gap: 7px; margin-bottom: 17px; }
.field label { font-size: 11px; font-weight: 600; color: #616f82; }
.field input, .field select, .field textarea { font-size: 12px; }
.sectionlabel, .editor-section { font-size: 11px; font-weight: 700; color: #656e7d; letter-spacing: .7px; margin: 22px 0 12px; }
.editor-section { border-top: 1px solid #e7ecf4; padding-top: 18px; }
.detailrows { grid-template-columns: 73px minmax(0, 1fr); font-size: 12px; gap: 13px; line-height: 1.6; }
.detailrows dt { color: #656f7d; }
.detailrows dd { color: #50627c; }
.approval { border-color: #e3e9f3; border-radius: 8px; padding: 12px; }
.approval b { font-size: 12px; font-weight: 600; }
.approval small { font-size: 11px; color: #636d7b; }
.approval button { min-height: 40px; font-size: 11px; }
.record-editor-actions { position: sticky; bottom: -18px; margin: 22px -18px -18px; padding: 14px 18px 16px; background: #fffffff5; border-top: 1px solid #e1e7f1; box-shadow: 0 -5px 15px #1a315705; z-index: 2; }
.record-editor-actions button { min-height: 44px; font-size: 12px; }
.record-editor-actions p { font-size: 11px; line-height: 1.7; margin: 10px 0 0; color: #626d7d; }
.photo-actions button { min-height: 46px; font-size: 11px; }
.photocard img { border-color: #e0e7f1; border-radius: 8px; }
.notice { color: #896a3d; background: #fff9ee; border-color: #f2e6d2; border-radius: 8px; font-size: 11px; }
.notice.info { color: #4f6ca7; background: #f1f5ff; border-color: #e1e9fd; }
.asset-work h3 { font-size: 13px; color: #5d6e86; }
.asset-work > .muted { font-size: 11px; }
.asset-work-item { font-size: 12px; border-color: #e8edf5; }
.asset-work-item small { font-size: 11px; color: #636d7b; }
.summary-metrics > div { background: #f8f9fc; border-color: #e7ecf4; border-left-color: #df7575; padding: 14px; }
.summary-metrics > div:nth-child(2) { border-left-color: #718fee; }
.summary-metrics > div:nth-child(3) { border-left-color: #73b597; }
.summary-metrics span { color: #65707d; font-size: 11px; }
.summary-metrics b { color: #344c70; font-size: 25px; font-weight: 650; }
.review-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #dfe7f7; background: #f0f4fd; border-radius: 10px; color: #586d90; font-size: 12px; line-height: 1.6; }
.review-context strong { color: #3c5d92; }
.review-context p { margin: 0; }
.filterbar { gap: 8px; margin-bottom: 18px; }
.filterbar input, .filterbar select { font-size: 12px; }
.statrow { gap: 14px; }
.stat, .card { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.stat { padding: 19px 21px; }
.stat span { font-size: 11px; color: #646e7d; }
.stat strong { color: #314967; font-size: 26px; font-weight: 650; }
.tablewrap { border-color: #e0e6ef; border-radius: 11px; box-shadow: var(--shadow); }
table { font-size: 12px; }
thead th { background: #f9fafc; border-color: #e8edf4; color: #656f7d; font-size: 11px; font-weight: 600; padding: 15px 17px; }
td { border-color: #edf0f6; padding: 16px 17px; color: #5c6d84; }
td.primarycell { color: #365783; font-weight: 650; }
td small { color: #656e79; font-size: 11px; }
tbody tr:hover { background: #f6f8ff; }
.card h3 { font-size: 15px; color: #3c526e; }
.card p { color: #637081; font-size: 12px; }
.asset-config-row { font-size: 12px; padding: 15px 0; border-color: #e8edf4; }
.settingsgrid.asset-config-grid { grid-template-columns: minmax(0, 1fr); }
.asset-config-grid > .card { min-width: 0; }
.asset-config-grid .asset-config-row { grid-template-columns: minmax(0, 1fr) minmax(135px, 180px) 44px 64px; }
.asset-config-row > input, .asset-config-row > select, .asset-config-check { min-width: 0; }
.asset-config-row > select { width: 100%; }
.asset-config-row > button { width: 100%; min-width: 0; padding-inline: 10px; }
.asset-config-row input[type=color] { width: 44px; min-height: 44px; }
.asset-config-check { flex-wrap: nowrap; line-height: 1.6; }
.asset-config-check input[type=checkbox] { flex: 0 0 20px; }
.asset-transparency { min-width: 0; }
.asset-transparency input[type=range] { min-width: 0; }
.asset-transparency output { flex-shrink: 0; }
.asset-config-actions > button { flex-shrink: 0; }
.asset-config-row.inactive { background: #f6f8fb; }
.asset-config-actions { background: #f5f7fbf7; border-color: #e3e9f2; }
.empty { color: #626e7d; font-size: 13px; line-height: 1.9; }
.empty b { color: #516881; font-size: 18px; font-weight: 600; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery .photocard { border: 1px solid #e0e7f0; padding: 0 0 15px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.gallery .photocard img { height: 185px; border: 0; border-bottom: 1px solid #e7edf5; border-radius: 0; }
.gallery .photocard strong { margin: 15px 16px 7px; color: #354f73; font-size: 13px; line-height: 1.7; font-weight: 650; overflow-wrap: anywhere; }
.gallery .photocard small { margin: 0 16px; color: #687b94; font-size: 11px; }
.gallery .photocard .linkbutton { margin: 10px 16px 0; min-height: 36px; padding: 6px 0; color: #526fa7; font-size: 11px; text-decoration: none; }
.gallery > .empty { grid-column: 1 / -1; }
.gallery .photocard:has(.photo-card-info) { padding-bottom: 0; }
.gallery .photo-preview { position: static; display: block; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #edf2f8; }
.gallery .photo-preview:focus-visible { outline-offset: -4px; }
.gallery .photo-preview img { display: block; transition: opacity .14s; }
.gallery .photo-preview:hover img { opacity: .9; }
.photo-card-info { padding: 16px; }
.gallery .photo-card-info > small { margin: 0 0 7px; font-size: 11px; color: #687b94; }
.gallery .photo-card-info > strong { margin: 0 0 7px; font-size: 13px; line-height: 1.6; }
.gallery .photo-card-info > p { margin: 0 0 8px; color: #6c7e96; font-size: 11px; }
.gallery .photo-card-info .linkbutton { position: static; width: auto; min-height: 40px; margin: 0; display: inline-flex; gap: 7px; }
.gallery .photo-card-info .linkbutton .icon { width: 13px; height: 13px; }
.page-description { margin: -4px 0 23px; color: #61728b; font-size: 12px; line-height: 1.9; }
.statrow > button.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; }
.statrow > button.stat strong { margin-top: 2px; font-variant-numeric: tabular-nums; }
.statrow > button.stat small { display: inline-flex; align-items: center; gap: 5px; color: #5c78a8; font-size: 10px; font-weight: 500; }
.statrow > button.stat small .icon { width: 12px; height: 12px; }
.record-list-tools { padding: 0 0 3px; }
.record-kind-tabs { display: flex; gap: 4px; align-items: center; margin: 0 0 15px; border-bottom: 1px solid #e2e8f2; }
.record-kind-tabs button { min-height: 44px; font-size: 12px; font-weight: 550; border: 0; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; background: transparent; color: #667991; padding: 10px 17px; margin-bottom: -1px; }
.record-kind-tabs button.on, .record-kind-tabs button[aria-pressed=true] { color: #315eea; border-bottom-color: #315eea; background: #eef3ff; }
.record-list-tools .filterbar { gap: 8px; }
.record-list-tools .library-search { flex: 1; max-width: 400px; }
.record-list-tools .library-search input { width: 100%; }
.record-list-tools .filterbar > select { min-width: 138px; }
.record-list-tools #resultcount { margin-left: auto; font-size: 11px; white-space: nowrap; }
.record-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 0 3px; margin-left: -3px; border: 0; border-radius: 4px; background: transparent; color: #315fba; font-size: 12px; font-weight: 650; }
.record-link:hover:not(:disabled) { background: #edf2ff; color: #234fc6; }
.record-link .icon { width: 12px; height: 12px; color: #6887c4; }
.record-kind { display: inline-flex; align-items: center; gap: 5px; margin-right: 9px; border-radius: 4px; padding: 3px 6px; font-size: 10px; font-weight: 500; vertical-align: middle; }
.record-kind.kind-conduit { background: #fcf0ef; color: #a95654; }
.record-kind.kind-cable { background: #edf3ff; color: #4c6fb6; }
.record-kind.kind-asset { background: #edf7f1; color: #407d5f; }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid #e0e8f6; background: #f2f6fd; border-radius: 15px; color: #7995bc; }
.empty-icon .icon { width: 27px; height: 27px; stroke-width: 1.3; }
.empty > p { margin: 7px auto 19px; max-width: 420px; font-size: 12px; line-height: 1.9; }
.empty > button { margin-top: 3px; font-size: 12px; }
.account-summary { display: grid; justify-items: center; padding: 12px 0 22px; margin-bottom: 19px; border-bottom: 1px solid #e8edf5; }
.account-summary .avatar { width: 58px; height: 58px; font-size: 22px; background: #edf2ff; color: #5775b0; margin-bottom: 15px; }
.account-summary h3 { margin: 0 0 7px; color: #365070; font-size: 19px; letter-spacing: -.4px; }
.account-summary p { margin: 0 0 12px; color: #6d809a; font-size: 12px; overflow-wrap: anywhere; }
.account-summary .pill { font-size: 11px; padding: 5px 8px; }
.settingsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-nav { display: flex; align-items: center; gap: 5px; margin: 0 0 20px; padding: 0 0 1px; border-bottom: 1px solid #e0e7f1; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; min-width: 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.settings-nav button { flex: 0 0 auto; min-height: 46px; padding: 11px 18px; border: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; background: transparent; color: #63758e; font-size: 12px; font-weight: 550; white-space: nowrap; }
.settings-nav button.active { color: #315eea; background: #edf2ff; border-bottom-color: #315eea; font-weight: 650; }
.settings-nav button:focus-visible { outline-offset: -3px; }
.settingsgrid.settings-tabbed { grid-template-columns: minmax(0, 1fr); }
.settingsgrid section[hidden] { display: none; }
.settingsgrid .card { padding: 23px; }
.settingsgrid .card > h3 { margin-bottom: 12px; color: #304964; font-size: 16px; }
.settingsgrid .card > p { font-size: 12px; line-height: 1.9; margin-bottom: 20px; }
.settingsgrid .card footer { flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #e9edf5; margin-top: 19px; }
.settingsgrid .card footer button { font-size: 11px; }
.progressline { border-color: #e9eef5; padding: 16px 0; gap: 16px; font-size: 12px; }
.progressline b { color: #4b627e; font-weight: 600; }
.progressline .muted { font-size: 11px; margin-top: 5px; color: #667991; }
.progressline button { min-height: 40px; font-size: 11px; padding: 8px 10px; }
.settingsgrid details { margin-bottom: 0; }
.settingsgrid details summary { color: #657ea2; font-size: 11px; }
.cards { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); align-items: start; }
.cards .card { padding: 23px; }
.cards .card > .primary { width: 100%; }
.trash-heading { padding-top: 28px; margin-bottom: 23px; }
.trash-heading h2 { font-size: 25px; color: #263b55; letter-spacing: -.7px; }
.trash-heading p { font-size: 12px; color: #687b94; line-height: 1.9; }
.trash-filter { margin-bottom: 17px; }
.trash-filter label { color: #687b94; font-size: 11px; }
.trash-count { color: #657991; font-size: 11px; margin-bottom: 16px; }
.trash-card h3 { font-size: 16px; }
.trash-evidence { font-size: 11px; }
.trash-actions { border-top: 1px solid #e8edf5; padding-top: 15px !important; }
.trash-actions button { font-size: 11px; }
.trash-empty { border-color: #e2e8f1; border-radius: 12px; }
.boot { color: #667b98; font-size: 13px; }
.boot::before { content: ""; display: block; margin: 0 auto 19px; width: 27px; height: 27px; border: 3px solid #e2eafb; border-top-color: #6485ed; border-radius: 50%; }
.markup-search { border-color: #dce4f2; border-radius: 12px; box-shadow: 0 9px 30px #24426321; }
.markup-search-header, .markup-search-hint { background: #f8faff; border-color: #e7edf6; }
.markup-search-header strong { font-size: 12px; color: #4a6387; }
.markup-search .markup-search-modes button { background: #f6f8fc; border-color: #e5ebf4; color: #647b9b; }
.markup-search .markup-search-modes button[aria-pressed=true] { background: #edf2ff; border-color: #d5e0ff; color: #315eea; }
.markup-search .markup-search-item:hover, .markup-search .markup-search-item:focus-visible { background: #f0f4ff; border-color: #dbe5ff; color: #315eea; }
.markup-search-item-meta, .markup-search-item-status, .markup-search-count { color: #627790; }

/* Sign-in is a step-based task, not a dense account settings form. */
.login { grid-template-columns: minmax(0, 1.05fr) minmax(420px, 1fr); background: #f9fafc; min-height: 100dvh; }
.login-story { background: #15233d; padding: clamp(38px, 6vw, 96px); isolation: isolate; }
.login-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#9bb3e109 1px, transparent 1px), linear-gradient(90deg, #9bb3e109 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.login-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 56%;
  height: 29%;
  right: -12%;
  bottom: 8%;
  border: 1px solid #80a6f726;
  border-radius: 5px;
  box-shadow: -44px -44px 0 -1px #15233d, -44px -44px 0 0 #80a6f71b, -88px -88px 0 -1px #15233d, -88px -88px 0 0 #80a6f710;
  transform: rotate(-14deg);
  pointer-events: none;
}
.login-story .brand { color: #fff; margin-bottom: 78px; font-size: 26px; padding: 0; }
.login-story .eyebrow { color: #92acfa; letter-spacing: 2px; font-size: 11px; }
.login-story h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.5; letter-spacing: -1.9px; font-weight: 650; margin: 21px 0; color: #f5f7ff; }
.login-story p { color: #a1b0cb; font-size: 13px; line-height: 2; }
.login-steps { gap: 37px; margin-top: 52px; color: #849de0; font-size: 11px; font-variant-numeric: tabular-nums; }
.login-steps > span { border-top: 1px solid #3a4c6a; padding-top: 14px; min-width: 65px; }
.login-steps b { color: #c8d3e8; font-size: 12px; margin-top: 10px; }
.loginbox { border: 0; background: transparent; box-shadow: none; width: 414px; max-width: calc(100% - 72px); border-radius: 0; padding: 0; margin: 42px 36px; }
.loginbox > .brand { font-size: 21px; color: #253b60; margin-bottom: 42px; padding: 0; }
.loginbox > .brand img { width: 28px; height: 28px; }
.loginbox > .eyebrow { font-size: 10px; color: #656f7c; letter-spacing: 1.5px; }
.loginbox h1 { font-size: 28px; line-height: 1.4; letter-spacing: -1px; margin: 10px 0 13px; font-weight: 700; }
.loginbox > p { font-size: 12px; line-height: 1.9; color: #626d7d; }
#password-login { margin-top: 26px; }
.auth-flow { min-width: 0; }
.auth-stepper, .auth-progress { display: flex; align-items: center; gap: 9px; padding: 0; margin: 0 0 23px; list-style: none; }
.auth-stepper > *, .auth-step { display: flex; align-items: center; gap: 7px; color: #666f7a; font-size: 11px; font-weight: 550; }
.auth-stepper > * + *::before { content: ""; width: 20px; height: 1px; background: #dee5ef; margin-right: 2px; }
.auth-stepper .active, .auth-stepper [aria-current=step], .auth-stepper .current, .auth-step.active { color: #315eea; font-weight: 650; }
.auth-stepper .done, .auth-step.done { color: #477663; }
.auth-stepper b, .auth-step b { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #dfe6f0; background: #fff; border-radius: 50%; font-size: 11px; }
.auth-stepper .active b, .auth-stepper [aria-current=step] b, .auth-stepper .current b, .auth-step.active b { color: #fff; background: #315eea; border-color: #315eea; }
.auth-intro { margin: 0 0 22px; }
.auth-intro h2, .auth-intro h3 { font-size: 18px; color: #314761; letter-spacing: -.45px; margin: 0 0 8px; }
.auth-intro p { font-size: 12px; line-height: 1.8; color: #646e7d; margin: 0; overflow-wrap: anywhere; }
.auth-intro strong { color: #5d6d88; font-weight: 600; }
#password-form { gap: 8px; }
.auth-intro .auth-recipient { color: #4268bc; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.auth-password-help { margin: -6px 0 16px; color: #647a98; font-size: 11px; line-height: 1.8; }
.auth-message[data-tone=error] { color: #a13f46; background: #fff1f0; border: 1px solid #f7dcd9; border-radius: 8px; padding: 11px 13px; }
#password-form label, .auth-field label { color: #5c6d83; font-size: 11px; font-weight: 600; }
#password-form input { min-height: 48px; margin: 0 0 11px; border-color: #dbe3ee; background: #fff; border-radius: 8px; font-size: 13px; padding: 13px 14px; }
#password-form input:focus { border-color: #7093f5; }
#password-form button[type=submit] { min-height: 48px; margin-top: 9px; font-size: 12px; border-radius: 8px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; min-width: 0; }
.auth-field small { font-size: 11px; line-height: 1.7; color: #646e7b; margin-top: -9px; }
.auth-input-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.auth-input-wrap input { width: 100%; padding-right: 60px !important; }
.auth-show-password, #password-form .auth-show-password { position: absolute; right: 5px; top: 3px; min-height: 42px; margin: 0; padding: 8px; border-color: transparent; background: transparent; color: #627083; font-size: 11px; }
.auth-show-password:hover:not(:disabled) { background: #f2f5fb; border-color: transparent; }
.auth-code, #password-form input.auth-code, #password-form #login-code { text-align: center; letter-spacing: .4em; font-size: 25px; font-weight: 550; font-variant-numeric: tabular-nums; min-height: 60px; padding-left: 22px; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.auth-actions button, #password-login > .linkbutton { font-size: 11px; min-height: 36px; margin: 0; text-decoration: none; color: #576f9b; padding: 7px 0; }
.auth-actions button:hover:not(:disabled), #password-login > .linkbutton:hover:not(:disabled) { color: #315eea; background: transparent; }
.auth-message, #password-message { font-size: 11px; line-height: 1.8; color: #5d6d85; margin: 14px 0 0; min-height: 20px; overflow-wrap: anywhere; }
.auth-message.error, .auth-message[data-kind=error], #password-message.error { color: #b44c4c; background: #fff1f0; border: 1px solid #f7dcd9; border-radius: 8px; padding: 11px 13px; }
.auth-message.success, .auth-message[data-kind=success] { color: #3c7761; }
.auth-success { background: #f0f8f4; border: 1px solid #dceee4; border-radius: 12px; padding: 22px; color: #377b5d; }
.auth-success h2, .auth-success h3 { font-size: 18px; margin: 0 0 9px; }
.auth-success p { font-size: 12px; line-height: 1.8; color: #577363; }
.auth-success button { width: 100%; margin-top: 14px; }
.google-signin { margin-top: 22px; border-color: #dbe3ee; border-radius: 8px; min-height: 47px; font-size: 12px; color: #5c6e87; gap: 12px; }
.google-signin:hover { text-decoration: none; background: #fff; border-color: #b6c8ec; }
.google-signin span { font-size: 17px; }
.loginbox .login-note { font-size: 11px; color: #666f7b; line-height: 1.8; margin-top: 14px; }
.loginchoices button { border-color: #e2e8f1; font-size: 12px; }
.loginchoices small { font-size: 11px; color: #656e7b; }

/* Sync explicitly distinguishes this device, server receipt and review. */
dialog { color: var(--ink); border-color: #dfe6ef; border-radius: 15px; box-shadow: 0 24px 100px #10294b29; width: 580px; }
dialog::backdrop { background: #16283e75; backdrop-filter: blur(4px); }
.modalhead { padding: 20px 24px; border-color: #e8edf4; }
.modalhead h2 { font-size: 19px; letter-spacing: -.5px; }
.modalhead button { min-height: 40px; padding: 8px; }
.modalbody { padding: 24px; font-size: 13px; }
.modalfoot { gap: 8px; }
.modalfoot button { font-size: 12px; }
.sync-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.sync-summary > div { flex: 1; }
.sync-summary > .pill { flex-shrink: 0; }
.sync-summary > div { background: #f6f8fc; border: 1px solid #e8edf4; border-radius: 9px; padding: 15px 12px; }
.sync-summary strong, .sync-summary b { display: block; font-size: 24px; color: #3a547b; margin-bottom: 7px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sync-summary span, .sync-summary small { color: #616e7f; font-size: 11px; }
.sync-status-list { display: flex; flex-direction: column; gap: 0; margin: 0 0 18px; }
.sync-record { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #edf0f6; font-size: 12px; color: #566b89; }
.sync-record strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.sync-record small, .sync-record p { color: #636d7a; font-size: 11px; margin: 0; line-height: 1.7; }
.sync-record button { min-height: 40px; font-size: 11px; flex-shrink: 0; }
.sync-explainer { border: 1px solid #e0e9fb; background: #f4f7ff; border-radius: 9px; padding: 14px 16px; color: #5b6d88; font-size: 11px; line-height: 1.9; margin-top: 16px; }
.sync-explainer strong { color: #526f9d; }
.sync-explainer p { margin: 4px 0; }
.sync-summary strong small { display: inline; color: #6e819e; font-size: 12px; font-weight: 450; margin-left: 6px; }
.sync-record b, .sync-record small { display: block; }
.sync-record b { color: #4c6383; margin-bottom: 6px; }
.sync-record small + small { margin-top: 3px; }
.sync-empty { padding: 15px; background: #f1f8f5; color: #447860; border: 1px solid #e3f0e9; border-radius: 8px; font-size: 12px; text-align: center; }
#toast { background: #213751; color: #edf4ff; font-size: 12px; line-height: 1.7; border: 1px solid #44617e; border-radius: 11px; padding: 13px 20px; box-shadow: 0 10px 36px #21375130; }

@media(min-width:1600px) {
  .layout:not(.plan-compact) { grid-template-columns: 232px minmax(0, 1fr); }
  .list-content { padding-inline: 42px; }
  .pagehead { padding-inline: 42px; }
  .plan-compact .workspace { grid-template-columns: minmax(0, 1fr) 326px; }
  .plan-compact .workspace.panel-hidden { grid-template-columns: minmax(0, 1fr); }
  .library-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media(min-width:1480px) {
  .settingsgrid.asset-config-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media(min-width:901px) and (max-height:800px) {
  .workspace-heading { padding-top: 20px; padding-bottom: 18px; }
  .workspace-heading h2 { font-size: 25px; }
  .workspace-heading .eyebrow { display: none; }
  .workspace-overview { margin-bottom: 18px; }
  .overview-stat { min-height: 95px; padding-block: 13px; gap: 6px; }
  .overview-stat strong { font-size: 25px; }
  .projects-header { margin-bottom: 12px; }
  .projects-header p { margin-block: 8px; }
  .project-card { padding: 19px; }
  .project-card-head .project-symbol { width: 34px; height: 34px; border-radius: 9px; }
  .project-card-head .project-symbol .icon { width: 19px; height: 19px; }
  .project-title { margin: 15px 0 18px; }
  .project-title h2 { font-size: 19px; }
  .project-counts { padding-bottom: 14px; }
  .project-counts b { font-size: 23px; margin-bottom: 4px; }
  .project-actions { padding-top: 14px; }
  .workspace-footnote { margin-top: 13px; }
}
@media(max-width:1150px) {
  .sidebar .sidefoot { display: none; }
  .sidebar .nav button { display: flex; flex-direction: column; gap: 5px; min-height: 53px; padding: 7px 3px; }
  .sidebar .nav .navtext { display: block; font-size: 9px; line-height: 1.25; white-space: nowrap; max-width: 61px; }
  .layout { grid-template-columns: 74px minmax(0, 1fr); }
  .sidebar { padding: 23px 8px 15px; }
  .sidebar .brand { padding: 0 12px 25px; }
  .sidebar .nav-section { display: none; }
  .sidebar .nav-group { margin-bottom: 11px; }
  .nav button { padding: 13px 8px; }
  .topbar { padding-inline: 24px; }
  .top-context > span { display: none; }
  .pagehead { padding: 26px 24px 20px; }
  .list-content { padding: 0 24px 28px; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 17px; }
  .plan-compact .workspace { grid-template-columns: minmax(0, 1fr) 288px; }
  .plan-compact .workspace.panel-hidden { grid-template-columns: minmax(0, 1fr); }
  .plan-compact .top-context { gap: 7px; }
  .plan-compact .drawtop { gap: 7px; }
  .plan-compact .toolbar button { padding-inline: 8px; }
  .layer-switch button { padding-inline: 10px; }
  .library-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 15px; }
}
@media(max-width:900px) {
  .settingsgrid { grid-template-columns: minmax(0, 1fr); }
  .top-context > .icon { display: none; }
  .topright { gap: 7px; }
  .pagehead { padding: 23px 20px 18px; }
  .list-content { padding-inline: 20px; }
  .workspace-overview { gap: 10px; margin-bottom: 26px; }
  .overview-stat { padding: 16px; min-height: 100px; }
  .overview-stat strong { font-size: 25px; }
  .overview-stat span { font-size: 11px; }
  .project-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
  .project-card { padding: 20px; }
  .library-head { gap: 16px; flex-wrap: wrap; }
  .library-search { min-width: 220px; flex: 1; max-width: 360px; }
  .plan-compact .workspace { grid-template-columns: minmax(0, 1fr); }
  .plan-compact .rightpanel { width: 322px; max-width: 93%; box-shadow: -8px 0 32px #25446a1a; }
  .plan-compact .drawing-nav { top: 119px; }
  .login { grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); }
  .login-story { padding: 36px; }
  .login-story .brand { margin-bottom: 52px; }
  .login-story h2 { font-size: 31px; letter-spacing: -1.1px; }
  .login-story p { font-size: 12px; }
  .login-steps { gap: 20px; }
  .loginbox { width: 350px; margin-inline: 28px; max-width: calc(100% - 56px); }
}
@media(max-width:700px) {
  .workspace-heading h2 { font-size: 23px; }
  .workspace-date { display: none; }
  .workspace-heading h1 { font-size: 25px; }
  .workspace-heading p { font-size: 12px; }
  .workspace-overview { gap: 8px; }
  .overview-stat { padding: 15px 12px; }
  .overview-stat strong { font-size: 23px; }
  .overview-stat span { font-size: 11px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-title h2 { font-size: 19px; }
  .project-actions button { flex: 1; }
  .library-head h2 { font-size: 20px; }
  .library-search { max-width: none; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sheet-info { padding: 14px; }
  .sheet-meta { font-size: 11px; gap: 7px; }
  .login { display: flex; flex-direction: column; align-items: center; }
  .login-story { width: 100%; padding: 27px 30px; }
  .login-story .brand { margin-bottom: 21px; font-size: 22px; }
  .login-story .eyebrow { font-size: 9px; }
  .login-story h2 { font-size: 25px; line-height: 1.5; letter-spacing: -.7px; margin: 10px 0 0; }
  .login-story p, .login-steps { display: none; }
  .loginbox { margin: 30px; max-width: calc(100% - 60px); width: 390px; }
  .loginbox > .brand { display: none; }
  .loginbox h1 { font-size: 25px; }
}
@media(max-width:600px) {
  .asset-config-grid .asset-config-row { grid-template-columns: minmax(0, 1fr) 44px 64px; gap: 9px; }
  .asset-config-row > input[data-ac-field=name] { grid-column: 1 / -1; }
  .asset-config-check { font-size: 11px; }
  .asset-transparency { font-size: 11px; gap: 9px; }
  .settings-nav { gap: 3px; margin-bottom: 16px; }
  .settings-nav button { padding-inline: 14px; font-size: 11px; min-height: 46px; }
  .record-list-tools .library-search { flex-basis: 100%; max-width: none; }
  .record-list-tools .filterbar > select { min-width: 0; flex: 1; }
  .record-kind-tabs { gap: 3px; }
  .record-kind-tabs button { padding-inline: 13px; font-size: 11px; }
  .settingsgrid .card { padding: 18px; }
  .settingsgrid .card footer button { flex: 1 1 auto; }
  .progressline { font-size: 11px; gap: 10px; }
  .trash-heading { padding-top: 20px; }
  .trash-heading h2 { font-size: 22px; }
  .gallery .photocard img { height: 200px; }
  .layout, .layout.plan-compact { grid-template-columns: minmax(0, 1fr); }
  .layout .main { padding-bottom: 73px; }
  .layout .sidebar, .layout.plan-compact .sidebar {
    position: fixed;
    inset: auto 0 0;
    height: 73px;
    padding: 6px 5px max(6px, env(safe-area-inset-bottom));
    display: block;
    background: #fffffffa;
    border: 0;
    border-top: 1px solid #dfe6f0;
    z-index: 20;
  }
  .sidebar .brand, .sidebar .sidefoot, .sidebar .nav-section { display: none; }
  .sidebar .nav { display: flex; flex-direction: row; gap: 3px; overflow-x: auto; height: 100%; scrollbar-width: none; }
  .sidebar .nav::-webkit-scrollbar { display: none; }
  .sidebar .nav-group { display: contents; }
  .sidebar .nav button, .plan-compact .sidebar .nav button { display: flex; flex-direction: column; flex: 0 0 64px; min-height: 56px; padding: 7px 3px; gap: 6px; font-size: 11px; }
  .sidebar .nav .navtext, .plan-compact .sidebar .nav .navtext { display: block; font-size: 10px; max-width: 61px; white-space: nowrap; }
  .sidebar .nav small { display: none; }
  .topbar, .plan-compact .topbar { height: 58px; padding: 0 14px; gap: 5px; }
  .topbar .projectpick, .plan-compact .projectpick { max-width: 170px; min-width: 0; font-size: 12px; }
  .topbar .account { display: flex; padding: 5px; }
  .topbar .account .username { display: none; }
  .topright { gap: 3px; }
  .topright > button { font-size: 11px; padding: 8px; }
  .topright .connection { display: none; }
  .topbar .avatar { width: 29px; height: 29px; }
  .pagehead { padding: 22px 18px 17px; }
  .pagehead h1 { font-size: 22px; }
  .list-content { padding: 0 18px 24px; }
  .workspace-heading { padding-top: 2px; padding-bottom: 20px; }
  .workspace-heading h1 { font-size: 23px; letter-spacing: -.8px; }
  .workspace-overview { margin-bottom: 25px; }
  .overview-stat { padding: 14px 11px; min-height: 89px; gap: 10px; border-radius: 10px; }
  .overview-stat strong { font-size: 23px; }
  .projects-header { margin-bottom: 14px; }
  .projects-header h2 { font-size: 15px; }
  .project-card { padding: 20px; }
  .project-actions button { font-size: 11px; padding-inline: 10px; }
  .project-counts span + span { padding-left: 12px; }
  .library-head { margin-bottom: 20px; }
  .library-head h2 { font-size: 20px; }
  .library-search { flex-basis: 100%; }
  .library-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 17px; gap: 5px; }
  .library-filters button { flex-shrink: 0; font-size: 11px; padding-inline: 12px; }
  .library-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sheet-preview { aspect-ratio: 2.25; }
  .sheet-preview > svg { max-height: 105px; }
  .sheet-info { padding: 17px; }
  .sheet-info h3 { font-size: 15px; }
  .sheet-meta { gap: 16px; font-size: 11px; }
  .plan-compact .workspace { margin: 0 5px 5px; border-radius: 9px; }
  .plan-compact .drawtop { padding: 5px 7px; gap: 5px; min-height: 52px; }
  .plan-compact .drawtop select { min-width: 100px; min-height: 38px; font-size: 12px; }
  .plan-compact .drawtop .drawing-find { min-height: 38px; }
  .layer-switch { flex: 1; }
  .layer-switch button { min-height: 36px; font-size: 11px; padding: 7px; }
  .plan-compact .toolbar { padding: 4px 6px; gap: 3px; }
  .plan-compact .toolbar button { min-height: 38px; padding: 7px; }
  .plan-compact .drawing-nav { top: 159px; left: 9px; }
  .plan-compact .rightpanel { width: 100%; max-width: 100%; }
  .selection-tools { max-width: calc(100% - 14px); padding: 9px 10px; bottom: 36px; }
  .selection-tools button { min-height: 42px; font-size: 11px; padding-inline: 9px; }
  .selection-caption strong { font-size: 12px; }
  .selection-caption span { font-size: 11px; }
  .filterbar > input { width: 100%; }
  .filterbar > select { flex: 1; }
  .card { padding: 17px; }
  .stat { padding: 15px; }
  .stat strong { font-size: 23px; }
  .warningbar { padding: 6px 14px; font-size: 11px; }
  dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 30px); border-radius: 13px; }
  .modalhead { padding: 16px 18px; }
  .modalhead h2 { font-size: 17px; }
  .modalbody { padding: 18px; }
  .modalfoot { flex-wrap: wrap; }
  .modalfoot button { flex: 1; }
  .sync-summary { gap: 7px; }
  .sync-summary > div { padding: 13px 9px; }
  .sync-summary strong, .sync-summary b { font-size: 22px; }
  .sync-record { gap: 10px; }
  #toast { bottom: 87px; width: max-content; max-width: calc(100% - 30px); }
}
@media(pointer:coarse) {
  .plan-compact .toolbar button, .plan-compact .drawtop button, .layer-switch button,
  .plan-compact .topbar button, .selection-tools button, .library-filters button,
  .auth-actions button, #password-login > .linkbutton { min-height: 44px; }
  .style-tools input[type=color], .style-tools input[type=number], .style-tools select { min-height: 44px; }
  .plan-compact .drawing-nav { top: 130px; }
}
@media(pointer:coarse) and (max-width:600px) { .plan-compact .drawing-nav { top: 179px; } }
@media(prefers-reduced-motion:reduce) { button { transition: none; } }
