.guest-content {
  --gc-page: #e7e0ce; --gc-card: #f3ecdf; --gc-ink: #181813;
  --gc-edge: #24221d; --gc-shadow: #766f5f; --gc-dots: #b7ac99; --gc-accent: #e4bd1b;
  margin: 0; color: var(--gc-ink); background: var(--gc-page);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
.guest-content [hidden] { display: none !important; }
.guest-content main { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px 20px; }
.gc-header {
  position: sticky; top: 0; z-index: 3; display: grid; align-items: center; justify-items: center;
  height: 55px; background: var(--gc-card); border-bottom: 1.5px solid var(--gc-edge);
}
.gc-header h1 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.gc-header button {
  position: absolute; right: max(16px, calc((100vw - 700px)/2)); top: 0;
  min-height: 100%; display: flex; gap: 4px; align-items: center;
  color: var(--gc-ink); background: transparent; border: 0; border-radius: 0; padding: 0 2px; font: inherit; font-size: 13px; font-weight: 600;
}
.gc-device-icon { position: relative; display: inline-block; width: 23px; height: 16px; border: 1.7px solid currentColor; border-radius: 2px; }
.gc-device-icon::before, .gc-device-icon::after { content: ""; position: absolute; top: 3px; width: 3px; height: 6px; border: 1.5px solid currentColor; background: var(--gc-card); }
.gc-device-icon::before { left: -1.8px; border-left: 0; border-radius: 0 4px 4px 0; }
.gc-device-icon::after { right: -1.8px; border-right: 0; border-radius: 4px 0 0 4px; }
.gc-chevron { border: 3px solid transparent; border-top-color: currentColor; margin-top: 5px; }
.gc-section { margin: 0 0 14px; border: 0; padding: 0; border-radius: 0; background: transparent; }
.gc-section h2 { margin: 0 0 11px; padding-top: 1px; font-size: 17px; line-height: 1.4; font-weight: 700; letter-spacing: .005em; }
.gc-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.gc-tile {
  min-width: 0; display: block; position: relative; width: 100%; aspect-ratio: 1.172;
  color: var(--gc-ink); padding: 0; border: none; background: transparent; text-align: left;
  text-decoration: none; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.gc-tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gc-tile .gc-label { display: block; position: absolute; inset: 9px 12px auto; font-size: 20px; font-weight: 750; line-height: 1.25; }
.gc-arrow { position: absolute; bottom: 29px; right: 21px; width: 17px; height: 2px; background: currentColor; }
.gc-arrow::after { content: ""; position: absolute; right: 0; top: -4.5px; width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.gc-tile:active { transform: translate(1px,1px); }
.guest-content :is(button,a):focus-visible { outline: 2px solid var(--gc-ink); outline-offset: 2px; }
html[data-appearance=dark] .guest-content { --gc-page: #20201c; --gc-card: #2a2923; --gc-ink: #f4ecdd; --gc-edge: #b0a58c; --gc-shadow: #080807; --gc-dots: #574f3b; }

body.guest-content.gc-detail { padding-bottom: 0; }
body.gc-detail #shell-tabs { display: none; }
body.gc-detail main { max-width: 700px; padding: 0; }
body.gc-detail #guest-detail { min-height: 100dvh; }
#guest-content-status:not([hidden]) { position: fixed; left: 16px; right: 16px; bottom: 76px; z-index: 4; padding: 10px; background: var(--gc-card); color: var(--gc-ink); border: 1px solid; }
.gc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 0 12px; border-bottom: 1.5px solid var(--gc-edge); background: var(--gc-card); color: var(--gc-ink); }
.gc-bar h1 { flex: 1; margin: 0; font-size: 19px; }
.gc-bar a, .gc-bar button, .gc-photo-tools button { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; padding: 4px; background: transparent; border: 0; color: inherit; text-decoration: none; font: inherit; }
.gc-bar button,.gc-bar a { font-size: 21px; }
.gc-template-image-editor { inset:0; box-sizing:border-box; width:100%; max-width:none; max-height:100%; margin:0; padding:0; border:0; color:var(--gc-ink); background:var(--gc-page); }
.gc-photo { height:100dvh; display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; overflow:hidden; }
.gc-photo-stage { display:grid; place-items:center; min-height:0; overflow:hidden; margin:0; }
.gc-photo-stage canvas { display:block; width:auto; height:auto; max-width:100%; max-height:100%; touch-action:none; }
.gc-photo-tools { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); padding:2px 3px max(5px,env(safe-area-inset-bottom)); background:var(--gc-card); border-top:1px solid var(--gc-edge); }
.gc-photo-tools button { min-width:0; font-size:11px; gap:3px; line-height:1; }
.gc-photo-tools b { font:600 18px/1 -apple-system,sans-serif; }
.gc-photo-tools [aria-pressed=true] { background:var(--gc-accent); color:#171510; }
.gc-photo-panel { color:var(--gc-ink); background:var(--gc-card); padding:8px 12px; }
.gc-photo-panel:empty { display:none; }
.gc-photo-panel :is(button,input,select) { min-height:36px; margin:3px; max-width:100%; }
.gc-photo-panel button,.gc-shelf button { background:var(--gc-card); color:var(--gc-ink); border:1px solid var(--gc-edge); border-radius:4px; padding:4px 8px; }
.gc-photo-panel p { margin:4px 0; }
.gc-photo-stage { position:relative; }
.gc-photo-stage .gc-original-view { position:absolute;inset:0;margin:auto;width:100%;height:100%;object-fit:contain;pointer-events:none; }
.gc-photo-stage .gc-original-view[hidden],.gc-photo-stage button[hidden] { display:none; }
.gc-photo-stage [data-original-comparison] { position:absolute;bottom:8px;right:8px;min-height:36px;border:1px solid var(--gc-edge);border-radius:8px;background:var(--gc-card);color:var(--gc-ink); }
.gc-photo [data-original-comparison][aria-pressed=true] { background:var(--gc-accent);color:#171510; }
.gc-device-preview { box-sizing:border-box;width:min(94vw,31rem);max-height:90dvh;margin:auto;padding:14px;border:1px solid var(--gc-edge);border-radius:12px;background:var(--gc-card);color:var(--gc-ink); }
.gc-device-preview::backdrop { background:#1118; }
.gc-device-preview h2 { margin:0;font-size:1.15rem; }
.gc-device-preview figure { min-height:8rem;margin:10px 0;display:grid;place-items:center; }
.gc-device-preview canvas { display:block;max-height:56dvh;max-width:100%;width:auto;height:auto; }
.gc-device-preview [role=status]:empty { display:none; }
.gc-device-preview footer { display:flex;gap:8px;flex-wrap:wrap;justify-content:center; }
.gc-device-preview button { min-height:44px;padding:6px 12px; }
.gc-shelf-body,.gc-template-form { padding:12px; }
.gc-shelf [type=search] { width:100%; height:52px; background:var(--gc-card); color:var(--gc-ink); border:1.5px solid var(--gc-edge); border-radius:6px; padding-inline:16px; }
.gc-topics { position:static; display:flex; overflow-x:auto; gap:6px; margin:9px 0 12px; padding:0; border:0; background:transparent; }
.gc-topics a { display:grid; min-height:38px; place-items:center; flex-shrink:0; border:1.4px solid var(--gc-edge); border-radius:5px; color:var(--gc-ink); background:var(--gc-card); padding:0 12px; text-decoration:none; font-size:13px; }
.gc-topics a[aria-current] { background:var(--gc-accent); color:#171610; }
.gc-catalog { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.gc-catalog a { display:block; border:1.5px solid var(--gc-edge); border-radius:8px 8px 3px 3px; overflow:hidden; background:var(--gc-card); color:var(--gc-ink); text-decoration:none; }
.gc-catalog canvas { width:100%; display:block; aspect-ratio:2/3; }
.gc-catalog a>div { padding:8px 9px 14px; border-bottom:3px dotted var(--gc-edge); }
.gc-catalog small { display:inline-block; padding:3px 5px; font-size:11px; background:var(--gc-page); }
.gc-catalog strong { display:block; margin-top:6px; font-size:15px; line-height:1.25; }
.gc-template-preview { width:min(52vw,240px); display:block; margin:16px auto 0; border:1px solid var(--gc-edge); }
.gc-template-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.gc-template-form label,.gc-template-form>[role=group] { display:grid; gap:4px; }
.gc-template-form input,.gc-template-form select { min-width:0; width:100%; }
button.gc-tile:disabled { opacity:.52; cursor:default; background:transparent; color:var(--gc-ink); }
.gc-lock { position:absolute; left:10px; bottom:13px; display:flex; gap:4px; align-items:center; font-size:10px; font-weight:650; }
.gc-lock i { display:inline-block; position:relative; width:10px; height:8px; border:1.3px solid currentColor; border-radius:1px; }
.gc-lock i::before { content:''; position:absolute; left:1px; top:-6px; width:4px; height:5px; border:1px solid; border-bottom:0; border-radius:3px 3px 0 0; }
#gc-animation { max-width:700px; margin:0 auto; padding:0 0 max(12px,env(safe-area-inset-bottom)); }
#gc-animation :is(button,a) { touch-action:manipulation; }
.gc-pixel-choices,.gc-pixel-pad { display:grid; gap:10px; padding:12px; border:0; margin:0; background:transparent; }
.gc-pixel-choices :is(button,a),.gc-yellow { min-height:46px; padding:9px 14px; border:1.4px solid var(--gc-edge); border-radius:5px; color:var(--gc-ink); background:var(--gc-card); text-align:left; text-decoration:none; }
#gc-animation .gc-yellow { color:#1a1913; background:var(--gc-accent); text-align:center; font-weight:bold; }
.gc-pixel-tools,.gc-pixel-actions { display:flex; justify-content:center; gap:4px; padding:5px; }
.gc-pixel-tools button,.gc-pixel-actions button { background:transparent; color:var(--gc-ink); min-width:38px; min-height:40px; border:0; padding:4px; font-size:18px; }
.gc-pixel-actions { align-items:center; justify-content:space-between; }
.gc-pixel-tools button:disabled,.gc-pixel-actions button:disabled { opacity:.38; }
.gc-pixel-stage { display:grid; place-items:center; width:100%; height:clamp(150px,48dvh,470px); background:var(--gc-card); overflow:hidden; }
.gc-pixel-surface { display:block; position:relative; height:100%; max-width:100%; }
.gc-pixel-stage canvas { display:block; height:100%; width:100%; image-rendering:pixelated; touch-action:none; }
.gc-pixel-grid { pointer-events:none; position:absolute; inset:0; background-image:linear-gradient(to right,#9997 1px,transparent 1px),linear-gradient(to bottom,#9997 1px, transparent 1px); }
.gc-pixel-range span { display:flex; justify-content:space-between; align-items:center; }
.gc-pixel-range input { width:100%; accent-color:var(--gc-accent); margin:8px 0; }
.gc-pixel-strip { display:flex; gap:6px; overflow-x:auto; background:var(--gc-card); border:1.5px solid var(--gc-edge); padding:6px; border-radius:8px; }
.gc-pixel-strip button { display:grid; justify-items:center; flex:none; gap:4px; min-width:58px; border:1.5px solid var(--gc-edge); background:var(--gc-card); color:var(--gc-ink); }
.gc-pixel-strip button[aria-pressed=true] { background:var(--gc-accent); color:#171510; }
.gc-pixel-strip canvas { height:46px; width:auto; image-rendering:pixelated; }
.gc-pixel-full .gc-pixel-stage { height:calc(100dvh - 105px); }
.gc-pixel-full .gc-pixel-pad { display:none; }
.gc-dialog-backdrop { position:fixed; inset:0; z-index:15; display:grid; place-items:center; padding:20px; background:#0007; }
.gc-dialog { display:grid; width:min(100%,350px); max-height:85dvh; overflow:auto; background:var(--gc-card); padding:16px; gap:9px; border:1.5px solid var(--gc-edge); border-radius:6px; }
.gc-dialog h2 { margin:0; font-size:18px; }
.gc-dialog button { min-height:42px; background:var(--gc-card); color:var(--gc-ink); border:1px solid var(--gc-edge); }
.gc-shelf .gc-dialog form { display:grid; gap:9px; }
.gc-shelf .gc-dialog label { display:grid; gap:4px; }
.gc-shelf .gc-dialog a { display:grid; place-items:center; padding:9px; background:var(--gc-card); border:1px solid var(--gc-edge); color:var(--gc-ink); text-decoration:none; }
.gc-bottom-menu { align-items:end; padding:0; }
.gc-bottom-menu .gc-dialog { width:min(100%,680px); padding-bottom:max(18px,env(safe-area-inset-bottom)); }
.gc-design-title { text-align:center; margin:10px; font-size:20px; }
.gc-detail-preview { position:relative; width:min(70%,350px); margin:0 auto 12px; }
.gc-detail-preview canvas { display:block; width:100%; height:auto; }
.gc-detail-preview a { position:absolute; bottom:-10px; right:-10px; padding:7px 9px; background:var(--gc-accent); color:#181813; text-decoration:none; border:1px solid var(--gc-edge); }
.gc-shelf .gc-device-apply { width:calc(100% - 24px); margin:18px 12px; min-height:44px; }
#guest-content-status button { display:block; margin-top:6px; min-height:40px; color:var(--gc-ink); background:var(--gc-page); border:1px solid var(--gc-edge); }
.gc-pixel-pad .gc-pixel-background { justify-self:start; min-height:36px; padding:4px 9px; background:var(--gc-card); border:1px solid var(--gc-edge); color:var(--gc-ink); }
.gc-sticker-sheet[open] { position:fixed; inset:auto 0 0; width:min(100%,492px); height:42dvh; margin:0 auto; padding:0 4px env(safe-area-inset-bottom); max-width:100%; max-height:90dvh; border:0; border-radius:10px 10px 0 0; display:flex; flex-direction:column; color:var(--gc-ink); background:var(--gc-card); box-sizing:border-box; }
.gc-sticker-sheet::backdrop { background:rgb(0 0 0 / .53); }
.gc-sticker-handle { flex:none; margin:16px auto 15px; width:24px; height:3px; border-radius:3px; background:currentColor; opacity:.7; }
.gc-sticker-tabs { display:flex; flex:none; gap:4px; overflow:auto; scrollbar-width:none; min-height:40px; align-items:center; }
.gc-sticker-tabs button { flex:none; white-space:nowrap; border:0; padding:6px 10px; border-radius:16px; font:inherit; font-size:11px; color:inherit; background:transparent; }
.gc-sticker-tabs button[aria-selected=true] { background:#e5bf14; color:#171510; font-weight:650; }
.gc-sticker-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(56px,1fr)); overflow:auto; grid-auto-rows:max-content; align-content:start; gap:4px; }
.gc-sticker-gallery button { display:grid; place-items:center; aspect-ratio:1; min-width:0; padding:6px; border:0; border-radius:8px; background:transparent; color:inherit; }
.gc-sticker-gallery img { object-fit:contain; width:100%; height:100%; min-height:0; }
.gc-sticker-gallery .gc-sticker-upload { background:color-mix(in srgb,var(--gc-ink) 10%,var(--gc-card)); align-content:center; gap:4px; font-size:10px; }
.gc-sticker-upload span { font-size:18px; }
.gc-emoji-host { flex:1; min-height:0; }
.gc-photo-panel:has(.gc-preset-list) { max-height:37dvh; overflow:auto; }
.gc-photo-panel:has(input[type=range]) { max-height:39dvh; overflow:auto; }
.gc-preset-list { display:flex; overflow-x:auto; gap:5px; padding:3px 0; }
.gc-preset-list button { display:grid; justify-items:center; gap:3px; min-width:61px; font-size:11px; }
.gc-preset-list canvas { width:46px; height:46px; }
.gc-preset-list button[aria-pressed=true] { background:var(--gc-accent); color:#171610; }

.gc-template-form fieldset { min-width:0; margin:0; padding:8px; border:1px solid var(--gc-line,#b9b5a9); }
.gc-template-form textarea { min-width:0; width:100%; }

.gc-dither-sheet {
  position:fixed; inset:auto 0 0; width:100%; max-width:none; height:94dvh; max-height:94dvh;
  margin:0; padding:0; border:0; border-radius:16px 16px 0 0; background:var(--gc-card); color:var(--gc-ink);
}
.gc-dither-sheet::backdrop,.gc-dither-full::backdrop {background:rgb(0 0 0 / 52%)}
.gc-dither-body {width:min(100%,720px);height:100%;margin:auto;display:flex;flex-direction:column;padding:0 4px max(8px,env(safe-area-inset-bottom));box-sizing:border-box}
.gc-dither-head {display:grid;justify-items:center;padding:8px 0 6px;gap:6px;touch-action:none}
.gc-dither-handle {height:4px;width:32px;border-radius:2px;background:var(--gc-shadow)}
.gc-dither-body h2 {margin:0;text-align:center;font:600 19px/1.4 -apple-system,sans-serif}
.gc-dither-scroll {min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;text-align:center}
.gc-dither-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.gc-dither-tile {aspect-ratio:.61;display:flex;flex-direction:column;min-height:0;min-width:0}
.gc-dither-image {display:grid;place-items:center;width:100%;min-height:0;flex:1;background:transparent;border:0;padding:0;overflow:hidden}
.gc-dither-image canvas,.gc-dither-full canvas {max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.gc-dither-option {display:flex;align-items:center;justify-content:flex-end;min-height:28px;gap:6px;font:500 14px/1.2 -apple-system,sans-serif}
.gc-dither-option input {width:18px;height:18px;margin:0 4px;accent-color:var(--gc-ink)}
.gc-dither-scroll:has(.gc-dither-progress),.gc-dither-scroll:has(>p) {display:grid;align-content:center;justify-items:center}
.gc-dither-progress {width:32px;height:32px;border:3px solid transparent;border-top-color:var(--gc-ink);border-right-color:var(--gc-ink);border-radius:50%;animation:gc-dither-spin .8s linear infinite}
@keyframes gc-dither-spin {to {transform:rotate(360deg)}}
.gc-dither-full {position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:#fff}
.gc-dither-full[open] {display:grid;place-items:center;overflow:hidden;touch-action:none}

.gc-photo[data-painting] {grid-template-rows:minmax(0,1fr) auto auto;background:var(--gc-card)}
.gc-photo[data-painting]>.gc-bar,.gc-photo[data-painting]>.gc-photo-tools {display:none}
.gc-photo[data-painting]>.gc-photo-stage {grid-row:1}
.gc-paint-bar {display:flex;align-items:center;justify-content:space-between;background:var(--gc-card);border-top:1px solid var(--gc-page)}
.gc-paint-bar[hidden] {display:none}
.gc-paint-bar button {border:0;background:transparent;color:var(--gc-ink);font:22px/1 system-ui;min-width:40px;min-height:44px}
.gc-paint-bar button:disabled {opacity:.32}
.gc-paint-bar [data-paint-accept] {color:var(--gc-accent)}
.gc-paint-bar>span {display:flex;align-items:center;gap:2px;border-radius:6px;background:var(--gc-page)}
.gc-photo[data-painting] .gc-photo-panel {padding:2px 5px max(2px,env(safe-area-inset-bottom));overflow:visible;max-height:none}
.gc-paint-groups,.gc-paint-modes,.gc-paint-sliders,.gc-paint-colors {display:flex;align-items:center}
.gc-photo-panel .gc-paint-groups button {min-height:30px;margin:2px;padding:3px 10px;border-radius:5px}
.gc-paint-groups [aria-pressed=true] {background:var(--gc-accent);color:#181813}
.gc-paint-groups [aria-pressed=true]::before {content:'✓ ' / '';font-size:.85em}
.gc-photo-panel .gc-paint-modes button {flex:1;min-width:0;min-height:46px;margin:0;padding:2px;border:0;display:grid;justify-items:center;align-content:center;gap:3px;font:inherit;font-size:12px;line-height:1.1;background:transparent}
.gc-paint-modes button b {font:20px/1 system-ui}
.gc-paint-modes button[aria-pressed=true] {color:var(--gc-accent)}
.gc-paint-sliders {gap:8px}
.gc-photo-panel [data-paint-fill] {min-width:34px;min-height:32px;margin:0;padding:3px;border:0;font-size:19px}
.gc-photo-panel [data-paint-fill][aria-pressed=true] {background:var(--gc-page)}
.gc-paint-sliders label {flex:1;display:flex;align-items:center;gap:4px;min-width:0}
.gc-photo-panel .gc-paint-sliders input {flex:1;min-width:0;min-height:26px;margin:1px;accent-color:var(--gc-accent)}
.gc-paint-colors {min-height:34px;background:var(--gc-page);border-radius:6px;justify-content:space-around}
.gc-photo-panel .gc-paint-colors button,.gc-paint-custom {box-sizing:border-box;width:21px;height:21px;min-height:0;margin:1px;padding:0;border:1px solid var(--gc-shadow);border-radius:50%}
.gc-paint-colors [aria-pressed=true] {outline:2px solid var(--gc-ink);outline-offset:2px}
.gc-paint-custom {display:block;position:relative;background:conic-gradient(red,yellow,lime,aqua,blue,magenta,red);overflow:hidden}
.gc-photo-panel .gc-paint-custom input {position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0}

@font-face { font-family:GuestTuneIcons;src:url("./guest-assets/fonts/MaterialIcons-Regular.otf") format("opentype");font-display:block; }
.gc-tune-actions,.gc-tune-tabs,.gc-tune-adjust { display:flex;align-items:center;gap:5px; }
.gc-tune-actions,.gc-tune-tabs { overflow-x:auto; }
.gc-tune-actions button,.gc-tune-actions select { flex:none; }
.gc-tune-adjust { position:relative;justify-content:center; }
.gc-tune-adjust input { width:min(65%,480px);accent-color:#dbb323; }
.gc-tune-adjust output { position:absolute;right:8px;font-variant-numeric:tabular-nums; }
.gc-tune-tabs { padding-block:3px; }
.gc-tune-tabs button { flex:1 0 auto;display:grid;justify-items:center;border:0;background:none;font-size:11px;gap:3px;margin:0;padding:4px 7px; }
.gc-tune-tabs button span { font:20px/1 GuestTuneIcons; }
.gc-tune-tabs [aria-selected=true],.gc-tune-actions [aria-pressed=true] { color:#ad850c; }
.gc-tune-dialog { border:1px solid var(--gc-edge);border-radius:12px;background:var(--gc-card);color:var(--gc-ink); }
.gc-tune-dialog input { display:block; }
@font-face {font-family:'Guest Paint Icons';src:url('guest-assets/fonts/MaterialIcons-Regular.otf') format('opentype');font-display:block}
.gc-photo .gc-paint-glyph {font-family:'Guest Paint Icons';font-weight:normal}

.gc-photo-tools .gc-photo-sticker-icon { display:inline-block; position:relative; width:1em; height:1em; }
.gc-photo-sticker-icon::before,.gc-photo-sticker-icon::after { content:""; position:absolute; inset:0; background:currentColor; }
.gc-photo-sticker-icon::before { clip-path:polygon(2% 15%,65% 2%,70% 12%,13% 24%,17% 78%,12% 73%); }
.gc-photo-sticker-icon::after { clip-path:polygon(evenodd,24% 24%,93% 24%,93% 73%,72% 94%,24% 94%,24% 24%,34% 34%,34% 84%,65% 84%,65% 67%,83% 67%,83% 34%,34% 34%); }
.gc-crop[open] { --crop-top:max(20px,env(safe-area-inset-top)); position:fixed; inset:var(--crop-top) 0 0; width:100%; max-width:none; height:calc(100dvh - var(--crop-top)); max-height:none; margin:0; padding:0; border:0; border-radius:12px 12px 0 0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; background:var(--gc-card); color:var(--gc-ink); }
.gc-crop::backdrop { background:rgb(0 0 0 / .45); }
.gc-crop header,.gc-crop footer { display:flex; align-items:center; }
.gc-crop header { min-height:56px; background:color-mix(in srgb,var(--gc-card) 88%,var(--gc-ink)); border-bottom:1px solid var(--gc-edge); }
.gc-crop header span { flex:1; }
.gc-crop footer { min-height:56px; justify-content:center; padding-bottom:env(safe-area-inset-bottom); }
.gc-crop button { min-width:48px; min-height:44px; padding:0; border:0; background:transparent; color:inherit; font:inherit; }
.gc-crop button:disabled { opacity:.35; }
.gc-crop b { display:block; font-size:21px; }
.gc-crop footer button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; flex:0 0 min(calc(100% / var(--crop-tools)),calc(500px / var(--crop-tools))); font-size:11px; }
.gc-crop-stage { position:relative; overflow:hidden; background:var(--gc-card); touch-action:none; }
.gc-crop-stage canvas,.gc-crop-frame { position:absolute; max-width:none; max-height:none; }
.gc-crop-frame { box-sizing:border-box; border:1px solid #e5bf14; box-shadow:0 0 0 5000px rgb(0 0 0 / .70); container-type:inline-size; }
.gc-crop-frame i { position:absolute; width:8%; height:5.333%; border:solid #e5bf14; --corner-stroke:clamp(3px,1.5cqw,8px); }
.gc-crop-frame [data-corner=nw] { top:0;left:0;border-width:var(--corner-stroke) 0 0 var(--corner-stroke); }
.gc-crop-frame [data-corner=ne] { top:0;right:0;border-width:var(--corner-stroke) var(--corner-stroke) 0 0; }
.gc-crop-frame [data-corner=sw] { bottom:0;left:0;border-width:0 0 var(--corner-stroke) var(--corner-stroke); }
.gc-crop-frame [data-corner=se] { bottom:0;right:0;border-width:0 var(--corner-stroke) var(--corner-stroke) 0; }
.gc-crop-status:not(:empty) { position:absolute; bottom:8px; left:0; right:0; margin:auto; width:fit-content; padding:6px 12px; background:var(--gc-card); }
