:root{--bg:#f5f6f8;--surface:#fff;--text:#1c1f24;--muted:#6b7280;--primary:#1f5fbf;--primary-contrast:#fff;--danger:#b42318;--border:#e3e6ea;--hover:#eef2f7;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121417;--surface:#1b1f24;--text:#e8eaed;--muted:#9aa3ad;--primary:#5b9bff;--primary-contrast:#0b1220;--border:#2b3138;--hover:#232930;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#121417;--surface:#1b1f24;--text:#e8eaed;--muted:#9aa3ad;--primary:#5b9bff;--primary-contrast:#0b1220;--border:#2b3138;--hover:#232930;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0 0 .5rem}h2{font-size:1.35rem}h3{font-size:1.05rem}.muted{color:var(--muted)}.small{font-size:.82rem}.error{color:var(--danger)}.row{align-items:center;gap:8px;display:flex}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{flex-direction:column;gap:14px;display:flex}.grid{gap:14px;display:grid}.grid.two{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.grid.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.grid.detail{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}@media (width<=900px){.grid.detail{grid-template-columns:1fr}}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;min-width:0;padding:1rem}.stat .stat-value{font-size:1.9rem;font-weight:700;line-height:1.1}.hero{font-size:1.6rem;font-weight:800}.badge{border:1px solid var(--border);color:var(--muted);white-space:nowrap;border-radius:6px;align-items:center;padding:.15rem .5rem;font-size:.75rem;display:inline-flex}.dot{border-radius:4px;width:8px;height:8px;margin-left:4px;display:inline-block}input,select,textarea{border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;border-radius:6px;width:100%;padding:.5rem .65rem}label{flex-direction:column;gap:4px;font-size:.9rem;display:flex}label.row{flex-direction:row;align-items:center}label.row input{width:auto}button,.button{border:1px solid var(--primary);background:var(--primary);color:var(--primary-contrast);font:inherit;cursor:pointer;border-radius:6px;align-items:center;gap:6px;padding:.55rem 1rem;text-decoration:none;display:inline-flex}button:hover,.button:hover{filter:brightness(1.08);text-decoration:none}button:disabled{opacity:.55;cursor:default}button.secondary,.button.secondary{background:var(--surface);color:var(--primary);border-color:var(--border)}button.danger{background:var(--danger);border-color:var(--danger);color:#fff}button.ghost,.button.ghost{color:var(--primary);background:0 0;border-color:#0000;padding:.3rem .5rem}button.link{color:inherit;cursor:pointer;background:0 0;border:none;padding:0;font-weight:600}.small-btn{padding:.3rem .7rem;font-size:.85rem}.date-input{width:100%;min-width:0;font-size:inherit;align-items:stretch;gap:4px;display:inline-flex;position:relative}.date-input input[type=text]{font-variant-numeric:tabular-nums;flex:auto;width:100%;min-width:0}.date-input .date-pick{flex:none;padding:.3rem .5rem;line-height:1}.date-input .date-native{opacity:0;pointer-events:none;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;bottom:0;right:0}.date-input.invalid input[type=text]{border-color:var(--danger);outline-color:var(--danger)}label.row .date-input,label.row .date-input input{width:auto}.date-list{flex-direction:column;gap:6px;display:flex}.mono{word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem}.date-list .row .date-input{flex:200px}.table-wrap{overflow-x:auto}.table{border-collapse:collapse;width:100%;font-size:.92rem}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.55rem .5rem}.table th{color:var(--muted);text-transform:uppercase;letter-spacing:.02em;font-size:.8rem;font-weight:600}.table.compact th,.table.compact td{padding:.35rem .4rem}.table .num{text-align:right;white-space:nowrap}.table tbody tr:hover{background:var(--hover)}.bar{vertical-align:middle;border-radius:4px;max-width:80px;height:8px;margin-right:6px;display:inline-block}.dl{grid-template-columns:max-content 1fr;gap:4px 14px;margin:0;font-size:.9rem;display:grid}.dl>div{display:contents}.dl dt{color:var(--muted)}.dl dd{margin:0}.center{place-items:center;min-height:100vh;padding:1rem;display:grid}.card.login{gap:.75rem;width:min(100%,380px);display:grid}.shell{min-height:100vh;display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:1rem;width:240px;height:100vh;padding:1rem .75rem;display:flex;position:sticky;top:0}.sidebar .brand{flex-direction:column;padding:0 .5rem;display:flex}.sidebar nav{flex-direction:column;gap:2px;display:flex}.sidebar nav a{color:var(--text);border-radius:6px;padding:.5rem .75rem}.sidebar nav a:hover{background:var(--hover);text-decoration:none}.sidebar nav a.active{background:var(--primary);color:var(--primary-contrast)}.sidebar-footer{margin-top:auto;padding:0 .5rem}.content{flex:1;min-width:0}.topbar{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:.5rem;padding:.5rem 1rem;display:none}main{max-width:1400px;margin:0 auto;padding:1.25rem}@media (width<=800px){.sidebar{z-index:20;transition:left .2s;position:fixed;left:-260px}.sidebar.open{left:0}.topbar.mobile-only{display:flex}main{padding:.9rem}}.tabs{border-bottom:1px solid var(--border);gap:4px;display:flex}.tabs button{color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;padding:.6rem .9rem}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary)}.filters{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;display:grid}.preview{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;height:75vh}.thumbs{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.thumbs figure{flex-direction:column;gap:2px;width:110px;margin:0;display:flex}.thumb{object-fit:cover;border:1px solid var(--border);cursor:zoom-in;background:var(--border);border-radius:6px;width:110px;height:110px}.img-placeholder{background:var(--border);border-radius:6px;min-height:60px}.photo-group{border-top:1px solid var(--border);padding:6px 0}.signature{border-top:1px solid var(--border);flex-direction:column;gap:4px;padding:6px 0;display:flex}.signature img{border:1px solid var(--border);background:#fff;border-radius:6px}.modal-backdrop{z-index:50;background:#0000008c;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border-radius:10px;flex-direction:column;gap:10px;width:100%;max-height:90vh;padding:1rem;display:flex;overflow:auto}.fill{grid-template-columns:260px minmax(0,1fr);align-items:start;gap:14px;display:grid}@media (width<=900px){.fill{grid-template-columns:1fr}}.fill-nav{flex-direction:column;gap:4px;max-height:calc(100vh - 24px);display:flex;position:sticky;top:12px;overflow:auto}.nav-item{color:var(--text);text-align:left;background:0 0;border:none;border-radius:6px;justify-content:space-between;padding:.35rem .5rem;font-size:.88rem}.nav-item:hover{background:var(--hover)}.nav-item.active{background:var(--primary);color:var(--primary-contrast)}.nav-item.active .muted{color:var(--primary-contrast);opacity:.8}.progress{background:var(--border);border-radius:4px;height:8px;overflow:hidden}.progress div{background:var(--primary);height:100%}.question{flex-direction:column;gap:10px;display:flex}.options{gap:8px}.option{background:var(--surface);color:var(--text);border:2px solid var(--border);justify-content:center;min-width:120px;font-weight:600}.option.selected{color:#fff}.dropzone{border:1px dashed var(--border);border-radius:8px;padding:8px}.dropzone.drag{border-color:var(--primary);background:var(--hover)}.finding-row{background:var(--hover);border:1px solid var(--border);color:var(--text);text-align:left;justify-content:flex-start;padding:.4rem .6rem}.dropzone.big{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:2rem;display:flex}.warn-row td{background:#eda10014}.excel-preview table{border-collapse:collapse;font-size:.8rem}.excel-preview td{border:1px solid var(--border);white-space:pre-wrap;vertical-align:top;max-width:420px;padding:2px 6px}.bell{position:relative}.bell-count{color:#fff;text-align:center;background:#e34948;border-radius:10px;min-width:16px;padding:0 5px;font-size:.65rem;position:absolute;top:-2px;right:-2px}.bell-menu{z-index:30;flex-direction:column;gap:6px;width:320px;max-height:60vh;display:flex;position:absolute;bottom:44px;left:0;overflow:auto}.bell-item{border:none;border-top:1px solid var(--border);color:var(--text);text-align:left;background:0 0;border-radius:0;flex-direction:column;align-items:flex-start;gap:2px;padding:6px 4px;display:flex}.bell-item.unread{background:var(--hover)}.sidebar-search input{padding:.4rem .6rem;font-size:.88rem}.calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.cal-head{color:var(--muted);text-transform:uppercase;text-align:center;padding:4px;font-size:.75rem}.cal-day{border:1px solid var(--border);background:var(--surface);border-radius:6px;flex-direction:column;gap:2px;min-height:92px;padding:4px;display:flex}.cal-day.other{opacity:.45}.cal-day.today{border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}.cal-date{color:var(--muted);font-size:.75rem}.cal-chip{background:var(--hover);border:none;border-left:3px solid var(--primary);color:var(--text);text-align:left;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;width:100%;padding:2px 4px;font-size:.72rem;display:block;overflow:hidden}.cal-chip:hover{filter:none;background:var(--border)}.chip{border:1px solid var(--border);border-radius:16px;align-items:center;gap:6px;padding:2px 10px;font-size:.85rem;display:inline-flex}.chip.on{border-color:var(--primary);background:var(--hover)}.heatmap td.num{font-variant-numeric:tabular-nums;min-width:44px}@media (width<=800px){.cal-day{min-height:56px}.cal-chip{display:none}}.sidebar-toggle{z-index:25;background:var(--surface);border:1px solid var(--border);border-radius:50%;justify-content:center;width:28px;height:28px;padding:0;transition:left .2s;position:fixed;top:10px;left:248px}.shell.collapsed .sidebar{border:none;width:0;padding:0;overflow:hidden}.shell.collapsed .sidebar-toggle{left:10px}@media (width<=800px){.sidebar-toggle{display:none}.shell.collapsed .sidebar{width:240px;padding:1rem .75rem}}.template-cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;display:grid}.template-card{text-align:left;background:var(--surface);color:var(--text);border:2px solid var(--border);border-radius:10px;flex-direction:column;align-items:flex-start;gap:6px;min-height:120px;padding:.8rem;display:flex}.template-card:hover{border-color:var(--primary);filter:none}.template-card.selected{border-color:var(--primary);background:var(--hover)}.download-group-wrap{flex-direction:column;gap:4px;display:flex}.download-group{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;display:flex}.download-label{margin-right:4px;font-weight:700}.download-group button{color:var(--text);font-weight:600}.format-dot{border-radius:3px;flex:none;width:10px;height:10px;display:inline-block}.download-menu{flex-direction:column;align-items:flex-end;gap:2px;display:inline-flex}.download-menu-error{text-align:right;white-space:normal;max-width:200px}.download-menu-list{z-index:40;flex-direction:column;gap:2px;padding:4px;display:flex;position:fixed;box-shadow:0 8px 24px #0000002e}.download-menu-list .nav-item{width:100%;padding:.5rem .6rem;font-size:.92rem}.table td.row-actions{text-align:right;white-space:nowrap}@media (width<=600px){.download-group{grid-template-columns:1fr 1fr;display:grid}.download-label{grid-column:1/-1}.download-group button{justify-content:center}}.free-start-card{text-align:left;border:2px solid var(--primary);background:var(--hover);width:100%;color:var(--text);border-radius:10px;justify-content:flex-start;gap:12px;padding:1rem}.free-start-card:hover{filter:none;box-shadow:0 0 0 2px var(--primary) inset}.free-start-icon{font-size:1.8rem;line-height:1}.free-start-text{flex-direction:column;flex:auto;gap:2px;min-width:0;display:flex}.free-start-text b{font-size:1.05rem}.free-start-text .small{color:var(--muted)}.free-start-go{background:var(--primary);color:var(--primary-contrast);border-radius:6px;flex:none;padding:.45rem .8rem;font-weight:600}.free-page{flex-direction:column;gap:14px;max-width:900px;margin:0 auto;display:flex}.free-items{flex-direction:column;gap:12px;display:flex}.free-item{align-items:flex-start;gap:12px;display:flex}.free-item.readonly:not(.card){border-top:1px solid var(--border);padding:.75rem 0}.free-items .free-item.readonly:not(.card):first-child{border-top:none;padding-top:0}.free-item-side{flex-direction:column;flex:none;align-items:center;gap:6px;display:flex}.free-item-tools{flex-direction:column;align-items:center;gap:2px;display:flex}.free-item-tools button{justify-content:center;min-width:36px;min-height:36px;font-size:1rem}.free-item-tools .free-delete{color:var(--danger)}.free-no{background:var(--primary);width:46px;height:46px;color:var(--primary-contrast);font-variant-numeric:tabular-nums;border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:1.25rem;font-weight:800;display:inline-flex}.free-item-body{flex-direction:column;flex:auto;gap:10px;min-width:0;display:flex}.free-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.free-save{min-height:1.1em}.free-photos{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:8px;display:grid}.free-photo{margin:0;position:relative}.free-photo .thumb{aspect-ratio:1;width:100%;height:auto;display:block}.free-photo-delete{color:#fff;background:#000000a6;border-color:#0000;border-radius:50%;justify-content:center;width:28px;height:28px;padding:0;font-size:1.1rem;line-height:1;position:absolute;top:4px;right:4px}.free-bottom{z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:10px 10px 0 0;justify-content:flex-end;gap:8px;padding:10px 12px;display:flex;position:sticky;bottom:0;box-shadow:0 -4px 16px #00000014}.free-bottom button{justify-content:center}.free-finish-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}@media (width<=600px){.free-item{flex-direction:column}.free-item.readonly{flex-direction:row}.free-item-side{flex-direction:row;justify-content:space-between;width:100%}.free-item-tools{flex-direction:row}.free-item-body{width:100%}.free-photos{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}.free-photo-buttons{width:100%}.free-photo-buttons .button{flex:1 1 0;justify-content:center}.free-bottom{padding-bottom:calc(10px + env(safe-area-inset-bottom));flex-direction:column}.free-bottom button{width:100%}.free-finish-actions{flex-direction:column-reverse}.free-finish-actions button{justify-content:center;width:100%}.free-start-card{flex-wrap:wrap}.free-start-go{text-align:center;width:100%}}.banner{border:1px solid var(--border);border-left:4px solid var(--primary);background:var(--hover);border-radius:8px;margin:0;padding:.6rem .8rem;font-size:.9rem}.count-badge{color:#fff;font-variant-numeric:tabular-nums;background:#e34948;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.72rem;font-weight:700;display:inline-flex}.avatar{color:#fff;letter-spacing:.02em;-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:700;line-height:1;display:inline-flex}.collab-panel{flex-direction:column;gap:10px;display:flex}.collab-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.collab-actions{gap:6px}.collab-leave{color:var(--danger)}.live-indicator{color:#1d8a3a;align-items:center;gap:5px;font-size:.78rem;font-weight:600;display:inline-flex}.live-dot{background:#2fb344;border-radius:50%;width:8px;height:8px;animation:1.8s ease-out infinite live-pulse;box-shadow:0 0 #2fb34499}@keyframes live-pulse{0%{box-shadow:0 0 #2fb3448c}70%{box-shadow:0 0 0 7px #2fb34400}to{box-shadow:0 0 #2fb34400}}@media (prefers-reduced-motion:reduce){.live-dot{animation:none}}.collab-people{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.collab-person{border:1px solid var(--border);background:var(--bg);border-radius:999px;align-items:center;gap:8px;max-width:100%;padding:4px 10px 4px 4px;display:inline-flex}.collab-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.9rem;font-weight:600;overflow:hidden}.collab-email{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.collab-remove{width:24px;height:24px;color:var(--danger);border-radius:50%;justify-content:center;padding:0;font-size:1.05rem;line-height:1}.collab-requests,.collab-candidates{flex-direction:column;gap:6px;display:flex}.collab-candidates{max-height:50vh;overflow:auto}.collab-request{border:1px solid var(--border);background:var(--bg);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px;display:flex}.collab-request-actions{flex:none;gap:6px}.collab-rejected{flex-direction:column;gap:6px;display:flex}.collab-rejected summary{cursor:pointer}.collab-rejected .collab-request{margin-top:6px}.free-author{align-self:flex-end}.report-code{flex-wrap:wrap;align-items:center;gap:4px 6px;display:inline-flex}.join-card{border-left:4px solid #1d6f42}.join-list{flex-direction:column;display:flex}.join-row{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.join-main{flex-direction:column;gap:2px;min-width:0;display:flex}.join-title{overflow-wrap:anywhere}.join-actions{flex:none;justify-content:flex-end;gap:6px}.revise-points{flex-direction:column;gap:4px;margin:0;padding-left:1.2rem;display:flex}.download-area{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.logo-control{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 10px;display:flex}.logo-thumb{object-fit:contain;border:1px solid var(--border);background:#fff;border-radius:4px;width:auto;max-width:96px;height:34px;min-height:0;padding:2px}.img-placeholder.logo-thumb{width:60px}.logo-field{flex-direction:column;gap:4px;font-size:.9rem;display:flex}.logo-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.logo-preview{object-fit:contain;border:1px solid var(--border);background:#fff;border-radius:6px;width:150px;height:72px;min-height:0;padding:4px}.logo-preview.logo-empty{background:var(--bg);border-style:dashed;justify-content:center;align-items:center;display:inline-flex}.logo-buttons{gap:6px}.button.disabled{opacity:.55;pointer-events:none}@media (width<=600px){.collab-head{flex-direction:column;align-items:stretch}.collab-actions .small-btn{flex:1 1 0;justify-content:center}.collab-people{flex-direction:column}.collab-person{border-radius:10px;width:100%}.collab-person .collab-name{flex:auto}.collab-request{flex-direction:column;align-items:stretch}.collab-request-actions{width:100%}.collab-request-actions button,.collab-request>button{flex:1 1 0;justify-content:center}.join-row{flex-direction:column;align-items:stretch}.join-actions{justify-content:flex-start}.join-actions button{flex:auto;justify-content:center}.download-area{flex-direction:column;align-items:stretch}.logo-control{width:100%}.logo-preview{width:120px;height:60px}}
