@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --ink: #20211e;
  --muted: #777a73;
  --line: #e3e4df;
  --paper: #ffffff;
  --canvas: #f6f6f2;
  --sidebar: #1d201c;
  --accent: #466347;
  --accent-soft: #eaf0e7;
  --unresolved: #df604b;
  --unresolved-soft: #fff0ec;
  --resolved: #d39125;
  --resolved-soft: #fff5df;
  --verified: #438661;
  --verified-soft: #e9f6ee;
  --shadow: 0 20px 60px rgb(29 32 28 / 12%);
  font-family: "Pretendard", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgb(70 99 71 / 22%); outline-offset: 2px;
}
.is-hidden { display: none !important; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: white; font: 700 26px/1 "Pretendard", sans-serif; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 21px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 560px); background: var(--sidebar); }
.auth-brand { padding: 64px; color: white; display: flex; align-items: flex-start; gap: 14px; }
.auth-brand strong, .app-brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.auth-brand span, .app-brand small { display: block; margin-top: 3px; color: #a8aea6; font-size: 12px; }
.auth-card { align-self: center; margin: 40px; padding: 48px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.auth-card h1 { margin: 12px 0 8px; font-size: 34px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 30px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select, .toolbar select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 12px 13px; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(70 99 71 / 10%); outline: 0; }
.field textarea { resize: vertical; min-height: 104px; }
.check-row { display: flex; gap: 9px; align-items: center; margin: 2px 0 22px; color: #555851; font-size: 13px; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; padding: 11px 17px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.primary-button { color: white; background: var(--accent); box-shadow: 0 5px 14px rgb(70 99 71 / 18%); }
.primary-button:hover { background: #3a553c; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { color: var(--ink); background: #eeefea; }
.full { width: 100%; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.form-error { min-height: 19px; margin: 12px 0 0 !important; color: #c24431 !important; font-size: 13px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; background: var(--sidebar); color: white; display: flex; flex-direction: column; }
.app-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; color: white; text-decoration: none; }
.side-nav { margin-top: 6px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; color: #b8bdb5; background: transparent; text-align: left; font-weight: 700; }
.nav-item.active { color: white; background: #30352f; }
.nav-item svg, .icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 999px; color: #d9ded6; background: #454b43; font-size: 11px; }
.status-guide { margin: auto 7px 20px; padding: 18px; border: 1px solid #373c36; border-radius: 12px; display: grid; gap: 10px; }
.status-guide p { margin: 0 0 3px; color: #8e958b; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.status-guide span { font-size: 12px; color: #c6cbc4; }
.dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: currentColor; }
.dot.unresolved { color: var(--unresolved); }.dot.resolved { color: var(--resolved); }.dot.verified { color: var(--verified); }
.sidebar-user { padding: 16px 7px 0; border-top: 1px solid #373c36; display: grid; grid-template-columns: 34px 1fr 32px; gap: 9px; align-items: center; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #596456; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user strong { font-size: 12px; }.sidebar-user small { margin-top: 2px; color: #899087; font-size: 10px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; display: grid; place-items: center; color: #8d938a; background: transparent; }
.icon-button:hover { color: var(--ink); background: #eceee9; }
.sidebar .icon-button:hover { color: white; background: #343934; }

.main-content { min-width: 0; padding: 40px clamp(28px, 5vw, 76px) 80px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.topbar h1 { margin: 8px 0 0; font: 650 clamp(28px, 4vw, 42px)/1.1 "Pretendard", sans-serif; letter-spacing: -.045em; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.summary-grid article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.summary-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.summary-grid strong { display: block; margin-top: 7px; font-size: 25px; letter-spacing: -.04em; }
.issue-panel { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: 0 6px 28px rgb(25 27 23 / 4%); }
.toolbar { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf7; }
.search-box svg { width: 18px; fill: none; stroke: #8b8e87; stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; padding: 10px 0; background: transparent; }
.toolbar select { width: 142px; padding: 9px 11px; }
.table-head, .issue-row { display: grid; grid-template-columns: 90px minmax(260px, 1fr) 62px 70px 70px 116px 24px; gap: 12px; align-items: center; }
.table-head { padding: 10px 24px; color: #999b96; background: #fafaf7; font-size: 11px; font-weight: 750; }
.year-group + .year-group { border-top: 1px solid var(--line); }
.year-header { width: 100%; border: 0; padding: 15px 24px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: #f4f5f0; text-align: left; font-weight: 800; }
.year-header .chevron { width: 8px; height: 8px; border-right: 2px solid #777c74; border-bottom: 2px solid #777c74; transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.year-group.collapsed .chevron { transform: rotate(-45deg); }
.year-header small { color: var(--muted); font-weight: 600; }
.year-group.collapsed .year-body { display: none; }
.issue-row { width: 100%; border: 0; border-top: 1px solid #eeeeea; padding: 16px 24px; color: inherit; background: white; text-align: left; transition: background .12s; }
.issue-row:hover { background: #fbfcf8; }
.issue-date { color: var(--muted); font-size: 12px; }
.issue-title { min-width: 0; }.issue-title strong, .issue-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.issue-title strong { font-size: 14px; }.issue-title small { margin-top: 5px; color: #969992; font-size: 11px; }
.count-cell { color: #696d66; font-size: 12px; }
.count-cell svg { width: 14px; margin-right: 5px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.status-pill { width: max-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-pill.unresolved { color: #bc4937; background: var(--unresolved-soft); }
.status-pill.resolved { color: #a86b0e; background: var(--resolved-soft); }
.status-pill.verified { color: #2f7550; background: var(--verified-soft); }
.priority-pill { width: max-content; min-width: 36px; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 850; text-align: center; }
.priority-pill small { display: block; margin-top: 2px; font-size: 9px; font-weight: 650; }
.priority-pill.p0 { color: #b72f2f; background: #ffe8e6; }
.priority-pill.p1 { color: #aa591c; background: #fff0df; }
.priority-pill.p2 { color: #3c638b; background: #eaf2fb; }
.priority-pill.p3 { color: #647067; background: #edf0ed; }
.row-arrow { color: #9a9d96; font-size: 20px; }
.empty-state { padding: 52px 20px; color: var(--muted); text-align: center; }

.backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgb(18 20 17 / 44%); backdrop-filter: blur(2px); }
.detail-drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(720px, 92vw); height: 100vh; overflow: auto; background: #fbfbf8; box-shadow: -20px 0 50px rgb(24 26 22 / 14%); transform: translateX(105%); transition: transform .24s ease; }
.detail-drawer.open { transform: translateX(0); }
.detail-header { position: sticky; top: 0; z-index: 3; padding: 25px 30px 20px; border-bottom: 1px solid var(--line); background: rgb(251 251 248 / 94%); backdrop-filter: blur(8px); }
.detail-topline { display: flex; justify-content: space-between; align-items: center; }
.detail-header h2 { margin: 16px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.detail-meta { color: var(--muted); font-size: 12px; }
.detail-body { padding: 26px 30px 60px; }
.detail-section + .detail-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-heading h3 { margin: 0; font-size: 14px; }.section-heading span { color: var(--muted); font-size: 11px; }
.mini-button { margin-left: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; color: var(--accent); background: white; font-size: 10px; font-weight: 750; }
.description { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; color: #53564f; background: white; white-space: pre-wrap; line-height: 1.65; font-size: 13px; }
.status-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 11px; background: #ebede8; }
.status-segment button { border: 0; border-radius: 8px; padding: 9px; color: #747871; background: transparent; font-size: 12px; font-weight: 700; }
.status-segment button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgb(24 26 22 / 8%); }
.priority-segment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 4px; border-radius: 11px; background: #ebede8; }
.priority-segment button { border: 0; border-radius: 8px; padding: 8px; color: #747871; background: transparent; }
.priority-segment button strong, .priority-segment button small { display: block; }
.priority-segment button strong { font-size: 12px; }.priority-segment button small { margin-top: 2px; font-size: 9px; }
.priority-segment button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgb(24 26 22 / 8%); }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.media-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #ededE8; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: contain; background: #222; }
.file-preview { padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.file-preview svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.media-info { padding: 11px; }.media-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 700; }
.media-sub { margin-top: 5px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.media-sub select { border: 1px solid var(--line); border-radius: 7px; padding: 5px; background: white; font-size: 10px; font-weight: 700; }
.download-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.comments { display: grid; gap: 10px; }
.comment { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 7px; }.comment-head strong { font-size: 12px; }.comment-head time { color: var(--muted); font-size: 10px; }
.comment p { margin: 0; color: #555850; white-space: pre-wrap; line-height: 1.5; font-size: 12px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }.comment-form textarea { flex: 1; min-height: 48px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 10px; }.comment-form button { align-self: flex-end; }
.ai-plan-section { padding: 20px; border: 1px solid #ced9cd; border-radius: 15px; background: linear-gradient(155deg, #f4f8f1, #fff 58%); box-shadow: 0 10px 30px rgb(46 75 48 / 7%); }
.ai-heading { align-items: flex-start; }.ai-heading > div span { display: block; margin-top: 4px; }.ai-heading b { padding: 5px 8px; border-radius: 6px; color: #e8f1e7; background: #334f37; font-size: 9px; letter-spacing: .08em; }
.ai-summary { padding: 15px; border: 1px solid #dbe4d8; border-radius: 11px; background: rgb(255 255 255 / 82%); }
.ai-summary > div:first-child { display: flex; align-items: center; gap: 9px; }.ai-summary > div:first-child strong { font-size: 13px; }
.ai-summary p { margin: 12px 0 0; color: #4d554b; white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.ai-categories { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }.ai-categories span { padding: 4px 7px; border-radius: 999px; color: #526154; background: #edf3ea; font-size: 9px; font-weight: 700; }
.ai-block { margin-top: 20px; }.ai-block h4 { margin: 0 0 10px; font-size: 12px; }
.ai-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ai-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; padding: 10px 11px; border: 1px solid #e0e6dd; border-radius: 9px; background: white; }
.ai-steps li b { color: #658067; font-size: 10px; letter-spacing: .08em; }.ai-steps li span { color: #4f554d; font-size: 11px; line-height: 1.55; }
.ai-detail { margin-top: 9px; border: 1px solid #e0e4dd; border-radius: 9px; overflow: hidden; background: white; }
.ai-detail summary { padding: 11px 12px; cursor: pointer; color: #454b43; font-size: 11px; font-weight: 800; }.ai-detail summary small { margin-left: 5px; color: #969c94; font-size: 9px; font-weight: 600; }
.ai-detail.side-effects { border-color: #ecd9cc; }.ai-detail.side-effects summary { color: #9b552e; background: #fff9f4; }
.ai-detail.validations summary { color: #35634c; background: #f5faf6; }
.ai-list { margin: 0; padding: 3px 28px 13px; color: #555b53; font-size: 11px; line-height: 1.6; }.ai-list li + li { margin-top: 7px; }
.ai-list.code-paths { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
.ai-empty { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 11px; }.ai-meta { margin-top: 12px; color: #92988f; font-size: 9px; line-height: 1.6; }

.modal-backdrop { z-index: 30; display: grid; place-items: center; padding: 24px; overflow: auto; }
.modal { width: min(760px, 96vw); max-height: calc(100vh - 48px); overflow: auto; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 23px 26px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; background: white; }
.modal-header h2 { margin: 8px 0 0; font-size: 23px; }.modal-close { font-size: 22px; }
.modal-body { padding: 24px 26px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }.span-2 { grid-column: span 2; }
.drop-zone { padding: 28px; border: 1.5px dashed #bfc4bb; border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: #fafbf8; text-align: center; transition: .15s; }
.drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); }.drop-zone svg { width: 30px; margin-bottom: 9px; fill: none; stroke: var(--accent); stroke-width: 1.7; }.drop-zone strong { color: var(--ink); font-size: 13px; }.drop-zone span { margin-top: 5px; font-size: 11px; }
.selected-files { margin-top: 12px; display: grid; gap: 7px; }.selected-file { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px 30px; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; }
.file-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 650; }.file-size { color: var(--muted); font-size: 10px; }.selected-file select { border: 1px solid var(--line); border-radius: 7px; padding: 6px; background: white; font-size: 10px; }.remove-file { border: 0; background: transparent; color: #a2a59f; font-size: 18px; }
.file-progress { grid-column: 1 / -1; width: 100%; height: 3px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: #e9ebe5; }.file-progress::-webkit-progress-bar { background: #e9ebe5; }.file-progress::-webkit-progress-value { background: var(--accent); transition: width .15s; }.file-progress::-moz-progress-bar { background: var(--accent); }
.modal-footer { position: sticky; bottom: 0; padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: white; }.upload-summary { margin-right: auto; align-self: center; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; max-width: min(440px, 90vw); padding: 11px 16px; border-radius: 9px; color: white; background: #272a26; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }.sidebar { padding-inline: 12px; }.app-brand > span:last-child, .nav-item:not(.active), .nav-item.active { font-size: 0; }.app-brand { padding-inline: 7px; }.nav-item { justify-content: center; }.nav-count, .status-guide, .sidebar-user > div:not(.avatar), .sidebar-user .icon-button { display: none; }.sidebar-user { grid-template-columns: 1fr; justify-items: center; }.main-content { padding-inline: 24px; }.table-head, .issue-row { grid-template-columns: 72px minmax(200px, 1fr) 48px 65px 104px 18px; }.table-head span:nth-child(5), .issue-row .comments-cell { display: none; }
}
@media (max-width: 640px) {
  .auth-shell { grid-template-columns: 1fr; background: var(--canvas); }.auth-brand { padding: 28px; color: var(--ink); }.auth-card { margin: 0; padding: 28px; border-radius: 24px 24px 0 0; box-shadow: none; }.app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 12px 18px; flex-direction: row; align-items: center; }.app-brand { padding: 0; }.app-brand > span:last-child { display: block; }.side-nav, .status-guide, .sidebar-user { display: none; }.main-content { padding: 24px 14px 60px; }.topbar { align-items: center; }.topbar h1 { font-size: 27px; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.toolbar { flex-direction: column; }.toolbar select { width: 100%; }.table-head { display: none; }.issue-row { grid-template-columns: 68px minmax(0, 1fr) 40px 95px 14px; padding: 14px; gap: 9px; }.issue-row .attachments-cell, .issue-row .comments-cell { display: none; }.year-header { padding-inline: 14px; }.detail-drawer { width: 100vw; }.detail-header, .detail-body { padding-inline: 18px; }.media-grid { grid-template-columns: 1fr; }.form-grid { display: block; }.span-2 { grid-column: auto; }.selected-file { grid-template-columns: minmax(0, 1fr) 95px 26px; }.selected-file .file-size { display: none; }.modal-backdrop { padding: 0; align-items: end; }.modal { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }.modal-footer { flex-wrap: wrap; }.upload-summary { width: 100%; }
}
