:root {
  color-scheme: light;
  --ink: #12211f;
  --muted: #60706d;
  --paper: #f6f7f2;
  --card: rgba(255, 255, 255, .82);
  --line: rgba(16, 65, 59, .13);
  --teal: #0d6b63;
  --teal-dark: #074b46;
  --lime: #d9f25f;
  --coral: #ff8066;
  --shadow: 0 28px 80px rgba(23, 63, 57, .13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; z-index: -1; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(2px); opacity: .38; }
.ambient-a { top: -21vw; right: -9vw; background: radial-gradient(circle, #bfe5d4, transparent 68%); }
.ambient-b { bottom: -26vw; left: -16vw; background: radial-gradient(circle, #f2d7a7, transparent 68%); }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 36px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: var(--teal); box-shadow: 0 10px 24px rgba(13, 107, 99, .25); font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.ghost-button, .paste-button { border: 1px solid var(--line); color: var(--teal-dark); background: rgba(255,255,255,.58); border-radius: 999px; padding: 10px 16px; }
.hero { display: grid; grid-template-columns: 1.55fr .8fr; gap: 64px; align-items: end; padding: 84px 0 50px; }
.eyebrow { display: block; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 16px 0 22px; font-size: clamp(48px, 7vw, 86px); line-height: .98; letter-spacing: -.06em; }
h1 em { color: var(--teal); font-style: normal; }
.hero-copy p { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.feature-stack { display: grid; border-top: 1px solid var(--line); }
.feature-stack > div { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-stack b { color: var(--coral); font-size: 12px; }
.feature-stack span { font-weight: 700; line-height: 1.35; }
.feature-stack small { color: var(--muted); font-weight: 400; }
.workspace-card, .task-panel { border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: var(--card); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.workspace-card { padding: clamp(22px, 4vw, 44px); }
form > label, legend, dialog label { display: block; margin-bottom: 10px; color: var(--teal-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.input-wrap { position: relative; }
textarea { width: 100%; min-height: 118px; resize: vertical; border: 1px solid var(--line); border-radius: 18px; padding: 18px 88px 18px 18px; color: var(--ink); background: rgba(247,249,244,.8); outline: none; line-height: 1.65; }
textarea:focus, dialog input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,107,99,.09); }
.paste-button { position: absolute; top: 12px; right: 12px; padding: 8px 13px; }
fieldset { margin: 28px 0; padding: 0; border: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option span { display: block; min-height: 88px; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: rgba(255,255,255,.52); transition: .2s ease; }
.mode-option strong, .mode-option small { display: block; }
.mode-option small { margin-top: 6px; color: var(--muted); line-height: 1.4; }
.mode-option input:checked + span { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: 0 12px 30px rgba(13,107,99,.2); transform: translateY(-2px); }
.mode-option input:checked + span small { color: rgba(255,255,255,.72); }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-radius: 16px; padding: 17px 20px; color: #10201d; background: var(--lime); font-weight: 850; box-shadow: 0 12px 26px rgba(155, 179, 50, .22); }
.primary-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.primary-button i { font-style: normal; font-size: 22px; }
.task-panel { margin-top: 22px; padding: clamp(22px, 4vw, 36px); }
.hidden { display: none !important; }
.task-heading, .progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.task-heading h2 { margin: 6px 0 0; font-size: clamp(21px, 3vw, 30px); }
.status-pill { border-radius: 999px; padding: 8px 12px; color: var(--teal-dark); background: #e4f3ef; font-size: 12px; font-weight: 800; }
.progress-track { height: 10px; margin: 26px 0 11px; overflow: hidden; border-radius: 999px; background: #e3e8e3; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #35a893); transition: width .35s ease; }
.progress-meta { color: var(--muted); font-size: 13px; }
.progress-meta strong { color: var(--teal-dark); }
.timing-summary { margin-top: 12px; border-radius: 10px; padding: 10px 12px; color: var(--teal-dark); background: rgba(226, 241, 237, .72); font-size: 12px; line-height: 1.55; }
.result-list { display: grid; gap: 10px; margin-top: 24px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: rgba(255,255,255,.72); }
.result-card strong, .result-card small { display: block; }
.result-card small { margin-top: 4px; color: var(--muted); }
.download-button { border: 0; border-radius: 999px; padding: 10px 15px; color: white; background: var(--teal); white-space: nowrap; }
.error-box { margin-top: 18px; border-left: 4px solid var(--coral); border-radius: 10px; padding: 13px 15px; color: #792f24; background: #fff0ec; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 58px 0; }
.guide-grid article { border-top: 1px solid var(--line); padding: 24px 4px 0; }
.guide-grid article > span { color: var(--coral); font-weight: 900; }
.guide-grid h3 { margin: 12px 0 8px; }
.guide-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 12px; }
dialog { width: min(480px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 24px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,28,25,.42); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-heading h2 { margin: 0 0 20px; }
.dialog-heading button { border: 0; background: none; font-size: 28px; }
dialog input { width: 100%; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; outline: none; }
.dialog-note { color: var(--muted); font-size: 12px; }
.compact { margin-top: 16px; justify-content: center; }
@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 680px); padding-top: 16px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 34px; }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  .mode-grid, .guide-grid { grid-template-columns: 1fr; }
  .mode-option span { min-height: 0; }
  .feature-stack { grid-template-columns: 1fr 1fr 1fr; }
  .feature-stack > div { display: block; padding-right: 8px; }
  .feature-stack b { display: block; margin-bottom: 8px; }
  footer { display: grid; }
  .result-card { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
