*{box-sizing:border-box}
:root{font:16px/1.5 system-ui,sans-serif;color:#2b2b2b;background:#f2f2f2}
body{margin:0}
header{background:#065451;color:white}
nav,main{width:min(960px,calc(100% - 32px));margin:auto}
nav,.sectionhead,.heading,.row,.timer,.month{display:flex;align-items:center;gap:1rem}
nav,.heading,.sectionhead{justify-content:space-between}
nav{min-height:64px}
nav a{font-size:1.25rem;color:white;font-weight:750;text-decoration:none}
main{padding:28px 0 60px}
h1,h2,p{margin:0}
h1{font-size:clamp(2rem,5vw,3.4rem);letter-spacing:-.055em;overflow-wrap:anywhere}
h2{font-size:1.2rem}
p,.back,small{color:#486459}
a{color:#15553f}
.heading{margin:12px 0 24px}
.panel,.timer,aside{background:white;border:1px solid #cddbd3;border-radius:5px;padding:clamp(16px,3vw,26px);margin:16px 0}
.panel h2{margin-bottom:12px}
.sectionhead h2{margin:0}
.grid{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.grid label{flex:1 1 145px;min-width:0}
.grid .wide{flex:2 1 220px}
label,small{font-size:.86rem;font-weight:600}
input,select,button{font:inherit;min-height:42px;border-radius:3px;padding:8px 12px}
input,select{background:white;color:#153d30;border:1px solid #819789}
.grid input,.grid select{display:block;width:100%;margin-top:5px}
button{border:1px solid transparent;background:#8ab232;color:white;font-weight:650;cursor:pointer}
.secondary,.quiet{background:transparent;color:#1c513e;border-color:#a5bcb0}
.quiet{color:white}
.row{padding:12px 0;border-bottom:1px solid #dce5de}
.row>:first-child{flex:1;overflow-wrap:anywhere}
.row strong,.timer output,.total strong{font-variant-numeric:tabular-nums}
.row:last-child{border:0}
.entry{font-size:.93rem}
.daily{margin-top:12px;background:#eff5ef;padding:8px;border-radius:3px}
.total{text-align:right;flex-shrink:0}
.total strong{display:block;font-size:2rem;line-height:1.2}
.timer{position:sticky;top:8px;background:#d9efdf;flex-wrap:wrap}
.timer div{flex:1}.timer strong,.timer small{display:block}
.timer output{font-size:1.3rem}
.month{flex-wrap:wrap}
aside{border-left:4px solid #438566}
[role=alert]{border-color:#ab4a2d}
:focus-visible{outline:3px solid #156c9a;outline-offset:2px}
@media(max-width:540px){.grid label,.grid .wide{flex-basis:100%}.row{gap:.5rem}.row button{font-size:.8rem}.timer{gap:.5rem}}

.entry .entry-select {width:1.15rem;min-height:1.15rem;margin:0;flex:0 0 auto}
.entry .entry-copy {flex:1;min-width:6rem;overflow-wrap:anywhere}
.entry-copy small {display:block}
.billing-actions,.time-adjust {display:flex;gap:.6rem;align-items:end;flex-wrap:wrap}
.billing-actions {margin-top:.8rem}
.timer details[open] {flex-basis:100%}
.time-adjust label {display:grid}
.inline-undo {display:inline;margin-left:.6rem}
.inline-undo button {padding:.15rem .7rem;min-height:1.8rem}
@media(max-width:540px){.row.entry{flex-wrap:wrap}}
#tags summary {cursor:pointer}
.tag-link, #tag-choices button {display:inline-block;margin:6px 6px 4px 0;padding:3px 9px;border-radius:5px;background:#edf4ee;color:#20553f;font:inherit;font-size:.9rem;min-height:0}
#tags h2 {margin-top:1rem}

.dashboard nav, .dashboard main {
    width: min(1500px, calc(100% - clamp(32px, 6vw, 96px)));
}
.dashboard-columns, .dashboard-tools {
    display: grid;
    gap: clamp(16px, 1.6vw, 24px);
    align-items: start;
    min-width: 0;
}
.dashboard-columns { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.dashboard-columns .panel { margin: 0; min-width: 0; }
.dashboard-tools { grid-template-columns: minmax(0, 1fr); }
.dashboard-tools .grid > *, .dashboard .wide { min-width: 0; }
.dashboard .month { margin-bottom: 16px; }
.dashboard .time-entry .grid { align-items: start; }
.dashboard .time-entry .grid > button { align-self: start; margin-top: 1.65rem; }
.dashboard-tools .tag-link { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 899px) {
    .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
    .dashboard .time-entry .grid > button { margin-top: 0; }
}
.period-controls {display:flex;align-items:baseline;flex-wrap:wrap;gap:12px 24px;margin-bottom:16px}
.period-controls .month {margin:0}
.range-picker summary {cursor:pointer;color:#15553f}
.range-picker[open] summary {margin-bottom:8px}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('roboto-condensed-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root { background: #0c1c35; }
body.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #075351 10%, #172a46 66%, #0c1c35 93.4608%);
}
header { background: transparent; border-bottom: 1px solid #ffffff28; }
.dashboard nav, .dashboard main, .workspace-footer {
    width: min(94%, 1500px);
    margin-inline: auto;
    margin-block: 0;
}
.dashboard main { padding: 20px 0 0; }
h1, h2, nav > a:first-child, .dashboard-tools summary strong {
    font-family: 'Roboto Condensed', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: normal;
}
h1 { line-height: 1.2; }
.heading, .period-controls, .period-controls .secondary, .range-picker summary, .back { color: white; }
.heading p, .heading small { color: #d7e7e8; }
.heading p { margin-top: 7px; }
.dashboard-columns { gap: 20px; }
.dashboard-tools { gap: 18px; }
.panel { padding: 23px; }
.panel button:not(.secondary), .timer button { color: #152b1e; }
.client-list .dashboard-tools > section:first-child button {
    border-color: #a5bcb0;
    background: transparent;
    color: #1c513e;
}
.dashboard-tools .grid label { flex-basis: 100px; }
.dashboard .time-entry .grid { align-items: end; }
.dashboard .time-entry .grid > button { align-self: end; margin: 0; }
.time-entry .wide label { display: block; }
.workspace-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding: 27px 0 22px;
}
.timer { z-index: 1; }
@media (min-width: 900px) {
    .dashboard .time-entry .grid {
        display: grid;
        grid-template-columns: minmax(0,1.45fr) minmax(150px,1fr) minmax(100px,.72fr) minmax(0,1.85fr) auto;
    }
    .client-page .time-entry .grid {
        grid-template-columns: minmax(150px,1fr) minmax(100px,.72fr) minmax(0,2.5fr) auto;
    }
}
@media (max-width: 540px) {
    nav { gap: .65rem; padding-block: 8px; }
    nav a:first-child { line-height: 1.1; }
    nav form { flex-shrink: 0; }
    .dashboard-tools .grid label { flex-basis: 100%; }
    .sectionhead { flex-wrap: wrap; }
    .panel { padding: 16px; }
}
.time-entry select[name="client_id"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cpath%20d%3D%22m2%204.5%205%205%205-5%22%20fill%3D%22none%22%20stroke%3D%22%23075351%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}
@media (forced-colors: active) {
  .time-entry select[name="client_id"] { appearance: auto; background-image: none; }
}
