.comic-surface {
  --ink: #0b1633;
  --blue: #2462f4;
  --electric: #2462f4;
  --purple: #2556bd;
  --ice: #7ee7e0;
  --violet: #5ed0c8;
  --pale: #e8fbf8;
  --paper: #fcfdff;
  --line: #cfe0f2;
  --text: #0b1633;
  --muted: #4d6080;
  --ease: cubic-bezier(.21,.72,.32,1);
  font-family: Geist,"Noto Sans SC","Microsoft YaHei UI",system-ui,sans-serif;
  color: var(--ink);
}
.comic-surface, .comic-surface *, .comic-surface *::before, .comic-surface *::after { box-sizing: border-box; }
.comic-surface [hidden] { display: none !important; }
.comic-surface :where(button,input):not(:where(.comic-widget *)) { font: inherit; }
.comic-surface button { cursor: pointer; }
.comic-surface :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.comic-surface .ui { position: relative; z-index: 1; max-width: 86%; }
.comic-surface .drawer-ui { position: absolute; max-width: none; }
.comic-surface .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.comic-surface.no-motion *, .comic-surface.no-motion *::before, .comic-surface.no-motion *::after {
  transition: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .comic-surface *, .comic-surface *::before, .comic-surface *::after {
    transition: none !important;
    animation: none !important;
  }
}

