:root { --bg:#fff; --card:#fff; --fg:#191919; --muted:#666; --border:#dedede; --dark:#191919; --red:#d91c25; --soft:#f3f3f3; --hover:#f7f7f7; }
* { box-sizing:border-box; }
html, body { margin:0; padding:0; min-height:100%; }
.drafts-page { overflow-anchor: none; }
body { background:var(--bg); color:var(--fg); font-family:Pretendard,"Noto Sans KR","Noto Sans CJK KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif; font-size:14px; line-height:1.5; font-variant-numeric:tabular-nums; }
button, a, textarea, input { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.55; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.hidden { display:none !important; }
.app-shell { display:flex; min-height:100dvh; }
.sidebar { position:sticky; top:0; display:flex; flex-direction:column; flex:0 0 220px; height:100dvh; padding:28px 20px 20px; border-right:1px solid var(--border); background:#fff; }
.brand { display:block; margin:0 0 53px; color:var(--fg); text-decoration:none; }
.brand strong, .brand small { display:block; }
.brand strong { font-size:19px; font-weight:800; letter-spacing:-.04em; }
.brand small { margin-top:2px; color:var(--muted); font-size:9px; font-weight:700; letter-spacing:.13em; }
.sidebar-label, .eyebrow { font-size:10px; font-weight:800; letter-spacing:.15em; }
.sidebar-label { margin:0 0 12px; color:#777; }
.side-nav { display:grid; gap:0; }
.nav-link { display:flex; align-items:center; gap:9px; min-height:44px; padding:0 13px; border-left:3px solid transparent; color:#555; font-weight:700; text-decoration:none; }
.nav-link:hover { background:var(--hover); color:var(--fg); }
.nav-link.active { border-left-color:var(--red); background:var(--soft); color:var(--fg); }
.unread-dot { width:9px; height:9px; margin-left:auto; border-radius:50%; background:var(--red); }
.unread-dot[hidden] { display:none; }
.sidebar-bottom { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
.profile-copy { min-width:0; flex:1; }
.profile-copy small, .profile-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-copy small { color:var(--muted); font-size:10px; }
.profile-copy strong { font-size:12px; }
.logout-button { min-height:30px; padding:5px 7px; border:1px solid var(--border); border-radius:3px; background:#fff; color:var(--fg); font-size:10px; white-space:nowrap; }
.logout-button:hover { background:var(--hover); }
.workspace-main { min-width:0; flex:1; }
.topbar { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:122px; padding:23px clamp(24px,3.5vw,56px); border-bottom:1px solid var(--border); background:#fff; }
.eyebrow { color:var(--red); }
.topbar h1 { margin:3px 0 0; font-size:28px; font-weight:800; letter-spacing:-.055em; line-height:1.2; }
.topbar p { margin:6px 0 0; color:var(--muted); font-size:12px; }
.topbar-note { color:var(--muted); font-size:11px; }
.refresh-button, .draft-card button, .stale-dialog button { min-height:36px; padding:8px 12px; border:1px solid #d4d4d4; border-radius:4px; background:#fff; color:var(--fg); font-weight:650; }
.refresh-button:hover, .draft-card button:hover, .stale-dialog button:hover { background:var(--hover); }
.page-main { max-width:1460px; margin:0 auto; padding:30px clamp(24px,3.5vw,56px) 62px; }
.overview { margin-bottom:29px; }
.overview-heading, .section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.overview-heading h2, .section-heading h2 { margin:3px 0 0; font-size:21px; font-weight:800; letter-spacing:-.04em; }
.overview-heading p, .section-heading p { margin:0; color:var(--muted); font-size:12px; }
.overview-heading { align-items:center; }
.overview-heading p { margin-top:4px; }
.reporter-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-top:3px solid var(--fg); border-bottom:1px solid var(--border); }
.reporter-stat { display:flex; justify-content:space-between; align-items:baseline; gap:8px; min-width:0; padding:18px 15px; border-right:1px solid var(--border); }
.reporter-stat:last-child { border-right:0; }
.reporter-stat > span { overflow:hidden; font-size:13px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.reporter-stat strong { color:var(--fg); font-size:25px; font-weight:800; line-height:1; white-space:nowrap; }
.reporter-stat strong small { margin-left:2px; color:var(--muted); font-size:11px; font-weight:600; }
.chat-alert { display:flex; align-items:center; gap:11px; margin-bottom:26px; padding:13px 15px; border-left:4px solid var(--red); background:var(--soft); color:var(--fg); font-weight:700; text-decoration:none; }
.chat-alert[hidden] { display:none; }
.chat-alert:hover { background:#ececec; }
.chat-alert-dot { width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:var(--red); }
.chat-alert-open { margin-left:auto; color:var(--red); white-space:nowrap; text-decoration:underline; text-underline-offset:3px; }
.folder-section { border-top:1px solid var(--border); padding-top:24px; }
.editorial-guide { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:28px; padding:17px 18px; border:1px solid var(--border); border-left:4px solid var(--red); }
.editorial-guide h2 { margin:2px 0 3px; font-size:17px; font-weight:800; letter-spacing:-.035em; }
.editorial-guide h2 span { color:var(--red); }
.editorial-guide p { margin:0; color:var(--muted); font-size:12px; }
.editorial-guide button { flex:0 0 auto; }
.draft-list { border-top:2px solid var(--fg); }
.article-search { margin-bottom:18px; }
.article-search label { display:block; margin-bottom:7px; font-weight:700; }
.search-controls { display:flex; gap:8px; }
.search-controls input { min-width:0; flex:1; min-height:44px; padding:10px 12px; border:1px solid #d4d4d4; border-radius:4px; background:#fff; color:var(--fg); font-size:16px; }
.search-controls button { flex:0 0 auto; }
.article-search p { margin:7px 0 0; color:var(--muted); font-size:12px; }
.draft-folder { border-bottom:1px solid var(--border); }
.draft-folder > summary { display:flex; align-items:center; gap:14px; min-height:59px; padding:11px 15px; cursor:pointer; list-style:none; }
.draft-folder > summary::-webkit-details-marker { display:none; }
.draft-folder > summary:hover { background:var(--hover); }
.folder-name { font-size:16px; font-weight:750; }
.folder-count { margin-left:auto; color:var(--muted); font-size:12px; }
.folder-chevron { width:8px; height:8px; margin-left:4px; border-right:1.5px solid #555; border-bottom:1.5px solid #555; transform:rotate(45deg); transition:transform .15s; }
.draft-folder[open] .folder-chevron { transform:rotate(225deg); }
.folder-content { display:grid; gap:0; padding:0 17px 12px; background:#fafafa; }
.folder-empty { margin:0; padding:22px 12px; color:var(--muted); text-align:center; }
.draft-card { padding:18px 0; border-bottom:1px solid var(--border); background:transparent; }
.draft-card:last-child { border-bottom:0; }
.meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.badge { padding:2px 6px; background:#e3e3e3; color:#333; font-size:11px; font-weight:800; }
.badge.headline { background:var(--red); color:#fff; }
.badge.important { background:#242424; color:#fff; }
.source, .date, .score, .published-date { color:var(--muted); font-size:11px; }
.published-date { color:var(--red); font-weight:700; }
.title { margin:0; font-size:18px; font-weight:750; line-height:1.4; letter-spacing:-.025em; }
.subtitle { margin:6px 0 0; color:#555; font-size:13px; }
.source-link { display:inline-block; margin-top:9px; color:var(--fg); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.actions, .folder-move, .return-to-writer { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:13px; padding-top:12px; border-top:1px solid #e3e3e3; }
.draft-card button { min-height:32px; padding:5px 10px; font-size:12px; }
.draft-card button.primary { border-color:var(--dark); background:var(--dark); color:#fff; }
.draft-card button.primary:hover { background:#333; }
.draft-card button.publish { margin-left:auto; border-color:var(--red); color:var(--red); }
.draft-card button.publish:hover { background:#fff0f0; }
.folder-move > span { margin-right:3px; color:var(--muted); font-size:12px; }
.return-to-writer > span { flex-basis:100%; color:var(--red); font-size:12px; font-weight:700; }
.return-to-writer button { border-color:var(--red); color:var(--red); }
.return-to-writer button:hover { background:#fff0f0; }
.published-folder { --red:#4b4b4b; --hover:#e6e6e6; border-color:#c8c8c8; }
.published-folder > summary { background:#292929; color:#fff; }
.published-folder > summary:hover { background:#383838; }
.published-folder > summary .folder-count { color:#ddd; }
.published-folder > summary .folder-chevron { border-color:#ddd; }
.published-folder > summary:focus-visible { outline-color:#777; }
.published-folder .folder-content { background:#ededed; }
.published-folder .draft-card { border-color:#ccc; }
.published-folder .published-date { color:#444; }
.published-folder .return-to-writer { border-top-color:#ccc; }
.published-folder .return-to-writer > span { color:#555; }
.published-folder .return-to-writer button { border-color:#aaa; color:#444; background:#f5f5f5; }
.published-folder .return-to-writer button:hover { background:#ddd; color:#191919; }
.folder-move button.current-folder { border-color:var(--fg); background:var(--soft); color:var(--fg); cursor:default; opacity:1; }
.error { margin-bottom:15px; padding:11px 13px; border-left:4px solid var(--red); background:var(--soft); color:#9f1720; }
.empty { padding:54px 18px; color:var(--muted); text-align:center; }
.toast { position:fixed; right:22px; bottom:22px; z-index:20; padding:10px 13px; background:var(--fg); color:#fff; font-size:12px; font-weight:700; }
.stale-dialog { width:min(540px,calc(100vw - 28px)); max-height:min(76vh,680px); padding:25px; border:1px solid var(--border); border-top:4px solid var(--red); background:#fff; box-shadow:0 18px 55px #1112; }
.stale-dialog::backdrop { background:#1118; }
.stale-dialog h2 { margin:0 0 8px; font-size:21px; }
.stale-dialog p { color:var(--muted); }
.stale-dialog ul { max-height:42vh; overflow:auto; padding-left:21px; line-height:1.7; }
.stale-dialog li { margin-bottom:7px; }
.stale-dialog button { display:block; margin-left:auto; }
@media (max-width:850px) {
  .sidebar { flex-basis:180px; padding-inline:15px; }
  .brand strong { font-size:16px; }
  .page-main, .topbar { padding-inline:22px; }
}
@media (max-width:720px) {
  .app-shell { display:block; }
  .sidebar { position:relative; flex-direction:row; flex-wrap:wrap; align-items:center; width:100%; height:auto; gap:9px; padding:13px 15px; border-right:0; border-bottom:1px solid var(--border); }
  .brand { margin:0 auto 0 0; }
  .brand strong { font-size:15px; }
  .brand small { display:none; }
  .sidebar-label { display:none; }
  .side-nav { order:3; display:flex; width:100%; gap:12px; }
  .nav-link { min-height:44px; padding:0 9px; font-size:12px; }
  .sidebar-bottom { margin:0; padding:0; border:0; }
  .profile-copy small { display:none; }
  .profile-copy strong { font-size:11px; }
  .logout-button { min-height:40px; }
  .topbar { position:relative; min-height:90px; padding:17px 16px; }
  .topbar h1 { font-size:23px; }
  .topbar-note { display:none; }
  .refresh-button { min-height:44px; }
  .page-main { padding:20px 14px 40px; }
  .reporter-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reporter-stat { border-bottom:1px solid var(--border); }
  .reporter-stat:nth-child(2n) { border-right:0; }
  .reporter-stat:last-child { border-bottom:0; }
  .draft-folder > summary { min-height:55px; padding:12px; }
  .folder-content { padding-inline:12px; }
  .draft-card button { min-height:44px; }
  .actions button { flex:1 1 calc(50% - 7px); }
  .draft-card button.publish { margin-left:0; flex-basis:100%; }
  .overview-heading p, .section-heading p { display:none; }
  .overview-heading p { display:block; }
}
@media (max-width:440px) {
  .reporter-stat { padding-inline:11px; }
  .chat-alert { flex-wrap:wrap; }
  .editorial-guide { align-items:flex-start; flex-direction:column; }
}
