/*! © 2026 Cengiz Ilerler. All rights reserved. https://cengiz.ilerler.info/ */
.tool-box.ft { width: 100%; position: relative; font-family: var(--sans); }
.ft [hidden] { display: none !important; }
.ft-g { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 320px); grid-template-areas: "set main stats"; gap: 32px; align-items: start; }
.ft-left { grid-area: set; } .ft-main { grid-area: main; } .ft-right { grid-area: stats; }
.ft-main { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; padding: 2px 0 6px; }
.ft-top { display: flex; justify-content: center; }
.ft-dial { --c: var(--amber); position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.ft-dial svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ft-k { fill: none; stroke: var(--tide); stroke-width: 9; }
.ft-p { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.ft-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 15%; text-align: center; }
.ft-ph { margin: 0; max-width: 100%; font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.ft-time { margin: 0; font: 300 clamp(58px, 15vw, 92px)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--foam); }
.ft-sub { margin: 0; min-height: 1.3em; font: 400 13.5px/1.3 var(--sans); color: var(--mist); }
.ft-dial:not(.is-on) .ft-time { color: var(--body); }
.ft-dots { display: flex; align-items: center; gap: 8px; min-height: 10px; }
.ft-dots > i { width: 10px; height: 10px; border: 1.5px solid var(--hair-3); border-radius: 50%; }
.ft-dots > i.d { border-color: var(--amber); background: var(--amber); }
.ft-dots > i.n { border-color: var(--amber); }
.ft-bar { display: block; width: min(320px, 70vw); height: 6px; border-radius: 99px; background: var(--tide); overflow: hidden; }
.ft-bar i { display: block; height: 100%; border-radius: inherit; background: var(--seaglass); transition: width .3s linear; }
.ft-label { width: min(420px, 100%); }
.ft-label input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--abyss); color: var(--foam); font: 400 15px/1 var(--sans); text-align: center; outline: none; }
.ft-label input:focus { border-color: var(--sea); }
.ft-label input::placeholder { color: var(--mist); opacity: .7; }
.ft-ctl { display: flex; align-items: center; gap: 18px; }
.ft-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 172px; height: 64px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--amber); color: var(--abyss); font: 600 18px/1 var(--sans); cursor: pointer; transition: background-color .15s, filter .15s; }
.ft-go:hover { filter: brightness(1.06); }
.ft-go:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.ft-go svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ft-go.is-on { background: var(--foam); }
.ft-next { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--mist); text-align: center; }
.ft-keys { margin: -8px 0 0; font: 400 12px/1.3 var(--sans); color: var(--mist); opacity: .7; }
@media (hover: none) { .ft-keys { display: none; } }
.ft-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ft-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tide); }
.ft-h { margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.ft-h2 { margin-top: 8px; }
.ft-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 10px; }
.ft-row > .g-seg { justify-self: start; }
.ft-left .ft-row { grid-template-columns: 100px minmax(0, 1fr); }
.ft-left .ft-row > .g-seg { flex-wrap: nowrap; }
.ft-left .ft-row > .g-seg button { padding-left: 11px; padding-right: 11px; white-space: nowrap; }
.ft-l { font: 600 10.5px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.ft-num { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.ft-num input { width: 76px; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--abyss); color: var(--foam); font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; outline: none; }
.ft-num input:focus { border-color: var(--sea); }
.ft-num em { font: 400 13px/1 var(--sans); font-style: normal; color: var(--mist); }
.ft-sws { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.ft-sws .vc-sw-t { color: var(--body); }
.ft-pre { display: flex; flex-direction: column; gap: 8px; }
.ft-pre-b { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chip { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--deep); color: var(--body); font: 500 12.5px/1 var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.ft-chip:hover { border-color: var(--sea); color: var(--foam); }
.ft-ivs { display: flex; flex-direction: column; gap: 8px; }
.ft-iv { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 6px; }
.ft-iv > i { width: 6px; height: 28px; border-radius: 3px; background: var(--c); }
.ft-iv > input { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--abyss); color: var(--foam); font: 400 14.5px/1 var(--sans); outline: none; }
.ft-iv > input:focus { border-color: var(--sea); }
.ft-iv .ft-num { gap: 5px; }
.ft-iv .ft-num input { width: 66px; }
.ft-mini { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--mist); cursor: pointer; }
.ft-mini:hover:not(:disabled) { background: var(--deep); color: var(--foam); }
.ft-mini:disabled { opacity: .28; cursor: default; }
.ft-mini svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ft-add, .ft-link { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--sea); font: 500 13.5px/1.2 var(--sans); cursor: pointer; }
.ft-add:hover, .ft-link:hover { color: var(--foam); }
.ft-link.is-bad { color: var(--coral); }
.ft-total { margin: 0; font: 400 13px/1.3 var(--sans); color: var(--mist); }
.ft-vol { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ft-vol input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--sea); }
.ft-test { flex: none; height: 32px; padding: 0 14px; border: 1px solid var(--hair-3); border-radius: 999px; background: none; color: var(--foam); font: 500 13px/1 var(--sans); cursor: pointer; }
.ft-test:hover { border-color: var(--sea); color: var(--sea); }
.ft-today { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 2px 0 0; font: 400 14px/1.2 var(--sans); color: var(--mist); }
.ft-today b { font: 400 30px/1 var(--serif); color: var(--foam); }
.ft-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 88px; margin-top: 4px; }
.ft-day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.ft-day-b { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--hair-2); }
.ft-day-b i { width: 70%; max-width: 26px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--amber) 45%, var(--tide)); }
.ft-day.is-today .ft-day-b i { background: var(--amber); }
.ft-day em { font: 500 11px/1 var(--sans); font-style: normal; color: var(--mist); }
.ft-day.is-today em { color: var(--foam); }
.ft-log { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ft-log li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); font: 400 13.5px/1.3 var(--sans); }
.ft-log li:first-child { border-top: 0; }
.ft-log-k { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ft-log-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foam); }
.ft-log-t { font-size: 12.5px; color: var(--mist); white-space: nowrap; }
.ft-log-n { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; color: var(--body); white-space: nowrap; }
.ft-log-a { display: flex; justify-content: space-between; margin: 0; }
.ft-empty { margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--mist); }
.ft-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(4, 11, 17, .72); }
.ft-dlg { width: min(460px, 100%); padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--deep); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); }
.ft-dlg h2 { margin: 0; font: 400 25px/1.2 var(--serif); color: var(--foam); }
.ft-dlg p { margin: 0; font: 400 15px/1.55 var(--sans); color: var(--body); }
.ft-dlg-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ft-dlg-f .btn, .ft-dlg-f .btn-2 { min-height: 42px; height: 42px; padding: 0 18px; font-size: 14px; }
.ft-toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); margin: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tide); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font: 400 14px/1.45 var(--sans); color: var(--foam); }
.ft-toast.is-bad { border-color: var(--coral); }
@media (max-width: 1180px) {
  .ft-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "set stats"; gap: 28px; }
}
@media (max-width: 760px) {
  .ft-g { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "set" "stats"; }
}
@media (max-width: 520px) {
  .ft-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ft-sec { padding: 14px; }
  .ft-ctl { gap: 12px; }
  .ft-go { min-width: 148px; height: 58px; }
}
@media (min-width: 1181px) {
  html.tool-full .tool-box.ft { display: flex; flex-direction: column; }
  html.tool-full .ft-app { flex: 1 1 auto; min-height: 0; }
  html.tool-full .ft-g { height: 100%; align-items: stretch; }
  html.tool-full .ft-main { justify-content: center; }
  html.tool-full .ft-dial { width: min(480px, calc(100dvh - var(--nav-h) - 330px)); min-width: 260px; }
  html.tool-full .ft-time { font-size: clamp(64px, 7vw, 108px); }
  html.tool-full .ft-side { min-height: 0; overflow: auto; padding-right: 4px; }
}
