@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #172b3a;
  --ink-soft: #536878;
  --muted: #6d7f8b;
  --line: #dfe7e9;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --navy: #0c3949;
  --teal: #087e83;
  --teal-deep: #05676d;
  --teal-pale: #e5f5f2;
  --amber: #8d5a10;
  --amber-pale: #fff3db;
  --red: #9d3a38;
  --red-pale: #fff0ee;
  --shadow: 0 12px 34px rgba(18, 56, 69, .045);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.6; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #f5b947; outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 1000; padding: .65rem 1rem; background: var(--navy); color: #fff; }
.skip-link:focus { top: .7rem; color: #fff; }
.container { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }

.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; min-height: 78px; gap: clamp(1rem, 4vw, 4rem); }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; color: var(--navy); white-space: nowrap; font-size: 1.08rem; font-weight: 720; letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px 11px 11px 3px; background: var(--teal); color: white; font-size: 1.35rem; font-weight: 800; font-family: Georgia, serif; font-style: italic; line-height: 1; }
.brand__text strong { color: var(--teal); font-weight: 750; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: .15rem; min-width: 0; }
.main-nav a { display: inline-flex; align-items: center; padding: .15rem .85rem 0; border-bottom: 3px solid transparent; color: var(--ink-soft); font-size: .93rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal-deep); background: #f4faf8; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.header-account { display: flex; align-items: center; margin-left: auto; gap: .55rem; min-width: 0; }
.header-account__identity { display: grid; line-height: 1.35; text-align: right; max-width: 180px; }
.header-account__name { font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-account__customer { color: var(--muted); font-size: .73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-account form { display: flex; }
.account-switcher { align-items: center; gap: .25rem; }
.account-switcher select { max-width: 160px; min-height: 34px; padding: .25rem .35rem; border: 1px solid #cbd9dc; border-radius: 6px; background: #fff; color: var(--ink); font-size: .75rem; }

.page-main { min-height: calc(100vh - 155px); padding-block: 2rem 4.5rem; }
.page-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.page-hero--welcome { align-items: center; padding: clamp(1.6rem, 3vw, 2.5rem); border-radius: 20px; background: linear-gradient(112deg, #0d4455 0%, #095a66 57%, #148a83 100%); color: white; box-shadow: var(--shadow); }
.page-hero--welcome .eyebrow { color: #aee5dc; }
.page-hero--welcome p:not(.eyebrow) { color: #d8f0ec; }
.page-hero--compact { align-items: center; }
.page-hero h1 { margin: .2rem 0 .5rem; font-size: clamp(1.85rem, 3vw, 2.7rem); letter-spacing: -.035em; line-height: 1.25; }
.page-hero p { margin: 0; color: var(--ink-soft); }
.page-hero > div { min-width: 0; }
.page-hero h1, .page-hero p { overflow-wrap: anywhere; }
.eyebrow { margin: 0 0 .45rem; color: var(--teal-deep); font-size: .75rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.account-chip { max-width: 330px; padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; color: white; background: rgba(255,255,255,.13); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-weight: 700; }
.breadcrumb { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.3rem; color: var(--muted); font-size: .83rem; }
.breadcrumb a { font-weight: 650; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.metric-grid--four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.metric-card { display: flex; flex-direction: column; min-height: 146px; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card__label { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.metric-card__value { margin: .25rem 0 .3rem; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-card a { margin-top: auto; font-size: .8rem; font-weight: 750; }
.metric-card a span { margin-left: .2rem; }
.metric-card__caption { margin-top: auto; color: var(--muted); font-size: .75rem; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,1fr); align-items: start; gap: 1.25rem; }
.content-grid__main, .content-grid__aside { min-width: 0; }
.content-grid__main { display: grid; gap: 1.25rem; }
.content-grid__aside { display: grid; gap: 1.25rem; }
.content-grid--tickets > .content-grid__main { display: block; }
.panel { min-width: 0; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.panel--tint { background: #eef7f4; border-color: #d5e9e3; }
.panel h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }
.panel h3 { margin: 0; }
.panel > .eyebrow + h2 { margin-bottom: .75rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.section-heading .eyebrow { margin-bottom: .25rem; }
.section-heading p:not(.eyebrow) { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.text-link { font-size: .82rem; font-weight: 750; white-space: nowrap; }
.text-link span { margin-left: .2rem; }
.muted { color: var(--ink-soft); font-size: .88rem; }
.page-note { margin: 1.1rem .15rem; color: var(--ink-soft); font-size: .87rem; }
.page-note a { margin-inline: .1rem; text-decoration: underline; text-underline-offset: 2px; }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1.25rem; }
.catalog-card { height: 100%; }
.catalog-card > h2 { margin-bottom: .45rem; }
.catalog-card__description { white-space: normal; }
.catalog-card__price { margin: 1rem 0 0; color: var(--navy); font-size: 1.2rem; }
.catalog-card__options { margin-top: 1rem; border-top: 1px solid var(--line); }
.catalog-card__option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.catalog-card__option > div { display: grid; }
.catalog-card__option strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.catalog-card__option small { color: var(--muted); font-size: .78rem; }
.catalog-card__apply { flex-shrink: 0; }
.catalog-card__form { margin-top: 1rem; }

.item-list { border-top: 1px solid var(--line); }
.item-row { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: 1rem .1rem; border-bottom: 1px solid var(--line); color: inherit; }
.item-row:last-child { border-bottom: 0; padding-bottom: .1rem; }
a.item-row:hover { background: #fafdfc; color: inherit; }
.item-row__icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; color: var(--teal-deep); background: var(--teal-pale); font-size: 1rem; font-weight: 800; }
.item-row__icon--blue { color: #416789; background: #e8f0f7; }
.item-row__icon--amber { color: var(--amber); background: var(--amber-pale); }
.item-row__body { display: grid; min-width: 0; flex: 1; }
.item-row__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.item-row__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; }
.item-row__end { display: grid; justify-items: end; gap: .28rem; flex: 0 0 auto; }
.item-row__end strong { font-size: .91rem; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: .19rem .58rem; border-radius: 999px; font-size: .72rem; font-weight: 760; line-height: 1.45; white-space: nowrap; }
.status--success { background: #dcf3e8; color: #0a654d; }
.status--warning { background: var(--amber-pale); color: var(--amber); }
.status--attention { background: var(--red-pale); color: var(--red); }
.status--neutral { background: #ebeff1; color: #52626d; }
.compact-list { display: grid; gap: .2rem; margin-bottom: 1rem; }
.compact-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 0; border-bottom: 1px solid #d8e9e4; color: inherit; }
.compact-list a:last-child { border-bottom: 0; }
.compact-list a > span:first-child { display: grid; min-width: 0; }
.compact-list strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; }
.compact-list small { color: var(--muted); font-size: .72rem; }
.notice-list { display: grid; gap: .95rem; }
.notice-list article + article { border-top: 1px solid var(--line); padding-top: .9rem; }
.notice-list time { color: var(--muted); font-size: .73rem; }
.notice-list h3 { margin: .18rem 0; font-size: .86rem; }
.notice-list p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.record-body { margin-top: 1rem; color: var(--ink-soft); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-body-heading { margin-top: 1.5rem !important; }
.record-list { margin: .9rem 0 0; padding: 0; list-style: none; }
.record-list li { padding: .7rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.record-list small { display: block; margin-top: .2rem; color: var(--ink-soft); }
.record-pagination { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.pagination { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.pagination a { display: inline-flex; align-items: center; min-height: 34px; padding: .35rem .55rem; border: 1px solid #bdd8d3; border-radius: 9px; background: #fff; font-size: .77rem; font-weight: 760; }
.pagination a:hover { border-color: var(--teal); background: #f6fcfa; }
.empty-state { display: grid; justify-items: center; padding: 2.5rem 1rem; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: .65rem; border-radius: 18px; background: var(--teal-pale); color: var(--teal); font-size: 1.55rem; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.data-table th { padding: .75rem .7rem; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: .73rem; font-weight: 750; white-space: nowrap; }
.data-table td { padding: 1rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table td.catalog-price-editor { min-width: 240px; }
.catalog-price-editor .stack-form { margin-top: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafdfc; }
.data-table td strong { font-weight: 700; }
.data-table td small { display: block; margin-top: .18rem; color: var(--muted); font-size: .75rem; }
.data-table td .status + .status { display: block; margin-top: .3rem; }
.data-table .amount { font-weight: 720; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-action { text-align: right; white-space: nowrap; }
.row-action a { font-size: .82rem; font-weight: 750; }

.invoice-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(275px,.8fr); align-items: start; gap: 1.25rem; }
.invoice-grid__main { display: grid; gap: 1.25rem; min-width: 0; }
.invoice-grid__side { min-width: 0; }
.invoice-totals { display: grid; gap: .55rem; width: min(100%, 340px); margin: 1.5rem 0 .15rem auto; }
.invoice-totals div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .86rem; }
.invoice-totals strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.invoice-totals__due { padding-top: .75rem; border-top: 1px solid var(--line); font-size: .98rem !important; font-weight: 750; }
.invoice-totals__due strong { color: var(--teal-deep); font-size: 1.12rem; }
.balance-amount { display: block; margin: .1rem 0 .5rem; color: var(--navy); font-size: 2rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.payment-form { margin: 1.1rem 0; }
.payment-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.payment-form legend { margin-bottom: .5rem; font-size: .8rem; font-weight: 750; }
.choice { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; margin-bottom: .45rem; border: 1px solid #cfe2de; border-radius: 9px; background: white; font-size: .84rem; font-weight: 650; }
.choice input { accent-color: var(--teal); }

.ticket-list { border-top: 1px solid var(--line); }
.ticket-row { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { color: var(--teal-deep); }
.ticket-row__body { display: grid; gap: .12rem; flex: 1; min-width: 0; }
.ticket-row__body strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }
.ticket-row__body small, .ticket-row__number { color: var(--muted); font-size: .75rem; }
.ticket-row__arrow { color: var(--teal); font-size: 1.15rem; }
.ticket-detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,.75fr); gap: 1.25rem; align-items: start; }
.conversation { margin: 0; padding: 0; list-style: none; }
.conversation__entry { display: flex; gap: .8rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.conversation__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: #dcece9; color: var(--teal-deep); font-size: .8rem; font-weight: 800; }
.conversation__content { min-width: 0; flex: 1; }
.conversation__meta { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; font-size: .82rem; }
.conversation__meta time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.conversation__body { padding-top: .45rem; color: var(--ink-soft); font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .7rem 0 0; list-style: none; }
.attachment-list li { padding: .35rem .55rem; border-radius: 6px; background: #eef4f3; font-size: .76rem; }
.attachment-list span { color: var(--muted); }
.reply-form { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.reply-form h3 { margin: 0 0 .65rem; font-size: 1rem; }
.reply-form__actions { display: flex; align-items: center; gap: .7rem; justify-content: space-between; margin-top: .7rem; }
.file-label { color: var(--teal-deep); font-size: .8rem; font-weight: 700; }
.reply-form__actions input { max-width: 180px; font-size: .75rem; }
.detail-list { margin: .4rem 0 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 1rem 0; }
.detail-grid > div { min-width: 0; padding: .65rem 0; border-top: 1px solid var(--line); }
.detail-grid dt { color: var(--muted); font-size: .76rem; }
.detail-grid dd { margin: .2rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.detail-list div { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-top: 1px solid #d8e9e4; font-size: .83rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 650; text-align: right; }
.detail-list dt, .detail-list dd { min-width: 0; overflow-wrap: anywhere; }
.activity-list > div { display: grid; padding: .68rem 0; border-top: 1px solid #d8e9e4; }
.activity-list strong { font-size: .81rem; }
.activity-list time { color: var(--muted); font-size: .73rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .58rem 1rem; border: 1px solid transparent; border-radius: 9px; font-size: .83rem; font-weight: 760; line-height: 1.2; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.button--primary { color: white; background: var(--teal); }
.button--primary:hover { color: white; background: var(--teal-deep); }
.button--outline { border-color: #bdd8d3; color: var(--teal-deep); background: white; }
.button--outline:hover { border-color: var(--teal); color: var(--teal-deep); background: #f6fcfa; }
.button--text { color: var(--ink-soft); background: transparent; }
.button--text:hover { color: var(--teal-deep); background: var(--teal-pale); }
.button--small { min-height: 34px; padding: .35rem .55rem; font-size: .77rem; }
.button--full { display: flex; width: 100%; }
.stack-form { display: grid; gap: .4rem; margin-top: 1.25rem; }
.stack-form label, .field-label-row label { color: var(--ink); font-size: .81rem; font-weight: 750; }
.stack-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]), .stack-form select, .stack-form textarea, .reply-form textarea { width: 100%; min-height: 43px; padding: .65rem .75rem; border: 1px solid #cbd9dc; border-radius: 8px; background: white; color: var(--ink); outline: none; }
.stack-form textarea, .reply-form textarea { resize: vertical; min-height: 120px; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .reply-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,126,131,.13); }
.stack-form input[type="file"] { width: 100%; font-size: .78rem; }
.stack-form .button { margin-top: .8rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; margin: .35rem 0; color: var(--ink); font-size: .84rem; font-weight: 650; }
.checkbox-row input { flex: 0 0 auto; margin: .32rem 0 0; accent-color: var(--teal); }
#membership-permissions-form, #membership-revoke-form { display: grid; gap: .45rem; margin-top: 1.25rem; }
#membership-permissions-form label:not(.checkbox-row), #membership-revoke-form label:not(.checkbox-row) { color: var(--ink); font-size: .81rem; font-weight: 750; }
#membership-permissions-form textarea, #membership-revoke-form textarea, #membership-permissions-form input[type="password"], #membership-revoke-form input[type="password"] { width: 100%; min-height: 43px; padding: .65rem .75rem; border: 1px solid #cbd9dc; border-radius: 8px; background: #fff; color: var(--ink); resize: vertical; }
#membership-permissions-form textarea, #membership-revoke-form textarea { min-height: 120px; }
#membership-permissions-form fieldset { margin: .25rem 0 .7rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 9px; }
#membership-permissions-form legend { padding-inline: .25rem; font-size: .82rem; font-weight: 750; }
#membership-permissions-form .button, #membership-revoke-form .button { justify-self: start; margin-top: .7rem; }
#membership-permissions-form > .button { color: #fff; background: var(--teal); }
#membership-permissions-form > .button:hover { background: var(--teal-deep); }
.field-error { display: block; margin: -.15rem 0 .3rem; color: var(--red); font-size: .76rem; }
.field-hint, .optional { color: var(--muted); font-size: .73rem; font-weight: 400; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.field-label-row a { font-size: .77rem; font-weight: 680; }
.alert { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #b7dcd4; border-radius: 8px; color: #145d54; background: #e8f6f2; font-size: .85rem; }
.alert--error { border-color: #ebc4c0; color: var(--red); background: var(--red-pale); }
.alert--info { border-color: #cbdce4; color: #386077; background: #edf6f9; }

.layout-auth { background: #edf3f1; }
.auth-main { min-height: calc(100vh - 52px); }
.auth-layout { display: grid; grid-template-columns: minmax(300px,1fr) minmax(390px,470px); min-height: calc(100vh - 52px); }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem); color: white; background: radial-gradient(circle at 83% 14%, rgba(102,207,182,.23), transparent 25%), linear-gradient(145deg, #0b3a4a 0%, #0b5661 60%, #0b7776 100%); }
.brand--auth, .brand--auth:hover { color: white; }
.brand--auth .brand__mark { background: #c5ece3; color: var(--navy); }
.brand--auth .brand__text strong { color: #a7e2d7; }
.auth-intro .eyebrow { color: #aee8db; }
.auth-intro h1 { margin: .4rem 0 1rem; font-size: clamp(2.7rem, 5vw, 4.2rem); letter-spacing: -.06em; line-height: 1.22; }
.auth-intro p:not(.eyebrow) { color: #d8eeeb; font-size: 1rem; }
.auth-intro small { color: #b6dad7; font-size: .75rem; }
.auth-card { align-self: center; width: min(100% - 3rem, 390px); margin: 3rem auto; padding: .5rem 0; }
.auth-card h2 { margin: .15rem 0 .3rem; color: var(--navy); font-size: 1.75rem; letter-spacing: -.035em; }
.auth-card > p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.auth-card .stack-form { gap: .52rem; margin-top: 1.7rem; }
.auth-card .stack-form input { margin-bottom: .55rem; }
.auth-card .stack-form .button { min-height: 47px; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1.35rem 0; color: var(--muted); font-size: .73rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #cbd9dc; }
.auth-footer { margin-top: 1.45rem !important; text-align: center; }
.auth-footer a { font-weight: 760; }
.auth-back { margin-top: 1.4rem; }
.layout-auth .site-footer { background: #edf3f1; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .74rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; }

@media (max-width: 1200px) {
  .site-header__inner { flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding-top: .65rem; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; min-height: 49px; }
  .main-nav a { padding-inline: .8rem; }
  .content-grid, .invoice-grid, .ticket-detail-grid { grid-template-columns: minmax(0,1fr) minmax(250px,.75fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 1.5rem, 600px); }
  .page-main { padding-block: 1.4rem 3rem; }
  .page-hero { align-items: flex-start; flex-direction: column; }
  .page-hero--welcome { padding: 1.6rem; }
  .metric-grid, .metric-grid--four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid .metric-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .content-grid, .invoice-grid, .ticket-detail-grid, .catalog-grid { display: grid; grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .content-grid__main, .content-grid__aside { width: 100%; }
  .panel { padding: 1.15rem; }
  .auth-layout { grid-template-columns: 1fr; min-height: unset; }
  .auth-intro { min-height: 200px; padding: 1.5rem; }
  .auth-intro h1 { margin-bottom: .3rem; font-size: 2.2rem; }
  .auth-intro h1 br { display: none; }
  .auth-intro small { display: none; }
  .auth-card { margin: 1.3rem auto 2.4rem; }
  .auth-main { min-height: calc(100vh - 52px); }
}
@media (max-width: 570px) {
  .header-account__identity { max-width: 115px; }
  .account-switcher select { max-width: 100px; }
  .account-switcher .button { padding-inline: .4rem; }
  .brand__text { font-size: .96rem; }
  .main-nav { margin-inline: -.75rem; padding-inline: .75rem; }
  .main-nav a { padding-inline: .68rem; font-size: .85rem; }
  .metric-grid, .metric-grid--four { gap: .65rem; }
  .metric-card { min-height: 127px; padding: .9rem; }
  .metric-card__value { font-size: 1.8rem; }
  .metric-card__label { font-size: .75rem; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody tr { padding: .75rem 0; border-top: 1px solid var(--line); }
  .data-table tbody tr:last-child { padding-bottom: 0; }
  .data-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: .75rem; font-weight: 600; text-align: left; }
  .data-table td.row-action::before { content: ""; }
  .data-table td .status + .status { margin-left: auto; }
  .data-table td:first-child strong { font-size: .88rem; }
  .data-table td small { max-width: 220px; overflow-wrap: anywhere; }
  .data-table td.row-action { justify-content: flex-end; }
  .data-table td.catalog-price-editor { display: block; min-width: 0; text-align: left; }
  .data-table td.catalog-price-editor::before { display: block; margin-bottom: .35rem; }
  .item-row { gap: .6rem; }
  .item-row__icon { width: 33px; height: 33px; }
  .item-row__body strong { max-width: 165px; }
  .item-row__end strong { font-size: .82rem; }
  .ticket-row { gap: .45rem; }
  .conversation__meta { display: grid; gap: .1rem; }
  .reply-form__actions { flex-wrap: wrap; }
  .reply-form__actions .button { margin-left: auto; }
  .site-footer .container { display: block; text-align: center; }
  .site-footer span + span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  body { color: #111; background: #fff; }
  .site-header, .site-footer, .breadcrumb, .invoice-print-button, .payment-form,
  .invoice-grid__side .text-link, .skip-link { display: none !important; }
  .page-main.container { width: 100%; max-width: none; padding: 0; }
  .page-hero { padding: 0 0 1rem; border: 0; box-shadow: none; }
  .invoice-grid { display: block; }
  .panel { margin-bottom: 1rem; border: 1px solid #bbb; box-shadow: none; break-inside: avoid; }
  .data-table { width: 100%; }
  a { color: inherit; text-decoration: none; }
}
