/* Focus board: Kanban board + Pomodoro timer in one tool. Shared theme lives in ../shared/tools.css. */
:root { --col: #eaf1fd; }

.board-title { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 2px 8px; margin-left: -8px; width: min(520px, 100%); }
.board-title:hover { border-color: var(--line); }
.board-title:focus { outline: none; border-color: var(--blue-400); background: var(--card); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ timer dock */
.dock { --mode: var(--blue-600); position: relative; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px;
  max-width: 1568px; width: calc(100% - 32px); margin: 4px auto 6px; padding: 12px 18px 16px; border-radius: 16px;
  background: var(--card); border: 1.5px solid var(--line); }
.dock[data-mode="short"] { --mode: #15803d; }
.dock[data-mode="long"] { --mode: #0891b2; }
.modes { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.modes button { border: 0; background: none; padding: .45rem .8rem; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.modes button:hover { color: var(--fg); }
.modes button[aria-selected="true"] { background: var(--mode); color: #fff; }

.dock-clock { text-align: center; min-width: 120px; }
.time { font-family: var(--display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.mode-label { color: var(--mode); font-weight: 700; font-size: .85rem; margin-top: 2px; }

.dock-task { flex: 1 1 260px; min-width: 220px; }
.task { width: 100%; padding: .6rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; }
.task:focus { outline: 2px solid color-mix(in srgb, var(--mode) 45%, transparent); outline-offset: 1px; }
.task-card { display: flex; align-items: center; gap: 8px; padding: .45rem .5rem .45rem .85rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--mode) 50%, var(--line));
  background: color-mix(in srgb, var(--mode) 9%, var(--card)); }
.task-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.task-card-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card-text .muted { font-size: .8rem; font-weight: 600; }
.task-card-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mode); }

.controls { display: flex; align-items: center; gap: 10px; }
.controls .start { min-width: 120px; justify-content: center; padding: .7rem 1.2rem; font-size: 1rem; border-radius: 12px;
  background: var(--mode); color: #fff; }
.controls .round { width: 42px; height: 42px; justify-content: center; padding: 0; border-radius: 50%; font-size: 1.05rem; }

.today { text-align: center; }
.today p { margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: .82rem; }
.dots { display: flex; justify-content: center; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--mode); }
.dots span.on { background: var(--mode); }

.dock-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: color-mix(in srgb, var(--mode) 14%, var(--line)); }
.dock-bar span { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--mode); transition: width .3s linear; }

/* ------------------------------------------------------------------ board */
.board { flex: 1; display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding: 8px 16px 24px; max-width: 1600px; width: 100%; margin: 0 auto; scroll-snap-type: x proximity; }
.col { flex: 0 0 300px; background: var(--col); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 330px); min-height: 160px; scroll-snap-align: start; }
.col-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 6px 12px; }
.col-name { flex: 1; min-width: 0; font-family: var(--display); font-weight: 800; font-size: 1.08rem; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 3px 6px; margin-left: -6px; }
.col-name:hover { border-color: var(--line); }
.col-name:focus { outline: none; border-color: var(--blue-400); background: var(--card); }
.count { font-size: .75rem; font-weight: 800; color: var(--blue-700); background: var(--blue-50); border-radius: 999px; padding: .1rem .55rem; }
.cards { flex: 1; overflow-y: auto; padding: 4px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 14px 6px; border: 1.5px dashed var(--line); border-radius: 12px; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 10px 40px 10px 12px; box-shadow: var(--shadow);
  cursor: grab; user-select: none; }
.card:hover { border-color: var(--blue-400); }
.card:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.card.prio-low { border-left-color: var(--low); }
.card.prio-medium { border-left-color: var(--medium); }
.card.prio-high { border-left-color: var(--high); }
.card.dragging { opacity: .4; }
.card.hidden { display: none; }
.card.focusing { border-color: var(--blue-600); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-600) 30%, transparent), var(--shadow); }
.card-title { font-weight: 700; font-size: .93rem; word-break: break-word; }
.card-desc { margin: 4px 0 0; color: var(--muted); font-size: .84rem; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.card-meta:empty { display: none; }
.tag.overdue { color: #fff; background: var(--high); }
.tag.pomo-tag { color: #b91c1c; background: color-mix(in srgb, #ef4444 14%, transparent); }
.placeholder { height: 46px; border-radius: 12px; border: 2px dashed var(--blue-400); background: color-mix(in srgb, var(--blue-600) 8%, transparent); flex: none; }

/* The play button on each card */
.card-focus { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0 0 0 2px;
  border: 1px solid var(--line); background: var(--bg); color: var(--blue-700); font-size: .72rem; cursor: pointer; }
.card-focus:hover, .card-focus:focus-visible { background: var(--blue-600); border-color: var(--blue-600); color: #fff; outline: none; }
.card.focusing .card-focus { background: var(--blue-600); border-color: var(--blue-600); color: #fff; padding: 0; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue-600) 25%, transparent); } }

.adder { padding: 8px 10px 10px; }
.adder .add-btn { width: 100%; justify-content: flex-start; background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.adder .add-btn:hover { background: color-mix(in srgb, var(--blue-600) 10%, transparent); color: var(--fg); box-shadow: none; transform: none; }
.adder textarea { width: 100%; resize: vertical; min-height: 64px; border-radius: 10px; border: 1px solid var(--blue-400); padding: 8px 10px; background: var(--card); }
.adder textarea:focus { outline: none; }
.adder .row { display: flex; gap: 6px; margin-top: 6px; }

.new-col { flex: 0 0 260px; }
.new-col .btn { width: 100%; justify-content: center; padding: .8rem; border-style: dashed; border-color: var(--muted); background: transparent; color: var(--muted); box-shadow: none; }
.new-col .btn:hover { color: var(--fg); }

/* ------------------------------------------------------------------ dialogs */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meta-line { font-size: .8rem; color: var(--muted); }
.focus-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; font-weight: 600; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .93rem; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.notify-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .88rem; color: var(--muted); }

@media (max-width: 760px) {
  .board-title { font-size: 1.3rem; }
  .dock { gap: 12px; }
  .dock-clock { text-align: left; }
  .col { flex-basis: min(86vw, 320px); max-height: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dock-bar span { transition: none; } .card.focusing .card-focus { animation: none; } }
