/* =========================================================
   Focus Timer (Home Office hub, version 51)
   Loaded after theme.css on the tool pages. Same frame as the Desk Board (.tk): the timer on the left, today's log and
   the settings on the right (under it on phones). Home Office blue takes the place of safety yellow inside this tool.
   The ring shows the time left; breaks draw it in green so a glance tells focus from break, and the mode is written
   in the middle too.
   ========================================================= */
@media screen {

#panel-focus {
  --mascot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 58'%3E%3Cellipse cx='25' cy='54' rx='18' ry='3' fill='%231B2125' opacity='.15'/%3E%3Cg transform='translate(1 4)'%3E%3Cpath d='M17 9c-2-2 2-4 0-6M25 9c-2-2 2-4 0-6' fill='none' stroke='%231B2125' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M37 19h3a6 6 0 0 1 0 12h-3' fill='none' stroke='%231B2125' stroke-width='3'/%3E%3Cpath d='M8 12h30v26a7 7 0 0 1-7 7H15a7 7 0 0 1-7-7z' fill='%2363B3ED' stroke='%231B2125' stroke-width='2.4' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='23' r='2.2' fill='%231B2125'/%3E%3Ccircle cx='28' cy='23' r='2.2' fill='%231B2125'/%3E%3Cpath d='M20 28q3 3 6 0' fill='none' stroke='%231B2125' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='13.5' cy='28' rx='2.6' ry='1.6' fill='%23F4B6B0'/%3E%3Cellipse cx='32.5' cy='28' rx='2.6' ry='1.6' fill='%23F4B6B0'/%3E%3C/g%3E%3C/svg%3E");
  --mascot-w: 52px; --mascot-h: 60px; --note: "one block at a time";
  /* the tool's accent: Home Office blue (ink text on it is 8:1) */
  --yel: #63b3ed; --yel-hover: #7fc1f0; --yel-soft: #dceefb; --yel-line: #a9d4f5; --yel-ink: #1d4f73; --on-yel: #1b2125; --hl: #63b3ed;
  --ft-break: #6bcb77;
}
:root:lang(es) #panel-focus { --note: "un bloque a la vez"; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-tc-theme="light"]) #panel-focus { --yel-soft: #15283a; --yel-line: #2a4a66; --yel-ink: #a9d4f5; --hl: #2b5a80; }
}
:root[data-theme="dark"]:not([data-tc-theme="light"]) #panel-focus, :root[data-tc-theme="dark"] #panel-focus { --yel-soft: #15283a; --yel-line: #2a4a66; --yel-ink: #a9d4f5; --hl: #2b5a80; }

/* ---------- the frame ---------- */
.ft .tk-main { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.ft-side { display: grid; gap: 18px; align-content: start; background: var(--canvas); }
@media (min-width: 921px) { .ft-side { border-left: 2px solid var(--edge); border-radius: 0 16px 16px 0; } }
.ft .warn { margin: 6px 0 0; }

/* ---------- the timer ---------- */
.ft-timer { display: grid; justify-items: center; gap: 16px; padding-block: 6px 10px; }
.ft-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ft-mode-b { min-height: 38px; padding: 0 14px; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-ui); cursor: pointer; }
.ft-mode-b[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.ft-mode-b:disabled { cursor: default; }
.ft-mode-b:disabled:not([aria-pressed="true"]) { border-style: dashed; color: var(--soft); }
.ft-ring { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.ft-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ft-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ft-bg { fill: var(--surface); stroke: var(--edge); stroke-width: 2.5; }
.ft-arc { fill: none; stroke: var(--yel); stroke-width: 14; stroke-linecap: round; }
.ft[data-mode="short"] .ft-arc, .ft[data-mode="long"] .ft-arc { stroke: var(--ft-break); }
.ft-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.ft-time { font: 700 clamp(52px, 15vw, 76px)/1 var(--f-cond); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ft-modelabel { font: 700 16px/1.2 var(--f-ui); color: var(--muted); }
.ft-for { max-width: 70%; font-size: 14px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ft-for[hidden] { display: none; }
.ft[data-state="paused"] .ft-time { opacity: .55; }
.ft-cycle { margin: 0; font-size: 14px; color: var(--muted); }
.ft-cycle[hidden] { display: none; }
.ft-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk .ft-main { min-width: 180px; min-height: 52px; font-size: 17px; }
.ft-main svg { width: 18px; height: 18px; flex: none; }
.ft-task-f { width: min(420px, 100%); }
.ft-task-f .tk-hint { margin: 4px 0 0; }

/* ---------- today and the settings ---------- */
.ft-side-h { margin: 0; min-height: 40px; display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 var(--f-cond); }
.ft-side-h .tk-n { font: 600 14px/1 var(--f-ui); color: var(--muted); }
.ft-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-log[hidden] { display: none; }
.ft-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 10px; border: 2px solid var(--edge); border-radius: 10px; background: var(--surface); font-size: 14px; }
.ft-at { font-weight: 700; font-variant-numeric: tabular-nums; }
.ft-lt { overflow-wrap: anywhere; }
.ft-lm { color: var(--muted); white-space: nowrap; }
.ft-none, .ft-week { margin: 0; color: var(--muted); font-size: 14px; }
.ft-set summary { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.ft-set summary::-webkit-details-marker { display: none; }
.ft-set summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.ft-set[open] summary::before { transform: rotate(45deg); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; margin-top: 6px; }
.ft-grid .tk-in { font-variant-numeric: tabular-nums; }
.ft-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-weight: 600; cursor: pointer; }
.ft-check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* ---------- phones and tablets: one column ---------- */
@media (max-width: 920px) {
  .ft .tk-main { display: block; }
  .ft-side { padding-top: 16px; border-top: 2px solid var(--edge); }
  .tk .ft-main { flex: 1 1 200px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ft-arc { transition: stroke-dashoffset .25s linear, stroke .2s; }
}

} /* end screen */