:where(.comic-surface) .rim, :where(.comic-surface) .compact, :where(.comic-surface) .chip, :where(.comic-surface) .day, :where(.comic-surface) .menu-action{transition:background-color 105ms,box-shadow 125ms var(--ease),transform 125ms var(--ease)}
:where(.comic-surface) .rim{border:2px solid var(--ink);border-radius:8px;background:#fff;color:var(--ink);box-shadow:3px 4px 0 var(--ice)}
:where(.comic-surface) .rim.button, :where(.comic-surface) .compact{min-height:40px;padding:0 12px;font-size:13px;font-weight:730}
:where(.comic-surface) .rim.button:active, :where(.comic-surface) .compact:active{transform:translate(2px,2px) scale(.97);box-shadow:1px 1px 0 var(--ice)}
:where(.comic-surface) .compact{min-width:40px;padding:0 5px;border:2px solid var(--ink);border-radius:7px;background:#fff;color:var(--ink);box-shadow:2px 3px 0 var(--ice)}
:where(.comic-surface) .compact:disabled, :where(.comic-surface) .day:disabled{opacity:.4;cursor:default}
:where(.comic-surface) .rim.primary, :where(.comic-surface) .compact[aria-current]{background:#1945aa;color:white}
:where(.comic-surface) .compact[aria-current]{border-color:var(--ink)}
:where(.comic-surface) .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:where(.comic-surface) .hint{display:block;margin:8px 1px 0;color:var(--muted);font-size:12px;line-height:1.4}
:where(.comic-surface) .hint[data-good]{color:#19499e}
:where(.comic-surface) .hint[data-bad]{color:#92363b}
:where(.comic-surface) .kicker{margin:0 0 7px;color:#385984;font-size:12px;font-weight:675}
:where(.comic-surface) .checkmark{font-weight:750;color:#1958cd}
:where(.comic-surface) .icon{display:inline-block;vertical-align:middle;font-size:17px;line-height:1}
:where(.comic-surface) .fields{width:min(252px,86%)}
:where(.comic-surface) .fields label{display:block;margin-bottom:6px;font-size:13px;font-weight:675}
:where(.comic-surface) .input-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;min-height:45px;overflow:hidden}
:where(.comic-surface) .input-shell:focus-within{border-color:#2058cd;box-shadow:3px 4px 0 #5ed0c8}
:where(.comic-surface) .input-shell input{align-self:stretch;min-width:0;width:100%;padding:8px 11px;border:0;outline:0;color:var(--ink);background:transparent;font-size:14px}
:where(.comic-surface) .input-shell button{align-self:stretch;border:0;border-left:1px solid #d4f4f1;background:#e8fbf8;color:#1549ac;font-size:21px;font-weight:730}
:where(.comic-surface) .input-shell button:hover{background:#d4f4f1}
:where(.comic-surface) .input-shell::after{position:absolute;left:0;bottom:0;width:35%;height:2px;background:#ffc43a;content:"";pointer-events:none;opacity:0}
:where(.comic-surface) .input-shell:focus-within::after{animation:comic-underline-swipe .42s var(--ease)}
@keyframes comic-underline-swipe{0%{transform:translateX(-100%);opacity:0}35%{opacity:1}100%{transform:translateX(290%);opacity:0}}
:where(.comic-surface) .radio-set{width:min(234px,85%);margin:0;padding:0;border:0}
:where(.comic-surface) .radio-set legend{margin:0 0 6px;font-size:13px;font-weight:700}
:where(.comic-surface) .radio-list{position:relative;padding:3px;border-radius:9px;overflow:hidden}
:where(.comic-surface) .radio-highlight{position:absolute;inset:3px 3px auto;z-index:0;height:41px;border:1px solid #b8efe8;border-radius:5px;background:#e8fbf8;transform:translateY(calc(var(--row,0) * 41px))}
:where(.comic-surface) .radio-row{position:relative;z-index:1;display:flex;align-items:center;gap:9px;height:41px;padding:0 9px;color:var(--ink);font-size:13px;cursor:pointer}
:where(.comic-surface) .radio-row input{width:17px;height:17px;margin:0;accent-color:#245af0}
:where(.comic-surface) .stepper-ui{text-align:center}
:where(.comic-surface) .stepper{display:flex;justify-content:center;align-items:center;gap:11px}
:where(.comic-surface) .digit-window{width:73px;height:45px;display:grid;place-items:center;overflow:hidden;font-variant-numeric:tabular-nums}
:where(.comic-surface) .digit{display:block;font-size:24px;font-weight:750}
:where(.comic-surface) .stepper-ui .hint{text-align:center}
:where(.comic-surface) .calendar{width:min(248px,88%);padding:9px 9px 7px}
:where(.comic-surface) .calendar-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}
:where(.comic-surface) .calendar-head strong{font-size:13px;font-variant-numeric:tabular-nums}
:where(.comic-surface) .calendar-head button{display:grid;place-items:center;min-height:28px;min-width:31px;padding:0;border:1px solid #b0eee8;border-radius:5px;background:#f3fbfb;color:#1b469b;font-size:16px}
:where(.comic-surface) .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;overflow:hidden}
:where(.comic-surface) .week{display:grid;place-items:center;min-height:19px;color:#637494;font-size:10px}
:where(.comic-surface) .day{display:grid;place-items:center;min-height:28px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums}
:where(.comic-surface) .day:hover{background:#e8fbf8}
:where(.comic-surface) .day[aria-pressed="true"]{border-color:#113c9b;background:#285cef;color:white;font-weight:750}
:where(.comic-surface) .calendar .hint{margin-top:4px;font-size:11px}
:where(.comic-surface) .pages-ui{width:min(245px,86%)}
:where(.comic-surface) .pages-preview{display:grid;align-content:center;gap:5px;min-height:84px;padding:11px 13px;margin-bottom:13px;background:linear-gradient(145deg,#fff 58%,#e8fbf8 58%)}
:where(.comic-surface) .pages-preview strong{font-size:15px}
:where(.comic-surface) .pages-preview span{color:#4d6286;font-size:11px}
:where(.comic-surface) .pages{display:flex;justify-content:center;gap:7px}
:where(.comic-surface) .pages .compact{min-height:34px;min-width:33px;font-variant-numeric:tabular-nums}
:where(.comic-surface) .carousel{width:min(253px,88%)}
:where(.comic-surface) .viewport{position:relative;height:112px;padding:0;overflow:hidden;touch-action:pan-y;cursor:grab}
:where(.comic-surface) .viewport:active{cursor:grabbing}
:where(.comic-surface) .reel{display:flex;width:100%;height:100%;transform:translateX(calc(var(--slide,0) * -100% + var(--drag,0px)));transition:transform 370ms var(--ease)}
:where(.comic-surface) .reel[data-dragging]{transition:none}
:where(.comic-surface) .slide{flex:0 0 100%;display:grid;place-items:center;background:var(--print,#d4f4f1);color:var(--text)}
:where(.comic-surface) .slide strong{padding:6px 13px;border:1.5px solid var(--ink);border-radius:6px;background:white;box-shadow:3px 3px 0 var(--ice);font-size:14px}
:where(.comic-surface) .carousel-controls{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
:where(.comic-surface) .carousel-controls span{font-size:12px;font-weight:700;color:#395984;font-variant-numeric:tabular-nums}
:where(.comic-surface) .carousel-controls .compact{min-width:33px;min-height:34px}
:where(.comic-surface) .menu-ui{align-self:start;width:min(219px,85%);margin-top:51px}
:where(.comic-surface) .menu-anchor{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:0 10px;text-align:left}
:where(.comic-surface) .menu-anchor .dots{font-size:19px;line-height:1;letter-spacing:2px}
:where(.comic-surface) .menu-items{position:absolute;top:calc(100% + 7px);z-index:2;width:100%;display:grid;gap:1px;padding:4px;transform-origin:top right}
:where(.comic-surface) .menu-action{display:flex;align-items:center;gap:9px;min-height:35px;padding:0 7px;border:0;border-radius:4px;background:white;color:var(--ink);font-size:13px;text-align:left}
:where(.comic-surface) .menu-action:hover, :where(.comic-surface) .menu-action:focus-visible{background:#e8fbf8}
:where(.comic-surface) .menu-action span{width:15px;text-align:center;font-size:15px;color:#234db1}
:where(.comic-surface) .menu-result{padding:5px 0 0}
:where(.comic-surface) .drawer-ui{position:absolute;inset:0;max-width:none;display:grid;place-items:center;overflow:hidden}
:where(.comic-surface) .drawer-panel{position:absolute;inset:0 0 0 auto;z-index:2;display:grid;grid-template-rows:auto 1fr;width:min(226px,75%);padding:12px 10px;border:2px solid var(--ink);border-right:0;border-radius:9px 0 0 9px;background:#f5fbfb;box-shadow:-4px 0 0 var(--ice);transform:translateX(calc(100% + 7px))}
:where(.comic-surface) .drawer-panel[data-open]{transform:none}
:where(.comic-surface) .drawer-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 2px 8px;border-bottom:1px solid #d4f4f1}
:where(.comic-surface) .drawer-title strong{font-size:15px}
:where(.comic-surface) .drawer-title .compact{min-width:32px;min-height:32px;box-shadow:none}
:where(.comic-surface) .layers{display:grid;align-content:start;gap:7px;padding-top:12px}
:where(.comic-surface) .layer{display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid #c6f3ee;border-radius:5px;background:white;color:#294d8d;font-size:12px}
:where(.comic-surface) .layer input{margin:0;accent-color:#245af0}
:where(.comic-surface) .tooltip-ui{padding-top:28px}
:where(.comic-surface) .help-trigger{width:45px;height:45px;border-radius:50%;font-size:22px}
:where(.comic-surface) .tooltip{position:absolute;left:50%;bottom:calc(100% + 8px);width:max-content;max-width:202px;padding:8px 11px;border:2px solid var(--ink);border-radius:8px;background:#fff;color:var(--ink);box-shadow:3px 4px 0 var(--ice);font-size:13px;line-height:1.35;transform:translateX(-50%);transform-origin:bottom center;pointer-events:none}
:where(.comic-surface) .tooltip::after{position:absolute;content:"";width:9px;height:9px;left:calc(50% - 5px);bottom:-6px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);background:white;transform:rotate(45deg)}
:where(.comic-surface) .tags-ui{width:min(248px,85%)}
:where(.comic-surface) .tag-bowl{display:flex;align-items:center;align-content:start;flex-wrap:wrap;gap:5px;min-height:49px;padding:6px}
:where(.comic-surface) .chip{display:inline-flex;align-items:center;gap:2px;max-width:100%;min-height:27px;padding-inline:6px 2px;border:1px solid #b5efe8;border-radius:5px;background:#e8fbf8;font-size:12px;color:var(--ink)}
:where(.comic-surface) .chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(.comic-surface) .chip button{display:grid;place-items:center;min-width:24px;min-height:25px;padding:0;border:0;border-radius:3px;background:transparent;color:#2556ad;font-size:15px}
:where(.comic-surface) .chip button:hover{background:#d4f4f1}
:where(.comic-surface) .tag-bowl input{flex:1 1 70px;min-width:55px;width:70px;min-height:32px;padding:0 4px;border:0;color:var(--ink);background:transparent;font-size:13px}
:where(.comic-surface) .tag-bowl input:focus-visible{outline-offset:0}
:where(.comic-surface) .skeleton-ui{width:min(247px,85%);text-align:center}
:where(.comic-surface) .skeleton-card{position:relative;display:grid;grid-template-columns:64px 1fr;align-items:center;gap:11px;min-height:100px;margin-bottom:13px;padding:9px;text-align:left;overflow:hidden}
:where(.comic-surface) .skeleton-avatar{height:62px;border:1px solid #b8efe8;border-radius:6px;background:repeating-linear-gradient(143deg,#c6f3ee 0 9px,#e8fbf8 9px 16px)}
:where(.comic-surface) .skeleton-card strong{display:block;font-size:14px}
:where(.comic-surface) .skeleton-card small{color:var(--muted);font-size:11px}
:where(.comic-surface) .skeleton-lines{display:grid;gap:7px}
:where(.comic-surface) .skeleton-lines span{display:block;width:var(--length);height:10px;border-radius:5px;background:#d4f4f1}
:where(.comic-surface) .skeleton-card[data-loading] .skeleton-avatar{background:#d4f4f1}
:where(.comic-surface) .skeleton-card[data-loading]::after{position:absolute;content:"";inset:0 -30% 0 -75%;background:linear-gradient(105deg,transparent 31%,#ffffffbd 48%,transparent 64%);transform:translateX(-36%);animation:comic-skeleton-sweep .79s linear infinite}
@keyframes comic-skeleton-sweep{to{transform:translateX(62%)}}
:where(.comic-surface) .table-ui{width:min(257px,90%)}
:where(.comic-surface) .table-clip{overflow:hidden}
:where(.comic-surface) .table-clip table{width:100%;border-collapse:collapse;color:var(--ink);font-size:12px}
:where(.comic-surface) .table-clip th{padding:3px 7px;background:#e8fbf8;text-align:left}
:where(.comic-surface) .table-clip th:last-child, :where(.comic-surface) .table-clip td:last-child{text-align:right}
:where(.comic-surface) .table-clip td{padding:8px 7px;border-top:1px solid #d4f4f1;background:white}
:where(.comic-surface) .table-clip td:last-child{font-variant-numeric:tabular-nums}
:where(.comic-surface) .sort-trigger{min-height:30px;padding:2px 0 2px 5px;border:0;background:transparent;color:#1a4aab;font-weight:750}
:where(.comic-surface) .sort-glyph{display:inline-block;min-width:12px;font-weight:800}

:where(.comic-surface) .chevron{ width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
:where(.comic-surface) .comic-action{ padding: 0 14px; min-height: 42px; border: 2.3px solid var(--ink); border-radius: 9px; background: white; color: var(--ink); box-shadow: 3px 4px 0 var(--violet); font-size: 14px; font-weight: 720; transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
:where(.comic-surface) .comic-action:active{ transform: translate(2px,3px) scale(.98); box-shadow: 1px 1px 0 var(--violet); }
:where(.comic-surface) .comic-action.primary{ background: var(--ink); color: white; }
:where(.comic-surface) .flat-button{ min-height: 42px; padding-inline: 10px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); background: transparent; font-size: 13px; }
:where(.comic-surface) .flat-button:hover{ background: #e8fbf8; }
:where(.comic-surface) .tab-sample{ width: min(246px, 87%); }
:where(.comic-surface) .tabs{ position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; gap: 0; border: 2.3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--violet); background: white; }
:where(.comic-surface) .tab-ink{ position: absolute; inset: 4px auto 4px 4px; width: calc((100% - 8px) / 3); border-radius: 6px; background: var(--ink); transform: translateX(calc(var(--selected, 0) * 100%)); }
:where(.comic-surface) .tabs button{ position: relative; min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
:where(.comic-surface) .tabs button[aria-selected="true"]{ color: white; }
:where(.comic-surface) .sample-panel{ height: 82px; margin-top: 14px; overflow: hidden; border: 1.7px solid var(--ink); border-radius: 8px; background: #e8fbf8; display: grid; place-items: center; }
:where(.comic-surface) .pattern{ width: 100%; height: 100%; clip-path: polygon(0 6%, 100% 0, 100% 96%, 0 100%); }
:where(.comic-surface) .pattern.lines{ background: repeating-linear-gradient(157deg, transparent 0 13px, #19448e 14px 15px, transparent 16px 21px), #f3fbfb; }
:where(.comic-surface) .pattern.dots{ background: radial-gradient(circle, #2556bd 1.9px, transparent 2.35px) 0 0/10px 10px, radial-gradient(circle, #2556bd 1.9px, transparent 2.35px) 5px 5px/10px 10px, #e8fbf8; }
:where(.comic-surface) .pattern.color{ background: linear-gradient(155deg, #b0d7ff 0 37%, #2462f4 37% 51%, #5ed0c8 51% 73%, #294fae 73%); }
:where(.comic-surface) .select-ui{ align-self: start; width: min(222px, 85%); margin-top: 44px; --swatch: #3973e6; }
:where(.comic-surface) .select-label{ display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
:where(.comic-surface) .select-trigger{ width: 100%; display: flex; align-items: center; gap: 9px; padding-inline: 12px; text-align: left; }
:where(.comic-surface) .select-trigger .chevron{ margin-left: auto; }
:where(.comic-surface) .swatch{ width: 17px; height: 17px; flex: none; border: 1.45px solid var(--ink); border-radius: 4px; background: var(--swatch); }
:where(.comic-surface) .options{
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  display: grid; padding: 4px; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 5px 0 var(--violet);
  background: white; transform-origin: top center; transform: translateY(-5px) scale(.95);
  opacity: 0; visibility: hidden;
  transition: transform 185ms var(--ease), opacity 145ms ease-out, visibility 145ms;
}
:where(.comic-surface) .select-ui[data-open="true"] .options{
  transform: none; opacity: 1; visibility: visible;
  transition-property: transform, opacity;
}
:where(.comic-surface) .option{ min-height: 37px; display: flex; align-items: center; gap: 9px; padding: 3px 7px; border: 0; border-radius: 6px; background: white; color: var(--ink); text-align: left; font-size: 13px; }
:where(.comic-surface) .option:hover, :where(.comic-surface) .option:focus-visible{ background: #e8fbf8; }
:where(.comic-surface) .option[aria-selected="true"]{ font-weight: 750; background: #e8fbf8; }
:where(.comic-surface) .option[aria-selected="true"]::after{ content: "✓"; margin-inline-start: auto; color: var(--ink); font-weight: 750; }
:where(.comic-surface) .accordion{ align-self: start; width: min(247px, 88%); margin-top: 43px; border: 2.3px solid var(--ink); border-radius: 10px; box-shadow: 4px 5px 0 var(--violet); background: white; }
:where(.comic-surface) .accordion-section + .accordion-section{ border-top: 1.6px solid var(--ink); }
:where(.comic-surface) .accordion-btn{ display: flex; position: relative; align-items: center; justify-content: space-between; width: 100%; min-height: 43px; padding: 0 13px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; font-size: 14px; font-weight: 725; }
:where(.comic-surface) .accordion-btn .chevron{ flex: none; transition: transform 190ms var(--ease); }
:where(.comic-surface) .accordion-btn[aria-expanded="true"] .chevron{ transform: translateY(2px) rotate(225deg); }
:where(.comic-surface) .accordion-pane{ display: grid; grid-template-rows: 0fr; opacity: .50; transition: grid-template-rows 400ms var(--ease), opacity 220ms ease-out; }
:where(.comic-surface) .accordion-btn[aria-expanded="true"] + .accordion-pane{ grid-template-rows: 1fr; opacity: 1; }
:where(.comic-surface) .accordion-clip{ overflow: hidden; perspective: 360px; }
:where(.comic-surface) .accordion-content{
  position: relative; display: grid; gap: 9px; margin: 0 8px 8px; padding: 11px 9px;
  border-top: 1px solid #b0eee8; border-radius: 0 0 6px 6px; background: #e8fbf8;
  color: #2a4c77; font-size: 12px;
  transform: rotateX(-22deg) translateY(-6px);
  transform-origin: top center;
  transition: transform 300ms var(--ease);
}
:where(.comic-surface) .accordion-btn[aria-expanded="true"] + .accordion-pane .accordion-content{ transform: none; }
:where(.comic-surface) .accordion-content::before{ position: absolute; content: ""; width: 19px; height: 17px; top: 0; right: 0; background: #6fd8e0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
:where(.comic-surface) .setting-row{ display: flex; align-items: center; justify-content: space-between; width: 100%; padding-right: 12px; }
:where(.comic-surface) .setting-row b{ color: var(--ink); font-weight: 675; }
:where(.comic-surface) .dialog-preview{ display: grid; justify-items: center; gap: 16px; }
:where(.comic-surface) .palette{ display: grid; width: 178px; height: 56px; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 2px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--violet); }
:where(.comic-surface) .palette span{ background: var(--color); }
:where(.comic-surface) .dialog-box{
  isolation: isolate; width: min(542px, calc(100vw - 16px)); max-height: calc(100dvh - 14px);
  min-height: min(373px, 88dvh); overflow: visible; padding: 4px;
  border: 0; background: transparent; color: var(--ink);
}
:where(.comic-surface) .dialog-box[open]{ display: grid; place-items: center; }
:where(.comic-surface) .dialog-paper{
  position: relative; z-index: 1; width: min(348px, calc(100vw - 36px)); padding: 22px;
  border: 2.6px solid var(--ink); border-radius: 12px; box-shadow: 7px 8px 0 #5ed0c8;
  background: white; color: var(--ink);
}
:where(.comic-surface) .dialog-box::backdrop{ background: #122c5e53; }
:where(.comic-surface) .dialog-box h2{ margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
:where(.comic-surface) .dialog-box p{ margin: 0 0 18px; color: #465977; font-size: 14px; }
:where(.comic-surface) .dialog-palette{ display: grid; grid-template-columns: repeat(5,1fr); height: 29px; margin-bottom: 18px; overflow: hidden; border: 1.7px solid var(--ink); border-radius: 6px; }
:where(.comic-surface) .dialog-palette span{ background: var(--color); }
:where(.comic-surface) .dialog-actions{ display: flex; align-items: center; justify-content: end; gap: 8px; }
:where(.comic-surface) .dialog-status{ min-height: 18px; color: var(--muted); font-size: 12px; }
:where(.comic-surface) .upload-ui{ width: min(247px, 87%); text-align: center; }
:where(.comic-surface) .upload-zone{
  width: 100%; min-height: 148px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 12px;
  border: 2px dashed #4b71bd; border-radius: 11px;
  color: var(--ink); background: #e8fbf8;
}
:where(.comic-surface) .upload-zone:hover, :where(.comic-surface) .upload-zone[data-over="true"]{ background: #d4f6f2; }
:where(.comic-surface) .upload-zone[data-ready="true"]{ border: 2px solid var(--ink); background: white; box-shadow: 4px 5px 0 var(--violet); }
:where(.comic-surface) .file-icon{ position: relative; width: 29px; height: 35px; border: 2px solid var(--ink); border-radius: 6px; background: white; box-shadow: 2px 3px 0 var(--violet); }
:where(.comic-surface) .file-icon::after{ position: absolute; content: ""; top: -2px; right: -2px; width: 11px; height: 11px; border-bottom: 1.7px solid var(--ink); border-left: 1.7px solid var(--ink); border-radius: 0 4px 0 2px; background: #b5efe8; }
:where(.comic-surface) .airborne-file{ position: absolute; z-index: 3; top: 35px; left: calc(50% - 15px); pointer-events: none; }
:where(.comic-surface) .airborne-file::before{ position: absolute; content: ""; inset: 15px 5px 8px; border-top: 2px solid var(--electric); border-bottom: 2px solid var(--violet); }
:where(.comic-surface) .upload-zone strong{ max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
:where(.comic-surface) .upload-zone small, :where(.comic-surface) .upload-status{ color: #45638c; font-size: 11px; }
:where(.comic-surface) .upload-status{ display: block; min-height: 14px; }
:where(.comic-surface) .upload-ui .flat-button{ min-height: 32px; margin: 3px 0; font-size: 12px; }
:where(.comic-surface) .rating{ position: relative; z-index: 1; display: grid; justify-items: center; gap: 11px; min-width: 0; }
:where(.comic-surface) .stars{ display: flex; gap: 1px; padding: 3px 4px; }
:where(.comic-surface) .star{ position: relative; display: grid; place-items: center; width: 44px; height: 48px; cursor: pointer; }
:where(.comic-surface) .star input{ position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
:where(.comic-surface) .star-shape{ position: relative; width: 35px; height: 35px; filter: drop-shadow(2px 2px 0 #5ed0c8); transition: transform 135ms var(--ease); }
:where(.comic-surface) .star-shape::before, :where(.comic-surface) .star-shape::after{
  position: absolute; content: ""; inset: 0; background: var(--ink);
  clip-path: polygon(50% 0, 65% 32%, 100% 37%, 75% 62%, 79% 98%, 50% 80%, 20% 98%, 24% 62%, 0 37%, 35% 32%);
}
:where(.comic-surface) .star-shape::after{ inset: 4px; background: white; }
:where(.comic-surface) .star[data-lit="true"] .star-shape::after{ background: #ffc43a; }
:where(.comic-surface) .star input:focus-visible + .star-shape{ outline: 3px solid var(--purple); outline-offset: 3px; }
:where(.comic-surface) .star:active .star-shape{ transform: scale(.89); }
:where(.comic-surface) .rating-output{ min-height: 23px; color: var(--ink); font-size: 14px; font-weight: 720; font-variant-numeric: tabular-nums; }
:where(.comic-surface) .rating legend{ text-align: center; font-size: 13px; font-weight: 680; }
:where(.comic-surface) .rating fieldset{ min-width: 0; margin: 0; padding: 0; border: 0; }

.comic-surface {
  display:grid; place-items:center; position:relative; isolation:isolate;
  width:100%; min-width:0; min-height:var(--comic-surface-height,240px);
}
.stage>.comic-surface { min-height:inherit; }
.comic-surface>.comic-widget { position:absolute; inset:0; }
.comic-surface>.comic-widget>.comic-control { top:8%; }
.comic-surface[data-component=progress]>.comic-widget>.comic-control { top:4%; }
.comic-surface[data-component=toast] .toast-trigger {
  position:absolute; z-index:2; top:19%; left:50%; transform:translateX(-50%);
  min-width:85px; font-style:italic;
}
.comic-surface[data-component=toast] .toast-trigger:hover:not(:active) { transform:translate(-50%,-2px); }
.comic-surface[data-component=toast] .toast-trigger:active { transform:translate(calc(-50% + 2px),2px) scale(.98); }
.toast-mount { position:absolute; inset:0; }
.toast-mount>.comic-widget>.comic-control { top:19%; }

/* Refined component motion */
.comic-surface .tooltip {
  bottom: calc(100% - 18px);
  padding: 10px 14px;
  max-width: min(220px, calc(100vw - 36px));
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  transform-origin: center calc(100% + 10px);
}
.tooltip-ship {
  position: absolute;
  left: calc(50% + 51px);
  bottom: calc(100% + 28px);
  width: 44px;
  height: 28px;
  z-index: 3;
  pointer-events: none;
}
.tooltip-ship svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tooltip-tractor, .tooltip-power-disc, .tractor-ring { opacity: 0; }
.tractor-ring { transform-origin: 32px 32px; }
