:root {
  --ink: #111111;
  --muted: #707070;
  --line: #dedede;
  --surface: #ffffff;
  --background: #f3f3f3;
  --primary: #000000;
  --primary-dark: #2c2c2c;
  --success: #16835b;
  --warning: #ad6b00;
  --danger: #c43d49;
  --info: #333333;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--background); font-family: Arial, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.65rem; margin-bottom: .35rem; }
h2 { font-size: 1.25rem; margin-bottom: 1rem; }
h3 { font-size: 1rem; margin-bottom: .5rem; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #000; border-bottom: 1px solid #000; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; width: 140px; height: 42px; overflow: hidden; color: #fff; line-height: 0; }
.brand img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand:hover { color: #fff; text-decoration: none; }
.header-user { color: #fff; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.app-shell { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 52px; }
.sidebar { position: sticky; top: 20px; align-self: start; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { color: #5c5c5c; padding: 11px 13px; border-radius: 6px; font-size: .94rem; }
.nav-link:hover, .nav-link.active { color: #fff; background: #000; text-decoration: none; font-weight: 700; }
.main-content, .artist-main { min-width: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-heading p { color: var(--muted); margin-bottom: 0; }
.eyebrow { color: var(--primary); font-size: .76rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 9px; }
.wordmark { width: min(100%, 330px); height: 118px; overflow: hidden; margin: 0 auto 20px; background: #000; line-height: 0; }
.wordmark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.muted-text { color: var(--muted); }
.small-text { font-size: .85rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 5px 18px rgba(0, 0, 0, .05); }
.narrow-card { width: min(100%, 460px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.stat-label { color: var(--muted); font-size: .86rem; }
.stat-value { display: block; font-size: 1.7rem; font-weight: 800; margin-top: 6px; }
.section-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2, .section-title h3 { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 4px; padding: 9px 13px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { color: #fff; background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: #bdbdbd; }
.button-secondary:hover { background: #f0f0f0; }
.button-danger { color: #fff; background: var(--danger); }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.35); }
.button-ghost:hover { color: #000; background: #fff; }
.button-small { padding: 6px 9px; font-size: .78rem; }
.button-full { width: 100%; }
.inline-form { display: inline; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stack-form { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: #4d5560; font-size: .88rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; color: var(--ink); padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; grid-template-columns: none; align-items: center; gap: 8px; font-weight: 500; }
.checkbox input { width: auto; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters label { min-width: 160px; }
.filters .filter-search { min-width: 240px; flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fafbfc; font-size: .8rem; font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.matrix th, .matrix td { min-width: 78px; text-align: center; }
.matrix th .assignment-title { display: inline-block; max-width: 120px; overflow: hidden; color: var(--muted); font-size: .72rem; font-weight: 500; text-overflow: ellipsis; vertical-align: bottom; }
.matrix th:first-child, .matrix td:first-child { min-width: 140px; text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.progress { width: 80px; height: 6px; overflow: hidden; border-radius: 999px; background: #e8ebef; }
.progress-bar { height: 100%; background: var(--primary); }
.progress-cell { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; }
.progress-cell .small-text { min-width: 38px; text-align: right; }
.progress-overview-list { display: grid; gap: 9px; }
.progress-overview-row { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(180px, 1fr) auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.progress-overview-artist { min-width: 0; }
.progress-overview-track { min-width: 0; }
.progress-overview-track .progress-cell { justify-content: flex-start; }
.compact-empty { padding: 18px 10px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: .73rem; font-weight: 800; white-space: nowrap; }
.badge-success { color: var(--success); background: #e5f6ee; }
.badge-warning { color: var(--warning); background: #fff3d8; }
.badge-danger { color: var(--danger); background: #fde8ea; }
.badge-info { color: var(--info); background: #e7f1f8; }
.badge-muted { color: #6e7681; background: #eef0f3; }
.alert { border-radius: 8px; padding: 11px 13px; margin-bottom: 16px; font-size: .9rem; }
.alert-success { color: #126846; background: #e6f6ee; border: 1px solid #bce7d2; }
.alert-error { color: #9b2935; background: #fde9eb; border: 1px solid #f4c4c9; }
.alert-warning { color: #895300; background: #fff3d9; border: 1px solid #f2d698; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.detail-grid .full { grid-column: 1 / -1; }
.detail-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-label { color: var(--muted); font-size: .8rem; display: block; margin-bottom: 3px; }
.detail-value { word-break: break-word; }
.artist-links-field { display: grid; gap: 6px; }
.artist-links-field > p { margin: 0 0 3px; }
.artist-link-list { display: grid; gap: 8px; }
.artist-link-row { display: grid; grid-template-columns: minmax(140px, .35fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.artist-link-row .button { align-self: end; }
.artist-link-add { justify-self: start; margin-top: 2px; }
.artist-table { min-width: 900px; table-layout: fixed; }
.artist-table .artist-col-name { width: 128px; }
.artist-table .artist-col-phone { width: 135px; }
.artist-table .artist-col-status { width: 90px; }
.artist-table .artist-col-date { width: 112px; }
.artist-table .artist-col-actions { width: 108px; }
.artist-link-summary { display: grid; gap: 5px; min-width: 0; }
.artist-link-summary-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.artist-link-summary-item a { display: block; min-width: 0; overflow: hidden; flex: 1 1 auto; text-overflow: ellipsis; white-space: nowrap; }
.artist-link-summary-item .badge { flex: 0 0 auto; }
.artist-name-cell { min-width: 128px; white-space: nowrap; }
.artist-url-cell { overflow: hidden; }
.common-mission-target { display: grid; gap: 8px; }
.common-mission-target-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.mission-list { display: grid; gap: 16px; }
.mission-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mission-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.mission-card-header h2 { margin-bottom: 3px; }
.mission-card-header h3 { margin-bottom: 3px; }
.mission-card-header p { margin-bottom: 0; }
.mission-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.mission-overview { display: grid; gap: 10px; margin: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.mission-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mission-overview .progress { width: 100%; height: 10px; }
.mission-artists { padding: 0 16px 16px; }
.mission-artists-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mission-artists-heading h3 { margin-bottom: 0; }
.mission-artist-list { display: grid; gap: 8px; }
.mission-artist-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.mission-artist-main { display: grid; min-width: 0; gap: 3px; }
.mission-artist-main strong { display: block; }
.mission-artist-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.assignment-list { display: grid; gap: 8px; padding-top: 12px; }
.assignment-list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.assignment-list-main { display: grid; min-width: 0; gap: 3px; }
.assignment-list-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-box { display: flex; gap: 8px; align-items: center; }
.url-box input { min-width: 0; }
.submission-urls-field { display: grid; gap: 8px; }
.submission-url-list { display: grid; gap: 8px; }
.submission-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.submission-url-add { justify-self: start; }
.submission-url-links { display: grid; gap: 5px; min-width: 0; }
.submission-url-links a { overflow-wrap: anywhere; }
.submission-url-links.compact { display: flex; flex-wrap: wrap; gap: 5px; }
.submission-url-links.compact a { display: inline-flex; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .78rem; white-space: nowrap; }
.notice-list { display: grid; gap: 10px; }
.notice-item { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.notice-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.notice-title h3 { margin-bottom: 0; }
.notice-content { white-space: pre-wrap; color: #4d5560; }
.artist-main { padding-top: 28px; padding-bottom: 48px; }
.artist-header { background: #000; border-bottom-color: #000; }
.artist-header .brand, .artist-header .header-user { color: #fff; }
.artist-header .button-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.artist-header .button-ghost:hover { color: #000; background: #fff; }
.hero-card { background: #000; color: #fff; border: 0; }
.hero-card .muted-text { color: rgba(255,255,255,.75); }
.hero-card .eyebrow { color: #fff; }
.artist-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.assignment-card { border: 1px solid var(--line); border-radius: 6px; padding: 17px; background: #fff; }
.assignment-card h2 { margin-bottom: 7px; }
.assignment-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: .86rem; margin: 12px 0; }
.activity-list { display: grid; gap: 8px; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: #fff; }
.activity-row .activity-main { min-width: 0; }
.activity-row .activity-main strong { display: block; }
.activity-row .activity-main span { color: var(--muted); font-size: .8rem; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 390px); }
.login-card h1 { margin-bottom: 4px; }
.back-link { display: block; margin-top: 20px; text-align: center; font-size: .88rem; }
.site-footer { color: var(--muted); text-align: center; padding: 22px; font-size: .8rem; }
.empty-state { color: var(--muted); padding: 28px 10px; text-align: center; }
.link-muted { color: var(--muted); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; gap: 15px; }
  .sidebar { position: static; overflow-x: auto; }
  .sidebar nav { display: flex; min-width: max-content; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 58px; }
  .header-user span { display: none; }
  .app-shell, .artist-main { padding-top: 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .mission-card-header { flex-direction: column; }
  .mission-card-meta { align-items: flex-start; }
  .mission-overview { margin: 12px; }
  .mission-artists { padding: 0 12px 12px; }
  .mission-artist-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mission-artist-actions { justify-content: flex-start; }
  .assignment-list-item { align-items: flex-start; flex-direction: column; gap: 9px; }
  .progress-overview-row { grid-template-columns: 1fr; gap: 10px; }
  .progress-overview-row .button { width: 100%; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 1.35rem; }
  .section-card, .card { padding: 16px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .artist-link-row { grid-template-columns: 1fr; }
  .artist-link-row .button, .artist-link-add { width: 100%; }
  .form-grid .full { grid-column: auto; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters label, .filters .filter-search { min-width: 0; width: 100%; }
  .filters .button { width: 100%; }
  .url-box { align-items: stretch; flex-direction: column; }
  .url-box .button { width: 100%; }
  .submission-url-row { grid-template-columns: 1fr; }
  .submission-url-row .button, .submission-url-add { width: 100%; }
  .activity-row { align-items: flex-start; flex-direction: column; }
}
