*{box-sizing:border-box}body{margin:0;font-family:system-ui,sans-serif;background:#f5f6fa;color:#1f2430}header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#1f2430;color:#fff}header button{margin-left:12px}main{padding:20px}button{cursor:pointer;padding:6px 12px;border:0;border-radius:6px;background:#4f46e5;color:#fff}button.ghost{background:#e5e7eb;color:#1f2430}input,select,textarea{padding:6px 8px;border:1px solid #cbd0dc;border-radius:6px;font:inherit}.toolbar{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.card{background:#fff;padding:16px;border-radius:10px;margin-bottom:14px}.form{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:13px}th,td{padding:8px;border-bottom:1px solid #eceef4;text-align:left;vertical-align:top}th{background:#eef0f6}.center{display:grid;place-items:center;height:100vh;text-align:center}.err{color:#b91c1c}.who{font-size:13px}.tabs{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}.tabs button.on{background:#4f46e5}.badge{background:#ef4444;color:#fff;border-radius:10px;padding:0 7px;margin-left:4px;font-size:12px}.hint{margin:0 0 12px;font-size:14px}.toolbar label{display:flex;align-items:center;gap:4px;font-size:13px}.muted{color:#6b7280;font-size:13px;align-self:center}.small{font-size:12px}.center-text{text-align:center}button.sm{padding:2px 8px;font-size:12px;margin-left:6px}button:disabled{opacity:.6;cursor:default}tr.late{background:#fff5f5}a{color:#4f46e5}.modal{position:fixed;inset:0;background:#00000073;display:grid;place-items:center;z-index:10;padding:12px}.sheet{background:#fff;width:100%;max-width:480px;max-height:85vh;border-radius:12px;display:flex;flex-direction:column}.sheet-h{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #eceef4}.sheet-b{padding:12px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:8px}.bub{max-width:85%;padding:8px 10px;border-radius:10px;white-space:pre-wrap;word-break:break-word}.bub.in{background:#eef0f6;align-self:flex-start}.bub.out{background:#dcfce7;align-self:flex-end}.hide{display:none}.lcard{background:#fff;border-radius:12px;padding:12px;margin-bottom:12px;box-shadow:0 1px 3px #00000014;display:flex;flex-direction:column;gap:8px}.lcard.late{background:#fff5f5;border-left:4px solid #ef4444}.lc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.lc-top select{max-width:48%}.lc-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn-link{display:inline-block;padding:8px 12px;background:#e0e7ff;border-radius:8px;text-decoration:none;font-weight:600}.lc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lcard label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#6b7280}.lcard label.chk{flex-direction:row;align-items:center;gap:6px;color:#1f2430;font-size:14px}.lcard input:not([type=checkbox]),.lcard select{width:100%;min-width:0;font-size:16px;padding:8px}.lc-more{display:flex;flex-direction:column;gap:6px}.lcard button.sm{align-self:flex-start}@media(max-width:800px){header{padding:10px 12px;position:sticky;top:0;z-index:5}.who{display:flex;align-items:center;gap:6px;font-size:11px;overflow:hidden}.who button{white-space:nowrap;margin-left:6px}main{padding:10px}.tabs button{flex:1 1 auto;padding:10px 8px}.toolbar{gap:8px}.toolbar>*{flex:1 1 130px;min-width:0}.toolbar input,.toolbar select{font-size:16px;padding:9px}.toolbar label{flex:1 1 130px;flex-direction:column;align-items:stretch}.form{grid-template-columns:1fr}.form input{font-size:16px;padding:9px}.modal{padding:0;align-items:end}.sheet{max-width:none;max-height:90vh;border-radius:14px 14px 0 0}}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body{max-width:100%;overflow-x:hidden}.lc-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lcard,.lcard>*,.lc-grid>*,.lc-top>*{min-width:0;max-width:100%}.lcard label{min-width:0}.lc-name{flex:1;min-width:0;overflow-wrap:anywhere}.lcard input[type=date]{-webkit-appearance:none;appearance:none;min-height:40px}.pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:16px 0;flex-wrap:wrap}.lcard.tone-green{background:#ecfdf5;border-left:5px solid #10b981}.lcard.tone-red{background:#fef2f2;border-left:5px solid #ef4444}.lcard.tone-grey{background:#f3f4f6;border-left:5px solid #9ca3af;color:#4b5563;opacity:.88}.lcard.tone-amber{background:#fffbeb;border-left:5px solid #f59e0b}.lcard.tone-blue{background:#eff6ff;border-left:5px solid #3b82f6}tr.tone-green{background:#ecfdf5}tr.tone-green td:first-child{box-shadow:inset 4px 0 #10b981}tr.tone-red{background:#fef2f2}tr.tone-red td:first-child{box-shadow:inset 4px 0 #ef4444}tr.tone-grey{background:#f3f4f6;color:#6b7280}tr.tone-grey td:first-child{box-shadow:inset 4px 0 #9ca3af}tr.tone-amber{background:#fffbeb}tr.tone-amber td:first-child{box-shadow:inset 4px 0 #f59e0b}tr.tone-blue{background:#eff6ff}tr.tone-blue td:first-child{box-shadow:inset 4px 0 #3b82f6}select.pill-green{background:#d1fae5;color:#065f46;border-color:#10b981;font-weight:600}select.pill-grey{background:#e5e7eb;color:#374151;border-color:#9ca3af;font-weight:600}select.pill-amber{background:#fef3c7;color:#92400e;border-color:#f59e0b;font-weight:600}select.pill-blue{background:#dbeafe;color:#1e40af;border-color:#3b82f6;font-weight:600}select.pill-purple{background:#ede9fe;color:#5b21b6;border-color:#8b5cf6;font-weight:600}select.pill-new{background:#fff;color:#1f2430;font-weight:600}@media(max-width:800px){header{gap:8px}header b{white-space:nowrap}.who{min-width:0;flex:1;justify-content:flex-end}.who{font-size:11px}.toolbar>*{flex:1 1 120px;max-width:100%}.toolbar input[type=date],.toolbar select,.toolbar input{width:100%}}
