:root {
    --hd-bg: #fafaf8;
    --hd-surface: #ffffff;
    --hd-surface-soft: #f3f1ee;
    --hd-surface-warm: #f7f3ee;
    --hd-ink: #292929;
    --hd-charcoal: #414141;
    --hd-muted: #74716d;
    --hd-muted-2: #9b9690;
    --hd-orange: #da853c;
    --hd-orange-dark: #b96525;
    --hd-orange-soft: #f7e9dc;
    --hd-line: #e5e0da;
    --hd-line-strong: #d8d1ca;
    --hd-green: #247a52;
    --hd-green-soft: #e8f3ed;
    --hd-red: #b0443e;
    --hd-red-soft: #faecea;
    --hd-orange-deep: #9f541f;
    --hd-orange-pale: #fbf1e8;
    --hd-slate: #667380;
    --hd-radius-lg: 24px;
    --hd-radius-md: 18px;
    --hd-radius-sm: 12px;
    --hd-shadow: 0 18px 50px rgba(41, 41, 41, .07);
    --hd-shadow-soft: 0 8px 26px rgba(41, 41, 41, .05);
    --hd-font: "Red Hat Display", "Prompt", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: light; background: var(--hd-bg); }
body { margin: 0; min-height: 100vh; color: var(--hd-ink); background: var(--hd-bg); font-family: var(--hd-font); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { margin-bottom: 0; color: var(--hd-ink); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
p { color: var(--hd-muted); }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 22px; border-right: 1px solid var(--hd-line); background: var(--hd-surface); z-index: 10; overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-mark { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 14px; color: #fff; background: var(--hd-orange); box-shadow: 0 10px 24px rgba(218, 133, 60, .22); font-size: .83rem; font-weight: 900; }
.brand strong { display: block; font-size: 1.12rem; font-weight: 900; line-height: 1.15; letter-spacing: .01em; }
.brand strong em { margin-left: 5px; padding: 2px 7px; border: 1px solid #efc8a6; border-radius: 999px; color: var(--hd-orange-dark); background: var(--hd-orange-soft); font-size: .5rem; font-style: normal; letter-spacing: .08em; vertical-align: 3px; }
.brand small { display: block; margin-top: 4px; color: var(--hd-muted); font-size: .68rem; font-weight: 500; line-height: 1.1; letter-spacing: .04em; }
.workspace-card { margin: 30px 0 22px; padding: 18px; border: 1px solid var(--hd-line); border-radius: var(--hd-radius-md); background: var(--hd-surface-soft); }
.workspace-card strong { display: block; margin: 7px 0 13px; font-size: 1rem; }
.eyebrow { color: var(--hd-orange-dark); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.role-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--hd-orange-dark); background: var(--hd-orange-soft); font-size: .61rem; font-weight: 900; letter-spacing: .1em; }
.main-nav { display: grid; gap: 5px; }
.nav-section-label { display: block; margin: 17px 14px 5px; color: rgba(101, 84, 67, .58); font-size: .54rem; font-weight: 800; letter-spacing: .14em; }
.nav-section-label:first-child { margin-top: 0; }
.main-nav a { min-height: 45px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; color: var(--hd-charcoal); font-size: .86rem; font-weight: 600; transition: .2s ease; }
.main-nav a:hover { border-color: var(--hd-line); background: var(--hd-surface-soft); transform: translateX(2px); }
.main-nav a.active { color: var(--hd-orange-dark); border-color: #f0d8c3; background: var(--hd-orange-soft); }
.nav-icon { width: 21px; color: var(--hd-muted); text-align: center; font-size: .98rem; }
.main-nav a.active .nav-icon { color: var(--hd-orange); }
.sidebar-footer { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 18px 9px 2px; border-top: 1px solid var(--hd-line); }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: .7rem; }
.sidebar-footer small { margin-top: 2px; color: var(--hd-muted-2); font-size: .63rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hd-green); box-shadow: 0 0 0 5px var(--hd-green-soft); }

.main-content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 8; min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--hd-line); background: rgba(250, 250, 248, .94); backdrop-filter: blur(16px); }
.topbar-context { color: var(--hd-muted); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.mobile-brand { display: none; font-weight: 900; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.language-switch { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--hd-line-strong); border-radius: 999px; color: var(--hd-orange-dark); background: var(--hd-surface); font-size: .66rem; font-weight: 800; box-shadow: var(--hd-shadow-soft); }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--hd-orange-dark); background: var(--hd-orange-soft); font-weight: 800; }
.user-copy strong, .user-copy span { display: block; }
.user-copy strong { font-size: .76rem; }
.user-copy span { color: var(--hd-muted); font-size: .65rem; }
.logout-button { padding: 7px 10px; border: 1px solid transparent; border-radius: 999px; color: var(--hd-muted); background: none; font-size: .68rem; font-weight: 700; cursor: pointer; }
.logout-button:hover { color: var(--hd-orange-dark); border-color: var(--hd-line); background: var(--hd-surface); }

