:root { color-scheme: light; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202633; background: #f7f8fa; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; --ink: #202633; --muted: #687282; --line: #e7e9ee; --accent: #446cf3; --surface: #fff; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #91a8ff; outline-offset: 3px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 10px 14px; transform: translateY(-150%); background: var(--surface); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 72px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { width: min(100% - 40px, 1120px); height: 100%; margin: 0 auto; display: flex; align-items: center; }
.header-inner { justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 19px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--accent); font: 800 20px/1 ui-sans-serif, system-ui, sans-serif; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a, .footer-nav a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s ease; }
.primary-nav a:hover, .footer-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); }
.primary-nav a[aria-current="page"] { font-weight: 700; }
.menu-toggle { display: none; }
.main-container { width: min(100% - 40px, 920px); flex: 1; margin: 0 auto; padding: clamp(56px, 9vw, 104px) 0 88px; }
.page-intro { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font: 800 clamp(34px, 6vw, 54px)/1.12 ui-sans-serif, system-ui, sans-serif; letter-spacing: -2.4px; }
.intro-copy { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.65; }
.tool-panel { min-height: 280px; padding: clamp(24px, 5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 36px rgba(28, 39, 63, .035); }
.panel-content { max-width: 680px; margin: 0 auto; }
h2 { margin-bottom: 10px; font: 700 23px/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: -.6px; }
.panel-content > p { margin-bottom: 26px; color: var(--muted); line-height: 1.65; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-card { min-height: 96px; padding: 17px 18px; position: relative; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease, transform .15s ease; }
.tool-card:hover { border-color: #bac8ff; transform: translateY(-2px); }
.tool-card > span:first-child { font-weight: 700; }
.tool-card p { margin: 8px 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-arrow { position: absolute; top: 15px; right: 17px; color: var(--accent); }
.button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font: 600 14px/1 ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.button-secondary { background: #fff; color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 112px; justify-content: space-between; gap: 24px; }
.footer-brand p, .copyright { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-nav a { font-size: 12px; }
.copyright { margin: 0; white-space: nowrap; }
.timer-app { max-width: 600px; margin: 0 auto; }
.timer-display-wrap { margin: 0 auto 30px; text-align: center; }
.timer-state { min-height: 20px; margin: 0 0 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.timer-display { margin: 0; color: var(--ink); font: 700 clamp(48px, 12vw, 88px)/1.05 ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.055em; white-space: nowrap; }
.timer-settings { margin: 0 auto; }
.time-inputs { min-width: 0; margin: 0 auto; padding: 0; border: 0; }
.time-inputs legend { width: 100%; margin-bottom: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.time-input-row { display: flex; align-items: end; justify-content: center; gap: 10px; }
.time-inputs label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; text-align: center; }
.time-inputs input { width: clamp(62px, 17vw, 78px); height: 48px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 600 18px/1 ui-sans-serif, system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.time-inputs input:focus { border-color: var(--accent); outline: 3px solid #dce4ff; }
.time-inputs:disabled input { background: #f7f8fa; color: var(--muted); }
.time-separator { padding-bottom: 14px; color: #a1a8b3; font-size: 20px; }
.timer-error { min-height: 19px; margin: 8px 0 6px; color: #b42318; font-size: 12px; text-align: center; }
.timer-actions { display: flex; justify-content: center; gap: 10px; }
.timer-actions .button { min-width: 112px; min-height: 48px; }
.timer-primary:disabled { border-color: #c7cedb; background: #c7cedb; cursor: not-allowed; }
.timer-screen-actions { margin-top: 12px; text-align: center; }
.timer-screen-actions .button { min-height: 48px; }
.timer-screen-actions [hidden] { display: none; }
.timer-feature-status { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.timer-app:fullscreen { position: fixed; z-index: 10; inset: 0; width: 100%; max-width: none; min-height: 100%; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); display: flex; flex-direction: column; justify-content: center; overflow-y: auto; background: var(--surface); }
.stopwatch-app, .clock-app { max-width: 600px; margin: 0 auto; }
.stopwatch-display { margin: 0; color: var(--ink); font: 700 clamp(38px, 10vw, 72px)/1.05 ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.055em; text-align: center; white-space: nowrap; }
.clock-app { padding: 8px 0 20px; text-align: center; }
.clock-time { margin: 0; color: var(--ink); font: 700 clamp(44px, 12vw, 84px)/1.1 ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.05em; white-space: nowrap; }
.clock-date { margin: 12px 0 0; color: var(--muted); font-size: clamp(14px, 2.5vw, 17px); line-height: 1.5; }
.clock-format { margin-top: 28px; display: flex; justify-content: center; gap: 10px; }
.clock-format .button { min-width: 112px; min-height: 48px; }
.clock-format .button[aria-pressed="true"] { border-color: var(--accent); background: #eef2ff; color: var(--accent); }
.presets { margin-top: 32px; }
.presets h3 { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.preset-button { min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #424c5c; font: 600 13px/1.2 ui-sans-serif, system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.preset-button:hover:not(:disabled) { border-color: #bac8ff; background: #f7f9ff; color: var(--accent); }
.preset-button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 720px) {
  .site-header { height: 64px; }
  .header-inner, .footer-inner { width: min(100% - 32px, 1120px); }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 2px; background: var(--ink); border-radius: 2px; }
  .primary-nav { position: absolute; z-index: 3; top: 63px; left: 0; right: 0; display: none; padding: 10px 16px 16px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 12px 18px rgba(28,39,63,.06); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 8px; border-bottom: 1px solid #f0f1f4; }
  .primary-nav a:last-child { border-bottom: 0; }
  .main-container { width: min(100% - 32px, 920px); padding: 58px 0 64px; }
  .page-intro { margin-bottom: 30px; }
  h1 { letter-spacing: -1.5px; }
  .tool-panel { min-height: 260px; border-radius: 16px; }
  .timer-display-wrap { margin-bottom: 26px; }
  .time-input-row { gap: 7px; }
  .presets { margin-top: 27px; }
  .footer-inner { padding: 24px 0; flex-wrap: wrap; }
  .footer-brand { width: 100%; }
  .footer-nav { justify-content: flex-start; gap: 13px 18px; }
}
@media (max-width: 420px) { .tool-grid { grid-template-columns: 1fr; } .footer-inner { gap: 18px; } .copyright { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
