@font-face {
  font-family: "Sarasa UI SC";
  src: url("/fonts/sarasa-ui-sc-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Sarasa UI SC";
  src: url("/fonts/sarasa-ui-sc-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #18362c;
  --ink-muted: #53675e;
  --accent: #174d3d;
  --accent-hover: #0e3b2e;
  --paper: #f7f8f1;
  --white: #fffef9;
  --rule: #dbe2d6;
  --mist: #eef2e8;
  --green: #d9e8c9;
  font-family: "Sarasa UI SC", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button, a.button, label.button { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 3px solid #518264; outline-offset: 3px; }
svg { width: 1.2em; height: 1.2em; display: block; flex: none; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
h1, h2, h3, p { margin: 0; }
.topbar {
  height: 75px; padding: 0 clamp(20px, 3vw, 44px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--rule); gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; line-height: 1.15; font-size: 1.23rem; font-weight: 800; white-space: nowrap; }
.brand small { display: block; color: var(--ink-muted); font-size: .72rem; letter-spacing: .1em; font-weight: 600; margin-top: 4px; }
.brand-icon { display: block; width: 47px; height: 47px; object-fit: contain; flex: none; }
.top-actions, .action-row { display: flex; align-items: center; gap: 8px; }
.button, .icon-button {
  border-radius: 11px; min-height: 43px; padding: 9px 13px; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; font-weight: 650;
  font-size: .875rem; line-height: 1.3; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.white { background: var(--white); border-color: var(--rule); }
.subtle, .icon-button { background: transparent; }
.subtle:hover:not(:disabled), .white:hover:not(:disabled), .icon-button:hover { background: var(--mist); }
.top-actions .primary { padding-inline: 17px; }
.workspace {
  width: 100%; max-width: 1700px; margin: 0 auto; position: relative; padding: 20px clamp(20px, 3vw, 44px) 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, 365px); gap: 17px;
  height: calc(100dvh - 75px); min-height: 460px;
}
.map-card { position: relative; isolation: isolate; border: 1px solid #cfdacf; border-radius: 18px; background: #dcefdc; overflow: hidden; }
.map, .demo-canvas, .marker-overlay, .amap-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-canvas { touch-action: none; cursor: grab; }
.demo-canvas:active { cursor: grabbing; }
.map-card:has(.pick-bar:not([hidden])) .demo-canvas { cursor: crosshair; }
.marker-overlay { pointer-events: none; overflow: hidden; }
.marker-overlay > * { position: absolute; transform: translate(-50%, -50%); }
.map-title, .map-legend, .map-status, .map-tools, .pick-bar { position: absolute; z-index: 20; }
.map-title { left: 17px; top: 17px; pointer-events: none; background: var(--white); border: 1px solid #d9e1d6; border-radius: 13px; box-shadow: 0 5px 18px #253e2b14; padding: 11px 16px; max-width: calc(100% - 96px); }
.map-title > span { font-size: .84rem; font-weight: 650; color: var(--ink-muted); overflow-wrap: anywhere; }
.map-title > h1 { margin-top: 3px; font-size: clamp(1.15rem, 2.5vw, 1.55rem); line-height: 1.2; overflow-wrap: anywhere; }
.map-title > p { margin-top: 5px; color: var(--ink-muted); font-size: .75rem; }
.map-density {
  pointer-events: auto; display: block; max-width: 100%; margin-top: 6px; padding: 5px 8px;
  border: 0; border-radius: 7px; background: var(--mist); color: var(--accent);
  font-size: .75rem; font-weight: 700;
}
.map-density:hover { background: var(--green); }
.map-tools { top: 17px; right: 17px; display: grid; gap: 9px; }
.north, .tool-group, .map-legend { background: var(--white); border: 1px solid #d9e1d6; box-shadow: 0 5px 18px #253e2b14; border-radius: 11px; }
.north { height: 47px; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--accent); }
.north > span:first-child { font-weight: 750; font-size: .72rem; line-height: 1; }
.north svg { width: 16px; height: 16px; }
.tool-group { display: flex; flex-direction: column; overflow: hidden; }
.tool-group button { display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); width: 43px; min-height: 42px; }
.tool-group button + button { border-top: 1px solid var(--rule); }
.tool-group button:hover, .tool-group button[aria-pressed="true"] { background: var(--green); }
.tool-group button:focus-visible { outline-offset: -4px; }
.map-legend { left: 17px; bottom: 17px; padding: 7px 10px; font-size: .77rem; display: flex; align-items: center; gap: 6px; }
.legend-dot, .legend-location { width: 9px; height: 9px; border-radius: 50%; background: #165c46; }
.legend-location { background: #2479ba; margin-left: 7px; }
.campus-overview {
  position: absolute; z-index: 22; left: 17px; bottom: 54px;
  color: var(--ink); width: max-content;
}
.campus-overview summary {
  display: flex; align-items: center; gap: 6px; width: max-content; min-height: 44px;
  padding: 7px 12px; background: var(--white); border: 1px solid var(--rule);
  border-radius: 11px; list-style: none; cursor: pointer; font-weight: 750; font-size: .875rem;
  box-shadow: 0 5px 18px #253e2b20;
}
.campus-overview summary::-webkit-details-marker { display: none; }
.campus-overview[open] summary { background: var(--accent); color: #fff; }
.overview-content {
  position: absolute; left: 0; bottom: 51px; width: min(254px, calc(100vw - 28px)); padding: 9px;
  max-height: min(77dvh, 360px); overflow: auto; border: 1px solid var(--rule);
  border-radius: 14px; background: var(--white); box-shadow: 0 6px 20px #253e2b36;
}
.overview-content canvas { display: block; width: 100%; max-height: 244px; object-fit: contain; border-radius: 8px; background: #f3f8ee; }
.overview-key { display: flex; flex-wrap: wrap; column-gap: 9px; row-gap: 4px; padding: 8px 0; font-size: .73rem; }
.overview-key span { display: inline-flex; align-items: center; gap: 3px; }
.overview-key i { width: 15px; border-top: 2px solid #16533f; }
.overview-key span:last-child i { border-top-style: dashed; border-color: #487854; }
.overview-content .button { width: 100%; }
.overview-content p { margin-top: 5px; color: var(--ink-muted); font-size: .68rem; }
.overview-content a { color: inherit; }
.workspace:has(.pick-bar:not([hidden])) .campus-overview { display: none; }
.map-status, .pick-bar {
  left: 50%; transform: translateX(-50%); bottom: 53px; width: max-content; max-width: calc(100% - 34px);
  background: #183e32; color: #fff; border: 1px solid #ffffff32; padding: 9px 12px;
  border-radius: 13px; font-size: .84rem; box-shadow: 0 5px 18px #253e2b25;
}
.pick-bar { display: flex; align-items: center; gap: 7px; z-index: 24; }
.pick-bar > p { padding: 0 3px; }
.pick-bar > .subtle { color: white; }
.pick-bar > .subtle:hover { background: #ffffff22; }
.pick-bar .button { min-height: 38px; padding: 7px 9px; }
.map-card:has(.pick-bar:not([hidden])) .map-status { bottom: 115px; }
.photo-marker { position: relative; width: 1px; height: 1px; pointer-events: none; }
.map-pin {
  --pin-frame: #fff;
  position: absolute; left: 0; bottom: var(--photo-pin-gap, 9px); transform: translateX(-50%);
  pointer-events: auto; display: grid; place-items: center;
  width: var(--photo-pin-size, 0px); height: var(--photo-pin-size, 0px);
  border: 2px solid var(--pin-frame); border-radius: 8px; background: #24563f; color: white; padding: 0;
  box-shadow: 0 3px 8px #193b355c; font-size: .8rem; font-weight: 800;
}
.map-pin::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -10px; transform: translateX(-50%);
  border: 6px solid transparent; border-top: 8px solid var(--pin-frame); border-bottom: 0;
}
.map-pin:hover { box-shadow: 0 3px 9px #143a2980; }
.map-pin.selected { --pin-frame: #f4fa36; border-width: 3px; box-shadow: 0 4px 10px #143a296b; }
.map-pin svg { width: min(18px, calc(var(--photo-pin-size, 0px) / 2)); height: auto; }
.pin-preview { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; z-index: 1; }
.pin-count { position: absolute; z-index: 2; top: 1px; right: 1px; min-width: 16px; padding: 2px 3px; border-radius: 999px; background: var(--accent); color: #fff; border: 1px solid white; line-height: 1; font-size: .67rem; }
.pin-fallback { pointer-events: none; }
.pin-direction { display: block; position: absolute; left: 0; top: 0; pointer-events: none; }
.pin-direction::after { content: ""; position: absolute; width: 11px; height: 11px; left: -8px; top: -8px; background: #14543c; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px #18453064; }
.pin-cone {
  position: absolute; width: 88px; height: 88px; left: -44px; top: -44px; border-radius: 50%;
  background: conic-gradient(from -24deg, #f5fb3699 0deg 48deg, transparent 48deg);
  transform: rotate(var(--bearing));
}
.live-pin, .draft-pin { pointer-events: none; display: grid; place-items: center; border: 2px solid #fff; width: 26px; height: 26px; border-radius: 50%; color: white; box-shadow: 0 0 0 3px #ffffff8a; }
.live-pin { background: #2479ba; width: 25px; height: 25px; }
.live-pin span { font-size: 12px; }
.draft-pin { background: #9a6031; width: 30px; height: 30px; }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; box-shadow: 0 3px 16px #26433508; }
.pane { padding: 21px 18px; }
.pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 18px; }
.pane-heading h2 { font-size: 1.3rem; letter-spacing: .025em; }
.pane-heading p { color: var(--ink-muted); font-size: .875rem; margin-top: 5px; }
.heading-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--mist); color: var(--accent); font-size: 18px; }
.icon-button { width: 43px; padding: 6px; }
.avatar { display: block; width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--mist); }
#account-open { border-color: var(--rule); background: var(--white); border-radius: 50%; }
#account-open:has(img:not([hidden])) { padding: 2px; }
.account-forms, .account-forms form { display: grid; gap: 11px; }
.account-forms form { padding: 12px; border: 1px solid var(--rule); border-radius: 12px; }
.account-forms input[type="file"] { padding-block: 7px; }
.profile-image .avatar { width: 64px; height: 64px; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--mist); }
.account-switch .button { background: transparent; border-color: transparent; }
.account-switch .button[aria-pressed="true"] { background: white; border-color: var(--rule); }
.account-legacy summary { cursor: pointer; padding: 8px 4px; font-weight: 600; }
.account-legacy form { margin-top: 8px; }
.my-photos { padding: 12px; border: 1px solid var(--rule); border-radius: 12px; }
.my-photos summary, .time-controls summary { cursor: pointer; font-weight: 650; }
.my-photos summary .help { margin-inline-start: 4px; font-weight: 400; }
.my-photos > :not(summary) { margin-top: 8px; }
.detail-author { display: flex; align-items: center; min-width: 0; gap: 6px; }
.detail-author .avatar { width: 22px; height: 22px; }
.delete-photo { display: inline-flex; margin-top: 12px; color: #9e2a31; border-color: #ecd2d4; background: #fff7f7; }
.delete-photo:hover { background: #f9e9e9; }
.empty { padding: 29px 12px 25px; border: 1px dashed #cbd8c9; border-radius: 14px; display: grid; text-align: center; justify-items: center; background: #f6f8ef; gap: 10px; }
.empty-icon { background: #e2ecd9; color: var(--accent); width: 53px; height: 53px; border-radius: 18px; font-size: 27px; }
.empty h3 { font-size: 1rem; margin-top: 5px; }
.empty p, .help { color: var(--ink-muted); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.empty .button { margin-top: 5px; }
.feed-items { display: grid; gap: 8px; }
.feed-search { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink-muted); background: #f4f9f5; }
.feed-search:focus-within { outline: 2px solid #518264; outline-offset: 2px; }
.feed-search input { background: transparent; outline: none; min-height: 44px; min-width: 0; width: 100%; border: 0; color: var(--ink); }
.feed-no-matches { padding: 12px 4px; }
.time-controls { margin-bottom: 12px; border: 1px solid var(--rule); border-radius: 12px; background: #f4f9f5; }
.time-controls summary { padding: 11px; overflow-wrap: anywhere; }
.time-controls summary [data-icon] { margin-inline: 4px 6px; vertical-align: middle; }
#time-form, #time-range-fields { display: grid; gap: 10px; }
#time-form { padding: 0 11px 11px; }
#time-form .action-row { flex-wrap: wrap; }
#time-status:empty { display: none; }
#map-time { max-width: min(185px, 54vw); white-space: normal; text-align: left; }
.photo-like { margin-top: 10px; border-radius: 100px; }
.photo-like[aria-pressed="true"] { color: #882842; background: #fff0f3; border-color: #efbdc8; }
.photo-like[aria-pressed="true"] svg { fill: currentColor; }
.photo-row { width: 100%; display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 12px; text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 7px; color: var(--ink); }
.photo-row:hover { background: var(--mist); border-color: #aac0ae; }
.photo-row img { width: 68px; height: 56px; border-radius: 7px; object-fit: cover; background: var(--mist); }
.photo-row strong, .photo-row small { display: block; overflow-wrap: anywhere; }
.photo-row strong { font-size: .93rem; }
.photo-row small { font-size: .8rem; margin-top: 3px; color: var(--ink-muted); }
.detail-image { width: 100%; max-height: min(46dvh, 410px); object-fit: contain; display: block; border-radius: 12px; background: #ebefe5; }
.detail-title { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 9px; font-size: 1.16rem; overflow-wrap: anywhere; }
.detail-title > span:first-child { align-self: flex-start; margin-top: .1em; color: var(--accent); }
.detail-meta { display: grid; gap: 8px; margin: 13px 0 0; font-size: .875rem; }
.detail-field { display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); gap: 9px; }
.detail-field dt > span:first-child:not(.detail-label), .detail-time-short { display: none; }
.detail-meta dt { color: var(--ink-muted); }
.detail-meta dd { margin: 0; overflow-wrap: anywhere; }
.siblings { margin-top: 19px; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.siblings h3 { font-size: .9rem; margin-bottom: 2px; }
.detail-message { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--mist); }
.detail-message h4 { margin: 0 0 5px; font-size: .875rem; color: var(--accent); }
.detail-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; line-height: 1.55; }
.media-stage { min-height: 110px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--mist); }
.media-stage img, .media-stage video { width: 100%; max-height: 240px; object-fit: contain; background: #e8eee2; }
#media-empty { display: grid; justify-items: center; gap: 7px; color: var(--ink-muted); font-size: .875rem; }
#media-empty svg { width: 26px; height: 26px; }
form > .action-row { margin: 9px 0 5px; }
.file-button { cursor: pointer; position: relative; }
.file-button:focus-within { outline: 3px solid #518264; outline-offset: 3px; }
.file-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.fields { display: grid; gap: 13px; margin: 13px 0; }
.field { min-width: 0; display: grid; gap: 6px; margin: 0; }
.label { font-weight: 750; font-size: .92rem; }
.label small { color: var(--ink-muted); font-weight: 500; }
.field > :is(input:not([type="range"]), textarea, select) { min-height: 43px; min-width: 0; width: 100%; border-radius: 9px; padding: 7px 10px; border: 1px solid #cbd7c8; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #63746c; }
.direction { padding: 4px 0 0; border: 0; }
.direction legend { padding: 0; }
.choice { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
.choice > label, .check { display: flex; align-items: center; min-height: 31px; gap: 6px; font-size: .87rem; }
input[type="radio"], input[type="checkbox"], input[type="range"] { accent-color: var(--accent); margin: 0; }
input[type="radio"], input[type="checkbox"] { width: 17px; height: 17px; }
.heading-controls { display: grid; grid-template-columns: 35px minmax(0,1fr) 72px; align-items: center; gap: 8px; font-size: .82rem; }
.direction-dial { display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--mist); width: 34px; height: 34px; }
.public-note { border-top: 1px solid var(--rule); padding-top: 11px; }
.publish { width: 100%; margin-top: 10px; }
.submit-status { margin-top: 5px; color: #88421d; font-size: .875rem; line-height: 1.5; }
.notice {
  position: fixed; z-index: 40; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 12px;
  bottom: 15px; left: 50%; transform: translateX(-50%); color: white; background: #183e32; box-shadow: 0 5px 18px #253e2b40; font-size: .875rem; text-align: center; pointer-events: none;
}
.mobile-nav, .quick-record, .detail-actions, .mobile-only { display: none; }

@media (max-width: 760px) {
  :root {
    --mobile-header: calc(115px + env(safe-area-inset-top));
    --ink: #092c22;
    --accent: #124f39;
    --mist: #e7f3eb;
    --yellow: #f4fa36;
  }
  .topbar {
    height: var(--mobile-header); padding: env(safe-area-inset-top) 13px 5px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px 46px; gap: 0 8px;
    align-items: center; border: 0; background: linear-gradient(130deg, #f0faf5, #dcefe4);
  }
  .brand { min-width: 0; font-size: clamp(1.12rem, 5.8vw, 1.75rem); gap: 5px; letter-spacing: -.02em; }
  .brand > span { min-width: 0; }
  .brand small { font-size: clamp(.7rem, 3vw, .82rem); letter-spacing: 0; margin-top: 3px; color: #345749; overflow: hidden; text-overflow: ellipsis; }
  .brand-icon { width: 43px; height: 43px; }
  .top-actions { gap: 6px; }
  .top-actions #record { display: none; }
  .top-actions .icon-button, .top-actions #refresh {
    width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: #ffffffbe; font-size: 18px;
  }
  #refresh > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-nav {
    grid-column: 1 / -1; display: flex; gap: 3px; align-items: center; justify-self: start;
    padding: 3px; border-radius: 100px; background: #f5fcf8d6;
  }
  .mobile-nav .button { padding: 6px 13px; min-height: 40px; border-radius: 100px; background: transparent; font-size: .93rem; font-weight: 750; }
  .mobile-nav .button[aria-pressed="true"] { background: var(--accent); color: #fff; }
  .workspace { display: block; height: calc(100dvh - var(--mobile-header)); min-height: 0; padding: 0; }
  .map-card { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .map-title { left: 11px; top: 11px; padding: 7px 10px; background: #f8fff6ef; border-color: #d7ebdc; }
  .map-title > h1 { font-size: 1rem; margin: 1px 0 0; }
  .map-title > span, .map-title > p { font-size: .71rem; }
  .map-title > p { margin-top: 3px; }
  .map-tools { right: 12px; top: 13px; gap: 7px; }
  .map-tools .north { display: none; }
  .map-tools .map-shortcuts { background: none; border: 0; box-shadow: none; overflow: visible; gap: 6px; }
  .map-tools .map-shortcuts > button {
    background: #fafffc; border: 0; border-radius: 14px; box-shadow: 0 4px 12px #174d3d24;
  }
  .map-tools button { width: 44px; min-height: 44px; }
  .map-tools button svg { width: 22px; height: 22px; }
  .map-tools #compass[aria-pressed="true"] { background: var(--yellow); }
  .map-legend { left: 11px; bottom: max(11px, env(safe-area-inset-bottom)); }
  .campus-overview { left: 11px; bottom: calc(max(11px, env(safe-area-inset-bottom)) + 36px); }
  .workspace:has(.panel.open) .campus-overview { display: none; }
  .quick-record {
    display: grid; place-items: center; position: absolute; z-index: 25; right: 12px;
    bottom: calc(max(var(--sheet-height, 0px), env(safe-area-inset-bottom)) + 13px);
    width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%;
    background: var(--yellow); color: var(--ink); box-shadow: 0 7px 16px #2f551f4a;
  }
  .quick-record svg { width: 31px; height: 31px; stroke-width: 2.15; }
  .quick-record:active { background: #eaf226; transform: scale(.96); }
  .workspace:has(.panel.open:not([data-view="detail"])) .quick-record,
  .workspace:has(.panel.open.expanded) .quick-record,
  .workspace:has(.pick-bar:not([hidden])) .quick-record { display: none; }
  .notice {
    left: 12px; transform: none; max-width: calc(100% - 92px);
    bottom: min(calc(max(60px, var(--sheet-height, 0px)) + 12px), calc(100dvh - var(--mobile-header) - 48px));
  }
  .panel {
    display: none; position: absolute; z-index: 30; bottom: 0; left: 0; right: 0;
    max-height: min(72dvh, calc(100% - 44px)); border-radius: 24px 24px 0 0; border: 0;
    padding: 0 0 env(safe-area-inset-bottom); box-shadow: 0 -6px 26px #153c2829; background: #fff;
  }
  .panel.open { display: block; }
  .panel::before { content: ""; width: 33px; height: 4px; border-radius: 10px; background: #bdc9c5; display: block; margin: 8px auto 0; }
  .pane { padding: 11px 14px 18px; }
  .mobile-only { display: inline-flex; }
  .pane-heading .heading-icon { display: none; }
  #detail { padding: 9px 12px 10px; }
  #detail > .pane-heading { display: none; }
  .detail-card { display: grid; grid-template-columns: minmax(98px, 1.05fr) minmax(0, 1fr); align-items: start; gap: 10px; }
  .detail-image { aspect-ratio: 1.55; object-fit: cover; border-radius: 12px; align-self: center; }
  .detail-title { margin: 1px 0 5px; gap: 4px; font-size: clamp(.94rem, 4.1vw, 1.16rem); line-height: 1.2; }
  .detail-title > span:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .detail-meta { margin: 0; gap: 5px; font-size: .83rem; line-height: 1.25; }
  .detail-field { grid-template-columns: 16px minmax(0, 1fr); gap: 5px; align-items: center; }
  .detail-author .avatar { width: 18px; height: 18px; }
  .detail-field dt { display: flex; line-height: 1; }
  .detail-field dt > span:first-child:not(.detail-label) { display: inline-flex; }
  .detail-field .detail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .detail-time-long, .detail-extra { display: none; }
  .detail-time-short { display: inline; }
  .panel:not(.expanded) .detail-field:nth-child(3) dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; justify-content: space-between; }
  .detail-actions .button { padding-inline: 10px; flex: 1; border-radius: 100px; }
  .detail-actions .icon-button { width: 44px; border-radius: 50%; }
  #all-records { background: #e4f2e8; color: #0c3f2d; }
  .panel:not(.expanded) .siblings { display: flex; align-items: center; overflow-x: auto; gap: 7px; margin-top: 8px; padding-top: 7px; scrollbar-width: thin; }
  .panel:not(.expanded) .siblings h3 { white-space: nowrap; font-size: .78rem; margin: 0; }
  .panel:not(.expanded) .siblings .photo-row { flex: 0 0 118px; grid-template-columns: 28px minmax(0, 1fr); padding: 4px; gap: 4px; min-height: 42px; }
  .panel:not(.expanded) .siblings img { width: 28px; height: 30px; }
  .panel:not(.expanded) .siblings small { display: none; }
  .panel:not(.expanded) .siblings strong { font-size: .77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .panel.expanded .detail-card { grid-template-columns: minmax(0, 1fr); }
  .panel.expanded .detail-image { aspect-ratio: auto; object-fit: contain; }
  .panel.expanded .detail-title { margin-block: 5px 12px; }
  .panel.expanded .detail-title > span:last-child { display: inline; }
  .panel.expanded .detail-field { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .panel.expanded .detail-field dt { align-items: center; gap: 4px; }
  .panel.expanded .detail-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .panel.expanded .detail-time-short { display: none; }
  .panel.expanded .detail-time-long { display: inline; }
  .panel.expanded .detail-extra { display: grid; }
  .panel.expanded .detail-actions { position: sticky; bottom: -10px; background: #fff; padding-block: 5px; }
  .map-status { bottom: calc(max(65px, var(--sheet-height, 0px)) + 12px); }
  .workspace:not(:has(.panel.open)) .map-status { bottom: calc(max(11px, env(safe-area-inset-bottom)) + 87px); }
  .pick-bar { bottom: calc(max(11px, env(safe-area-inset-bottom)) + 37px); }
  .map-card:has(.pick-bar:not([hidden])) .map-status { bottom: calc(max(11px, env(safe-area-inset-bottom)) + 100px); }
  .pick-bar > p { max-width: 8rem; }
  .field > :is(input:not([type="range"]), textarea, select), .feed-search input { font-size: 16px; }
}
@media (max-width: 350px) {
  .topbar { padding-inline: 8px; }
  .top-actions { gap: 3px; }
  .top-actions #search { display: none; }
  .action-row { gap: 5px; }
  .pick-bar { max-width: calc(100% - 18px); }
}
