        :root {
            --bg: #f6f4ef;
            --panel: #fffdf9;
            --text: #1f1d1a;
            --muted: #6f675d;
            --accent: #0f766e;
            --accent-strong: #0b5e58;
            --border: #ddd4c7;
            --step-bg: #f8f2e9;
            --step-border: #d9c9b4;
        }
        body {
            margin: 0;
            font-family: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
            background:
                radial-gradient(1200px 700px at 0% -10%, #f1dfc8 0%, transparent 60%),
                radial-gradient(1000px 600px at 100% -15%, #d7efe6 0%, transparent 55%),
                var(--bg);
            color: var(--text);
            min-height: 100vh;
        }
        .wrap {
            width: min(1700px, 97vw);
            margin: 12px auto;
        }
        .panel {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 18px;
            box-shadow: 0 18px 42px rgba(35, 24, 8, 0.12);
            padding: 22px;
        }
        h1 {
            font-size: clamp(1.7rem, 2.6vw, 2.4rem);
            margin: 0 0 8px;
            letter-spacing: 0.01em;
        }
        .toolbar {
            display: grid;
            grid-template-columns: repeat(2, minmax(320px, 1fr));
            gap: 12px;
            align-items: start;
        }
        .step {
            background: var(--step-bg);
            border: 1px solid var(--step-border);
            border-radius: 12px;
            padding: 10px;
        }
        .step-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 6px;
        }
        .step-tools {
            display: flex;
            gap: 6px;
        }
        .tiny-btn {
            width: auto;
            border-radius: 8px;
            border: 1px solid #c8b89d;
            background: #fff7ea;
            color: #5d4a20;
            box-shadow: none;
            font-size: 0.78rem;
            font-weight: 700;
            padding: 4px 8px;
        }
        .step-submit {
            display: flex;
            align-items: stretch;
            justify-content: stretch;
            background: transparent;
            border: none;
            padding: 0;
        }
        .checklist {
            max-height: 260px;
            overflow: auto;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: #fff;
            padding: 6px;
        }
        .check-item {
            display: block;
            margin: 0;
            padding: 6px 8px;
            border-radius: 8px;
            font-weight: 600;
            color: #3f3a33;
            font-size: 0.92rem;
        }
        .check-item:hover {
            background: #f3eee5;
        }
        .check-item input {
            width: auto;
            margin-right: 8px;
            vertical-align: middle;
            transform: translateY(-1px);
        }
        .search {
            margin-bottom: 6px;
            font-size: 0.95rem;
        }
        label {
            display: block;
            font-size: 0.95rem;
            color: var(--muted);
            margin-bottom: 5px;
            font-weight: 700;
        }
        select, input, button {
            width: 100%;
            border-radius: 10px;
            border: 1px solid var(--border);
            padding: 10px 11px;
            font-size: 1.02rem;
            background: #fff;
            color: var(--text);
        }
        select:focus, input:focus {
            outline: 2px solid rgba(15, 118, 110, 0.35);
            border-color: var(--accent);
        }
        button {
            width: auto;
            cursor: pointer;
            background: var(--accent);
            color: #fff;
            border: none;
            font-weight: 600;
            padding: 11px 16px;
            font-size: 1rem;
            box-shadow: 0 8px 14px rgba(15, 118, 110, 0.28);
        }
        button:hover {
            background: var(--accent-strong);
        }
        .meta {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 0.98rem;
            line-height: 1.4;
        }
        .helper {
            margin: 0 0 12px;
            color: #5f5549;
            font-size: 0.94rem;
        }
        .actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .btn-secondary {
            background: #995e00;
        }
        .btn-ghost {
            background: #f4ecdf;
            color: #5f4708;
            border: 1px solid #d7c39d;
            box-shadow: none;
        }
        .error {
            margin-top: 12px;
            color: #c62828;
            font-weight: 600;
            font-size: 1rem;
            background: #fff1f0;
            border: 1px solid #f4c9c4;
            border-radius: 10px;
            padding: 8px 10px;
        }
        .vocab-panel {
            margin-top: 10px;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 12px;
            background: #f5f0e8;
        }
        .vocab-panel.hidden {
            display: none;
        }
        .vocab-panel h2 {
            margin: 0 0 10px;
            font-size: 1.2rem;
            color: #0f5aa6;
        }
        .vocab-bank {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .vocab-chip {
            display: inline-block;
            padding: 6px 10px;
            border-radius: 12px;
            background: #eaf4ff;
            color: #0f5aa6;
            font-size: 0.95rem;
            border: 1px solid #b7d8f8;
        }
        .vocab-chip .tr {
            color: #2e7d32;
            margin-left: 6px;
            font-weight: 600;
        }
        .vocab-chip .missing {
            color: #c62828;
            margin-left: 6px;
            font-weight: 600;
        }
        ol {
            margin: 14px 0 0;
            padding-left: 34px;
        }
        li {
            margin: 7px 0;
            line-height: 1.45;
            font-size: clamp(1.2rem, 1.9vw, 1.9rem);
            padding: 7px 9px;
            border-radius: 10px;
            outline: none;
        }
        li.focused {
            background: #e3f2fd;
            border: 2px solid #1e88e5;
            box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.18);
        }
        .sentence-text {
            display: block;
        }
        body.presentation .wrap {
            width: 100vw;
            margin: 0;
        }
        body.presentation .panel {
            border-radius: 0;
            min-height: 100vh;
            border: none;
            box-shadow: none;
            padding: 24px 36px;
        }
        body.presentation h1,
        body.presentation .toolbar,
        body.presentation .meta,
        body.presentation .actions,
        body.presentation .vocab-panel {
            display: none;
        }
        body.presentation ol {
            margin: 0;
            padding-left: 56px;
        }
        body.presentation li {
            font-size: clamp(2rem, 3vw, 3.2rem);
            margin: 18px 0;
            padding: 14px 16px;
        }
        body.presentation li.focused {
            box-shadow: 0 0 0 6px rgba(30, 136, 229, 0.24);
        }
        @media (max-width: 760px) {
            .toolbar {
                grid-template-columns: 1fr;
            }
            button {
                width: 100%;
            }
        }
