/* myadhd.dev — calm, low-stimulation dark theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #14141c;
  --bg2: #1b1b26;
  --card: #1e1e2a;
  --line: #2c2c3c;
  --text: #e6e6f0;
  --dim: #9c9cb4;
  --accent: #a78bfa;
  --accent-dim: #6d5aa8;
  --good: #7dd3a0;
  --radius: 18px;
}
body {
  font-family: ui-rounded, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
}
main { max-width: 760px; margin: 0 auto; padding: 0 20px 60px; }

/* header */
.top {
  max-width: 760px; margin: 0 auto; padding: 22px 20px 6px;
  display: flex; flex-direction: column; gap: 14px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  color: var(--dim); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg2);
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--accent-dim); border-color: var(--accent-dim); color: #fff; }

/* tools */
.tool-head { margin: 34px 0 18px; }
h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
.sub { color: var(--dim); margin-top: 6px; max-width: 40rem; }
.card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.center { text-align: center; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.center { justify-content: center; }
.row.gap { margin-top: 18px; justify-content: center; }
input[type="text"] {
  flex: 1 1 240px; font: inherit; color: var(--text);
  background: var(--bg2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 16px; outline: none;
}
input[type="text"]:focus { border-color: var(--accent-dim); }

.btn {
  font: inherit; font-weight: 700; cursor: pointer; color: #fff;
  background: var(--accent-dim); border: none; border-radius: 12px; padding: 12px 22px;
}
.btn:hover { filter: brightness(1.15); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--accent-dim); }

.chip {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--dim); background: var(--bg2); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
}
.chip:hover, .chip.on { color: var(--text); border-color: var(--accent-dim); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }

.tiny { color: var(--dim); font-size: .85rem; margin-top: 14px; }

/* breaker */
.progress-wrap { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin: 18px 0 6px; }
.progress { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.steps { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.steps li .tick {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; cursor: pointer;
  border: 2px solid var(--accent-dim); border-radius: 7px; background: transparent;
}
.steps li.done .tick { background: var(--good); border-color: var(--good); }
.steps li.done .txt { color: var(--dim); text-decoration: line-through; }
.steps li .txt { flex: 1; outline: none; }
.steps li .txt:focus { background: var(--bg); border-radius: 6px; }
.steps li .mins { flex: 0 0 auto; color: var(--accent); font-weight: 700; font-size: .85rem; margin-top: 3px; }

/* timer */
.timer-wrap { position: relative; width: 240px; margin: 10px auto; }
.ring { width: 240px; height: 240px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg2); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 628.3; stroke-dashoffset: 0;
}
.timer-readout {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.timer-time { font-size: 2.6rem; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.timer-phase { color: var(--dim); font-size: .9rem; font-weight: 600; }
.timer-phase.break { color: var(--good); }

/* dopamine menu */
.menu-item {
  background: var(--bg2); border: 1.5px dashed var(--accent-dim); border-radius: 14px;
  padding: 26px 22px; margin: 8px auto; max-width: 34rem;
}
.menu-text { font-size: 1.15rem; font-weight: 600; }
#menu-streak { margin-top: 16px; }
.streak-num { color: var(--accent); font-weight: 800; }

/* one thing */
.now-label { color: var(--dim); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-top: 8px; }
.now-text { font-size: 1.5rem; font-weight: 700; margin: 12px 0 20px; }

/* footer */
.foot {
  max-width: 760px; margin: 40px auto 0; padding: 24px 20px 40px;
  border-top: 1.5px solid var(--line); color: var(--dim); font-size: .92rem;
}
.foot .tiny { margin-top: 6px; }

@media (max-width: 560px) {
  h1 { font-size: 1.55rem; }
  .timer-wrap, .ring { width: 200px; height: 200px; }
}
