:root{--bg:#070d1a;--shell:#0a1122;--panel:#111b2f;--panel2:#15223a;--edge:#263650;--muted:#96a8c3;--text:#f4f8ff;--cyan:#49ddf1;--cyan-bg:rgba(73,221,241,.12);--lime:#a8f376;--orange:#ffbd69;--purple:#b6a1ff;--bad:#f98b91;--shadow:0 12px 36px rgba(0,0,0,.2)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Arial,sans-serif;background:var(--bg);color:var(--text);scroll-behavior:smooth}body{margin:0;min-height:100svh;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:flex;max-width:1700px;margin:0 auto;background:var(--bg)}.side-nav{width:255px;flex:none;border-right:1px solid var(--edge);background:#0b1427;padding:29px 17px;display:flex;flex-direction:column;gap:10px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 8px 32px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:linear-gradient(135deg,#1ce6ef,#3979ff);border-radius:13px;color:#071223}.brand-mark svg{width:23px;fill:none;stroke:#071223;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.brand strong{font-size:18px;letter-spacing:-.6px}.brand small{display:block;color:#6b839f;letter-spacing:2px;font-weight:750;font-size:9px;margin-top:4px}.side-section{color:#637c9a;letter-spacing:2px;font-size:10px;font-weight:750;padding:0 14px 8px}.nav-item{background:transparent;border:0;color:#a4b8d3;padding:13px 14px;border-radius:12px;text-align:left;font-weight:660}.nav-item:hover,.nav-item.active{background:rgba(72,213,237,.11);color:var(--cyan)}.nav-ico{display:inline-flex;align-items:center;justify-content:center;width:31px;font-size:20px}.sidebar-foot{margin-top:auto;padding:16px 12px;color:#9db0ca;font-size:12px;line-height:24px;border-top:1px solid var(--edge)}.sidebar-foot small{color:#68809e}.online-dot{display:inline-block;background:var(--lime);width:7px;height:7px;border-radius:50%;margin-right:6px;box-shadow:0 0 10px rgba(168,243,118,.4)}.page-column{flex:1;min-width:0}.top-bar{height:82px;padding:19px 38px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(89,121,155,.16)}.wordmark{display:none;font-weight:820;font-size:19px;letter-spacing:-.65px}.mini-logo{display:inline-grid;place-items:center;width:32px;height:32px;background:linear-gradient(135deg,#1ce6ef,#3979ff);color:#05213a;border-radius:10px;margin-right:8px}.cyan{color:var(--cyan)}.sync-indicator{border:1px solid #2c4057;border-radius:50px;font-size:12px;color:#a9bfda;padding:8px 11px}.main-content{width:min(1110px,100%);margin:0 auto;padding:24px 38px 100px}.mobile-nav{display:none}.page-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:6px 0 24px}.eyebrow{color:var(--cyan);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:2.3px;margin:0 0 10px}.page-intro h1{margin:0;font-size:clamp(27px,4vw,39px);line-height:1.1;letter-spacing:-1.4px;font-weight:820}.subtitle{color:var(--muted);line-height:1.5;margin:11px 0 0;font-size:14px}.actions{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 16px;border-radius:13px;font-size:13px;font-weight:780;background:#1b2b45;border:1px solid #314765;color:var(--text);white-space:nowrap;min-height:44px}.btn:hover{filter:brightness(1.12)}.btn.primary{background:linear-gradient(135deg,#62f1f1,#51b6fb);color:#06192d;border-color:transparent;box-shadow:0 6px 24px rgba(73,221,241,.15)}.btn.soft{background:rgba(73,221,241,.10);border-color:rgba(73,221,241,.25);color:var(--cyan)}.btn.danger{color:#ffb9bc;border-color:#8f4552;background:#3b1729}.btn.small{padding:8px 10px;min-height:36px;font-size:12px;border-radius:10px}.btn.icon{font-size:19px;min-width:39px;padding:8px 10px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.stat-card{position:relative;overflow:hidden;background:linear-gradient(155deg,#16243e,#111b30);border:1px solid #283a55;border-radius:19px;padding:19px 17px;box-shadow:var(--shadow);min-height:128px}.stat-card:after{content:"";position:absolute;right:-30px;top:-43px;border-radius:50%;width:115px;height:115px;border:1px solid rgba(255,255,255,.055)}.stat-label{font-weight:650;color:#a5b4ca;font-size:12px}.stat-value{font-size:clamp(25px,2.7vw,34px);font-weight:870;letter-spacing:-1.2px;margin-top:17px;line-height:1}.stat-meta{color:#748eaa;font-size:10px;margin-top:7px}.tone-cyan .stat-value{color:var(--cyan)}.tone-lime .stat-value{color:var(--lime)}.tone-orange .stat-value{color:var(--orange)}.tone-purple .stat-value{color:var(--purple)}.section-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-top:18px}.panel{background:linear-gradient(140deg,#111c31,#10192c);border-radius:19px;border:1px solid #253754;padding:21px;box-shadow:var(--shadow)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title h2{font-size:16px;margin:0;letter-spacing:-.25px}.section-title small{color:var(--muted)}.mini-link{background:transparent;border:0;color:var(--cyan);font-weight:740;font-size:12px;padding:6px}.bars{height:190px;display:flex;align-items:flex-end;gap:9px;padding:7px 0 0;border-bottom:1px solid #34506a}.bar-wrap{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;gap:8px}.bar-track{height:150px;width:min(27px,100%);display:flex;flex-direction:column;justify-content:flex-end}.bar-fill{background:linear-gradient(#45dfed,#2789b8);width:100%;border-radius:6px 6px 0 0;min-height:0}.bar-label{font-size:10px;color:#8ca3bb}.entry{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #243550}.entry:last-child{border:0;padding-bottom:1px}.entry-main{min-width:0}.entry-title{font-size:13px;font-weight:760;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-sub{font-size:11px;color:var(--muted);margin-top:5px}.entry-side{text-align:right;flex:none}.entry-side b{font-size:14px}.entry-side small{display:block;color:var(--orange);font-size:11px;margin-top:3px}.empty{padding:28px 8px;text-align:center;color:#91a6c3;line-height:1.55}.empty-symbol{font-size:35px;display:block;margin-bottom:12px}.period{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:11px;color:#a8bdd6;font-weight:750}.control{width:100%;min-width:0;background:#0d1628;border:1px solid #354b68;border-radius:11px;color:#f1f7ff;padding:12px 11px;min-height:44px;outline:none;appearance:auto}.control:focus{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(73,221,241,.1)}.control:disabled{opacity:.5}.control::placeholder{color:#607898}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field.full{grid-column:1/-1}.form-panel{margin-top:14px}.day-hero{display:flex;gap:14px;align-items:center;background:linear-gradient(110deg,#153051,#12233d);border:1px solid #305876;border-radius:17px;padding:15px;margin:17px 0}.day-hero strong{font-size:26px;color:var(--cyan)}.day-hero .muted{font-size:12px;color:var(--muted);line-height:1.6}.segment{background:#142038;border:1px solid #2b3e5d;border-radius:16px;padding:16px;margin:13px 0}.segment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.seg-count{display:inline-flex;gap:8px;align-items:center;font-weight:760;font-size:13px}.seg-no{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(73,221,241,.16);color:var(--cyan)}.segment .times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.segment-time{font-size:11px;color:#a0b4ce}.segment-total{font-size:12px;font-weight:800;color:var(--lime);margin-top:12px}.form-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;border-top:1px solid var(--edge);padding-top:17px;margin-top:18px}.pill{border-radius:30px;display:inline-block;padding:5px 10px;font-size:10px;font-weight:820;background:var(--cyan-bg);color:var(--cyan)}.pill.orange{color:var(--orange);background:rgba(255,189,105,.13)}.pill.purple{color:var(--purple);background:rgba(182,161,255,.13)}.day-list{display:grid;gap:12px}.day-row{background:#132037;border:1px solid #293b57;border-radius:16px;padding:15px;display:flex;gap:14px;align-items:center;justify-content:space-between}.day-date{width:53px;flex:none;text-align:center;border-radius:12px;background:#223752;padding:9px 7px}.day-date b{display:block;font-size:24px;color:var(--cyan);line-height:1}.day-date span{font-size:10px;color:#9caece;text-transform:uppercase}.day-detail{flex:1;min-width:0}.day-detail strong{font-size:14px}.day-detail p{font-size:11px;color:var(--muted);line-height:1.45;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.day-sum{text-align:right}.day-sum b{font-size:16px}.day-sum span{display:block;font-size:10px;color:var(--orange);margin-top:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.help-note{color:#91a9c5;font-size:12px;line-height:1.6;margin-top:10px}.callout{border:1px solid #3f5e6e;border-radius:14px;background:rgba(73,221,241,.05);padding:14px 16px;font-size:12px;color:#b9d7e3;line-height:1.6}.warning{border-color:#7b5a30;background:rgba(255,189,105,.07);color:#f6d6a8}.reports-table{width:100%;border-collapse:collapse}.reports-table th{text-align:left;font-size:11px;color:#8ca1bf;font-weight:700;border-bottom:1px solid #354764;padding:11px 8px}.reports-table td{font-size:12px;padding:11px 8px;border-bottom:1px solid #263951}.reports-table .numeric{text-align:right;white-space:nowrap}.report-scroll{overflow:auto}.report-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:17px}.report-heading h2{font-size:17px;margin:0}.report-total{background:#1d344a;border:1px solid #325468;border-radius:13px;padding:14px 16px;display:flex;gap:15px;justify-content:space-around;margin-top:16px;flex-wrap:wrap}.report-total span{color:#96b1c7;font-size:11px;display:block}.report-total strong{display:block;font-size:19px;color:var(--cyan);margin-top:5px}.modal-host{position:fixed;inset:0;z-index:100;background:rgba(1,6,17,.76);backdrop-filter:blur(7px);display:flex;align-items:flex-end;justify-content:center;padding:14px}.modal-host[hidden]{display:none}.modal-card{width:min(660px,100%);max-height:min(91dvh,900px);overflow:auto;background:#0e182a;border:1px solid #3a5070;border-radius:24px;box-shadow:0 18px 100px #0009;padding:20px 18px calc(18px + env(safe-area-inset-bottom));scrollbar-width:thin}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.modal-head h2{margin:0;font-size:21px}.modal-actions{display:flex;justify-content:space-between;align-items:center;gap:8px}.toast{position:fixed;left:50%;bottom:105px;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;z-index:250;transition:.2s;background:#dcfff2;color:#04362e;border-radius:50px;padding:12px 19px;font-size:12px;font-weight:760;max-width:90vw;white-space:normal;text-align:center;box-shadow:0 14px 45px #0007}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.desktop-hide{display:none}.print-only{display:none}.smallmuted{font-size:11px;color:var(--muted)}
@media(min-width:1000px){.mobile-form-proxy{display:none}}
@media(max-width:940px){.side-nav{display:none}.wordmark{display:flex;align-items:center}.top-bar{height:65px;padding:10px 18px}.main-content{padding:23px 17px 115px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));padding:6px 10px calc(6px + env(safe-area-inset-bottom));z-index:40;background:rgba(11,20,38,.95);border-top:1px solid #2b3d57;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;backdrop-filter:blur(15px)}.mobile-tab{background:transparent;border:0;color:#8fa7c3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:730}.mobile-tab span{font-size:22px;line-height:1}.mobile-tab small{font-size:10px}.mobile-tab.active{color:var(--cyan)}.mobile-add{background:linear-gradient(135deg,#5be9ef,#518dff);color:#062138;border:0;border-radius:17px;font-size:33px;font-weight:350;width:54px;height:54px;justify-self:center;transform:translateY(-19px);box-shadow:0 10px 23px #0006}.desktop-hide{display:block}.section-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.top-right{display:none}.page-intro{align-items:stretch;flex-direction:column;margin-bottom:19px}.page-intro h1{font-size:29px}.page-intro .actions .btn{flex:1}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:15px 14px;min-height:116px;border-radius:16px}.stat-value{font-size:29px;margin-top:15px}.stat-label{font-size:11px}.section-grid,.settings-grid{grid-template-columns:1fr}.panel{padding:16px;border-radius:16px}.segment{padding:13px}.segment .times{gap:6px}.segment .times .control{padding:10px 5px;font-size:13px}.segment .times .field label{font-size:10px}.form-grid{gap:10px}.day-row{gap:10px;padding:12px}.day-sum b{font-size:14px}.report-heading{flex-direction:column;align-items:stretch}.report-heading .actions{display:grid;grid-template-columns:1fr 1fr}.modal-host{padding:0}.modal-card{border-radius:22px 22px 0 0;max-height:95dvh}.form-footer .btn{flex:1}}
@media print{@page{size:A4 portrait;margin:12mm}body,html{background:#fff!important;color:#111!important}body{font-family:Arial,sans-serif;font-size:10pt}.side-nav,.top-bar,.mobile-nav,.page-intro,.no-print,.btn,.section-title .mini-link,.toast,.modal-host{display:none!important}.app-shell,.page-column,.main-content{padding:0!important;margin:0!important;max-width:100%!important;width:100%!important;min-height:auto!important;background:#fff!important}.main-content>*:not(.print-report){display:none!important}.main-content>.print-report{display:block!important}.print-only{display:block!important}.panel,.report-scroll{box-shadow:none!important;border:0!important;background:#fff!important;color:#111!important;padding:0!important;overflow:visible!important}.report-heading h2{color:#111!important;font-size:17pt}.reports-table{width:100%;border-collapse:collapse}.reports-table th,.reports-table td{color:#111!important;font-size:9pt;border:1px solid #999!important;padding:5px 6px}.report-total{background:#fff!important;border:1px solid #999!important;color:#111!important}.report-total strong{color:#111!important}.report-total span{color:#444!important}.help-note,.callout{display:none}.print-footer{margin-top:18px;color:#555;font-size:8pt}.reports-table tr{break-inside:avoid}}