.page-wrap { max-width: 1580px; margin: 0 auto; padding: 38px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.page-heading h1 { margin: 8px 0 7px; font-size: clamp(1.9rem, 2.6vw, 2.35rem); }
.page-heading p { margin: 0; font-size: .88rem; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.date-chip { padding: 9px 14px; border: 1px solid var(--hd-line); border-radius: 999px; color: var(--hd-muted); background: var(--hd-surface); font-size: .68rem; font-weight: 600; }
.alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #b9dfcf; border-radius: 13px; color: var(--hd-green); background: var(--hd-green-soft); font-size: .75rem; font-weight: 650; }
.alert.error { color: var(--hd-red); border-color: #efc6c2; background: var(--hd-red-soft); }
.alert.warning { color: var(--hd-orange-dark); border-color: #efcfb3; background: var(--hd-orange-soft); }
.alert code { display: block; margin-top: 7px; color: var(--hd-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }

.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { --accent: var(--hd-orange); position: relative; min-height: 148px; padding: 20px; overflow: hidden; border: 1px solid var(--hd-line); border-radius: var(--hd-radius-md); background: var(--hd-surface); box-shadow: var(--hd-shadow-soft); }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.stat-card small { color: var(--hd-muted); font-size: .68rem; font-weight: 650; }
.stat-card strong { display: block; margin-top: 27px; font-size: 1.75rem; line-height: 1; }
.stat-card em { display: block; margin-top: 12px; color: var(--hd-muted-2); font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.accent-green { --accent: var(--hd-green); }.accent-red { --accent: var(--hd-red); }.accent-orange-dark { --accent: var(--hd-orange-deep); }.accent-slate { --accent: var(--hd-slate); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--hd-line); border-radius: var(--hd-radius-lg); background: var(--hd-surface); box-shadow: var(--hd-shadow); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 26px 17px; }
.panel-head h2 { margin-top: 5px; font-size: 1.22rem; }
.panel-head p { margin: 5px 0 0; font-size: .7rem; }
.panel-body { padding: 0 26px 26px; }
.panel-section { padding: 24px 26px; border-top: 1px solid var(--hd-line); }
.panel-section:first-child { border-top: 0; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 13px 14px; color: var(--hd-muted); background: var(--hd-surface-soft); font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child { border-radius: 11px 0 0 11px; }.data-table th:last-child { border-radius: 0 11px 11px 0; }
.data-table td { padding: 15px 14px; border-bottom: 1px solid var(--hd-line); font-size: .7rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { margin-top: 2px; color: var(--hd-muted); font-size: .6rem; }
.amount { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: var(--hd-muted); background: var(--hd-surface-soft); font-size: .56rem; font-weight: 800; white-space: nowrap; }
.status-badge.paid, .status-badge.delivered, .status-badge.active { color: var(--hd-green); background: var(--hd-green-soft); }
.status-badge.failed, .status-badge.amount_mismatch, .status-badge.expired, .status-badge.disputed { color: var(--hd-red); background: var(--hd-red-soft); }
.status-badge.pending, .status-badge.processing, .status-badge.retrying { color: var(--hd-orange-dark); background: var(--hd-orange-soft); }
.status-badge.archived { color: var(--hd-orange-deep); background: var(--hd-orange-pale); }
.empty-state { min-height: 180px; display: grid; place-content: center; text-align: center; color: var(--hd-muted); }
.empty-state b { display: block; margin-bottom: 5px; color: var(--hd-ink); }

.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--hd-line); border-radius: 12px; color: var(--hd-charcoal); background: var(--hd-surface); font-size: .68rem; font-weight: 800; cursor: pointer; transition: .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--hd-shadow-soft); }
.btn-primary { color: #fff; border-color: var(--hd-orange); background: var(--hd-orange); }
.btn-dark { color: #fff; border-color: var(--hd-charcoal); background: var(--hd-charcoal); }
.btn-danger { color: var(--hd-red); border-color: #e8bbb7; background: var(--hd-red-soft); }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: .6rem; }
.text-action { color: var(--hd-orange-dark); font-size: .66rem; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field span { display: block; margin-bottom: 6px; color: var(--hd-charcoal); font-size: .65rem; font-weight: 700; }
.field small { display: block; margin-top: 5px; color: var(--hd-muted-2); font-size: .58rem; }
.field input, .field select, .field textarea, .filters input, .filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--hd-line-strong); border-radius: 11px; outline: none; color: var(--hd-ink); background: var(--hd-surface); font-size: .69rem; }
.field textarea { min-height: 88px; padding-top: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--hd-orange); box-shadow: 0 0 0 4px rgba(218, 133, 60, .1); }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--hd-charcoal); font-size: .68rem; font-weight: 650; }
.check-row input { width: 17px; height: 17px; accent-color: var(--hd-orange); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.error-text { display: block; margin-top: 5px; color: var(--hd-red); font-size: .58rem; }
.filters { display: grid; grid-template-columns: minmax(210px, 1fr) 190px 160px 150px 150px auto; gap: 9px; padding: 14px; border-bottom: 1px solid var(--hd-line); background: var(--hd-surface-soft); }
.filters .btn { min-height: 44px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 26px 24px; color: var(--hd-muted); font-size: .65rem; }

.app-card { padding: 20px; border: 1px solid var(--hd-line); border-radius: var(--hd-radius-md); background: var(--hd-surface); box-shadow: var(--hd-shadow-soft); }
.app-card + .app-card { margin-top: 12px; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.app-card-head h3 { font-size: .92rem; }
.app-card-head p { margin: 3px 0 0; font-size: .63rem; }
.app-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 15px; }
.app-meta div { padding: 11px; border-radius: 11px; background: var(--hd-surface-soft); }
.app-meta small, .app-meta strong { display: block; }
.app-meta small { color: var(--hd-muted); font-size: .55rem; }.app-meta strong { margin-top: 3px; overflow: hidden; font-size: .65rem; text-overflow: ellipsis; }
.credentials-box { padding: 16px; border: 1px dashed var(--hd-orange); border-radius: 14px; background: var(--hd-orange-soft); }
.credentials-box code { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; color: var(--hd-ink); background: #fff; font-size: .68rem; user-select: all; word-break: break-all; }
.secret-mask { font-family: ui-monospace, monospace; font-size: .65rem; }

.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--hd-line); border-radius: var(--hd-radius-lg); background: var(--hd-surface); box-shadow: var(--hd-shadow-soft); overflow: hidden; }
.metric-strip > div { min-height: 132px; padding: 22px; border-left: 1px solid var(--hd-line); }
.metric-strip > div:first-child { border-left: 0; }
.metric-strip small { color: var(--hd-muted); font-size: .62rem; }.metric-strip strong { display: block; margin-top: 18px; font-size: 1.45rem; }
.report-site { display: flex; align-items: center; gap: 11px; }.site-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--hd-orange-dark); background: var(--hd-orange-soft); font-size: .62rem; font-weight: 900; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; align-items: start; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--hd-line); border-radius: 14px; background: var(--hd-line); }
.detail-list > div { padding: 14px; background: var(--hd-surface); }
.detail-list small, .detail-list strong { display: block; }.detail-list small { color: var(--hd-muted); font-size: .58rem; }.detail-list strong { margin-top: 4px; font-size: .7rem; word-break: break-word; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 78% 18%, rgba(218,133,60,.12), transparent 34%), linear-gradient(135deg, #fafaf8, #f4f0eb); }
.auth-card { width: min(520px, 100%); padding: 38px; border: 1px solid var(--hd-line); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 30px 80px rgba(41,41,41,.1); }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 1.45rem; }.auth-card > p { margin: 7px 0 26px; font-size: .78rem; }
.auth-card .field { display: block; margin-top: 15px; }.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-footer { margin-top: 24px; color: var(--hd-muted-2); font-size: .6rem; text-align: center; }

