:root{--bg: #f3f6f4;--panel: #ffffff;--text: #0f172a;--muted: #5b6b76;--brand: #0a5f39;--brand-600: #0a5f39;--border: #e1e7ea;--timeline-label-width: 200px;--timeline-score-width: 60px;--timeline-row-height: 18px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial}.page{min-height:100%}.app{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.main{padding:0;display:flex;flex-direction:column;min-height:100vh}.content{max-width:100%;margin:8px 0 0;padding:0 8px;width:100%;display:flex;flex-direction:column;flex:1}.sidebar{background:#fff;border-right:1px solid var(--border);padding:20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.side-title{font-weight:900;color:var(--brand);margin-bottom:16px;font-size:20px}.side-nav{display:flex;flex-direction:column;gap:8px}.side-nav a{color:var(--brand-600);text-decoration:none;opacity:.95;padding:10px 15px;border-radius:10px;border:1px solid transparent}.side-nav a:hover{opacity:1;background:#f1f7f3;border-color:var(--border)}.side-nav a.active{background:#e7f3ec;border-color:#cfe7da}.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--panel);border-bottom:1px solid var(--border)}.brand{font-weight:800;color:var(--brand)}.nav a{color:var(--brand-600);text-decoration:none;margin-left:12px;opacity:.9}.nav a:hover{opacity:1}.panel{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:12px;box-shadow:0 2px 12px #0000000d;display:flex;flex-direction:column;height:calc(100vh - 140px);min-height:0;margin-left:0;margin-bottom:0}.panel-full{height:calc(100vh - 20px);min-height:calc(100vh - 60px);margin-left:0;margin-bottom:0}.panel-inner{height:calc(100vh - 100px);min-height:0}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.content>.panel-header{justify-content:center;gap:24px;padding:20px 20px 5px}.content>.panel-header h3{margin:0;flex:0 0 auto}.content>.panel-header .controls{flex:0 0 auto;margin-left:auto}.panel-scroll{overflow:auto;flex:1;min-height:0;height:100%}.panel-grid{display:grid;grid-template-columns:230px 1fr;gap:6px}.controls{display:flex;align-items:center;flex-wrap:nowrap}.controls label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.controls input{background:#fff;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px}.btn{background:var(--brand);color:#fff;border:1px solid var(--brand-600);border-radius:8px;padding:8px 12px;cursor:pointer}.btn:hover{background:var(--brand-600)}.status{color:var(--muted);margin:8px 0 12px}.status-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.list-item{padding:8px 10px;border-radius:8px;cursor:pointer;color:var(--text)}.list-item:hover{background:#f1f7f3}.list-item.active{background:#e7f3ec;border:1px solid #cfe7da;font-weight:700}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table th,.table td{border-bottom:1px solid var(--border);padding:8px 10px;text-align:left;font-size:14px;word-break:break-word;overflow-wrap:anywhere}.table th{color:var(--muted);font-weight:600;background:#fafdfb}.seg-toggle{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}.seg-toggle.seg-full{display:flex;width:100%}.seg-toggle.seg-full button{flex:1;text-align:center}.seg-toggle button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;padding:6px 10px;color:var(--muted);cursor:pointer;font-size:13px}.seg-toggle button.on{background:#e7f3ec;color:var(--brand-600)}.seg-toggle button:not(.on):hover{background:#f6fbf8}.timeline-wrap{display:flex;flex-direction:column;gap:0}.timeline-scale-row{display:grid;grid-template-columns:var(--timeline-label-width) var(--timeline-score-width) 1fr;align-items:flex-end;column-gap:4px;margin-bottom:4px}.name-spacer{height:var(--timeline-row-height)}.user-name{height:16px;line-height:16px;margin:6px 0;color:var(--text);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center}.user-name .name-fit{display:inline-block;max-width:100%}.timeline-row .user-name{font-size:14px;font-weight:600;line-height:var(--timeline-row-height);height:var(--timeline-row-height);margin:0;display:flex;align-items:center}.timeline-score{font-size:13px;font-weight:500;line-height:var(--timeline-row-height);height:var(--timeline-row-height);margin:0;display:flex;align-items:center;justify-content:flex-end;color:var(--muted);text-align:right;padding-right:8px}.timeline-container{max-width:none;width:100%;margin:0;display:flex;flex-direction:column;flex:1;min-height:0}.timeline{position:relative;margin-top:0;display:flex;flex-direction:column;flex:1;min-height:0}.timeline-scale{position:relative;height:16px;margin-left:0;margin-bottom:2px}.timeline-scale .tick{position:absolute;top:0;transform:translate(-50%);font-size:11px;color:var(--muted)}.timeline-grid{position:relative;border:1px solid var(--border);border-radius:8px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;height:100%;background:#fff;box-shadow:0 1px 3px #0000000d}.timeline-grid::-webkit-scrollbar{width:8px;height:8px}.timeline-grid::-webkit-scrollbar-track{background:transparent}.timeline-grid::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.timeline-grid::-webkit-scrollbar-thumb:hover{background:#94a3b8}.timeline-rows{position:relative;z-index:1;display:flex;flex-direction:column}.timeline-grid .grid-band-layer,.timeline-overlay{position:absolute;top:0;left:calc(var(--timeline-label-width) + var(--timeline-score-width) + 8px);width:calc(100% - var(--timeline-label-width) - var(--timeline-score-width) - 8px);height:100%;pointer-events:none}.timeline-grid .grid-band-layer{z-index:0}.timeline-overlay{z-index:2}.timeline-grid .grid-band{position:absolute;top:0;bottom:0;width:calc(100% / 24);border-right:1px dashed rgba(0,0,0,.03)}.timeline-grid .grid-band.a{background:#fff}.timeline-grid .grid-band.b{background:#fcfcfc}.timeline-grid .grid-band:nth-child(n){left:calc((var(--i, 0)) * (100% / 24))}.timeline-grid .timeline-row{position:relative}.timeline-row{display:grid;grid-template-columns:var(--timeline-label-width) var(--timeline-score-width) 1fr;align-items:center;gap:4px;padding:6px 12px;border-bottom:1px solid #f1f5f9;transition:background-color .15s ease}.timeline-row:nth-child(2n){background-color:#fafafa}.timeline-row:hover{background-color:#f0f9ff!important}.timeline-score{font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.01em;color:#475569}.timeline-row+.timeline-row{border-top:1px solid rgba(15,23,42,.05)}.bar{display:grid;grid-template-columns:repeat(1440,1fr);gap:0;height:var(--timeline-row-height);width:100%;border:none;border-radius:6px;overflow:hidden;background:transparent;position:relative}.seg{display:block;height:100%;background:#0b1220}.seg.low{background:#dc3545}.seg.mid{background:#ffc107}.seg.high{background:#198754}.seg.none{background:transparent}.seg.muted{background:#0a1020}.selection{position:absolute;top:0;height:100%;background:#0e7a491f;border:1px solid rgba(14,122,73,.5);pointer-events:none}.timeline-actions{margin-top:8px}.timeline-full-width .timeline-scale-row,.timeline-full-width .timeline-row{grid-template-columns:1fr;padding-left:0;gap:0}.timeline-full-width .timeline-grid .grid-band-layer,.timeline-full-width .timeline-overlay{left:0;width:100%}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000}.lightbox-inner{position:relative;width:100vw;height:100vh;max-width:100vw;max-height:100vh;display:flex;align-items:center;justify-content:center}.lightbox-stage{position:relative;background:#000;border-radius:8px;border:1px solid var(--border);width:100%;height:100%;overflow:hidden;cursor:grab}.lightbox-stage:active{cursor:grabbing}.lightbox-stage img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1);transform-origin:center center;max-width:none;max-height:none}.lightbox-btn{position:absolute;top:50%;transform:translateY(-50%);background:#ffffff1a;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:22px}.lightbox-btn:hover{background:#fff3}.lightbox-btn.prev{left:-52px}.lightbox-btn.next{right:-52px}.lightbox-close{position:absolute;top:-52px;right:-52px;background:#ffffff1a;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:18px}.lightbox-close:hover{background:#fff3}.lightbox-zoom{position:absolute;bottom:-52px;left:0;display:flex;gap:8px}.lightbox-zoom .btn{padding:6px 10px}.cal{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--panel)}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.cal-title{font-weight:600}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.cal-wk{font-size:12px;color:var(--muted);text-align:center}.day{height:34px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--border);background:#fff;cursor:pointer}.day.empty{background:transparent;border:none;cursor:default}.day.in-range{background:#e7f7ee;border-color:#c6ead8}.day.start,.day.end{background:#cfeedd;border-color:#98d2b6;font-weight:700}.popover{background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:0 6px 24px #0000001f;padding:8px}.login-page{display:flex;justify-content:center;align-items:center;min-height:100vh;background:var(--bg);padding:20px}.login-container{background:var(--panel);border-radius:16px;box-shadow:0 4px 24px #0000001a;padding:40px;width:100%;max-width:400px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{color:var(--brand);font-size:28px;font-weight:700;margin:0 0 8px}.login-header p{color:var(--muted);font-size:14px;margin:0}.login-form{display:flex;flex-direction:column;gap:20px}.login-error{background:#fee;color:#c33;padding:12px;border-radius:8px;font-size:14px;border:1px solid #fcc}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:500;color:var(--text)}.form-group input{padding:12px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:inherit;background:var(--panel);color:var(--text);transition:border-color .2s}.form-group input:focus{outline:none;border-color:var(--brand)}.login-button{padding:12px;background:var(--brand);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:background .2s;margin-top:8px}.login-button:hover:not(:disabled){background:#084d2e}.login-button:disabled{opacity:.6;cursor:not-allowed}.sidebar-footer{margin-top:auto;padding-top:20px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:12px}.user-info{padding:8px 12px}.user-name{font-size:14px;font-weight:500;color:var(--text)}.logout-button{padding:10px 15px;background:transparent;color:var(--brand);border:1px solid var(--border);border-radius:10px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;width:100%}.logout-button:hover{background:#f1f7f3;border-color:var(--brand)}.panel-split-view{display:flex;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden;height:calc(100vh - 100px)}.panel-sidebar{padding:0;display:flex;flex-direction:column;width:260px;flex-shrink:0;background-color:var(--panel);border:none;border-right:1px solid var(--border)}.panel-main-content{flex:1;padding:0;display:flex;flex-direction:column;background-color:#f3f6f4;overflow:hidden;min-width:0;border:none}.split-content{display:flex;flex:1;min-height:0;overflow:hidden}.log-feed{flex:1;display:flex;flex-direction:column;background-color:var(--panel);overflow:hidden;min-width:0}.summary-panel{width:260px;display:flex;flex-direction:column;background-color:var(--bg);border-left:1px solid var(--border);flex-shrink:0}
