    @font-face {
      font-family: "Source Serif 4";
      font-style: normal;
      font-weight: 200 900;
      font-display: swap;
      src: url("/assets/fonts/source-serif-4-cyrillic-wght.woff2") format("woff2-variations");
      unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    }
    @font-face {
      font-family: "Source Serif 4";
      font-style: normal;
      font-weight: 200 900;
      font-display: swap;
      src: url("/assets/fonts/source-serif-4-latin-wght.woff2") format("woff2-variations");
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }
    @font-face {
      font-family: "Manrope";
      font-style: normal;
      font-weight: 200 800;
      font-display: swap;
      src: url("/assets/fonts/manrope-cyrillic-wght.woff2") format("woff2-variations");
      unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
    }
    @font-face {
      font-family: "Manrope";
      font-style: normal;
      font-weight: 200 800;
      font-display: swap;
      src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2-variations");
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    }

    :root {
      --bg: #f5f3ef;
      --surface: #fdfbf7;
      --text: #6c665d;
      --text-heading: #585248;
      --text-muted: #928b82;
      --border: #e8e4dd;
      --accent: #348f85;
      --accent-hover: #2a756d;
      --accent-soft: rgba(52, 143, 133, 0.11);
      --radius: 12px;
      --shadow: 0 2px 10px rgba(88, 82, 72, 0.06);
      --font: "Manrope", "Segoe UI", system-ui, sans-serif;
      --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
      --side-w: 340px;
      --sheet-h: min(54dvh, 480px);
      --safe-b: env(safe-area-inset-bottom, 0px);
      --safe-t: env(safe-area-inset-top, 0px);
    }

    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    html, body {
      margin: 0;
      height: 100%;
      overflow: hidden;
      font-family: var(--font);
      color: var(--text);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }
    .app {
      position: relative;
      width: 100%;
      height: 100%;
      height: 100dvh;
    }

    .map {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #cfc8bb;
      cursor: grab;
      touch-action: none;
    }
    .map.is-placing,
    .map.is-measuring { cursor: crosshair; }
    .map.is-dragging { cursor: grabbing; }

    .map__layer {
      position: absolute;
      left: 50%;
      top: 50%;
      width: min(100vw, 100vh);
      height: min(100vw, 100vh);
      max-width: 100%;
      max-height: 100%;
      transform-origin: center center;
      will-change: transform;
    }

    .map__bleed {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 100%;
      height: 100%;
      transform: translate(-50%, -50%) scale(1.42);
      transform-origin: center center;
      z-index: 0;
      filter: blur(36px) saturate(1.05);
      opacity: 0.92;
      pointer-events: none;
      user-select: none;
    }
    .map__bleed canvas,
    .map__world canvas {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
      -webkit-touch-callout: none;
      pointer-events: none;
      background: #d8d2c6;
    }
    .map__bleed img,
    .map__world img {
      display: none !important;
    }

    .map__world {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    .map__shield {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background: transparent;
      /* лёгкая сетка мешает «чистому» скрину через расширения */
      box-shadow: inset 0 0 0 1px rgba(253, 251, 247, 0.08);
    }
    .map.is-map-locked .map__world canvas {
      filter: contrast(1.02) saturate(1.03);
    }
    .map__svg {
      position: absolute;
      inset: 0;
      z-index: 3;
      width: 100%;
      height: 100%;
      overflow: visible;
    }
    .pin { cursor: pointer; }
    .pin__hit { fill: transparent; }
    .pin__halo { fill: currentColor; opacity: 0.18; }
    .pin__dot {
      fill: currentColor;
      stroke: #fdfbf7;
      stroke-width: 2;
    }
    .pin.is-dim { opacity: 0.22; }
    .pin.is-active .pin__halo { opacity: 0.28; }
    .measure-line,
    .sector-line {
      fill: none;
      stroke: var(--accent);
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-dasharray: 6 5;
      pointer-events: none;
    }
    .sector-line { stroke-opacity: 0.9; }
    .measure-label,
    .sector-dist {
      fill: var(--text-heading);
      font-family: var(--font);
      font-size: 18px;
      font-weight: 650;
      paint-order: stroke;
      stroke: #fdfbf7;
      stroke-width: 5px;
      pointer-events: none;
    }
    .sector-mark {
      fill: rgba(253, 251, 247, 0.92);
      stroke: var(--accent);
      stroke-width: 2;
    }
    .sector-mark.is-active {
      fill: var(--accent);
      stroke: #fdfbf7;
    }
    .sector-mark-label {
      font-family: var(--font);
      font-size: 13px;
      font-weight: 700;
      fill: var(--text-heading);
      paint-order: stroke;
      stroke: #fdfbf7;
      stroke-width: 4px;
      pointer-events: none;
    }
    .sector-mark-label.is-active { fill: #fff; stroke: var(--accent-hover); }

    .sector-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
    }
    .sector-chip {
      appearance: none;
      border: 1px solid rgba(229, 225, 218, 0.9);
      background: rgba(245, 243, 239, 0.55);
      color: var(--text-heading);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      padding: 12px 0;
      min-height: 44px;
      border-radius: 10px;
      cursor: pointer;
      text-align: center;
    }
    .sector-chip.is-on {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .sector-chip--none {
      grid-column: 1 / -1;
      font-weight: 600;
      font-size: 12px;
      color: var(--text-muted);
    }
    .sector-chip--none.is-on {
      color: var(--accent-hover);
      background: rgba(52, 143, 133, 0.14);
      border-color: rgba(52, 143, 133, 0.4);
    }

    .topbar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px;
      padding-top: max(12px, var(--safe-t));
      padding-left: max(12px, env(safe-area-inset-left, 0px));
      padding-right: max(12px, env(safe-area-inset-right, 0px));
      pointer-events: none;
    }
    @media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
      .topbar { padding-top: max(14px, var(--safe-t)); }
      .fab {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
      }
    }
    .topbar > * { pointer-events: auto; }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px 6px 6px;
      border-radius: 999px;
      background: rgba(253, 251, 247, 0.92);
      border: 1px solid rgba(229, 225, 218, 0.95);
      box-shadow: var(--shadow);
      text-decoration: none;
      color: inherit;
      max-width: min(280px, calc(100% - 140px));
    }
    .brand__back {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--accent-soft);
      color: var(--accent-hover);
      flex-shrink: 0;
    }
    .brand__back svg { width: 18px; height: 18px; }
    .brand__text strong {
      display: block;
      font-family: var(--serif);
      font-size: 15px;
      font-weight: 600;
      color: var(--text-heading);
      letter-spacing: -0.02em;
    }
    .brand__text span {
      display: block;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 1px;
    }

    .zoom-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
    .icon-btn {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid rgba(229, 225, 218, 0.95);
      background: rgba(253, 251, 247, 0.92);
      color: var(--text-heading);
      box-shadow: var(--shadow);
      cursor: pointer;
      display: grid;
      place-items: center;
      padding: 0;
    }
    .icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
    .icon-btn.is-active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .icon-btn:active { transform: scale(0.97); }

    .scalebar {
      position: absolute;
      left: 12px;
      bottom: 12px;
      z-index: 3;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(253, 251, 247, 0.92);
      border: 1px solid rgba(229, 225, 218, 0.95);
      box-shadow: var(--shadow);
      pointer-events: none;
      font-size: 11px;
      color: var(--text-muted);
    }
    .scalebar__bar {
      height: 3px;
      background: var(--text-heading);
      border-radius: 2px;
      margin-bottom: 5px;
    }
    .scalebar__label { font-weight: 600; color: var(--text); }

    .sheet {
      position: absolute;
      z-index: 5;
      display: flex;
      flex-direction: column;
      background: rgba(253, 251, 247, 0.72);
      border: 1px solid rgba(229, 225, 218, 0.75);
      box-shadow: 0 10px 36px rgba(88, 82, 72, 0.12);
      backdrop-filter: blur(18px) saturate(1.1);
      -webkit-backdrop-filter: blur(18px) saturate(1.1);
      color: var(--text);
    }
    .sheet__handle {
      display: none;
      width: 36px;
      height: 4px;
      border-radius: 99px;
      background: rgba(88, 82, 72, 0.22);
      margin: 10px auto 0;
      flex-shrink: 0;
    }
    .sheet__head {
      padding: 16px 18px 12px;
      border-bottom: 1px solid rgba(229, 225, 218, 0.65);
      flex-shrink: 0;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      background: transparent;
    }
    .sheet__head h1 {
      margin: 0;
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 600;
      color: var(--text-heading);
      letter-spacing: -0.02em;
    }
    .sheet__head p {
      margin: 6px 0 0;
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.45;
    }
    .sheet__close {
      display: none;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 1px solid rgba(229, 225, 218, 0.8);
      background: rgba(245, 243, 239, 0.65);
      color: var(--text-heading);
      cursor: pointer;
      place-items: center;
      padding: 0;
    }
    .sheet__close svg { width: 16px; height: 16px; }
    .sheet__body {
      flex: 1;
      min-height: 0;
      overflow: auto;
      padding: 14px 16px calc(16px + var(--safe-b));
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    .btn {
      appearance: none;
      border: 1px solid transparent;
      background: var(--accent);
      color: #fff;
      font: inherit;
      font-size: 14px;
      font-weight: 650;
      padding: 12px 14px;
      border-radius: var(--radius);
      cursor: pointer;
      text-align: left;
      width: 100%;
    }
    .btn:hover { background: var(--accent-hover); }
    .btn:active { transform: scale(0.99); }
    .btn.is-active {
      box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
    }
    .btn--ghost {
      background: rgba(245, 243, 239, 0.55);
      border-color: rgba(229, 225, 218, 0.85);
      color: var(--text-heading);
    }
    .btn--ghost:hover { background: rgba(245, 243, 239, 0.85); }
    .btn--ghost.is-active {
      background: rgba(52, 143, 133, 0.16);
      border-color: rgba(52, 143, 133, 0.4);
      color: var(--accent-hover);
      box-shadow: none;
    }
    .btn--danger {
      background: transparent;
      border-color: rgba(138, 59, 42, 0.28);
      color: #8a3b2a;
    }
    .btn__hint {
      display: block;
      font-size: 12px;
      font-weight: 500;
      opacity: 0.8;
      margin-top: 3px;
    }
    .btn-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 12px;
    }
    .btn-row .btn { text-align: center; }

    .field { margin-top: 14px; }
    .field label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .field textarea {
      width: 100%;
      min-height: 88px;
      resize: vertical;
      border-radius: var(--radius);
      border: 1px solid rgba(229, 225, 218, 0.9);
      background: rgba(245, 243, 239, 0.55);
      color: var(--text-heading);
      font: inherit;
      font-size: 15px;
      padding: 12px;
      line-height: 1.45;
    }
    .field textarea:focus {
      outline: none;
      border-color: rgba(52, 143, 133, 0.55);
      box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .colors {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .swatch {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid transparent;
      padding: 0;
      cursor: pointer;
      box-shadow: inset 0 0 0 1px rgba(88, 82, 72, 0.12);
    }
    .swatch.is-on {
      border-color: var(--text-heading);
    }
    .color-native {
      width: 32px;
      height: 32px;
      border: 0;
      padding: 0;
      background: transparent;
      cursor: pointer;
    }
    .color-native::-webkit-color-swatch-wrapper { padding: 0; }
    .color-native::-webkit-color-swatch {
      border: 1px solid var(--border);
      border-radius: 50%;
    }

    .size-row {
      display: grid;
      grid-template-columns: 1fr 44px;
      gap: 12px;
      align-items: center;
    }
    .size-row input[type="range"] {
      width: 100%;
      accent-color: var(--accent);
      height: 32px;
    }
    .size-preview {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      display: grid;
      place-items: center;
    }
    .size-preview span {
      display: block;
      border-radius: 50%;
      background: var(--preview-color, var(--accent));
      box-shadow: 0 0 0 2px #fff;
      width: calc(var(--preview-size, 12) * 2px);
      height: calc(var(--preview-size, 12) * 2px);
    }
    .size-val {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .place-panel { display: none; }
    .place-panel.is-open { display: block; }
    .place-hint {
      margin: 0 0 12px;
      font-size: 15px;
      line-height: 1.45;
      color: var(--text-heading);
      font-weight: 600;
    }

    .sector-panel[hidden] { display: none !important; }
    .sector-panel {
      margin: 4px 0 14px;
      padding: 14px;
      border-radius: 14px;
      border: 1px solid rgba(229, 225, 218, 0.85);
      background: rgba(253, 251, 247, 0.72);
    }
    .sector-panel__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .sector-panel__kicker {
      margin: 0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--accent-hover);
    }
    .sector-panel__title {
      margin: 4px 0 0;
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 600;
      color: var(--text-heading);
      letter-spacing: -0.02em;
    }
    .sector-panel__close {
      width: auto;
      padding: 8px 12px;
      flex-shrink: 0;
    }
    .sector-panel__meta {
      margin: 8px 0 12px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .sector-book {
      display: block;
      margin: 12px 0 4px;
      text-align: center;
      text-decoration: none;
      min-height: 48px;
      line-height: 1.2;
      padding-top: 14px;
      padding-bottom: 14px;
    }
    .sector-book[hidden] { display: none !important; }
    .sector-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin: 12px 0 4px;
    }
    .sector-tab {
      appearance: none;
      border: 1px solid rgba(229, 225, 218, 0.9);
      background: rgba(245, 243, 239, 0.55);
      color: var(--text-heading);
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      min-height: 44px;
      padding: 10px 12px;
      border-radius: 12px;
      cursor: pointer;
    }
    .sector-tab.is-on {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .trophy-list {
      display: grid;
      gap: 10px;
      max-height: min(46vh, 420px);
      overflow: auto;
      padding-right: 2px;
    }
    .trophy-card {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 12px;
      align-items: stretch;
      padding: 0;
      border: 1px solid rgba(229, 225, 218, 0.9);
      border-radius: 12px;
      background: rgba(245, 243, 239, 0.55);
      overflow: hidden;
      text-decoration: none;
      color: inherit;
      touch-action: manipulation;
      -webkit-touch-callout: none;
      transition: border-color 0.15s, background 0.15s;
    }
    a.trophy-card:hover {
      border-color: rgba(52, 143, 133, 0.45);
      background: rgba(52, 143, 133, 0.08);
    }
    .trophy-card__photo {
      width: 72px;
      min-height: 72px;
      background:
        linear-gradient(160deg, rgba(52, 143, 133, 0.2), rgba(40, 36, 30, 0.08)),
        #e7e2d8;
      display: block;
      object-fit: cover;
      height: 100%;
    }
    .trophy-card__photo--empty {
      display: grid;
      place-items: center;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .trophy-card__body {
      padding: 10px 12px 10px 0;
      min-width: 0;
    }
    .trophy-card__name {
      margin: 0;
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-heading);
      letter-spacing: -0.015em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .trophy-card__weight {
      margin: 4px 0 0;
      font-size: 15px;
      font-weight: 750;
      color: var(--accent-hover);
    }
    .trophy-card__meta {
      margin: 4px 0 0;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.35;
    }
    .trophy-empty {
      padding: 18px 12px;
      text-align: center;
      font-size: 13px;
      color: var(--text-muted);
      border: 1px dashed rgba(229, 225, 218, 0.95);
      border-radius: 12px;
      background: rgba(245, 243, 239, 0.35);
    }
    .trophy-empty strong {
      display: block;
      margin-bottom: 4px;
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-heading);
    }

    .tool-bar { display: none !important; }
    .browse-block[hidden] { display: none !important; }
    .section-label {
      margin: 16px 0 8px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-muted);
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
    }
    .section-label__hint {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0;
      text-transform: none;
      color: var(--text-muted);
      opacity: 0.9;
    }

    .users {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px;
    }
    .user {
      display: grid;
      grid-template-columns: 40px 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      min-height: 52px;
      border-radius: var(--radius);
      border: 1px solid rgba(229, 225, 218, 0.75);
      background: rgba(245, 243, 239, 0.45);
      cursor: pointer;
      text-align: left;
      width: 100%;
      color: inherit;
      font: inherit;
    }
    .user.is-active {
      border-color: rgba(52, 143, 133, 0.5);
      background: rgba(52, 143, 133, 0.16);
    }
    .user__avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 12px;
      color: #fff;
      background: var(--accent);
    }
    .user__name {
      font-size: 14px;
      font-weight: 650;
      color: var(--text-heading);
    }
    .user__meta {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 2px;
    }
    .user__count {
      font-size: 13px;
      font-weight: 700;
      color: var(--accent-hover);
      min-width: 24px;
      text-align: right;
    }

    .detail {
      display: none;
      margin-top: 14px;
      padding: 14px;
      border-radius: var(--radius);
      background: rgba(245, 243, 239, 0.5);
      border: 1px solid rgba(229, 225, 218, 0.75);
    }
    .detail.is-open { display: block; }
    .detail__kicker {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--accent-hover);
      margin-bottom: 6px;
    }
    .detail__author {
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-heading);
      margin-bottom: 8px;
    }
    .detail__text {
      font-size: 14px;
      line-height: 1.55;
      white-space: pre-wrap;
      color: var(--text);
    }
    .detail__meta {
      margin-top: 10px;
      font-size: 11px;
      color: var(--text-muted);
    }
    .detail__actions {
      margin-top: 12px;
      display: grid;
      gap: 8px;
    }

    .fab {
      display: none;
      position: absolute;
      z-index: 4;
      left: 12px;
      right: 12px;
      bottom: calc(16px + var(--safe-b));
      gap: 8px;
      grid-template-columns: 1fr 52px;
      align-items: stretch;
    }
    .fab .btn,
    .fab .icon-btn { box-shadow: 0 8px 24px rgba(88, 82, 72, 0.12); }
    .fab .btn { min-height: 52px; }

    .toast {
      position: absolute;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%);
      z-index: 6;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(253, 251, 247, 0.96);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-heading);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s;
      max-width: min(340px, calc(100% - 24px));
      text-align: center;
    }
    .toast.is-on { opacity: 1; }

    @media (min-width: 821px) {
      .map { inset: 0; }
      .topbar { right: 0; padding-right: calc(var(--side-w) + 28px); }
      .sheet {
        top: 12px;
        right: 12px;
        bottom: 12px;
        width: var(--side-w);
        border-radius: 16px;
      }
      .sheet__close { display: none; }
      .toast { bottom: 28px; }
      .scalebar { left: 16px; bottom: 16px; }
    }

    @media (max-width: 820px) {
      :root { --sheet-h: min(68dvh, 620px); }
      html { font-size: 17px; }
      .brand {
        padding: 8px 16px 8px 8px;
        max-width: min(200px, calc(100% - 190px));
      }
      .brand__back { width: 44px; height: 44px; }
      .brand__back svg { width: 22px; height: 22px; }
      .brand__text strong { font-size: 18px; }
      .brand__text span { font-size: 13px; }
      .icon-btn { width: 52px; height: 52px; border-radius: 14px; }
      .icon-btn svg { width: 24px; height: 24px; }
      .place-hint { font-size: 17px; }
      .sheet {
        left: 8px;
        right: 8px;
        bottom: max(8px, var(--safe-b));
        height: var(--sheet-h);
        max-height: 82dvh;
        border-radius: 18px;
        transform: translateY(calc(100% + 28px));
        transition: transform 0.22s ease;
        pointer-events: none;
      }
      .sheet.is-open {
        transform: translateY(0);
        pointer-events: auto;
      }
      .sheet__handle { display: block; width: 44px; height: 5px; }
      .sheet__close { display: grid; width: 48px; height: 48px; }
      .sheet__head { padding: 10px 18px 14px; }
      .sheet__head h1 { font-size: 1.55rem; }
      .sheet__head p { font-size: 15px; }
      .sheet__body { padding: 16px 18px calc(20px + var(--safe-b)); }
      .sector-panel__title { font-size: 1.7rem; }
      .sector-panel__meta { font-size: 16px; }
      .sector-book { font-size: 17px; min-height: 52px; }
      .sector-tab { font-size: 17px; min-height: 54px; }
      .sector-chip { font-size: 17px; min-height: 54px; padding: 14px 0; }
      .sector-grid { gap: 8px; grid-template-columns: repeat(4, 1fr); }
      .btn { font-size: 17px; padding: 15px 16px; min-height: 52px; }
      .btn__hint { font-size: 14px; }
      .user { min-height: 68px; padding: 12px; }
      .user__avatar { width: 48px; height: 48px; font-size: 15px; }
      .user__name { font-size: 17px; }
      .user__meta { font-size: 14px; }
      .user__count { font-size: 16px; }
      .trophy-card { grid-template-columns: 96px 1fr; }
      .trophy-card__photo { width: 96px; min-height: 96px; }
      .trophy-card__name { font-size: 1.3rem; }
      .trophy-card__weight { font-size: 18px; }
      .trophy-card__meta { font-size: 14px; }
      .field label { font-size: 13px; }
      .field textarea { font-size: 17px; min-height: 110px; }
      .swatch, .color-native { width: 40px; height: 40px; }
      .fab { display: grid; }
      .fab .btn { min-height: 58px; font-size: 17px; }
      .sector-mark-label { font-size: 16px; }
      .app.is-sheet-open .fab { display: none; }
      .toast { bottom: calc(92px + var(--safe-b)); font-size: 14px; }
      .app.is-sheet-open .toast { bottom: calc(var(--sheet-h) + 18px); }
      .scalebar { bottom: calc(84px + var(--safe-b)); font-size: 12px; }
      .app.is-sheet-open .scalebar { bottom: 16px; }
    }