.checkout-page { min-height: 100vh; padding: 32px; background: radial-gradient(circle at 75% 4%, rgba(218,133,60,.12), transparent 28%), var(--hd-bg); }
.checkout-top { max-width: 1180px; display: flex; align-items: center; justify-content: space-between; margin: 0 auto 26px; }
.checkout-top .brand small { letter-spacing: .02em; }
.secure-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #b9dfcf; border-radius: 999px; color: var(--hd-green); background: var(--hd-green-soft); font-size: .62rem; font-weight: 800; }
.checkout-grid { max-width: 1180px; display: grid; grid-template-columns: minmax(320px, .72fr) minmax(480px, 1.28fr); gap: 22px; align-items: start; margin: 0 auto; }
.order-summary { position: sticky; top: 28px; padding: 28px; border: 1px solid var(--hd-line); border-radius: var(--hd-radius-lg); background: var(--hd-surface); box-shadow: var(--hd-shadow); }
.order-summary h1 { margin: 7px 0 8px; font-size: 1.65rem; }.order-summary > p { margin-bottom: 22px; font-size: .72rem; }
.order-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hd-line); }
.order-item strong, .order-item small { display: block; }.order-item strong { font-size: .72rem; }.order-item small { margin-top: 2px; color: var(--hd-muted); font-size: .6rem; }
.order-totals { margin-top: 9px; padding-top: 12px; border-top: 1px solid var(--hd-line); }
.order-totals div { display: flex; justify-content: space-between; gap: 15px; padding: 5px 0; color: var(--hd-muted); font-size: .67rem; }.order-totals .grand-total { margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--hd-line); color: var(--hd-ink); font-size: .88rem; font-weight: 800; }
.checkout-form-card { min-height: 560px; padding: 18px; border: 1px solid var(--hd-line); border-radius: var(--hd-radius-lg); background: var(--hd-surface); box-shadow: var(--hd-shadow); }
#checkout { min-height: 520px; }.checkout-loader { min-height: 500px; display: grid; place-content: center; justify-items: center; color: var(--hd-muted); font-size: .72rem; }.spinner { width: 32px; height: 32px; margin-bottom: 12px; border: 3px solid var(--hd-orange-soft); border-top-color: var(--hd-orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-security { max-width: 1180px; margin: 20px auto 0; color: var(--hd-muted); font-size: .62rem; text-align: center; }
.result-card { max-width: 620px; margin: 9vh auto; padding: 44px; border: 1px solid var(--hd-line); border-radius: 28px; background: var(--hd-surface); box-shadow: var(--hd-shadow); text-align: center; }.result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 20px; color: var(--hd-green); background: var(--hd-green-soft); font-size: 1.8rem; }

