:root{--ink:#17171b;--accent:#7654db;--line:#dedee5;--soft:#f4f3f8}
html{scroll-padding-bottom:100px}body{min-width:320px}
.nav button{display:flex;align-items:center;gap:13px;width:100%;min-height:48px}
.nav svg,.bottom svg{width:21px;height:21px;flex:none;stroke-width:1.9}
.bottom button{align-content:center;min-height:52px}
.bottom .add svg{width:22px;height:22px}
.field{min-width:0}.field input,.field textarea,.select-trigger{font-size:16px}
.field input[type=date]{appearance:none;color-scheme:light;min-width:0}
.field input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.65}
.field input:focus,.field textarea:focus,.select-trigger:focus-visible{border-color:var(--accent);outline:2px solid #7654db30;outline-offset:1px}
.select-shell{position:relative;min-width:0}
.select-shell select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;pointer-events:none;left:0;bottom:0}
.select-trigger{width:100%;min-height:55px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink)}
.select-trigger:hover{border-color:#bdbdc7}.select-trigger[aria-expanded=true]{border-color:var(--accent);box-shadow:0 0 0 3px #7654db1c}
.select-trigger svg{width:18px;height:18px;stroke:#777782;flex:none;transition:transform .15s ease}.select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-popover{position:fixed;z-index:100;background:#fff;border:1px solid #e5e4ea;border-radius:14px;box-shadow:0 18px 46px #19132820;overflow:hidden;min-width:180px;animation:selectIn .14s ease-out}
@keyframes selectIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.select-search-wrap{padding:9px;border-bottom:1px solid #efedf2}.select-search{width:100%;min-height:42px;border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:16px;background:#fff}
.select-options{overflow:auto;overscroll-behavior:contain;max-height:min(320px,45dvh);padding:5px}
.select-option{width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;border-radius:9px;background:#fff;padding:10px 12px;color:var(--ink)}
.select-option:hover,.select-option[data-active=true]{background:#f5f5f7}.select-option[aria-selected=true]{background:#f3efff;color:#6243c1}
.select-option svg{width:18px;height:18px;stroke-width:2}.select-empty{padding:20px;text-align:center;color:#85858f;font-size:14px}
.modal{overscroll-behavior:contain}.modalhead{position:sticky;top:-26px;background:#fff;z-index:1;padding-bottom:4px}
.notice{max-width:min(440px,calc(100vw - 40px))}
@media(max-width:700px){.main{min-width:0;padding-bottom:calc(112px + env(safe-area-inset-bottom))}.top{flex-wrap:wrap}.top .btn{white-space:nowrap}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.projectstats{grid-template-columns:repeat(3,minmax(0,1fr))}.projectstats div{min-width:0}.projectstats b{overflow-wrap:anywhere;font-size:13px}.item .body{min-width:0}.item .body strong,.item .body small{overflow-wrap:anywhere}.modal{max-height:calc(100dvh - env(safe-area-inset-top) - 12px);padding-bottom:calc(24px + env(safe-area-inset-bottom))}.select-popover{left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;max-height:min(72dvh,600px);border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:selectMobileIn .18s ease-out}.select-popover::before{content:'';display:block;width:35px;height:4px;border-radius:4px;background:#d4d1d8;margin:10px auto}.select-options{max-height:50dvh}.select-option{min-height:48px}}
@keyframes selectMobileIn{from{transform:translateY(14px);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(max-width:400px){.top{gap:10px}.top h1{font-size:23px}.top .btn{min-height:42px}.two{grid-template-columns:1fr}.grid .card:not(:first-child) .metric{font-size:20px}.card{padding:15px}.item{gap:8px}.item .icon{display:none}.amount{font-size:13px}}
@media(prefers-reduced-motion:reduce){.select-popover,.select-trigger svg{animation:none;transition:none}}
.ui-dialog-backdrop{position:fixed;inset:0;z-index:120;background:#0f0f1752;display:flex;align-items:center;justify-content:center;padding:18px}
.ui-dialog{width:min(430px,100%);background:#fff;border:1px solid #e9e8ee;border-radius:20px;box-shadow:0 24px 70px #15151d35;padding:25px}
.ui-dialog h2{font-size:20px;margin:0 0 10px}.ui-dialog p{font-size:14px;line-height:1.6;color:#62616c;margin:0 0 19px}
.ui-dialog input{width:100%;min-height:55px;border:1px solid var(--line);border-radius:13px;padding:13px 14px;margin-bottom:20px;font-size:16px}
.ui-dialog-actions{display:flex;justify-content:flex-end;gap:9px}.ui-dialog-actions .btn{min-width:90px}
@media(max-width:700px){.ui-dialog-backdrop{align-items:flex-end;padding:0}.ui-dialog{width:100%;border-radius:22px 22px 0 0;padding:23px 20px calc(24px + env(safe-area-inset-bottom))}}
.suggest-wrap{position:relative}.suggest-menu{position:fixed;z-index:110;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 16px 36px #19132820;padding:5px;max-height:250px;overflow:auto}.suggest-option{width:100%;display:block;text-align:left;border:0;border-radius:9px;background:#fff;padding:12px;min-height:46px}.suggest-option:hover,.suggest-option.active{background:#f3efff;color:#6243c1}.object-filter{max-width:290px;margin-bottom:16px}.entry-actions{display:flex;gap:2px;flex:none}.entry-actions .mini{font-size:12px}
@media(max-width:700px){.object-filter{max-width:none}.entry-actions{flex-direction:column}.entry-actions .mini{padding:5px}.suggest-menu{max-height:min(240px,35dvh)}}
.field input::placeholder,.ui-dialog input::placeholder{font-size:14px!important;color:#9292a3;font-weight:400;opacity:1}
input[type=number]{appearance:textfield;-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-button{text-align:left;width:100%;cursor:pointer;color:inherit;font:inherit}.metric-button:hover{border-color:#7654db}
.calendar-panel{position:fixed;z-index:130;width:310px;background:#fff;border:1px solid #e5e4ea;border-radius:16px;box-shadow:0 18px 46px #19132825;padding:14px}.calendar-head{display:flex;align-items:center;gap:5px}.calendar-head>button{border:0;background:#f5f5f7;border-radius:9px;width:36px;height:40px;font-size:24px}.calendar-head select{min-width:0;flex:1;border:1px solid #dedee5;border-radius:9px;background:#fff;height:40px;padding:0 5px}.calendar-head .select-shell{flex:1;min-width:0}.calendar-head .select-trigger{min-height:40px;padding:7px;font-size:13px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin:12px 0}.calendar-grid b{text-align:center;font-size:12px;color:#9292a3;padding:6px}.calendar-day{border:0;background:#fff;border-radius:9px;min-height:38px}.calendar-day:hover{background:#f5f5f7}.calendar-day.chosen{background:#eee9ff;color:#6243c1;font-weight:700}.calendar-actions{display:flex;justify-content:space-between;border-top:1px solid #efedf2;padding-top:9px}.calendar-actions button{border:0;background:transparent;color:#7654db;padding:8px 10px}
@media(max-width:950px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-panel{left:10px!important;right:10px!important;top:auto!important;bottom:calc(10px + env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 30px - env(safe-area-inset-bottom));overflow:auto}.calendar-day{min-height:44px}}

.calendar-actions button:disabled{color:#b7b5bf;cursor:not-allowed}

.calendar-select{z-index:140}
.period-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px}.period-controls .seg{min-width:220px}.period-controls select,.period-controls input[type=month]{min-height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:8px 12px;color:var(--ink)}.period-controls .select-shell{min-width:100px}.period-controls .select-trigger{min-height:44px;padding:8px 12px}.period-controls .btn{min-height:44px;padding:8px 14px}.checkline{display:flex;align-items:center;gap:10px}.checkline input{width:20px;min-height:20px;accent-color:#7654db}.report-row{display:grid;grid-template-columns:60px 1fr 1fr;gap:10px;border-bottom:1px solid #eee;padding:10px 0;font-size:14px}.ledger-search{margin-bottom:16px;max-width:420px}.date-group{margin-top:20px}.date-group h2{font-size:15px;color:#777782}
.hours-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8f8fa;border:1px solid #eceaf1;border-radius:14px;padding:14px;margin:15px 0}.hours-card strong{display:block;margin-top:5px}.hours-card .btn{min-height:42px;padding:8px 12px}.labor-tabs{max-width:440px}.project details summary{cursor:pointer;color:#7654db;font-weight:600;padding:10px 0}.project details[open]{border-top:1px solid #eee;margin-top:16px}.project .projectstats b{font-size:16px}
@media(max-width:700px){.hours-card{align-items:flex-start;flex-direction:column}.hours-card .btn{width:100%}.labor-tabs{max-width:none}}
.labor-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.labor-top .labor-tabs{flex:1}.labor-period{margin:18px 0 14px}.labor-top .btn{white-space:nowrap}.hours-card small{display:block;margin-top:5px;color:#777782}.project details .item{padding-left:0;padding-right:0}
@media(max-width:700px){.labor-top{align-items:stretch;flex-direction:column}.labor-top .btn{width:100%}.labor-period{margin:16px 0 12px}.labor-period .seg{width:100%}}
@media(max-width:700px){.period-controls .seg{width:100%}.period-controls .select-shell{flex:1}.period-controls .btn{min-width:44px}.report-row{grid-template-columns:40px 1fr 1fr;font-size:12px}.project .item{flex-wrap:wrap}}
/* V1.1.4 compact project navigation and optional labor fields */
.recent-count{font-weight:400;white-space:nowrap;margin-left:8px}
.labor-entry-fields{border:1px solid #e8e8ed;border-radius:16px;padding:16px;display:grid;gap:14px}
.labor-entry-fields .checkline{display:flex;align-items:center;gap:9px;font-size:13px}
.labor-entry-fields input[type=checkbox]{width:18px;height:18px;accent-color:#7654db}
#laborDetails{display:grid;gap:14px}
.project-toolbar{display:grid;grid-template-columns:minmax(230px,2fr) repeat(3,minmax(130px,1fr));gap:12px;margin-bottom:15px}
.project-compact-list{border:1px solid #e8e8ed;border-radius:18px;overflow:hidden}
.project-row{width:100%;border:0;border-bottom:1px solid #eeeef2;background:#fff;color:#171717;padding:17px 19px;display:flex;align-items:center;gap:16px;text-align:left}
.project-row:last-child{border-bottom:0}.project-row:hover{background:#faf9fd}.project-row:focus-visible{outline:2px solid #7654db;outline-offset:-2px}
.project-row-main{flex:1;min-width:0}.project-row-main strong{display:block;font-size:15px}.project-row-main small{display:block;color:#85858f;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-row-numbers{display:flex;gap:18px;font-size:12px;color:#85858f;white-space:nowrap}.project-row-numbers b{display:block;color:#171717;font-size:14px;margin-top:4px}
.project-more{display:block;margin:18px auto 0}.project-detail{min-width:0}.project-detail .card{min-width:0}.project-detail .item{flex-wrap:wrap}
@media(max-width:900px){.project-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.project-row-numbers{gap:10px}}
@media(max-width:700px){.project-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.project-toolbar .field:first-child{grid-column:span 2}.project-row{align-items:flex-start;flex-wrap:wrap;padding:15px}.project-row-main{flex-basis:100%}.project-row-numbers{flex:1}.project-detail-metrics,.project-detail .projectstats{grid-template-columns:repeat(2,minmax(0,1fr))}.labor-entry-fields .two{grid-template-columns:1fr 1fr}}
@media(max-width:390px){.project-row-numbers{font-size:11px;gap:8px}.project-row-numbers b{font-size:12px}}
/* V1.1.5 cooperation and project actions */
.project-mode-tabs{max-width:360px;margin-bottom:24px}.project-more-menu{margin:14px 0 0;max-width:210px}.project-more-menu summary{list-style:none;cursor:pointer}.project-more-menu summary::-webkit-details-marker{display:none}.project-menu-actions{display:grid;gap:7px;padding:8px;border:1px solid #e8e8ed;border-radius:14px;margin-top:6px;background:#fff;box-shadow:0 8px 20px #17171712}
.collab-toolbar{grid-template-columns:minmax(220px,2fr) minmax(160px,1fr);max-width:620px}.collab-task-list{display:grid;gap:12px}.collab-task{border:1px solid #e8e8ed;border-radius:15px;padding:17px}.collab-task .sectionhead{align-items:flex-start}.collab-task strong{font-size:15px}.collab-task .projectstats{margin:14px 0}.collab-task .mini{border:1px solid #e8e8ed;border-radius:9px}.collab-allocation{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eeeef2;padding:12px 0}.collab-allocation:last-of-type{border-bottom:0}.collab-allocation label{font-size:14px;font-weight:600}.collab-allocation small{display:block;color:#85858f;font-weight:400;margin-top:4px}.collab-allocation input{width:125px;min-height:48px;border:1px solid #dedee5;border-radius:11px;padding:10px;font:inherit}
.project-exclusive{display:flex;align-items:center;gap:10px;font-size:13px}.project-exclusive input{width:18px;height:18px;accent-color:#7654db}
@media(max-width:700px){.collab-toolbar{grid-template-columns:1fr 1fr}.collab-toolbar .field:first-child{grid-column:span 2}.collab-task .projectstats{grid-template-columns:repeat(3,minmax(0,1fr))}.collab-task .projectstats div{padding:10px}.collab-allocation input{width:105px}}

/* V1.1.6 quick recording keeps the existing controls and color system. */
.quick-more{border:1px solid #e8e8ed;border-radius:14px;padding:0 15px}.quick-more summary{cursor:pointer;min-height:52px;display:flex;align-items:center;color:#7654db;font-weight:600}.quick-more-fields{display:grid;gap:14px;padding:5px 0 16px}.quick-advance{padding:12px 0;font-size:14px}.quick-business .amount{white-space:nowrap}.quick-business .body small{display:block}.quick-business .entry-actions{flex-wrap:wrap}
.quick-receipts{margin-top:6px;color:#7654db;font-size:12px}.quick-receipts summary{cursor:pointer}.quick-receipts small{color:#777782;margin-top:4px}
.quick-create-actions{display:flex;flex-wrap:wrap;gap:8px}.quick-create-actions .btn{flex:1;min-width:170px}
@media(max-width:700px){.quick-business{flex-wrap:wrap}.quick-business .body{flex-basis:calc(100% - 44px)}.quick-business .amount{margin-left:38px}.quick-business .entry-actions{width:100%;display:flex;flex-direction:row;margin-left:38px}.quick-business .entry-actions .mini{min-height:36px}.quick-more{min-width:0}}

/* V1.1.7 alignment and unified association controls */
.top{margin-bottom:22px}.top p:empty{display:none}.main.time-heading .top>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:18px;row-gap:0}.main.time-heading .top .eyebrow{flex-basis:100%}.main.time-heading .top h1{white-space:nowrap}.main.time-heading .top p{font-size:13px;color:#92919a}.main.time-heading .top{margin-bottom:18px}.object-filter{margin-top:10px}.more-icon svg{width:21px;height:21px;stroke-width:1.9}.quick-link-project,.quick-link-collab{display:grid;gap:10px}.quick-link-project[hidden],.quick-link-collab[hidden]{display:none}.quick-new-collab{display:flex;gap:8px}.quick-new-collab input{min-width:0;flex:1;min-height:50px;padding:12px;border:1px solid #dedee5;border-radius:13px}.quick-new-collab .btn{white-space:nowrap}
@media(max-width:700px){.main.time-heading .top>div:first-child{column-gap:10px}.main.time-heading .top p{font-size:12px}.quick-new-collab{flex-wrap:wrap}.quick-new-collab .btn{width:100%}}
/* V1.1.8 compact cooperation detail */
.collab-detail-118 .collab-detail-header{display:flex;align-items:center;gap:16px;position:relative;margin-bottom:18px}.collab-detail-header h2{font-size:22px;margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collab-detail-header .btn{min-height:42px;padding:9px 13px}.collab-more{position:relative}.collab-more summary{list-style:none;width:42px;height:42px;border:1px solid #e5e4ea;border-radius:11px;display:grid;place-items:center;cursor:pointer;font-weight:700}.collab-more summary::-webkit-details-marker{display:none}.collab-more-panel{position:absolute;right:0;top:46px;z-index:4;background:#fff;border:1px solid #e5e4ea;border-radius:12px;box-shadow:0 10px 28px #15151d1a;padding:5px;min-width:156px}.collab-more-panel button{border:0;background:#fff;padding:11px 12px;width:100%;text-align:left;border-radius:8px;white-space:nowrap}.collab-more-panel button:hover{background:#f5f4f8}.collab-detail-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.collab-detail-metrics .card{padding:15px 17px;border-radius:15px;min-height:100px}.collab-detail-metrics .metric{font-size:24px;margin:8px 0 0}.collab-detail-118 .collab-compact-section{padding:18px 20px;margin-top:16px}.collab-section-head{margin-bottom:8px}.collab-section-head h2{font-size:18px}.collab-task-actions{display:flex;align-items:center;gap:8px}.collab-task-actions .btn,.collab-section-head>.btn{min-height:42px;padding:9px 13px;font-size:13px}.collab-task-compact-list,.collab-receipt-list{display:grid}.collab-task-compact,.collab-receipt-compact{width:100%;border:0;border-bottom:1px solid #eeeef2;background:#fff;text-align:left;color:inherit}.collab-task-compact:last-child,.collab-receipt-compact:last-child{border-bottom:0}.collab-task-compact{padding:13px 2px;display:grid;gap:5px}.collab-task-compact:hover,.collab-receipt-compact:hover{background:#faf9fc}.collab-task-line1{display:flex;gap:12px;align-items:baseline;justify-content:space-between;min-width:0}.collab-task-line1 strong{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collab-task-line1 b{font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}.collab-task-line2{font-size:12px;color:#85858f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collab-task-line3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px;color:#62616c}.collab-task-line3 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collab-receipt-compact{padding:13px 2px;display:grid;grid-template-columns:105px minmax(0,1fr) auto;align-items:center;gap:12px;font-size:13px}.collab-receipt-compact b{font-variant-numeric:tabular-nums}.collab-receipt-purpose{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777782}.collab-receipt-compact.is-voided{color:#999}.collab-view-all{border:0;background:transparent;color:#7654db;font-weight:600;padding:12px 2px 2px}.collab-detail-modal-actions{display:flex;gap:8px}.collab-detail-modal-actions .btn{flex:1}
@media(max-width:700px){.collab-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.collab-detail-metrics .card{min-height:88px;padding:13px}.collab-detail-metrics .metric{font-size:21px}.collab-detail-118 .collab-compact-section{padding:14px;margin-top:13px}.collab-detail-header{gap:8px!important}.collab-detail-header h2{font-size:19px}.collab-detail-header .btn{font-size:12px}.collab-task-actions{gap:6px}.collab-task-actions .btn{padding:8px 10px;font-size:12px;white-space:nowrap}.collab-section-head{flex-wrap:wrap}.collab-section-head h2{white-space:nowrap}.collab-task-line3{gap:4px;font-size:11px}.collab-receipt-compact{grid-template-columns:82px minmax(0,1fr) auto;gap:6px;font-size:12px}}
.collab-task-compact{padding:9px 2px;gap:3px}
@media(max-width:700px){.collab-detail-metrics .card:first-child{grid-column:auto}}
