:root {
  --bg: #f4f1ea;
  --paper: #ffffff;
  --ink: #1b2233;
  --muted: #6b7285;
  --line: #e3ded2;
  --navy: #14213d;
  --navy-2: #22335c;
  --sun: #f2a541;
  --sun-ink: #4a2c00;
  --mint: #2fa58c;
  --rose: #d9534f;
  --amber: #d9902b;
  --chip: #eef0f5;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 18px rgba(20, 33, 61, .06);
  --bar-h: 60px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1424;
    --paper: #182036;
    --ink: #e8ebf4;
    --muted: #9aa3ba;
    --line: #283252;
    --chip: #222b45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { color: var(--sun); font-weight: 900; }
.mark { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd38a, var(--sun) 60%, #c97a12); }
.mark::after { content: ""; position: absolute; left: -6px; right: -6px; top: 8px; height: 6px; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-18deg); opacity: .75; }
.brand-lg { font-size: 19px; }
.brand-lg .mark { width: 28px; height: 28px; }
.brand-lg .mark::after { top: 10px; height: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.btn-main { background: var(--navy); color: #fff; }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-line { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: default; }
@media (prefers-color-scheme: dark) { .btn-main { background: var(--sun); color: var(--sun-ink); } }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: inherit; font-size: 18px; cursor: pointer; }

.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; background: radial-gradient(circle at 80% 10%, rgba(242, 165, 65, .25), transparent 45%), var(--navy); color: #fff; }
.gate-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.gate-box h1 { font-size: 21px; font-weight: 900; margin-top: 4px; }
.gate-box label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gate-box input { height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; color: var(--ink); }
.gate-box input:focus { outline: 2px solid var(--sun); border-color: transparent; }
.gate-link { font-size: 13px; color: var(--muted); text-align: center; text-decoration: none; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.msg { margin: 0; min-height: 1.2em; font-size: 13px; font-weight: 700; color: var(--rose); }
.msg.ok { color: var(--mint); }

.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: env(safe-area-inset-top) 0 0; box-shadow: 0 4px 14px rgba(20, 33, 61, .25); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 50px; padding: 0 12px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.stamp { font-size: 11px; color: rgba(255, 255, 255, .6); white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px 10px; }
.card { min-width: 0; padding: 7px 8px; border-radius: 12px; background: var(--navy-2); font-size: 11px; line-height: 1.35; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 4px; margin-bottom: 2px; }
.card-name { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row { display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; }
.card-row span:first-child { color: rgba(255, 255, 255, .62); }
.card-row b { font-weight: 800; }
.card-foot { margin: -2px 0 2px; color: rgba(255, 255, 255, .55); font-size: 10px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 3px; margin: 1px 0 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--mint); }
.meter i.warn { background: var(--sun); }
.meter i.stop { background: var(--rose); }
.pill { flex: none; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 17px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
.pill.ok { background: rgba(47, 165, 140, .28); color: #8ff0d8; }
.pill.warn { background: rgba(242, 165, 65, .28); color: #ffd38a; }
.pill.stop { background: rgba(217, 83, 79, .3); color: #ffb3b0; }
.pill.none { color: rgba(255, 255, 255, .6); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding: 0 2px env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(20, 33, 61, .08); color: var(--ink); }
.tab { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.tab .ico { font-size: min(18px, 4.6vw); line-height: 1; }
.tab .lbl { max-width: 100%; white-space: nowrap; font-size: min(10.5px, 2.35vw); letter-spacing: -0.06em; }
.tab .lbl-l { display: none; }
.tab.on { color: var(--ink); }
.tab.on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sun); }
.badge { position: absolute; top: 6px; left: min(calc(50% + 6px), calc(100% - 18px)); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; }

.main { width: min(1080px, 100%); margin: 0 auto; padding: 14px 12px calc(var(--bar-h) + env(safe-area-inset-bottom) + 20px); }
.panel { display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: 20px; font-weight: 900; }
.sub { font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.box { padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.empty { padding: 18px 14px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--chip); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

.office-photo { display: grid; gap: 8px; }
.office-stage { position: relative; width: 100%; margin-inline: auto; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: var(--chip); border: 1px solid var(--line); }
.office-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.office-fallback { position: absolute; inset: 0; display: grid; place-items: end center; padding: 10px; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px, var(--paper); color: var(--muted); font-size: 12px; font-weight: 700; }
.zones { position: absolute; inset: 0; }
.zone { position: absolute; display: flex; align-items: flex-start; justify-content: flex-start; padding: 6px; border: 2px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.zone span { padding: 2px 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); border-radius: 999px; background: rgba(20, 33, 61, .82); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.zone .zl-l { display: none; }
@media (max-width: 560px) { .zone { padding: 4px; } .zone span { padding: 1px 7px; font-size: 11px; } }
@media (min-width: 561px) { .zone .zl-s { display: none; } .zone .zl-l { display: inline; } }
.zone:hover, .zone:focus-visible, .zone.on { border-color: var(--sun); background: rgba(242, 165, 65, .14); outline: none; }
.no-img .zone { border: 2px solid var(--line); background: rgba(255, 255, 255, .55); }
.no-img .zone span { background: var(--navy); }
@media (prefers-color-scheme: dark) { .no-img .zone { background: rgba(24, 32, 54, .7); } }

.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.team { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-head h3 { font-size: 15px; font-weight: 900; }
.team-who { font-size: 12px; color: var(--muted); }
.task { padding: 8px 10px; border-radius: 10px; background: var(--chip); font-size: 13px; }
.task b { display: block; font-weight: 800; }
.task small { color: var(--muted); }

.talk { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.talk label { font-size: 15px; font-weight: 900; }
.talk .msg:empty { display: none; }
.talk-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: stretch; }
.talk select, .panel-head select { height: 42px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); }
.talk textarea { min-width: 0; min-height: 42px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); resize: vertical; font-size: 16px; }
.talk textarea:focus, .talk select:focus { outline: 2px solid var(--sun); border-color: transparent; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.item-body { white-space: pre-wrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--chip); color: var(--ink); white-space: nowrap; }
.tag.ok { background: rgba(47, 165, 140, .16); color: var(--mint); }
.tag.warn { background: rgba(242, 165, 65, .2); color: var(--amber); }
.tag.stop { background: rgba(217, 83, 79, .14); color: var(--rose); }

.org { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 0; }
.org-node { padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; min-width: 140px; }
.org-node b { display: block; font-size: 15px; font-weight: 900; }
.org-node small { color: var(--muted); font-size: 12px; }
.org-node.boss { background: var(--navy); color: #fff; border-color: var(--navy); }
.org-node.boss small { color: rgba(255, 255, 255, .7); }
.org-node.chief { border-color: var(--sun); }
.org-line { width: 2px; height: 18px; background: var(--line); }
.org-row { position: relative; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-top: 18px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 18px; background: var(--line); }
.org-row.two { padding-top: 0; }
.org-row.two::before { display: none; }
.org-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(560px, 100%); }
.org-teams .org-node { min-width: 0; }
.org-duty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(420px, 100%); }
.org-duty .org-node { min-width: 0; }
.org-node.duty { border-color: var(--navy); }
.org-cap { flex-basis: 100%; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.org-foot { margin-top: 14px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line); font-size: 12px; color: var(--muted); text-align: center; max-width: 560px; }
@media (min-width: 720px) { .org-teams { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.person { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.person-head { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--chip); font-size: 20px; }
.person h3 { font-size: 16px; font-weight: 900; }
.person .who { font-size: 12px; color: var(--muted); }
.person ul { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.person li { padding-left: 14px; position: relative; }
.person li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
.person .no { color: var(--muted); font-size: 12px; }

.acc { display: flex; flex-direction: column; gap: 8px; }
.acc details { border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.acc summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 800; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .title { flex: 1; min-width: 0; }
.acc summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(180deg); }
.acc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; font-size: 14px; }
.acc-body p { margin: 0; white-space: pre-wrap; }
.acc-body textarea { width: 100%; min-height: 70px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; resize: vertical; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-actions .btn { flex: 1 1 120px; }
.meta { font-size: 12px; color: var(--muted); }

.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav .icon-btn { border-color: var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cal .dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0 4px; }
.cal .dow:first-child { color: var(--rose); }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 44px; padding: 6px 0 4px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.day.out { visibility: hidden; }
.day.today { background: var(--chip); }
.day.on { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .day.on { background: var(--sun); color: var(--sun-ink); } }
.cal-filter { margin-bottom: 8px; }
.day .need-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.kicos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1px; max-width: 100%; min-height: 12px; font-size: 10px; line-height: 12px; font-weight: 400; }
.kico.plain { color: var(--sun); font-size: 12px; font-weight: 800; }
.day.on .kico.plain { color: inherit; }
.tag.kind-done { background: rgba(47, 165, 140, .16); color: var(--mint); }
.tag.kind-todo { background: rgba(217, 83, 79, .12); color: var(--rose); }
.tag.kind-due { background: rgba(242, 165, 65, .2); color: var(--amber); }
.tag.kind-plan { background: rgba(90, 110, 220, .16); color: #4a63d0; }

.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 78px 50px 92px minmax(0, 1fr); gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tl time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tl .who { font-weight: 800; font-size: 13px; }
.tl .ptag { justify-self: start; align-self: baseline; }
@media (max-width: 520px) {
  .tl { grid-template-columns: 1fr; gap: 2px; }
  .tl-top { display: flex; gap: 8px; align-items: baseline; }
}
@media (min-width: 521px) { .tl-top { display: contents; } }

.brief { display: flex; flex-direction: column; gap: 12px; }
.brief .headline { padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #fff; }
.brief .headline li { padding: 2px 0 2px 16px; position: relative; font-weight: 700; }
.brief .headline li::before { content: "★"; position: absolute; left: 0; color: var(--sun); font-size: 11px; top: 5px; }
.brief h3 { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--chip); font-size: 12px; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.bullets li { padding: 6px 0 6px 16px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--line); }
.bullets li:last-child { border-bottom: 0; }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 6px; height: 6px; border-radius: 2px; background: var(--mint); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.project { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-code { padding: 2px 10px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 900; font-size: 13px; }
.project h3 { font-size: 16px; font-weight: 900; }
.project dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 13px; }
.project dt { color: var(--muted); }
.project dd { margin: 0; }
.project a { color: var(--mint); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700; box-shadow: var(--shadow); }

@media (max-width: 560px) {
  .top-row { height: 46px; }
  .cards { gap: 5px; padding: 0 10px 8px; }
  .card { padding: 5px 6px; border-radius: 10px; }
  .card-name { font-size: 11.5px; }
  .pill { padding: 0 5px; font-size: 9.5px; line-height: 15px; }
  .meter { display: none; }
  .card-foot { margin: -1px 0 1px; }
  .main { padding-top: 10px; }
  .talk { gap: 4px; margin-bottom: 10px; padding: 9px 10px; border-radius: 14px; }
  .talk label { font-size: 13px; }
  .talk-row { gap: 6px; }
  .talk select { height: 40px; padding: 0 4px; }
  .talk textarea { height: 40px; min-height: 40px; padding: 8px 10px; }
  .talk .btn { min-height: 40px; padding: 0 12px; }
  .talk .hint { font-size: 11px; line-height: 1.35; }
  .panel { gap: 8px; }
  .panel-head h2 { font-size: 18px; }
  .seg button { padding: 5px 10px; }
}

@media (min-width: 900px) {
  :root { --bar-h: 0px; }
  .top-row { width: min(1080px, 100%); margin: 0 auto; height: 58px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .cards { width: min(1080px, 100%); margin: 0 auto; gap: 10px; padding: 0 16px 12px; }
  .card { padding: 10px 14px; font-size: 13px; }
  .card-name { font-size: 14px; }
  .pill { font-size: 11px; line-height: 19px; }
  .meter { height: 5px; }
  .tabs { position: static; height: auto; padding: 0 16px; background: var(--navy-2); border: 0; box-shadow: none; justify-content: center; color: #fff; }
  .tab { flex: 0 1 auto; flex-direction: row; gap: 6px; padding: 12px 14px; font-size: 14px; color: rgba(255, 255, 255, .65); }
  .tab .ico { font-size: 15px; }
  .tab .lbl { font-size: 14px; letter-spacing: 0; }
  .tab .lbl-s { display: none; }
  .tab .lbl-l { display: inline; }
  .card-foot { font-size: 12px; }
  .tab.on { color: #fff; }
  .tab.on::before { top: auto; bottom: 0; left: 14px; right: 14px; border-radius: 3px 3px 0 0; }
  .badge { position: static; margin-left: 2px; }
  .main { padding: 22px 16px 40px; }
  .toast { bottom: 24px; }
}

.recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.instr-list { display: flex; flex-direction: column; gap: 8px; }
.instr { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.instr:hover, .instr:focus-visible { border-color: var(--sun); outline: none; }
.instr.compact { box-shadow: none; background: var(--chip); border-color: transparent; }
.instr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.instr-id { font-size: 13px; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.instr-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.instr-body { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { width: 100%; margin-top: 10px; }

.pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 16, 30, .5); animation: pop-fade .15s ease-out; }
.pop-card { width: 100%; max-height: min(78vh, 78dvh); overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: pop-up .2s ease-out; }
.pop-card:focus { outline: none; }
.pop-card::before { content: ""; display: block; width: 40px; height: 4px; margin: -8px auto 12px; border-radius: 4px; background: var(--line); }
.pop-title { font-size: 19px; font-weight: 900; }
.pop-sub { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.pop-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.pop-sec { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pop-sec h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.pop-text { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--chip); font-size: 15px; white-space: pre-wrap; }
.pop-hint { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
html.pop-open { overflow: hidden; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-up { from { transform: translateY(24px); opacity: .6; } }
@media (min-width: 900px) {
  .pop { align-items: center; padding: 24px; }
  .pop-card { width: min(560px, 100%); max-height: 80vh; padding: 22px 22px 16px; border-radius: 20px; }
  .pop-card::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pop, .pop-card { animation: none; } }

.boss-badge { position: absolute; z-index: 2; display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ff7a6b 0%, #e2362a 55%, #b51e15 100%); color: #fff; font-weight: 900; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(120, 10, 5, .35), 0 3px 8px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); pointer-events: none; }
.boss-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.boss-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--chip); }
.boss-title { font-size: 14px; font-weight: 800; }
.pop-go { width: 100%; margin-top: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .chip.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); } }
.wl-list { display: flex; flex-direction: column; gap: 8px; }
.wl { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.wl:hover, .wl:focus-visible { border-color: var(--sun); outline: none; }
.wl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.wl-top time { font-variant-numeric: tabular-nums; }
.wl-staff { font-weight: 800; color: var(--ink); }
.wl-sum { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.report-head { margin: -2px 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.report-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--amber); }
.report-head .pop-title { font-size: 18px; line-height: 1.4; }
.report-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--chip); font-size: 13px; }
.report-meta div { display: flex; gap: 8px; min-width: 0; }
.report-meta dt { flex: none; color: var(--muted); font-weight: 700; }
.report-meta dd { margin: 0; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-sec { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.report-sec:last-child { border-bottom: 0; padding-bottom: 4px; }
.report-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 900; color: var(--ink); }
.report-h::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--sun); }
@media (max-width: 420px) { .report-meta { grid-template-columns: 1fr; } }

.rt { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; }
.rt > .rt-item:first-child, .rt > .rt-p:first-child { margin-top: 2px; }
.report-sec { display: flex; flex-direction: column; gap: 4px; }
.report-sec:first-child { padding-top: 6px; }
.rt-p { padding-left: calc(var(--lv, 0) * 18px); white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-item { display: flex; align-items: baseline; gap: 4px; padding-left: calc(var(--lv, 0) * 18px); }
.rt-mark { flex: 0 0 auto; min-width: 1.5em; color: var(--muted); font-weight: 800; text-align: right; padding-right: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt-num .rt-mark, .rt-circ .rt-mark { color: var(--ink); }
.rt-sub { font-size: 13px; color: var(--muted); }
.rt-sub .rt-mark { font-weight: 900; }
.rt-text { flex: 1 1 0%; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; }
.rt strong { font-weight: 800; color: var(--ink); }
.rt-gap { margin-top: 10px; }
.rt-empty { margin: 0; font-size: 14px; }
.pop-block { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.report-head + .pop-block { border-top: 0; }
.pop-block-h { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 900; }
.pop-block-h::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--sun); }
.acc-body .report-head { margin-top: 2px; border-bottom-width: 1px; }
.acc-body .report-meta { margin-top: 0; }
.tdate { color: var(--muted); font-weight: 700; font-size: .88em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tsep { color: var(--muted); }
.ttext { min-width: 0; }
.acc summary .title { display: block; }
.card-seen { text-align: left; }
@media (max-width: 560px) {
  .tdate { display: block; font-size: 11px; line-height: 1.4; }
  .tsep { display: none; }
}
@media (max-width: 400px) {
  .stamp { max-width: 58px; font-size: 10px; line-height: 1.2; white-space: normal; text-align: right; }
}

/* 프로젝트 칩·태그 (2026-11-18) */
:root { --p-hq: #5b6b8c; --p-hq-bg: rgba(91, 107, 140, .14); --p-mct: #1f7a8c; --p-mct-bg: rgba(31, 122, 140, .14); --p-myp: #8a4fbf; --p-myp-bg: rgba(138, 79, 191, .13); --p-none: #8a8f9c; }
@media (prefers-color-scheme: dark) { :root { --p-hq: #a9b6d6; --p-hq-bg: rgba(169, 182, 214, .16); --p-mct: #6fd0e0; --p-mct-bg: rgba(111, 208, 224, .14); --p-myp: #c9a1f0; --p-myp-bg: rgba(201, 161, 240, .15); --p-none: #9aa3ba; } }
.ptag { display: inline-block; flex: none; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.ptag-hq { background: var(--p-hq-bg); color: var(--p-hq); }
.ptag-mct { background: var(--p-mct-bg); color: var(--p-mct); }
.ptag-myp { background: var(--p-myp-bg); color: var(--p-myp); }
.ptag-none { background: transparent; color: var(--p-none); border: 1px dashed var(--p-none); padding: 0 6px; }
.proj-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.proj-bar[hidden] { display: none; }
.proj-bar-l { font-size: 12px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.pchip { min-height: 30px; padding: 0 12px; }
.pchip-hq.on { background: var(--p-hq); border-color: var(--p-hq); color: #fff; }
.pchip-mct.on { background: var(--p-mct); border-color: var(--p-mct); color: #fff; }
.pchip-myp.on { background: var(--p-myp); border-color: var(--p-myp); color: #fff; }
@media (prefers-color-scheme: dark) { .pchip-hq.on, .pchip-mct.on, .pchip-myp.on { color: #0f1424; } }
.filter-note { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.instr-id { display: inline-flex; align-items: center; gap: 6px; }
.task-head { display: flex; align-items: baseline; gap: 6px; }
.task-head b { flex: 1 1 auto; min-width: 0; }
.acc summary .ptag { align-self: center; }
.project dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.project-head .ptag { font-size: 13px; padding: 2px 10px; }
@media (max-width: 560px) { .proj-bar { gap: 5px; margin: -8px 0 12px; } .pchip { min-height: 28px; padding: 0 10px; font-size: 12.5px; } }
.team-sec { display: flex; flex-direction: column; gap: 6px; }
.team-sec + .team-sec { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.team-sub { margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.team-none { margin: 0; font-size: 13px; color: var(--muted); }
.team-stages { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.org-teams-l { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.team-sec h4 { color: var(--ink); font-size: 14px; }

#game-chips { margin-bottom: 8px; }
#game-box .sub { margin: 16px 0 8px; }
.game-btns { display: flex; justify-content: flex-end; }
.game-btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
