@font-face {
  font-family: "Cawei Playful";
  src: url('/cawei-playful.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  color: #224337;
  background: #edf8f1;
  --ink: #224337;
  --graphite: #15392c;
  --secondary: #45665a;
  --muted: #537165;
  --paper: #f9fffb;
  --line: #cce2d6;
  --strong-line: #9ebdae;
  --evergreen: #377f61;
  --mint: #b0ead1;
  --seafoam: #a9e3d8;
  --citrus: #f7edac;
  --error: #923852;
  --display: "Cawei Playful", "Yuanti SC", YouYuan, "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  --mono: Consolas, "Segoe UI Mono", "Microsoft YaHei UI", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; min-height: 100vh; position: relative; isolation: isolate; }
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(90deg, #3e856419 1px, transparent 1px), linear-gradient(#3e856419 1px, transparent 1px),
    linear-gradient(90deg, #3e856409 1px, transparent 1px), linear-gradient(#3e856409 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 16px 16px, 16px 16px;
  background-position: center top;
  mask-image: linear-gradient(#000 0%, #000b 61%, #0002 100%);
}
body::after { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; background: radial-gradient(ellipse at 86% 17%, #c3ebd276, transparent 49%); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:is(button, a, input, textarea, select, summary, pre):focus-visible { outline: 2px solid #368263; outline-offset: 4px; }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; }
.page-width { width: min(1190px, calc(100% - 90px)); margin-inline: auto; }
main { padding-bottom: 48px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site-header { border-bottom: 1px solid #c4dfd0; background: #ecf8f0ed; }
.masthead { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.24rem; letter-spacing: .015em; font-weight: 400; }
.wordmark-symbol { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 2px; transform: rotate(-8deg); }
.wordmark-symbol i { background: var(--ink); border-radius: 2px; }
.wordmark-symbol i:nth-child(2) { background: #8eccac; transform: translateY(-2px); }
.wordmark-symbol i:nth-child(3) { background: #77b99d; }
.wordmark-symbol i:nth-child(4) { border: 1px solid #96c0ac; background: transparent; }
.connection { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 11px; border: 1px solid #c0dccc; border-radius: 999px; color: var(--secondary); background: #f7fdf994; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #839f90; }
.connection[data-state="online"] .connection-dot { background: #307c5d; box-shadow: 0 0 0 3px #307c5d19; }
.connection[data-state="offline"] .connection-dot { background: #a04862; }
.local-connection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 22px; margin-top: 16px; padding: 17px 20px; border: 1px solid #b5d6c3; border-radius: 14px; background: #f4fcf6; box-shadow: 3px 3px 0 #d5ecdf; }
.local-connection h2 { font-family: var(--display); font-size: 1.28rem; font-weight: 400; margin-bottom: 5px; }
.local-connection p { color: var(--secondary); font-size: .88rem; line-height: 1.6; }
.local-connection code { color: var(--ink); font: .86rem var(--mono); white-space: nowrap; }
.local-connection .connection-feedback { margin-top: 5px; color: #315d48; }
.local-connection .connection-feedback[data-error="true"] { color: var(--error); }
.local-connection-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 11px; }
.local-connection-actions .download-app { text-decoration: none; }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 5vw, 57px); min-height: 326px; align-items: center; position: relative; padding: 28px 0 31px; }
.hero-text { min-width: 0; padding: 0 0 6px; }
h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(6.2rem, 12.2vw, 10.8rem); line-height: .98; color: #153a2b; position: relative; display: inline-block; }
h1 > span { display: inline-block; font-size: 0; vertical-align: baseline; width: .13em; height: .13em; border-radius: 49% 51% 48% 52%; background: #80bf9e; margin-left: .15em; transform: translateY(-.03em) rotate(-10deg); }
.hero h1 > span { font-size: 1em; color: transparent; width: .135em; height: .135em; line-height: 0; overflow: hidden; margin-left: .16em; }
.hero p { margin-top: 25px; line-height: 1.66; font-size: 1.04rem; color: var(--secondary); letter-spacing: .008em; }
.hero p::before { display: inline-block; content: ""; width: 23px; height: 3px; border-radius: 4px; background: #7dbd9f; vertical-align: middle; margin-right: 10px; }

.motion-stage {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  width: min(100%, 505px);
  justify-self: end;
  align-self: center;
  border: 1px solid #42725f;
  border-radius: 14px;
  background: var(--graphite);
  box-shadow: 6px 6px 0 #cbe9da;
  isolation: isolate;
  touch-action: pan-y;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.motion-stage[data-hovered="true"] { border-color: #79c4a1; box-shadow: 7px 7px 0 #b9dec9; }
.motion-stage::before, .motion-stage::after { position: absolute; z-index: 5; width: 12px; height: 12px; pointer-events: none; content: ""; }
.motion-stage::before { top: -5px; left: -5px; border-top: 1px solid #9acbb0; border-left: 1px solid #9acbb0; }
.motion-stage::after { bottom: -5px; right: -5px; border-bottom: 1px solid #9acbb0; border-right: 1px solid #9acbb0; }
.stage-header { display: flex; justify-content: space-between; align-items: center; height: 41px; gap: 10px; padding: 0 15px; background: #204839; color: #f2fbf6; border-bottom: 1px solid #48816b; border-radius: 13px 13px 0 0; font-size: .85rem; font-weight: 650; letter-spacing: .035em; }
.stage-header > span:first-child { display: flex; align-items: center; gap: 8px; }
.stage-header > span:first-child::before { width: 7px; height: 7px; border-radius: 2px; background: var(--seafoam); content: ""; transform: rotate(12deg); }
#previewPeriod { font-family: var(--mono); font-weight: 600; letter-spacing: 0; color: #ddf5e8; font-size: .84rem; }
.stage-board {
  min-height: 218px;
  position: relative;
  perspective: 760px;
  transform-style: preserve-3d;
  border-radius: 0 0 13px 13px;
  isolation: isolate;
  overflow: hidden;
  background-image: linear-gradient(90deg, #8acba71e 1px, transparent 1px), linear-gradient(#8acba71e 1px, transparent 1px), radial-gradient(ellipse at 55% 59%, #33634e, #1b4033 74%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  background-position: center center;
}
.stage-board::before { position: absolute; inset: 9px; content: ""; border: 1px solid #95d0af42; border-radius: 7px; pointer-events: none; }
.stage-board::after { position: absolute; inset: 13% 10px auto; content: ""; height: 1px; z-index: 4; opacity: 0; background: linear-gradient(90deg, transparent, #d0fff0a3, transparent); pointer-events: none; animation: stage-scan 7s ease-in-out infinite; }
@keyframes stage-scan { 0%, 43% { opacity: 0; transform: translateY(0); } 50% { opacity: .56; } 83%,100% { opacity: 0; transform: translateY(126px); } }
.stage-cross { position: absolute; width: 11px; height: 11px; color: #8ebba4; opacity: .8; z-index: 3; pointer-events: none; }
.stage-cross::before, .stage-cross::after { position: absolute; content: ""; background: currentColor; }
.stage-cross::before { width: 100%; height: 1px; inset: 5px 0 auto; }
.stage-cross::after { height: 100%; width: 1px; inset: 0 auto 0 5px; }
.stage-cross-top { top: 13px; right: 15px; }.stage-cross-bottom { left: 15px; bottom: 15px; }
.preview-plane {
  --tilt: 0deg;
  --gain-x: 0;
  --gain-y: 0;
  position: absolute;
  border: 1px solid #28624c;
  border-radius: 11px;
  transform: translate3d(calc(var(--pointer-x) * var(--gain-x)), calc(var(--pointer-y) * var(--gain-y)), 0) rotate(var(--tilt));
  transform-origin: center;
  transition: transform .28s cubic-bezier(.21,.69,.42,1), box-shadow .2s ease, filter .2s ease, opacity .2s ease;
  box-shadow: 5px 7px 0 #0c2a2069;
  color: #20463b;
}
.motion-stage[data-hovered="true"] .preview-plane { transition-duration: .12s, .2s, .2s, .2s; }
.preview-plane[data-selected="false"] { filter: saturate(.66); opacity: .8; }
.preview-plane[data-focused="true"] { box-shadow: 0 0 0 2px #f8fff9, 5px 7px 0 #0c2a2069; filter: saturate(1); opacity: 1; }
.plane-label { display: block; margin: 0 0 8px; font-size: .78rem; line-height: 1; font-weight: 800; letter-spacing: .11em; }
.plane-video { --tilt: 8deg; --gain-x: -.17; --gain-y: -.15; inset: 38px auto auto 61%; width: 32%; height: 131px; padding: 13px 11px; z-index: 1; background: var(--citrus); }
.plane-video .plane-label { text-align: right; }
.video-pattern { position: relative; min-width: 0; height: 66px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 7px; border: 1px solid #827e48; border-radius: 6px; overflow: hidden; background: linear-gradient(to bottom, #e5df8760, #f7f3ad30), #f7edaf; }
.video-pattern::before { position: absolute; inset: auto 0 50%; height: 1px; content: ""; background: #756f478a; }
.video-pattern i { width: 4px; z-index: 1; height: 16px; border-radius: 3px; background: #806f46; }
.video-pattern i:nth-child(2n) { height: 24px; }.video-pattern i:nth-child(3n) { height: 39px; }.video-pattern i:nth-child(5n) { height: 48px; }
.plane-images { --tilt: -8deg; --gain-x: .14; --gain-y: -.28; inset: 35px auto auto 37%; width: 40%; height: 147px; padding: 13px 12px; z-index: 2; background: var(--seafoam); }
.plane-images .plane-label { text-align: right; }
.image-pattern { position: relative; height: 82px; overflow: hidden; border: 1px solid #52978a; border-radius: 6px; background: radial-gradient(circle at 77% 22%, #e1f7e9 0 7px, transparent 7.5px), #8bcfc0; }
.image-pattern::before, .image-pattern::after { position: absolute; content: ""; inset: 6% -3% 0; }
.image-pattern::before { background: #609f90; clip-path: polygon(0 100%, 41% 31%, 54% 59%, 75% 21%, 100% 100%); }
.image-pattern::after { background: #35786d; clip-path: polygon(20% 100%, 37% 61%, 49% 84%, 78% 45%, 100% 100%); }
.image-pattern i { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(90deg, #f3fff94c 1px, transparent 1px), linear-gradient(#f3fff94c 1px, transparent 1px); background-size: 12px 12px; }
.plane-text { --tilt: -4deg; --gain-x: .47; --gain-y: .35; inset: 61px auto auto 8%; width: 47%; height: 123px; padding: 13px 13px; z-index: 3; background: var(--mint); }
.preview-keywords { display: flex; align-items: center; gap: 4px; min-height: 28px; margin-top: 10px; overflow: hidden; }
.preview-token { white-space: nowrap; display: block; flex: 0 1 auto; min-width: 0; padding: 3px 7px; border: 1px solid #6da992; border-radius: 999px; background: #e7f9ee; font-size: clamp(.7rem, 1.22vw, .91rem); font-weight: 750; text-overflow: ellipsis; overflow: hidden; }
.preview-more { flex-shrink: 0; padding-inline: 4px; font-size: .71rem; }
.plane-rules { display: grid; gap: 6px; margin-top: 9px; }
.plane-rules > i { width: 83%; height: 1px; background: #77ac95; }.plane-rules > i:nth-child(2) { width: 62%; }

.paper-card { border: 1px solid var(--strong-line); border-radius: 16px; background: var(--paper); box-shadow: 5px 5px 0 #cfe8d8; }
.collector-form { margin: 0; }
.card-heading { min-height: 56px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #e6f6eb; border-bottom: 1px solid #b0d4c0; border-radius: 15px 15px 0 0; }
.card-heading h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; font-weight: 400; }
.card-heading h2::before { content: ""; width: 7px; height: 13px; border-radius: 999px; background: #549b74; }
.paper-fold { width: 13px; height: 13px; position: relative; border-top: 1px solid #74ac92; border-right: 1px solid #74ac92; }
.paper-fold::after { position: absolute; inset: 3px 3px auto auto; width: 4px; height: 4px; background: #acd7bf; content: ""; }
.form-row { margin: 0 25px; }
.keyword-row { padding: 20px 0 17px; }
.form-columns { display: grid; grid-template-columns: minmax(235px, .86fr) minmax(0, 1.14fr); gap: 31px; padding: 15px 0 20px; border-top: 1px solid #d8ebe1; }
.field { min-width: 0; padding: 0; margin: 0; border: 0; }
.field > label, .field > legend { display: block; margin: 0 0 8px; padding: 0; font-size: .89rem; font-weight: 750; color: #29463a; }
.date-fields { display: grid; grid-template-columns: 1.13fr .87fr; gap: 9px; }
.select-shell { position: relative; min-width: 0; }
.select-shell::after { content: ""; position: absolute; top: 16px; right: 14px; width: 7px; height: 7px; border-right: 1.5px solid #3d6a58; border-bottom: 1.5px solid #3d6a58; transform: rotate(45deg); pointer-events: none; }
:is(input[type="text"], textarea, select) { width: 100%; min-width: 0; border: 1px solid #97b9ab; border-radius: 9px; background: #fff; color: #203d32; font-size: .95rem; line-height: 1.45; transition: border-color .15s ease, background-color .15s ease; }
:is(input[type="text"], textarea, select):hover { border-color: #5c997c; }
:is(input[type="text"], textarea, select):focus-visible { border-color: #458e6a; background: #fff; }
input[type="text"], select { height: 44px; padding: 0 12px; }
input[type="text"]::placeholder, textarea::placeholder { color: #5c796a; }
textarea { display: block; min-height: 52px; max-height: 155px; padding: 12px 14px; resize: vertical; background: #fcfffd; font-size: 1.03rem; font-weight: 600; }
select { appearance: none; padding-right: 33px; cursor: pointer; }
select:disabled { cursor: default; }
.folder-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.folder-field input { font-size: .88rem; }
.field-hint { font-size: .82rem; color: var(--muted); margin-top: 7px; line-height: 1.48; }

.button { appearance: none; min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .89rem; font-weight: 750; line-height: 1.36; white-space: nowrap; border: 1px solid transparent; border-radius: 10px; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .17s ease, transform .17s ease; }
.button-light { color: #315549; background: #e1f2e8; border-color: #99c0ad; }
.button-light:hover:enabled { background: #daf0e4; border-color: #66a789; }
.button-primary { background: #1c4937; color: #f7fdf9; border-color: #1c4937; box-shadow: 3px 3px 0 #9bceb2; }
.button-primary:hover:enabled { background: #286047; border-color: #286047; box-shadow: 5px 5px 0 #8dc7aa; transform: translate(-1px, -1px); }
.button-primary:active:enabled { box-shadow: 1px 1px 0 #8dc7aa; transform: translate(2px, 2px); }
.folder-icon { color: var(--evergreen); display: inline-block; width: 15px; height: 11px; border: 1.2px solid currentColor; border-radius: 2px; position: relative; margin-top: 2px; }
.folder-icon::before { position: absolute; content: ""; top: -4.5px; left: -1.2px; width: 7px; height: 4px; border: 1.2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.form-footer { border-top: 1px solid #b8d6c5; border-radius: 0 0 15px 15px; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #eef8f1; }
.content-fields { display: flex; align-items: center; }
.content-fields > legend { float: left; margin: 0 13px 0 0; padding: 0; white-space: nowrap; align-self: center; }
.content-options { display: flex; flex-wrap: wrap; gap: 7px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 35px; padding: 0 10px; border: 1px solid #a9c8b8; border-radius: 999px; background: #f7fdf9; font-size: .86rem; color: #496a5a; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.check:hover { border-color: #559877; }
.check:has(input:checked) { background: #dcf1e6; color: #254c3f; border-color: #84bca2; }
.check:has(input[value="images"]:checked) { background: #e0f3ef; color: #215c53; border-color: #90bcae; }
.check:has(input[value="videos"]:checked) { background: #f7f1d5; color: #58491e; border-color: #b4a175; }
.check input { inline-size: 14px; block-size: 14px; margin: 0; accent-color: #3d8664; cursor: pointer; }
.check:has(input:focus-visible) { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.check input:focus-visible { outline: none; }
.start-button { min-width: 157px; min-height: 47px; padding-inline: 28px; font-size: .97rem; }
.collector-form:has(.form-message:not([hidden])) .form-footer { border-radius: 0; }
.form-message { margin: 0; padding: 12px 25px; color: var(--error); border-top: 1px solid #e6cbda; border-radius: 0 0 15px 15px; background: #fbedf5; font-size: .89rem; line-height: 1.55; overflow-wrap: anywhere; }

.existing-job { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 13px 2px 12px; border-bottom: 1px solid #aaccba; }
.existing-job p { font-size: .91rem; font-weight: 750; margin-bottom: 5px; }
.existing-job span { color: var(--secondary); font-size: .84rem; font-variant-numeric: tabular-nums; }
.text-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 37px; color: #285a46; font-size: .86rem; text-decoration-color: #75a992; text-underline-offset: 4px; font-weight: 750; white-space: nowrap; }
.text-button:hover { color: #173f30; }

.progress-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 46px 0 24px; }
.progress-heading h1 { font-size: clamp(3rem, 6.3vw, 5.25rem); line-height: 1.12; }
.progress-heading h1 > span { font-size: 1em; line-height: 0; overflow: hidden; color: transparent; }
.task-range { color: #357558; font-family: var(--mono); font-size: .9rem; font-weight: 700; margin-bottom: 8px; min-height: 1em; }
.progress-caption { color: var(--secondary); line-height: 1.55; font-size: .97rem; margin-top: 8px; min-height: 1em; overflow-wrap: anywhere; }
.settings-link { margin-bottom: 3px; }
.progress-card { padding: 0 23px 22px; }
.progress-card-top, .progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-card-top { min-height: 66px; padding: 0 23px; margin: 0 -23px; color: #f6fdf8; background: #1a4333; border-bottom: 1px solid #9ecbb7; border-radius: 15px 15px 0 0; }
.progress-state { display: flex; align-items: center; gap: 10px; }
.progress-state h2 { font-family: var(--display); font-size: 1.33rem; letter-spacing: .015em; font-weight: 400; }
.state-mark { width: 11px; height: 11px; border: 1px solid #91c9ac; border-radius: 3px; background: #b7eacd; transform: rotate(-8deg); }
.progress-card[data-phase="running"] .state-mark { background: #a3e3c8; border-color: #7bc8b3; }
.progress-card[data-phase="awaiting-login"] .state-mark { background: #f5e4a0; border-color: #d7be67; }
.progress-card[data-phase="pausing"] .state-mark, .progress-card[data-phase="paused"] .state-mark { background: #f5e4a0; border-color: #d7be67; }
.progress-card[data-phase="done"] .state-mark { background: #bee8cd; border-color: #8bb8a1; }
.progress-card[data-phase="error"] .state-mark { background: #e4adbf; border-color: #b87590; }
.percent { color: #f8efac; font-family: var(--mono); font-size: 1.46rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.progress-message { margin-top: 15px; color: var(--secondary); font-size: .91rem; line-height: 1.58; overflow-wrap: anywhere; }
.progress-card[data-phase="error"] .progress-message { color: var(--error); }
.progress-meter { overflow: hidden; height: 10px; background: #e1f0e7; border: 1px solid #b3d5c3; border-radius: 999px; margin-top: 20px; }
.progress-meter > div { height: 100%; width: var(--value, 0%); background: linear-gradient(90deg, #479b72, #90c9ab 73%, #a3d8c8); transition: width .32s ease; }
.progress-meter:not([aria-valuenow]) > div { width: 28%; animation: pending-slide 1.8s ease-in-out infinite; }
.progress-card[data-phase="paused"] .progress-meter:not([aria-valuenow]) > div { width: 0; animation: none; }
@keyframes pending-slide { from { transform: translateX(-105%); } to { transform: translateX(365%); } }
.progress-meta { margin-top: 8px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; line-height: 1.47; min-height: 1.25em; }
.metrics { margin-top: 21px; border: 1px solid #cce4d7; border-radius: 10px; overflow: hidden; background: #eef8f1; display: grid; grid-template-columns: repeat(auto-fit, minmax(106px, 1fr)); }
.metrics > div { min-width: 0; padding: 14px 15px 16px; border-right: 1px solid #d6ebe0; }
.metrics > div:nth-last-child(1 of :not([hidden])) { border-right: 0; }
.metrics dt { font-size: .83rem; color: var(--secondary); margin-bottom: 5px; }
.metrics dd { font: 750 clamp(1.35rem, 3.4vw, 2.06rem) / 1.15 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.progress-folder { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: baseline; font-size: .87rem; color: var(--secondary); }
.progress-folder code { overflow-wrap: anywhere; color: var(--ink); font: .86rem var(--mono); }
.task-logs { margin-top: 13px; font-size: .85rem; color: #285a46; }
.task-logs summary { cursor: pointer; width: fit-content; font-weight: 700; padding: 5px 0; }
.task-logs pre { max-height: 175px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--secondary); background: #ebf7ef; border: 1px solid #cfe5d9; border-radius: 9px; padding: 10px 12px; }
.progress-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.progress-message.action-feedback { color: var(--error); }

.login-dialog { width: min(500px, calc(100% - 32px)); padding: 0; border: 1px solid #4c8269; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 7px 7px 0 #35785c4c; }
.login-dialog::before { height: 5px; display: block; border-radius: 15px 15px 0 0; background: linear-gradient(90deg, #a1d5ba 0 70%, #a8d9ca 70% 87%, #ede6a2 87%); content: ""; }
.login-dialog::backdrop { background: #182f2778; backdrop-filter: blur(2px); }
.dialog-sheet { padding: 23px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.dialog-heading h2 { font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.close-button { min-width: 36px; min-height: 36px; background: #eff8f2; border: 1px solid #c9e2d4; border-radius: 9px; color: var(--secondary); font-size: 1.33rem; line-height: 1; }
.close-button:hover { color: #244d3d; border-color: #9abca9; background: #e4f6eb; }
.dialog-sheet p { color: var(--secondary); line-height: 1.64; font-size: .94rem; }
.dialog-sheet .dialog-feedback { margin-top: 10px; color: #285a46; font-size: .86rem; }
.dialog-sheet .dialog-feedback[data-error="true"] { color: var(--error); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; margin-top: 19px; }
.dialog-pause { margin-right: auto; }

@media (max-width: 800px) {
  .page-width { width: calc(100% - 48px); }
  .local-connection { grid-template-columns: 1fr; }
  .local-connection-actions { justify-content: flex-start; }
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 17px; min-height: 250px; }
  .hero h1 { font-size: clamp(5.1rem, 14vw, 7.5rem); }
  .hero p { margin-top: 17px; }
  .form-columns { grid-template-columns: 1fr; gap: 15px; padding-bottom: 17px; }
  .stage-board { min-height: 181px; }
  .plane-video { top: 31px; height: 107px; padding: 10px 8px; }
  .plane-images { top: 29px; height: 118px; padding: 10px 8px; }
  .plane-text { top: 52px; height: 99px; padding: 10px 8px; width: 50%; }
  .preview-keywords { margin-top: 5px; min-height: 25px; }
  .video-pattern { height: 53px; gap: 2px; padding-inline: 3px; }
  .image-pattern { height: 64px; }
  .plane-rules { margin-top: 7px; gap: 4px; }
}
@media (max-width: 560px) {
  .page-width { width: calc(100% - 32px); }
  .masthead { min-height: 53px; }
  .local-connection { padding: 13px 14px; }
  .hero { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 24px; min-height: 0; }
  .hero-text { padding: 0; }
  .hero h1 { font-size: clamp(4.4rem, 20vw, 6.1rem); }
  .hero p { font-size: .96rem; margin-top: 11px; }
  .hero p::before { width: 17px; margin-right: 7px; }
  .motion-stage { justify-self: start; width: 100%; }
  .stage-header { height: 33px; padding-inline: 11px; }
  .stage-board { min-height: 153px; }
  .plane-video { top: 26px; height: 92px; }
  .plane-images { top: 25px; height: 104px; }
  .plane-text { top: 44px; height: 87px; }
  .plane-label { margin-bottom: 6px; }
  .preview-keywords { margin-top: 1px; }
  .video-pattern { height: 44px; }.image-pattern { height: 56px; }
  .card-heading { padding-inline: 14px; min-height: 48px; }
  .form-row { margin-inline: 14px; }
  .keyword-row { padding-block: 16px 14px; }
  .form-columns { gap: 15px; padding-block: 13px 15px; }
  .form-footer { align-items: flex-start; flex-direction: column; padding: 13px 14px 15px; gap: 12px; }
  .start-button { width: 100%; }
  .form-message { padding-inline: 14px; }
  .folder-button { padding-inline: 8px; gap: 5px; }
  .folder-icon { display: none; }
  .progress-heading { padding-top: 28px; padding-bottom: 17px; align-items: start; }
  .progress-heading h1 { font-size: clamp(2.33rem, 11vw, 3.15rem); }
  .settings-link { flex-shrink: 0; }
  .progress-card { padding-inline: 14px; }
  .progress-card-top { padding-inline: 14px; margin-inline: -14px; min-height: 55px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div { padding-inline: 10px; border-bottom: 1px solid #d6ebe0; }
  .dialog-sheet { padding: 16px; }
}
@media (max-width: 365px) {
  .content-fields > legend { margin-right: 7px; }
  .content-options { gap: 4px; }
  .check { padding-inline: 6px; }
  .stage-header { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .stage-board::after, .progress-meter:not([aria-valuenow]) > div { animation: none; }
  .preview-plane { transform: rotate(var(--tilt)); }
  .button-primary:is(:hover, :active) { transform: none; }
}
