:root{font-family:Pretendard,Apple SD Gothic Neo,Noto Sans KR,sans-serif;color:#1f2b2d;background:radial-gradient(circle at 10% 10%,#fff4da,#f5f9ff 38%,#e6effa);--card: #ffffffee;--line: #d3dde4;--text-subtle: #5c6d74;--brand: #62aa9e;--brand-soft: #ddf4f5;--danger: #0006c5}.text-error{color:#c00;font-size:.9rem;margin-top:.25rem}.entry-gate{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}.entry-gate-card{max-width:360px;width:100%;padding:2rem;display:flex;flex-direction:column;gap:1rem}.entry-gate-card h2{font-size:1.25rem;margin:0}.entry-gate-card p{margin:0;color:var(--text-subtle);font-size:.9rem}.entry-gate-card form{display:flex;flex-direction:column;gap:.5rem}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:inherit}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button{border:1px solid transparent;border-radius:10px;background:var(--brand);color:#fff;cursor:pointer;padding:.55rem .95rem;transition:transform .15s ease,opacity .15s ease}button:hover{transform:translateY(-1px)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button:disabled:hover{transform:none}button.secondary{background:#f2f6f8;border-color:#c4d2d9;color:#2b3b42}button.danger{background:#ffeceb;border-color:#f5c0bc;color:var(--danger)}input,select,textarea{border:1px solid #c3d1d8;border-radius:10px;background:#fff;padding:.55rem .65rem}textarea{min-height:6.5rem;resize:vertical}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 24px #6c94aa1a}.app-shell{max-width:1000px;margin:0 auto;padding:1.5rem;display:grid;gap:1rem}.app-header{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:end}.eyebrow{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:var(--brand);margin-bottom:.35rem}.app-header h1{font-size:clamp(1rem,2vw,1.6rem)}.header-buttons{display:flex;gap:.5rem;flex-shrink:0}.header-usage-btn{flex-shrink:0}.search-box{display:flex;align-items:center;gap:.5rem;min-width:min(20rem,100%)}.search-box span{font-size:.85rem;color:var(--text-subtle)}.search-box input{max-width:160px}.year-nav{padding:.85rem 0;display:flex;align-items:center;justify-content:space-between;background:none;border:0;box-shadow:none}.year-nav strong{font-size:1.8rem}.year-nav button{font-size:14px}.actions{padding:1rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:center}.actions h2{font-size:1rem}.actions p{margin-top:.35rem;color:var(--text-subtle);font-size:.9rem}.action-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.table-wrap{overflow:auto}table{width:100%;min-width:860px;border-collapse:collapse}th,td{height:30px;border-bottom:1px solid #dfe8ed;border-right:1px solid #dfe8ed;padding:0;text-align:center;vertical-align:middle;font-size:12px;word-break:keep-all}th:first-child,td:first-child{border-left:1px solid #dfe8ed}th{position:sticky;padding:.5rem;top:0;z-index:2;background:#f4fafc}.no-duty-row{background:#f8fafbcc}tr.week-passed td:not(.duty-td-restroom,.month-cell),td.duty-td-restroom.month-passed{background-color:#e1e1e1}tr.week-passed td:not(.duty-td-restroom,.month-cell) .duty-btn,td.duty-td-restroom.month-passed .duty-btn{background-color:#e1e1e1}.duty-td.empty-cell{background-color:#f2f2f2}.week-boundary-row td{border-top:2px solid #c2ced8}.month-first-row td{border-top:.2em solid #ccc}.month-cell{background:#e2f3e9;font-weight:700;color:#2f3a40;text-align:center;vertical-align:middle;min-width:36px}.date-cell{display:grid;gap:.25rem}.date-cell small{color:var(--text-subtle)}.date-cell-td{position:relative;padding:0 .25rem}.date-cell-inner{position:relative;display:inline-block;min-width:80px}.date-schedule-has-type .date-cell-inner span{font-weight:700}.date-schedule-giryeong .date-cell-inner span{color:#34a853}.date-schedule-giryeong-highlight{background-color:#d9ead3}.date-schedule-holiday .date-cell-inner span{color:#00f}.date-memo-popup{position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:4px;padding:.4rem .65rem;background:#f5f7f9;border:1px solid #333;border-radius:8px;font-size:.82rem;color:#222;font-weight:700;white-space:nowrap;box-shadow:0 2px 8px #0000001a;z-index:10;pointer-events:none}.week-detail-col{white-space:normal;min-width:60px}.week-detail-btn{padding:.38rem .68rem}.week-summary{font-size:.78rem;line-height:1.4;display:grid;gap:.15rem}.week-summary div:first-child{font-weight:700}.restroom-rowspan{vertical-align:middle}.duty-td-restroom .duty-cell{position:relative}.restroom-extra-badge{position:absolute;top:0;left:8px;font-size:12px;padding:1px 3px;color:#62aa9e;transform:translateY(180%)}.duty-cell{position:relative;display:flex;gap:.35rem;align-items:center}.duty-cell-team{justify-content:flex-start;align-items:center;padding-left:.5rem}.duty-cell-team:has(.dish-member-text){padding-left:0}.team-badge{display:inline-block;min-width:36px;padding:.15rem .48rem;border-radius:999px;background:#edf5ff;border:1px solid #c7dbf1;color:#264d78;font-size:.78rem;font-weight:700}.team-member-list{display:flex;gap:.32rem}.team-member-list:has(.dish-member-text){display:block;width:100%}.dish-member-btn{width:auto;padding:.3rem .52rem;font-size:.82rem}.dish-member-text{display:inline-block;padding:.3rem .52rem;color:#222;font-weight:700;font-size:.82rem}.duty-btn{width:100%;text-align:left;background:#fff;border:none;color:#19424d;padding:.35rem;font-size:14px;text-align:center}.duty-btn strong{color:#00f}.duty-btn.selected{background:#d7f3e5;border-color:#8ccfb1}.duty-text{display:block;margin:0 auto;color:#23353c;font-weight:700}.duty-td.highlight .duty-btn{border-color:#76bfab}.changed-person{font-weight:700}.duty-action-modal{width:min(420px,100%)}.duty-action-target{margin:0;color:var(--text-subtle)}.duty-action-buttons{display:grid;grid-template-columns:1fr;gap:.5rem}.duty-history-backdrop{z-index:41}.duty-history-modal{width:min(460px,100%)}.duty-history-list{margin:0;padding-left:1.1rem;display:grid;gap:.4rem}.duty-history-empty{margin:0;color:var(--text-subtle)}.week-panel{display:grid;gap:.8rem}.week-panel p{color:var(--text-subtle)}.modal.week-modal{width:min(300px,100%);max-height:92vh}.week-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.8rem}.week-item{border:1px solid #d8e3e8;border-radius:12px;padding:.8rem;background:#fdfefe}.week-item h3{margin-bottom:.55rem;font-size:.95rem}.week-item dl{margin:0;display:grid;gap:.45rem}.week-item div{display:grid;gap:.15rem}.week-item dt{font-size:.75rem;color:var(--text-subtle)}.week-item dd{margin:0;font-size:.9rem}.empty{padding:1.4rem;display:grid;gap:.55rem;text-align:center}.empty p{color:var(--text-subtle)}.empty button{justify-self:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#02111fcc;display:grid;place-items:center;z-index:40;padding:1rem}.modal{width:min(920px,100%);max-height:90vh;display:grid;grid-template-rows:auto 1fr auto}.modal.wide{width:min(1200px,100%)}.modal-header,.modal-footer{padding:.85rem 1rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce6ea}.modal-footer{border-bottom:none;border-top:1px solid #dce6ea}.modal-body{padding:1rem;overflow:auto;display:grid;gap:.8rem}.modal-body input[type=text]{width:100%;padding:.5rem .75rem;border:1px solid var(--line);border-radius:8px}.usage-guide-modal{width:min(520px,100%)}.view-roster-body{display:flex;flex-wrap:wrap;gap:1.5rem;width:100%;padding:25px 25px 35px}.view-roster-body .view-roster-section:first-child{width:100%}.view-roster-body .view-roster-section:not(:first-child){flex:1}.view-roster-section h3,.usage-guide-section h3{font-size:.95rem;font-weight:600;margin:0 0 .5rem;color:#1f2b2d}.view-roster-table{width:100%;min-width:auto;border-collapse:collapse}.view-roster-table th,.view-roster-table td{border:1px solid var(--line);padding:.55rem;text-align:left;vertical-align:top}.view-roster-table th,.date-edit-table th,.team-grid th{background:#f0f6f8;font-size:.85rem;font-weight:600;color:#2f444c}.view-roster-table th{width:8rem}.view-roster-table td{font-size:.9rem;background:#fff}.usage-guide-section h3{margin:0 0 .4rem}.substitute-modal{width:min(380px,100%)}.chat-fab{position:fixed;bottom:1.5rem;right:1.5rem;z-index:30;width:auto!important;padding:.3rem .8rem;font-size:.9rem;font-weight:600;color:#19424d;background:#e2f3e9;border:1px solid #9bc9ae;border:none;border-radius:999px;cursor:pointer;box-shadow:0 2px 8px #0d7a6e59;display:none}.chat-fab:hover{filter:brightness(1.08)}.chat-fab:active{transform:scale(.98)}.substitute-context{margin:0 0 .5rem;font-size:.9rem;color:var(--text-muted, #5a6b73)}.substitute-input-wrap{display:flex;flex-direction:column;gap:.4rem}.substitute-input-wrap span{font-size:.875rem;font-weight:500}.usage-guide-body{display:flex;flex-direction:column;gap:1.25rem}.usage-guide-section p{margin:0;font-size:.9rem;line-height:1.5;color:var(--text-subtle)}.usage-guide-body .usage-guide-tip{font-size:.85rem;color:#62aa9e;font-weight:700}.date-edit-table-wrap{overflow:auto}.date-edit-table{width:100%;min-width:640px;border-collapse:collapse}.date-edit-table th,.date-edit-table td{border:1px solid var(--line);padding:.55rem;vertical-align:middle}.date-edit-table td input[type=date],.date-edit-table td select{width:100%;min-width:0}.schedule-memo-editor{display:flex;gap:.5rem;align-items:center}.schedule-memo-editor select{flex:0 0 110px;min-width:0}.schedule-memo-editor input{flex:1;min-width:0}.schedule-memo-editor input:disabled{background:#f0f4f6;color:#8a9aa2;cursor:not-allowed}.date-edit-table .slot-row-new td{background-color:#fff8e1}.slot-duty-options{border:1px solid #cfdce3;border-radius:10px;background:#f8fbfd;padding:.35rem .5rem}.slot-duty-options summary{cursor:pointer;color:#2f444c;font-size:.84rem;font-weight:600}.slot-duty-options[open] summary{margin-bottom:.45rem}.slot-duty-checkboxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem .45rem}.slot-duty-checkboxes label{display:inline-flex;align-items:center;gap:.28rem;font-size:.8rem;color:#243a41}.slot-duty-checkboxes input{margin:0}.roster-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.roster-column{display:grid;gap:.8rem;align-content:start}.roster-editor,.team-editor{border:1px solid #d8e4ea;border-radius:12px;padding:.75rem;display:grid;gap:.45rem}.roster-editor h3,.team-editor h3{font-size:1rem}.roster-editor small,.team-grid-wrap small{color:var(--text-subtle)}.team-grid-wrap{overflow:auto}.team-grid{width:100%;min-width:520px;border-collapse:collapse}.roster-grid{min-width:100%}.team-grid th,.team-grid td{border:1px solid #d8e4ea;padding:.55rem;vertical-align:middle}.team-grid th{position:static;background:#f0f6f8}.team-name-pill{display:inline-block;padding:.2rem .5rem;border-radius:999px;background:#edf5ff;border:1px solid #c7dbf1;color:#264d78;font-weight:600}.team-members-inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.45rem}.team-members-inline input{min-width:0}.roster-grid input{width:100%}.team-edit-buttons{display:flex;gap:.35rem;flex-wrap:wrap}.team-edit-buttons button{padding:.35rem .5rem}@media (max-width: 900px){.app-shell{width:100%;max-width:100%;min-width:360px;padding:1rem}.app-shell>*{width:100%;min-width:0}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:860px}.date-edit-table-wrap{margin:0 -1rem;padding:0 1rem}.roster-layout{grid-template-columns:1fr}.view-roster-body{display:flex;flex-wrap:nowrap;flex-direction:column}.header-buttons button{font-size:14px}}
