*{box-sizing:border-box} [hidden]{display:none!important}
:root{--accent:#454d80;--ink:#30343b;--sub:#858899;--line:#dfe3eb;--canvas:#f1f3f6;--card:#fff;--sidebar:clamp(205px,15.55vw,300px)}
body{margin:0;color:var(--ink);font:14px/1.48 "Malgun Gothic","Source Sans 3",sans-serif;background:var(--canvas)}
button,input,select,textarea{font:inherit;color:inherit} button{cursor:pointer;border:1px solid #ccd0da;background:#fff;border-radius:5px;padding:6px 11px} button:hover{filter:brightness(.96)} button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:2px solid #5a6dbc;outline-offset:2px}
input,select,textarea{border:1px solid #d0d5df;border-radius:5px;background:white;padding:7px 9px;min-width:0} textarea{width:100%;min-height:92px;resize:vertical} input[type=checkbox]{width:auto} input[type=file]{max-width:100%} a{color:var(--accent)}
#top{height:53px;background:var(--accent);color:white;display:flex;align-items:center;gap:14px;padding:0 10px;position:relative;z-index:5}
#top button{background:transparent;color:white;border-color:#ffffff30}#top #toggle,#top #bell{border:none;font-size:20px;padding:2px 5px} #logout{border-radius:20px} #badge{font-size:12px;color:#fff4a9} .logo{background:#080808;color:white;font:24px Arial,sans-serif;width:32px;height:30px;text-align:center;border:1px solid #9ca1b6;box-shadow:-2px 2px #060606} .brand{font-size:19px;white-space:nowrap} .spacer{flex:1} #account{white-space:nowrap;color:#eef0ff}
#layout{height:calc(100dvh - 53px);display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)} #layout.compact{grid-template-columns:minmax(0,1fr)} .compact #sidebar{display:none}
#sidebar{background:#fff;border-right:1px solid var(--line);overflow:auto;color:#222d46} #modes{background:#f5f6f8;border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr)} #modes button{border:0;border-radius:0;background:none;height:40px;color:#888c90;font-size:20px} #modes button:first-child{background:#fff;border-bottom:2px solid var(--accent);color:var(--accent)}
.menu-search{padding:7px 5px;border-bottom:1px solid var(--line)} .menu-search input{width:100%} #menu{padding:5px 5px 14px 2px}
.group{--g:#4d5d9e;--bg:#e4e8f7;--border:#8998de;margin:0 0 6px}.group:nth-child(2){--g:#9a642a;--bg:#f4e7d0;--border:#d1a65e}.group:nth-child(3){--g:#3d7954;--bg:#e0eee6;--border:#85c2a0}.group:nth-child(4){--g:#a23b32;--bg:#eed9d8;--border:#c97e78}.group:nth-child(5){--g:#3c677e;--bg:#d6eaf1;--border:#85bdd0}
.group summary{list-style:none;cursor:pointer;background:var(--bg);border:1px solid var(--border);border-left:5px solid var(--g);border-radius:9px;padding:8px 10px;font-size:15px;font-weight:bold;box-shadow:0 2px 4px #10172a12;display:flex;align-items:center;gap:7px}.group summary::-webkit-details-marker{display:none}.group summary::before{content:'›';color:var(--g)}.group[open] summary::before{transform:rotate(90deg)}.folder{background:var(--g);color:white;padding:0 3px;border-radius:5px}
.links{border-left:2px solid #edf0f5;margin:7px 0 0 10px;padding:4px 0 4px 11px;display:grid;gap:2px}.links button{background:transparent;border:0;text-align:left;border-radius:9px;padding:7px 8px 7px 14%;white-space:nowrap;color:#1f2b45}.links .active{background:var(--accent);color:white}.arrow{display:inline-grid;place-items:center;background:var(--accent);color:white;border-radius:100%;width:16px;height:16px;font-size:11px;font-weight:bold;margin-right:8px}.active .arrow{background:white;color:var(--accent)}
#workspace{overflow:hidden;display:flex;flex-direction:column;min-width:0} #tabbar{min-height:40px;background:#f6f7f9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:6px;padding:2px 4px 0} #tabs{display:flex;align-self:stretch;gap:4px;overflow:auto} .tab{white-space:nowrap;border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;background:#f8f9fb;display:flex;align-items:center} .tab.active{background:white;font-weight:bold;color:#1f2943} .tab button{background:none;border:0;padding:6px 10px;white-space:nowrap} .tab .x{padding:4px 7px 4px 0;color:#747989} #tools{display:flex;align-items:center;gap:5px;flex-shrink:0} #tools button{white-space:nowrap} #tools button:nth-child(-n+2),.primary{background:var(--accent);color:white;border-color:var(--accent)}
main{margin:4px 4px 0;padding:15px 16px 24px;overflow:auto;flex:1} #notice{padding:7px 14px;background:#fff6dd;color:#755719;border-bottom:1px solid #ead9b8}
.pagehead{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}h1,h2,h3,p{margin:0}h1{font-size:21px}h2{font-size:17px}h3{font-size:15px} .meta,.empty{color:var(--sub)}.empty{padding:20px 7px} .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}.card,.panel{border:0;box-shadow:0 2px 3px #2733421c;background:white;border-radius:8px}.card{text-align:left;border-left:5px solid var(--stripe,var(--accent));padding:13px 17px;min-height:91px}.card strong{display:block;color:#343941;font-size:27px;margin-top:8px;white-space:nowrap}.card small{color:var(--sub);font-size:13px;font-weight:normal}.card span{font-weight:bold;color:var(--sub)}.split{display:grid;grid-template-columns:1.3fr 1fr;gap:13px;margin-bottom:13px}.panel{padding:13px 16px;min-width:0}.overview .panel{min-height:350px}.panel h2{margin-bottom:12px}
table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap} td,th{border-bottom:1px solid #edf0f3;padding:8px 6px} th{color:var(--sub);background:#fafbfc} tbody tr[data-id]{cursor:pointer} tbody tr[data-id]:hover{background:#f2f4fb}.table-wrap{overflow:auto}.status{display:inline-block;border-radius:4px;background:#eff1f8;color:var(--accent);padding:2px 6px;font-size:12px}
.graph{width:100%;min-height:180px;max-height:290px;display:block}.legend{display:flex;gap:13px;color:var(--sub);flex-wrap:wrap;margin-bottom:8px}.legend span::before{content:'';display:inline-block;background:var(--mark);width:9px;height:9px;margin-right:5px}.ranking{display:grid;grid-template-columns:minmax(55px,120px) 1fr 26px;gap:8px;align-items:center;border:0;width:100%;text-align:left}.rankbar{height:9px;background:#e9ebf4;border-radius:3px}.rankbar span{display:block;height:100%;background:var(--accent);border-radius:3px}
.filters{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-bottom:14px}label{display:grid;gap:4px;color:#44495a;font-weight:bold;font-size:13px}label input,label select,label textarea{font-weight:normal;color:var(--ink)}.form{display:grid;gap:12px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.form .row{justify-content:flex-end}.form button,.button-row button{min-height:35px}.button-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.error{color:#9c2d2a;font-size:13px}.text{white-space:pre-wrap;overflow-wrap:anywhere}.form-panel{max-width:850px}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-grid section{min-width:0}.photo-grid figure{margin:6px 0}.photo-grid img{width:100%;max-height:340px;object-fit:contain;background:#eef0f4}.photo-strip{display:flex;gap:8px;flex-wrap:wrap}.photo-strip button{padding:3px}.photo-strip img{width:90px;height:65px;object-fit:cover;display:block}.editor{max-width:100%;height:auto;touch-action:none;background:#e9ebef}.details{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 12px;padding:0 0 12px}.details div{border-bottom:1px solid #edf0f3;padding-bottom:4px}.details b{display:block;color:var(--sub);font-size:12px}.section-gap{margin-top:14px}
#entry{max-width:420px;margin:9vh auto 20px;padding:23px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}.dialog-head button{font-size:18px;line-height:1} dialog{padding:0;border:1px solid var(--line);border-radius:8px;width:min(900px,calc(100% - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 9px 38px #151b3e41}dialog::backdrop{background:#171c354d}#dialogBody{padding:15px 16px;overflow:auto;max-height:calc(90dvh - 60px)}.print-title{display:none}
@media(max-width:1150px){.cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){#top{height:47px;gap:6px}.brand{font-size:14px}.logo{width:24px;height:23px;font-size:18px}#account,#logout{font-size:11px}#layout{height:calc(100dvh - 47px);grid-template-columns:1fr}#sidebar{position:absolute;top:47px;bottom:0;width:min(260px,80vw);z-index:4;box-shadow:5px 0 16px #30344335}#tools{display:none}main{padding:11px 7px}.split{grid-template-columns:1fr}.overview .panel{min-height:0}.cards{gap:7px}.card{padding:8px 9px;min-height:73px}.card strong{font-size:21px;margin-top:5px}.card span{font-size:12px}.panel{padding:11px}.details{grid-template-columns:repeat(2,1fr)}#entry{margin:7vh 12px 0}}
@media print{body{background:white}#top,#sidebar,#tabbar,.filters,.button-row,#notice{display:none!important}#layout,#workspace,main{display:block;height:auto;overflow:visible;margin:0;padding:0}.panel,.card{box-shadow:none;border:1px solid #bbb;break-inside:avoid}.print-title{display:block}.split{grid-template-columns:1fr 1fr}.cards{grid-template-columns:repeat(3,1fr)}.table-wrap{overflow:visible}table{white-space:normal}}

fieldset{margin:0;padding:9px 11px;border:1px solid var(--line);border-radius:5px}
#top #bell:not([hidden]){display:flex;align-items:center;gap:4px;white-space:nowrap}
.bell-icon{display:inline-block;width:14px;height:14px;background:white;border-radius:9px 9px 3px 3px;position:relative}
.bell-icon::after{content:'';position:absolute;width:5px;height:2px;background:white;bottom:-3px;left:4.5px;border-radius:2px}
@media(max-width:540px){#account{display:none}#top .brand{min-width:0;overflow:hidden;text-overflow:ellipsis}#top .logo,#top #logout,#top #bell{flex-shrink:0}#layout .tabs{min-width:0}}
.group[data-group="1"]{--g:#9a642a;--bg:#f4e7d0;--border:#d1a65e}.group[data-group="2"]{--g:#3d7954;--bg:#e0eee6;--border:#85c2a0}.group[data-group="3"]{--g:#a23b32;--bg:#eed9d8;--border:#c97e78}.group[data-group="4"]{--g:#3c677e;--bg:#d6eaf1;--border:#85bdd0}
@media print{.print-qr #layout,.print-qr #dialog .dialog-head,.print-qr #entry{display:none!important}.print-qr #dialog{position:static;display:block;max-width:none;max-height:none;border:0;box-shadow:none}.print-qr #dialog::backdrop{display:none}.print-qr #dialogBody{max-height:none}}



.status{font-weight:650;border:1px solid var(--status-border,#d4dce9);color:var(--status-ink,#415778);background:var(--status-bg,#eef2f8);white-space:nowrap}
.status.assigned{--status-ink:#155638;--status-bg:#d8f1de;--status-border:#82c69a}
.status.working{--status-ink:#fff;--status-bg:#217448;--status-border:#165f39}
.status.rejected{--status-ink:#86164c;--status-bg:#fbd3e6;--status-border:#e58fb7}
.status.late{--status-ink:#fff;--status-bg:#b52b35;--status-border:#96222a}
.status.hold{--status-ink:#66361b;--status-bg:#f1d9c2;--status-border:#c79970}
.status.done{--status-ink:#fff;--status-bg:#285aa4;--status-border:#1d498c}
.status.review{--status-ink:#58409d;--status-bg:#ece4ff;--status-border:#c1afe8}
.status-secondary{font-size:10px;padding:0 4px;vertical-align:middle}

[data-urgency="긴급"]{color:#b42330}
[data-urgency="높음"]{color:#a84b00}
[data-urgency="보통"]{color:#227347}
#dialogBody input[data-urgency="긴급"]{color:#b42330}
#dialogBody input[data-urgency="높음"]{color:#a84b00}
#dialogBody input[data-urgency="보통"]{color:#227347}
