:root {
  color-scheme: light;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #1c2c3b;
  background: #f5f7fa;
  font-synthesis: none;
  --navy: #12283d;
  --teal: #087f78;
  --teal-dark: #086c66;
  --muted: #697b8c;
  --border: #e3e9ef;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button, a, input, select, textarea, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid #29aaa0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
svg { display: block; flex-shrink: 0; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: white; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 750; letter-spacing: -.6px; white-space: nowrap; }
.brand b { color: #77d0c4; font-weight: 450; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: #11948b; border-radius: 10px 10px 10px 3px; color: #fff; font-size: 26px; line-height: 1; font-weight: 800; }
.brand-dark { color: var(--navy); }
.brand-dark b { color: var(--teal); }
.environment-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: #416575; background: #eaf1f4; border: 1px solid #dbe6eb; border-radius: 6px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.environment-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #23978c; }
.environment-badge-dark { color: #bad1d9; background: #ffffff08; border-color: #ffffff17; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; line-height: 1.45; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 3px 6px #087f7812; }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); }
.button-secondary { background: #fff; border-color: #d9e2ea; color: #344b5e; }
.button-secondary:hover:not(:disabled) { background: #f1f5f8; border-color: #b8c8d4; }
.button-quiet { background: transparent; color: #64798b; padding-inline: 10px; }
.button-quiet:hover:not(:disabled) { background: #edf2f6; color: #253c4f; }
.button-full { width: 100%; }
.plus-sign { font-size: 21px; font-weight: 400; line-height: 16px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: var(--teal); }
.notice { padding: 12px 15px; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.notice-error { background: #fff2f0; border: 1px solid #f1ceca; color: #a34137; }
.notice-info { background: #ebf7f3; border: 1px solid #cce9de; color: #25614d; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: #324a5d; }
.required-label { font-size: 10px; font-weight: 500; color: #087f78; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #dce4ec; border-radius: 7px; background: #fff; color: #24384a; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9aa7b4; font-size: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #71bab2; outline-offset: 1px; border-color: #7dbeb7; }
input:disabled, select:disabled, textarea:disabled { background: #f2f5f7; color: #798995; }
textarea { resize: vertical; min-height: 85px; max-height: 220px; }
.field-help { font-size: 11px; color: #7b8b98; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #dce9e7; border-top-color: var(--teal); border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.boot-screen { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 30px; }
.boot-card { max-width: 420px; text-align: center; }
.boot-card h1 { font-size: 21px; letter-spacing: -.5px; margin: 15px 0 8px; }
.boot-card p { color: var(--muted); font-size: 13px; }
.boot-card button { margin-top: 22px; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(350px, 44%) 1fr; }
.auth-story { display: flex; flex-direction: column; padding: 48px 12%; color: #fff; background: radial-gradient(ellipse at 95% 70%, #174f54 0, transparent 58%), #142b40; min-height: 100vh; }
.auth-story-copy { margin-block: auto; padding: 60px 0; }
.auth-story-copy .eyebrow { color: #73c8bd; letter-spacing: 2px; margin-bottom: 23px; }
.auth-story-copy h2 { font-size: clamp(30px, 3.2vw, 47px); line-height: 1.45; font-weight: 600; letter-spacing: -1.6px; }
.auth-story-copy > p:last-of-type { margin-top: 23px; color: #b7cbd6; font-size: 14px; line-height: 1.9; }
.story-rule { display: flex; gap: 7px; margin-top: 38px; }
.story-rule span { height: 3px; width: 24px; background: #3c7476; border-radius: 3px; }
.story-rule span:first-child { background: #63c2b5; width: 50px; }
.auth-story-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 10px; color: #829da9; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 55px 35px 25px; background: #fff; }
.auth-card { width: min(100%, 370px); margin-block: auto; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 650; color: #087f78; margin-bottom: 11px; }
.auth-card h1 { font-size: 27px; font-weight: 700; letter-spacing: -1px; }
.auth-description { font-size: 13px; color: #7b8a98; margin: 10px 0 30px; line-height: 1.8; }
.auth-card .notice { margin-bottom: 20px; }
.auth-card .button-full { margin-top: 4px; min-height: 45px; }
.auth-footnote { margin-top: 18px; font-size: 11px; color: #83929e; text-align: center; line-height: 1.8; }
.auth-bottom-note { padding-top: 35px; color: #96a3ae; font-size: 11px; }
.workspace { display: flex; min-height: 100vh; }
.sidebar { width: 224px; flex-shrink: 0; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; background: var(--navy); padding: 32px 21px 20px; color: #a2b6c5; }
.sidebar .brand { padding-left: 5px; }
.sidebar-caption { margin: 48px 14px 13px; font-size: 9px; letter-spacing: 1.8px; font-weight: 650; color: #718c9f; }
.nav-item { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 12px 13px; text-decoration: none; font-size: 13px; }
.nav-item svg { height: 19px; width: 19px; }
.nav-item.is-active { background: #244557; color: #e3f7f0; box-shadow: inset 3px 0 0 #63c6b6; }
.nav-item + .nav-item { margin-top: 5px; }
.nav-item:hover:not(.is-active):not([aria-disabled="true"]) { color: #e1f3f0; background: #ffffff07; }
.nav-item[aria-disabled="true"] { opacity: .6; cursor: default; }
.nav-item:not(.is-active) .nav-dot { display: none; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #70d4bc; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding: 28px 7px 0; }
.sidebar-bottom p { margin: 13px 0 25px; font-size: 11px; line-height: 1.8; color: #8fa7b6; }
.sidebar-footer { border-top: 1px solid #ffffff10; padding-top: 18px; font-size: 9px; letter-spacing: 1.5px; color: #5e7d92; }
.workspace-body { width: calc(100% - 224px); margin-left: 224px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; padding: 0 40px; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: 12px; font-size: 11px; color: #96a2ae; white-space: nowrap; }
.breadcrumb strong { color: #53697c; font-weight: 500; }
.account-area { display: flex; gap: 11px; align-items: center; min-width: 0; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #e8f2ef; color: #4b8276; border-radius: 50%; font-size: 12px; font-weight: 700; }
.user-info { display: flex; flex-direction: column; gap: 1px; max-width: 190px; }
.user-info > span:first-child { color: #344e62; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-info > span:last-child { color: #91a0ac; font-size: 10px; }
.account-area .button { min-height: 32px; font-size: 11px; padding: 6px 8px; margin-left: 4px; }
.mobile-environment { display: none; }
.main-content { max-width: 1600px; padding: 39px 40px 20px; margin-inline: auto; }
.main-content:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { font-size: 28px; letter-spacing: -1.3px; font-weight: 700; line-height: 1.6; margin-top: 4px; }
.page-description { color: #7b8a98; font-size: 12px; margin-top: 3px; }
.main-content > section > .notice { margin-bottom: 20px; }
.overview-grid { display: grid; grid-template-columns: minmax(260px, .95fr) minmax(300px, 1.6fr); gap: 18px; margin-bottom: 26px; }
.total-card, .welcome-card { background: #fff; border: 1px solid var(--border); border-radius: 11px; min-height: 135px; }
.total-card { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.card-label { font-size: 11px; color: #718293; font-weight: 600; }
.total-value { display: flex; align-items: baseline; gap: 7px; margin: 1px 0 2px; }
.total-value strong { font-size: 32px; color: #183748; font-weight: 650; line-height: 1.5; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.total-value > span { font-size: 12px; color: #7f909e; }
.total-card p { font-size: 10px; color: #97a4ae; }
.total-art { display: grid; grid-template-columns: repeat(2, 19px); grid-template-rows: repeat(2, 19px); gap: 4px; transform: rotate(-6deg); margin-right: 3px; margin-left: 12px; }
.total-art i { background: #d7eae6; border-radius: 5px; }
.total-art i:nth-child(2) { background: #80b9ad; }
.total-art i:nth-child(3) { background: #a0ccbf; }
.total-art i:nth-child(4) { background: #e6f0ee; }
.welcome-card { display: flex; align-items: center; gap: 16px; padding: 24px 25px; background: #eef5f4; border-color: #dce9e6; }
.welcome-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border-radius: 11px; background: #fff; color: #478c7c; }
.welcome-icon svg { width: 23px; height: 23px; }
.welcome-card h2 { font-size: 14px; font-weight: 650; color: #315b55; margin-bottom: 5px; overflow-wrap: anywhere; }
.welcome-card p { font-size: 11px; color: #6f8985; }
.customer-panel { background: #fff; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; box-shadow: 0 3px 10px #12283d02; }
.panel-heading { padding: 23px 25px 19px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2 { font-size: 15px; letter-spacing: -.4px; font-weight: 700; }
.panel-heading p { margin-top: 4px; font-size: 11px; color: #8c9aa7; }
.list-caption { color: #8c9aa7; font-size: 10px; white-space: nowrap; }
.search-toolbar { display: flex; align-items: center; gap: 8px; padding: 0 25px 20px; }
.search-field { display: flex; align-items: center; width: min(390px, 100%); position: relative; }
.search-field svg { position: absolute; width: 16px; height: 16px; left: 12px; color: #8d9caa; pointer-events: none; }
.search-field input { padding: 9px 12px 9px 37px; background: #fcfdfe; min-height: 39px; font-size: 12px; }
.search-toolbar .button { min-height: 39px; padding-block: 8px; font-size: 12px; }
.query-description { padding: 0 25px 16px; font-size: 11px; color: #5b7c76; overflow-wrap: anywhere; }
.customer-list-region { min-height: 300px; }
.table-wrapper { overflow-x: auto; }
.customer-table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: left; }
.customer-table th { background: #f7f9fb; padding: 13px 15px; border-block: 1px solid #eaf0f4; color: #7a8d9e; font-size: 10px; font-weight: 600; white-space: nowrap; }
.customer-table th:first-child, .customer-table td:first-child { padding-left: 25px; }
.customer-table th:last-child, .customer-table td:last-child { padding-right: 25px; }
.customer-table td { padding: 17px 15px; border-bottom: 1px solid #edf1f5; vertical-align: middle; color: #64798b; }
.customer-table tr:last-child td { border-bottom: 0; }
.customer-table tbody tr:hover { background: #fbfdfd; }
.customer-table td:nth-child(2), .customer-table td:nth-child(3), .customer-table td:nth-child(5), .customer-table td:nth-child(6) { white-space: nowrap; }
.customer-table td:nth-child(4) { overflow-wrap: anywhere; min-width: 140px; }
.customer-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 360px; }
.customer-avatar { width: 33px; height: 33px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #dfe9ed; background: #f2f7f8; border-radius: 9px; color: #628996; font-size: 12px; font-weight: 650; }
.customer-avatar.business { color: #7b80a4; background: #f4f4fb; border-color: #e7e7f1; }
.customer-name { color: #344e60; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.customer-name-button { display: block; max-width: 100%; padding: 0; border: 0; border-radius: 3px; background: transparent; text-align: left; line-height: 1.7; }
.customer-name-button:hover:not(:disabled) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.customer-address { margin-top: 2px; font-size: 10px; color: #99a5af; overflow-wrap: anywhere; }
.type-label { display: inline-block; padding: 3px 7px; border: 1px solid #e6edf1; border-radius: 5px; background: #fafcfd; color: #7b8a99; font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-size: 10px; background: #eef7f2; color: #5b8d76; }
.status-pill::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.status-pill.is-inactive { background: #f1f3f6; color: #8c98a3; }
.empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 25px 46px; text-align: center; border-top: 1px solid #edf1f5; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #eff5f4; color: #8daea5; margin-bottom: 17px; }
.empty-icon svg { width: 30px; height: 30px; }
.empty-state h3 { font-size: 14px; font-weight: 600; color: #536b7b; }
.empty-state p { color: #94a1ad; font-size: 11px; margin: 7px 0 18px; }
.empty-state .button { font-size: 11px; min-height: 34px; }
.loading-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; color: #8b9ba8; font-size: 12px; border-top: 1px solid #edf1f5; }
.list-error { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 25px 24px; padding: 18px; border: 1px solid #f0d8d2; border-radius: 9px; background: #fff9f7; color: #934f44; font-size: 12px; }
.list-error strong { font-size: 12px; font-weight: 600; }
.list-error p { font-size: 11px; margin-top: 4px; }
.list-error .button { font-size: 11px; min-height: 35px; }
.list-footer { border-top: 1px solid #eaf0f4; display: flex; align-items: center; justify-content: space-between; padding: 15px 25px; }
.list-footer > p { color: #95a2ae; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 6px; }
.page-button { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid #e3eaf0; border-radius: 6px; background: #fff; color: #718798; }
.page-button:hover:not(:disabled) { background: #f1f6f5; }
.page-button svg { width: 14px; height: 14px; }
.pagination > span { min-width: 29px; height: 29px; display: grid; place-items: center; font-size: 11px; color: #467e72; background: #edf5f2; border-radius: 6px; }
.privacy-note { margin-top: 13px; font-size: 10px; line-height: 1.8; color: #9aa6b1; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 17px; border-top: 1px solid #e6ecf1; color: #a3aeb7; font-size: 9px; }
.page-footer > span:first-child { font-weight: 700; letter-spacing: 1px; }
.customer-dialog { width: min(620px, calc(100vw - 36px)); max-height: calc(100vh - 48px); padding: 28px; border: 1px solid #dbe4eb; border-radius: 14px; color: #243b4d; background: #fff; box-shadow: 0 24px 90px #0e273d40; }
.customer-dialog::backdrop { background: #11283d76; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { font-size: 22px; letter-spacing: -.7px; margin-top: 5px; }
.dialog-close { width: 30px; height: 30px; border: 0; background: #f2f5f8; color: #7e91a0; border-radius: 7px; font-size: 23px; line-height: 1; }
.dialog-close:hover:not(:disabled) { background: #e8eef2; }
.dialog-description { font-size: 12px; color: #8493a0; margin: 10px 0 25px; }
.customer-dialog .notice { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
.field-full { grid-column: 1 / -1; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 9px; padding-top: 20px; border-top: 1px solid #e8eef2; }
.dialog-actions > div { display: flex; gap: 8px; }
#customer-detail-dialog .dialog-actions > div { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.dialog-actions > .field-help { max-width: 210px; }
.detail-dialog { width: min(660px, calc(100vw - 36px)); }
.detail-loading { min-height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; color: #8495a3; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 0; }
.detail-grid > div { min-width: 0; padding: 15px 0; border-bottom: 1px solid #edf1f4; }
.detail-grid dt { margin-bottom: 6px; color: #8898a5; font-size: 11px; }
.detail-grid dd { margin: 0; color: #344e60; font-size: 13px; overflow-wrap: anywhere; }
.detail-grid .detail-field-full { grid-column: 1 / -1; }
.detail-multiline { white-space: pre-wrap; }
.detail-privacy-note { margin-top: 17px; font-size: 10px; color: #8c9ba7; line-height: 1.8; }
.detail-reload-actions { display: flex; justify-content: flex-start; margin: -7px 0 22px; }
.detail-reload-actions .button { min-height: 35px; font-size: 11px; white-space: normal; text-align: left; }
.consultation-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e1e9ef; }
.consultation-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.consultation-heading h3 { color: #344e60; font-size: 15px; letter-spacing: -.4px; }
.consultation-heading h3 span { margin-left: 6px; color: #78998e; font-size: 11px; font-weight: 500; }
.consultation-heading p { margin-top: 4px; color: #91a0ac; font-size: 10px; }
.consultation-heading .button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.consultation-form { padding: 18px; border: 1px solid #dfe9e7; border-radius: 9px; background: #f7faf9; margin-bottom: 20px; }
.consultation-form .field { margin-bottom: 15px; }
.consultation-form label { font-size: 12px; }
.consultation-form input, .consultation-form select, .consultation-form textarea { font-size: 12px; }
.consultation-form textarea { max-height: 280px; }
.consultation-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.consultation-form-actions .button { min-height: 35px; font-size: 11px; }
.consultation-section .notice { margin-bottom: 15px; }
.consultation-loading { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 100px; font-size: 11px; color: #8799a6; }
.consultation-loading .spinner { width: 18px; height: 18px; }
.consultation-empty { padding: 28px 16px; border: 1px dashed #dce7e6; border-radius: 8px; background: #f9fbfb; text-align: center; font-size: 11px; line-height: 1.8; color: #8b9caa; }
.consultation-list-error { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px; border: 1px solid #f0d8d2; border-radius: 8px; background: #fff9f7; font-size: 11px; color: #934f44; }
.consultation-list-error .button { min-height: 32px; font-size: 10px; }
.consultation-items { list-style: none; padding: 0 8px 0 0; margin: 0; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; }
.consultation-entry { padding: 17px 0; border-bottom: 1px solid #eaf0f3; }
.consultation-entry:first-child { padding-top: 4px; }
.consultation-entry:last-child { border-bottom: 0; }
.consultation-entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.consultation-channel { display: inline-block; padding: 3px 8px; border-radius: 5px; background: #edf5f2; color: #5b8d76; font-size: 10px; font-weight: 600; }
.consultation-date { color: #8396a5; font-size: 10px; font-variant-numeric: tabular-nums; }
.consultation-content { margin: 0; color: #435d70; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.consultation-outcome { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: #f5f8fa; }
.consultation-outcome strong { display: block; font-size: 10px; font-weight: 600; color: #7e919f; margin-bottom: 4px; }
.consultation-outcome p { font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: #6b8090; }
.consultation-entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; margin-top: 10px; color: #9aa7b2; font-size: 10px; }
.consultation-entry-footer span { overflow-wrap: anywhere; }
.consultation-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 12px; border-top: 1px solid #eaf0f3; }
.consultation-footer > p { font-size: 10px; color: #91a0ac; }
.inquiry-notice { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.inquiry-notice .button { min-height: 30px; font-size: 11px; padding-block: 6px; color: #2d7561; }
.inquiry-search-toolbar { flex-wrap: wrap; }
.inquiry-status-filter { width: 130px; flex-shrink: 0; }
.inquiry-status-filter select { min-height: 39px; padding: 9px 11px; font-size: 11px; background: #fcfdfe; }
.inquiry-table { min-width: 850px; }
.inquiry-table .inquiry-message-cell { min-width: 250px; max-width: 390px; white-space: normal; }
.inquiry-table td:nth-child(2) { min-width: 170px; max-width: 270px; white-space: normal; }
.inquiry-table td:nth-child(4), .inquiry-table td:nth-child(5) { min-width: auto; white-space: nowrap; }
.inquiry-summary-button { max-width: 350px; line-height: 1.75; }
.inquiry-kind { margin-top: 5px; font-size: 10px; color: #8e9eaa; }
.inquiry-subtext { max-width: 300px; margin-top: 3px; color: #96a4af; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inquiry-status-assigned { background: #eef3fb; color: #708cb2; }
.inquiry-status-in_progress { background: #fff7e8; color: #aa8b42; }
.inquiry-status-resolved { background: #eef7f2; color: #5b8d76; }
.inquiry-status-closed { background: #f1f3f6; color: #8c98a3; }
.inquiry-form-dialog, .inquiry-detail-dialog { width: min(700px, calc(100vw - 36px)); }
.inquiry-form-dialog > .notice { margin-bottom: 22px; font-size: 11px; line-height: 1.8; }
.inquiry-form-dialog textarea { max-height: 300px; }
.inquiry-full-message { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; line-height: 1.9; }
.inquiry-assignee-summary { padding: 0 0 18px; }
.inquiry-assignee-summary > span { display: block; font-size: 12px; font-weight: 650; color: #6e8393; margin-bottom: 12px; }
.inquiry-assignee-summary p { color: #5c7586; font-size: 13px; overflow-wrap: anywhere; }
.inquiry-link-section { padding: 20px 0 9px; margin-top: 2px; border-top: 1px solid #e8eef2; }
.inquiry-link-section h3 { font-size: 13px; color: #405b6d; margin-bottom: 12px; }
.inquiry-customer-selection { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 14px; border: 1px solid #dfe8e6; border-radius: 8px; background: #f7faf9; }
.inquiry-customer-selection > span { color: #427569; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.inquiry-customer-selection .button { min-height: 32px; font-size: 11px; padding: 6px 11px; }
.inquiry-link-section > .field-help { margin-top: 8px; }
.inquiry-link-section > .notice { margin-top: 13px; font-size: 11px; }
.inquiry-restore-button { min-height: 33px; margin-top: 12px; font-size: 11px; }
.inquiry-customer-search { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.inquiry-customer-search input { min-width: 0; font-size: 12px; padding-block: 9px; }
.inquiry-customer-search .button { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.inquiry-customer-search-empty { font-size: 11px; color: #8e9fab; text-align: center; padding: 20px 10px; }
#inquiry-customer-search-count { margin-top: 12px; }
#inquiry-customer-search-error { margin-top: 13px; font-size: 11px; }
#inquiry-staff-count { margin-top: 12px; }
#inquiry-staff-error { margin-top: 13px; font-size: 11px; }
#inquiry-staff-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
.opportunity-table { min-width: 820px; }
.opportunity-table .opportunity-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
#opportunity-list-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
#opportunity-customer-error, #opportunity-customer-count { margin-top: 12px; }
#opportunity-stage-form { margin-top: 20px; }
#opportunity-history-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
.opportunity-stage-change { color: #30495a; font-size: 12px; line-height: 1.7; }
#opportunity-activities-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
.opportunity-activity-title { color: #30495a; font-size: 13px; font-weight: 600; }
.opportunity-activity-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.opportunity-activity-meta { color: #7c8f9d; font-size: 11px; line-height: 1.8; margin-block: 8px; }
.opportunity-activity-complete { color: #4d8a7c; font-size: 11px; }
#inquiry-consultations-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
.duplicate-section { margin-block: 20px; padding: 16px; background: #f5f9f8; border: 1px solid #e1ece8; border-radius: 9px; }
.duplicate-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.duplicate-heading h3 { margin: 0; color: #344e60; font-size: 13px; }
.duplicate-heading .button { min-height: 34px; font-size: 11px; }
.duplicate-notice { font-size: 11px; line-height: 1.7; color: #617b77; margin-top: 12px; }
.duplicate-candidates { list-style: none; margin: 12px 0 0; padding: 0; }
.duplicate-candidates li { padding: 12px 0; border-top: 1px solid #e1e9e6; }
.duplicate-candidates strong { color: #30495a; font-size: 12px; }
.duplicate-candidates p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; color: #70858d; overflow-wrap: anywhere; }
.duplicate-candidates .duplicate-reasons { color: #4d8a7c; }
.dashboard-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.dashboard-panel { padding: 24px; background: #fff; border: 1px solid #e1e9ef; border-radius: 12px; }
.dashboard-panel h2 { margin: 0 0 20px; color: #344e60; font-size: 16px; }
.dashboard-metrics { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.dashboard-metrics dt { color: #7a8d9a; font-size: 11px; }
.dashboard-metrics dd { margin: 7px 0 0; color: #254359; font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-opportunities { margin-top: 22px; }
.flow-status-panel { max-width: 620px; }
.flow-status-panel .eyebrow { margin-bottom: 10px; }
.flow-status-mode { font-size: 23px; color: #467c6f; margin-block: 18px; }
.flow-status-panel .environment-badge { margin-top: 20px; }
.opportunity-view-switch { display: flex; gap: 8px; padding: 0 24px 18px; }
.opportunity-view-switch [aria-pressed="true"] { background: #e4f1eb; border-color: #aacbbd; color: #356e5b; }
.opportunity-board-scope { padding: 0 24px; color: #718793; font-size: 11px; line-height: 1.8; }
.opportunity-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 240px); gap: 14px; overflow-x: auto; padding: 12px 24px 24px; overscroll-behavior-inline: contain; }
.opportunity-board-column { padding: 14px; border: 1px solid #dfe9e7; border-radius: 9px; background: #f5f9f8; }
.opportunity-board-column h3 { margin: 0 0 16px; color: #385664; font-size: 12px; }
.opportunity-board-column h3 span { margin-left: 7px; color: #7b968d; font-weight: 400; }
.opportunity-board-card { padding: 13px; background: #fff; border: 1px solid #e0e9e5; border-radius: 7px; margin-bottom: 10px; }
.opportunity-board-card p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: #71848d; overflow-wrap: anywhere; }
.opportunity-board-card .opportunity-amount { color: #385f55; font-variant-numeric: tabular-nums; }
.opportunity-board-empty { color: #8c9eaa; font-size: 11px; line-height: 1.8; }
.staff-table { min-width: 640px; }
#staff-footer .page-button, #resource-assignment-search-footer .page-button { width: auto; min-width: 36px; padding-inline: 8px; font-size: 10px; }
#staff-edit-form { margin-top: 20px; }
#resource-assignment-search-count, #resource-assignment-search-error { margin-top: 12px; }
.inquiry-customer-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 230px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #e1e9ed; border-radius: 7px; }
.inquiry-customer-results > li + li { border-top: 1px solid #edf1f4; }
.inquiry-customer-option { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; padding: 11px 13px; border: 0; background: #fff; text-align: left; }
.inquiry-customer-option:hover:not(:disabled) { background: #f2f8f5; }
.inquiry-customer-option .customer-name { font-size: 12px; min-width: 0; }
.inquiry-customer-option .inquiry-subtext { max-width: 45%; font-size: 10px; flex-shrink: 0; margin: 0; }
.inquiry-followup-section { margin-top: 24px; padding-top: 22px; }
.inquiry-followup-section .consultation-items { max-height: 390px; }
.inquiry-followup-author { color: #658173; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.inquiry-followup-entry .consultation-entry-heading { align-items: flex-start; }
.company-form-dialog, .company-detail-dialog { width: min(710px, calc(100vw - 36px)); }
.company-table { min-width: 720px; }
.company-table td:nth-child(4), .company-table td:nth-child(5) { white-space: nowrap; }
.company-contact-table { min-width: 590px; margin-top: 8px; }
.company-contact-table th:first-child, .company-contact-table td:first-child { padding-left: 14px; }
.company-contact-table th:last-child, .company-contact-table td:last-child { padding-right: 14px; }
.company-contact-table td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; }
.company-contact-table td:nth-child(4) { white-space: nowrap; }
.company-contact-table .inquiry-subtext { max-width: 180px; }
.company-contact-edit-button { display: inline-flex; min-height: 26px; margin-top: 5px; padding: 3px 0; color: #4d8a7c; font-size: 10px; }
.company-contact-edit-button:hover:not(:disabled) { background: transparent; color: #176e5c; text-decoration: underline; text-underline-offset: 3px; }
#company-edit-form, #company-contact-edit-fields { margin-top: 20px; }
#company-contact-edit-panel > .notice { margin-bottom: 18px; }
.customer-company-name { margin-top: 3px; color: #6d9287; font-size: 10px; overflow-wrap: anywhere; }
.customer-company-link { padding: 19px 0 12px; margin-top: 3px; border-top: 1px solid #e8eef2; }
.customer-company-link h3 { font-size: 13px; color: #405b6d; margin-bottom: 12px; }
.customer-company-link h3 > span { margin-left: 5px; font-weight: 400; }
.customer-company-link > .field-help { margin-top: 8px; }
.customer-company-link .notice { margin-top: 13px; font-size: 11px; }
.customer-company-link [id$="-count"] { margin-top: 12px; }
.noscript-notice { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 200; padding: 18px; color: #7e4238; background: #fff3ed; border: 1px solid #e8c8ba; border-radius: 9px; }
@media (min-width: 1550px) { .main-content { padding-top: 45px; } .customer-table td { padding-block: 20px; } }
@media (max-width: 1150px) {
  .sidebar { width: 190px; padding-inline: 15px; }
  .workspace-body { margin-left: 190px; width: calc(100% - 190px); }
  .topbar { padding-inline: 26px; }
  .main-content { padding-inline: 26px; }
  .overview-grid { grid-template-columns: 1fr 1.3fr; gap: 14px; }
  .total-card, .welcome-card { padding-inline: 19px; }
  .customer-table { min-width: 790px; }
  .auth-story { padding-inline: 10%; }
}
@media (max-width: 850px) {
  .sidebar { width: 166px; padding-inline: 12px; }
  .sidebar .brand { font-size: 18px; gap: 7px; padding-left: 4px; }
  .sidebar .brand-mark { width: 30px; height: 30px; font-size: 23px; }
  .sidebar-caption { margin-top: 38px; }
  .workspace-body { margin-left: 166px; width: calc(100% - 166px); }
  .topbar { padding-inline: 21px; height: 69px; }
  .main-content { padding: 30px 21px 18px; }
  .breadcrumb { font-size: 10px; gap: 8px; }
  .overview-grid { grid-template-columns: 1fr; gap: 12px; }
  .total-card { min-height: 122px; }
  .welcome-card { min-height: 91px; padding-block: 20px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: 25px; }
  .page-heading .button { margin-top: 23px; }
  .page-description { max-width: 260px; }
  .user-info { max-width: 100px; }
  .account-area { gap: 7px; }
  .auth-screen { grid-template-columns: minmax(280px, 42%) 1fr; }
  .auth-story { padding: 35px 28px; }
  .auth-story-copy h2 { font-size: 31px; }
  .auth-story-copy > p:last-of-type { font-size: 12px; }
  .auth-story-footer { align-items: flex-start; flex-direction: column; }
  .auth-panel { padding-inline: 28px; }
  .auth-card h1 { font-size: 24px; }
}
@media (max-width: 640px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-story { min-height: auto; padding: 22px 24px; }
  .auth-story .brand { font-size: 20px; }
  .auth-story-copy { padding: 26px 0 8px; }
  .auth-story-copy h2 { font-size: 27px; }
  .auth-story-copy h2 br { display: none; }
  .auth-story-copy .eyebrow { margin-bottom: 9px; font-size: 9px; }
  .auth-story-copy > p:last-of-type, .story-rule, .auth-story-footer { display: none; }
  .auth-panel { padding: 30px 24px 20px; }
  .auth-card { max-width: 400px; }
  .auth-description { margin-bottom: 25px; }
  .sidebar { position: static; width: auto; padding: 16px 20px 12px; gap: 18px; }
  .sidebar .brand { font-size: 20px; padding-left: 0; }
  .sidebar-caption, .sidebar-bottom { display: none; }
  .nav-item { padding: 9px 12px; border-radius: 6px; font-size: 12px; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-dot { margin-left: 4px; }
  .sidebar nav { align-self: flex-start; min-width: 140px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav-item + .nav-item { margin-top: 0; }
  .workspace { flex-direction: column; }
  .workspace-body { margin: 0; width: 100%; }
  .topbar { height: 67px; padding-inline: 20px; }
  .breadcrumb { display: none; }
  .account-area { width: 100%; gap: 8px; }
  .account-area .button { margin-left: auto; }
  .mobile-environment { display: inline-flex; margin-right: auto; padding: 4px 7px; font-size: 9px; }
  .user-avatar { width: 28px; height: 28px; font-size: 10px; }
  .user-info { max-width: 100px; }
  .user-info > span:first-child { font-size: 11px; }
  .user-info > span:last-child { font-size: 9px; }
  .main-content { padding: 26px 18px 16px; }
  .page-heading { margin-bottom: 21px; gap: 12px; }
  .page-heading h1 { font-size: 25px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .page-description { font-size: 11px; max-width: 220px; }
  .page-heading .button { font-size: 11px; padding-inline: 11px; min-height: 36px; }
  .total-card { padding: 17px 20px; }
  .welcome-card { min-height: 85px; padding: 18px; gap: 12px; }
  .welcome-card h2 { font-size: 12px; }
  .welcome-card p { font-size: 10px; }
  .welcome-icon { width: 35px; height: 35px; }
  .overview-grid { margin-bottom: 20px; }
  .panel-heading { padding: 20px 18px 17px; }
  .panel-heading h2 { font-size: 14px; }
  .list-caption { display: none; }
  .search-toolbar { padding: 0 18px 18px; gap: 6px; flex-wrap: wrap; }
  .search-field { width: auto; flex: 1; min-width: 160px; }
  .search-toolbar .button { padding-inline: 11px; }
  .query-description { padding-inline: 18px; }
  .list-footer { padding: 14px 18px; }
  .list-error { flex-direction: column; align-items: flex-start; margin-inline: 18px; gap: 14px; }
  .page-footer { margin-top: 32px; }
  .customer-dialog { padding: 22px; max-height: calc(100dvh - 30px); }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 16px; }
  .dialog-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .dialog-actions > .field-help { max-width: none; }
  .dialog-actions > div { justify-content: flex-end; }
  .detail-grid { gap: 0 15px; }
  .detail-grid dd { font-size: 12px; }
  .consultation-form { padding: 14px; }
  .consultation-list-error { align-items: flex-start; flex-direction: column; }
  .consultation-items { max-height: 370px; }
  .inquiry-search-toolbar .search-field { flex-basis: 100%; width: 100%; }
  .inquiry-status-filter { width: 140px; }
  .inquiry-notice { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* Verified catalog, quote snapshots and reviewed text drafts. */
.commerce-dialog { width: min(100% - 36px, 940px); }
.finance-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.finance-toolbar .button[aria-pressed="true"],
.finance-toolbar .button[aria-pressed="true"]:hover:not(:disabled) { background: #147d83; border-color: #147d83; color: #fff; }
.finance-history { display: grid; gap: 12px; margin: 16px 0; }
.finance-warning { color: #8c4216; background: #fff4e9; border-radius: 6px; padding: 10px; }
#finance .search-toolbar select { max-width: 180px; min-height: 40px; }
#finance-list-status { margin: 16px 24px; }
#finance-detail-allocations .button { margin-top: 12px; }
#finance-snapshot p { overflow-wrap: anywhere; }
.commerce-dialog .dialog-heading { gap: 16px; }
.commerce-dialog .dialog-close { font-size: 24px; line-height: 1; padding: 4px 10px; }
.commerce-search { display: flex; gap: 10px; margin: 14px 0 8px; }
.commerce-search input { flex: 1; min-width: 0; }
.commerce-list { padding: 4px 24px 24px; min-height: 100px; }
.commerce-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.commerce-card { border: 1px solid var(--border, #e1e7ec); border-radius: 10px; padding: 18px; background: #fff; }
.commerce-card p { margin: 8px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.commerce-title-button { background: none; border: 0; color: #143f50; cursor: pointer; font: inherit; font-weight: 700; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.commerce-empty { color: #6a7885; padding: 24px 0; }
.commerce-results { display: grid; gap: 8px; list-style: none; padding: 0; margin: 10px 0; max-height: 260px; overflow: auto; }
.commerce-results .button { width: 100%; text-align: left; justify-content: flex-start; white-space: normal; }
.commerce-selection { padding: 12px 15px; background: #eff6f6; border: 1px solid #d4e6e6; border-radius: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.commerce-check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; margin: 18px 0; color: #344955; font-size: 13px; }
.commerce-check input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 4px; accent-color: #147d83; }
.commerce-form-section { padding: 18px; border: 1px solid #e1e7ec; border-radius: 10px; margin: 18px 0; }
.commerce-form-section h3 { margin: 0 0 10px; font-size: 15px; }
.commerce-lines { display: grid; gap: 12px; }
.commerce-line { padding: 15px; border: 1px solid #dce5e8; background: #f7fafb; border-radius: 8px; }
.commerce-line h4 { margin: 0 0 8px; overflow-wrap: anywhere; }
.commerce-line p { margin: 6px 0; overflow-wrap: anywhere; }
.commerce-line input { width: 110px; margin: 8px 10px; }
.commerce-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.commerce-ai-panel { padding: 24px; }
.commerce-ai-panel h2 { margin-top: 0; }
.commerce-ai-result { border-top: 1px solid #dce5e8; margin-top: 24px; padding-top: 20px; }
.commerce-ai-result h3 { overflow-wrap: anywhere; }
.commerce-ai-result pre { padding: 18px; background: #f6f9fa; border-radius: 8px; }
.commerce-document h2 { font-size: 24px; margin: 16px 0 8px; overflow-wrap: anywhere; }
.commerce-document dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.commerce-watermark { padding: 12px 16px; border: 2px solid #b56130; background: #fff4e9; color: #8c4216; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.commerce-watermark.is-approved { color: #14645a; border-color: #328577; background: #eef9f4; }
.commerce-table-wrap { overflow-x: auto; margin-top: 20px; }
.commerce-quote-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 690px; }
.commerce-quote-table th, .commerce-quote-table td { border: 1px solid #dce3e7; padding: 10px; text-align: right; vertical-align: top; }
.commerce-quote-table th { background: #f2f6f7; font-weight: 700; }
.commerce-quote-table th:first-child, .commerce-quote-table td:first-child { text-align: left; width: 30%; }
.commerce-quote-table p { margin: 5px 0 0; overflow-wrap: anywhere; }
.commerce-totals { background: #f5f9f9; border-radius: 10px; padding: 15px; margin: 18px 0; }
.commerce-print { display: none; }
#commerce-quote-pdf[aria-disabled="true"] { opacity: .55; cursor: default; }
#commerce-products .commerce-search, #commerce-products #commerce-product-query-status, #commerce-products #commerce-product-query-error { margin-inline: 24px; }
#commerce-products .panel, #commerce-quotes .panel, #commerce-ai .panel { background: #fff; border: 1px solid #e1e7ec; border-radius: 12px; overflow: hidden; }
@media (max-width: 680px) {
  .commerce-dialog { width: calc(100% - 24px); }
  .commerce-dialog .dialog-actions > div { flex-wrap: wrap; }
  .commerce-card-list { grid-template-columns: 1fr; }
  .commerce-list, .commerce-ai-panel { padding: 18px; }
  .commerce-form-section { padding: 12px; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  body[data-commerce-print="ready"] { background: white; color: #111; }
  body[data-commerce-print="ready"] > :not(#commerce-print) { display: none !important; }
  body[data-commerce-print="ready"] > #commerce-print { display: block !important; }
  .commerce-print { font-size: 10pt; }
  .commerce-print .commerce-document { width: 100%; }
  .commerce-print .commerce-table-wrap { overflow: visible; }
  .commerce-print .commerce-quote-table { min-width: 0; font-size: 8pt; }
  .commerce-print .commerce-quote-table th, .commerce-print .commerce-quote-table td { padding: 5px; }
  .commerce-print .commerce-watermark { font-size: 18pt; border-color: #333; color: #111; background: white; }
  .commerce-print .commerce-totals { background: white; border: 1px solid #bbb; }
  .commerce-print .detail-grid { grid-template-columns: 1fr 1fr; }
  .commerce-print thead { display: table-header-group; }
  .commerce-print tr, .commerce-print .commerce-totals, .commerce-print .commerce-watermark { break-inside: avoid; }
}

.sidebar { overflow-y: auto; }

/* Group related destinations so the daily menu stays short. */
.sidebar .sidebar-caption { margin: 25px 12px 14px; font-size: 10px; letter-spacing: .08em; color: #8fa7b6; }
.sidebar-nav { min-width: 0; }
.nav-shortcuts { display: grid; gap: 4px; }
.nav-shortcuts .nav-item { margin: 0; min-height: 42px; padding: 10px 12px; gap: 10px; }
.nav-shortcuts .nav-item > svg { flex: 0 0 18px; width: 18px; height: 18px; }
.nav-section-label { margin: 23px 12px 9px; color: #7895a8; font-size: 10px; letter-spacing: .06em; }
.nav-group { margin: 4px 0; }
.nav-group:not(:has(a.nav-item:not([hidden]))) { display: none; }
.nav-group > summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #b4c7d4; font-size: 12px; font-weight: 600; list-style: none; cursor: pointer; user-select: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary > svg { width: 17px; height: 17px; flex: 0 0 17px; color: #7996aa; }
.nav-group > summary > span:not(.nav-chevron) { min-width: 0; word-break: keep-all; }
.nav-group > summary:hover { color: #f0f8f5; background: #ffffff07; }
.nav-group > summary:focus-visible { outline: 2px solid #70d4bc; outline-offset: 2px; }
.nav-chevron { width: 6px; height: 6px; margin-left: auto; margin-right: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); flex: 0 0 6px; }
.nav-group[open] > summary .nav-chevron { transform: rotate(45deg); }
.nav-group:has([aria-current="page"]) > summary { color: #c4eadf; }
.nav-group-links { margin: 1px 0 8px 20px; padding-left: 10px; border-left: 1px solid #ffffff18; }
.nav-group-links .nav-item { min-height: 36px; margin: 2px 0; padding: 8px 10px; gap: 8px; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.nav-group-links .nav-item > svg, .nav-group-links .nav-item > span[aria-hidden="true"]:not(.nav-dot) { display: none; }
.nav-group-links .nav-dot { width: 4px; height: 4px; flex: 0 0 4px; }
.sidebar .sidebar-bottom { padding-top: 20px; }
.sidebar .sidebar-bottom p { margin: 10px 0 16px; }
@media (max-width: 640px) {
  .sidebar .sidebar-nav { display: block; align-self: stretch; width: 100%; min-width: 0; }
  .nav-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .nav-shortcuts .nav-item { padding: 9px 7px; gap: 6px; font-size: 11px; justify-content: center; }
  .nav-shortcuts .nav-item > svg { width: 16px; height: 16px; flex-basis: 16px; }
  .nav-shortcuts .nav-dot { display: none; }
  .nav-section-label { margin-top: 17px; }
  .nav-group > summary { min-height: 40px; }
  .nav-group-links .nav-item { min-height: 36px; }
}
/* Locally imported FLOW data stays separate from live connection status. */
.flow-import-panel { margin-top: 1.5rem; padding: 1.5rem; }
.flow-import-panel textarea { width: 100%; min-height: 10rem; font-family: ui-monospace, monospace; }
.flow-import-panel form { display: grid; gap: 1rem; }
.flow-status-panel #flow-orders-load { margin-top: 1rem; }
#flow-orders-content { margin-top: 1.5rem; }

/* Confirmed management records: exact values wrap without hiding their sign. */
.performance-toolbar { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }
.performance-toolbar .button[aria-pressed="true"],
.performance-toolbar .button[aria-pressed="true"]:hover:not(:disabled) { color:#fff; background:#147d83; border-color:#147d83; }
.performance-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.8rem; padding:1rem 1.4rem; }
.performance-filters .field { flex:1 1 10rem; margin:0; }
.performance-filters .field input, .performance-filters .field select { width:100%; }
#performance .customer-panel { margin-top:1.5rem; padding-bottom:1.2rem; }
#performance .performance-toolbar, #performance-list, #performance-report-content,
#performance-report-status, #performance-list-status { margin:1rem 1.4rem; }
#performance .page-heading .performance-toolbar { margin:0; }
.performance-metrics .detail-grid { grid-template-columns:repeat(auto-fit,minmax(14rem,1fr)); }
.performance-metrics .detail-grid dd { font-size:1.05rem; font-weight:650; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.performance-breakdowns { display:grid; grid-template-columns:repeat(auto-fit,minmax(19rem,1fr)); gap:1rem; margin:1rem 0 1.5rem; }
.performance-breakdowns .detail-grid { grid-template-columns:1fr; }
#performance-list .commerce-card { margin:.8rem 0; }
.performance-warning { color:#855b14; background:#fff5df; padding:.7rem; border-radius:.5rem; }
#performance-history { margin:1rem 0; }
#performance-snapshot { overflow-wrap:anywhere; }
.performance-platform-panel { padding:1rem 1.4rem; margin:1rem 0; border-top:1px solid var(--border); }
.performance-platform-text { white-space:pre-wrap; overflow-wrap:anywhere; }
#performance-platform-editor { padding:1rem; margin:1rem 0; background:var(--surface-soft,#f6f8fa); border-radius:10px; }
#performance-platform-events .commerce-card { margin:.7rem 0; }
#performance-platform-report-list .detail-grid { grid-template-columns:1fr; }
@media (max-width:640px) {
  .performance-filters, .performance-toolbar { align-items:stretch; }
  .performance-filters .field, .performance-filters > .button { flex-basis:100%; }
  .performance-toolbar .button { flex:1 1 9rem; }
  .performance-breakdowns { grid-template-columns:1fr; }
  .performance-metrics .detail-grid { grid-template-columns:1fr; }
}
/* A/S facts and append-only history share the established workspace components. */
#aftercare-detail-summary dd, .aftercare-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#aftercare-detail-dialog > section { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border, #e3e8ee); }
#aftercare-detail-dialog section form { display: grid; gap: 1rem; }
#aftercare-customer-results { display: grid; gap: .5rem; margin: .75rem 0; }
#aftercare-customer-results .button { justify-content: flex-start; text-align: left; }
#aftercare-create-dialog .commerce-picker { margin-bottom: 1.25rem; }
#aftercare-create-dialog .pagination { margin: .75rem 0; }
#aftercare .commerce-card, #aftercare-history .commerce-card { overflow-wrap: anywhere; }

/* Visits workspace */
.visits-text, #visits-detail-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
#visits-search-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-items: end; }
#visits-case-results, #visits-customer-results { display: grid; gap: .5rem; }
@media (max-width: 560px) { #visits-search-form { grid-template-columns: 1fr; } }

#visits-detail-dialog > section { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border, #e3e8ee); }
#visits-detail-dialog section form { display: grid; gap: 1rem; }
#visits-create-dialog .commerce-picker { margin-bottom: 1.25rem; }
#visits-create-dialog .pagination { margin: .75rem 0; }
#visits-customer-results .button, #visits-case-results .button { justify-content: flex-start; text-align: left; }
#visits-list, #visits-list-status, #visits .customer-panel > .field-help { margin: 1rem 1.4rem; }
#visits .commerce-card, #visits-history .commerce-card { overflow-wrap: anywhere; }

/* Projects workspace */
.projects-text, #projects-detail-summary dd { white-space: pre-wrap; overflow-wrap: anywhere; }
#projects-search-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-items: end; }
#projects-customer-results { display: grid; gap: .5rem; }
#projects-customer-results .button { justify-content: flex-start; text-align: left; }
#projects-detail-dialog > section { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border, #e3e8ee); }
#projects-detail-dialog section form { display: grid; gap: 1rem; }
#projects-create-dialog .commerce-picker { margin-bottom: 1.25rem; }
#projects-create-dialog .pagination { margin: .75rem 0; }
#projects-list, #projects-list-status, #projects .customer-panel > .field-help { margin: 1rem 1.4rem; }
#projects .commerce-card, #projects-history .commerce-card { overflow-wrap: anywhere; }
@media (max-width: 560px) { #projects-search-form { grid-template-columns: 1fr; } }
#project-tasks-search-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; align-items: end; }
#project-tasks-create-form, #project-tasks-detail-dialog form { display: grid; gap: 1rem; }
#project-tasks-detail-dialog > section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border,#e3e8ee); }
#project-tasks-detail-summary dd, .project-tasks-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#project-tasks-list .commerce-card, #project-tasks-history .commerce-card { overflow-wrap: anywhere; }
@media (max-width:560px) { #project-tasks-search-form { grid-template-columns: 1fr; } }
#work-inbox-search-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; align-items: end; padding: 0 1.4rem; }
.work-inbox-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 0 1.4rem 1.4rem; }
.work-inbox-summary > div { padding: .85rem; border: 1px solid var(--border,#e3e8ee); border-radius: .75rem; }
.work-inbox-summary strong { display: block; font-size: 1.35rem; }
#work-inbox-list, #work-inbox-count, #work-inbox-list-status { margin: 1rem 1.4rem; }
#work-inbox-list .commerce-card { overflow-wrap: anywhere; }
.work-inbox-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
@media (max-width:680px) { #work-inbox-search-form, .work-inbox-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:440px) { #work-inbox-search-form { grid-template-columns: 1fr; } }
.customer-work-modules { display: grid; gap: 1rem; }
.customer-work-module { padding: 1rem; border: 1px solid var(--border, #dce3ec); border-radius: 12px; }
.customer-work-module h4 { margin: 0 0 .4rem; }
.customer-work-module .commerce-card { padding: .85rem; margin-top: .7rem; }
.customer-work-module .commerce-card h5 { margin: 0 0 .45rem; font-size: .95rem; overflow-wrap: anywhere; }
.customer-work-module .commerce-card p { overflow-wrap: anywhere; }
.work-journal-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.work-journal-summary > div { padding: .85rem; border-radius: 10px; background: #f3f6fa; }
.work-journal-summary span, .work-journal-summary strong { display: block; }
.work-journal-summary strong { margin-top: .3rem; font-size: 1.35rem; }
#work-journal-search-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.work-journal-actions { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; }
.work-journal-draft { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.7; background: #f6f8fb; padding: 1rem; border-radius: 10px; }
@media (max-width: 700px) { .work-journal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } #work-journal-search-form { grid-template-columns: 1fr; } }
.message-template-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.message-template-search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .8rem; }
.message-template-body { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; font: inherit; line-height: 1.65; background: #f6f8fb; padding: 1rem; border-radius: 10px; }
#message-templates-detail-dialog > section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #dce3ec; }
#message-templates-history details { margin-top: .75rem; }
#message-templates-history summary { cursor: pointer; }
@media (max-width: 800px) { .message-template-search { grid-template-columns: 1fr; } }
.commerce-saved-section { margin: 1rem 0; padding: 1rem; border: 1px solid #dce3ec; border-radius: 12px; }
.commerce-saved-search { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.commerce-saved-search .field { flex: 1 1 220px; }
#commerce-ai-saved-preview { margin: 1rem 0; }
#commerce-ai-saved-preview-body { tab-size: 4; overflow-wrap: anywhere; }

.work-assistant-examples { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; margin:16px 0; }
.work-assistant-example { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:14px; border:1px solid var(--border); border-radius:10px; }
.work-assistant-form { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; }
.work-assistant-form > .field { flex:1 1 280px; }
#work-assistant-draft-body { white-space:pre-wrap; overflow-wrap:anywhere; }
.work-assistant-runs { margin-top: 1.5rem; }
.work-assistant-proposals { margin-top:1.5rem; min-width:0; }
.work-assistant-proposal-form { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; margin:1rem 0; }
.work-assistant-proposal-form .field { min-width:0; }
.work-assistant-proposal-form input[type="text"],.work-assistant-proposal-form select { width:100%; min-width:0; }
.work-assistant-proposal-form .button { justify-self:start; }
.work-assistant-proposal-cards,.work-assistant-proposal-results { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; margin:1rem 0; overflow-wrap:anywhere; }
.work-assistant-proposal-cards label { display:flex; align-items:flex-start; gap:.65rem; width:100%; min-width:0; }
.work-assistant-proposal-cards input[type="checkbox"] { width:1.1rem; min-width:1.1rem; max-width:1.1rem; flex:0 0 1.1rem; margin-top:.25rem; }
.work-assistant-proposal-cards label > span { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; word-break:keep-all; }
.work-assistant-source-item { border-top:1px solid var(--border); margin-top:1rem; padding-top:.6rem; }
.work-assistant-runs-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; }
.work-assistant-runs-heading h2 { margin-bottom:.4rem; }
.work-assistant-runs-filters { display:grid; grid-template-columns:repeat(2,minmax(10rem,1fr)); align-items:end; gap:1rem; margin:1rem 0; }
.work-assistant-runs-filters button { justify-self:start; }
.work-assistant-runs-list { display:grid; gap:1rem; margin:1rem 0; overflow-wrap:anywhere; }
.work-assistant-run-state { font-weight:700; }
.usage-guide-panel { margin:1.25rem 0; padding:1.35rem; }
.usage-guide-panel > p { line-height:1.7; }
.usage-guide-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; }
.usage-guide-card { display:flex; flex-direction:column; align-items:flex-start; gap:.6rem; border:1px solid var(--border); border-radius:10px; padding:1rem; }
.usage-guide-card h3,.usage-guide-card p { margin:0; }
.usage-guide-card button { margin-top:auto; }
.usage-guide-status { margin-top:1rem; }
.usage-guide-status dd { overflow-wrap:anywhere; }
.table-scroll { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
@media(max-width:640px) {
  .usage-guide-grid,.work-assistant-examples { grid-template-columns:minmax(0,1fr); }
  .usage-guide-panel { padding:1rem; }
  .usage-guide-card { min-width:0; }
  .usage-guide-panel .button { max-width:100%; white-space:normal; text-align:center; }
  .usage-guide-status { grid-template-columns:1fr; }
  .account-area { flex-wrap:wrap; }
  .account-area .user-info { min-width:0; flex:1 1 3rem; }
  .mobile-environment { max-width:100%; white-space:normal; }
  .topbar { min-height:67px; height:auto; padding-block:.65rem; }
}
@media(max-width:760px) { .work-assistant-runs-filters { grid-template-columns:1fr; } }

.approval-plan-text { white-space:pre-wrap; overflow-wrap:anywhere; padding:16px; background:#f7f9fb; border:1px solid var(--border); border-radius:8px; max-height:380px; overflow:auto; }
.approval-plan-filter { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:16px; }
#approval-plans-detail-dialog section { margin-top:20px; border-top:1px solid var(--border); padding-top:16px; }

/* 내부 지식: 원문은 HTML을 실행하지 않는 일반 텍스트다. */
.knowledge-text { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; font:inherit; line-height:1.7; max-height:34rem; overflow:auto; padding:1rem; background:var(--surface-soft, #f6f8fa); border-radius:10px; }
.knowledge-filters { display:grid; grid-template-columns:minmax(12rem,2fr) repeat(2,minmax(8rem,1fr)) auto; gap:1rem; align-items:end; }
.knowledge-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
#knowledge-selected .commerce-card { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
@media(max-width:760px) { .knowledge-filters,.knowledge-dates { grid-template-columns:1fr; } }

/* 자동화 관리의 범위는 이 메뉴와 예약 창에만 적용한다. */
.automation-panel { padding:1.35rem; margin-bottom:1.25rem; }
.automation-panel h2 { margin:0 0 .65rem; }
.automation-heading,.automation-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; }
.automation-actions { justify-content:flex-start; }
.automation-filters { display:flex; flex-wrap:wrap; gap:.85rem; align-items:end; margin:1rem 0; }
.automation-filters .field { flex:1 1 14rem; max-width:24rem; }
.automation-cards { display:grid; gap:.85rem; margin:1rem 0; }
.automation-cards .commerce-card { margin:0; overflow-wrap:anywhere; }
.automation-dialog form { display:grid; gap:1rem; }
.automation-dialog > section { margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--border,#dce3ec); }
.automation-dialog dd { overflow-wrap:anywhere; white-space:pre-wrap; }
.automation-setting-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.automation-result-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:.75rem; }
.automation-result-summary p { margin:0; padding:.8rem; background:var(--surface-soft,#f6f8fa); border-radius:.65rem; }
.automation-result-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.automation-result-table th,.automation-result-table td { text-align:left; padding:.6rem; border-bottom:1px solid var(--border,#dce3ec); white-space:nowrap; }
@media(max-width:640px) { .automation-setting-grid { grid-template-columns:1fr; } .automation-panel { padding:1rem; } .automation-filters .field { max-width:none; } }
.aftercare-attachments { margin-top: 1.5rem; border-top: 1px solid var(--border, #dce5e9); padding-top: 1rem; }
.aftercare-attachments-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.aftercare-attachment-form { margin-top: 1rem; border: 1px solid var(--border, #dce5e9); border-radius: .75rem; padding: 1rem; }
.aftercare-attachment-form > button { margin: .4rem .4rem .4rem 0; }
.aftercare-attachment-name, .aftercare-attachment-caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.aftercare-attachment-form input[type="file"] { max-width: 100%; padding: .7rem; }
.aftercare-costs { margin-top: 1.5rem; border-top: 1px solid var(--border, #dce5e9); padding-top: 1rem; }
.aftercare-costs-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.aftercare-costs-summary { margin: .8rem 0; }
.aftercare-costs-editor { margin-top: 1rem; border: 1px solid var(--border, #dce5e9); border-radius: .75rem; padding: 1rem; }
.aftercare-costs-editor > button { margin: .4rem .4rem .4rem 0; }
.aftercare-costs-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.aftercare-cost-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Explicit financial read views share the existing card and amount styles. */
.financial-insights { margin-top: 20px; }
.financial-insights-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.financial-insights-filters .field { min-width: 170px; flex: 1; }
.financial-insights .detail-grid dd { overflow-wrap: anywhere; }
@media (max-width: 640px) { .financial-insights-filters { align-items: stretch; } .financial-insights-filters .field, .financial-insights-filters > button { flex: 1 1 100%; min-width: 0; } }

.customer-work-history-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-work-history-summary { display: flex; gap: 12px; flex-wrap: wrap; }

.approval-status-proof dd, #approval-plans-create-source { overflow-wrap: anywhere; }
#approval-plans-create-source-reload { margin-bottom: 12px; }


/* SCREEN CLEANUP · 2026-10-31 */
/* Shared work screens: clear actions, readable lists, optional supporting detail. */
@media screen {
  .main-content { padding: 28px 32px 24px; }
  .main-content > section { min-width: 0; }
  .page-heading { gap: 16px; margin-bottom: 22px; align-items: flex-start; }
  .page-heading h1 { margin: 0; font-size: 27px; line-height: 1.35; letter-spacing: -.9px; }
  .page-heading .eyebrow, .dialog-heading .eyebrow { display: none; }
  .page-heading .page-description { margin-top: 8px; font-size: 13px; line-height: 1.7; color: #647888; }
  .page-heading > .button, .page-heading > .heading-actions { flex-shrink: 0; }
  .page-heading .button { margin-top: 0; }
  .heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .button { min-height: 40px; border-radius: 8px; font-size: 13px; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 42px; }
  input[type="checkbox"], input[type="radio"] { width: 17px; min-width: 17px; height: 17px; flex: 0 0 17px; padding: 0; accent-color: var(--teal); }
  .field { gap: 6px; margin-bottom: 15px; }
  .field-help { font-size: 12px; line-height: 1.75; color: #627989; }
  .page-description, .field-help, .notice, .privacy-note { word-break: keep-all; overflow-wrap: anywhere; }
  .notice { line-height: 1.75; }
  .notice-error { margin-block: 12px; }
  .main-content > section > .customer-panel, .main-content > section > .panel { margin-bottom: 20px; }
  .main-content .customer-panel:not(:has(> .panel-heading)) { padding: 22px; }
  .main-content .customer-panel > h2, .main-content .customer-panel > header h2 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; letter-spacing: -.3px; }
  .panel-heading { padding: 20px 22px 16px; gap: 14px; flex-wrap: wrap; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading p { font-size: 12px; color: #748795; }
  .search-toolbar { padding: 0 22px 18px; flex-wrap: wrap; }
  .search-field { flex: 1 1 240px; width: auto; min-width: 0; }
  .search-field input { font-size: 13px; }
  .search-toolbar .inquiry-status-filter { flex: 0 1 170px; }
  .main-content .customer-panel:has(> .panel-heading) > form:not(.search-toolbar) { margin-inline: 22px; margin-bottom: 18px; }
  .main-content form > .field:last-of-type { margin-bottom: 0; }
  .customer-table { font-size: 12px; }
  .customer-table th { font-size: 11px; padding-block: 11px; color: #526b7c; }
  .customer-table td { padding-block: 14px; color: #4f687a; }
  .customer-name { font-size: 13px; }
  .customer-address { font-size: 11px; color: #7a8e9d; }
  .list-footer { padding: 13px 22px; gap: 12px; flex-wrap: wrap; }
  .list-footer > p, .list-caption, .query-description { font-size: 12px; }
  .query-description { padding-inline: 22px; }
  .page-button { width: 32px; height: 32px; }
  .pagination { gap: 7px; flex-wrap: wrap; }
  .commerce-list { display: grid; gap: 12px; }
  .commerce-card { padding: 18px; border-color: #e1e9ee; box-shadow: 0 2px 5px #142c3f03; }
  .commerce-title-button { line-height: 1.6; text-decoration: none; }
  .commerce-title-button:hover { text-decoration: underline; }
  .commerce-empty, .consultation-empty { display: block; padding: 30px 18px; text-align: center; color: #718594; }
  .main-content .customer-panel > .commerce-empty { border-radius: 9px; background: #f7f9fb; }
  .overview-grid { grid-template-columns: minmax(200px, .8fr) minmax(260px, 1.4fr); gap: 14px; margin-bottom: 20px; }
  .total-card, .welcome-card { min-height: 92px; padding: 16px 20px; }
  .total-value strong { font-size: 28px; }
  .total-art { grid-template-columns: repeat(2, 13px); grid-template-rows: repeat(2, 13px); }
  .welcome-icon { width: 36px; height: 36px; }
  .welcome-card p, .total-card p { font-size: 11px; }
  .dashboard-sections { gap: 14px; }
  .dashboard-panel { border-radius: 12px; }
  .dashboard-panel h2 { font-size: 15px; }
  .dashboard-opportunities { margin-top: 20px; }
  .workspace-help { margin: 12px 0 18px; border: 1px solid #e0e8ed; border-radius: 9px; background: #f8fafb; color: #4e6575; }
  .workspace-help > summary, .workspace-fold > summary { padding: 12px 15px; cursor: pointer; font-size: 13px; font-weight: 650; line-height: 1.6; color: #456475; }
  .workspace-help > summary::marker, .workspace-fold > summary::marker { color: #729b9c; }
  .workspace-help > :not(summary) { margin: 0 15px 14px; }
  .workspace-help > .notice { font-size: 12px; background: transparent; border: 0; padding: 0; color: #627789; }
  .workspace-help[open] > summary { padding-bottom: 9px; }
  .workspace-fold { min-width: 0; }
  .workspace-fold > summary { padding: 17px 20px; font-size: 15px; color: #2f5063; }
  .workspace-fold[open] > summary { border-bottom: 1px solid #e5edf1; }
  .workspace-fold-body { padding: 20px; min-width: 0; }
  .workspace-fold-body > .panel-heading { padding: 0 0 16px; }
  .workspace-fold-hint { margin-left: 8px; color: #81949f; font-weight: 400; font-size: 11px; }
  .main-content .customer-panel:has(> .workspace-fold:only-child) { padding: 0; }
  .form-section-title { grid-column: 1 / -1; margin: 10px 0 4px; padding: 12px 0 7px; border-top: 1px solid #e7edf1; border-bottom: 0; color: #305664; font-size: 14px; font-weight: 700; line-height: 1.6; }
  .form-section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .form-section-title > span { margin-left: 6px; font-size: 11px; font-weight: 400; color: #82939e; }
  .customer-dialog { border-radius: 15px; padding: 26px; }
  .customer-dialog .dialog-heading { position: sticky; top: -26px; z-index: 5; background: #fff; padding: 10px 0 14px; border-bottom: 1px solid #e7edf1; margin-bottom: 18px; }
  .customer-dialog .dialog-heading h2 { margin: 0; font-size: 21px; line-height: 1.4; }
  .customer-dialog .dialog-description { margin: 0 0 20px; font-size: 13px; line-height: 1.7; }
  .customer-dialog .dialog-close { flex-shrink: 0; }
  .customer-dialog .dialog-actions { gap: 12px; flex-wrap: wrap; padding-top: 16px; }
  .customer-dialog .dialog-actions > div { flex-wrap: wrap; gap: 8px; margin-left: auto; }
  .customer-dialog .detail-grid { gap: 15px 20px; }
  .customer-dialog section h3 { margin-bottom: 12px; }
  .customer-dialog .workspace-fold > summary { padding-inline: 0; }
  .customer-dialog .workspace-fold-body { padding: 18px 0 0; }
  .customer-dialog .workspace-fold-body > h3:first-child { font-size: 14px; color: #6e8492; }
  .customer-dialog .consultation-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  #customer-work-section, #customer-work-history-section { margin-top: 20px; }
  #flow-status-content .environment-badge { margin: 12px 0; }
  #flow-orders-load { margin: 14px 0 0; display: flex; }
  .flow-import-panel .privacy-note { margin: 0 0 16px; font-size: 12px; }
  .opportunity-view-switch { padding-top: 0; padding-bottom: 14px; }
  .privacy-note { color: #728794; font-size: 11px; }
  @media (max-width: 1150px) { .main-content { padding-inline: 24px; } }
  @media (max-width: 850px) {
    .main-content { padding-inline: 20px; }
    .overview-grid { grid-template-columns: 1fr; }
    .welcome-card { min-height: 76px; }
  }
  @media (max-width: 640px) {
    .main-content { padding: 23px 16px 20px; }
    .page-heading { flex-direction: column; gap: 14px; }
    .page-heading h1 { font-size: 25px; }
    .page-heading .page-description { max-width: none; font-size: 12px; }
    .page-heading > .button, .page-heading > .heading-actions { align-self: stretch; }
    .page-heading .heading-actions .button { flex: 1 1 auto; }
    .panel-heading { padding: 18px 16px 15px; }
    .main-content .customer-panel:not(:has(> .panel-heading)) { padding: 16px; }
    .main-content .customer-panel:has(> .workspace-fold:only-child) { padding: 0; }
    .search-toolbar { padding: 0 16px 16px; gap: 8px; }
    .search-field { flex-basis: 100%; width: 100%; }
    .search-toolbar .inquiry-status-filter { flex: 1 1 130px; }
    .main-content .customer-panel:has(> .panel-heading) > form:not(.search-toolbar) { margin-inline: 16px; }
    .list-footer { padding: 13px 16px; }
    .workspace-help > summary, .workspace-fold > summary { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
    .workspace-fold-body { padding: 16px; }
    .customer-dialog { padding: 20px; }
    .customer-dialog .dialog-heading { top: -20px; }
    .customer-dialog .dialog-actions > div { width: 100%; }
    .customer-dialog .dialog-actions > div > .button { flex: 1 1 auto; }
    .heading-actions { width: 100%; }
  }
}

/* 현장·프로젝트 화면: 입력과 확인 동작을 구분하되 숨김 상태는 그대로 둡니다. */

.field-workspace-note { margin: -.35rem 0 1rem; }
.field-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
  align-items: start;
}
.field-action-grid > section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border, #e3e8ee);
  border-radius: .8rem;
  background: #fafcfd;
}
.field-action-grid > section > h3 { margin: 0 0 1rem; font-size: 1rem; }
.field-form-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.field-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border, #e3e8ee);
}
.field-secondary-actions > .workspace-help { flex: 1 1 10rem; margin: 0; }
.field-secondary-actions > .workspace-help > summary { font-size: .83rem; }
#projects-tasks-section > .panel-heading { padding: 0 0 .8rem; }
#projects-tasks-section > .panel-heading h3 { font-size: 1rem; }
#project-tasks-search-form > .field-form-actions { align-self: end; }
#aftercare-create-dialog .commerce-picker,
#visits-create-dialog .commerce-picker,
#projects-create-dialog .commerce-picker { padding: .85rem; background: #f6f9fb; border-radius: .7rem; }
#aftercare-create-dialog .commerce-selection,
#visits-create-dialog .commerce-selection,
#projects-create-dialog .commerce-selection { margin-bottom: 0; }
@media (max-width: 700px) {
  .field-action-grid { grid-template-columns: 1fr; }
  .field-action-grid > section { padding: .85rem; }
  .field-secondary-actions { align-items: stretch; }
  .field-secondary-actions > .workspace-help { flex-basis: 100%; }
}

/* Financial detail actions stay beside the current amount and source warning. */
#finance-detail-dialog .record-primary-actions,
#performance-detail-dialog .record-primary-actions {
  margin: 16px 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #e1e7ec);
}
#finance-detail-dialog .record-primary-actions > div,
#performance-detail-dialog .record-primary-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
#finance > .workspace-help,
#performance > .workspace-help {
  margin: 16px 0;
}
#receivables-section > .workspace-help,
#commerce-quote-detail-dialog > .workspace-help {
  margin-top: 12px;
}

/* Small layout additions for assistance pages; behavior remains ID-driven. */
.assistance-context { margin: 0 0 1rem; color: #526975; font-size: .88rem; line-height: 1.7; }
.assistance-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .85rem 0; }
.assistance-actions .button { margin: 0; }
.work-assistant-form > .button { margin-top: 25px; }
#work-assistant .workspace-fold { margin-top: .9rem; }
#work-assistant .workspace-fold .work-assistant-examples { margin-top: .85rem; }
#commerce-ai .form-section-title { margin-top: 1.5rem; }
#approval-plans-detail-dialog > section,
#knowledge-detail-dialog > section,
#message-templates-detail-dialog > section,
#automations-approval-detail-dialog > section,
#automations-report-detail-dialog > section { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border, #e3e8ee); }
#usage-guide .workspace-help { margin-top: .8rem; }
@media (max-width: 640px) {
  .work-assistant-form > .button { margin-top: 0; width: 100%; }
  .assistance-actions { align-items: stretch; }
  .assistance-actions .button { flex: 1 1 11rem; }
}

@media screen {
  .main-content .customer-panel:has(> .panel-heading) > form.performance-filters { padding: 0; margin-top: 4px; }
  .main-content .customer-panel:has(> .panel-heading) > [id$="-list-status"],
  .main-content .customer-panel:has(> .panel-heading) > .field-help,
  .main-content .customer-panel:has(> .panel-heading) > .notice { margin: 12px 22px; }
  .main-content .customer-panel:has(> .panel-heading) > div[id$="-list"]:not(.commerce-list) { margin: 14px 22px; display: grid; gap: 12px; }
  @media (max-width: 640px) {
    .main-content .customer-panel:has(> .panel-heading) > [id$="-list-status"],
    .main-content .customer-panel:has(> .panel-heading) > .field-help,
    .main-content .customer-panel:has(> .panel-heading) > .notice,
    .main-content .customer-panel:has(> .panel-heading) > div[id$="-list"]:not(.commerce-list) { margin-inline: 16px; }
  }
}
