@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f4f6f8;
  --surface: #fff;
  --ink: #172333;
  --muted: #687586;
  --line: #e4e9ed;
  --soft: #f7f9fa;
  --nav: #172635;
  --nav-muted: #a6b5c3;
  --accent: #087f78;
  --accent-dark: #076b65;
  --accent-soft: #e8f5f2;
  --danger: #b63d4b;
  --radius: 14px;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #55b9ae;
  outline-offset: 3px;
}
button svg, a svg { flex-shrink: 0; }
svg { vertical-align: middle; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; }
button { color: inherit; }

.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 18px 22px; color: white; background: var(--nav); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; font-size: 1.45rem; font-weight: 760; letter-spacing: -.055em; color: white; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #d4fff3; background: #24615d; font-size: 1.125rem; letter-spacing: 0; }
.workspace-label { margin: 30px 12px 12px; font-size: .875rem; color: var(--nav-muted); }
.nav-list { display: flex; flex-direction: column; gap: 7px; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 47px; width: 100%; padding: 11px 14px; border: 0; border-radius: 9px; background: transparent; color: #c3cfda; text-align: left; font-size: .9375rem; font-weight: 550; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item:hover { color: white; background: #223747; text-decoration: none; }
.nav-item.active { color: #ddfff5; background: #28504f; }
.nav-item.active svg { color: #8ce0c8; }
.nav-item .count { margin-left: auto; background: #3b6561; color: #ddfff5; }
.sidebar-bottom { margin-top: auto; padding: 22px 10px 0; border-top: 1px solid #344452; color: var(--nav-muted); font-size: .875rem; }
.sidebar-bottom p { margin: 10px 0 0; }
.member-stack { display: flex; padding-left: 0; align-items: center; }
.member-stack .avatar + .avatar { margin-left: -7px; border: 2px solid var(--nav); }
.avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #e5eaf0; color: #41566d; font-size: .8125rem; font-weight: 700; }
.avatar.a { background: #d7eee8; color: #28695f; }
.avatar.b { background: #e3e9fa; color: #4c6392; }
.avatar.c { background: #f9ead7; color: #976a37; }
.avatar.d { background: #eee3f3; color: #7e5793; }
.workspace { min-width: 0; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 38px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.breadcrumb strong { color: #334357; font-weight: 550; }
.top-actions { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .875rem; }
.top-actions .avatar { width: 34px; height: 34px; }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 34px 38px 50px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 7px; color: var(--accent); font-size: .875rem; font-weight: 650; letter-spacing: .015em; }
h1 { margin: 0; font-size: 1.75rem; line-height: 1.35; font-weight: 730; letter-spacing: -.045em; }
.subtitle { margin: 9px 0 0; color: var(--muted); font-size: .9375rem; }
.head-actions { display: flex; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; background: white; font-size: .875rem; line-height: 1.4; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.button:hover { text-decoration: none; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { color: #344355; border-color: #d6dee5; background: #fff; }
.button.secondary:hover { border-color: #b3c2c9; background: #f8fafb; }
.button.ghost { color: #5d6b7b; background: transparent; }
.button.ghost:hover { background: #edf1f4; }
.button.danger { border-color: #ebc9ce; background: #fff; color: var(--danger); }
.button.danger:hover { background: #fff3f4; }
.button.small { min-height: 34px; padding: 7px 11px; font-size: .875rem; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 24px; border: 1px solid #d8e8e6; border-radius: 10px; color: #476a65; background: #eef6f4; font-size: .875rem; }
.demo-banner strong { color: #24665c; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 25px; }
.stat-card { position: relative; min-width: 0; padding: 21px 23px 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-label { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #637183; font-size: .875rem; font-weight: 550; }
.stat-label svg { color: #91a1ae; }
.stat-value { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 6px; font-size: 1.875rem; line-height: 1.3; font-weight: 740; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat-value small { color: var(--muted); font-size: .875rem; font-weight: 450; letter-spacing: 0; }
.stat-foot, .kpi-note { margin: 0; color: var(--muted); font-size: .8125rem; }
.stat-foot strong { color: var(--accent); font-weight: 600; }
.panel { min-width: 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.0625rem; font-weight: 680; letter-spacing: -.025em; }
.panel-body { padding: 23px; }
.panel-body > :last-child { margin-bottom: 0; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; padding: 1px 7px; border-radius: 6px; color: #677589; background: #edf1f5; font-size: .8125rem; font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 23px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; display: flex; align-items: center; gap: 9px; width: min(100%, 340px); min-width: 180px; }
.search-box svg { position: absolute; left: 12px; width: 18px; height: 18px; color: #8995a3; pointer-events: none; }
.search-box input { width: 100%; min-height: 41px; padding: 9px 12px 9px 38px; border: 1px solid #dce3e8; border-radius: 8px; background: #fff; font-size: .875rem; }
.search-box:not(:has(svg)) input { padding-left: 12px; }
input::placeholder, textarea::placeholder { color: #8b96a3; opacity: 1; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687586' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px !important; }
.filters select { min-height: 41px; max-width: 210px; padding: 8px 12px; border: 1px solid #dce3e8; border-radius: 8px; background-color: #fff; color: #566478; font-size: .875rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 23px; padding: 0 23px; border-bottom: 1px solid var(--line); }
.tab { position: relative; min-height: 53px; padding: 13px 1px; border: 0; background: transparent; color: #7a8695; font-size: .875rem; font-weight: 550; }
.tab:hover { color: var(--accent); }
.tab.active { color: var(--accent); font-weight: 700; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tab .count { margin-left: 5px; }
.tab.active .count { color: var(--accent); background: var(--accent-soft); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; white-space: nowrap; }
th { height: 47px; padding: 12px 17px; border-bottom: 1px solid var(--line); background: #f8fafb; color: #748091; font-size: .875rem; font-weight: 550; }
td { height: 77px; padding: 15px 17px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 23px; }
th:last-child, td:last-child { padding-right: 23px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fbfa; }
tbody tr.selected-row, .selected-row { background: #eef8f5; }
tbody tr[data-id] { cursor: pointer; }
.customer-name { color: #26364a; font-weight: 650; }
.customer-name + .muted { margin-top: 3px; }
.muted { color: var(--muted); font-size: .875rem; }
.phone { color: #5f6f80; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 27px; padding: 3px 9px; border-radius: 6px; background: #eff2f5; color: #657487; font-size: .8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge.new { color: #287c71; background: #e9f5f0; }
.badge.progress { color: #466f9f; background: #edf3fc; }
.badge.review { color: #9c712a; background: #fdf4e2; }
.badge.contract { color: #7960a5; background: #f0ecf8; }
.badge.done { color: #4a766a; background: #eaf2ef; }
.badge.lost { color: #9b6370; background: #f8ecef; }
.owner-chip { display: inline-flex; align-items: center; gap: 7px; color: #536277; font-size: .875rem; white-space: nowrap; }
.owner-chip .avatar { width: 25px; height: 25px; font-size: .75rem; }
.empty-state { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty-state h3 { margin-bottom: 8px; color: #415367; }
.empty-state p { margin-bottom: 18px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.task-list, .activity-list, .record-list, .validation-list { margin: 0; padding: 0; list-style: none; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #edf0f3; }
.task-row:first-child { padding-top: 0; }
.task-row:last-child { padding-bottom: 0; border-bottom: 0; }
.task-row > div:not(.task-date) { min-width: 0; flex: 1; }
.task-row p { margin: 2px 0; }
.task-row strong { font-size: .9375rem; font-weight: 600; }
.task-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 6px; background: #f1f5f5; color: var(--accent); border-radius: 9px; font-size: .8125rem; font-weight: 600; }
.task-date strong { font-size: 1.0625rem; line-height: 1.2; }
.activity-item { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-item p { margin: 0 0 4px; font-size: .875rem; }
.activity-item time { color: #8994a1; font-size: .8125rem; }
.section-label { margin: 0 0 16px; font-size: .9375rem; font-weight: 650; color: #34485b; }
.import-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.import-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.import-card h2 { margin: 15px 0 8px; font-weight: 680; }
.import-card p { color: var(--muted); font-size: .9375rem; }
.import-icon { display: inline-grid; place-items: center; width: 45px; height: 45px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 1.25rem; }
.import-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 25px; padding: 0; list-style: none; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: #8a96a3; font-size: .875rem; }
.step.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.step span:first-child:not(:only-child) { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: #edf0f3; font-size: .8125rem; }
.step.active span:first-child:not(:only-child) { background: #c8e9e0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 18px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; color: #536276; font-size: .875rem; font-weight: 550; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .text-input { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d8e0e6; border-radius: 8px; background-color: #fff; color: #293b4f; font-size: .9375rem; line-height: 1.5; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .text-input:focus { border-color: #5aa99f; }
.field input[readonly], .field input:disabled, .field select:disabled { background-color: #f5f7f9; color: #6f7e8c; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.field [aria-invalid="true"] { border-color: #c65360 !important; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 175px; margin: 17px 0; padding: 24px; border: 1px dashed #bacdc9; border-radius: 11px; background: #f7fbfa; text-align: center; color: #58796e; }
.dropzone:hover { background: #edf7f3; border-color: var(--accent); }
.dropzone input { width: 100%; max-width: 340px; color: #5f716b; font-size: .875rem; }
.dropzone input::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 1px solid #cbdbd6; border-radius: 6px; background: white; color: #37695d; font: inherit; cursor: pointer; }
.mapping-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; }
.mapping-grid > div { min-width: 0; }
.preview-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 15px 18px; margin-bottom: 18px; background: #f2f7f5; border: 1px solid #dbe9e4; border-radius: 9px; font-size: .875rem; }
.preview-summary strong { color: var(--accent); }
.notice { padding: 13px 16px; margin-bottom: 18px; border: 1px solid #dce5ee; border-radius: 9px; color: #5b6e82; background: #f1f6fa; font-size: .875rem; }
.notice.warning { border-color: #efdfb8; color: #8a681f; background: #fffaee; }
.notice.success { border-color: #cde6da; color: #35765c; background: #eff9f3; }
.notice p:last-child { margin-bottom: 0; }
.import-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.raw-message { width: 100%; min-height: 180px; margin: 0; padding: 15px; border: 1px solid #dbe3e8; border-radius: 9px; background: #f8fafb; color: #536578; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .875rem; line-height: 1.8; }
.validation-list { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; color: #866b36; }
.validation-list li { padding-left: 14px; position: relative; }
.validation-list li::before { content: "·"; position: absolute; left: 0; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(15 29 40 / 34%); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 61; display: flex; flex-direction: column; width: min(680px, 100vw); height: 100dvh; background: white; box-shadow: -12px 0 55px rgb(20 38 52 / 13%); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 3px 0 8px; font-size: 1.4rem; letter-spacing: -.04em; }
.drawer-head p { margin-bottom: 0; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px; }
.drawer-body .section-label:not(:first-child) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.drawer-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 17px 28px; border-top: 1px solid var(--line); background: white; }
.detail-tabs { display: flex; gap: 22px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.detail-tabs .tab { min-height: 50px; }
.record-item { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.record-item:first-child { padding-top: 0; }
.record-item:last-child { border-bottom: 0; }
.record-item p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #7c8997; font-size: .8125rem; }
.record-meta strong { color: #415568; font-weight: 600; }
.modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 70; }
.modal { width: min(620px, 100%); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border-radius: 16px; background: white; box-shadow: 0 24px 80px rgb(16 32 45 / 20%); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.03em; }
.modal-body { overflow-y: auto; overscroll-behavior: contain; padding: 25px; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; padding: 17px 25px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: calc(50% + 116px); bottom: 28px; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100vw - 40px); padding: 13px 20px; border-radius: 10px; color: white; background: #203a3b; box-shadow: 0 8px 28px rgb(20 40 40 / 18%); font-size: .875rem; }
.checkbox, input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; margin: 0; vertical-align: middle; accent-color: var(--accent); cursor: pointer; }
.row-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 5px; border: 0; border-radius: 7px; color: #8a97a5; background: transparent; }
.row-action:hover { color: var(--accent); background: #e9f3ef; }
.link-button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 0; border: 0; background: none; color: var(--accent); font-size: .875rem; font-weight: 550; text-align: left; }
.link-button:hover { text-decoration: underline; }
.progress-track { height: 6px; overflow: hidden; margin-top: 14px; background: #edf2f2; border-radius: 20px; }
.progress-fill { height: 100%; background: #4cae98; border-radius: inherit; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.member-card { padding: 21px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.member-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.member-heading strong { display: block; font-size: .9375rem; }
.member-heading .badge { margin-left: auto; }
.member-heading .avatar { width: 40px; height: 40px; font-size: .9375rem; }
.mobile-nav-toggle { display: none; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; margin-left: 5px; padding: 0 0 24px 24px; border-left: 1px solid #dce6e2; }
.timeline-item::before { content: ""; position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #7ab6a4; box-shadow: 0 0 0 4px white; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item p { margin: 5px 0 0; font-size: .875rem; }
.timeline-item time { color: var(--muted); font-size: .8125rem; }
.source-label { display: inline-flex; align-items: center; gap: 6px; color: #748395; font-size: .8125rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 1600px) {
  .content { padding: 38px 48px 55px; }
  .topbar { padding-left: 48px; padding-right: 48px; }
  .stats-grid { gap: 20px; }
  td { height: 80px; }
}
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .content { padding: 28px 25px 40px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-value { font-size: 1.65rem; }
  .split-grid { gap: 17px; }
  .page-head { align-items: flex-start; }
  .toast { left: calc(50% + 105px); }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 16px 20px 0; }
  .brand { padding: 0; font-size: 1.25rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .workspace-label, .sidebar-bottom { display: none; }
  .nav-list { flex-direction: row; gap: 6px; margin: 14px -8px 0; padding: 0 0 10px; overflow-x: auto; scrollbar-width: thin; }
  .nav-list > li { flex-shrink: 0; }
  .nav-item { flex-shrink: 0; width: auto; min-height: 40px; padding: 9px 12px; gap: 7px; font-size: .875rem; }
  .nav-item svg { width: 17px; height: 17px; }
  .topbar { min-height: 60px; padding: 12px 22px; }
  .content { padding: 25px 22px 35px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid { grid-template-columns: 1fr; gap: 0; }
  .page-head { flex-wrap: wrap; gap: 17px; }
  .head-actions { margin-left: auto; }
  .toast { left: 50%; }
}
@media (max-width: 600px) {
  .sidebar { padding: 14px 16px 0; }
  .nav-list { margin-top: 12px; gap: 2px; }
  .nav-item { padding: 8px 10px; font-size: .875rem; }
  .nav-item svg { display: none; }
  .nav-item .count { min-width: 19px; padding: 0 5px; }
  .topbar { padding: 11px 16px; }
  .top-actions { gap: 8px; }
  .top-actions > .muted, .top-actions > time { display: none; }
  .content { padding: 23px 16px 32px; }
  .page-head { margin-bottom: 20px; }
  h1 { font-size: 1.75rem; }
  .subtitle { font-size: .875rem; }
  .head-actions { width: 100%; margin-left: 0; }
  .head-actions .button { flex: 1; }
  .demo-banner { align-items: flex-start; padding: 12px; margin-bottom: 18px; }
  .stats-grid { gap: 10px; margin-bottom: 18px; }
  .stat-card { padding: 16px 14px; border-radius: 11px; }
  .stat-value { margin-top: 8px; font-size: 1.6rem; }
  .stat-label { font-size: .875rem; }
  .stat-label svg { display: none; }
  .stat-foot { line-height: 1.5; }
  .panel { margin-bottom: 18px; border-radius: 12px; }
  .panel-head { padding: 17px 16px; }
  .panel-body { padding: 18px 16px; }
  .panel-title { font-size: 1rem; }
  .toolbar { padding: 14px 16px; }
  .search-box { width: 100%; }
  .filters { width: 100%; }
  .filters select { flex: 1; min-width: 0; max-width: none; }
  .tabs { padding: 0 16px; gap: 20px; flex-wrap: nowrap; overflow-x: auto; }
  .tab { white-space: nowrap; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .import-grid, .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .import-card { padding: 21px; }
  .import-steps { gap: 4px; margin-bottom: 18px; }
  .step { padding: 7px 8px; gap: 5px; }
  .field-grid { grid-template-columns: 1fr; gap: 16px; }
  .mapping-grid { gap: 12px; }
  .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .text-input, .search-box input, .filters select { font-size: 1rem; }
  .import-footer { flex-wrap: wrap; }
  .import-footer > .muted { width: 100%; }
  .preview-summary { gap: 9px 16px; }
  .drawer { width: 100%; }
  .drawer-head { padding: 22px 20px; }
  .drawer-body { padding: 23px 20px; }
  .drawer-footer { padding: 15px 20px; }
  .detail-tabs { padding: 0 20px; gap: 20px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 13px; }
  .modal-head { padding: 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .toast { bottom: 18px; padding: 12px 16px; }
  .task-row { gap: 10px; }
  .task-row > .button { padding: 7px 9px; }
}
.brand > span:last-child { line-height: 1.15; white-space: nowrap; }
.brand small { display: block; margin-top: 6px; font-size: .625rem; letter-spacing: .19em; font-weight: 500; color: #a8c7c3; }
.brand-mark { flex-shrink: 0; }
.sidebar-bottom .section-label { color: #b1c7d1; display: flex; justify-content: space-between; }
.sidebar-bottom .nav-item { padding-left: 0; margin-top: 20px; }
.sidebar-bottom .source-label { display: block; margin-top: 18px; color: #8ea5b4; }
.stat-value > span { font-size: 1rem; font-weight: 450; letter-spacing: 0; color: var(--muted); }
.panel-head h2 { margin: 0; display: flex; align-items: center; gap: 9px; }
.panel-head p { margin: 6px 0 0; }
.table-footer { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
.tab > span { margin-left: 7px; padding: 1px 6px; font-size: .8125rem; background: #eef2f4; border-radius: 5px; }
.tab.active > span { background: #e0f1eb; }
.top-actions select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 27px 7px 10px; font-size: .875rem; background-color: white; }
.import-card { padding: 0; }
.import-card h2 { margin: 0; }
.panel-body > .field + .field, .field-grid + .field { margin-top: 20px; }
.panel-body > .field, .drawer-body form > .field { margin-bottom: 20px; }
.field-grid { margin-bottom: 20px; }
.field-grid .field { margin-bottom: 0; }
.step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7eeec; font-size: .8125rem; }
.step.active b { background: #cfe9e0; }
.task-row > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: left; }
.activity-item { display: flex; gap: 12px; }
.activity-item p { margin: 0; }
.activity-item > span { color: var(--accent); }
.record-list { margin-top: 24px; }
.overdue { color: #b14448; }
.shared-summary { padding: 22px 25px; margin-bottom: 24px; background: #eaf4f1; border: 1px solid #d4e6e0; border-radius: 14px; }
.shared-summary > div { display: flex; align-items: center; gap: 12px; color: #276c60; flex-wrap: wrap; }
.shared-summary > div > span { margin-left: auto; font-size: .875rem; }
.shared-summary p { margin: 10px 0 0; color: #537b70; font-size: .9375rem; }
.import-destination { border: 1px solid var(--line); border-radius: 12px; background: white; margin-bottom: 22px; }
.import-destination .field { max-width: 500px; margin-bottom: 12px; }
.import-destination p { margin: 0; }
.drawer .detail-tabs { gap: 15px; overflow-x: auto; }
.drawer .detail-tabs .tab { white-space: nowrap; }
.drawer-footer .button { white-space: nowrap; }
.trash-list { padding: 0 24px; }
.trash-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.trash-item:last-child { border-bottom: 0; }
.trash-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.trash-item h3 { margin: 0 0 8px; font-size: 1rem; }
.trash-item p { margin: 0 0 8px; }
.trash-item small { font-size: .875rem; }
.trash-item .head-actions { flex-shrink: 0; }
.drawer-footer [data-trash-record] { margin-right: auto; }
@media (max-width: 600px) {
  .trash-list { padding: 0 18px; }
  .trash-item { align-items: flex-start; flex-direction: column; gap: 16px; }
  .drawer-footer [data-trash-record] { margin-right: 0; }
}
td .muted, td .badge { margin-top: 4px; }
#preview-panel td .text-input { min-width: 160px; }
#preview-panel td select { min-width: 110px; }
#preview-panel td small { display: block; white-space: normal; min-width: 180px; max-width: 240px; }
@media (max-width: 600px) {
  .top-actions > .source-label { display: none; }
  .panel-head { flex-wrap: wrap; }
  .import-card { padding: 0; }
  .table-footer > span:last-child { display: none; }
  .detail-tabs { gap: 14px; overflow-x: auto; }
  .detail-tabs .tab { flex-shrink: 0; }
  .demo-banner svg { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .topbar, .head-actions, .toast, .drawer-backdrop, .modal-backdrop { display: none !important; }
  .app-shell { display: block; }
  body { background: white; }
  .content { padding: 0; max-width: none; }
  .panel, .stat-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
