@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-400.1e71fed88a88.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-400-italic.34ff393132c7.woff2") format("woff2");font-style:italic;font-weight:400;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-500.adf7cbc0f496.woff2") format("woff2");font-style:normal;font-weight:500;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-500-italic.10d271dec43b.woff2") format("woff2");font-style:italic;font-weight:500;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-600.ac0c4302bac8.woff2") format("woff2");font-style:normal;font-weight:600;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-600-italic.5411673220b2.woff2") format("woff2");font-style:italic;font-weight:600;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-700.cf67b76f565e.woff2") format("woff2");font-style:normal;font-weight:700;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-700-italic.837ef3221e7c.woff2") format("woff2");font-style:italic;font-weight:700;font-display:swap}@font-face{font-family:"Akagi Pro";src:url("../fonts/akagi-pro-800.6b6365035a98.woff2") format("woff2");font-style:normal;font-weight:800;font-display:swap}:root{--ink:#24211f;--muted:#716a64;--paper:#f7f5f2;--card:#fff;--line:#e7e1db;--accent:#7d5d4f;--accent-dark:#5e4338;--soft:#eee7e2;--success:#496c52;--danger:#a14343;--shadow:0 16px 40px rgba(55,43,35,.07)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit}.topbar{background:rgba(247,245,242,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.topbar-inner{max-width:1120px;margin:0 auto;padding:0 24px;height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:10px;align-items:center;font-weight:750;text-decoration:none;letter-spacing:-.02em}.brand-mark{display:block;width:32px;height:32px;object-fit:contain;flex:0 0 auto}.topbar nav{display:flex;align-items:center;gap:20px}.topbar nav a,.link-button{text-decoration:none;color:var(--muted);font:inherit;border:0;background:none;padding:0;cursor:pointer}.topbar nav form{display:inline}.container{max-width:1120px;margin:0 auto;padding:48px 24px 80px}.narrow{max-width:780px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}.page-heading h1{font:600 clamp(32px,5vw,54px)/1.05 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em;margin:0}.page-heading .lead{max-width:680px;margin:12px 0 0}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800;color:var(--accent);margin:0 0 7px}.muted,.hint{color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:10px;padding:10px 15px;text-decoration:none;font:700 14px/1.2 inherit;cursor:pointer}.button:hover{background:var(--accent-dark)}.button.secondary{background:var(--card);color:var(--ink);border-color:var(--line)}.button.small{padding:8px 11px;font-size:13px}.stats{display:grid;gap:14px;margin-bottom:22px}.stats.two{grid-template-columns:repeat(2,1fr)}.stats.three{grid-template-columns:repeat(3,1fr)}.stats article{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:var(--shadow)}.stats span,.stats small{display:block;color:var(--muted);font-size:13px}.stats strong{display:block;font:600 28px/1.2 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin-top:6px}.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--line)}.panel-heading h2{margin:0;font:600 23px/1.2 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);background:#fcfbfa}tbody tr:last-child td{border-bottom:0}.project-link{font-weight:750;text-decoration:none}.project-link:hover{text-decoration:underline}.pill{display:inline-block;padding:4px 9px;border-radius:999px;background:var(--soft);font-size:12px}.empty{text-align:center;padding:54px 24px;color:var(--muted)}.empty h3{color:var(--ink);font:600 24px "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0 0 5px}.empty .button{margin-top:8px}.empty.compact{padding:24px}.form-panel{padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.field.full,.form-actions.full,.error.full{grid-column:1/-1}.field label,.note-editor label{display:block;font-weight:700;margin:0 0 6px}.field input,.field select,.field textarea,.note-editor textarea,.inline-form input,.inline-form select{width:100%;border:1px solid #d8d0c9;border-radius:9px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.field textarea{min-height:110px;resize:vertical}.field small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.field-error,.error{color:var(--danger);font-size:13px;margin-top:4px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:8px}.detail-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:18px;margin-bottom:18px}.notes-panel{overflow:visible}.note-preview{padding:22px;min-height:150px}.note-line{margin:0 0 8px;white-space:pre-wrap}.note-spacer{height:13px}.empty-note{color:var(--muted);font-style:italic}.checklist-line{margin:1px 0}.check-button{display:flex;align-items:flex-start;gap:10px;background:none;border:0;padding:4px 0;color:inherit;font:inherit;text-align:left;cursor:pointer}.checkbox{flex:0 0 20px;height:20px;border:1.5px solid #b9aea6;border-radius:6px;display:grid;place-items:center;color:white;margin-top:1px}.checkbox.checked{background:var(--success);border-color:var(--success)}.done{text-decoration:line-through;color:var(--muted)}.note-editor{border-top:1px solid var(--line);padding:20px 22px}.note-editor textarea{display:block;width:100%;border:1px solid #d8d0c9;border-radius:10px;padding:14px;resize:vertical;font:15px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.note-editor .hint{font-size:12px}.project-meta dl{padding:20px 22px;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.project-meta dt{color:var(--muted)}.project-meta dd{margin:0;text-align:right;font-weight:650}.time-panel{margin-top:18px}.inline-form{display:grid;grid-template-columns:150px minmax(180px,1fr) 120px 90px auto;align-items:end;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.inline-form>div label{display:block;font-size:12px;font-weight:700;margin-bottom:5px}.inline-form input[type=checkbox]{width:auto}.danger-link{border:0;background:none;color:var(--danger);text-decoration:underline;cursor:pointer}.auth-card{max-width:430px;margin:8vh auto;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:var(--shadow)}.auth-card h1{font:600 38px "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0}.stack{display:grid;gap:16px;margin-top:24px}.stack label{font-weight:700}.stack input{display:block;width:100%;margin-top:6px;border:1px solid #d8d0c9;border-radius:9px;padding:11px;font:inherit}.message{padding:11px 14px;background:#edf4ee;border:1px solid #d4e5d6;border-radius:9px;margin-bottom:18px;color:#35513b}.message.error{background:#fbeeee;border-color:#efd1d1;color:#7a3232}@media(max-width:760px){.topbar-inner{height:auto;padding:13px 16px;align-items:flex-start}.brand span:last-child{display:none}.topbar nav{gap:13px;font-size:13px}.container{padding:30px 16px 60px}.page-heading{align-items:flex-start}.stats.three,.stats.two,.detail-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full,.form-actions.full{grid-column:auto}.inline-form{grid-template-columns:1fr 1fr}.inline-form .button{grid-column:1/-1}.stats article{padding:15px}.table-wrap{margin:0}.notes-panel{order:1}.gtd-panel{order:2}}.back-link{display:inline-block;margin-bottom:18px;color:var(--muted);font-weight:650;text-decoration:none}.back-link:hover{color:var(--ink)}.status-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.status-strip>span{display:flex;align-items:center;gap:7px}.status-strip small{color:var(--muted);font-size:12px}.sort-link{text-decoration:none;color:inherit}.sort-link:hover{color:var(--accent)}.table-note{margin:3px 0 0;font-size:12px}.archived-panel{margin-top:18px}.notes-actions{display:flex;gap:8px}.notes-editor-surface{min-height:260px;padding:22px;outline:none;cursor:text}.notes-editor-surface:focus{box-shadow:inset 0 0 0 2px rgba(125,93,79,.18)}.editor-line{min-height:1.55em;white-space:pre-wrap}.editor-checklist{display:flex;align-items:flex-start;gap:10px;padding:3px 0}.editor-checklist input{width:19px;height:19px;margin:2px 0 0;accent-color:var(--success);cursor:pointer}.editor-check-text{min-width:40px;outline:none;flex:1}.notes-hint{padding:0 22px 18px;margin:0}.timer-label{display:block;color:var(--muted);font-size:12px}.running-timer-card strong{display:block;font:600 34px/1.15 ui-monospace,SFMono-Regular,Menlo,monospace;margin-top:4px}.running-timer-card p{margin:4px 0 0}.running-elsewhere{display:flex;align-items:center;gap:10px;padding:16px 22px;background:#f3eee9;border-bottom:1px solid var(--line)}.running-elsewhere p{margin:0;color:var(--muted)}.running-elsewhere a{color:var(--accent);font-weight:700;text-decoration:none}.running-elsewhere a:hover{text-decoration:underline}.running-dot{flex:0 0 8px;height:8px;border-radius:50%;background:var(--success)}.clock-in-form{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.clock-in-form label{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--muted);line-height:1.3;margin-bottom:7px}.clock-in-form input{width:100%;border:1px solid #d8d0c9;border-radius:9px;padding:10px 11px;font:inherit}.manual-entry{border-bottom:1px solid var(--line)}.manual-entry summary{padding:14px 22px;cursor:pointer;font-weight:700;color:var(--accent)}.manual-entry[open] summary{border-bottom:1px solid var(--line)}.row-actions{display:flex;align-items:center;gap:12px}.row-actions form{margin:0}.small-link{font-size:13px;font-weight:700;color:var(--accent)}.button.danger{background:var(--danger);border-color:var(--danger)}.helptext{color:var(--muted);font-size:11px;margin-bottom:4px}[hidden]{display:none!important}@media(max-width:760px){.status-strip{display:grid}.notes-actions{width:100%}.notes-panel .panel-heading{align-items:flex-start;flex-wrap:wrap}.clock-in-form{grid-template-columns:1fr}.manual-entry .inline-form{grid-template-columns:1fr}.project-heading{display:block}.project-heading>.button{margin-top:16px}}.notes-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 22px;border-bottom:1px solid var(--line);background:#fcfbfa}.notes-toolbar select{border:1px solid #d8d0c9;border-radius:8px;padding:7px 10px;background:#fff;color:var(--ink);font:inherit}.notes-tool{min-width:38px}.notes-save-status{color:var(--muted);font-size:12px}.notes-editor-surface h2{font:600 28px/1.25 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:10px 0}.notes-editor-surface h3{font:600 20px/1.3 "Akagi Pro",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:8px 0}.notes-editor-surface p{margin:5px 0}@media(max-width:760px){.notes-toolbar{padding:10px 16px}.notes-toolbar select{flex:1}}.manual-time-form{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(220px,1.4fr) minmax(190px,.9fr) minmax(190px,.9fr) auto;align-items:end;gap:14px;padding:18px 22px}.manual-field label,.time-pair legend{display:block;font-size:12px;font-weight:700;margin-bottom:5px}.manual-field input,.time-pair input{width:100%;border:1px solid #d8d0c9;border-radius:9px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.time-pair{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.time-pair legend{grid-column:1/-1}.time-pair label{font-size:11px;color:var(--muted)}@media(max-width:980px){.manual-time-form{grid-template-columns:1fr 1fr}.manual-time-form .description-field{grid-column:1/-1}.manual-time-form>.button{grid-column:1/-1}}@media(max-width:600px){.manual-time-form,.clock-in-form{grid-template-columns:1fr}.manual-time-form .description-field{grid-column:auto}}@media(max-width:760px){.table-wrap{table-layout:fixed;overflow:visible}.table-wrap table,.table-wrap thead,.table-wrap tbody,.table-wrap tr,.table-wrap th,.table-wrap td{display:block;width:100%}.table-wrap thead{display:none}.table-wrap tbody{display:grid;gap:10px}.table-wrap tr{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:grid;gap:8px;box-shadow:none}.table-wrap tr+tr{border-top:1px solid var(--line)}.table-wrap td{border:0;padding:0;white-space:normal;display:grid;grid-template-columns:110px 1fr;gap:6px 10px;align-items:baseline}.table-wrap td:empty{display:none}.table-wrap td::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.table-wrap td.row-actions-cell{grid-template-columns:1fr;justify-items:stretch;margin-top:4px}.table-wrap td.row-actions-cell::before{content:none}.table-wrap .row-actions{justify-content:flex-start;gap:16px}}
/* ===== New layout: GTD pane + details/time row ===== */
.gtd-panel{display:flex;flex-direction:column;align-self:stretch;position:relative}.gtd-list{flex:1;overflow-y:auto;max-height:520px;padding:8px 6px}.gtd-row{display:flex;align-items:center;gap:8px;padding:4px 14px 4px 8px;border-radius:8px}.gtd-row:hover{background:var(--soft)}.gtd-row.dragging{opacity:.5;background:var(--soft);outline:1px dashed var(--accent);outline-offset:-1px}.gtd-handle{cursor:grab;color:var(--muted);font-size:13px;user-select:none;flex:0 0 16px;padding:4px 2px;border-radius:6px;text-align:center}.gtd-handle:active{cursor:grabbing}.gtd-check{flex:0 0 18px;width:18px;height:18px;accent-color:var(--success);cursor:pointer}.gtd-text{flex:1;min-width:0;outline:none;padding:3px 2px;border-radius:6px;white-space:pre-wrap;word-break:break-word}.gtd-text:focus{background:#fff;box-shadow:0 0 0 2px rgba(125,93,79,.18)}.gtd-row[data-indent="1"]{padding-left:34px}.gtd-row[data-indent="2"]{padding-left:60px}.gtd-row[data-indent="3"]{padding-left:86px}.gtd-row[data-indent="4"]{padding-left:112px}.gtd-row[data-indent="5"]{padding-left:138px}.gtd-row.done .gtd-text{color:var(--muted);text-decoration:line-through}.gtd-row.done{opacity:.55}.gtd-row:not(.done):not(.archived)+.gtd-row.done,.gtd-row:not(.done):not(.archived)+.gtd-row.archived{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.gtd-row-empty .gtd-check{opacity:.35}.gtd-text[data-placeholder]:empty::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
/* ===== Notes toolbar additions ===== */
.toolbar-sep{width:1px;height:20px;background:var(--line);margin:0 2px}.notes-editor-surface blockquote{margin:0 0 6px;padding:0 0 0 26px}.notes-editor-surface s,.notes-editor-surface strike{text-decoration:line-through}
/* ===== Day-grouped time entries ===== */
.day-header{cursor:pointer;background:#faf8f5}.day-header:hover{background:#f4efe9}.day-count{display:inline-block;padding:2px 7px;border-radius:999px;background:var(--soft);font-size:11px;font-weight:700;color:var(--muted);vertical-align:1px}.day-toggle{border:0;background:none;cursor:pointer;font-size:13px;color:var(--muted);padding:4px 8px;border-radius:6px;transition:transform .12s}.day-toggle:hover{background:var(--soft)}.day-header[aria-expanded="true"] .day-toggle{transform:rotate(90deg)}tr.day-entry-row{display:none}tr.day-header[aria-expanded="true"] ~ tr.day-entry-row{display:table-row}.day-entry-row{background:#fdfcfa}.day-entry-row td:first-child{color:var(--muted);padding-left:36px}@media(max-width:900px){.lower-grid{grid-template-columns:1fr}}@media(max-width:760px){.gtd-list{max-height:none;overflow:visible}.gtd-row[data-indent="1"]{padding-left:26px}.gtd-row[data-indent="2"]{padding-left:46px}.gtd-row[data-indent="3"]{padding-left:66px}.gtd-row[data-indent="4"]{padding-left:86px}.gtd-row[data-indent="5"]{padding-left:106px}tr.day-entry-row{display:none}tr.day-header[aria-expanded="true"] ~ tr.day-entry-row{display:grid}}
/* ===== Project detail summary cards ===== */
.stats-split{grid-template-columns:minmax(240px,1fr) minmax(0,2fr);gap:18px;margin-bottom:18px}
.stats-split .stats-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0}
.stats .stat-statuses{display:flex;flex-direction:column;gap:12px;min-width:0}
.stats .stat-dates,.stats .stat-billing{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;align-content:start;min-width:0}
.stats .stat-cell{min-width:0}
.stats .stat-label{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;color:var(--muted);line-height:1.3;margin-bottom:7px;padding-left:5px}
.stats .stat-value{display:block;font-weight:700;font-size:17px;line-height:1.25;letter-spacing:-.01em;min-width:0;overflow-wrap:anywhere;padding-left:5px}
.stats .stat-value-lg{font-size:20px;line-height:1.2}
.stats .stat-billing .stat-value{font-size:16px}
/* ===== Pastel status badges for the summary card ===== */
.stats .stat-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-size:14px;font-weight:700;line-height:1.25;letter-spacing:.01em}
.stat-badge.status-lead,.stat-badge.billing-unbilled{background:#fbe9d8;color:#9a6738}
.stat-badge.status-active,.stat-badge.billing-paid{background:#e3f0e6;color:#3c6a4e}
.stat-badge.status-completed{background:#dff0ec;color:#2f6a5c}
.stat-badge.status-on_hold{background:#e5ebee;color:#4a5d68}
.stat-badge.status-archived{background:#ecebea;color:#66625f}
.stat-badge.billing-ready{background:#e3ecf7;color:#3c5e85}
.stat-badge.billing-invoiced{background:#eee7f6;color:#63508f}
/* ===== Notes toolbar icon buttons ===== */
.notes-tool svg{display:block}
/* ===== Time pane full width ===== */
.time-panel{margin-top:0}
/* ===== Running timer pane: readout left, one row of fields sharing a baseline ===== */
.running-timer-card{display:flex;align-items:flex-end;flex-wrap:wrap;gap:18px 24px;padding:20px 22px;background:#f3eee9;border-bottom:1px solid var(--line)}
.timer-readout{flex:0 0 auto}
.timer-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;flex:1 1 460px;min-width:0}
.timer-controls form{display:flex;align-items:flex-end;gap:12px;margin:0}
.timer-field{display:flex;flex-direction:column;min-width:0}
.timer-desc-field{flex:1 1 240px}
.timer-field-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:5px}
.timer-field label{display:block;font-size:12px;font-weight:700;margin:0 0 5px}
.timer-field-head label{margin:0}
.timer-field input{width:100%;border:1px solid #d8d0c9;border-radius:9px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}
.timer-field input:focus{outline:none;box-shadow:0 0 0 2px rgba(125,93,79,.18)}
/* Buttons size to their text: Update measures 76px against Clock out's 90px. Floor them
   so the pair matches, with room for the fallback font if Akagi Pro does not load. */
.timer-controls .button,.clock-in-form .button{min-width:104px}
@media(max-width:760px){.running-timer-card,.timer-controls,.timer-controls form{align-items:stretch;flex-direction:column}.timer-controls .button{width:100%}}
@media(max-width:760px){.stats-split{grid-template-columns:1fr}.stats-split .stats-cards{grid-template-columns:1fr}}

/* ===== Time table columns =====
   Every cell is nowrap, so with auto layout the table's minimum width is the sum of its
   longest content and .table-wrap turns any excess into a horizontal scroll -- which pushes
   Edit/Delete out of reach. Pin every column but Description, which absorbs what is left and
   ellipsises. Date and Clock hold two pieces each (date + count pill, span + manual marker),
   so they wrap rather than clip. Below 760px the rows become cards, so this is table-only. */
@media(min-width:761px){
  .time-panel table{table-layout:fixed}
  .time-panel th{white-space:normal}
  .time-panel th:nth-child(1){width:150px}
  .time-panel th:nth-child(3){width:200px}
  .time-panel th:nth-child(4),.time-panel th:nth-child(5){width:95px}
  .time-panel th:nth-child(6){width:110px}
  .time-panel th:nth-child(7){width:115px}
  .time-panel td:nth-child(2){overflow:hidden;text-overflow:ellipsis}
}

/* ===== Task archive (X) =====
   The bare .done rule below sets text-decoration on the whole row, and decoration
   propagates to children -- which struck through the drag handle and the X. Clear it on
   the row and put the line back on the text alone. */
.gtd-row.done,.gtd-row.archived{text-decoration:none}
.gtd-row.archived .gtd-text{color:var(--muted);text-decoration:line-through}
.gtd-row.archived{opacity:.55}
.gtd-archive{flex:0 0 auto;border:0;background:none;padding:2px 4px;border-radius:6px;color:var(--muted);font:inherit;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s ease}
.gtd-row:hover .gtd-archive,.gtd-row:focus-within .gtd-archive{opacity:.6}
.gtd-archive:hover{opacity:1;background:var(--soft);color:var(--danger)}
.gtd-row.archived .gtd-archive:hover{color:var(--success)}
.gtd-archive:focus-visible{opacity:1;outline:2px solid var(--accent);outline-offset:1px}
.gtd-row-empty .gtd-archive{visibility:hidden}
/* Touch has no hover to reveal them with. */
@media(hover:none){.gtd-archive{opacity:.5}}
.gtd-heading-actions{display:flex;align-items:center;gap:6px}
.gtd-history{border:0;background:none;padding:3px 6px;border-radius:7px;color:var(--muted);font:inherit;font-size:16px;line-height:1;cursor:pointer}
.gtd-history:hover:not(:disabled){background:var(--soft);color:var(--ink)}
.gtd-history:disabled{opacity:.3;cursor:default}
.gtd-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 14px 12px;padding:8px 12px;border-radius:9px;background:var(--soft);color:var(--muted);font-size:13px}
.gtd-undo-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gtd-undo-button{flex:0 0 auto;border:0;background:none;padding:0;color:var(--accent);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
/* Marks a clock range that ends on a later day. */
.clock-nextday{margin-left:5px;padding:1px 4px;border-radius:5px;background:var(--soft);color:var(--muted);font-size:10.5px;font-weight:700;vertical-align:1px}

/* ===== Focus and selection =====
   Untouched, both fall back to the browser's blue, which belongs to no palette here.
   The tasks and notes panes already ring focus in accent; this extends that to every
   field. outline:none is safe only because the ring below replaces it visibly. */
:root{accent-color:var(--accent)}
::selection{background:rgba(125,93,79,.22);color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus,
.stack input:focus,.manual-field input:focus,.clock-in-form input:focus,
.inline-form input:focus,.inline-form select:focus,.note-editor textarea:focus,
.notes-toolbar select:focus,.running-desc-input:focus{
  outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(125,93,79,.15)
}
/* Checkmarks stay green: there the colour means done, not focus. */
.gtd-check,.editor-checklist input{accent-color:var(--success)}


/* ---------- Notebook lists, links and indents ----------
 * Bullets and numbering cycle by depth the way Google Docs does, so a nested
 * level is legible without counting indents. Chrome's execCommand nests a list
 * inside its parent list rather than inside the <li>, hence :is(ul,ol) chains
 * rather than child selectors. */
.notes-editor-surface ul,.notes-editor-surface ol{margin:5px 0;padding-left:26px}
.notes-editor-surface li{margin:2px 0}
.notes-editor-surface ul{list-style-type:disc}
.notes-editor-surface :is(ul,ol) ul{list-style-type:circle}
.notes-editor-surface :is(ul,ol) :is(ul,ol) ul{list-style-type:square}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) ul{list-style-type:disc}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) ul{list-style-type:circle}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) ul{list-style-type:square}
.notes-editor-surface ol{list-style-type:decimal}
.notes-editor-surface :is(ul,ol) ol{list-style-type:lower-alpha}
.notes-editor-surface :is(ul,ol) :is(ul,ol) ol{list-style-type:lower-roman}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) ol{list-style-type:decimal}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) ol{list-style-type:lower-alpha}
.notes-editor-surface :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) :is(ul,ol) ol{list-style-type:lower-roman}
.notes-editor-surface a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.notes-editor-surface a:hover{color:var(--accent-dark)}

/* ---------- Save conflicts and notebook version history ---------- */
.panel-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:11px 22px;background:#fbeeee;border-bottom:1px solid #efd1d1;color:#7a3232;font-size:13px}
.panel-alert-button{flex:0 0 auto;border:0;background:none;padding:0;color:#7a3232;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.gtd-panel .panel-alert{margin:0 14px 12px;border:1px solid #efd1d1;border-radius:9px;padding:9px 12px}
.notes-heading-actions{display:flex;align-items:center;gap:10px}
.notes-history{border-bottom:1px solid var(--line);background:#fcfbfa;padding:14px 22px}
.notes-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.notes-history-close{border:0;background:none;padding:2px 6px;border-radius:6px;color:var(--muted);font:inherit;font-size:16px;line-height:1;cursor:pointer}
.notes-history-close:hover{background:var(--soft);color:var(--ink)}
.notes-history-list{list-style:none;margin:0;padding:0;max-height:220px;overflow-y:auto}
.notes-history-item{display:block;width:100%;border:0;background:none;padding:7px 9px;border-radius:8px;color:inherit;font:inherit;text-align:left;cursor:pointer}
.notes-history-item:hover{background:var(--soft)}
.notes-history-when{display:block;font-weight:700;font-size:13px}
.notes-history-preview{display:block;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notes-history-empty{padding:7px 9px;color:var(--muted);font-size:13px}
.notes-history-note{margin:8px 0 0;color:var(--muted);font-size:12px}

/* ===== Notebook tabs and the closed-notes menu =====
   Open notes read as a row of tabs under the panel heading; the active one lifts
   into the toolbar strip below it. Closed notes stay out of the way behind one
   small button at the far end, which opens a list styled like version history. */
.notes-tabs{display:flex;align-items:flex-end;gap:8px;padding:10px 14px 0;border-bottom:1px solid var(--line);background:#fcfbfa}
.notes-tabs-list{display:flex;align-items:flex-end;gap:4px;flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin;padding-bottom:0}
.notes-tab{display:inline-flex;align-items:center;gap:6px;max-width:220px;margin-bottom:-1px;padding:7px 8px 8px 12px;border:1px solid transparent;border-bottom:0;border-radius:9px 9px 0 0;color:var(--muted);font-weight:700;font-size:13px;line-height:1.2;cursor:pointer;user-select:none;white-space:nowrap}
.notes-tab:hover{color:var(--ink);background:var(--soft)}
.notes-tab:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.notes-tab.is-active{color:var(--ink);background:var(--card);border-color:var(--line)}
.notes-tab-title{overflow:hidden;text-overflow:ellipsis;min-width:0}
.notes-tab.is-editing{cursor:text}
.notes-tab.is-editing .notes-tab-title{outline:none;min-width:48px;overflow:visible;padding:0 3px;margin:0 -3px;border-radius:4px;background:#fff;box-shadow:0 0 0 2px rgba(125,93,79,.22);color:var(--ink);white-space:pre}
.notes-tab-close{flex:0 0 auto;border:0;background:none;padding:0 3px;border-radius:5px;color:var(--muted);font:inherit;font-size:15px;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s ease}
.notes-tab:hover .notes-tab-close,.notes-tab.is-active .notes-tab-close,.notes-tab:focus-within .notes-tab-close{opacity:.6}
.notes-tab-close:hover{opacity:1;background:var(--line);color:var(--danger)}
@media(hover:none){.notes-tab-close{opacity:.5}}
.notes-tab-add{flex:0 0 auto;margin-bottom:5px;border:1px dashed #cfc5bc;background:none;width:26px;height:26px;border-radius:7px;color:var(--muted);font:inherit;font-size:17px;line-height:1;cursor:pointer}
.notes-tab-add:hover{color:var(--accent);border-color:var(--accent);background:var(--card)}
.notes-closed-toggle{flex:0 0 auto;margin-bottom:6px;border:0;background:none;padding:4px 6px;border-radius:7px;color:var(--muted);font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.notes-closed-toggle:hover,.notes-closed-toggle[aria-expanded="true"]{color:var(--ink);background:var(--soft)}
.notes-closed-count{display:inline-block;min-width:18px;margin-left:3px;padding:1px 6px;border-radius:999px;background:var(--line);color:var(--muted);font-size:11px;text-align:center}
.notes-closed{border-bottom:1px solid var(--line);background:#fcfbfa;padding:14px 22px}
.notes-closed-list{list-style:none;margin:0;padding:0;max-height:220px;overflow-y:auto}
.notes-closed-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-radius:8px}
.notes-closed-item:hover{background:var(--soft)}
.notes-closed-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:13px}
.notes-closed-actions{display:flex;gap:12px;flex:0 0 auto}
.notes-closed-actions button{border:0;background:none;padding:0;font:inherit;font-size:13px;font-weight:700;color:var(--accent);text-decoration:underline;cursor:pointer}
.notes-closed-delete{color:var(--danger)!important}
.notes-empty{padding:40px 22px;text-align:center;color:var(--muted)}
.notes-empty p{margin:0 0 10px}
@media(max-width:760px){.notes-tabs{padding:8px 10px 0}.notes-tab{max-width:160px}}

/* ===== Billed time entries =====
   A dedicated column carries one pill per row; on a plain entry the pill is the
   toggle itself. A collapsed day rolls its entries up into one non-interactive pill. */
.billed-form{margin:0;display:inline}
.billed-pill{display:inline-block;margin:0;padding:3px 9px;border-radius:999px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.3;letter-spacing:.01em;white-space:nowrap;border:1px solid transparent}
button.billed-pill{cursor:pointer}
.billed-pill.is-unbilled{background:#fbe9d8;color:#9a6738}
.billed-pill.is-billed{background:#e3f0e6;color:#3c6a4e}
.billed-pill.is-partial{background:#e3ecf7;color:#3c5e85}
button.billed-pill:hover{border-color:currentColor}
button.billed-pill:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
tr.is-billed td{color:var(--muted)}
tr.is-billed td .billed-pill,tr.is-billed td .row-actions,tr.is-billed td .dow{color:inherit}
tr.is-selected td{background:#f6efe9}
.time-select-cell{width:38px;padding-right:0!important}
.time-select,.time-select-day,.time-select-all{width:16px;height:16px;margin:0;vertical-align:-2px;cursor:pointer;accent-color:var(--accent)}
.dow{display:inline-block;min-width:30px;margin-right:2px;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.panel-flash{margin:0;padding:10px 22px;background:#edf4ee;border-bottom:1px solid #d4e5d6;color:#35513b;font-size:13px;font-weight:700}
.panel-flash.is-error{background:#fbeeee;border-color:#efd1d1;color:#7a3232}
.manual-field.has-error input{border-color:var(--danger)}
.manual-field .field-error{font-size:12px;margin-top:4px}
.time-batch{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0;padding:10px 22px;background:#f3eee9;border-bottom:1px solid var(--line)}
.time-batch-count{font-weight:700;font-size:13px}
.time-batch-actions{display:flex;gap:8px;flex-wrap:wrap}
/* Column widths, with the select box and Billed pill added (see the note above). */
@media(min-width:761px){
  .time-panel th:nth-child(1){width:38px}
  .time-panel th:nth-child(2){width:158px}
  .time-panel th:nth-child(3){width:auto}
  .time-panel th:nth-child(4){width:176px}
  .time-panel th:nth-child(5),.time-panel th:nth-child(6){width:82px}
  .time-panel th:nth-child(7){width:104px}
  .time-panel th:nth-child(8){width:96px}
  .time-panel th:nth-child(9){width:112px}
  .time-panel td:nth-child(2){overflow:visible;text-overflow:clip}
  .time-panel td:nth-child(3){overflow:hidden;text-overflow:ellipsis}
}
/* The hourly billing card holds six cells: three across, two down. */
.stats .stat-billing-split{grid-template-columns:1fr 1fr 1fr}
.stats .stat-value-quiet{color:var(--muted);font-weight:600}
@media(max-width:760px){
  .time-select-cell{grid-template-columns:1fr!important;width:auto}
  .time-select-cell::before{content:none!important}
  .day-header .time-select-cell{display:none}
  .table-wrap td .billed-pill,.table-wrap td .day-count{justify-self:start}
  .stats .stat-billing-split{grid-template-columns:1fr 1fr}
}

/* ===== Directory ===== */
.directory-heading{flex-wrap:wrap}
.directory-filters{display:flex;gap:4px}
.directory-filter{padding:6px 11px;border-radius:999px;text-decoration:none;color:var(--muted);font-weight:700;font-size:13px}
.directory-filter:hover{background:var(--soft);color:var(--ink)}
.directory-filter.is-active{background:var(--accent);color:#fff}
.directory-search{display:flex;gap:8px;flex:1 1 280px;max-width:420px;margin:0}
.directory-search input{flex:1;min-width:0;border:1px solid #d8d0c9;border-radius:9px;padding:8px 11px;background:#fff;color:var(--ink);font:inherit}
.directory-search input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(125,93,79,.15)}
.pill.kind-client{background:#e3ecf7;color:#3c5e85}
.pill.kind-vendor{background:#eee7f6;color:#63508f}
.contact-stats{grid-template-columns:1fr;margin-bottom:18px}
.stats .contact-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 16px}
.stats .contact-card .stat-value{font-size:15px;font-weight:600}
.stats .contact-card a{color:var(--accent);text-decoration:none}
.stats .contact-card a:hover{text-decoration:underline}
.contact-address{white-space:normal}
.heading-actions{display:flex;gap:10px;align-items:center}
.heading-actions form{margin:0}
.button.danger-outline{color:var(--danger)}
.button.danger-outline:hover{background:#fbeeee;border-color:#efd1d1}
@media(max-width:760px){.stats .contact-card{grid-template-columns:1fr 1fr}.heading-actions{margin-top:16px}.directory-search{max-width:none}}
.money-toggle.is-hidden{color:var(--accent);font-weight:700}.money-hidden{display:inline-block;color:var(--muted);letter-spacing:.12em;user-select:none}.money-masked input{filter:blur(6px);transition:filter .15s ease}.money-masked input:focus{filter:none}.money-masked-hint{color:var(--accent)}