@charset "UTF-8";
:root {
  --paper: #f7f6f1;
  --surface: #fffefa;
  --ink: #302724;
  --muted: #786e68;
  --wine: #9b3e50;
  --wine-soft: #f3e8e8;
  --forest: #203e32;
  --forest-soft: #e9eee7;
  --line: #dedbd3;
  --danger: #993329;
  --amber: #75572e;
  --amber-soft: #f4eddf;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, input, select, textarea { border-radius: 7px; }
button { border: 1px solid var(--line); background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
button:hover:not(:disabled) { border-color: #ab9f95; }
button.primary:hover { background: #843244; border-color: #843244; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
img { max-width: 100%; }
strong, h1, h2, h3 { font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 39px); line-height: 1.3; letter-spacing: -.06em; margin-bottom: 11px; }
h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 4px; }
h3 { font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
p { margin-bottom: 0; }
small { font-size: 12px; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--forest); color: white; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 21px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #f0efe9; }
.brand { display: block; margin: 0 10px 23px; width: 122px; }
.brand img { width: 122px; height: 49px; object-fit: contain; object-position: left center; }
.company { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 2px; margin-bottom: 21px; }
.company-mark { display: grid; place-items: center; width: 34px; height: 37px; border: 1px solid #c7c5ba; border-radius: 6px; font-family: Georgia, serif; font-size: 22px; color: var(--forest); }
.company strong { display: block; font-size: 13px; }
.company small { display: block; color: var(--muted); font-size: 11px; }
.company-dot { width: 6px; height: 6px; background: var(--forest); border-radius: 50%; margin-left: auto; }
.nav-label { margin: 7px 11px 7px; color: #8c837d; font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.primary-nav { display: grid; gap: 5px; margin-bottom: 24px; }
.primary-nav a { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 10px 12px; border-radius: 7px; font-size: 13px; color: #6a615b; }
.primary-nav a:hover { background: #e9e7df; }
.primary-nav a.active { background: var(--wine-soft); color: var(--wine); font-weight: 700; }
.primary-nav svg { width: 18px; height: 18px; }
.nav-count { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-note { margin: auto 10px 22px; padding-top: 32px; color: var(--forest); }
.tiny-dot { display: block; height: 5px; width: 5px; background: var(--forest); border-radius: 50%; margin-bottom: 11px; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note p { color: #83796f; font-size: 10px; line-height: 1.8; margin-top: 7px; }
.sidebar-back { display: flex; align-items: center; gap: 7px; font-size: 12px; margin: 8px 9px 18px; }
.sidebar-back svg { width: 15px; height: 15px; }
.profile { display: flex; align-items: center; gap: 11px; margin: 0 -21px; padding: 17px 23px; border-top: 1px solid var(--line); }
.profile strong, .profile small { display: block; font-size: 11px; }
.profile small { color: var(--muted); font-size: 10px; }
.profile>svg { width: 15px; margin-left: auto; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #e4d8cd; border-radius: 50%; font-size: 11px; }
.main-column { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 76px; padding: 0 42px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.breadcrumb>span { color: var(--muted); }
.breadcrumb strong { font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 23px; }
.sample-pill { color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 4px; font-size: 9px; letter-spacing: .09em; }
.text-link { font-size: 12px; color: var(--wine); display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-banner { display: flex; gap: 8px; align-items: center; background: #eeede5; color: #736a60; padding: 9px 42px; font-size: 10px; }
.preview-banner svg { width: 14px; height: 14px; }
.preview-banner strong { font-weight: 600; }
main { padding: 38px 42px 60px; max-width: 1580px; margin-inline: auto; }
main:focus { outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.eyebrow { color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 11px; }
.page-subtitle { color: var(--muted); font-size: 13px; max-width: 650px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn { min-height: 42px; padding: 10px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.btn.primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.small { min-height: 33px; padding: 6px 11px; font-size: 11px; }
.btn.ghost { background: transparent; }
.btn svg { width: 16px; height: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-head p { color: var(--muted); font-size: 11px; }
.panel-body { padding: 24px 25px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 14px; gap: 16px; }
.section-heading h2 { font-size: 17px; }
.muted { color: var(--muted); }
.caption { color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 650; line-height: 1.7; }
.badge.green { background: var(--forest-soft); color: var(--forest); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.wine { background: var(--wine-soft); color: var(--wine); }
.badge.gray { background: #efede7; color: var(--muted); }
.inline-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.project-cover { display: grid; grid-template-columns: minmax(0, 1fr) 280px; background: var(--forest); color: #f3f2e8; border-radius: 11px; overflow: hidden; }
.project-cover-content { padding: 32px; }
.project-cover .eyebrow { color: #b5c8b5; }
.project-cover h2 { font-size: 27px; letter-spacing: -.05em; margin: 13px 0 15px; }
.project-cover p { color: #c2cdc0; font-size: 12px; max-width: 510px; }
.project-cover-meta { display: flex; flex-wrap: wrap; gap: 23px; font-size: 11px; color: #d2d9ce; margin-top: 25px; }
.project-art { position: relative; min-height: 230px; overflow: hidden; background: #2b4a3b; }
.project-art:before, .project-art:after { content: ""; position: absolute; border: 1px solid #66816b; border-radius: 50% 45% 50% 34%; transform: rotate(-23deg); }
.project-art:before { width: 330px; height: 190px; left: 8px; top: 62px; box-shadow: 0 0 0 24px #2b4a3b, 0 0 0 25px #57745e, 0 0 0 49px #2b4a3b, 0 0 0 50px #4c6b55; }
.project-art:after { width: 170px; height: 95px; left: 82px; top: 109px; border-color: #79917c; box-shadow: 0 0 0 22px #2b4a3b, 0 0 0 23px #66816b; }
.project-art span { position: absolute; right: 25px; top: 24px; font-family: Georgia, serif; letter-spacing: .13em; font-size: 10px; color: #c9d6c9; }
.project-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: 23px; overflow-x: auto; }
.project-tabs a, .project-tabs button { padding: 13px 1px 14px; flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 12px; color: var(--muted); }
.project-tabs .active { color: var(--wine); border-bottom-color: var(--wine); font-weight: 700; }
.project-tabs span { font-size: 10px; margin-left: 6px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 23px; margin-top: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 23px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 11px; color: var(--muted); }
.stat-number { display: block; font-size: 30px; line-height: 1.4; font-weight: 500; margin: 8px 0 2px; letter-spacing: -.04em; }
.stat-number small { font-size: 12px; margin-left: 3px; }
.stat-note { font-size: 10px; color: var(--muted); }
.task-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid #ebe8e0; }
.task-row:last-child { border-bottom: 0; padding-bottom: 0; }
.task-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 7px; color: var(--wine); flex: 0 0 auto; }
.task-icon svg { width: 17px; height: 17px; }
.task-row strong { display: block; font-size: 12px; }
.task-row small { color: var(--muted); font-size: 10px; }
.task-row .text-link { margin-left: auto; flex-shrink: 0; }
.handover { padding: 26px; background: #eeeae1; border: 1px solid #dcd6c9; border-radius: 11px; }
.handover h2 { font-size: 21px; margin: 12px 0 12px; }
.handover p { color: #786e64; font-size: 12px; }
.handover-list { list-style: none; padding: 0; margin: 20px 0; }
.handover-list li { display: flex; gap: 8px; align-items: center; font-size: 11px; padding: 7px 0; }
.handover-list svg { width: 15px; height: 15px; color: var(--forest); }
.activity { margin-top: 23px; }
.activity-item { position: relative; border-left: 1px solid var(--line); margin-left: 4px; padding: 0 0 22px 18px; }
.activity-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.activity-item:before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #b4b8a9; top: 6px; left: -4px; }
.activity-item strong { display: block; font-size: 11px; }
.activity-item small { font-size: 10px; color: var(--muted); }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.summary-strip .stat { padding: 20px 20px 20px 0; margin-right: 20px; }
.summary-strip .stat-number { font-size: 28px; margin-top: 6px; }
.summary-strip .stat:last-child { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; min-width: 0; background: none; border: 0; padding: 10px 0; font-size: 12px; outline: none; }
select { background: var(--surface); border: 1px solid var(--line); padding: 9px 29px 9px 11px; font-size: 12px; max-width: 100%; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { padding: 12px 20px; color: var(--muted); font-size: 10px; font-weight: 500; background: #f8f7f2; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 20px; border-bottom: 1px solid #e8e5dd; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #faf9f4; }
.data-table td:first-child { min-width: 190px; }
.data-table td.nowrap { white-space: nowrap; }
.data-table .row-title { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 650; font-size: 12px; background: none; border: 0; padding: 0; text-align: left; }
.data-table .row-title:hover { color: var(--wine); }
.data-table small { display: block; color: var(--muted); font-size: 10px; }
.data-table .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.list-footnote { padding: 13px 21px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.back-link svg { width: 15px; height: 15px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 23px; margin-top: 23px; }
.detail-main, .detail-aside { min-width: 0; }
.detail-aside .panel { margin-bottom: 20px; }
.detail-aside .panel-head { padding: 19px 21px; }
.detail-aside .panel-head h2 { font-size: 15px; }
.detail-aside .panel-body { padding: 20px 21px; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 17px; border: 1px solid #e5d7b9; background: #f8f2e5; color: var(--amber); border-radius: 7px; margin-bottom: 20px; font-size: 11px; }
.notice>svg { width: 17px; height: 17px; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 3px; }
.notice p { line-height: 1.7; }
.notice.success { color: var(--forest); background: var(--forest-soft); border-color: #c7d6c7; }
.key-values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; margin: 0; }
.key-values dt { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.key-values dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.key-values .wide { grid-column: 1 / -1; }
.key-values .value-large { font-size: 24px; letter-spacing: -.035em; }
.key-values .value-large small { font-size: 11px; }
.review-line { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.check-label { display: flex; gap: 9px; align-items: flex-start; font-size: 11px; cursor: pointer; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--wine); flex-shrink: 0; margin: 1px 0 0; }
.review-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 17px; }
.file-item { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); padding: 14px; border-radius: 7px; }
.file-icon { padding: 10px; background: var(--wine-soft); border-radius: 5px; color: var(--wine); }
.file-item strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.file-item small { color: var(--muted); font-size: 10px; }
.nas-path { background: var(--paper); padding: 11px 12px; border-radius: 6px; margin: 11px 0; font-family: Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; line-height: 1.8; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 11px; }
.info-row span { color: var(--muted); }
.info-row strong { font-weight: 600; text-align: right; }
.alert-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border: 0; }
.alert-row strong { display: block; font-size: 11px; margin-bottom: 5px; }
.alert-row small { font-size: 10px; color: var(--muted); }
.toggle-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 11px; }
.toggle-label input { width: 28px; height: 17px; }
.version-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.version-item:first-child { padding-top: 0; }
.version-item:last-child { border-bottom: 0; padding-bottom: 0; }
.version-tag { width: 36px; height: 36px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--wine); background: var(--wine-soft); border-radius: 7px; flex-shrink: 0; }
.version-item h3 { font-size: 13px; }
.version-item p { font-size: 11px; color: var(--muted); }
.version-item .caption { margin-top: 8px; }
.payment-bar { display: flex; height: 7px; border-radius: 9px; background: #eae7df; overflow: hidden; margin: 20px 0 10px; }
.payment-bar span { display: block; background: var(--forest); }
.payment-totals { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; font-size: 11px; color: var(--muted); }
.payment-totals strong { color: var(--forest); }
.payment-rows { display: grid; gap: 12px; }
.payment-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 17px; border: 1px solid var(--line); border-radius: 7px; }
.payment-row strong { font-size: 12px; }
.payment-row p { font-size: 10px; color: var(--muted); }
.payment-row .badge { justify-self: end; }
.permission-row { display: grid; grid-template-columns: 32px 1fr 120px; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.permission-row:last-child { border: 0; }
.permission-row strong { display: block; font-size: 12px; }
.permission-row small { color: var(--muted); font-size: 10px; }
.permission-row select { font-size: 11px; width: 120px; }
.permission-note { border-left: 2px solid var(--wine); padding: 0 0 0 13px; margin: 20px 0 2px; font-size: 11px; color: var(--muted); }
.subscription-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 25px; }
.subscription-intro strong { font-size: 13px; }
.subscription-intro p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.plan-state { display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--forest); }
.plan-state>span:first-child { width: 5px; height: 5px; background: var(--forest); border-radius: 50%; }
.billing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; align-items: start; }
.base-plan { padding: 22px 24px; background: var(--forest); border: 1px solid var(--forest); border-radius: 9px; color: #fffefa; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.base-plan h2 { font-size: 18px; }
.base-plan p { font-size: 11px; color: #c2cfc3; margin-top: 7px; }
.base-plan .price { font-size: 25px; white-space: nowrap; }
.base-plan .price small { display: block; font-size: 10px; color: #c2cfc3; text-align: right; }
.base-plan .badge { background: #3e5d49; color: #e8eee4; margin-bottom: 10px; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 13px; }
.section-kicker h2 { font-size: 15px; }
.section-kicker .text-link { border: 0; background: transparent; padding: 0; font-size: 11px; }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.addon-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.addon-card.selected { background: #f8efef; border-color: #be8f98; }
.addon-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 14px; }
.addon-top>span { color: var(--wine); }
.addon-top svg { width: 22px; height: 22px; }
.addon-card h3 { font-size: 14px; }
.addon-card p { color: var(--muted); font-size: 10px; min-height: 34px; margin: 4px 0 16px; }
.addon-card strong { font-size: 17px; font-weight: 600; }
.addon-card strong small { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 10px; }
.resource-panel { margin-top: 24px; }
.resource-row { display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.resource-row:last-child { border: 0; }
.resource-row strong { display: block; font-size: 12px; }
.resource-row small { color: var(--muted); font-size: 10px; }
.resource-row input { padding: 8px 11px; width: 100%; border: 1px solid var(--line); background: var(--paper); font-variant-numeric: tabular-nums; }
.billing-summary { position: sticky; top: 25px; }
.quote-panel { border-color: #cec3b7; }
.quote-panel .panel-head { padding: 20px 22px; border-color: #e2dbd1; background: #f1ece4; }
.quote-panel .panel-head h2 { font-size: 16px; }
.quote-panel .panel-body { padding: 22px; }
.quote-lines { margin: 0 0 20px; padding: 0; list-style: none; }
.quote-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; padding: 7px 0; }
.quote-lines li span { color: var(--muted); }
.quote-lines li strong { font-weight: 500; white-space: nowrap; }
.quote-total { padding: 20px 0 17px; border-top: 1px solid var(--line); }
.quote-total span { display: block; font-size: 10px; color: var(--muted); }
.quote-total strong { display: block; font-size: 33px; font-weight: 500; line-height: 1.4; letter-spacing: -.05em; margin: 7px 0; }
.quote-total strong small { font-size: 13px; margin-left: 4px; }
.quote-total p { font-size: 10px; color: var(--muted); }
.quote-panel .btn { width: 100%; margin-top: 9px; }
.quote-disclaimer { font-size: 10px; color: var(--muted); margin-top: 15px; line-height: 1.85; }
.inline-error { color: var(--danger); font-size: 11px; min-height: 18px; padding-top: 7px; }
.policy-preview { margin-top: 19px; padding: 0 5px; }
.policy-preview h3 { font-size: 12px; }
.policy-preview p { font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 7px; }
.saved-plan { padding: 18px 22px; margin-top: 20px; border: 1px solid #c4d2c2; border-radius: 8px; background: var(--forest-soft); }
.saved-plan strong { font-size: 12px; color: var(--forest); }
.saved-plan p { font-size: 11px; color: var(--forest); margin-top: 5px; }
.invoice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 25px; align-items: start; }
.invoice-paper { padding: 33px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.invoice-masthead { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.invoice-masthead h2 { font-size: 25px; }
.invoice-masthead .caption { margin-top: 10px; }
.invoice-mark { font-family: Georgia, serif; color: var(--wine); font-size: 31px; line-height: 1; letter-spacing: -.06em; }
.invoice-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 26px 0; }
.invoice-meta strong { display: block; font-size: 12px; }
.invoice-meta small { color: var(--muted); font-size: 10px; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.invoice-table th { text-align: left; font-size: 10px; font-weight: 500; color: var(--muted); padding: 11px 6px; border-block: 1px solid var(--line); }
.invoice-table td { padding: 13px 6px; border-bottom: 1px solid #e8e5dd; }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: right; white-space: nowrap; }
.invoice-table td:nth-child(2), .invoice-table th:nth-child(2) { text-align: right; padding-right: 24px; }
.invoice-totals { padding: 17px 0; display: grid; gap: 10px; }
.invoice-totals>div { display: flex; gap: 20px; justify-content: space-between; font-size: 12px; }
.invoice-totals span { color: var(--muted); }
.invoice-totals .grand-total { border-top: 1px solid var(--ink); padding-top: 17px; margin-top: 7px; font-size: 16px; }
.grand-total strong { font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.invoice-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.9; color: var(--muted); }
.invoice-tools .panel-body { padding: 23px; }
.invoice-tools h2 { font-size: 15px; }
.invoice-tools .btn { width: 100%; margin-top: 12px; }
.invoice-tools p { color: var(--muted); font-size: 11px; margin: 10px 0; }
.segmented { display: flex; gap: 3px; padding: 4px; background: #efede6; border: 1px solid var(--line); border-radius: 7px; margin: 19px 0; }
.segmented button { flex: 1; border: 0; padding: 7px; font-size: 11px; }
.segmented button.active { background: var(--surface); box-shadow: 0 1px 3px #30272412; color: var(--wine); font-weight: 650; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 42px; padding: 19px 0 25px; border-top: 1px solid var(--line); color: #8b8077; font-size: 10px; }
.mobile-nav { display: none; }
.toast { position: fixed; bottom: 30px; left: 50%; z-index: 50; transform: translate(-50%, 20px); background: var(--forest); color: white; border-radius: 8px; padding: 14px 22px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 36px); text-align: center; box-shadow: 0 7px 30px #203e3226; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); width: 580px; max-width: calc(100vw - 32px); max-height: 90dvh; box-shadow: 0 25px 80px #30272433; }
dialog::backdrop { background: #30272466; backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; padding: 24px 27px; border-bottom: 1px solid var(--line); }
.dialog-head p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.icon-button { display: grid; place-items: center; padding: 5px; width: 33px; height: 33px; border: 0; }
.dialog-body { padding: 24px 27px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 6px; font-size: 11px; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 10px 11px; font-size: 12px; }
.field small { font-size: 10px; color: var(--muted); }
.field textarea { resize: vertical; min-height: 75px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 18px 27px; border-top: 1px solid var(--line); }
.dialog-body .inline-error { margin-top: 12px; }
.visually-hidden { 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: 1700px) { main { padding-top: 50px; } }
@media (max-width: 1250px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-inline: 16px; }
  .profile { margin-inline: -16px; padding-inline: 19px; }
  .topbar, .preview-banner { padding-inline: 28px; }
  main { padding-inline: 28px; }
  .app-footer { margin-inline: 28px; }
  .billing-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 254px; gap: 20px; }
  .addon-card { padding: 17px; }
  .invoice-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 20px; }
  .invoice-paper { padding: 26px; }
  .project-cover { grid-template-columns: 1fr 210px; }
  .summary-strip .stat { margin-right: 12px; padding-right: 12px; }
  .data-table th, .data-table td { padding-inline: 14px; }
}
@media (max-width: 1060px) {
  .app-shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .profile { margin-inline: -12px; padding-inline: 16px; }
  .primary-nav a { font-size: 12px; gap: 8px; padding-inline: 10px; }
  .company { gap: 7px; }
  .company strong { font-size: 11px; }
  .company small { font-size: 10px; }
  .company-mark { width: 29px; height: 33px; }
  .sidebar-note { margin-inline: 5px; }
  .sidebar-note strong { font-size: 10px; }
  .topbar-actions .text-link { display: none; }
  .page-head { align-items: start; flex-direction: column; gap: 17px; }
  .page-head h1 { font-size: 31px; }
  .overview-grid { grid-template-columns: 1fr; }
  .handover { padding: 24px; }
  .detail-layout, .billing-layout, .invoice-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .detail-aside .panel { margin-bottom: 0; }
  .billing-summary { position: static; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
  .policy-preview { margin-top: 0; padding: 18px 0; }
  .invoice-tools { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .invoice-tools .policy-preview { padding: 0; }
  .project-cover { grid-template-columns: 1fr 175px; }
  .project-cover-content { padding: 25px; }
  .project-cover h2 { font-size: 24px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-strip .stat:nth-child(2) { border-right: 0; }
  .summary-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 62px; padding-inline: 22px; }
  .breadcrumb { font-size: 11px; gap: 10px; }
  .preview-banner { padding: 10px 22px; align-items: start; font-size: 10px; }
  .preview-banner svg { margin-top: 2px; }
  main { padding: 30px 22px 35px; }
  .app-footer { margin: 0 22px; padding-bottom: 92px; flex-wrap: wrap; gap: 6px; }
  .mobile-nav { display: flex; position: fixed; z-index: 15; bottom: 0; left: 0; right: 0; border-top: 1px solid var(--line); background: #f7f6f1f5; backdrop-filter: blur(10px); padding: 8px 7px max(9px, env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav a { display: grid; place-items: center; flex: 1; min-height: 45px; color: var(--muted); gap: 3px; font-size: 9px; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav .active { color: var(--wine); font-weight: 700; }
  .toast { bottom: 83px; width: max-content; font-size: 11px; }
  .project-cover { grid-template-columns: 1fr 150px; }
  .page-head { margin-bottom: 24px; }
  .page-subtitle { font-size: 12px; }
  .page-head h1 { font-size: 30px; }
  .summary-strip .stat { padding-block: 16px; }
  .summary-strip .stat-number { font-size: 26px; }
  .panel-head { padding: 20px; }
  .panel-body { padding: 20px; }
  .contract-table thead { display: none; }
  .contract-table, .contract-table tbody { display: block; }
  .contract-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 19px 20px; gap: 8px 15px; }
  .contract-table tr:last-child { border-bottom: 0; }
  .contract-table td { display: block; padding: 0; border: 0; }
  .contract-table td:first-child { grid-column: 1 / -1; min-width: 0; }
  .contract-table td:nth-child(3) { text-align: right; grid-column: 2; grid-row: 2; font-size: 11px; }
  .contract-table td:nth-child(4) { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 10px; }
  .contract-table td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .contract-table td:nth-child(6) { display: none; }
  .contract-table .row-title { font-size: 13px; }
  .contract-table small { margin-bottom: 5px; }
  .billing-summary, .invoice-tools { grid-template-columns: 1fr; gap: 0; }
  .policy-preview { margin-top: 20px; }
  .invoice-tools .policy-preview { margin-top: 20px; }
  .billing-layout { gap: 24px; }
}
@media (max-width: 480px) {
  main { padding-inline: 18px; }
  .topbar { padding-inline: 18px; }
  .preview-banner { padding-inline: 18px; }
  .sample-pill { font-size: 8px; }
  .page-head h1 { font-size: 28px; }
  .eyebrow { font-size: 9px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .project-cover { display: block; }
  .project-cover-content { padding: 26px 23px; }
  .project-art { min-height: 106px; }
  .project-art:before { top: 16px; left: 42px; }
  .project-art:after { top: 50px; left: 118px; }
  .project-art span { font-size: 9px; top: 17px; right: 22px; }
  .project-cover h2 { font-size: 25px; }
  .project-cover-meta { gap: 12px; margin-top: 20px; }
  .project-tabs { gap: 21px; }
  .stat { padding: 18px 15px; }
  .stat-number { font-size: 26px; }
  .stat-label { font-size: 10px; }
  .stat-note { font-size: 9px; }
  .task-row { gap: 9px; }
  .task-row strong { font-size: 11px; }
  .task-row .text-link { font-size: 10px; }
  .task-icon { width: 29px; height: 31px; }
  .panel-body, .panel-head { padding-inline: 19px; }
  .toolbar { flex-wrap: wrap; padding: 15px; gap: 10px; }
  .toolbar .search { flex: 1 1 100%; max-width: none; }
  .toolbar select { width: 100%; }
  .detail-aside { grid-template-columns: 1fr; }
  .key-values { gap: 21px 15px; }
  .key-values dd { font-size: 12px; }
  .key-values .value-large { font-size: 21px; }
  .review-actions { align-items: stretch; flex-direction: column; }
  .review-actions .caption { font-size: 10px; }
  .permission-row { grid-template-columns: 28px 1fr 100px; gap: 9px; }
  .permission-row select { width: 100px; padding-left: 7px; padding-right: 20px; }
  .permission-row .avatar { width: 28px; height: 28px; }
  .addon-grid { gap: 9px; }
  .addon-card { padding: 17px 14px; }
  .addon-card p { font-size: 10px; min-height: 52px; }
  .addon-card strong { font-size: 16px; }
  .addon-card strong small { margin-left: 1px; font-size: 9px; }
  .base-plan { padding: 22px 20px; grid-template-columns: 1fr; gap: 18px; }
  .base-plan .price { font-size: 28px; }
  .base-plan .price small { display: inline; margin-left: 7px; }
  .subscription-intro { grid-template-columns: 1fr; gap: 13px; }
  .invoice-paper { padding: 24px 18px; }
  .invoice-masthead h2 { font-size: 23px; }
  .invoice-mark { font-size: 28px; }
  .invoice-table td, .invoice-table th { padding-inline: 2px; }
  .invoice-table td:nth-child(2), .invoice-table th:nth-child(2) { padding-right: 13px; }
  .grand-total strong { font-size: 21px; }
  .invoice-totals .grand-total { font-size: 14px; }
  .dialog-head, .dialog-body, .dialog-actions { padding-inline: 21px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-footer { margin-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body { background: white; }
  .sidebar, .topbar, .preview-banner, .mobile-nav, .head-actions, .app-footer, .invoice-tools, .toast, .page-head { display: none !important; }
  .app-shell { display: block; }
  main { padding: 0; }
  .invoice-layout { display: block; }
  .invoice-paper { border: 0; padding: 16px; }
  .invoice-note { color: #555; }
  .invoice-table tr { break-inside: avoid; }
  @page { size: A4; margin: 15mm; }
}
