:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #ebe6dc;
  --ink: #18201d;
  --muted: #626b65;
  --line: #d7d1c5;
  --green: #285c49;
  --green-2: #d9e8df;
  --orange: #c9693b;
  --red: #a83a36;
  --blue: #315a79;
  --shadow: 0 14px 40px rgba(39, 45, 41, .08);
  --radius: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121714;
  --surface: #1a211d;
  --surface-2: #242c27;
  --ink: #edf2ee;
  --muted: #aeb8b1;
  --line: #354039;
  --green: #83bca3;
  --green-2: #243c31;
  --orange: #ef9a6d;
  --red: #ee817c;
  --blue: #8bb7d5;
  --shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, textarea { font: inherit; }
button { touch-action: manipulation; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 12px 24px; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 50%; font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 50%; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.icon-button:hover { background: var(--surface-2); }
.icon-button:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 65%, transparent); outline-offset: 3px; }
.icon-button svg { width: 22px; fill: currentColor; }
main { max-width: 1180px; margin: auto; padding: 0 24px 64px; }
.hero { min-height: 420px; padding: 70px 64px; background: var(--green); color: #f7fbf8; border-radius: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: -230px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.04), 0 0 0 96px rgba(255,255,255,.03); }
.eyebrow { margin: 0 0 10px; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { max-width: 760px; font-size: clamp(42px, 6.8vw, 82px); line-height: .98; letter-spacing: -.055em; margin: 0; }
h1 em { color: #d7c99e; font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 620px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 18px; }
.countdown { min-width: 150px; position: relative; z-index: 1; text-align: right; }
.countdown span { display: block; font: italic 76px/.9 Georgia, serif; color: #d7c99e; }
.countdown small { display: block; margin-top: 10px; color: rgba(255,255,255,.75); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 28px 0 88px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stats article { min-height: 150px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-kicker { color: var(--muted); font-size: 13px; font-weight: 700; }
.stats strong { font-size: 28px; letter-spacing: -.03em; }
.stats small { color: var(--muted); }
.deadline-card { background: var(--green-2) !important; }
.progress-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .25s ease; }
.action-deck { margin: 0 0 100px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.action-topline { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.mode-actions, .primary-actions, .day-actions, .timer-controls, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.action-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.action-grid article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.now-card { grid-row: span 2; display: flex; flex-direction: column; }
.card-label { color: var(--muted); letter-spacing: .12em; font-size: 11px; font-weight: 850; }
.now-course { margin: 36px 0 4px; color: var(--green); font-weight: 750; }
.now-card h3 { max-width: 620px; margin: 0; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.success-definition { max-width: 650px; margin: 22px 0; padding-left: 14px; border-left: 3px solid var(--orange); color: var(--muted); }
.now-meta { display: flex; gap: 10px; margin: auto 0 18px; }
.now-meta span { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 750; }
.primary-action, .secondary-action, .text-action, .day-actions button, .timer-controls button { min-height: 46px; padding: 0 18px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.primary-action { border: 1px solid var(--green); background: var(--green); color: var(--surface); }
.secondary-action, .day-actions button, .timer-controls button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.text-action { border: 0; background: transparent; color: var(--muted); }
button:disabled { opacity: .45; cursor: not-allowed; }
.timer-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.timer-card strong { display: block; margin: 20px 0 4px; font: italic clamp(50px, 7vw, 78px)/1 Georgia, serif; font-variant-numeric: tabular-nums; color: var(--green); }
.timer-card p { min-height: 48px; color: var(--muted); }
.planned-actual { display: block; margin: -8px 0 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.queue-card, .review-card { min-height: 210px; }
.today-queue { display: grid; gap: 7px; margin-top: 14px; }
.queue-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; min-height: 42px; padding: 7px 8px; border-radius: 9px; background: var(--surface); font-size: 13px; }
.queue-item.done { opacity: .55; text-decoration: line-through; }
.queue-item button { min-width: 44px; min-height: 36px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.queue-empty { color: var(--muted); font-size: 13px; }
.day-actions { justify-content: flex-end; margin-top: 16px; }
.action-deck.bad-day { border-color: var(--orange); }
.action-deck.bad-day .now-card { background: color-mix(in srgb, var(--orange) 9%, var(--bg)); }
.daily-rhythm { margin-bottom: 100px; }
.daily-rhythm .section-copy { max-width: 520px; margin: 0; color: var(--muted); }
.routine-alert { margin-bottom: 16px; padding: 14px 16px; border-left: 4px solid var(--orange); border-radius: 10px; background: color-mix(in srgb, var(--orange) 9%, var(--surface)); color: var(--ink); }
.routine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.routine-block { min-height: 190px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; }
.routine-block.study { border-top: 4px solid var(--green); }
.routine-block.review { border-top: 4px solid var(--orange); }
.routine-block.bigg { border-top: 4px solid var(--blue); }
.routine-block.rest { background: var(--surface-2); }
.routine-time { color: var(--green); font: italic 25px Georgia, serif; }
.routine-block h3 { margin: auto 0 6px; font-size: 19px; }
.routine-block p { margin: 0; color: var(--muted); font-size: 14px; }
.routine-block small { display: block; margin-top: 10px; color: var(--muted); }
.routine-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.routine-rules span { padding: 14px; background: var(--surface); color: var(--muted); font-size: 13px; }
.routine-rules strong { display: block; color: var(--ink); font-size: 17px; }

.flow-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.wide-dialog { width: min(900px, calc(100% - 32px)); }
.flow-dialog::backdrop { background: rgba(9,14,11,.64); backdrop-filter: blur(5px); }
.flow-dialog form { padding: 28px; overflow: auto; }
.dialog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.dialog-head h2 { font-size: clamp(30px, 5vw, 46px); }
.dialog-close { min-width: 48px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-lead { max-width: 650px; color: var(--muted); }
.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.dialog-fields label, .exam-row label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.dialog-fields input, .dialog-fields select, .exam-row input, .exam-row select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.wide-field { grid-column: span 2; }
.dialog-actions { justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); }
.decision-list { display: grid; gap: 10px; margin-top: 18px; }
.decision-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.decision-item p { margin: 0; }.decision-item small { color: var(--muted); }
.decision-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.decision-actions button { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); cursor: pointer; }
.exam-rows { display: grid; gap: 10px; margin: 20px 0 10px; }
.exam-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.exam-row button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--red); cursor: pointer; }
.conflict-report { display: grid; gap: 8px; margin: 18px 0; }
.conflict-item { padding: 12px; border-left: 3px solid var(--orange); background: var(--bg); color: var(--muted); }
.stuck-actions { display: grid; gap: 10px; margin-top: 24px; }
.stuck-actions button { min-height: 54px; padding: 10px 14px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); cursor: pointer; }
.toast { position: fixed; z-index: 1200; left: 50%; bottom: 24px; transform: translate(-50%, 120px); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.bug-timer-actions { display: flex; gap: 6px; justify-self: end; }
.bug-timer-actions button { width: auto; padding: 0 10px; }
.bug-timer-actions select { min-height: 44px; max-width: 145px; border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); border-radius: 10px; background: var(--ink); color: var(--bg); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.04; letter-spacing: -.045em; margin: 0; }
.principles { margin-bottom: 100px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle-grid article { min-height: 280px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.principle-grid span { font: italic 30px Georgia, serif; color: var(--green); }
.principle-grid h3 { margin: auto 0 8px; font-size: 22px; }
.principle-grid p { margin: 0; color: var(--muted); }
.principle-wide { grid-column: span 4; min-height: 190px !important; }
.principle-wide h3 { margin-top: 40px !important; }
.bug-lab { margin-bottom: 100px; padding: 40px; background: var(--ink); color: var(--bg); border-radius: 28px; }
.bug-lab .section-copy { max-width: 520px; margin: 0; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.triage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.triage-grid article { min-height: 230px; padding: 22px; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--bg) 5%, transparent); }
.triage-grid strong { font-size: 12px; letter-spacing: .08em; color: #d7c99e; }
.triage-grid h3 { margin: 42px 0 8px; font-size: 20px; }
.triage-grid p { color: color-mix(in srgb, var(--bg) 68%, transparent); margin: 0; }
.triage-now { border-color: color-mix(in srgb, var(--red) 70%, white) !important; }
.close-gate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); border-radius: 14px; color: color-mix(in srgb, var(--bg) 75%, transparent); font-size: 13px; }
.close-gate span { display: flex; align-items: center; gap: 8px; }
.close-gate b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #d7c99e; color: #18201d; }
.close-gate i { font-style: normal; color: color-mix(in srgb, var(--bg) 35%, transparent); }
.bug-form { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr 1.2fr; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.bug-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.bug-form input, .bug-form select { min-height: 46px; width: 100%; padding: 0 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.bug-description { grid-column: span 3; }
.bug-form button { min-height: 46px; align-self: end; border: 0; border-radius: 10px; background: #d7c99e; color: #18201d; font-weight: 800; cursor: pointer; }
.bug-list { display: grid; gap: 8px; margin-top: 18px; }
.bug-empty { color: color-mix(in srgb, var(--bg) 58%, transparent); font-size: 14px; }
.bug-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 7%, transparent); }
.bug-item .bug-priority { min-width: 44px; padding: 5px 7px; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 900; background: color-mix(in srgb, var(--orange) 25%, transparent); }
.bug-item .bug-priority.p0 { background: color-mix(in srgb, var(--red) 35%, transparent); }
.bug-item .bug-priority.p2 { background: color-mix(in srgb, var(--blue) 25%, transparent); }
.bug-item p { margin: 0; }.bug-item small { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.bug-item button { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); border-radius: 10px; color: var(--bg); background: transparent; cursor: pointer; }
.schedule-section { scroll-margin-top: 16px; }
.sticky-heading { padding-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; }
.filter.active { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.schedule { display: grid; gap: 12px; }
.day-card { display: grid; grid-template-columns: 108px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: opacity .2s ease, border-color .2s ease; }
.day-card.today { border: 2px solid var(--green); box-shadow: var(--shadow); }
.day-card.completed-day { opacity: .68; }
.day-card.hidden { display: none; }
.date-column { padding: 22px 16px; border-right: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; justify-content: center; background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.weekday, .month { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.day-number { font: italic 42px/1 Georgia, serif; margin: 6px 0; }
.day-content { padding: 20px 24px; min-width: 0; }
.day-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.day-header h3 { margin: 0; font-size: 21px; }
.day-focus { margin: 2px 0 0; color: var(--muted); }
.load-badge { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); }
.load-badge.high { color: var(--orange); }
.load-badge.critical { color: var(--red); }
.tasks { display: grid; gap: 8px; }
.task { min-height: 48px; padding: 10px 12px; border-radius: 12px; display: grid; grid-template-columns: 26px 76px 1fr auto; gap: 10px; align-items: center; background: var(--bg); cursor: pointer; }
.task:hover { background: var(--surface-2); }
.task input { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
.task.done .task-text { text-decoration: line-through; color: var(--muted); }
.task-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.task-text { min-width: 0; }
.task-type { justify-self: end; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.task-type.school { color: var(--green); background: var(--green-2); }
.task-type.bigg { color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, transparent); }
.task-type.exam { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.task-type.recall { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.task-type.scriba { color: #765c16; background: #f0e3aa; }
.notes-label { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.notes-label textarea { width: 100%; min-height: 44px; resize: vertical; margin-top: 5px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); }
.notes-label textarea:hover, .notes-label textarea:focus { background: var(--bg); border-color: var(--line); }
.legend { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-top: 80px; padding: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.legend-items { display: grid; gap: 12px; }
.legend-items span { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.legend-items strong { color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.dot.high { background: var(--orange); }.dot.critical { background: var(--red); }
footer { max-width: 1180px; margin: 0 auto 32px; padding: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); }
footer button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }

@media (max-width: 900px) {
  .hero { min-height: 520px; padding: 48px 32px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .countdown { text-align: left; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-wide { grid-column: span 2; }
  .action-grid { grid-template-columns: 1fr; }
  .now-card { grid-row: auto; }
  .routine-grid { grid-template-columns: repeat(2, 1fr); }
  .routine-rules { grid-template-columns: repeat(2, 1fr); }
  .triage-grid { grid-template-columns: 1fr; }
  .close-gate { align-items: flex-start; flex-direction: column; }
  .close-gate i { transform: rotate(90deg); margin-left: 8px; }
  .bug-form { grid-template-columns: 1fr 1fr; }
  .bug-description { grid-column: span 2; }
  .principle-grid article { min-height: 220px; }
}

@media (max-width: 600px) {
  .topbar, main { padding-left: 16px; padding-right: 16px; }
  .hero { border-radius: 22px; padding: 40px 24px; min-height: 520px; }
  h1 { font-size: 45px; }
  .hero-copy { font-size: 16px; }
  .stats { grid-template-columns: 1fr; margin-bottom: 64px; }
  .stats article { min-height: 126px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-wide { grid-column: span 1; }
  .principle-grid article { min-height: 200px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .action-deck { padding: 24px 16px; border-radius: 22px; }
  .action-topline { align-items: flex-start; flex-direction: column; }
  .mode-actions { width: 100%; }
  .mode-actions button { flex: 1; }
  .action-grid article { padding: 18px 14px; }
  .now-card h3 { font-size: 34px; }
  .primary-actions > * { flex: 1 1 42%; }
  .dialog-fields { grid-template-columns: 1fr; }
  .wide-field { grid-column: span 1; }
  .flow-dialog form { padding: 22px 16px; }
  .dialog-head { gap: 12px; }
  .exam-row { grid-template-columns: 1fr 1fr; }
  .exam-row label:first-child { grid-column: span 2; }
  .decision-item { grid-template-columns: 1fr; }
  .routine-grid, .routine-rules { grid-template-columns: 1fr; }
  .routine-block { min-height: 160px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .day-card { grid-template-columns: 74px 1fr; }
  .date-column { padding: 16px 8px; justify-content: flex-start; }
  .day-number { font-size: 34px; }
  .day-content { padding: 16px 12px; }
  .day-header { display: block; }
  .load-badge { display: inline-block; margin-top: 8px; }
  .task { grid-template-columns: 24px 1fr auto; gap: 8px; }
  .task-time { grid-column: 2; grid-row: 2; }
  .task-type { grid-column: 3; grid-row: 1 / span 2; }
  .legend { padding: 28px 20px; align-items: flex-start; flex-direction: column; }
  .bug-lab { padding: 28px 18px; border-radius: 22px; }
  .bug-form { grid-template-columns: 1fr; }
  .bug-description { grid-column: span 1; }
  .bug-item { grid-template-columns: auto 1fr; }
  .bug-item button { grid-column: 2; justify-self: end; }
  footer { margin-left: 16px; margin-right: 16px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
