/* LA visual refresh: shared dark neon glass layer for every match surface. */
:root {
  --neo-bg: #0f101a;
  --neo-bg-deep: #0b0c14;
  --neo-surface: rgba(25, 24, 45, 0.72);
  --neo-surface-strong: rgba(32, 30, 59, 0.9);
  --neo-surface-muted: rgba(33, 32, 54, 0.58);
  --neo-line: rgba(190, 169, 255, 0.16);
  --neo-line-strong: rgba(157, 78, 221, 0.55);
  --neo-text: #f7f5ff;
  --neo-muted: #aaa8bf;
  --neo-faint: #77768f;
  --neo-purple: #9d4edd;
  --neo-violet: #7148ee;
  --neo-blue: #5f8dff;
  --neo-success: #22c55e;
  --neo-danger: #ef4444;
  --neo-warning: #f59e0b;
  --neo-radius: 18px;
  --neo-radius-sm: 12px;
  --neo-shadow: 0 22px 60px rgba(4, 4, 12, 0.38);
  --neo-glow: 0 0 28px rgba(157, 78, 221, 0.17);
}

html { background: var(--neo-bg); }
body {
  background: var(--neo-bg);
  color: var(--neo-text);
  color-scheme: dark;
}

body:has(.portal-shell)::before,
body:has(.app-shell)::before,
body:has(.auth-shell)::before,
body:has(.admin-shell)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(177, 156, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 156, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(95, 141, 255, .9);
  outline-offset: 3px;
}

/* Shared portal workspaces. */
.portal-shell,
.app-shell,
.admin-shell {
  background: transparent;
}

.portal-sidebar,
.sidebar,
.admin-side {
  background: linear-gradient(180deg, rgba(20, 19, 36, .97), rgba(12, 12, 22, .98));
  border-right: 1px solid var(--neo-line);
  box-shadow: 18px 0 45px rgba(3, 3, 10, .22);
}

