.ft-layout { display: flex; gap: 16px; }
.ft-left { flex: 1; display: flex; flex-direction: column; align-items: center; }
.ft-right { width: 220px; flex-shrink: 0; }

.topbar { display: flex !important; align-items: center !important; padding: 14px 24px !important; gap: 8px; }
.topbar-right { display: flex !important; align-items: center !important; gap: 8px; margin-left: auto; }

.ft-btn { background: #16253f; border: 1px solid #1e3a5f; color: #cbd5e1; padding: 6px 12px; border-radius: 7px; font-size: 12px; cursor: pointer; }
.ft-btn:hover { background: #1e3a5f; }

/* MODE TABS */
.mode-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: #0b1729; border: 1px solid #16253f; border-radius: 20px; padding: 4px; }
.mode-tab { padding: 6px 14px; border-radius: 16px; font-size: 11px; color: #7d8ca3; cursor: pointer; border: none; background: none; }
.mode-tab.active { background: #2563eb; color: #fff; }
.mode-tab:hover:not(.active) { color: #cbd5e1; }

/* RING */
.timer-ring-wrap { position: relative; width: 200px; height: 200px; margin-bottom: 16px; }
.timer-ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #16253f; stroke-width: 10; }
.ring-progress { fill: none; stroke: #2563eb; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 565; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.ring-break { stroke: #22c55e; }
.timer-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-time { font-size: 38px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.timer-mode { font-size: 11px; color: #7d8ca3; margin-top: 4px; }

/* SUBJECT */
.subject-tag { background: #16253f; border: 1px solid #1e3a5f; border-radius: 20px; padding: 5px 16px; font-size: 11px; color: #7eb3f7; margin-bottom: 8px; cursor: pointer; }
.subject-tag:hover { border-color: #2563eb; }
.subject-select { background: #16253f; border: 1px solid #2563eb; border-radius: 20px; padding: 5px 12px; font-size: 11px; color: #cbd5e1; margin-bottom: 8px; outline: none; }
.subject-select option { background: #0b1729; }
.hidden { display: none !important; }

/* DOTS */
.session-dots { display: flex; gap: 7px; margin-bottom: 6px; }
.s-dot { width: 10px; height: 10px; border-radius: 50%; background: #16253f; }
.s-dot.done { background: #2563eb; }
.s-dot.current { background: #2563eb; box-shadow: 0 0 8px #2563eb; }
.session-info { font-size: 10px; color: #7d8ca3; margin-bottom: 18px; }

/* CONTROLS */
.timer-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ctrl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #16253f; background: #0b1729; color: #7d8ca3; font-size: 17px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ctrl-btn:hover { border-color: #2563eb; color: #fff; }
.play-btn { width: 58px; height: 58px; border-radius: 50%; background: #2563eb; border: none; color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.play-btn:hover { background: #1d4ed8; }
.play-btn.break-mode { background: #16a34a; }

/* SETTINGS */
.timer-settings { display: flex; gap: 8px; width: 100%; max-width: 380px; }
.setting-box { flex: 1; background: #0b1729; border: 1px solid #16253f; border-radius: 8px; padding: 10px 6px; text-align: center; }
.setting-val { font-size: 18px; font-weight: 600; color: #fff; }
.setting-lbl { font-size: 9px; color: #7d8ca3; margin-top: 2px; }
.setting-controls { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.s-ctrl { background: #16253f; border: none; color: #cbd5e1; width: 22px; height: 22px; border-radius: 4px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.s-ctrl:hover { background: #1e3a5f; }

/* RIGHT CARDS */
.ft-card { background: #0b1729; border: 1px solid #16253f; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.ft-card-title { font-size: 10px; color: #7d8ca3; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 10px; }
.today-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.today-stat { text-align: center; }
.today-num { font-size: 20px; font-weight: 700; }
.today-lbl { font-size: 9px; color: #7d8ca3; margin-top: 2px; }
.goal-bar-wrap { background: #16253f; border-radius: 10px; height: 6px; overflow: hidden; }
.goal-bar { height: 100%; border-radius: 10px; background: #2563eb; transition: width 0.4s ease; }
.streak-big { font-size: 30px; font-weight: 700; color: #f59e0b; text-align: center; margin: 4px 0; }

/* HISTORY */
.history-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #16253f; }
.history-item:last-child { border-bottom: none; }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: #2563eb; flex-shrink: 0; }
.h-dot.break { background: #22c55e; }
.h-name { color: #cbd5e1; flex: 1; font-size: 10px; }
.h-dur { font-size: 10px; color: #7d8ca3; }
.no-history { font-size: 11px; color: #7d8ca3; text-align: center; padding: 8px 0; }

@media (max-width: 767px) {
  .ft-layout { flex-direction: column; }
  .ft-right { width: 100%; }
  .timer-settings { flex-wrap: wrap; }
}