html, body { margin: 0; min-height: 100%; background: #0f1115; color: #e8ecf1; font-family: system-ui, sans-serif; }
#app { max-width: 960px; margin: 0 auto; padding: 24px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.top h1 { margin: 0; font-size: 1.6rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.col1 { display: grid; gap: 16px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } #app { padding: 14px; } .clock { font-size: 4rem; } }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
kbd { background: #232834; border: 1px solid #3a4152; border-radius: 4px; padding: 1px 6px; font-family: ui-monospace, monospace; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.timer { text-align: center; }
.timer.work { border-top: 3px solid #ef4b4b; }
.timer.break { border-top: 3px solid #3ecf8e; }
.timer.long { border-top: 3px solid #4b8bef; }
.modes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.modes .active { background: #2a2f3a; outline: 1px solid #4b5568; }
.clock { font-size: 5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 16px 0 8px; letter-spacing: 2px; }
.bar { height: 6px; background: #232834; border-radius: 3px; overflow: hidden; }
.barfill { height: 100%; background: #ef4b4b; transition: width .3s linear; }
.timer.break .barfill { background: #3ecf8e; }
.timer.long .barfill { background: #4b8bef; }
.current { color: #9aa4b5; min-height: 1.4em; margin-bottom: 4px; }
.cycle { color: #7b8496; font-size: .85rem; margin: 0 0 12px; }
.controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; margin-bottom: 12px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 1.8rem; }
.stats small { color: #9aa4b5; }
.bylist, .tasks { list-style: none; margin: 0 0 12px; padding: 0; }
.bylist li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #232834; }
.empty { color: #7b8496; padding: 10px 0; }
.chart { width: 100%; height: auto; display: block; margin: 0 0 12px; }
.addrow { display: flex; gap: 8px; }
.addrow .fx-input { flex: 1; }
.addrow .fx-input.est { flex: 0 0 64px; width: 64px; }
.err { color: #ff7b7b; font-size: .85rem; min-height: 1.1em; margin: 4px 0; }
.filters { display: flex; gap: 8px; margin-bottom: 10px; }
.filters .fx-input:first-child { flex: 1; }
.task { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; border: 1px solid transparent; flex-wrap: wrap; }
.task[draggable="true"] { cursor: grab; }
.task.sel { border-color: #ef4b4b; background: #1a1d25; }
.task.done .tt { text-decoration: line-through; opacity: .6; }
.task.dragging { opacity: .4; }
.task.over { border-color: #4b8bef; background: #181e2b; }
.pick { flex: 1; min-width: 140px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 6px; }
.tmain { flex: 1; display: grid; gap: 4px; min-width: 0; }
.tt { overflow-wrap: anywhere; }
.tprog { height: 4px; background: #232834; border-radius: 2px; overflow: hidden; }
.tprogfill { height: 100%; background: #ef4b4b; transition: width .3s; }
.fx-badge.full { background: #1f4d38; color: #8be9b9; }
.tctl { display: flex; gap: 4px; }
.small { padding: 2px 8px; }
button:disabled { opacity: .35; cursor: not-allowed; }
