/* www.timeanddate — tasarım sistemi. Tek kaynak: docs/design/DESIGN.md */
:root {
  color-scheme: light dark;
  --bg: #f3f0e8; --surface: #fbf9f4; --surface-2: #ebe7dc;
  --ink: #15181e; --ink-2: #4a505c; --line: #d6d0c0; --line-strong: #8d8777;
  --accent: #b83c08; --accent-hover: #9a3206; --on-accent: #ffffff;
  --ok: #1f6b3a; --ok-bg: #e1f0e4; --warn: #8a4b00; --warn-bg: #fbecd0; --err: #a4231b; --err-bg: #fbe3df;
  --dial: #12161c; --dial-ink: #f1ede2; --dial-mute: #a3aab6; --dial-line: #2b323d; --dial-accent: #ff9a52;
  --focus: #0b5fd6;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --grad: linear-gradient(135deg, #d9480f 0%, #b83c08 45%, #a3175c 100%);
  --grad-soft: linear-gradient(135deg, rgba(217,72,15,.10), rgba(163,23,92,.08));
  --glass: rgba(251,249,244,.78);
  --ring: 0 0 0 4px rgba(11,95,214,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --day: #8a5a00; --day-bg: #fdefc8; --night: #3b3f9e; --night-bg: #e4e5fb;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.625rem; --fs-2xl: 2.25rem;
  --fs-clock: clamp(3rem, 12.5vw, 8.25rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(21,24,30,.05), 0 10px 30px -14px rgba(60,30,10,.22);
  --shadow-lg: 0 2px 4px rgba(21,24,30,.06), 0 22px 44px -16px rgba(120,40,8,.32);
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e13; --surface: #151a22; --surface-2: #1e2430;
    --ink: #eeeae0; --ink-2: #a8afbb; --line: #2a313d; --line-strong: #6f7886;
    --accent: #ff9a52; --accent-hover: #ffb27a; --on-accent: #1a0f05;
    --ok: #6fd08c; --ok-bg: #12301d; --warn: #f2bd6a; --warn-bg: #33250c; --err: #ff8f84; --err-bg: #3a1613;
    --dial: #07090c; --focus: #7ab2ff; --glass: rgba(21,26,34,.78);
    --grad: linear-gradient(135deg, #ffb066 0%, #ff8a4c 50%, #ff6b9a 100%); --grad-soft: linear-gradient(135deg, rgba(255,154,82,.12), rgba(255,107,154,.08));
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7); --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,154,82,.25);
    --ring: 0 0 0 4px rgba(122,178,255,.28); --day: #f2bd6a; --day-bg: #33250c; --night: #aeb2ff; --night-bg: #1c1f4a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0b0e13; --surface: #151a22; --surface-2: #1e2430;
    --ink: #eeeae0; --ink-2: #a8afbb; --line: #2a313d; --line-strong: #6f7886;
    --accent: #ff9a52; --accent-hover: #ffb27a; --on-accent: #1a0f05;
    --ok: #6fd08c; --ok-bg: #12301d; --warn: #f2bd6a; --warn-bg: #33250c; --err: #ff8f84; --err-bg: #3a1613;
    --dial: #07090c; --focus: #7ab2ff; --glass: rgba(21,26,34,.78);
    --grad: linear-gradient(135deg, #ffb066 0%, #ff8a4c 50%, #ff6b9a 100%); --grad-soft: linear-gradient(135deg, rgba(255,154,82,.12), rgba(255,107,154,.08));
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.7); --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,154,82,.25);
    --ring: 0 0 0 4px rgba(122,178,255,.28); --day: #f2bd6a; --day-bg: #33250c; --night: #aeb2ff; --night-bg: #1c1f4a;
}
:root[data-theme="light"] { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-md)/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); box-shadow: var(--ring); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main > *, .page > * { animation: rise .35s var(--ease) both; }
main > :nth-child(2), .page > :nth-child(2) { animation-delay: .05s; } main > :nth-child(3), .page > :nth-child(3) { animation-delay: .1s; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4); border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: var(--s2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.site-header { border-bottom: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { font: 800 1.125rem/1 var(--font-display); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.brand i { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px var(--accent), 0 4px 10px -2px rgba(184,60,8,.5); display: inline-block; }
.nav { display: flex; gap: var(--s1); margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.nav a:active { transform: scale(.97); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; text-decoration: none; transition: background .2s var(--ease), color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 18px -8px rgba(184,60,8,.65); }
.btn--primary:hover { background: var(--grad); filter: brightness(1.1); border-color: transparent; color: var(--on-accent); box-shadow: 0 12px 22px -8px rgba(184,60,8,.7); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.seg { display: inline-flex; border: 1.5px solid var(--dial-line); border-radius: var(--r-pill); padding: 3px; }
.seg button { min-height: 44px; min-width: 52px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--dial-mute); font: 600 var(--fs-sm) var(--font-mono); cursor: pointer; }
.seg button { transition: background .2s, color .2s; }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed="true"] { background: var(--dial-ink); color: var(--dial); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--dial-ink); }

.field { display: grid; gap: var(--s2); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.input { min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; width: 100%; transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 1px 2px rgba(21,24,30,.05); }
.input:hover { border-color: var(--ink); }
.input:focus-visible { border-color: var(--focus); box-shadow: var(--ring); outline-offset: 1px; }
.input:disabled { background: var(--surface-2); color: var(--ink-2); }
.input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: var(--fs-xs); color: var(--ink-2); }

.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid currentColor; font-size: var(--fs-sm); }
.alert[hidden] { display: none; }
.alert--ok { color: var(--ok); background: var(--ok-bg); }
.alert--warn { color: var(--warn); background: var(--warn-bg); }
.alert--error { color: var(--err); background: var(--err-bg); }
.alert strong { font-weight: 600; }

.dial { position: relative; overflow: hidden; background-color: var(--dial); color: var(--dial-ink); border-bottom: 4px solid transparent; border-image: var(--grad) 1; background-image: radial-gradient(60% 90% at 85% 0%, rgba(255,120,60,.30), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(190,40,110,.22), transparent 70%), repeating-linear-gradient(90deg, var(--dial-line) 0 1px, transparent 1px 24px), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: auto, auto, 100% 10px, 22px 22px; background-repeat: no-repeat, no-repeat, no-repeat, repeat; background-position: 0 0, 0 0, bottom, 0 0; }
.dial .wrap { position: relative; }
.dial .wrap { padding-top: var(--s7); padding-bottom: var(--s7); display: grid; gap: var(--s4); }
.eyebrow { font: 600 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dial-mute); }
.clock { font: 500 var(--fs-clock)/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; margin: 0; white-space: nowrap; }
.clock { text-shadow: 0 0 60px rgba(255,140,70,.25); }
.clock .sec { color: var(--dial-accent); text-shadow: 0 0 28px rgba(255,154,82,.55); }
.clock .ampm { font-size: .28em; letter-spacing: 0; margin-left: .3em; color: var(--dial-mute); }
.dial-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; justify-content: space-between; }
.dial-date { font: 600 var(--fs-lg)/1.3 var(--font-display); }
.dial-tz { color: var(--dial-mute); font-size: var(--fs-sm); }
.dial .alert { max-width: 560px; }