@media (max-width: 1250px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }.sidebar { position: static; width: 100%; height: auto; padding: 18px; }.workspace-card, .sidebar-footer { display: none; }.main-nav { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }.nav-section-label { display: none; }.main-nav a { justify-content: center; }.topbar { position: static; padding: 0 22px; }.topbar-context { display: none; }.mobile-brand { display: block; }.page-wrap { padding: 25px; }.content-grid, .detail-grid { grid-template-columns: 1fr; }.checkout-grid { grid-template-columns: 1fr; }.order-summary { position: static; }.checkout-form-card { min-height: 500px; }
}
@media (max-width: 680px) {
    body { font-size: 14px; }.main-nav { grid-template-columns: 1fr 1fr; }.main-nav a { justify-content: flex-start; }.user-copy { display: none; }.page-wrap { padding: 20px 15px; }.page-heading { display: block; }.page-actions { margin-top: 14px; }.stats-grid, .metric-strip { grid-template-columns: 1fr 1fr; }.stat-card { min-height: 125px; }.metric-strip { overflow: visible; border: 0; background: none; box-shadow: none; gap: 10px; }.metric-strip > div { min-height: 110px; border: 1px solid var(--hd-line) !important; border-radius: 14px; background: var(--hd-surface); }.form-grid, .detail-list, .filters { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.app-meta { grid-template-columns: 1fr; }.panel-head { align-items: flex-start; padding: 20px; }.panel-body { padding: 0 20px 20px; }.checkout-page { padding: 18px 12px; }.checkout-top { align-items: flex-start; }.secure-chip { display: none; }.checkout-grid { gap: 14px; }.order-summary { padding: 22px; }.checkout-form-card { padding: 5px; border-radius: 18px; }.auth-page { padding: 15px; }.auth-card { padding: 26px 22px; }.data-table td, .data-table th { padding: 12px 10px; }
}

/* HostDrift Inventory — CRM orange public site and inventory components */
.public-page{min-height:100vh;color:var(--hd-ink);background:var(--hd-bg)}
.public-container{width:min(1180px,calc(100% - 48px));margin:0 auto}
.public-header{position:sticky;top:0;z-index:30;border-bottom:1px solid var(--hd-line);background:rgba(250,250,248,.94);backdrop-filter:blur(16px)}
.public-nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.public-nav-links,.public-nav-actions,.hero-actions,.quick-actions,.inline-actions{display:flex;align-items:center;gap:12px}
.public-nav-links a{color:var(--hd-muted);font-size:.72rem;font-weight:700}.public-nav-links a:hover{color:var(--hd-orange-dark)}
.public-language{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--hd-line-strong);border-radius:999px;color:var(--hd-orange-dark);background:#fff;font-size:.66rem;font-weight:900}
.public-hero{position:relative;overflow:hidden;padding:105px 0 95px;background:radial-gradient(circle at 82% 15%,rgba(218,133,60,.17),transparent 34%),var(--hd-bg)}
.public-hero:after{content:"";position:absolute;width:520px;height:520px;right:-180px;bottom:-320px;border:1px solid rgba(218,133,60,.28);border-radius:50%;box-shadow:0 0 0 70px rgba(218,133,60,.04),0 0 0 140px rgba(218,133,60,.025)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr);align-items:center;gap:70px}
.hero-copy h1{max-width:780px;margin:18px 0 24px;font-size:clamp(3rem,6vw,5.8rem);line-height:.98;letter-spacing:-.065em}.hero-copy h1 em{color:var(--hd-orange);font-style:normal}
.hero-copy>p{max-width:700px;margin-bottom:31px;font-size:1rem;line-height:1.8}.hero-actions .btn{min-height:50px;padding:0 22px;font-size:.76rem}
.hero-note{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.hero-note span{padding:7px 11px;border:1px solid var(--hd-line);border-radius:999px;color:var(--hd-muted);background:#fff;font-size:.61rem;font-weight:700}
.inventory-preview{position:relative;padding:22px;border:1px solid var(--hd-line);border-radius:30px;background:#fff;box-shadow:0 28px 80px rgba(41,41,41,.11)}
.preview-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.preview-dots{display:flex;gap:6px}.preview-dots i{width:8px;height:8px;border-radius:50%;background:var(--hd-line-strong)}.preview-dots i:first-child{background:var(--hd-orange)}
.preview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.preview-stats div{padding:15px;border-radius:14px;background:var(--hd-surface-soft)}.preview-stats small,.preview-stats strong{display:block}.preview-stats small{color:var(--hd-muted);font-size:.54rem}.preview-stats strong{margin-top:7px;font-size:1.25rem}
.preview-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;margin-top:10px;padding:13px;border:1px solid var(--hd-line);border-radius:14px}.preview-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:var(--hd-orange-dark);background:var(--hd-orange-soft);font-weight:900}.preview-item strong,.preview-item small{display:block}.preview-item strong{font-size:.7rem}.preview-item small{color:var(--hd-muted);font-size:.57rem}.preview-qty{font-size:.75rem;font-weight:900}
.public-section{padding:96px 0;border-top:1px solid var(--hd-line);background:#fff}.public-section.soft{background:var(--hd-surface-soft)}
.section-heading{max-width:760px;margin-bottom:42px}.section-heading h2{margin:10px 0 14px;font-size:clamp(2rem,4vw,3.25rem)}.section-heading p{font-size:.88rem;line-height:1.8}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.feature-card{min-height:240px;padding:27px;border:1px solid var(--hd-line);border-radius:22px;background:var(--hd-bg);transition:.2s}.feature-card:hover{transform:translateY(-3px);border-color:#edcfb4;background:#fff;box-shadow:var(--hd-shadow)}
.feature-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:28px;border-radius:14px;color:var(--hd-orange-dark);background:var(--hd-orange-soft);font-size:1.1rem;font-weight:900}.feature-card h3{margin-bottom:10px;font-size:1.05rem}.feature-card p{font-size:.72rem;line-height:1.75}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.step-card{position:relative;padding:28px;border-left:3px solid var(--hd-orange);background:#fff}.step-card b{display:block;margin-bottom:26px;color:var(--hd-orange);font-size:2rem}.step-card h3{margin-bottom:10px}.step-card p{font-size:.72rem;line-height:1.7}
.tenant-banner{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:50px;padding:54px;border-radius:30px;color:#fff;background:#2e2d2b}.tenant-banner h2{margin:10px 0 16px;color:#fff;font-size:2.4rem}.tenant-banner p{color:#d4d0cb}.tenant-points{display:grid;gap:11px}.tenant-points span{padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(255,255,255,.06);font-size:.68rem;font-weight:700}
.public-cta{padding:70px 0;color:#fff;background:var(--hd-orange)}.cta-row{display:flex;align-items:center;justify-content:space-between;gap:30px}.cta-row h2{margin-bottom:8px;color:#fff;font-size:2.3rem}.cta-row p{margin:0;color:#fff3e8}.cta-row .btn{border-color:#fff;color:var(--hd-orange-dark);background:#fff}
.public-footer{padding:34px 0;border-top:1px solid var(--hd-line);background:var(--hd-bg)}.footer-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-row p{margin:0;font-size:.66rem}

.brand-mark.inventory{background:var(--hd-orange);box-shadow:0 10px 24px rgba(218,133,60,.22)}
.brand strong em.inventory{color:var(--hd-orange-dark);border-color:#efc8a6;background:var(--hd-orange-soft)}
.item-name{display:flex;align-items:center;gap:11px}.item-thumb{width:42px;height:42px;display:grid;place-items:center;overflow:hidden;border-radius:11px;color:var(--hd-orange-dark);background:var(--hd-orange-soft);font-size:.65rem;font-weight:900}.item-thumb img{width:100%;height:100%;object-fit:cover}
.qty-low{color:var(--hd-red)}.qty-ok{color:var(--hd-green)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.qr-card{text-align:center}.qr-card svg{width:min(240px,100%);height:auto}.qr-url{margin-top:12px;padding:11px;border-radius:10px;background:var(--hd-surface-soft);font-size:.57rem;word-break:break-all;user-select:all}
.form-section{padding:24px 26px;border-top:1px solid var(--hd-line)}.form-section:first-child{border-top:0}.form-section>h2{margin-bottom:17px;font-size:1rem}
.radio-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.radio-card{display:block;padding:14px;border:1px solid var(--hd-line);border-radius:12px;background:#fff;cursor:pointer}.radio-card:has(input:checked){border-color:var(--hd-orange);background:var(--hd-orange-soft)}.radio-card input{margin-right:7px;accent-color:var(--hd-orange)}
.movement-form{display:grid;gap:12px}.movement-positive{color:var(--hd-green)}.movement-negative{color:var(--hd-red)}
.logo-preview{max-width:180px;max-height:90px;object-fit:contain;padding:10px;border:1px solid var(--hd-line);border-radius:12px;background:#fff}
.setup-link{padding:14px;border:1px dashed var(--hd-orange);border-radius:12px;background:var(--hd-orange-soft)}.setup-link code{display:block;margin-top:7px;word-break:break-all;user-select:all}
.scan-page{min-height:100vh;padding:24px;background:radial-gradient(circle at 80% 5%,rgba(218,133,60,.16),transparent 30%),var(--hd-bg)}.scan-card{width:min(680px,100%);margin:5vh auto;padding:30px;border:1px solid var(--hd-line);border-radius:28px;background:#fff;box-shadow:var(--hd-shadow)}.scan-brand{display:flex;align-items:center;gap:13px;margin-bottom:28px}.scan-brand img{width:56px;height:56px;object-fit:contain}.scan-item{display:grid;grid-template-columns:100px 1fr;gap:20px;align-items:center}.scan-item img{width:100px;height:100px;border-radius:18px;object-fit:cover}.scan-data{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:22px;border:1px solid var(--hd-line);border-radius:14px;overflow:hidden;background:var(--hd-line)}.scan-data div{padding:14px;background:#fff}.scan-data small,.scan-data strong{display:block}.scan-data small{color:var(--hd-muted);font-size:.58rem}.scan-data strong{margin-top:4px;font-size:.72rem}
.print-toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;border-bottom:1px solid var(--hd-line);background:rgba(255,255,255,.95)}
.detail-sheet{width:210mm;min-height:297mm;margin:20px auto;padding:18mm;border:1px solid var(--hd-line);background:#fff;box-shadow:var(--hd-shadow)}.detail-sheet-head{display:grid;grid-template-columns:1fr 42mm;gap:15mm;align-items:start;padding-bottom:10mm;border-bottom:1px solid var(--hd-line)}.detail-sheet-head svg{width:38mm;height:38mm}.detail-sheet-logo{max-width:52mm;max-height:18mm;object-fit:contain}.detail-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:10mm;border:1px solid var(--hd-line);background:var(--hd-line)}.detail-sheet-grid div{padding:5mm;background:#fff}.detail-sheet-grid small,.detail-sheet-grid strong{display:block}.detail-sheet-grid small{color:var(--hd-muted);font-size:9pt}.detail-sheet-grid strong{margin-top:2mm;font-size:11pt}.detail-sheet-footer{margin-top:14mm;padding-top:6mm;border-top:1px solid var(--hd-line);color:var(--hd-muted);font-size:9pt;text-align:center}
.labels-page{padding:12mm;background:#e9e7e3}.label-grid{display:grid;gap:4mm;margin:0 auto}.label-grid.size-a4{grid-template-columns:repeat(3,1fr);width:190mm}.label-grid.size-50x30{grid-template-columns:repeat(3,50mm);justify-content:center}.label-grid.size-60x40{grid-template-columns:repeat(3,60mm);justify-content:center}.label-grid.size-100x50{grid-template-columns:repeat(2,100mm);justify-content:center}.label-card{display:grid;grid-template-columns:1fr 24mm;gap:3mm;align-items:center;min-height:30mm;padding:3mm;overflow:hidden;border:1px dashed #aaa;background:#fff;break-inside:avoid}.size-60x40 .label-card{min-height:40mm}.size-100x50 .label-card{min-height:50mm;grid-template-columns:1fr 34mm}.label-card svg{width:100%;height:auto}.label-card strong,.label-card small{display:block}.label-card strong{font-size:8pt;line-height:1.25}.label-card small{margin-top:1mm;color:#555;font-size:6.8pt;line-height:1.25}

@media(max-width:980px){.public-nav-links{display:none}.hero-grid,.tenant-banner{grid-template-columns:1fr}.hero-grid{gap:45px}.feature-grid{grid-template-columns:repeat(2,1fr)}.steps-grid{grid-template-columns:1fr}.tenant-banner{padding:36px}.cta-row{align-items:flex-start;flex-direction:column}.radio-cards{grid-template-columns:1fr}}
@media(max-width:620px){.public-container{width:min(100% - 28px,1180px)}.public-nav-actions .btn:not(.btn-primary){display:none}.public-hero{padding:70px 0}.hero-copy h1{font-size:3.25rem}.feature-grid{grid-template-columns:1fr}.public-section{padding:70px 0}.tenant-banner{padding:28px 22px}.tenant-banner h2{font-size:1.8rem}.footer-row{align-items:flex-start;flex-direction:column}.scan-page{padding:12px}.scan-card{padding:22px 18px}.scan-item{grid-template-columns:72px 1fr}.scan-item img{width:72px;height:72px}.scan-data{grid-template-columns:1fr}.public-nav .brand small{display:none}}
@media print{.no-print,.print-toolbar{display:none!important}body{background:#fff!important}.detail-sheet{margin:0;border:0;box-shadow:none}.labels-page{padding:0;background:#fff}.label-grid{gap:2mm}.label-card{border:1px dashed #aaa}.public-header{display:none}}
