.plat-page { background: var(--paper); font-size: 16px; }
.plat-main { width: min(1600px, 100%); margin: 0 auto; padding: 25px 32px 32px; }
.plat-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.plat-back { display: inline-block; font-size: 14px; color: #52635e; text-underline-offset: 4px; margin-bottom: 14px; }
.plat-heading h1 { margin: 0; font: 36px/1.15 Georgia, serif; letter-spacing: -.8px; color: var(--forest); }
.plat-heading p { margin: 9px 0 0; line-height: 1.5; color: #61716e; font-size: 15px; }
.plat-heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.plat-button { min-height: 44px; border: 1px solid #aebcb3; border-radius: 7px; padding: 10px 14px; background: white; color: var(--forest); font: 600 14px/1.4 Arial, sans-serif; display: inline-flex; justify-content: center; align-items: center; gap: 7px; text-decoration: none; cursor: pointer; }
.plat-button:hover { background: #edf1eb; }
.plat-button.primary { background: var(--forest); border-color: var(--forest); color: white; }
.plat-button.primary:hover { background: var(--deep); }
.plat-button:disabled { opacity: .4; cursor: default; }
.plat-notice { border: 1px solid var(--line); border-left: 4px solid var(--forest); background: #edf1eb; padding: 13px 16px; border-radius: 7px; margin: 0 0 17px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.plat-notice.pending { background: #fff7e8; border-color: #d4c59b; border-left-color: var(--gold); color: var(--ink); }
.plat-notice strong { display: block; margin-bottom: 2px; }
.plat-copy-cost { margin: 8px 0 0; }
.plat-copy-cost a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.plat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.plat-sheet-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plat-sheet-nav label { font-size: 14px; color: #61716e; }
.plat-sheet-nav select { font-size: 16px; padding: 9px 27px 9px 10px; border: 1px solid #aebcb3; border-radius: 5px; max-width: 240px; background: #fff; color: var(--forest); }
.plat-sheet-nav .plat-button { padding: 8px 11px; min-width: 42px; font-size: 14px; }
.plat-tools { display: flex; align-items: center; gap: 8px; }
.plat-tools .zoom { font-size: 22px; padding: 5px 12px; min-width: 44px; font-weight: 400; }
.plat-viewport { height: max(440px, calc(100svh - 420px)); min-height: 440px; max-height: 1050px; background: #e8ece7; position: relative; overflow: hidden; isolation: isolate; touch-action: none; cursor: grab; outline-offset: -4px !important; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.plat-viewport.dragging { cursor: grabbing; }
.plat-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; user-select: none; background: white; box-shadow: 0 3px 20px #173b3918; }
.plat-world img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; user-select: none; }
.plat-highlight { position: absolute; pointer-events: none; transform-origin: center; border: 0; border-radius: 3px; background: rgb(255 225 0 / 78%); mix-blend-mode: multiply; z-index: 2; }
.plat-loading { position: absolute; inset: 0; z-index: 3; background: var(--paper); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #52635e; text-align: center; padding: 30px; }
.plat-loading strong { font: 28px Georgia, serif; color: var(--forest); }
.plat-status-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; font-size: 13px; line-height: 1.5; color: #61716e; padding: 11px 15px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.plat-status-bar label { display: flex; align-items: center; gap: 7px; color: var(--forest); }
.plat-status-bar input { width: 17px; height: 17px; accent-color: var(--forest); }
.plat-status-bar label:has(input:disabled) { color: #61716e; }
.plat-help { display: flex; justify-content: space-between; align-items: start; gap: 25px; padding-top: 18px; color: #61716e; font-size: 14px; line-height: 1.6; }
.plat-help p { margin: 0; max-width: 840px; }
.plat-help a { color: var(--forest); }
.plat-empty { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 10px; line-height: 1.6; }
.plat-empty h2 { font: 26px Georgia, serif; color: var(--forest); }
.plat-document-choices { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; font-size: 14px; }
.plat-document-choices select { max-width: 100%; padding: 10px; font-size: 16px; border: 1px solid #aebcb3; border-radius: 5px; background: white; }
.plat-page .site-footer { max-width: 1600px; padding: 0 32px 28px; }
.plat-page .site-footer > span { font-size: 13px; }
@media(max-width:800px) {
 .plat-main { padding: 20px 17px 25px; }
 .plat-heading { align-items: start; flex-direction: column; gap: 15px; }
 .plat-heading h1 { font-size: 31px; }
 .plat-heading-actions { width: 100%; }
 .plat-heading-actions .plat-button { flex: 1; }
 .plat-toolbar { align-items: stretch; gap: 9px; padding: 11px; }
 .plat-sheet-nav { width: 100%; justify-content: space-between; }
 .plat-sheet-nav label { display: none; }
 .plat-sheet-nav select { flex: 1; min-width: 0; max-width: none; }
 .plat-tools { width: 100%; }
 .plat-tools .fit { flex: 1; }
 .plat-viewport { height: 61svh; min-height: 400px; }
 .plat-help { flex-direction: column; gap: 12px; }
 .plat-page .site-footer { padding: 0 17px 25px; }
}
@media(max-width:450px) {
 .plat-heading-actions .plat-button { padding: 10px 8px; }
 .plat-sheet-nav .plat-button { min-width: 44px; }
 .plat-heading h1 { font-size: 29px; }
 .plat-tools { gap: 5px; }
 .plat-tools .plat-button { padding: 9px 8px; }
 .plat-tools .zoom { padding: 5px 10px; }
 .plat-status-bar { font-size: 13px; }
}

.plat-page [hidden] {
  display: none !important;
}