.section { padding: var(--s7) 0 0; }
.section:last-of-type { padding-bottom: var(--s8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { color: var(--ink-2); font-size: var(--fs-sm); }

.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.city { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s1) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); box-shadow: var(--shadow); position: relative; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s; }
.city::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--day); opacity: .9; }
.city:has([data-state="night"])::before { background: var(--night); }
.city:hover, .city:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.city a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.city a:focus-visible { outline: none; box-shadow: none; }
.city:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.city a { text-decoration: none; font: 700 var(--fs-lg)/1.2 var(--font-display); }
.city a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.city small { grid-column: 1; color: var(--ink-2); font-size: var(--fs-xs); }
.city .t { position: relative; z-index: 1; pointer-events: none; grid-row: 1 / span 2; grid-column: 2; font: 500 var(--fs-xl)/1 var(--font-mono); letter-spacing: -.03em; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s6); text-align: center; color: var(--ink-2); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: var(--r-sm); color: transparent; }
@keyframes sh { to { background-position: -200% 0; } }

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.tool { display: flex; flex-direction: column; gap: var(--s2); min-height: 176px; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); background-image: var(--grad-soft); background-size: 100% 0; background-repeat: no-repeat; box-shadow: var(--shadow); text-decoration: none; position: relative; transition: transform .22s var(--ease), border-color .2s, box-shadow .22s var(--ease), background-size .3s var(--ease); }
.tool:nth-child(1), .tool:nth-child(6) { grid-column: span 2; }
.tool:nth-child(7), .tool:nth-child(8) { grid-column: span 2; }
.tool .k { font: 700 var(--fs-xs) var(--font-mono); color: var(--accent); width: fit-content; padding: 2px var(--s3); border-radius: var(--r-pill); background: var(--grad-soft); border: 1px solid currentColor; letter-spacing: .1em; }
.tool h3 { font-size: var(--fs-lg); }
.tool p { color: var(--ink-2); font-size: var(--fs-sm); }
.tool::after { content: "→"; position: absolute; right: var(--s5); bottom: var(--s4); font-size: var(--fs-lg); color: var(--ink-2); transition: transform .15s, color .15s; }
.tool:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); background-size: 100% 100%; }
.tool:active { transform: translateY(-1px); }
.tool:hover::after { color: var(--accent); transform: translateX(4px); }

