@import url('fonts.css');
:root{--bg:#f7f4ef;--paper:#fff;--ink:#1b1815;--muted:#81786f;--line:#eee8df;--orange:#e85c33;--soft:#fbe8e0;--green:#447d68;--red:#bf423c;--shadow:0 5px 24px #1b181505;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #e85c3370;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:800;letter-spacing:-1.2px}h2{font-size:18px;font-weight:800;letter-spacing:-.4px}h3{font-size:16px;font-weight:800}small,.small{font-size:13px}.muted{color:var(--muted)}.mono{font-family:'JetBrains Mono',monospace;font-variant-numeric:tabular-nums}.app-shell{display:flex;min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fffdfa;border-right:1px solid var(--line);padding:37px 18px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;font-size:33px;letter-spacing:-2px;font-weight:800}.brand img{width:34px;height:34px}.workspace{margin:10px 0 32px 44px;color:var(--muted);font-size:12px}.nav{display:grid;gap:6px}.nav a{display:flex;align-items:center;gap:12px;color:#746b62;font-size:14px;font-weight:600;padding:14px 16px;border-radius:12px}.nav a:hover{background:#f3eee6}.nav a.active{background:var(--soft);color:var(--orange);font-weight:800}.sidebar-bottom{margin-top:auto;padding:24px 10px 0;border-top:1px solid var(--line)}.profile{display:flex;align-items:center;gap:11px;background:none;text-align:left;padding:0;width:100%}.avatar{border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--orange);width:38px;height:38px;font-size:13px;font-weight:800;flex-shrink:0}.profile strong{font-size:13px;display:block}.profile small{font-size:11px;color:var(--muted)}.nas-tag{display:flex;gap:7px;align-items:center;margin:24px 0;color:var(--green);font-size:12px}.nas-tag svg{width:16px}.main{margin-left:224px;width:calc(100% - 224px);padding:38px 42px 46px;max-width:1800px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-head p{font-size:13px;color:var(--muted);margin-top:8px}.head-actions,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;border-radius:11px;font-size:13px;font-weight:700;background:#f1ece4;color:#4a443c;min-height:43px;white-space:nowrap}.btn svg{width:17px;height:17px}.primary{background:var(--orange);color:white}.btn:hover{filter:brightness(.97)}.outline{background:#fff;border:1px solid var(--line)}.subtle{background:transparent}.danger{color:var(--red);background:#fff1ef}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:transparent;color:var(--muted)}.icon-btn:hover{background:var(--bg);color:var(--orange)}.icon-btn svg{width:17px;height:17px}.card{background:var(--paper);border-radius:20px;box-shadow:var(--shadow);padding:25px;border:1px solid #ffffff90}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.card-head small{color:var(--muted)}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:24px}.stack{display:grid;gap:24px;align-content:start}.timer-card{padding:27px 29px;position:relative;overflow:hidden}.timer-card::after{content:'';position:absolute;width:140px;height:140px;border:26px solid #f7f4ef;border-radius:50%;right:145px;top:45px;opacity:.6;pointer-events:none}.timer-top{display:flex;justify-content:space-between;align-items:center;gap:15px;position:relative;z-index:1}.project-title{display:flex;gap:9px;align-items:center;font-size:17px;font-weight:800}.color-dot{width:9px;height:9px;border-radius:3px;display:inline-block;flex-shrink:0}.timer-meta{font-size:12px;color:var(--muted);margin-top:7px}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:6px;background:var(--soft);color:var(--orange);font-size:11px;font-weight:800;white-space:nowrap}.badge.green{background:#eaf3ed;color:var(--green)}.badge.red{background:#fbe5e2;color:var(--red)}.badge.neutral{background:#f3f0eb;color:var(--muted)}.timer-bottom{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-top:24px;position:relative;z-index:1}.timer-digits{font-family:'JetBrains Mono',monospace;font-size:46px;letter-spacing:-2px;font-weight:500;line-height:1.2}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}.timer-idle{display:flex;align-items:center;gap:20px}.timer-symbol{height:64px;width:64px;border-radius:18px;background:var(--soft);color:var(--orange);display:grid;place-items:center;flex-shrink:0}.timer-symbol svg{height:29px;width:29px}.timer-idle h2{margin-bottom:7px}.timer-idle p{font-size:13px;color:var(--muted);line-height:1.7}.timer-idle .btn{margin-left:auto}.summary-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.summary-row:last-child{border:0;padding-bottom:0}.summary-row strong{font-family:'JetBrains Mono',monospace;font-size:15px;font-weight:500}.summary-row span{color:var(--muted)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;letter-spacing:1px;color:#968d83;font-weight:700;padding:0 12px 13px;white-space:nowrap}td{padding:18px 12px;border-top:1px solid var(--line);font-size:13px;vertical-align:middle}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}td strong{font-weight:700}.entry-project{display:flex;align-items:center;gap:10px}.entry-project small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.entry-note{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6d645b}.table-actions{display:flex;justify-content:flex-end}.table-footer{border-top:1px solid var(--line);padding-top:15px;display:flex;justify-content:space-between;gap:12px;align-items:center}.text-btn{padding:8px 0;background:none;color:var(--orange);font-weight:800;font-size:13px;display:inline-flex;align-items:center;gap:7px}.text-btn svg{width:16px}.week-chart{height:116px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:22px}.day-bar{height:100%;display:flex;flex:1;flex-direction:column;justify-content:flex-end;align-items:center;gap:9px;font-size:10px;color:var(--muted)}.bar{background:#f5e8dd;width:100%;max-width:23px;border-radius:5px 5px 2px 2px;min-height:3px}.bar.current{background:var(--orange)}.progress{height:7px;background:#f3eee7;border-radius:5px;overflow:hidden}.progress span{display:block;height:100%;border-radius:5px;background:var(--orange)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat{padding:24px}.stat .number{font-family:'JetBrains Mono',monospace;font-size:28px;letter-spacing:-1.5px;margin:15px 0 9px;font-weight:500}.stat p{font-size:11px;color:var(--muted)}.stat .eyebrow{font-size:10px}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:23px;flex-wrap:wrap}.toolbar .search{flex:1;min-width:180px;max-width:370px}.field-control,input,select,textarea{border:1px solid #e8e0d6;background:#fffdfa;padding:12px 13px;border-radius:10px;font-size:14px;color:var(--ink);width:100%;min-height:44px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px #e85c3310}input[type=color]{padding:4px;height:46px}select{padding-right:32px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2381786f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}textarea{resize:vertical;min-height:88px}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:#fff8;padding:16px;border:1px solid var(--line);border-radius:16px;margin-bottom:24px}.filters label{font-size:11px;color:var(--muted);font-weight:700;flex:1;min-width:130px}.filters label span{display:block;margin-bottom:7px}.filters select,.filters input{font-size:13px;min-height:41px;padding-top:9px;padding-bottom:9px}.segmented{display:inline-flex;gap:4px;background:#eee8df;border-radius:10px;padding:4px}.segmented button{background:none;border-radius:7px;padding:8px 13px;font-size:12px;color:var(--muted);font-weight:700}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #00000007}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-card{padding:24px;position:relative}.project-card h3{margin:17px 0 6px;line-height:1.4}.project-card .project-meta{font-size:12px;color:var(--muted);margin-bottom:23px}.project-top{display:flex;align-items:center;justify-content:space-between}.project-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--project-color) 12%,white);color:var(--project-color)}.project-icon svg{width:20px}.project-amount{font-family:'JetBrains Mono',monospace;font-size:23px;letter-spacing:-1px;margin-bottom:13px}.project-amount small{font-size:12px;color:var(--muted)}.project-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;font-size:11px;color:var(--muted)}.project-foot strong{font-size:12px;color:var(--ink)}.project-card .actions{margin-top:23px;padding-top:15px;border-top:1px solid var(--line);justify-content:space-between}.project-card .actions .btn{font-size:12px;min-height:36px;padding:8px 11px}.empty{padding:48px 20px;text-align:center}.empty-icon{display:grid;place-items:center;background:var(--soft);color:var(--orange);width:60px;height:60px;border-radius:18px;margin:0 auto 20px}.empty h3{margin-bottom:9px}.empty p{font-size:13px;color:var(--muted);max-width:360px;line-height:1.8;margin:0 auto 22px}.onboarding{padding:38px;display:flex;align-items:center;justify-content:space-between;gap:25px;background:#fbe8e0;border:0;margin-bottom:24px}.onboarding .eyebrow{color:var(--orange);margin-bottom:12px}.onboarding h2{font-size:24px;max-width:450px}.onboarding p{font-size:13px;line-height:1.8;color:#936b58;margin-top:10px;max-width:480px}.onboarding .steps{display:grid;gap:12px;min-width:240px}.step{display:flex;gap:12px;align-items:center;font-size:13px;font-weight:700}.step b{width:28px;height:28px;display:grid;place-items:center;background:#fff9;border-radius:50%;font-size:11px;color:var(--orange)}.client-note{white-space:pre-wrap;color:var(--muted);font-size:13px;line-height:1.7;margin-top:14px}.report-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:24px}.chart{height:190px;display:flex;align-items:stretch;gap:5px;margin:30px 0 6px}.chart-column{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:0;gap:11px}.chart-column i{width:75%;max-width:38px;background:var(--orange);border-radius:5px 5px 1px 1px;min-height:2px;display:block}.chart-column span{font-size:9px;color:var(--muted)}.report-list{display:grid;gap:23px}.report-item header{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:12px}.report-item strong{font-weight:700}.report-item .progress{height:6px}.legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.legend .color-dot{background:var(--orange);height:7px;width:7px}.section-gap{margin-top:24px}.info{font-size:12px;line-height:1.8;color:var(--muted);background:#f6f2ec;padding:14px 16px;border-radius:10px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid ul{padding-left:20px;font-size:13px;line-height:2;color:var(--muted)}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 15% 20%,#fbe8e080,transparent 50%),var(--bg)}.auth-layout{display:grid;grid-template-columns:1fr 410px;gap:100px;max-width:1000px;width:100%;align-items:center}.auth-brand .brand{font-size:45px}.auth-brand .brand img{width:44px;height:44px}.auth-brand h1{font-size:49px;line-height:1.2;letter-spacing:-2.5px;margin:42px 0 22px;max-width:440px}.auth-brand p{font-size:14px;line-height:1.9;color:var(--muted);max-width:390px}.auth-brand .nas-tag{margin-top:35px}.auth-form{padding:34px}.auth-form h2{font-size:23px}.auth-form>p{font-size:12px;color:var(--muted);line-height:1.8;margin:10px 0 25px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700}.field.full,.form-error{grid-column:1/-1}.field small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.6}.check{flex-direction:row;align-items:center}.check input{width:17px;min-height:auto;accent-color:var(--orange)}.form-error{color:var(--red);font-size:12px;line-height:1.6;display:none;background:#fff1ef;padding:12px;border-radius:8px}.form-error.visible{display:block}.form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:25px}.auth-form .form-actions .btn{width:100%}dialog{border:0;padding:0;border-radius:22px;width:530px;max-width:calc(100% - 28px);max-height:calc(100dvh - 48px);box-shadow:0 24px 90px #1b18152e;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#29221d55;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 0}.modal-body{padding:24px 28px 28px}.modal-intro{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:22px}.modal-body .info{margin-top:17px}.loading{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:40px;font-weight:800;letter-spacing:-2px}.loading span{font-size:13px;color:var(--muted);letter-spacing:0;margin-top:15px;font-weight:500}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#28221d;color:#fff;padding:14px 22px;border-radius:12px;font-size:13px;box-shadow:0 8px 30px #0002;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-logo{display:none}.date-divider td{padding-top:23px;font-size:11px;font-weight:800;color:var(--muted);border-bottom:0}.client-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.amount-right{text-align:right}.not-supported{padding:30px;max-width:600px;margin:15vh auto;line-height:1.8}.error-banner{padding:15px 18px;margin-bottom:20px;background:#ffebe5;color:#a43d28;border-radius:12px;font-size:13px}.filter-label{font-size:12px;color:var(--muted);margin-left:auto}.donut-summary{display:flex;gap:15px;align-items:center;padding:15px;background:var(--bg);border-radius:12px;margin-top:24px}.donut-summary strong{font-size:23px;letter-spacing:-1px;color:var(--orange)}.donut-summary span{font-size:12px;color:var(--muted);line-height:1.7}.budget-log{font-size:11px;color:var(--muted);line-height:1.9;margin-top:8px}
@media(min-width:1500px){.main{padding:45px 60px}.dashboard{grid-template-columns:1fr 330px}.timer-digits{font-size:54px}.project-grid{gap:24px}}
@media(max-width:1200px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.main{margin-left:190px;width:calc(100% - 190px);padding:30px 26px}.dashboard{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.project-grid,.client-cards{grid-template-columns:repeat(2,1fr)}.timer-digits{font-size:36px}.timer-bottom{align-items:flex-start;flex-direction:column}.timer-card::after{right:20px;top:70px}.stats-grid{gap:12px}.stat{padding:20px}.stat .number{font-size:23px}.timer-idle{flex-wrap:wrap}.timer-idle .btn{margin-left:84px}.entry-note{max-width:150px}}
@media(max-width:900px){.dashboard,.report-grid{grid-template-columns:1fr}.dashboard>.stack:last-child{grid-template-columns:1fr 1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.timer-bottom{flex-direction:row;align-items:flex-end}.auth-layout{gap:40px;grid-template-columns:1fr 370px}.auth-brand h1{font-size:36px}.onboarding{padding:26px;align-items:flex-start;flex-direction:column}.onboarding .steps{display:flex;flex-wrap:wrap}.settings-grid{grid-template-columns:1fr}}
@media(max-width:680px){:root{font-size:16px}.sidebar{inset:auto 0 0;width:100%;height:calc(70px + env(safe-area-inset-bottom));padding:7px 8px max(7px,env(safe-area-inset-bottom));background:#fffefbec;backdrop-filter:blur(16px);border-top:1px solid var(--line);border-right:0;display:block}.sidebar>.brand,.workspace,.sidebar-bottom{display:none}.nav{display:flex;justify-content:space-around;gap:0}.nav a{flex-direction:column;padding:7px 5px;gap:5px;border-radius:11px;font-size:9px;min-width:48px}.nav a svg{width:21px;height:21px}.main{margin-left:0;width:100%;padding:20px 16px 105px}.page-head{margin:17px 0 22px;gap:12px;align-items:flex-start}.page-head h1{font-size:28px}.page-head p{font-size:11px;line-height:1.6;max-width:210px}.head-actions{gap:6px;justify-content:flex-end}.head-actions .btn{padding:10px 12px;font-size:11px;min-height:39px}.head-actions .btn svg{width:15px}.mobile-logo{display:flex;justify-content:space-between;align-items:center}.mobile-logo .brand{font-size:24px;gap:7px;letter-spacing:-1.5px}.mobile-logo .brand img{width:27px;height:27px}.mobile-logo .avatar{width:32px;height:32px;font-size:11px}.dashboard{gap:17px}.stack{gap:17px}.dashboard>.stack:last-child{grid-template-columns:1fr 1fr;gap:12px}.card{padding:20px;border-radius:18px}.timer-top{align-items:flex-start}.project-title{font-size:14px}.timer-meta{font-size:10px;line-height:1.6}.badge{font-size:9px;padding:5px 7px}.timer-digits{font-size:36px}.timer-bottom{align-items:stretch;flex-direction:column;gap:17px;margin-top:22px}.timer-bottom .actions{display:flex}.timer-bottom .btn.primary{flex:1}.timer-card::after{right:10px}.timer-idle{gap:14px}.timer-symbol{width:46px;height:46px;border-radius:13px}.timer-idle h2{font-size:15px}.timer-idle p{font-size:11px}.timer-idle .btn{margin-left:0;width:100%;margin-top:7px}.card-head{margin-bottom:18px}.card-head h2{font-size:15px}.summary-row{font-size:11px;align-items:flex-start;gap:5px;flex-direction:column;padding:10px 0}.summary-row strong{font-size:13px}.summary-row:last-child{display:none}.week-chart{gap:5px;height:105px}.day-bar{font-size:9px}.table-card{padding:20px 16px}.table-wrap{margin-right:-5px}th{font-size:9px;padding-left:6px;padding-right:6px}td{padding:17px 6px;font-size:11px}.entry-project{gap:7px}.entry-project strong{font-size:11px;max-width:130px;display:block;white-space:normal}.entry-project small{font-size:9px}.entry-note{font-size:10px;max-width:100px;white-space:normal}.table-actions .icon-btn{width:28px;height:32px}.table-actions .icon-btn svg{width:14px}.hide-mobile{display:none}.table-footer .small{font-size:10px}.text-btn{font-size:11px}.stats-grid{gap:12px;margin-bottom:18px}.stat{padding:19px 17px}.stat .number{font-size:24px;margin:13px 0 7px}.stat .eyebrow{font-size:9px}.stat p{font-size:10px}.filters{gap:10px;padding:12px;margin-bottom:18px}.filters label{min-width:calc(50% - 10px);font-size:10px}.filters select,.filters input{font-size:12px}.filters .segmented{width:100%}.filters .segmented button{flex:1}.project-grid,.client-cards{grid-template-columns:1fr;gap:16px}.project-card{padding:23px}.project-card h3{font-size:16px}.project-card .project-meta{font-size:12px}.project-amount{font-size:25px}.project-foot{font-size:12px}.project-foot strong{font-size:13px}.project-card .badge{font-size:10px}.onboarding{padding:25px;gap:22px}.onboarding h2{font-size:22px}.onboarding p{font-size:12px}.onboarding .steps{display:grid;gap:10px}.onboarding .btn{width:100%}.filter-label{display:none}.toolbar{gap:10px}.toolbar .search{max-width:none}.toolbar .segmented{width:100%}.toolbar .segmented button{flex:1}.report-grid{gap:17px}.chart{height:150px;gap:3px}.chart-column span{font-size:8px}.auth-page{padding:24px 18px}.auth-layout{display:block;max-width:420px}.auth-brand h1{font-size:29px;letter-spacing:-1.1px;margin:25px 0 13px}.auth-brand p,.auth-brand .nas-tag{display:none}.auth-brand .brand{font-size:33px}.auth-brand .brand img{width:33px;height:33px}.auth-form{margin-top:28px;padding:26px 23px}.auth-form h2{font-size:21px}.form-grid{gap:15px}.field{font-size:12px}.modal-body{padding:20px}.modal-head{padding:22px 20px 0}.modal-head h2{font-size:18px}.form-actions .btn{flex:1}.empty{padding:35px 5px}.empty p{font-size:12px}#toast{bottom:95px;width:max-content;max-width:calc(100vw - 32px);font-size:12px}.settings-grid{gap:17px}.report-table{min-width:580px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Čitelnost hlavních údajů na menších obrazovkách. */
.field{font-size:14px}.filters label{font-size:12px}
@media(max-width:680px){td{font-size:13px}.entry-project strong{font-size:12px}.entry-project small{font-size:10px}.entry-note{font-size:12px}.nav a{font-size:10px}.project-card .actions .btn{font-size:13px}.filters input,.filters select{font-size:14px}.field{font-size:14px}.summary-row{font-size:12px}}

@media(max-width:680px){.team-table thead{display:none}.team-table,.team-table tbody{display:block;width:100%}.team-table tr{display:grid;grid-template-columns:1fr auto;gap:8px;padding:18px 0;border-top:1px solid var(--line)}.team-table td{display:block;padding:0;border:0;font-size:13px}.team-table td:first-child{grid-column:1/-1;margin-bottom:7px}.team-table td:first-child strong{font-size:15px}.team-table td:first-child small{font-size:12px}.team-table td:nth-child(2)::before{content:'Role: ';color:var(--muted)}.team-table td:nth-child(3){grid-column:1;grid-row:3}.team-table td:last-child{grid-column:2;grid-row:2/4;align-self:center}.nav a{min-width:42px;font-size:9px}}

[hidden]{display:none!important}.invoice-project-total{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--bg);border-radius:10px;padding:13px;margin-top:17px;font-size:12px}.invoice-project-total strong{font-size:15px}.invoice-table{min-width:1000px}.invoice-table td{font-size:12px}.invoice-table tfoot td{border-top:2px solid var(--line)}.invoice-mobile{display:none}.invoice-mobile-card{padding:18px;background:var(--bg);border-radius:13px;margin-bottom:14px}.invoice-mobile-card header{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}.invoice-mobile-card p{margin-top:5px}.invoice-mobile-card dl{margin:16px 0 0}.invoice-mobile-card dl>div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;font-size:13px}.invoice-mobile-card dt{color:var(--muted)}.invoice-mobile-card dd{margin:0;font-family:'JetBrains Mono',monospace}.invoice-mobile-total{border-top:1px solid #ddd5c9;margin-top:8px;padding-top:13px!important;font-weight:800}.invoice-mobile-total dt{color:var(--ink)}
@media(max-width:680px){.invoice-desktop{display:none}.invoice-mobile{display:block}.project-card .actions{flex-wrap:wrap}.invoice-project-total span{font-size:12px}.invoice-project-total strong{font-size:14px}.modal-body .form-grid>.field:not(.check){grid-column:1/-1}}

.csv-preview-modal{width:min(1400px,calc(100vw - 36px));max-width:calc(100vw - 36px)}.csv-preview-scroll{max-height:60dvh;overflow:auto;margin-top:18px;border:1px solid var(--line);border-radius:10px}.csv-preview-table{min-width:1750px}.csv-preview-table thead{position:sticky;top:0;background:#fffaf4;z-index:1}.csv-preview-table th{padding:13px 12px;font-size:11px;white-space:normal;min-width:95px}.csv-preview-table td{padding:13px 12px;font-size:12px;white-space:nowrap}.csv-preview-table td:nth-child(6){white-space:normal;min-width:220px;max-width:340px}.csv-project-total{background:#fbf3e9}.csv-project-total td{border-top:2px solid #ead9c7}.csv-grand-total{background:#fbe8e0;font-weight:800}.csv-preview-table td:first-child{padding-left:12px;min-width:180px}.csv-preview-modal .info{font-size:13px}@media(max-width:680px){.csv-preview-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.csv-preview-scroll{max-height:54dvh}.csv-preview-modal .modal-head h2{font-size:19px}.csv-preview-modal .info{font-size:12px}.head-actions{max-width:200px}}

/* Stable intrinsic widths prevent date/select controls and long labels from widening dialogs. */
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid>*,.field,.main,.card,.stack,.dashboard>*,.page-head>*,.entry-project>span{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
.localized-date{position:relative;display:flex;align-items:center;min-height:46px;border:1px solid #e8e0d6;border-radius:10px;background:#fffdfa;padding:12px 13px;font-size:16px;font-weight:400}
.localized-date input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;font-size:16px;cursor:pointer}
.localized-date-label{flex:1;min-width:0;pointer-events:none}.localized-date svg{width:18px;height:18px;color:var(--muted);pointer-events:none}
.localized-date:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px #e85c3310}
.month-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;width:100%;min-width:0}.month-control select{width:100%;min-width:0}
.duration-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.duration-keys{display:flex;gap:5px}.duration-keys button{width:39px;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--orange);font-size:22px;font-weight:700}
@media(max-width:680px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{width:100%;min-width:0}body:has(dialog[open]){overflow:hidden}
 .main{min-width:0;max-width:100%;padding:18px max(14px,env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 .page-head{flex-wrap:wrap}.page-head>div:first-child{flex:1 1 180px}.page-head p{font-size:13px;max-width:none}.head-actions{max-width:none;flex:1 1 100%;justify-content:flex-start}.head-actions .btn{font-size:13px;min-height:44px;padding:10px 12px}
 .btn{font-size:14px;min-height:44px;max-width:100%;white-space:normal}.icon-btn{width:40px;height:40px}.icon-btn svg{width:19px;height:19px}
 .card{padding:18px}.card-head{flex-wrap:wrap}.card-head h2{font-size:17px}.card-head .small{font-size:13px}small,.small{font-size:13px}
 .dashboard>.stack:last-child{grid-template-columns:minmax(0,1fr)}.summary-row{font-size:14px;flex-direction:row;gap:10px}.summary-row strong{font-size:15px}.timer-idle h2{font-size:17px}.timer-idle p,.timer-meta{font-size:13px}.project-title{font-size:16px;overflow-wrap:anywhere}.timer-top{flex-wrap:wrap}.badge{font-size:11px}.day-bar{font-size:12px}
 .field{font-size:15px;line-height:1.5}.field small{font-size:13px}.field-control,input,select,textarea,.filters input,.filters select{font-size:16px;min-height:46px}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.form-grid>.field{grid-column:1/-1}.filters label{font-size:13px;min-width:0;flex:1 1 calc(50% - 10px)}.filters .segmented button{font-size:13px;padding:9px 10px}.filters>.segmented{flex:1 1 100%}
 dialog,dialog.csv-preview-modal{position:fixed;inset:auto;top:calc(var(--visual-viewport-top,0px) + max(12px,env(safe-area-inset-top)));left:0;right:0;margin:0 auto;width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(var(--visual-viewport-height,100dvh) - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));overflow:auto;overscroll-behavior:contain;border-radius:18px}
 .modal-head{padding:18px 18px 0;align-items:flex-start;gap:8px}.modal-head h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.modal-head .icon-btn{flex-shrink:0}.modal-body{padding:18px}.modal-body .info{font-size:13px;overflow-wrap:anywhere}.modal-intro{font-size:14px}.form-actions{flex-wrap:wrap;margin-top:20px}.form-actions .btn{flex:1 1 120px}.duration-keys button{width:42px;min-height:46px}
 .sidebar{padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}.nav{width:100%;min-width:0}.nav a{flex:1 1 0;min-width:0;padding:7px 2px;font-size:clamp(10px,2.8vw,11px)}.nav a span{max-width:100%}
 .work-entries,.work-entries tbody{display:block;width:100%}.work-entries thead{display:none}.work-entries tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:16px 0;border-top:1px solid var(--line)}.work-entries td{display:block;padding:0;border:0;min-width:0;font-size:15px}.work-entries td:first-child,.work-entries td:nth-child(2){grid-column:1/-1}.work-entries .entry-project strong{font-size:15px;max-width:none}.work-entries .entry-project small{font-size:13px;line-height:1.6}.work-entries .entry-note{max-width:none;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.6}.work-entries .entry-duration{grid-column:1;text-align:left;align-self:center}.work-entries .entry-controls{grid-column:2}.work-entries .hide-mobile{display:none}.work-entries .table-actions .icon-btn{width:40px;height:40px}.work-entries .table-actions .icon-btn svg{width:18px;height:18px}.work-entries .date-divider{padding:12px 0 0}.work-entries .date-divider td{font-size:13px;font-weight:800;color:var(--muted)}
 .table-wrap{max-width:100%;min-width:0;margin-right:0}.table-footer{flex-wrap:wrap;font-size:14px}.table-footer .small,.text-btn{font-size:13px}.project-card .project-meta,.project-foot,.invoice-project-total span{font-size:14px}.project-card h3{font-size:18px}.project-card .actions{gap:8px}.invoice-mobile-card{padding:15px}.invoice-mobile-card header{flex-wrap:wrap;font-size:15px}.invoice-mobile-card dl>div{font-size:14px;flex-wrap:wrap}.invoice-mobile-card dd{overflow-wrap:anywhere}.invoice-project-total{flex-wrap:wrap}.stat .eyebrow{font-size:11px}.stat p{font-size:12px;line-height:1.6}.stat .number{font-size:clamp(20px,6vw,27px);overflow-wrap:anywhere}
 .info,.settings-grid ul,.auth-form>p,.empty p,.onboarding p{font-size:14px}.auth-form{padding:22px 18px}.auth-layout{min-width:0}.auth-page{padding:22px 14px}.team-table td{overflow-wrap:anywhere}.csv-preview-modal .info{font-size:13px}.csv-preview-scroll{max-width:100%;max-height:45dvh}.csv-preview-table th,.csv-preview-table td{font-size:13px}
 #toast{font-size:14px;max-width:calc(100vw - 28px);bottom:calc(85px + env(safe-area-inset-bottom))}
}

@media(max-width:680px){.filters .month-control{display:grid;margin-bottom:0}.project-card .actions>.actions{min-width:0;flex-wrap:wrap}.budget-log{font-size:13px}.client-note{font-size:14px;overflow-wrap:anywhere}.settings-grid li{overflow-wrap:anywhere}.onboarding .steps{min-width:0}.timer-card .timer-idle>div{min-width:0}}
/* Mobile time sheet: existing palette, a week strip and a card for every entry. */
.mobile-time,.mobile-nav,.mobile-account-shortcuts{display:none}
.work-entry-modal .form-grid{display:flex;flex-direction:column;gap:16px}
.entry-block{display:block;background:var(--bg);border:1px solid var(--line);border-radius:14px;min-width:0}
.entry-project-block{padding:0 16px}.entry-project-select{position:relative;display:flex;align-items:center;gap:12px;padding:15px 0;min-height:80px;cursor:pointer}.entry-project-display{flex:1;min-width:0;display:grid;gap:7px}.entry-client-line,.entry-project-line{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;font-size:14px;line-height:1.5}.entry-client-line>span{color:var(--muted)}.entry-client-line b,.entry-project-line strong{text-align:right;overflow-wrap:anywhere;min-width:0}.entry-client-line b{font-size:15px}.entry-project-line strong{font-size:14px;font-weight:500}.entry-project-select>select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;cursor:pointer}.entry-project-select>svg{width:18px;height:18px;color:var(--muted);pointer-events:none}.entry-project-select:focus-within{outline:2px solid var(--orange);outline-offset:3px;border-radius:8px}
.entry-member-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;border-top:1px solid var(--line);padding:10px 0;font-size:14px}.entry-member-row>span{flex-shrink:0;color:var(--muted)}.entry-member-row select{width:auto;max-width:65%;background-color:transparent;border:0;min-height:40px;padding-top:8px;padding-bottom:8px;font-size:14px}.entry-member-row strong{text-align:right;font-size:14px;overflow-wrap:anywhere}
.entry-date-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 16px;font-size:15px}.entry-date-row .localized-date{background:transparent;border:0;flex:1;min-width:0;max-width:75%;padding-right:0}.entry-date-row .localized-date-label{text-align:right;margin-right:10px}.entry-mode-picker{align-self:center}.entry-mode-picker button{min-height:40px;font-size:14px}
.entry-time-block{padding:18px 16px}.entry-time-title{display:block;text-align:center;font-size:16px;font-weight:600;margin-bottom:16px}.entry-duration-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center}.entry-duration-row>button{width:44px;height:48px;display:grid;place-items:center;background:none;color:var(--orange);border-radius:10px}.entry-duration-row>button svg{width:28px;height:28px}.entry-duration-row input{background:var(--paper);font-family:'JetBrains Mono',monospace;font-size:30px;text-align:center;padding:10px 6px;height:66px;min-width:0;font-weight:400}.entry-quick-hours{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:20px}.entry-quick-hours button{background:var(--paper);color:var(--orange);border:1px solid var(--line);border-radius:9px;min-width:0;min-height:42px;padding:6px 2px;font-size:14px;font-weight:700}.entry-separators{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px}.entry-separators>span:first-child{font-size:12px;color:var(--muted);line-height:1.6}.entry-separators .duration-keys button{min-height:36px;width:36px;font-size:20px}
.entry-notes{padding:14px 16px;font-size:13px;font-weight:600;color:var(--muted)}.entry-notes>span{display:block;margin-bottom:6px}.entry-notes textarea{border:0;background:transparent;padding:0;min-height:85px;resize:vertical;color:var(--ink);font-weight:400}.entry-notes textarea:focus{box-shadow:none}.entry-timer-hint{margin:0!important}
@media(max-width:680px){
 .desktop-today{display:none}.main:has(.mobile-time)>.mobile-logo{display:none}.main:has(.mobile-time){padding-top:16px}
 .sidebar .nav{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:start}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:52px;border-radius:11px;padding:5px 1px;font-size:11px;font-weight:600;color:var(--muted)}.mobile-nav svg{width:23px;height:23px}.mobile-nav a.active{color:var(--orange);background:var(--soft)}
 .mobile-account-shortcuts{display:block;margin-top:18px}.mobile-account-shortcuts h2{margin-bottom:14px}.mobile-account-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;font-size:15px;border-top:1px solid var(--line)}.mobile-account-shortcuts a svg{color:var(--muted);width:17px}
 .mobile-time{display:flex;flex-direction:column;min-height:calc(100dvh - 122px - env(safe-area-inset-bottom));min-width:0}.mobile-time-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.mobile-time-head h1{font-size:30px;letter-spacing:-1px}.mobile-time-head .avatar{width:36px;height:36px;font-size:12px}
 .mobile-time-date{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.mobile-selected-day{position:relative;display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:9px 10px;min-width:0;flex:1;font-size:14px;font-weight:600}.mobile-selected-day>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;flex:1}.mobile-selected-day>input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;font-size:16px}.mobile-selected-day svg{width:16px;height:16px;color:var(--muted);pointer-events:none}.mobile-selected-day:focus-within{outline:2px solid var(--orange);outline-offset:2px}.mobile-week-arrows{display:flex;flex-shrink:0;gap:1px}.mobile-week-arrows .icon-btn{width:32px;height:40px}.mobile-week-arrows svg{width:20px;height:20px}
 .mobile-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:5px 0 17px;border-bottom:1px solid var(--line);margin-bottom:19px}.mobile-week-day{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;min-width:0;padding:3px 0;color:var(--ink);font-weight:500}.mobile-week-day .weekday{font-size:11px;text-transform:uppercase;color:var(--muted)}.mobile-week-day .day-number{font-size:21px;font-weight:700;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-variant-numeric:tabular-nums}.mobile-week-day .day-hours{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.mobile-week-day.selected .day-number{color:var(--paper);background:var(--orange)}.mobile-week-day.selected .day-hours{color:var(--orange);font-weight:700}
 .mobile-week-total{display:flex;flex-direction:column;gap:6px;margin-bottom:18px;font-size:17px}.mobile-week-total strong{font-weight:800}.mobile-week-total small{font-size:11px;color:var(--muted)}.mobile-time-entries{display:grid;gap:11px;min-width:0}.mobile-time-card{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:16px 14px 6px;min-width:0;box-shadow:var(--shadow)}.time-card-body{display:flex;align-items:center;gap:13px;min-width:0}.time-entry-edit{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;text-align:left;background:none;color:var(--ink);padding:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.time-entry-edit>strong{font-size:17px;line-height:1.35;font-weight:800}.time-card-project{font-size:14px}.time-card-person{font-size:12px;color:var(--muted)}.time-card-note{font-size:14px;color:var(--muted);margin-top:3px}.time-entry-play{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:8px;min-width:75px;min-height:43px;border-radius:10px;border:1px solid var(--line);background:var(--paper);padding:8px;font-size:20px;font-variant-numeric:tabular-nums;color:var(--ink)}.time-entry-play svg{width:17px;height:17px;fill:var(--orange);stroke:var(--orange)}.mobile-time-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;color:var(--muted);font-size:11px}.mobile-time-card footer .icon-btn{width:32px;height:30px}.mobile-time-card footer svg{width:15px;height:15px}.mobile-day-total{display:flex;justify-content:space-between;padding:17px 3px;color:var(--muted);font-size:14px}.mobile-day-total strong{color:var(--ink)}
 .mobile-track-action{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));z-index:9;background:var(--bg);padding:10px 0 0;margin-top:auto}.mobile-track-action .btn{width:100%;font-size:17px;min-height:51px;border-radius:13px}.mobile-track-action .btn svg{width:23px;height:23px}.mobile-time-empty{text-align:center;padding:35px 15px;background:var(--paper);border:1px solid var(--line);border-radius:15px}.mobile-time-empty>svg{width:32px;height:32px;color:var(--orange);margin-bottom:13px}.mobile-time-empty h2{font-size:17px}.mobile-time-empty p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:9px}.mobile-active-timer{margin-bottom:15px}.mobile-active-timer .timer-card{padding:17px}.mobile-active-timer .timer-digits{font-size:31px}
 dialog.work-entry-modal[open]{display:flex;flex-direction:column;top:var(--visual-viewport-top,0px);width:100%;max-width:100%;height:var(--visual-viewport-height,100dvh);max-height:var(--visual-viewport-height,100dvh);border-radius:0;overflow:hidden;background:var(--bg)}
 .work-entry-modal .modal-head{padding:16px;flex-shrink:0;align-items:center;background:var(--bg);border-bottom:1px solid var(--line);margin:0}.work-entry-modal .modal-head h2{font-size:20px;line-height:1.4}.work-entry-modal .modal-head .icon-btn{width:42px;height:42px}.work-entry-modal .modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.work-entry-modal .form-grid{gap:16px}.work-entry-modal .entry-block{background:var(--paper)}.work-entry-modal .entry-project-block{padding:0 16px}.work-entry-modal .entry-project-line>span{font-size:16px}.work-entry-modal .entry-date-row{font-size:16px}.work-entry-modal .entry-date-row .localized-date{font-size:16px;min-height:45px}.work-entry-modal .entry-member-row select{font-size:16px;min-height:43px}.work-entry-modal .entry-notes{font-size:13px}.work-entry-modal .entry-notes textarea{font-size:16px;line-height:1.5;min-height:80px}.work-entry-modal .entry-duration-row input{font-size:30px}.work-entry-modal .form-actions{position:sticky;bottom:0;z-index:2;padding:14px 0 0;margin-top:16px;background:var(--bg);flex-shrink:0}.work-entry-modal .form-actions .outline{display:none}.work-entry-modal .form-actions .primary{width:100%;font-size:17px;min-height:50px;border-radius:12px}.work-entry-modal .entry-timer-hint{font-size:14px}
}

/* The description scrolls as one block above the iOS keyboard; flex shrinking must not push it outside the scroll container. */
@media(max-width:680px){
 .work-entry-modal .modal-body{display:block;position:relative;overflow-y:auto;overflow-x:hidden;scroll-behavior:auto;scroll-padding-block:12px 20px;overflow-anchor:none;-webkit-overflow-scrolling:touch}
 .work-entry-modal .modal-body>.form-grid{flex:none;min-height:min-content}
 .work-entry-modal .form-grid>*{flex-shrink:0}
 .work-entry-modal .entry-notes{scroll-margin-block:12px 20px}
 .work-entry-modal .entry-notes textarea{height:96px;min-height:80px;max-height:140px;resize:none}
 .work-entry-modal .form-actions{position:static}
}

/* The generic filter-label span rule must not stack the month/year controls on desktop. */
.filters label>.month-control{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px;margin-bottom:0}
.filters .month-control select{padding-left:10px;padding-right:26px;background-position:right 8px center}
