:root{
  --b:#1A4D9E; --bd:#0E3468; --bp:#EAF1FB; --bp2:#F3F7FC;
  --line:#C9D3E0; --text:#1E1E1E; --muted:#6B7280; --red:#C0392B; --green:#1F6F3D;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif;
  color:var(--text); background:#fff; line-height:1.5; padding-bottom:70px;
}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}

.corner{position:fixed;width:7px;height:7px;background:#111;z-index:5}
.corner.tl{top:8px;left:8px}.corner.tr{top:8px;right:8px}
.corner.bl{bottom:8px;left:8px}.corner.br{bottom:8px;right:8px}

.site-header{padding:22px 0 10px}
.hd{display:flex;justify-content:space-between;align-items:flex-start;
  padding-bottom:10px;border-bottom:2px solid var(--b)}
.tag{font-weight:800;font-size:13px;border:1.5px solid #111;padding:2px 9px;border-radius:2px;letter-spacing:.5px}
.brand{text-align:right}
.az{font-weight:900;font-size:18px;color:var(--b);letter-spacing:.5px}
.azs{font-size:9px;color:var(--muted);letter-spacing:1px}

.title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:16px 0 12px}
h1{font-size:26px;font-weight:800;color:var(--bd)}
.sub{font-size:13px;color:var(--muted);margin-top:3px}
.progress{font-size:13px;font-weight:700;color:var(--bd);background:var(--bp);
  border:1px solid var(--line);border-radius:4px;padding:8px 14px}
.progress b{color:var(--b);font-size:16px}

.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
button{font-family:inherit;cursor:pointer}
.toolbar button{font-size:12.5px;font-weight:700;color:var(--bd);background:#fff;
  border:1px solid var(--b);border-radius:3px;padding:7px 12px}
.toolbar button:hover{background:var(--bp)}
.toolbar button.danger{color:var(--red);border-color:var(--red)}
.toolbar button.danger:hover{background:#FBEAE8}

.section{margin-top:22px}
.sec-head{display:flex;justify-content:space-between;align-items:center;
  background:var(--b);color:#fff;padding:8px 14px;border-radius:3px 3px 0 0}
.sec-head h2{font-size:15px;font-weight:800;display:flex;align-items:center;gap:8px}
.sec-head .badge{display:inline-flex;align-items:center;justify-content:center;
  width:19px;height:19px;border-radius:50%;background:#fff;color:var(--b);font-size:11px;font-weight:800}
.sec-head button{font-size:11.5px;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.6);
  border-radius:3px;padding:3px 9px}
.sec-head button:hover{background:rgba(255,255,255,.15)}

table{width:100%;border-collapse:collapse;table-layout:fixed}
th,td{border:1px solid var(--line);padding:10px 12px;vertical-align:top;text-align:left}
thead th{background:var(--bd);color:#fff;font-size:13px;text-align:center}
th.rowh{width:130px;background:var(--bp);color:var(--bd);font-size:14px;font-weight:800;
  white-space:pre-line;text-align:center;vertical-align:middle}
tbody tr:nth-child(even) td{background:var(--bp2)}

ul.items{list-style:none}
ul.items li{display:flex;align-items:flex-start;gap:8px;padding:5px 0;border-bottom:1px dashed #DCE3EE}
ul.items li:last-child{border-bottom:none}
ul.items input[type=checkbox]{width:17px;height:17px;margin-top:3px;accent-color:var(--b);flex:none;cursor:pointer}
ul.items .txt{flex:1;font-size:14px;word-break:break-word;outline:none;border-radius:2px;padding:1px 3px}
ul.items .txt:focus{background:#FFF9DB}
ul.items li.done .txt{color:var(--muted);text-decoration:line-through}
ul.items .del{border:none;background:none;color:#9AA3B2;font-size:16px;line-height:1;padding:2px 4px}
ul.items .del:hover{color:var(--red)}

.add{display:flex;gap:6px;margin-top:8px}
.add input{flex:1;min-width:0;font-family:inherit;font-size:13.5px;border:1px solid var(--line);
  border-radius:3px;padding:6px 8px}
.add input:focus{outline:2px solid var(--b);outline-offset:0;border-color:var(--b)}
.add button{font-size:12.5px;font-weight:700;color:#fff;background:var(--b);border:none;border-radius:3px;padding:0 12px}
.add button:hover{background:var(--bd)}
.empty{font-size:12px;color:var(--muted);padding:2px 0}

.note{margin-top:22px;font-size:11.5px;color:var(--muted);background:var(--bp);
  border-left:3px solid var(--b);padding:9px 12px;border-radius:2px}

.footer-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #111;z-index:4}
.footer-bar .wrap{display:flex;gap:0;padding:0}
.fb{flex:1;display:flex;border-right:1px solid #111;font-size:11px}
.fb:last-child{border-right:none}
.fb .l{background:var(--b);color:#fff;font-weight:700;padding:7px 10px;white-space:nowrap}
.fb span:last-child{padding:7px 10px}

@media (max-width:720px){
  .wrap{padding:0 14px}
  h1{font-size:21px}
  table,thead,tbody,tr,th,td{display:block;width:100%}
  thead{display:none}
  th.rowh{width:100%;text-align:left;padding:8px 12px;white-space:normal}
  th.rowh br{display:none}
  td::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:800;color:var(--b);margin-bottom:4px}
  tr{border-bottom:2px solid var(--line)}
  .fb{flex-direction:column;font-size:10px}
  .fb .l,.fb span:last-child{padding:4px 8px}
  .footer-bar .wrap{flex-wrap:nowrap}
  body{padding-bottom:84px}
}

@media print{
  .no-print,.add,.del,.footer-bar .no-print,.sec-head button{display:none!important}
  body{padding-bottom:0}
  .corner{position:fixed}
  .section{break-inside:avoid}
  .footer-bar{position:fixed}
  th,td{padding:6px 8px}
}