.ad-wrap { padding-top: var(--s2); }
.ad-wrap:empty, .ad-wrap:has(> .ad-slot[style*="display: none"]) { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--ink-2); font-size: var(--fs-sm); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }

@media (max-width: 1023px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tool:nth-child(1), .tool:nth-child(6) { grid-column: span 1; }
  .tool:nth-child(7), .tool:nth-child(8) { grid-column: span 1; }
  .cities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .site-header .wrap { gap: var(--s3); }
  .brand span { display: none; }
  .dial .wrap { padding-top: var(--s6); padding-bottom: var(--s6); }
  .cities, .tools { grid-template-columns: 1fr; }
  .tool { min-height: 0; padding-bottom: var(--s7); }
  .section { padding-top: var(--s6); }
  .section-head h2 { font-size: var(--fs-lg); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- Ortak iskelet eklemeleri (DESIGN.md token'larıyla) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html, body { overflow-x: hidden; }
.site-header .wrap { flex-wrap: wrap; }
.site-header .brand span { display: inline; }
.nav { margin-left: auto; overflow: visible; flex-wrap: nowrap; gap: 0; }
.nav a { font-size: .875rem; }
.brand { flex: none; }
@media (min-width: 861px) and (max-width: 1240px) { .brand span { display: none !important; } }
.settings-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-weight: 500; transition: background .2s; }
.settings-top:hover { background: var(--surface-2); color: var(--ink); }
.site-header .wrap:first-child { flex-wrap: nowrap; gap: var(--s3); }
.with-aside:has(> aside:empty) { grid-template-columns: 1fr; }
aside:empty { display: none; }
.settings-bar { display: none; align-items: center; min-height: 44px; padding: 0 var(--s2); text-decoration: none; font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0 var(--s3); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }
.header-bar { display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s4) var(--s3); justify-content: flex-end; }
.city-search { position: relative; flex: 0 1 420px; width: 100%; }
.city-search .input { width: 100%; }
.city-search-big { flex: 1 1 auto; max-width: 680px; }
.city-search-big .input { min-height: 56px; font-size: var(--fs-lg); border-radius: var(--r-pill); padding: 0 var(--s5); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: var(--s1); list-style: none; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); z-index: 30; max-height: 340px; overflow: auto; box-shadow: var(--shadow-lg); animation: rise .15s var(--ease); }
.suggest[hidden] { display: none; }
.suggest li { padding: var(--s3) var(--s4); border-radius: var(--r-sm); cursor: pointer; min-height: 44px; }
.suggest li small { color: var(--ink-2); margin-left: var(--s2); }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.settings-link { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.page { padding-block: var(--s6) var(--s8); display: grid; gap: var(--s5); }
.page h1 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.page h1::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--grad); margin-top: var(--s3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.info { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: 0; }
.info dt { color: var(--ink-2); font-size: var(--fs-sm); }
.info dd { margin: 0; }
.with-aside { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.daynight { display: inline-block; min-width: 1.4em; }
.city .daynight { padding: 1px 6px; border-radius: var(--r-pill); background: var(--day-bg); }
.city .daynight[data-state="night"] { background: var(--night-bg); }
.toast { position: fixed; left: 50%; bottom: var(--s4); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: var(--s3) var(--s5); border-radius: var(--r-md); z-index: 60; max-width: 90vw; }
.toast[hidden] { display: none; }
.dial .alert { color: var(--ink); }
.settings fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 0 var(--s4); padding: var(--s4) var(--s5); background: var(--surface); box-shadow: var(--shadow); }
.settings label { display: inline-flex; align-items: center; gap: var(--s2); margin-right: var(--s5); min-height: 44px; }
.continent { margin-top: var(--s6); }
@media (min-width: 1024px) { .with-aside { grid-template-columns: 1fr 300px; } }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .settings-top { display: none; }
  .settings-bar { display: inline-flex; }
  .header-bar { flex-wrap: nowrap; }
  .site-header .wrap:first-child { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; margin-left: 0; order: 5; }
  .nav.open { display: flex; }
  .header-bar { justify-content: stretch; }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dd { margin-bottom: var(--s3); }
}
.dial .city-search-big { margin-top: var(--s5); }
.dial .city-search .input { color: var(--ink); }
.city .daynight { margin-right: var(--s1); }
.clock .daynight { font-size: .45em; vertical-align: middle; margin-right: .2em; }
.dial .btn { background: transparent; color: var(--dial-ink); border-color: currentColor; }
.dial .btn:hover { background: rgba(255,255,255,.12); }
.with-aside > * { min-width: 0; }
@media (min-width: 1024px) and (max-width: 1279px) { .with-aside .tools { grid-template-columns: repeat(2, 1fr); } }

