:root{--bg:#f5f6f8;--surface:#fff;--border:#dfe3e8;--text:#1f2933;--muted:#6b7785;--primary:#2f5d8a;--primary-text:#fff;--sidebar-bg:#1f2d3d;--sidebar-text:#c9d3de;--error:#b42318;--error-bg:#fdecea;--info-bg:#1f2d3d}*{box-sizing:border-box}body{color:var(--text);background:var(--bg);margin:0;font-family:Malgun Gothic,Apple SD Gothic Neo,Segoe UI,system-ui,sans-serif;font-size:14px}h1{margin:0 0 16px;font-size:20px}.layout{min-height:100vh;display:flex}.sidebar{background:var(--sidebar-bg);width:220px;color:var(--sidebar-text);flex-shrink:0;padding:16px 0}.sidebar .brand{color:#fff;padding:0 20px 16px;font-size:16px;font-weight:700}.sidebar nav a{color:var(--sidebar-text);padding:10px 20px;text-decoration:none;display:block}.sidebar nav a:hover{background:#ffffff14}.sidebar nav a.active{color:#fff;background:#ffffff29;font-weight:600}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:16px;height:52px;padding:0 24px;display:flex}.topbar .spacer{flex:1}.lang-switch{color:var(--muted);align-items:center;gap:6px;display:flex}.user{color:var(--muted)}.content{padding:24px}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;border-radius:4px;padding:6px 14px}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.btn:disabled{opacity:.6;cursor:default}select,input{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:4px;padding:6px 8px}.login-wrap{justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:14px;width:360px;padding:32px;display:flex}.login-card h1{text-align:center;margin:0}.login-card h2{color:var(--muted);text-align:center;margin:0;font-size:15px;font-weight:400}.login-card label{color:var(--muted);flex-direction:column;gap:4px;display:flex}.form-error{background:var(--error-bg);color:var(--error);border-radius:4px;padding:8px 10px}.center-msg{text-align:center;color:var(--muted);padding:48px}.toast-host{z-index:1000;flex-direction:column;align-items:center;gap:8px;display:flex;position:fixed;top:12px;left:50%;transform:translate(-50%)}.toast{color:#fff;background:var(--info-bg);border-radius:6px;padding:10px 18px;box-shadow:0 2px 8px #0003}.toast-error{background:var(--error)}.muted{color:var(--muted)}.page-head{align-items:center;gap:12px;margin-bottom:12px;display:flex}.page-head h1{margin:0}.page-head .spacer{flex:1}.seg{border:1px solid var(--border);border-radius:4px;display:inline-flex;overflow:hidden}.seg button{background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border:0;padding:6px 14px}.seg button.active{background:var(--primary);color:var(--primary-text)}.filters{background:var(--surface);border:1px solid var(--border);border-radius:6px;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px;padding:12px;display:flex}.filters label{color:var(--muted);flex-direction:column;gap:4px;display:flex}.filters label.grow{flex:1;min-width:200px}.filters label.check{flex-direction:row;align-items:center;gap:6px;padding-bottom:6px}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:6px;overflow-x:auto}.data-table{border-collapse:collapse;white-space:nowrap;width:100%}.data-table th,.data-table td{border-bottom:1px solid var(--border);text-align:left;padding:8px 10px}.data-table th{background:#eef1f5;font-weight:600;position:sticky;top:0}.data-table .num{text-align:right}.data-table tr.clickable{cursor:pointer}.data-table tr.clickable:hover td{filter:brightness(.97)}.data-table td.code{font-weight:600}.data-table td.note{text-overflow:ellipsis;max-width:240px;overflow:hidden}.stage-cell{font-variant-numeric:tabular-nums;text-align:center!important}.stage-done{color:#14532d;background:#d9f2df}.stage-upcoming{color:#713f12;background:#fdf3c4}.stage-late{color:#991b1b;background:#fbd5d1}.stage-none{color:#8895a3;background:#eceff2}.badge{color:var(--muted);background:#e5e7eb;border-radius:8px;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:400}.status{background:#e5e7eb;border-radius:10px;padding:2px 8px;font-size:12px}.status-ordered{color:#1e40af;background:#dbeafe}.status-done{color:#14532d;background:#d9f2df}.status-canceled{color:#991b1b;background:#fbd5d1}.kanban{grid-template-columns:repeat(8,minmax(180px,1fr));align-items:start;gap:10px;display:grid;overflow-x:auto}.kanban-col{background:#eceff3;border-radius:6px;min-height:120px;padding:8px}.kanban-col h3{justify-content:space-between;margin:0 0 8px;font-size:13px;display:flex}.kanban-col .count{color:var(--muted);font-weight:400}.kanban-card{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:4px;flex-direction:column;gap:2px;margin-bottom:8px;padding:8px 10px;display:flex}.kanban-card:hover,.kanban-card:focus{border-color:var(--primary);outline:none}.kanban-card .code{font-size:12px;font-weight:600}.kanban-card .cust{font-weight:600}.kanban-card .owner{color:var(--muted);font-size:12px}.modal-backdrop{z-index:900;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:8px;flex-direction:column;gap:12px;width:560px;max-width:94vw;max-height:92vh;padding:24px;display:flex;overflow-y:auto}.modal h2{margin:0;font-size:18px}.modal label{color:var(--muted);flex-direction:column;flex:1;gap:4px;display:flex}.modal .row{gap:12px;display:flex}.modal-actions{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.field-error{color:var(--error);font-size:12px}.detail{flex-direction:column;gap:16px;max-width:1200px;display:flex}.detail>p{margin:0}.panel{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:16px}.panel h2{margin:0 0 12px;font-size:16px}.btn.danger{color:var(--error);border-color:var(--error)}.info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;margin:0;display:grid}.info-grid dt{color:var(--muted);margin-bottom:2px;font-size:12px}.info-grid dd{word-break:break-word;margin:0;font-weight:600}.header-form{flex-direction:column;gap:12px;display:flex}.header-form .row{gap:12px;display:flex}.header-form label,.inline-form label{color:var(--muted);flex-direction:column;flex:1;gap:4px;display:flex}.inline-form{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:12px;display:flex}.inline-form label{flex:0 auto}.inline-form label.grow{flex:1;min-width:200px}.timeline{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.timeline-step{font:inherit;text-align:left;cursor:pointer;border:2px solid #0000;border-radius:6px;flex-direction:column;gap:2px;padding:10px;display:flex}.timeline-step:disabled{cursor:default}.timeline-step.selected{border-color:var(--primary)}.timeline-step span{font-variant-numeric:tabular-nums;font-size:12px}.conflict{border:1px solid var(--error);background:var(--error-bg);border-radius:6px;margin-top:12px;padding:12px}.conflict h3{color:var(--error);margin:0 0 8px;font-size:14px}.conflict .data-table{background:var(--surface)}.margin-line{gap:24px;margin:12px 0 0;display:flex}.note-form{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.note-form textarea{font:inherit;border:1px solid var(--border);resize:vertical;border-radius:4px;padding:8px}.feed{margin:0;padding:0;list-style:none}.feed li{border-bottom:1px solid var(--border);padding:10px 0}.feed-meta{gap:8px;margin-bottom:2px;font-size:12px;display:flex}.feed-change{font-size:13px}.note-body{white-space:pre-wrap;word-break:break-word}.feed-thumb{border:1px solid var(--border);border-radius:4px;max-width:240px;max-height:180px;margin-top:6px;display:block}.home-page{flex-direction:column;gap:16px;max-width:1100px;display:flex}.task-group h2{margin:12px 0 6px;font-size:14px}.task-group:first-child h2{margin-top:0}.task-group-late h2{color:var(--error)}.task-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.task-item{border:1px solid var(--border);background:var(--surface);border-radius:4px;align-items:flex-start;gap:8px;padding:8px 10px;display:flex}.task-item.late{background:var(--error-bg);border-color:#f0b4ad}.task-item.late .task-due,.task-item.late .task-title{color:var(--error)}.task-item.is-done .task-title{color:var(--muted);text-decoration:line-through}.task-check{margin-top:3px}.task-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.task-title{overflow-wrap:anywhere;font-weight:600}.task-project{color:var(--primary);overflow-wrap:anywhere;font-size:12px;text-decoration:none}.task-project:hover{text-decoration:underline}.task-due{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px}.board-page{flex-direction:column;gap:12px;display:flex}.board{align-items:flex-start;gap:10px;padding-bottom:8px;display:flex;overflow-x:auto}.board-col{background:#eceff3;border-radius:6px;flex:0 0 260px;padding:8px}.board-col h3{align-items:center;gap:4px;margin:0 0 8px;font-size:13px;display:flex}.board-col h3 .count{color:var(--muted);margin-left:auto;font-weight:400}.inline-field{align-items:center;gap:6px;display:flex}.dashboard-page{flex-direction:column;gap:12px;max-width:1100px;display:flex}.dashboard-page h2{margin:8px 0 0;font-size:15px}.dashboard-page h3{margin:0 0 6px;font-size:13px}.stat-cards{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:12px 14px}.stat-value{margin-top:4px;font-size:22px;font-weight:700}.late-grid{grid-template-columns:1fr 1fr;align-items:start;gap:16px;display:grid}.late-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.late-list li{background:var(--error-bg);border:1px solid #f0b4ad;border-radius:4px;flex-wrap:wrap;gap:4px 10px;padding:8px 10px;display:flex}.late-list a{color:var(--primary);overflow-wrap:anywhere;font-weight:600;text-decoration:none}.late-date{color:var(--error);margin-left:auto}.data-table select{font:inherit;padding:3px 6px}.modal select,.modal input{font:inherit;border:1px solid var(--border);border-radius:4px;padding:6px 8px}.help-page{max-width:760px}.help-page .help-role{margin-bottom:12px}.help-page .help-role ul{margin:0;padding-left:20px;line-height:1.7}.help-page .help-role.current{border-color:var(--primary,#2563eb)}.help-page .help-others{color:var(--muted);margin:20px 0 8px;font-size:14px}.help-page summary{cursor:pointer;font-weight:600}.help-page details[open] summary{margin-bottom:8px}