.portal-brand,
.brand,
.portal-brand:hover,
.brand:hover {
  color: var(--neo-text);
}
.portal-brand-mark,
.brand-mark span,
.portal-avatar,
.avatar,
.large-avatar {
  border-color: rgba(157, 78, 221, .62);
  color: #d7bcff;
  background: linear-gradient(145deg, rgba(157, 78, 221, .8), rgba(95, 141, 255, .75));
  box-shadow: 0 0 20px rgba(157, 78, 221, .28);
}
.brand-mark span { background: linear-gradient(180deg, #c68bff, #7349ee); }
.portal-role,
.workspace-label,
.side-kicker,
.portal-switch p,
.kicker { color: #948ab7; }

.portal-nav button,
.portal-nav a,
.side-link,
.admin-side nav a {
  color: #9695ad;
  border-radius: 12px;
}
.portal-nav button:hover,
.portal-nav a:hover,
.portal-nav .is-active,
.side-link:hover,
.side-link.is-active,
.admin-side nav a:hover,
.admin-side nav a.active {
  color: var(--neo-text);
  background: linear-gradient(100deg, rgba(157, 78, 221, .25), rgba(95, 141, 255, .13));
  box-shadow: inset 3px 0 0 #b77aff, 0 8px 22px rgba(50, 34, 103, .22);
}
.portal-nav .is-active svg,
.side-link.is-active svg,
.side-link.is-active b { color: #c795ff; }
.portal-switch,
.sidebar-bottom,
.admin-boundary { border-color: var(--neo-line); }
.portal-user b,
.mini-user b { color: var(--neo-text); }
.portal-user small,
.mini-user small,
.portal-logout { color: var(--neo-faint); }

.portal-main,
.workspace,
.admin-main { background: transparent; }
.portal-topbar,
.topbar,
.admin-top {
  color: var(--neo-muted);
  border-color: var(--neo-line);
  background: rgba(15, 16, 26, .74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.portal-topbar b,
.crumbs b,
.portal-topbar span { color: var(--neo-text); }
.portal-topbar svg,
.crumbs svg { color: #958bb8; }
.live-status,
.connection { color: #8ecca5; }
.live-status:before,
.connection span { background: var(--neo-success); box-shadow: 0 0 12px rgba(34, 197, 94, .8); }
.portal-menu { border-color: var(--neo-line); background: var(--neo-surface); color: var(--neo-text); border-radius: 10px; }

.portal-content,
.content { max-width: 1440px; }
.portal-heading h1,
.welcome-row h1 { color: var(--neo-text); letter-spacing: -.045em; }
.portal-heading p:last-child,
.welcome-copy,
.panel-subtitle { color: var(--neo-muted); }
.portal-heading-actions,
.view-primary-actions { align-items: center; }

.portal-stats,
.stats-grid {
  gap: 12px;
  background: transparent;
  border: 0;
}
.portal-stat,
.stat-card,
.orders-panel,
.right-rail > article,
.workspace-section,
.workspace-panel,
.admin-section,
.admin-login,
.shop-panel,
.shop-card {
  color: var(--neo-text);
  background: linear-gradient(145deg, rgba(30, 28, 54, .78), rgba(18, 18, 32, .76));
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow), var(--neo-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.portal-stat,
.stat-card { min-height: 110px; }
.portal-stat:hover,
.stat-card:hover,
.workspace-section:hover,
.workspace-panel:hover,
.shop-panel:hover,
.shop-card:hover {
  border-color: rgba(184, 143, 255, .3);
  transform: translateY(-2px);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.portal-stat span,
.stat-label,
.portal-stat small,
.stat-card small { color: var(--neo-muted); }
.portal-stat b,
.stat-card > strong { color: var(--neo-text); }
.stat-icon.green,
.stat-icon.orange,
.stat-icon.blue,
.stat-icon.dark { background: rgba(157, 78, 221, .16); color: #c596ff; }

.workspace-section,
.workspace-panel,
.orders-panel { padding: 24px; }
.section-head,
.panel-heading,
.filter-row,
.market-toolbar { border-color: var(--neo-line); }
.section-head h2,
.panel-heading h2,
.panel-heading h3,
.section-title h2 { color: var(--neo-text); }
.section-head p,
.panel-subtitle,
.section-note,
.panel-heading p { color: var(--neo-muted); }

.button,
.button-dark,
.button-primary,
.auth-submit,
.shop-primary,
.review-action {
  border: 1px solid rgba(183, 127, 255, .42);
  border-radius: var(--neo-radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--neo-purple), var(--neo-violet) 58%, var(--neo-blue));
  box-shadow: 0 8px 24px rgba(102, 61, 197, .3);
}
.button:hover,
.auth-submit:hover,
.shop-primary:hover,
.review-action:hover {
  color: #fff;
  border-color: rgba(224, 202, 255, .8);
  background: linear-gradient(135deg, #ad5de8, #7b5aff 58%, #6aa2ff);
  box-shadow: 0 10px 30px rgba(119, 68, 230, .52), 0 0 20px rgba(157, 78, 221, .32);
  transform: translateY(-2px);
}
.button-quiet,
.button-green,
.text-button,
.shop-card-actions button,
.shop-back-link,
.admin-user button,
.section-title > button,
.provider-review,
.ticket-reply {
  color: var(--neo-text);
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius-sm);
  background: rgba(43, 41, 71, .62);
}
.button-quiet:hover,
.button-green:hover,
.shop-card-actions button:hover,
.shop-back-link:hover,
.admin-user button:hover,
.section-title > button:hover,
.provider-review:hover,
.ticket-reply:hover {
  color: #fff;
  border-color: rgba(183, 127, 255, .52);
  background: rgba(104, 73, 170, .34);
}
.button svg,
.portal-nav svg,
.side-link svg { stroke-width: 1.8; }

input,
select,
textarea,
.form-grid select,
.form-grid input,
.full-field textarea,
.search-field,
.compact-search {
  color: var(--neo-text);
  border-color: var(--neo-line);
  border-radius: 11px;
  background: rgba(15, 15, 28, .64);
}
input::placeholder,
textarea::placeholder { color: #74748b; }
input:focus,
select:focus,
textarea:focus,
.search-field:focus-within,
.compact-search:focus-within {
  border-color: rgba(169, 119, 255, .78);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, .16), 0 0 18px rgba(157, 78, 221, .2);
}
option { color: #f7f5ff; background: #1b1930; }
.form-message { color: #91dca9; }
.status-chip,
.relationship-badge,
.service-category,
.recommendation-badge,
.cert-badges span,
.provider-order-head span,
.publisher-order-head span,
.inventory-state,
.shop-status,
.shop-priority {
  color: #d9c9ff;
  border: 1px solid rgba(157, 78, 221, .24);
  border-radius: 999px;
  background: rgba(115, 72, 190, .18);
}
.status-chip.is-active,
.cert-badges span.is-approved { color: #91e7aa; background: rgba(34, 197, 94, .13); border-color: rgba(34, 197, 94, .25); }
.status-chip.is-pending,
.provider-order-head .deposit,
.publisher-order-head .pending { color: #ffd08a; background: rgba(245, 158, 11, .13); border-color: rgba(245, 158, 11, .26); }
.deposit,
.publisher-note,
.provider-order-note,
.detail-note,
.review-note,
.review-editor,
.deposit-note,
.shop-check {
  color: #ffd08a;
  border-color: rgba(245, 158, 11, .3) !important;
  background: rgba(245, 158, 11, .1) !important;
}

/* Lists keep the existing information architecture but read as glass cards. */
.publisher-order,
.provider-order,
.order-row,
.service-row,
.service-order-row,
.inventory-card,
.account-card,
.tier-box,
.provider-rental-card,
.service-product,
.ticket-item,
.provider-row,
.application-row {
  border-color: var(--neo-line);
}
.publisher-order,
.provider-order,
.service-row,
.inventory-card,
.account-card,
.tier-box,
.provider-rental-card,
.service-product {
  border: 1px solid var(--neo-line);
  border-radius: 16px;
  background: rgba(28, 27, 49, .6);
  margin-bottom: 10px;
  padding: 17px;
}
.publisher-order:hover,
.provider-order:hover,
.service-row:hover,
.inventory-card:hover,
.account-card:hover,
.provider-rental-card:hover,
.service-product:hover {
  background: rgba(41, 37, 72, .72);
  border-color: rgba(181, 132, 255, .38);
  box-shadow: 0 12px 30px rgba(5, 4, 16, .3), 0 0 22px rgba(157, 78, 221, .13);
  transform: translateY(-2px);
}
.publisher-order h3,
.provider-order h3,
.service-product h3,
.order-card h3,
.inventory-card b,
.account-card b { color: var(--neo-text); }
.publisher-order p,
.provider-order p,
.publisher-side small,
.provider-order-side small,
.inventory-fields small,
.account-card small,
.service-product p,
.service-product-foot small { color: var(--neo-muted); }
.publisher-note,
.provider-order-note { border-left-width: 3px !important; border-radius: 10px; }
.order-card { border-color: var(--neo-line); }
.order-card:hover { background: rgba(38, 35, 64, .38); }
.order-note { color: #d9c9ff; background: rgba(157, 78, 221, .12); border-color: rgba(157, 78, 221, .45); }
.inventory-form { border: 1px solid var(--neo-line); border-radius: 15px; background: rgba(20, 19, 37, .62); }
.inventory-fields,
.provider-rental-fields,
.order-overview { border-color: var(--neo-line); background: var(--neo-line); border-radius: 12px; overflow: hidden; }
.inventory-fields > div,
.provider-rental-fields div,
.order-overview div { background: rgba(28, 27, 49, .82); }
.tier-box.is-current { border-color: rgba(157, 78, 221, .6); background: linear-gradient(135deg, rgba(157, 78, 221, .22), rgba(95, 141, 255, .1)); }
.provider-rental-panel,
.rental-recommendation-panel { border-color: var(--neo-line); background: rgba(28, 27, 49, .58); border-radius: 16px; }
.provider-rental-panel[hidden],
.rental-recommendation-panel[hidden] { display: none; }
.rental-card { background: rgba(28, 27, 49, .7); border-color: var(--neo-line); border-radius: 14px; }

/* Root order hall. */
.app-shell { color: var(--neo-text); }
.sidebar { color: var(--neo-text); }
.brand-name,
.workspace-label,
.crumbs,
.connection,
.welcome-copy,
.stat-label,
.stat-card small,
.order-info,
.order-id,
.order-time,
.panel-subtitle { color: var(--neo-muted); }
.topbar { border-color: var(--neo-line); }
.stats-grid { margin-bottom: 26px; }
.stat-card { box-shadow: var(--neo-shadow); }
.dashboard-grid { gap: 16px; }
.right-rail { gap: 12px; }
.profile-card { background: linear-gradient(145deg, rgba(88, 46, 135, .82), rgba(29, 29, 67, .88)) !important; border-color: rgba(188, 143, 255, .36) !important; }
.profile-stats { border-color: rgba(223, 202, 255, .2); }
.profile-action { background: rgba(16, 13, 28, .42); }
.mini-panel { background: rgba(25, 24, 45, .76) !important; }
.notice-card { background: linear-gradient(145deg, rgba(157, 78, 221, .74), rgba(68, 75, 179, .78)) !important; }
.notice-card p,
.notice-card small { color: rgba(248, 246, 255, .72); }
.empty-icon { background: rgba(157, 78, 221, .16); color: #bd91ff; border-radius: 13px; }
.personal-tabs { background: rgba(28, 27, 49, .7); border-radius: 12px; }
.personal-tabs button.is-active { color: var(--neo-text); background: rgba(157, 78, 221, .25); box-shadow: none; border-radius: 9px; }

/* Dialogs and chat. */
.modal-backdrop {
  background: rgba(5, 5, 13, .76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal,
.chat-modal,
.order-modal,
.detail-modal,
.assist-modal {
  color: var(--neo-text);
  background: linear-gradient(145deg, rgba(31, 29, 55, .98), rgba(17, 17, 31, .98)) !important;
  border: 1px solid rgba(192, 165, 255, .25);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .62), 0 0 36px rgba(125, 68, 220, .16);
}
.modal-head,
.modal-heading { border-color: var(--neo-line); }
.modal h2,
.modal-head h2,
.modal-heading h2 { color: var(--neo-text); }
.modal-head small,
.modal-heading small { color: var(--neo-muted); }
.messages,
.chat-messages { scrollbar-color: rgba(157, 78, 221, .65) transparent; }
.message p,
.chat-message p { color: var(--neo-text); background: rgba(49, 45, 77, .68); border: 1px solid var(--neo-line); border-radius: 13px; }
.message.is-mine p,
.chat-message.is-mine p { color: #fff; background: linear-gradient(135deg, rgba(122, 67, 184, .85), rgba(75, 77, 174, .82)); border-color: rgba(193, 152, 255, .3); }
.chat-boundary { color: #b9e7c8; background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .2); border-radius: 12px; }
.chat-modal form,
#chat-form,
#service-chat-form { border-color: var(--neo-line); }
.icon-button { color: var(--neo-muted); border-radius: 10px; }
.icon-button:hover { color: #fff; background: rgba(157, 78, 221, .18); }
.toast { color: #fff; background: linear-gradient(135deg, #5d32a2, #2b3d93); border: 1px solid rgba(213, 188, 255, .34); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .42); }

/* Authentication. */
.auth-shell { background: var(--neo-bg); }
.auth-visual { background: linear-gradient(145deg, #201640, #111326 70%, #0f101a); border-right: 1px solid var(--neo-line); }
.auth-visual:after { color: #6e5c9b; }
.visual-copy p,
.auth-panel .kicker { color: #be8fff; }
.visual-copy h1 { color: #fff; }
.visual-copy em { color: #78a9ff; }
.visual-copy span,
.visual-footer { color: var(--neo-muted); }
.auth-panel { color: var(--neo-text); background: rgba(26, 24, 46, .76); border: 1px solid var(--neo-line); border-radius: 24px; box-shadow: var(--neo-shadow), var(--neo-glow); backdrop-filter: blur(18px); }
.panel-head h2 { color: var(--neo-text); }
.panel-head p,
.auth-panel label,
.auth-note { color: var(--neo-muted); }
.auth-tabs { border-color: var(--neo-line); }
.auth-tab { color: var(--neo-faint); }
.auth-tab.is-active { color: var(--neo-text); }
.auth-tab.is-active:after { background: linear-gradient(90deg, var(--neo-purple), var(--neo-blue)); }
.auth-panel input { color: var(--neo-text); border-color: var(--neo-line); background: rgba(11, 11, 22, .68); border-radius: 11px; }
.password-control button { color: var(--neo-muted); }
.auth-note { border-color: var(--neo-line); }
.back-link { color: #b78cff; }
.portal-links { color: var(--neo-muted); }
.portal-links a { color: #d4bcff; background: rgba(43, 40, 70, .68); border-color: var(--neo-line); border-radius: 9px; }

/* Admin surfaces. */
.admin-top h1 { color: var(--neo-text); }
.admin-user { color: var(--neo-muted); }
.admin-side .brand small,
.admin-boundary { color: var(--neo-muted); }
.admin-login { margin-top: 70px; }
.admin-login h2,
.admin-section h2,
.shop-panel h2 { color: var(--neo-text); }
.overview-grid { background: transparent; }
.overview-grid article { min-height: 108px; color: var(--neo-text); background: linear-gradient(145deg, rgba(30, 28, 54, .78), rgba(18, 18, 32, .76)); border: 1px solid var(--neo-line); border-radius: var(--neo-radius); box-shadow: var(--neo-shadow); }
.overview-grid span,
.admin-section th,
.admin-section td,
.shop-panel label,
.shop-boundary,
.shop-card p,
.shop-card-meta { color: var(--neo-muted); }
.table-wrap { border-color: var(--neo-line); border-radius: 14px; overflow: auto; }
table { background: transparent; }
th { color: #b8add3; background: rgba(44, 39, 72, .78); border-color: var(--neo-line); }
td { color: #c3bfd4; border-color: var(--neo-line); }
tbody tr:hover { background: rgba(157, 78, 221, .08); }
td b { color: var(--neo-text); }
.status { color: #9be9af; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .25); border-radius: 999px; }
.status.pending { color: #ffd08a; background: rgba(245, 158, 11, .14); }
.boundary-section { color: #b9e7c8; background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .22); }
.shop-grid { background: transparent; }
.shop-card-actions { border-color: var(--neo-line); }
.shop-card-actions .danger { color: #ff9797; }
.member-shop-name { color: #bda0ff; }

@media (max-width: 800px) {
  .portal-sidebar { box-shadow: 22px 0 60px rgba(0, 0, 0, .5); }
  .portal-content,
  .content { padding-left: 16px; padding-right: 16px; }
  .workspace-section,
  .workspace-panel,
  .orders-panel { padding: 18px 15px; }
  .portal-stats,
  .stats-grid { gap: 8px; }
}

@media (max-width: 560px) {
  .portal-heading h1,
  .welcome-row h1 { letter-spacing: -.03em; }
  .portal-stat,
  .stat-card { min-height: 94px; }
  .publisher-order,
  .provider-order,
  .service-row,
  .inventory-card,
  .account-card,
  .provider-rental-card,
  .service-product { padding: 14px; border-radius: 14px; }
  .auth-panel { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.avatar-editor { display:inline-grid; place-items:center; width:28px; height:28px; border:1px solid rgba(174,129,255,.3); border-radius:8px; color:#cdb5ff; cursor:pointer; }
.avatar-editor svg { width:14px; height:14px; }
.avatar-editor:hover { border-color:#b883ff; background:rgba(157,78,221,.14); }
.user-avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; vertical-align:middle; }
.user-avatar.fallback { display:inline-grid; place-items:center; background:linear-gradient(135deg,#9d4edd,#5b7cfa); color:#fff; font-size:12px; font-weight:800; }
.publisher-party,.provider-party,.party-inline { display:flex; align-items:center; gap:8px; }
.publisher-party small { color:#aaa8bd; }
.party-inline .user-avatar { margin-right:4px; }

/* Final UI calibration: shared type scale, glass surfaces, and touch spacing. */
:root {
  --neo-bg: #0f101a;
  --neo-panel: rgba(25, 24, 45, .78);
  --neo-panel-strong: rgba(31, 29, 55, .94);
  --neo-line: rgba(190, 169, 255, .22);
  --neo-text: #f5f3ff;
  --neo-muted: #b0adc2;
  --neo-faint: #858199;
  --neo-purple: #9d4edd;
  --neo-blue: #6f92ff;
  --neo-green: #22c55e;
}

html,
body { min-width: 0; overflow-x: hidden; }
body { background: var(--neo-bg); color: var(--neo-text); font-size: 14px; line-height: 1.6; }
h1, h2, h3, p { text-wrap: balance; }

.portal-shell,
.admin-shell,
.auth-shell { background: transparent; }
.portal-sidebar,
.admin-side { border-right: 1px solid var(--neo-line); background: linear-gradient(180deg, rgba(18, 17, 32, .98), rgba(12, 12, 23, .98)); }
.portal-topbar,
.admin-top { background: rgba(15, 16, 26, .84); border-color: var(--neo-line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.portal-content { max-width: 1480px; padding-top: 42px; }
.portal-heading h1,
.admin-top h1 { color: var(--neo-text); font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.03em; }
.portal-heading p:last-child,
.welcome-copy,
.panel-subtitle { color: var(--neo-muted); }
.portal-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.portal-nav button,
.portal-nav a { min-height: 44px; border-radius: 10px; }
.portal-nav .is-active,
.portal-nav button:hover,
.portal-nav a:hover,
.admin-side nav a:hover,
.admin-side nav a.active { background: linear-gradient(100deg, rgba(157, 78, 221, .24), rgba(91, 124, 250, .12)); color: #fff; }
.portal-stats { gap: 10px; background: transparent; border: 0; }
.portal-stat,
.workspace-section,
.workspace-panel,
.orders-panel,
.admin-section,
.admin-login,
.shop-panel,
.shop-card,
.overview-grid article,
.right-rail > article {
  background: linear-gradient(145deg, rgba(31, 29, 55, .86), rgba(17, 17, 31, .88));
  border: 1px solid var(--neo-line);
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(3, 3, 10, .28), 0 0 24px rgba(112, 69, 226, .08);
}
.portal-stat { min-height: 112px; padding: 20px; }
.portal-stat span,
.portal-stat small,
.admin-section th,
.admin-section td,
.shop-panel label,
.shop-card p,
.shop-card-meta { color: var(--neo-muted); }
.portal-stat b { color: var(--neo-text); font-size: 26px; }
.workspace-section { border-top: 1px solid var(--neo-line); }
.section-head { border-color: var(--neo-line); }
.section-head h2,
.admin-section h2,
.shop-panel h2 { color: var(--neo-text); letter-spacing: -.02em; }
.button,
.icon-button,
.portal-menu,
.portal-logout { min-height: 42px; }
.button-dark,
.auth-submit,
.shop-primary { background: linear-gradient(135deg, #9d4edd, #5b7cfa); color: #fff; box-shadow: 0 10px 26px rgba(106, 67, 215, .28); }
.button-dark:hover,
.auth-submit:hover,
.shop-primary:hover { background: linear-gradient(135deg, #b467f0, #7292ff); }
.button-quiet,
.icon-button,
.portal-menu,
.admin-user button,
.section-title > button,
.review-action,
.provider-review,
.ticket-reply { background: rgba(34, 32, 58, .7); color: var(--neo-text); border-color: var(--neo-line); }
input,
select,
textarea,
.compact-search { background: rgba(10, 10, 20, .72); color: var(--neo-text); border-color: var(--neo-line); }
input::placeholder,
textarea::placeholder { color: var(--neo-faint); }
input:focus,
select:focus,
textarea:focus { border-color: rgba(184, 143, 255, .72); box-shadow: 0 0 0 3px rgba(157, 78, 221, .16); }
.compact-search { height: 42px; border-radius: 11px; }
.compact-search input { height: 38px; background: transparent; }
.publisher-order,
.provider-order,
.service-row,
.order-row { border-color: var(--neo-line); }
.publisher-order:hover,
.provider-order:hover,
.service-row:hover,
.order-row:hover { background: rgba(157, 78, 221, .07); }
.provider-order-head span,
.publisher-order-head span,
.status-chip,
.tier-box,
.account-card,
.inventory-card,
.service-product,
.provider-rental-card,
.rental-card { background: rgba(28, 27, 49, .82); border-color: var(--neo-line); color: var(--neo-text); }
.provider-order-note,
.publisher-note,
.detail-note,
.review-note { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .5); color: #ffc2c2 !important; }
.table-wrap { border-color: var(--neo-line); border-radius: 14px; scrollbar-width: thin; scrollbar-color: rgba(157, 78, 221, .6) transparent; }
th { background: rgba(44, 39, 72, .86); color: #c8b8e5; border-color: var(--neo-line); }
td { color: #c6c1d4; border-color: var(--neo-line); }
tbody tr:hover { background: rgba(157, 78, 221, .08); }
.admin-side nav { scrollbar-width: none; }
.admin-side nav::-webkit-scrollbar { display: none; }

/* The register-only label needs to stay hidden until the register tab is selected. */
.auth-panel .register-only { display: none; }
.auth-panel.register-mode .register-only { display: grid; }
.password-control,
.password-control input { width: 100%; }
.auth-panel,
.portal-links { color: var(--neo-text); }
.portal-links { background: rgba(15, 16, 26, .9); border-top: 1px solid var(--neo-line); padding: 16px 20px; margin: 0; }
.portal-links a { color: #d4bcff; background: rgba(43, 40, 70, .7); border-color: var(--neo-line); border-radius: 9px; }

@media (max-width: 920px) {
  .portal-heading { align-items: flex-start; }
  .portal-heading-actions { justify-content: flex-start; }
  .admin-section { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 620px) {
  .portal-content { padding: 26px 14px 48px; }
  .portal-heading h1,
  .admin-top h1 { font-size: 27px; line-height: 1.16; }
  .portal-heading-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .portal-heading-actions .button { width: 100%; padding: 0 9px; }
  .portal-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portal-stat { min-height: 100px; padding: 15px; }
  .portal-stat b { font-size: 23px; }
  .workspace-section,
  .workspace-panel,
  .orders-panel,
  .admin-section,
  .admin-login,
  .shop-panel { border-radius: 15px; }
  .section-head { display: block; }
  .compact-search { width: 100%; margin-top: 14px; }
  .order-overview { grid-template-columns: 1fr 1fr; }
  .table-wrap { scrollbar-width: none; }
  .table-wrap::-webkit-scrollbar { display: none; }
  .admin-section { margin-left: 14px; margin-right: 14px; padding: 15px; }
  .admin-top { padding-left: 14px; padding-right: 14px; }
  .admin-top .kicker { display: none; }
  .shop-grid { padding-left: 14px; padding-right: 14px; }
}

/* Platform type and direct-manipulation feedback. */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
}
.kicker,
.portal-role,
.workspace-label,
.side-kicker,
.live-status,
.status-chip,
.portal-stat small,
.admin-section th,
.shop-card-meta { letter-spacing: .035em; }
:where(button, a, .product-tab, .role-entry, .feature-card, .provider-order, .publisher-order) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.is-pressing { transform: scale(.985) !important; transition: transform .1s ease-out !important; }
@media (prefers-reduced-motion: reduce) {
  .is-pressing { transform: none !important; }
}

/* Shared LA type system and tactile controls. */
body { font-family: var(--la-font); text-rendering: optimizeLegibility; }
h1, h2, h3, .portal-brand, .admin-side .brand, .button, .admin-user button, .shop-primary { font-family: var(--la-display); }
.portal-heading h1, .admin-top h1, .section-head h2, .shop-panel h2 { letter-spacing: -.025em; text-wrap: balance; }
.portal-heading p:last-child, .section-head p, .workspace-section p, .admin-section p, .shop-boundary { line-height: 1.8; }
.portal-brand-logo, .public-brand-logo, .dealer-brand-logo { width: 76px; height: 52px; }
.button, .icon-button, .admin-user button, .shop-primary { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:active, .icon-button:active, .admin-user button:active, .shop-primary:active { transform: translateY(1px) scale(.985); }
.portal-nav button, .portal-nav a, .admin-side nav a { transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease; }
.portal-nav button:active, .portal-nav a:active, .admin-side nav a:active { transform: translateX(2px); }
@media (max-width: 620px) { .portal-brand-logo, .public-brand-logo, .dealer-brand-logo { width: 62px; height: 42px; } }