/* Araç formları */
.tool-form { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-end; }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field-grow { flex: 1 1 260px; }
.tool-form > .hint, .tool-form > .alert, .tool-form > .chips { flex: 1 1 100%; margin: 0; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s1) var(--s1) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-sm); max-width: 100%; }
.chip button { min-width: 44px; min-height: 44px; margin: -6px 0; border: 0; background: transparent; color: var(--ink); font-size: var(--fs-lg); cursor: pointer; border-radius: var(--r-pill); }
.chip button:hover { color: var(--accent); background: var(--surface); }
.page > * { min-width: 0; }
.plan-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--surface); }
.plan { border-collapse: separate; border-spacing: 0; min-width: 100%; font: 500 var(--fs-xs)/1.2 var(--font-mono); }
.plan th, .plan td { padding: 0; border-right: 1px solid var(--surface); border-bottom: 1px solid var(--surface); text-align: center; white-space: nowrap; }
.plan thead th { background: var(--surface-2); }
.plan .city-h { position: sticky; left: 0; z-index: 2; background: var(--surface-2); text-align: left; padding: var(--s2) var(--s3); min-width: 120px; max-width: 160px; font: 600 var(--fs-sm)/1.2 var(--font-body); }
.plan tbody .city-h { background: var(--surface); border-right: 1px solid var(--line); }
.plan .city-h small { display: block; font: 400 var(--fs-xs) var(--font-mono); color: var(--ink-2); }
.plan .col-h button, .plan td button { display: block; width: 100%; min-width: 52px; min-height: 44px; padding: var(--s2) var(--s1); border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.plan td button { position: relative; }
.plan td .dm { display: block; font-size: 10px; opacity: .85; }
.plan td.w-work { background: var(--ok-bg); color: var(--ok); }
.plan td.w-edge { background: var(--warn-bg); color: var(--warn); }
.plan td.w-sleep { background: var(--err-bg); color: var(--err); }
.plan td.w-sleep button { opacity: .8; }
.plan td.d-new button { box-shadow: inset 2px 0 0 currentColor; }
.plan .col-sel button, .plan td.col-sel button { outline: 2px solid var(--ink); outline-offset: -2px; }
.plan button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s3); font-size: var(--fs-xs); margin-bottom: var(--s3); }
.lg { padding: var(--s1) var(--s3); border-radius: var(--r-pill); }
.lg-work { background: var(--ok-bg); color: var(--ok); } .lg-edge { background: var(--warn-bg); color: var(--warn); } .lg-sleep { background: var(--err-bg); color: var(--err); }
.summary-text { white-space: pre-wrap; font: 500 var(--fs-sm)/1.6 var(--font-mono); margin: 0 0 var(--s3); overflow-wrap: anywhere; }

