/* Shared application design. Product-proof typography and artwork stay independent. */
:root {
  --ink: #182534;
  --navy: #163750;
  --navy-hover: #244b68;
  --blue-dark: #14658e;
  --muted: #576879;
  --paper: #f5f7f9;
  --line: #dce3e9;
  --shadow: 0 4px 20px #152e4610;
  color-scheme: light;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}
body { background: var(--paper); line-height: 1.5; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button-link { font-weight: 600; }
button:disabled { cursor: not-allowed; }
:is(button, a, summary, select, input, textarea):focus-visible { outline: 3px solid #2080b8; outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { grid-template-columns: 232px minmax(0, 1fr); }
.main { padding: 0 clamp(1.25rem, 3vw, 3rem) 4rem; background: #f5f7f9; color: var(--ink); }
.customer-shell .storefront-main {
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--portal-accent) 8%, transparent) 0, transparent 31rem),
    linear-gradient(145deg, #fff7f7 0%, #f8f7f8 44%, #f3f6f8 100%);
}
.customer-shell .storefront-main .panel,
.customer-shell .storefront-main .product,
.customer-shell .storefront-main .storefront-hero {
  background: color-mix(in srgb, #fff 94%, var(--portal-accent));
}
.customer-shell .storefront-main .checkout-steps li {
  background: color-mix(in srgb, #fff 88%, var(--portal-accent));
}
#content { max-width: 1440px; margin-inline: auto; }
.sidebar { background: var(--portal-dark); padding: 1.5rem 1rem; box-shadow: none !important; overflow-y: auto; }
.sidebar .brand, .tenant-sidebar-brand { margin-bottom: 2rem; }
.tenant-sidebar-logo { height: 74px; border-radius: 10px; padding: .75rem; }
.tenant-sidebar-brand small { font-size: .625rem; letter-spacing: .1em; }
.nav { gap: .375rem; }
.nav button { min-height: 46px; padding: .75rem 1rem; color: #cbd7df; font-size: .875rem; line-height: 1.4; border: 1px solid transparent; }
.nav button.active { background: #ffffff16; border-color: #ffffff14; color: #fff; }
.sidebar-foot { font-size: .8rem; overflow-wrap: anywhere; }
.sidebar-foot strong { font-weight: 600; }
.sidebar-foot span { color: #c5d2db; }
.topbar { min-height: 88px; padding-block: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.topbar-title strong { font-weight: 600; }
.topbar-title > span { letter-spacing: .08em; font-size: .65rem; color: var(--muted); }
.topbar-actions { gap: .65rem; }
.eyebrow, .main .eyebrow { font-size: .65rem; font-weight: 700; letter-spacing: .11em; color: #526476; }
.main :is(h1, h2, h3), .drawer :is(h2, h3), .login-card h2 { font-family: inherit; font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.main h1 { font-size: clamp(1.85rem, 3vw, 2.65rem); }
.main h2, .drawer h2, .login-card h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.main h3 { font-size: 1.125rem; }
.main p { line-height: 1.65; }
.primary, .secondary, .ghost, .options-button, .cart-button, .button-link { min-height: 44px; border-radius: 9px; padding: .65rem 1rem; font-size: .8125rem; line-height: 1.4; font-weight: 650; }
.main .primary, .main .cart-button { background: var(--portal-dark); color: #fff; }
.main .primary:hover, .main .cart-button:hover { background: var(--portal-dark-hover); }
.secondary, .main .secondary { background: #fff; border: 1px solid #cbd6df; color: var(--ink); }
.secondary:hover, .main .secondary:hover { background: #edf2f5; border-color: #aabcca; }
.options-button { background: #fff; color: var(--ink); border: 1px solid #b9c5ce; white-space: nowrap; }
.options-button:hover { background: var(--portal-dark); border-color: var(--portal-dark); color: #fff; }
.cart-button.has-items { background: var(--portal-dark); box-shadow: inset 0 -3px var(--portal-accent); }
.back-link { min-height: 44px; margin-bottom: 1rem; display: inline-flex; align-items: center; font-size: .8125rem; color: var(--ink); }
.panel, .product, .portal-card, .saved-address-card { border-color: var(--line); border-radius: 12px; box-shadow: 0 2px 8px #142c4305; }
.storefront-hero { border: 1px solid var(--line); border-left: 3px solid var(--portal-accent); box-shadow: none; background: #fff; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; gap: 1.5rem; }
.storefront-hero { grid-template-columns: minmax(0, 1fr) auto; }
.storefront-branding .portal-logo { width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.storefront-hero h1 { margin: .2rem 0 .4rem; }
.storefront-hero p { font-size: .875rem; }
.storefront-summary { min-width: 115px; }
.storefront-summary strong { font-family: inherit; font-weight: 600; font-size: 2rem; line-height: 1.2; color: var(--ink); }
.storefront-summary span { margin-top: .25rem; font-size: .7rem; }
.catalog-notice { margin: 0 0 1.5rem; border: 1px solid var(--line); background: #edf1f5; border-radius: 8px; color: #445568; font-size: .75rem; }
.catalog-head { margin: 1.75rem 0 1rem; }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.product { display: flex; flex-direction: column; }
.product-art { height: clamp(200px, 18vw, 260px); border-bottom: 1px solid var(--line); }
.product-art.has-image, .product-link { background: #edf0f3; }
.product-art.has-image img { padding: 1.1rem; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.product-kicker { flex-wrap: wrap; gap: .5rem; }
.product-kicker > span:first-child { background: #edf2f5; color: #4a5e70; font-size: .625rem; font-weight: 600; }
.product-body h3 { font-size: 1rem; line-height: 1.4; margin: .6rem 0 .35rem; }
.product-body p { min-height: 0; margin: .25rem 0 1.25rem; font-size: .8125rem; }
.product-body > .customize-link { display: none; }
.product-footer { margin-top: auto; gap: .75rem; padding-top: 1rem; border-top: 1px solid #e7ecf0; }
.product-footer strong, .order-total strong { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 650; }
.sku { letter-spacing: .06em; color: #637484; }
.product-detail { gap: clamp(1.5rem, 3vw, 3rem); max-width: 1440px; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); }
.product-detail > * { min-width: 0; }
.product-detail h1 { margin: .75rem 0 1rem; }
.detail-price { margin-block: 1.25rem; padding-block: 1rem; }
.product-detail > section, .product-detail > div { min-width: 0; }
.shell-proof-panel, .business-card-preview { border-radius: 12px; }
.field { margin: 0 0 1.25rem; gap: .5rem; }
.field label { font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.field :is(input, textarea, select) { padding: .75rem .875rem; min-height: 46px; border-color: #cbd5df; border-radius: 8px; background: #fff; color: var(--ink); font-size: .875rem; }
.field :is(input, textarea, select):focus { transform: none; border-color: #357da6; box-shadow: 0 0 0 3px #2585bd16; }
.field :is(input, textarea)::placeholder { color: #72808e; opacity: 1; }
.field > small, .field .address-help { font-size: .75rem; line-height: 1.5; }
.address-split-grid { gap: 0; }
.address-city-state-zip { grid-template-columns: minmax(0, 1fr) minmax(85px, .55fr) minmax(90px, .5fr); gap: .75rem; }
.form-grid { gap: 0 1.25rem; }
fieldset { border-color: var(--line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.5rem; }
legend { padding: 0 .5rem; font-size: .8125rem; font-weight: 650; }
.form-save-bar { background: #fff; padding: 1.25rem 0 0; gap: 1rem; }
.form-save-bar span { line-height: 1.5; }
.form-error { padding: 1rem; margin: 0 0 1rem; border: 1px solid #e8b8b3; border-radius: 8px; background: #fff5f4; color: #9c2920; font-size: .875rem; }
.form-change-status { display: block; padding-top: .5rem; font-size: .75rem; color: #845600; }
.store-profile-picker { background: #f0f5f8; padding: 1rem; margin-bottom: 1.25rem; border-color: #cddce7; }
.checkout-actions, .checkout-summary { gap: .75rem; }
.checkout-summary > button { margin-top: .75rem; }
.checkout-summary .primary { min-height: 48px; }
.checkout-steps li { box-shadow: none; border-width: 1px; border-radius: 10px; }
.checkout-steps li.active { box-shadow: inset 0 -3px var(--portal-dark); }
.review-section, .checkout-form, .checkout-summary { border-radius: 12px; }
.drawer { width: min(520px, 100%); padding: 1.5rem; }
.drawer-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.drawer .primary, .drawer .secondary { min-height: 48px; }
.drawer .primary { margin-top: .75rem; }
.cart-line { padding-block: 1.25rem; }
.qty button, .icon-btn { min-width: 44px; min-height: 44px; }
.drawer .primary { background: var(--portal-dark, var(--navy)); }
.drawer .primary:hover { background: var(--portal-dark-hover, var(--navy-hover)); }
.toast { max-width: min(520px, calc(100vw - 2rem)); padding: .9rem 1.25rem; border-radius: 10px; line-height: 1.5; font-size: .875rem; box-shadow: 0 8px 32px #102b4033; z-index: 300; }
.admin-home-hero { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 1.75rem; }
.admin-home-hero { color: var(--ink); }
.admin-home-hero h1 { font-size: clamp(1.85rem, 3vw, 2.65rem); }
.admin-home-hero p { max-width: 600px; color: var(--muted); }
.admin-home-hero::after { display: none; }
.admin-hero-action { border: 1px solid var(--line); box-shadow: 0 2px 6px #172c4310; }
.topbar-actions > button { white-space: nowrap; }
.directory-head { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; }
.directory-head > .catalog-search { order: 2; padding: 0; }
.directory-head > .catalog-empty { grid-column: 1 / -1; }
.directory-head .catalog-result-count { margin: .25rem 0 0; }
.catalog-search label { font-size: .8125rem; font-weight: 600; }
.admin-stat-grid, .workspace-stat-grid { gap: 1rem; }
.admin-stat-grid article, .workspace-stat-grid article { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; padding: 1.25rem; }
.admin-stat-grid strong, .workspace-stat-grid strong { font: 600 2rem/1.2 "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.workspace-head { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.workspace-head .portal-logo { width: 60px; height: 60px; border-radius: 12px; }
.workspace-actions button { white-space: nowrap; }
.admin-tabs { gap: .25rem; padding: .35rem; margin-bottom: 1.75rem; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #eaf0f4; }
.admin-tabs button { min-height: 42px; border: 1px solid transparent; border-radius: 7px; padding: .65rem .875rem; background: transparent; color: #4f6172; font-size: .8125rem; font-weight: 600; }
.admin-tabs button.active { background: #fff; border-color: #d5e0e8; color: #183e59; box-shadow: 0 1px 3px #1c334a10; }
.portal-card { padding: 1.25rem; border-color: var(--line); }
.portal-card .primary { background: var(--navy); }
.portal-card .secondary { border-color: #cbd6df; }
.portal-meta span { background: #eff3f6; }
.product-admin-workspace { grid-template-columns: 285px minmax(0, 1fr); gap: 1.5rem; }
.product-editor-layout { grid-template-columns: 1fr; }
.live-product-preview { position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.25rem; background: #f8fafb; border-radius: 0; }
.admin-preview-card { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1fr); box-shadow: none; }
.admin-preview-art { height: 100%; min-height: 160px; }
.admin-preview-copy p { min-height: 0; }
.product-editor-head { flex-wrap: wrap; }
.product-editor-head h2 { font-size: 1.375rem; }
.manager-list { display: block; }
.manager-row { border-bottom: 1px solid #e9edf1; padding: .9rem; }
.manager-row.selected { background: #edf5fa; box-shadow: inset 3px 0 #226f9d; }
.manager-product strong { font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.manager-row-actions .delete-button { color: #9b453f; font-size: .75rem; }
.manager-row:not(.selected) .manager-row-actions { display: none; }
.manager-badges em { font-size: .625rem; font-weight: 600; }
.catalog-search { padding: 1rem 1rem .25rem; }
.catalog-search .field { margin-bottom: .5rem; }
.catalog-result-count { font-size: .75rem; color: var(--muted); margin: .25rem 0 .75rem; }
.catalog-group-label { padding: .75rem 1rem; margin: 0; background: #f7f9fb; font-size: .75rem; font-weight: 650; color: #4c6073; border-block: 1px solid var(--line); }
.hidden-catalog summary { min-height: 48px; padding: .875rem 1rem; font-size: .8125rem; font-weight: 650; cursor: pointer; color: #4c6073; background: #f5f7f9; }
.hidden-catalog > p { padding: 0 1rem; color: var(--muted); font-size: .75rem; }
.catalog-empty { padding: 1.25rem; color: var(--muted); font-size: .8125rem; }
.member-identity strong, .member-identity small { display: block; }
.member-identity br { display: none; }
.member-identity small { margin-top: .25rem; overflow-wrap: anywhere; }
.member-identity, .member-account-identity { min-width: 0; }
.order-status-control select { min-height: 44px; border-radius: 8px; padding: .5rem .75rem; }
.handoff-json { font-size: .75rem; }

/* Keep order interactions calm and deliberate. A row should read as one
   stable surface while its action button remains the only focused control. */
.orders-table .order-row {
  position: relative;
  isolation: isolate;
  background: #fff;
  border-bottom-color: var(--line);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.orders-table .order-row:hover {
  background: #f6f9fb;
  border-bottom-color: #cbd8e1;
  box-shadow: inset 3px 0 0 #b9cfdd, inset 0 0 0 1px #e5edf2, 0 2px 8px #17344a12;
  z-index: 1;
}
.orders-table .order-row .view-order {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.orders-table .order-row .view-order:hover {
  transform: none;
  box-shadow: none;
  background: #e8f2f7;
  border-color: #aac5d4;
}
/* Some desktop environments force a dark palette while the admin bundle is
   still painting. Keep the order surface dark in that mode so the pointer
   never exposes a bright white repaint between states. */
@media (prefers-color-scheme: dark) {
  .admin-shell .orders-table .order-row {
    background: #1b232a;
    border-bottom-color: #34434f;
    color: #e8f0f4;
  }
  .admin-shell .orders-table .order-row:hover {
    background: #25313a;
    border-bottom-color: #506674;
    box-shadow: inset 3px 0 0 #7faec2, inset 0 0 0 1px #3a4d59, 0 2px 8px #00000040;
  }
  .admin-shell .orders-table .order-row .view-order {
    background: #263943;
    border-color: #527180;
    color: #e8f0f4;
  }
  .admin-shell .orders-table .order-row .view-order:hover {
    background: #304955;
    border-color: #79aabd;
  }
}
.confirm-dialog { width: min(460px, calc(100vw - 2rem)); padding: 1.75rem; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 100px #0b233447; }
.confirm-dialog::backdrop { background: #14233280; backdrop-filter: blur(3px); }
.confirm-dialog h2 { margin: 0 0 .75rem; font: 650 1.4rem/1.3 "Segoe UI", sans-serif; letter-spacing: -.025em; }
.confirm-dialog p { color: var(--muted); margin: 0 0 1.5rem; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .75rem; }
.member-account-row > .member-removal-action { grid-area: remove; align-self: center; }
.member-removal-action { display: grid; justify-items: end; gap: .35rem; }
.member-removal-action small { max-width: 150px; color: #8a5a16; font-size: .675rem; line-height: 1.35; text-align: right; }
.remove-member:disabled { cursor: not-allowed; }
.remove-member[aria-busy="true"] { cursor: wait; }
.member-removal-dialog { width: min(520px, calc(100vw - 2rem)); }
.member-removal-icon { display: grid; width: 44px; height: 44px; margin-bottom: 1rem; place-items: center; border: 1px solid #e6aba5; border-radius: 50%; background: #fff2f0; color: #a32d24; font-size: 1.25rem; font-weight: 800; }
.member-removal-summary { margin-bottom: 1rem !important; color: var(--ink) !important; }
.member-removal-retention { display: grid; gap: .35rem; margin-bottom: 1rem; padding: .9rem 1rem; border: 1px solid #bdd8c8; border-radius: 10px; background: #f0f8f3; color: #244d35; }
.member-removal-retention strong { font-size: .8125rem; }
.member-removal-retention span { font-size: .75rem; line-height: 1.5; }
.confirm-danger { min-height: 44px; border: 1px solid #a83b32; border-radius: 9px; padding: .65rem 1rem; background: #a83b32; color: #fff; font-size: .8125rem; font-weight: 700; }
.confirm-danger:hover { background: #8f2d26; border-color: #8f2d26; }
.login-shell { background: #f7f9fb; }
.login-art { background: #102c43; }
.login-art h1 { font-family: "Segoe UI", sans-serif; font-size: clamp(2.75rem, 4.8vw, 5rem); line-height: 1.05; font-weight: 550; letter-spacing: -.045em; }
.login-art .eyebrow { color: #abd5ed; }
.login-card { max-width: 420px; }
.login-card .demo-launch { background: #fff; border-color: var(--line); }
.verizon-demo-banner { padding: .65rem 1.5rem; border-bottom-width: 2px; background: #171c22; }
.verizon-demo-banner span { font-size: .7rem; }
.verizon-demo-banner button { background: #fff; color: #17222e; border-color: #fff; }
.verizon-demo-banner button:hover { background: #e3e9ee; }
.verizon-demo-banner strong { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .field :is(input, textarea, select):focus { transform: none; }
  .product:hover, .product:focus-within, .portal-card:hover, .saved-address-card:hover, .store-location-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #132b4410; }
  .product:hover .product-art.has-image img { transform: none; }
  :is(.primary, .secondary, .options-button, .cart-button):hover:not(:disabled) { transform: none; box-shadow: none; }
  .confirm-dialog[open] { animation: premium-dialog-in 180ms ease-out; }
}
@media (min-width: 1650px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .product-admin-workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .product-detail .shell-proof-panel { max-width: 760px; width: 100%; }
  .product-detail #configure-form { max-width: 760px; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; padding: .875rem 1.25rem; overflow: visible; }
  .sidebar .brand, .tenant-sidebar-brand { margin: 0; }
  .sidebar .sidebar-platform-brand { width: 150px; margin-bottom: 0; }
  .tenant-sidebar-logo { width: 125px; height: 48px; padding: .5rem; }
  .tenant-sidebar-brand small { display: none; }
  .nav { display: flex; flex-wrap: wrap; margin-top: .75rem; gap: .375rem; }
  .nav button { width: auto; min-height: 44px; font-size: .8125rem; padding: .6rem .85rem; }
  .sidebar-foot { display: none; }
  .main { padding-inline: 1.25rem; }
  .topbar { min-height: 76px; flex-direction: row; align-items: center; margin-bottom: 1.25rem; }
  .topbar-actions { width: auto; justify-content: flex-end; }
  .mobile-signout { display: inline-flex; }
  .admin-product-list { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .cart-line.configured-line { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-line .qty { grid-column: 1; grid-row: auto; justify-self: start; }
  .cart-line-total { grid-column: 2; align-self: center; }
  .cart-line-copy { grid-column: 1 / -1; }
  .directory-head { grid-template-columns: 1fr; }
  .directory-head > .catalog-search { order: 2; }
  .product-admin-workspace, .members-layout, .admin-overview-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 1rem; }
  .product-editor-head { gap: .75rem; }
  .product-editor-head > button { width: 100%; }
  .admin-product-list .manager-list { max-height: 380px; overflow: auto; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .admin-tabs button { flex: 0 0 auto; }
  .workspace-head { gap: 1rem; }
  .workspace-actions { flex-direction: row; }
  .member-removal-action { justify-items: start; }
  .member-removal-action small { text-align: left; }
  .member-removal-action .remove-member { grid-column: auto; }
  .storefront-summary { display: flex; align-items: baseline; gap: .5rem; padding: .875rem 0 0; border-top: 1px solid var(--line); }
  .storefront-hero { grid-template-columns: 1fr; }
  .storefront-branding { flex-direction: row; align-items: center; }
  .storefront-branding .portal-logo { width: 54px; height: 54px; }
  .storefront-hero h1 { font-size: 1.8rem; }
  .storefront-hero p { font-size: .8rem; }
  .topbar .cart-save-indicator { display: none; }
  .topbar-title strong { font-size: .8rem; }
  .topbar-title > span { font-size: .6rem; }
  .field :is(input, textarea, select) { font-size: 1rem; }
  .checkout-actions { flex-direction: column-reverse; }
  .checkout-actions > button, .form-save-bar > button { width: 100%; }
  .verizon-demo-banner { padding: .65rem 1.25rem; gap: .6rem; }
}
@media (max-width: 420px) {
  .main { padding-inline: 1rem; }
  .topbar-actions { gap: .375rem; }
  .topbar .mobile-signout, .topbar .cart-button { padding: .65rem .75rem; font-size: .75rem; }
  .address-city-state-zip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .address-city { grid-column: 1 / -1; }
  .admin-preview-card { grid-template-columns: 1fr; }
  .admin-preview-art { height: 170px; }
}
