.wyr-page { margin: 0; }
.wyr-header { padding: 57px 24px 45px; }
.wyr-header-inner, .wyr-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.wyr-header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.wyr-header-icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; background: rgba(255,255,255,.12); font-size: 2.25rem; }
.wyr-kicker { margin: 0 0 5px; color: var(--leaf); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.wyr-header .wyr-kicker { color: #ffe28e; }
.wyr-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.45rem); line-height: 1.04; }
.wyr-header p:not(.wyr-kicker) { margin: 4px 0 0; font-size: 1.05rem; }
.wyr-header-badge { padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.11); color: #ffe89e; font-size: .84rem; font-weight: 900; white-space: nowrap; }
.wyr-main { padding: 34px 0 65px; }
.wyr-intro, .wyr-panel, .wyr-deck-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.wyr-intro::before, .wyr-panel::before, .wyr-deck-panel::before { position: absolute; top: 0; left: 0; width: 100%; height: 6px; content: ''; background: linear-gradient(90deg, var(--sun), #f4dd86, var(--leaf-light)); }
.wyr-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 25px; padding: 28px 30px; }
.wyr-intro h2, .wyr-panel h2, .wyr-deck-panel h2 { margin: 0; color: var(--chalk); font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 400; line-height: 1.18; }
.wyr-intro > div:first-child p:not(.wyr-kicker) { max-width: 740px; margin: 8px 0 0; color: var(--muted); }
.wyr-intro-tags { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.wyr-intro-tags span { padding: 7px 10px; border: 1px solid #d8e5c7; border-radius: 999px; background: #eef6e4; color: var(--leaf); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.wyr-setup { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 22px; }
.wyr-panel { padding: 27px; }
.wyr-template-panel, .wyr-vocabulary-panel { margin-bottom: 23px; }
.wyr-template-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 25px; align-items: start; }
.wyr-vocabulary-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr); gap: 25px; align-items: start; }
.wyr-template-layout > div + div, .wyr-vocabulary-layout > div + div { padding-left: 25px; border-left: 1px solid #e0e7d9; }
.wyr-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wyr-template-grid .wyr-template:last-child { grid-column: 1 / -1; }
.wyr-label { margin-top: 0 !important; }
.wyr-sample { margin: 0 0 13px; padding: 13px 14px; border: 1px dashed #d9c26c; border-radius: 13px; background: #fff8dc; color: #604b23; font-weight: 800; line-height: 1.5; }
.wyr-apply-all { width: 100%; margin-top: 16px; padding: 11px 15px; cursor: pointer; }
.wyr-vocabulary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 17px 0 4px; }
.wyr-vocabulary-actions button { min-height: 43px; padding: 9px 11px; cursor: pointer; }
.wyr-vocabulary-actions .btn { border: 0; }
.wyr-danger-button { border-color: #e8b6af; background: #fff5f2; color: #a34032; }
.wyr-danger-button:hover { border-color: #cb5a49; background: #ffe5df; }
.wyr-editing-help { margin-bottom: 0; }
.wyr-step { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.wyr-step span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff1c9; color: #8d5a13; font-size: .84rem; font-weight: 900; }
.wyr-step p { margin: 0; color: var(--leaf); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wyr-help { margin: 8px 0 18px; color: var(--muted); }
.wyr-panel label, .wyr-panel legend { display: block; margin: 16px 0 7px; color: var(--chalk); font-size: .91rem; font-weight: 900; }
.wyr-panel textarea, .wyr-panel input, .wyr-panel select { display: block; width: 100%; padding: 11px 12px; font-size: .98rem; }
.wyr-panel textarea { min-height: 194px; resize: vertical; line-height: 1.55; }
.wyr-small { margin: 7px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.wyr-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.wyr-chip, .wyr-secondary-btn, .wyr-card-list-heading button { border: 1px solid #cfdcbf; border-radius: 999px; background: #eef6e4; color: var(--chalk); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 900; }
.wyr-chip { padding: 8px 11px; }
.wyr-chip:hover, .wyr-secondary-btn:hover, .wyr-card-list-heading button:hover { background: #fff0bf; border-color: #e4b744; }
.wyr-library-box { display: grid; grid-column: 1 / -1; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 12px; align-items: center; margin-top: 19px; padding: 16px; border: 1px solid #d8e4ca; border-radius: 15px; background: #f4f9ed; }
.wyr-library-box p { margin: 0; color: var(--muted); font-size: .82rem; }
.wyr-library-box .wyr-library-title { color: var(--chalk); font-weight: 900; white-space: nowrap; }
.wyr-library-box select { grid-column: 1 / -1; padding: 9px 10px; font-size: .88rem; }
.wyr-library-box .wyr-secondary-btn { justify-self: start; padding: 8px 11px; }
.wyr-options fieldset { margin: 20px 0 0; padding: 0; border: 0; }
.wyr-options fieldset legend { margin: 0 0 8px; }
.wyr-template { padding: 10px 12px; border: 1px solid #d9e3cc; border-radius: 12px; background: #fffef9; color: var(--chalk); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 800; text-align: left; }
.wyr-template:hover, .wyr-template.active { border-color: #e3b13f; background: #fff2c9; }
.wyr-toggle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wyr-toggle-grid label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; margin: 0; padding: 8px; border: 1px solid #d9e3cc; border-radius: 12px; background: #fffef9; cursor: pointer; font-size: .84rem; }
.wyr-toggle-grid input { width: auto; margin: 0; }
.wyr-generate { width: 100%; margin-top: 20px; padding: 12px 18px; cursor: pointer; font-size: 1rem; }
.wyr-status { min-height: 24px; margin: 10px 0 0; color: var(--leaf); font-size: .84rem; font-weight: 800; }
.wyr-deck-panel { margin-top: 23px; }
.wyr-deck-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 27px 28px 21px; border-bottom: 1px solid var(--line); background: #fffaf0; }
.wyr-deck-toolbar h2 { margin-top: 1px; }
.wyr-deck-toolbar p:not(.wyr-kicker) { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.wyr-deck-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.wyr-deck-actions button { min-height: 40px; padding: 9px 13px; cursor: pointer; }
.wyr-deck-actions .btn { border: 0; }
.wyr-preview-area { padding: 24px; background: #f7f8ef; }
.wyr-slide-preview { display: grid; place-items: center; min-height: 350px; padding: 8px; border: 1px solid #dae1d4; border-radius: 17px; background: #e9efe5; }
.wyr-slide-preview svg { display: block; width: 100%; max-width: 900px; height: auto; border-radius: 12px; box-shadow: 0 12px 25px rgba(24,66,55,.15); }
.wyr-card-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 28px 0; }
.wyr-card-editor-heading h3 { margin: 0; color: var(--chalk); font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-size: 1.3rem; font-weight: 400; }
.wyr-card-editor-heading span { padding: 6px 9px; border-radius: 999px; background: #eff5e5; color: var(--leaf); font-size: .78rem; font-weight: 900; }
.wyr-card-list { min-width: 0; max-height: none; margin: 18px 28px 28px; padding: 13px; border: 1px solid #dce4d4; border-radius: 16px; background: #fffef9; }
.wyr-card-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; color: var(--chalk); font-size: .86rem; }
.wyr-card-list-heading button { padding: 5px 8px; }
.wyr-card-row { width: 100%; margin: 0 0 12px; padding: 14px; border: 1px solid #e0e6d5; border-radius: 13px; background: #fff; color: var(--ink); cursor: default; font: inherit; text-align: left; }
.wyr-card-row:hover, .wyr-card-row.active { border-color: #e2ac32; background: #fff4cd; }
.wyr-card-row .wyr-row-num { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 50%; background: #eaf2df; color: var(--leaf); font-size: .72rem; font-weight: 900; }
.wyr-card-row strong { color: var(--chalk); font-size: .87rem; }
.wyr-question-row { display: flex; align-items: center; gap: 8px; }
.wyr-question-input { flex: 1; min-width: 0; margin: 0 !important; padding: 9px 10px !important; font-weight: 800 !important; }
.wyr-mini-button { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #cadbc7; border-radius: 9px; background: #f2f7e9; color: var(--chalk); cursor: pointer; font: inherit; font-weight: 900; }
.wyr-mini-button:hover { border-color: #e3b13f; background: #fff2c9; }
.wyr-mini-button.danger { border-color: #e8b6af; background: #fff5f2; color: #a34032; }
.wyr-choice-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 11px; }
.wyr-choice-box { display: grid; grid-template-columns: auto 54px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px; border: 1px solid #e0e6d5; border-radius: 11px; background: rgba(255,255,255,.8); }
.wyr-choice-box.a { border-left: 4px solid #e7ad2c; }
.wyr-choice-box.b { border-left: 4px solid #5b9973; }
.wyr-choice-tag { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #fff0bd; color: #875f1d; font-size: .76rem; font-weight: 900; }
.wyr-choice-box.b .wyr-choice-tag { background: #e0f0df; color: #367050; }
.wyr-thumbnail { display: grid; place-items: center; width: 54px; height: 54px; padding: 5px; overflow: hidden; border: 1px solid #d2dfc8; border-radius: 12px; background: #eff6e5; color: var(--leaf); cursor: pointer; font: inherit; font-size: .68rem; font-weight: 900; }
.wyr-thumbnail:hover { border-color: #e1b23d; background: #fff3c9; }
.wyr-thumbnail svg { display: block; max-width: 100%; max-height: 100%; }
.wyr-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.wyr-choice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wyr-choice-fields input { min-width: 0; margin: 0 !important; padding: 7px 8px !important; font-size: .8rem !important; }
.wyr-choice-fields input:first-child { grid-column: 1 / -1; font-weight: 800; }
.wyr-art-picker { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(7,34,30,.65); }
.wyr-art-picker[hidden] { display: none; }
.wyr-picker-card { width: min(720px, 100%); max-height: min(780px, calc(100vh - 44px)); overflow: auto; padding: 25px; border: 1px solid #d9e4d0; border-radius: 21px; background: #fffdf7; box-shadow: 0 24px 60px rgba(5,31,26,.36); }
.wyr-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wyr-picker-heading h2 { margin: 0; color: var(--chalk); font-family: 'DM Serif Display', 'Noto Sans SC', serif; font-size: 1.7rem; font-weight: 400; }
.wyr-picker-heading p { margin: 5px 0 0; color: var(--muted); }
.wyr-picker-heading button { padding: 7px 11px; border: 1px solid #cfdcbf; border-radius: 999px; background: #eef6e4; color: var(--chalk); cursor: pointer; font: inherit; font-weight: 900; }
.wyr-picker-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 19px 0 16px; }
.wyr-picker-actions input { min-width: 0; margin: 0; padding: 11px 12px; }
.wyr-upload-label { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; margin: 0 !important; padding: 0 13px; border: 1px solid #d5c073; border-radius: 11px; background: #fff5cf; color: #684d17 !important; cursor: pointer; font-size: .85rem !important; font-weight: 900; white-space: nowrap; }
.wyr-upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wyr-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 9px; }
.wyr-icon-choice { display: grid; justify-items: center; gap: 5px; min-height: 82px; padding: 9px 6px; border: 1px solid #dce5d5; border-radius: 12px; background: #fff; color: var(--chalk); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.wyr-icon-choice:hover { border-color: #e2ac32; background: #fff4cd; }
.wyr-icon-choice svg { display: block; }
.wyr-empty { margin: 0; padding: 20px 8px; color: var(--muted); text-align: center; }
.wyr-presentation { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; padding: 20px; background: rgba(7, 34, 30, .97); color: #fffdf7; }
.wyr-presentation[hidden] { display: none; }
.wyr-presentation-bar, .wyr-presentation-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(1220px, 100%); margin: 0 auto; }
.wyr-presentation-bar { padding-bottom: 13px; font-weight: 900; }
.wyr-presentation-bar button, .wyr-presentation-controls button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font: inherit; font-weight: 900; }
.wyr-presentation-slide { display: grid; flex: 1; place-items: center; min-height: 0; }
.wyr-presentation-slide svg { display: block; width: min(100%, 1220px); max-height: calc(100vh - 150px); height: auto; border-radius: 14px; box-shadow: 0 24px 55px rgba(0,0,0,.35); }
.wyr-presentation-controls { padding-top: 13px; color: rgba(255,255,255,.78); font-size: .85rem; }
.wyr-presentation-controls span { text-align: center; }
#printArea { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) { .wyr-header { padding-top: 82px; } .wyr-header-inner { width: min(100%, calc(100% - 32px)); grid-template-columns: auto 1fr; } .wyr-header-badge { display: none; } .wyr-main { width: min(100%, calc(100% - 32px)); padding-top: 24px; } .wyr-intro, .wyr-deck-toolbar { align-items: flex-start; flex-direction: column; padding: 24px; } .wyr-intro-tags { justify-content: flex-start; } .wyr-setup, .wyr-template-layout, .wyr-vocabulary-layout, .wyr-choice-editor { grid-template-columns: 1fr; } .wyr-template-layout > div + div, .wyr-vocabulary-layout > div + div { padding: 20px 0 0; border-top: 1px solid #e0e7d9; border-left: 0; } .wyr-deck-actions { justify-content: flex-start; } .wyr-card-list { max-height: none; } }
@media (max-width: 520px) { .wyr-header-inner { grid-template-columns: 1fr; } .wyr-header-icon { width: 54px; height: 54px; border-radius: 16px; font-size: 1.75rem; } .wyr-panel, .wyr-deck-toolbar, .wyr-preview-area { padding: 18px; } .wyr-toggle-grid, .wyr-template-grid, .wyr-vocabulary-actions { grid-template-columns: 1fr; } .wyr-template-grid .wyr-template:last-child { grid-column: auto; } .wyr-deck-actions { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); } .wyr-deck-actions .btn { grid-column: 1 / -1; } .wyr-card-editor-heading { padding: 18px 18px 0; } .wyr-card-list { margin: 14px 18px 18px; padding: 9px; } .wyr-question-row { flex-wrap: wrap; } .wyr-question-input { flex-basis: calc(100% - 34px); } .wyr-choice-box { grid-template-columns: auto 47px minmax(0, 1fr); } .wyr-thumbnail { width: 47px; height: 47px; } .wyr-picker-card { padding: 19px; } .wyr-picker-actions { grid-template-columns: 1fr; } .wyr-upload-label { min-height: 42px; } .wyr-icon-grid { grid-template-columns: repeat(3, 1fr); } .wyr-presentation { padding: 12px; } .wyr-presentation-controls span { display: none; } }
@media print { body > *:not(#printArea) { display: none !important; } #printArea { display: block !important; } #printArea .print-slide { break-after: page; width: 100%; } #printArea .print-slide:last-child { break-after: auto; } #printArea svg { display: block; width: 100%; height: auto; } @page { size: landscape; margin: 0; } }