/* Geri sayım */
.form-h { flex: 1 1 100%; font-size: var(--fs-lg); }
.cd-stage { background: radial-gradient(70% 100% at 90% 0%, rgba(255,120,60,.28), transparent 70%), var(--dial); color: var(--dial-ink); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: var(--s6) var(--s5); text-align: center; }
.cd-stage[hidden] { display: none; }
.cd-stage .eyebrow { color: var(--dial-accent); }
.cd-stage h2 { font-size: var(--fs-xl); }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.cd-grid b { display: block; font: 500 clamp(1.75rem, 9vw, 4.5rem)/1 var(--font-mono); letter-spacing: -.03em; }
.cd-grid span { color: var(--dial-mute); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.cd-stage .dial-tz { color: var(--dial-mute); margin: 0; overflow-wrap: anywhere; }
.cd-done { font: 800 var(--fs-2xl)/1.1 var(--font-display); color: var(--dial-accent); margin: var(--s3) 0; animation: cd-pop 1s ease-in-out infinite; }
.cd-done[hidden] { display: none; }
.cd-stage.done { animation: cd-glow 1.6s ease-in-out infinite; }
@keyframes cd-pop { 50% { transform: scale(1.12); } }
@keyframes cd-glow { 50% { box-shadow: 0 0 0 6px var(--dial-accent), 0 0 48px 8px var(--dial-accent); } }
.presets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); }
.presets a { display: block; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; min-height: 44px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.presets a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.presets b { display: block; font: 700 var(--fs-md) var(--font-display); }
.presets small { color: var(--ink-2); }
@media print { .cd-stage.done, .cd-done { animation: none; } }

/* Dönüştürücü */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.result { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s4); align-items: center; padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.result:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.result h3 { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.result .rt { font: 500 var(--fs-xl)/1 var(--font-mono); text-align: right; letter-spacing: -.03em; }
.result small { color: var(--ink-2); font-size: var(--fs-xs); }
.result .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
.result--src { border-color: var(--accent); background-image: var(--grad-soft); }
.badge { display: inline-block; padding: 2px var(--s3); border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font: 600 var(--fs-xs) var(--font-body); }

/* Kronometre / zamanlayıcı */
.tool-display { font-size: clamp(2.5rem, 13vw, 6.5rem); line-height: 1; letter-spacing: -.04em; margin: var(--s4) 0; white-space: nowrap; }
.tool-btns { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s4); }
.tool-btn { min-height: 56px; min-width: 120px; flex: 1 1 120px; max-width: 200px; font-size: var(--fs-md); }
.tool-btn--dial { border-color: var(--dial-ink); color: var(--dial-ink); }
.tool-btn--dial:hover { background: var(--dial-ink); color: var(--dial); }
.fs-stage:fullscreen { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 0; width: 100%; height: 100%; }
.fs-stage:fullscreen .tool-display { font-size: clamp(3rem, 18vw, 14rem); }
.laps { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.laps th, .laps td { padding: var(--s2) var(--s4); text-align: right; border-bottom: 1px solid var(--line); }
.laps th:first-child, .laps td:first-child { text-align: left; }
.laps th { font: 600 var(--fs-xs) var(--font-body); color: var(--ink-2); }
.presets--btn { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tool-preset { width: 100%; min-height: 52px; }
.cd-stage.flash { animation: tm-flash .7s steps(1, end) infinite; }
@keyframes tm-flash { 0% { background: var(--dial); } 50% { background: var(--accent); color: var(--on-accent); } }
@media (prefers-reduced-motion: reduce) { .cd-stage.flash { animation: none; background: var(--accent); color: var(--on-accent); } }
body.is-fullscreen .ad-wrap, body.is-fullscreen .ad-slot { display: none !important; }

/* Tarih hesaplayıcı */
.tabs { display: flex; gap: var(--s1); overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); text-decoration: none; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.check input { width: 22px; height: 22px; }
[data-panel] { display: grid; gap: var(--s4); }
[data-panel][hidden] { display: none; }
.dc-result[hidden] { display: none; }
.dc-result h2 { font-size: var(--fs-xl); margin-bottom: var(--s3); }
.dc-result dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); margin: 0; }
.dc-result dt { color: var(--ink-2); }
.dc-result dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dc-big { font: 700 var(--fs-xl)/1.2 var(--font-display); }

/* Takvim */
.cal-nav { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cal-go { display: flex; gap: var(--s2); flex-wrap: wrap; }
.cal-go .input { width: auto; }
.cal-arrow { min-width: 44px; padding: 0 var(--s3); font-size: var(--fs-lg); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cal th, .cal td { padding: var(--s2) 0; font-size: var(--fs-sm); height: 40px; }
.cal thead th { font: 600 var(--fs-xs) var(--font-body); color: var(--ink-2); }
.cal .we { color: var(--accent); }
.cal .wk { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 500; width: 12%; border-right: 1px solid var(--line); }
.cal td.today { background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); font-weight: 700; }
.cal-month .cal th, .cal-month .cal td { height: 52px; font-size: var(--fs-md); }
.cal-year { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cal-card { padding: var(--s3); min-width: 0; }
.cal-card h2 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.cal-card h2 a { text-decoration: none; }
.cal-card h2 a:hover { color: var(--accent); }
.cal-card .cal th, .cal-card .cal td { height: 32px; padding: 0; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .site-header, .site-footer, .ad-wrap, .ad-slot, .no-print, .skip, .toast, .hint { display: none !important; }
  body { background: #fff; color: #000; }
  .cal-page { padding: 0; gap: var(--s2); }
  .cal-page h1 { font-size: 20pt; text-align: center; }
  .cal-year { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .cal-card { border: 1px solid #999; padding: 2mm; break-inside: avoid; background: #fff; }
  .cal-card h2 { font-size: 11pt; margin-bottom: 1mm; }
  .cal-card .cal th, .cal-card .cal td { height: 6.4mm; font-size: 8pt; }
  .cal .we, .cal-card h2 a { color: #000; }
  .cal td.today { background: none; color: inherit; border: 1px solid #000; }
}

/* 404 / bağlantı listeleri */
.tools-list{list-style:none;padding:0;margin:16px 0;display:flex;flex-wrap:wrap;gap:8px}
.tools-list a{display:inline-block;padding:8px 14px;border:1px solid var(--border,#d0d5dd);border-radius:999px;text-decoration:none}

/* QA cilası: sekmeler mobilde sığar, sonuç kartı ile form arası boşluk */
.dc-result { margin-top: var(--s4); }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 639px) { .tab { padding: 0 var(--s3); font-size: var(--fs-sm); } }
.info { align-items: baseline; }
.info dt, .info dd { margin: 0; line-height: 1.5; }
.info dt { font-size: var(--fs-sm); }
