/* Palimpseste uses the site's theme tokens. Images remain original; SVG is a separate layer. */
.pm-page { padding-top: 42px; }
.pm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 38px; align-items: center; margin-bottom: 30px; }.pm-hero p { max-width: 650px; }.pm-hero h1 { margin: 17px 0 24px; }
.pm-emblem { position: relative; border: 1px solid var(--line); border-radius: 18px; width: 250px; height: 220px; background: var(--lavender); }.pm-emblem i { position: absolute; top: 37px; left: 55px; height: 140px; border-left: 2px dashed var(--blue); transform: rotate(-41deg); transform-origin: top; }.pm-emblem span { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-size: 12px; z-index: 1; }.pm-emblem span:first-child { left: 32px; top: 15px; }.pm-emblem span:last-child { right: 28px; bottom: 28px; }.pm-emblem b { position: absolute; left: 25px; top: 100px; font-size: 12px; font-weight: 400; line-height: 1.7; }
.pm-storage { padding: 14px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12px; }.pm-storage.pm-memory { background: var(--lavender); border-color: var(--blue); }.pm-status { min-height: 22px; font-size: 13px; overflow-wrap: anywhere; }.pm-status:empty { min-height: 0; margin: 0; }
.pm-new-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 7px 20px; align-items: end; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; }.pm-new-form > label:first-of-type { grid-column: 1; grid-row: 1; }.pm-new-form > select { grid-column: 1; grid-row: 2; }.pm-new-form > label:nth-of-type(2) { grid-column: 2; grid-row: 1; }.pm-new-form > input { grid-column: 2; grid-row: 2; }.pm-new-form > button { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.pm-page label { display: block; font-size: 12px; line-height: 1.8; }.pm-page input:not([type="checkbox"]), .pm-page textarea, .pm-page select { display: block; width: 100%; min-width: 0; font-size: 16px; margin: 7px 0 17px; }.pm-page textarea { resize: vertical; }.pm-page .pm-new-form input, .pm-page .pm-new-form select { margin: 0; }
.pm-global-actions, .pm-actions, .pm-drawing-tools, .pm-mark-actions, .pm-visit-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }.pm-global-actions { margin: 24px 0; }.pm-actions { margin: 30px 0 15px; }.pm-actions .btn, .pm-global-actions .btn, .pm-tools .btn { white-space: normal; }
.pm-collection { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }.pm-collection:empty { display: none; }.pm-collection-item { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; text-align: left; padding: 17px; overflow-wrap: anywhere; }.pm-collection-item[aria-pressed="true"] { border-color: var(--blue); background: var(--lavender); }.pm-collection-item strong { font-size: 13px; display: block; line-height: 1.6; }.pm-collection-item span { font-size: 11px; color: var(--muted); display: block; margin-top: 7px; }
.pm-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 30px; align-items: start; }.pm-visual, .pm-inspector { min-width: 0; }.pm-tools { position: sticky; top: 82px; z-index: 2; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 18px; }.pm-tools > .btn { margin: 0 12px 12px 0; }.pm-check { display: inline-flex !important; align-items: center; gap: 9px; min-height: 44px; vertical-align: top; }.pm-check input { width: 18px; height: 18px; accent-color: var(--blue); }.pm-drawing-tools { gap: 8px; }.pm-drawing-tools button { min-height: 44px; }.pm-drawing-tools [aria-pressed="true"] { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }.pm-tool-hint { font-size: 11px !important; line-height: 1.7; margin: 12px 0 0; }
.pm-canvas { position: relative; width: 100%; max-width: 700px; margin: 0 auto; background: #fff; outline-offset: 4px; touch-action: pan-y pinch-zoom; }.pm-canvas > img { display: block; width: 100%; height: auto; }.pm-canvas[data-tool="point"] { cursor: crosshair; }.pm-canvas[data-tool="path"] { touch-action: none; cursor: crosshair; }.pm-vectors, .pm-pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }.pm-vectors * { vector-effect: non-scaling-stroke; }.pm-source-region { fill: none; stroke: #4153bf; stroke-width: 2px; stroke-dasharray: 7 5; }.pm-line-halo { fill: none; stroke: #fff; stroke-width: 7px; stroke-linecap: round; stroke-linejoin: round; }.pm-line { fill: none; stroke: var(--pm-color); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; }.pm-line.is-selected { stroke-width: 4px; }.pm-live-line { fill: none; stroke: #d87800; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }.pm-location-dot { fill: #273b9e; stroke: #fff; stroke-width: 2px; }
.pm-color-blue { --pm-color: #344eaf; }.pm-color-amber { --pm-color: #824800; }.pm-color-teal { --pm-color: #08665c; }.pm-pin { position: absolute; pointer-events: auto; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; transform: translate(-50%, -50%); color: #fff; background: var(--pm-color); border: 3px solid #fff; border-radius: 50%; font-size: 13px; font-weight: 700; box-shadow: 0 1px 5px #0007; }.pm-pin[aria-pressed="true"] { outline: 3px solid #f8b84c; outline-offset: 1px; }.pm-pin:focus-visible { outline: 3px solid #131a32; outline-offset: 3px; }
.pm-mark-list { display: grid; gap: 8px; max-height: 245px; overflow: auto; margin-bottom: 24px; }.pm-mark-list:empty { display: none; }.pm-mark-list button { min-height: 44px; text-align: left; padding: 11px 13px; font-size: 12px; line-height: 1.5; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); overflow-wrap: anywhere; }.pm-mark-list [aria-pressed="true"] { background: var(--lavender); border-color: var(--blue); }.pm-mark-list button:disabled { opacity: 1; background: var(--soft); color: var(--muted); }
.pm-title-form, .pm-mark-form, .pm-position-form { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 25px; }.pm-mark-form h2 { font-size: 24px; }.pm-position-form h3, .pm-coordinate-tools h3 { font-size: 21px; }.pm-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }.pm-mark-actions { border-top: 1px solid var(--line); padding-top: 20px; }.pm-coordinate-tools { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 18px; margin-top: 20px; }.pm-coordinate-tools > summary { cursor: pointer; min-height: 30px; font-size: 13px; line-height: 1.8; }.pm-key-path { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.pm-visit-panel { padding: 23px; border-radius: 10px; background: var(--lavender); }.pm-visit-panel h2 { font-size: 28px; overflow-wrap: anywhere; }.pm-visit-panel p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }.pm-visit-panel summary { min-height: 40px; cursor: pointer; font-size: 13px; }.pm-visit-panel details { margin: 20px 0; border-top: 1px solid var(--line); padding-top: 20px; }.pm-visit-controls { margin: 24px 0; }.pm-visit-panel > .link { margin-bottom: 18px; font-size: 12px; }.pm-empty { padding: 40px 25px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; margin: 25px 0; }.pm-empty h2 { font-size: 30px; }.pm-about { border-top: 1px solid var(--line); margin-top: 45px; padding: 30px 0; }.pm-about h2 { font-size: 28px; }.pm-about p { max-width: 800px; }.pm-entry { display: block; width: 100%; font-size: 12px; padding-top: 8px; }
.pm-import-list { max-height: 250px; overflow: auto; padding-left: 25px; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }.pm-import-title, .pm-export-title { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .pm-editor-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }.pm-hero { grid-template-columns: minmax(0, 1fr) 230px; }.pm-emblem { width: 220px; }.pm-visit-panel { padding: 18px; } }
@media (max-width: 900px) { .pm-editor-layout { grid-template-columns: 1fr; }.pm-inspector { width: 100%; max-width: 700px; margin: auto; }.pm-mark-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.pm-tools { top: 75px; } }
@media (max-width: 760px) { .pm-page { padding-top: 25px; }.pm-hero { grid-template-columns: 1fr; gap: 0; }.pm-emblem { display: none; }.pm-new-form { grid-template-columns: 1fr; padding: 18px; }.pm-new-form > label, .pm-new-form > input, .pm-new-form > select { grid-column: 1 !important; grid-row: auto !important; }.pm-new-form > label:nth-of-type(2) { margin-top: 10px; }.pm-actions > .btn, .pm-global-actions > .btn { flex: 1 1 180px; }.pm-tools { padding: 12px; }.pm-tools .btn { font-size: 11px; padding: 10px 12px; }.pm-drawing-tools { gap: 6px; }.pm-check { font-size: 11px !important; }.pm-mark-list { max-height: 200px; } }
@media (max-width: 380px) { .pm-mark-list { grid-template-columns: 1fr; }.pm-number-grid { grid-template-columns: 1fr; }.pm-visit-controls > .btn { width: 100%; }.pm-empty { padding: 28px 18px; } }
@media (prefers-reduced-motion: reduce) { .pm-page * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .pm-tools, .pm-new-form, .pm-global-actions, .pm-actions, .pm-coordinate-host, .pm-collection, .pm-mark-form, .pm-position-form, .pm-mark-actions { display: none !important; }.pm-editor-layout { display: block; } }

.pm-create{margin-top:24px}.pm-create>summary{cursor:pointer;min-height:44px;padding:12px 16px;border:1px solid var(--line);border-radius:9px;font-size:13px;background:var(--surface)}.pm-create:not([open])>.pm-new-form{display:none!important}.pm-create .pm-new-form{margin-top:12px}
