html.ft-on .study-timer-widget,
html.ft-on .study-timer-restore,
html.ft-on .study-timer-dock { display: none !important; }
html[data-nbme-open] .ft-panel,
html[data-nbme-open] .ft-toggle { display: none !important; }
.ft-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 40px;
padding: 0 13px;
border-radius: 999px;
border: 1px solid rgba(15, 23, 42, 0.08);
background: rgba(255, 255, 255, 0.74);
color: var(--muted-strong, #475467);
font: inherit;
font-size: 13px;
font-weight: 700;
font-variant-numeric: tabular-nums;
cursor: pointer;
white-space: nowrap;
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ft-toggle,
html.boards-mode #boards-timer-toggle {
position: relative;
color: var(--ft-accent-ink, #284d50);
border-color: color-mix(in srgb, var(--ft-accent, #2f8c84) 20%, transparent);
background: color-mix(in srgb, var(--ft-accent, #2f8c84) 9%, #ffffff);
}
.ft-toggle:focus-visible { background: color-mix(in srgb, var(--ft-accent, #2f8c84) 15%, #ffffff); color: var(--ft-accent-ink, #284d50); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09); }
@media (hover: hover) and (pointer: fine) {
.ft-toggle:hover { background: color-mix(in srgb, var(--ft-accent, #2f8c84) 15%, #ffffff); color: var(--ft-accent-ink, #284d50); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09); }
}
.ft-toggle.is-running,
html.boards-mode #boards-timer-toggle.is-running { border-color: color-mix(in srgb, var(--ft-accent, #2f8c84) 40%, transparent); background: color-mix(in srgb, var(--ft-accent, #2f8c84) 22%, #ffffff); }
.ft-toggle.has-news::after,
html.boards-mode #boards-timer-toggle.has-news::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #12a862; box-shadow: 0 0 0 2px #ffffff; }
.ft-spot { z-index: 1293; }
.ft-toggle--compact { display: none; }
@media (max-width: 820px) {
.ft-toggle--compact { display: inline-flex; min-height: 38px; padding: 0 10px; margin-left: auto; box-shadow: none; }
.ft-toggle--compact + .ss-nav-btn--compact,
.ft-toggle--compact + .mobile-nav-toggle { margin-left: 0; }
.site-nav-actions .ft-toggle { display: none; }
}
@media (max-width: 480px) {
.ft-toggle--compact { flex: 0 0 38px; width: 38px; padding: 0; justify-content: center; }
.ft-toggle--compact [data-focus-timer-short] { display: none; }
.ft-toggle--compact [aria-hidden] { font-size: 19px; line-height: 1; }
}
.ft-panel {
--ft-ink: #35405f;
--ft-muted: #707a98;
--ft-panel: #faf9ff;
--ft-panel-2: #f0effa;
--ft-line: rgba(76, 68, 126, 0.14);
--ft-line-strong: rgba(76, 68, 126, 0.26);
--ft-teal: #2f8c84;
position: fixed;
right: 24px;
top: 88px;
z-index: 1350;
width: min(360px, calc(100vw - 32px));
max-height: calc(100dvh - 120px);
overflow-y: auto;
padding: 22px;
border: 2px solid var(--ft-line-strong);
border-radius: 24px;
background: var(--ft-panel);
color: var(--ft-ink);
box-shadow: 0 6px 0 rgba(92, 78, 145, 0.07), 0 16px 34px rgba(82, 73, 125, 0.16);
font-family: ui-rounded, "Avenir Next Rounded", "Trebuchet MS", Inter, system-ui, sans-serif;
color-scheme: light;
}
.ft-panel[hidden],
.ft-panel [hidden] { display: none !important; }
.ft-panel :where(button) { box-shadow: none; text-shadow: none; transform: none; color: inherit; background: none; }
@media (hover: hover) and (pointer: fine) {
.ft-panel :where(button):hover { transform: none; }
}
.ft-panel p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.ft-head,
.ft-controls,
.ft-custom,
.ft-sound-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ft-head { margin-bottom: 14px; }
.ft-head strong { font-size: 18px; font-weight: 850; }
.ft-link { border: 0; background: none; padding: 4px; color: var(--ft-accent, #2f8c84); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
.ft-link:hover { text-decoration: underline; }
}
.ft-icon { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ft-line); border-radius: 50%; background: var(--ft-panel-2); color: var(--ft-muted); font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
.ft-icon:hover { background: #e8e7f6; color: var(--ft-ink); }
}
.ft-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: var(--ft-panel-2); }
.ft-modes button { min-height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--ft-muted); font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.ft-modes button.is-active { background: var(--ft-panel); color: var(--ft-ink); box-shadow: 0 1px 2px rgba(82, 73, 125, 0.12); }
.ft-studying { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--ft-muted); font-size: 13px; font-weight: 800; }
.ft-studying select { flex: 1; min-width: 0; }
.ft-panel select,
.ft-panel input[type="number"],
.ft-panel input[type="text"] { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--ft-line-strong); border-radius: 10px; background: var(--ft-panel-2); color: var(--ft-ink); font: inherit; font-size: 14px; }
.ft-label { color: var(--ft-muted); }
.ft-options { padding: 14px; border: 1px solid var(--ft-line-strong); border-radius: 14px; background: var(--ft-panel-2); }
.ft-options label[for] { display: block; margin: 8px 0 6px; font-size: 13px; }
.ft-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ft-check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--ft-accent, #2f8c84); }
.ft-sound-row { flex-wrap: wrap; margin-top: 12px; }
.ft-hint { color: var(--ft-muted); margin-bottom: 0 !important; font-size: 13px !important; }
.ft-phase { margin: 4px 0 -8px !important; font-weight: 700; text-align: center; }
.ft-phase:empty { display: none; }
.ft-clock { margin: 8px 0 4px; font-size: 52px; font-weight: 750; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; }
.ft-status { text-align: center; }
.ft-session { margin: -6px 0 10px !important; color: var(--ft-accent-ink, #284d50); font-size: 13px !important; font-weight: 800; text-align: center; }
.ft-session:empty { display: none; }
.ft-caption { margin: 6px 0 -6px !important; color: var(--ft-muted); font-size: 12px !important; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; text-align: center; }
.ft-panel progress { width: 100%; height: 9px; margin: 4px 0 16px; accent-color: var(--ft-accent, #2f8c84); }
.ft-controls > .ft-btn { flex: 1; }
.ft-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 6px; margin: 14px 0 0; }
#focus-timer-custom-chip { padding: 0 12px; }
.ft-chip { min-height: 34px; padding: 0 4px; border: 1px solid var(--ft-line-strong); border-radius: 999px; background: var(--ft-panel-2); color: var(--ft-ink); font: inherit; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
.ft-chip:hover { border-color: var(--ft-accent, #2f8c84); }
}
.ft-chip.is-active { border-color: var(--ft-accent, #2f8c84); background: var(--ft-accent-tint, rgba(169, 225, 212, 0.38)); color: var(--ft-accent-ink, #284d50); }
.ft-custom { margin-top: 8px; }
.ft-custom span { color: var(--ft-muted); font-size: 13px; font-weight: 800; }
.ft-custom input { flex: 1; }
.ft-custom .ft-btn { min-height: 38px; white-space: nowrap; }
.ft-options { margin-top: 14px; }
.ft-note { margin-bottom: 14px; }
#focus-timer-replace { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ft-line-strong); }
.ft-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ft-line); }
.ft-today { margin: 0 !important; color: var(--ft-muted); font-size: 13px !important; font-weight: 800; }
.ft-colors { display: flex; gap: 6px; }
.ft-swatch { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.ft-swatch.is-active { box-shadow: 0 0 0 2px var(--ft-panel), 0 0 0 4px var(--swatch); }
.ft-btn {
min-height: 42px;
padding: 0 14px;
border: 2px solid var(--ft-line);
border-bottom-width: 4px;
border-radius: 14px;
background: linear-gradient(#f2f2fb, #e5e5f4);
color: var(--ft-ink);
font: inherit;
font-size: 14px;
font-weight: 850;
cursor: pointer;
box-shadow: 0 2px 0 rgba(82, 73, 125, 0.06);
transition: transform 0.14s ease, box-shadow 0.14s ease;
}
@media (hover: hover) and (pointer: fine) {
.ft-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(82, 73, 125, 0.08); }
}
.ft-btn:active { transform: translateY(1px); border-bottom-width: 2px; }
.ft-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.ft-btn.ft-primary { color: var(--ft-accent-ink, #284d50); border-color: color-mix(in srgb, var(--ft-accent, #2f8c84) 22%, transparent); background: linear-gradient(145deg, var(--ft-accent-1, #a9e1d4), var(--ft-accent-2, #93cbd8)); }
.ft-btn.ft-ghost { background: rgba(255, 255, 255, 0.45); color: var(--ft-muted); }
@media (max-width: 600px) {
.ft-panel { right: 16px; padding: 18px; }
.ft-clock { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
.ft-btn, .ft-toggle { transition: none; }
.ft-btn:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
.ft-btn:hover { transform: none; }
}
}
