:root {
  font-family: "DM Sans", sans-serif;
  color: #26342f;
  background: #e9f0ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #e9f0ec;
  --ink: #26342f;
  --muted: #84938d;
  --mint: #75ad9a;
  --coral: #d98272;
  --shadow-light: rgba(255, 255, 255, .88);
  --shadow-dark: rgba(153, 171, 162, .35);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 70% 16%, rgba(255,255,255,.76), transparent 38%), linear-gradient(135deg, #eef3ef 0%, #e5ede8 54%, #e8eeec 100%); }
button, a { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1160px, calc(100% - 64px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.55); }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; }
.brand-mark { width: 25px; height: 25px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg,#f5faf6,#d9e7df); box-shadow: 4px 4px 9px var(--shadow-dark), -4px -4px 9px var(--shadow-light); }
.brand-mark span { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(117,173,154,.16); }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #788780; font-size: 12px; }
.theme-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #718179; background: linear-gradient(145deg,#eef4ef,#e3ebe6); box-shadow: 5px 5px 11px rgba(153,171,162,.24), -5px -5px 11px rgba(255,255,255,.82); cursor: pointer; transition: color .25s ease, background .25s ease, transform .2s ease; }
.theme-button:hover { transform: translateY(-1px); color: #527c69; }
.theme-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon { display: none; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(117,173,154,.13); }
.focus-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(470px, .94fr); align-items: center; gap: clamp(48px, 9vw, 128px); padding: 58px 4.5% 66px; }
.intro { padding-bottom: 10px; }
.eyebrow { margin: 0 0 21px; color: #8b9b94; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(38px, 4.2vw, 55px); line-height: 1.15; letter-spacing: 0; font-weight: 600; }
h1 span { color: #799e90; }
.intro-copy { margin: 21px 0 37px; color: #84918b; font-size: 15px; line-height: 1.8; }
.session-summary { display: flex; align-items: center; gap: 13px; }
.summary-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: var(--coral); font-size: 19px; background: linear-gradient(145deg,#f4f8f4,#e2eae5); box-shadow: 5px 5px 12px var(--shadow-dark), -5px -5px 12px var(--shadow-light); }
.session-summary div:last-child { display: grid; gap: 3px; }
.session-summary strong { font-size: 12px; font-weight: 700; }
.session-summary div:last-child span { color: var(--muted); font-size: 11px; }
.timer-panel { padding: 28px 30px 23px; border: 1px solid rgba(255,255,255,.48); border-radius: 28px; background: linear-gradient(145deg,rgba(246,250,247,.66),rgba(224,234,228,.62)); box-shadow: 18px 18px 42px rgba(158,176,166,.2), -18px -18px 42px rgba(255,255,255,.62); }
.mode-switch { width: max-content; display: flex; margin: 0 auto 14px; padding: 5px; border-radius: 14px; background: #e8efea; box-shadow: inset 3px 3px 7px rgba(153,171,162,.22), inset -3px -3px 7px rgba(255,255,255,.85); }
.mode-tab { min-width: 108px; border: 0; border-radius: 10px; padding: 10px 16px; background: transparent; color: #86938d; cursor: pointer; font-size: 12px; transition: color .25s ease, background .25s ease, box-shadow .25s ease; }
.mode-tab.active { color: #40584d; background: linear-gradient(145deg,#f4f8f5,#e8f0eb); box-shadow: 4px 4px 9px rgba(153,171,162,.24), -4px -4px 9px rgba(255,255,255,.92); }
.timer-face { width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto; position: relative; display: grid; place-items: center; transition: transform .35s ease; }
.progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track, .ring-progress { fill: none; stroke-width: 5; }
.ring-track { stroke: rgba(175,192,182,.24); }
.ring-progress { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 804.25; stroke-dashoffset: 0; transition: stroke-dashoffset .8s linear, stroke .35s ease; filter: drop-shadow(0 2px 4px rgba(117,173,154,.2)); }
.timer-face.break .ring-progress { stroke: var(--coral); }
.time-readout { z-index: 1; display: grid; justify-items: center; gap: 11px; }
.timer-caption { color: #8e9c95; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.time { color: #34433c; font-family: Manrope, sans-serif; font-size: 58px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-hint { color: #93a099; font-size: 11px; }
.timer-controls { display: flex; justify-content: center; align-items: center; gap: 19px; margin: 21px auto 24px; }
.start-button { min-width: 174px; height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 15px; color: white; background: linear-gradient(125deg,#80b7a3,#679985); box-shadow: 6px 7px 15px rgba(83,132,113,.24), -3px -3px 9px rgba(255,255,255,.55); cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.start-button:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 8px 10px 18px rgba(83,132,113,.26), -3px -3px 9px rgba(255,255,255,.55); }
.start-button:active, .icon-button:active { transform: translateY(1px); }
.play-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.play-icon svg { width: 15px; height: 15px; fill: currentColor; }
.start-button.paused .play-icon svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.start-button.paused .play-icon svg path { d: path("M6 4v12M14 4v12"); }
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; border: 0; border-radius: 13px; color: #7d8d85; background: linear-gradient(145deg,#eef4ef,#e3ebe6); box-shadow: 5px 5px 11px rgba(153,171,162,.26), -5px -5px 11px rgba(255,255,255,.87); cursor: pointer; transition: transform .2s ease, color .2s ease; }
.icon-button:hover { color: #527c69; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.next-up { display: flex; align-items: center; justify-content: center; gap: 9px; color: #9ba8a1; font-size: 9px; }
.next-up strong { color: #73837b; font-size: 10px; font-weight: 600; }
.next-line { width: 15px; height: 1px; background: #c4d0c9; }
.footer { min-height: 57px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.55); color: #97a49d; font-size: 10px; }
.footer-mark { color: #9bb9aa; font-size: 9px; letter-spacing: 1px; }
button:focus-visible, a:focus-visible { outline: 2px solid #608c77; outline-offset: 4px; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #282332;
  --ink: #f0eaf8;
  --muted: #aa9dbb;
  --mint: #b69be8;
  --coral: #e5a0d0;
  --shadow-light: rgba(78, 67, 94, .42);
  --shadow-dark: rgba(15, 12, 21, .52);
  color: var(--ink);
  background: #282332;
}
:root[data-theme="dark"] body { background: radial-gradient(ellipse at 70% 16%, rgba(109,83,139,.3), transparent 40%), linear-gradient(135deg,#292433 0%,#211d2b 54%,#282331 100%); }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .footer { border-color: rgba(219,204,239,.1); }
:root[data-theme="dark"] .brand-mark { background: linear-gradient(145deg,#393246,#282332); }
:root[data-theme="dark"] .brand-mark span { box-shadow: 0 0 0 4px rgba(182,155,232,.18); }
:root[data-theme="dark"] .topbar-note { color: #b5a9c4; }
:root[data-theme="dark"] .status-dot { box-shadow: 0 0 0 4px rgba(182,155,232,.16); }
:root[data-theme="dark"] .theme-button, :root[data-theme="dark"] .icon-button { color: #c4b1e2; background: linear-gradient(145deg,#393245,#292432); box-shadow: 5px 5px 11px rgba(12,10,18,.42), -5px -5px 11px rgba(78,67,94,.34); }
:root[data-theme="dark"] .theme-button:hover, :root[data-theme="dark"] .icon-button:hover { color: #e4d5fb; }
:root[data-theme="dark"] .moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: block; }
:root[data-theme="dark"] .eyebrow { color: #a89bb9; }
:root[data-theme="dark"] h1 span { color: #c0a6ec; }
:root[data-theme="dark"] .intro-copy { color: #b2a9be; }
:root[data-theme="dark"] .summary-icon { background: linear-gradient(145deg,#393246,#292432); }
:root[data-theme="dark"] .timer-panel { border-color: rgba(222,208,241,.08); background: linear-gradient(145deg,rgba(57,50,69,.94),rgba(39,35,50,.96)); box-shadow: 18px 18px 42px rgba(12,10,18,.34), -12px -12px 34px rgba(83,70,101,.2); }
:root[data-theme="dark"] .mode-switch { background: #282331; box-shadow: inset 3px 3px 7px rgba(14,12,19,.45), inset -3px -3px 7px rgba(83,70,101,.25); }
:root[data-theme="dark"] .mode-tab { color: #b2a8be; }
:root[data-theme="dark"] .mode-tab.active { color: #f0e8fc; background: linear-gradient(145deg,#42384f,#332c40); box-shadow: 4px 4px 9px rgba(12,10,18,.38), -4px -4px 9px rgba(87,73,105,.27); }
:root[data-theme="dark"] .ring-track { stroke: rgba(213,196,235,.14); }
:root[data-theme="dark"] .ring-progress { filter: drop-shadow(0 2px 5px rgba(182,155,232,.28)); }
:root[data-theme="dark"] .time { color: #f4effa; }
:root[data-theme="dark"] .timer-caption, :root[data-theme="dark"] .timer-hint { color: #b1a6c0; }
:root[data-theme="dark"] .start-button { background: linear-gradient(125deg,#a98bd8,#795caf); box-shadow: 6px 7px 15px rgba(15,11,24,.35), -3px -3px 9px rgba(108,91,131,.22); }
:root[data-theme="dark"] .start-button:hover { box-shadow: 8px 10px 18px rgba(15,11,24,.42), -3px -3px 9px rgba(108,91,131,.25); }
:root[data-theme="dark"] .next-up { color: #b5aabd; }
:root[data-theme="dark"] .next-up strong { color: #dbcee9; }
:root[data-theme="dark"] .next-line { background: #655775; }
:root[data-theme="dark"] .footer { color: #aa9eb8; }
:root[data-theme="dark"] .footer-mark { color: #c3a8e7; }
:root[data-theme="dark"] button:focus-visible, :root[data-theme="dark"] a:focus-visible { outline-color: #c1a6ee; }
@media (max-width: 800px) {
  .app-shell { width: min(100% - 40px, 560px); height: 100vh; height: 100svh; min-height: 0; }
  .topbar { height: 58px; flex: 0 0 58px; }
  .topbar-actions { gap: 9px; }
  .topbar-note { gap: 7px; font-size: 10px; }
  .theme-button { width: 32px; height: 32px; border-radius: 11px; }
  .focus-layout { min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: clamp(8px, 1.8vh, 16px); padding: clamp(8px, 1.7vh, 16px) 0; }
  .intro { min-width: 0; padding: 0 8px; }
  .eyebrow { margin-bottom: 8px; font-size: 8px; }
  h1 { font-size: clamp(30px, 6vh, 42px); line-height: 1.08; }
  .intro-copy { margin: 8px 0 10px; font-size: 12px; line-height: 1.5; }
  .session-summary { gap: 9px; }
  .summary-icon { width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
  .session-summary strong { font-size: 11px; }
  .session-summary div:last-child span { font-size: 10px; }
  .timer-panel { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(12px, 2vh, 20px) 18px clamp(12px, 1.8vh, 18px); border-radius: 22px; }
  .mode-switch { margin-bottom: 4px; padding: 4px; }
  .mode-tab { min-width: 96px; padding: 8px 13px; font-size: 11px; }
  .timer-face { width: min(260px, 78vw, 28vh); flex: 0 1 auto; }
  .time-readout { gap: 8px; }
  .time { font-size: clamp(42px, 8vh, 54px); }
  .timer-caption { font-size: 8px; }
  .timer-hint { font-size: 10px; }
  .timer-controls { flex: 0 0 auto; gap: 15px; margin: 8px auto; }
  .start-button { height: 44px; min-width: 164px; }
  .icon-button { width: 38px; height: 38px; }
  .next-up { font-size: 8px; }
  .next-up strong { font-size: 9px; }
  .footer { min-height: 40px; flex: 0 0 40px; }
}
@media (max-width: 800px) and (max-height: 680px) {
  .app-shell { width: min(100% - 32px, 560px); }
  .topbar { height: 48px; flex-basis: 48px; }
  .focus-layout { gap: 6px; padding: 6px 0; }
  .eyebrow, .intro-copy { display: none; }
  .intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  h1 { font-size: clamp(26px, 5.5vh, 34px); }
  .session-summary { flex: 0 0 auto; }
  .summary-icon { width: 27px; height: 27px; }
  .session-summary div:last-child span { display: none; }
  .timer-panel { padding: 9px 14px; border-radius: 18px; }
  .mode-tab { padding: 6px 12px; }
  .timer-face { width: min(220px, 64vw, 25vh); }
  .time-readout { gap: 5px; }
  .time { font-size: clamp(38px, 8vh, 48px); }
  .timer-controls { margin: 4px auto; gap: 12px; }
  .start-button { height: 40px; }
  .icon-button { width: 34px; height: 34px; }
  .footer { min-height: 32px; flex-basis: 32px; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .topbar { height: 62px; }
  .focus-layout { gap: clamp(36px, 6vw, 72px); padding-top: 20px; padding-bottom: 22px; }
  .eyebrow { margin-bottom: 14px; }
  .intro-copy { margin: 14px 0 24px; }
  .timer-panel { padding: 16px 24px 17px; border-radius: 24px; }
  .mode-switch { margin-bottom: 6px; }
  .timer-face { width: min(230px, 29vh); }
  .time { font-size: 50px; }
  .timer-controls { margin: 11px auto 13px; }
  .footer { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
