/* Velodrom customer portal: a quiet, practical customer-facing identity.
   Loaded after the existing component styles. Flow and state classes stay intact. */
:root {
  --bg: #f7f7f3;
  --bg-alt: #efefea;
  --panel: #fff;
  --text: #20231f;
  --text-soft: #50554e;
  --muted: #686e65;
  --border: #dedfd7;
  --border-strong: #30382f;
  --accent: #252d24;
  --accent-hover: #394436;
  --success: #356246;
}
body { line-height: 1.5; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #477c57;
  outline-offset: 4px;
}
.skip-link {
  position: fixed; top: 8px; left: 16px; z-index: 100;
  padding: 12px 20px; background: var(--accent); color: white;
  border-radius: 6px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fff; backdrop-filter: none; }
.site-header > .inner { max-width: 1200px; min-height: 86px; padding: 24px 36px; }
.brand { gap: 22px; min-width: 0; }
.brand img { width: 172px; height: auto; }
.brand .divider { height: 22px; background: var(--border); }
.brand .sub { font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.site-header nav { gap: 12px; }
.site-header nav > a { border-color: transparent; font-weight: 500; }
.site-header nav .btn-sm { font-size: 12px; min-height: 40px; }
#lang-picker { min-height: 40px; width: auto; }

/* Login is one compact task, with a short overview alongside it. */
#view-login {
  max-width: 1056px; margin: 0 auto; padding: 92px 36px 88px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center;
}
#view-login .hero { padding: 0; text-align: left; border: 0; background: none; }
.hero .eyebrow { font-size: 10px; letter-spacing: .15em; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 3.3vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 18px; }
.hero p { font-size: 16px; line-height: 1.7; max-width: 330px; margin: 0; }
.portal-services { list-style: none; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); max-width: 330px; }
.portal-services li { display: flex; gap: 14px; align-items: center; margin: 0 0 15px; font-size: 13px; color: var(--text-soft); }
.service-icon { display: flex; align-items: center; width: 22px; height: 22px; color: var(--text-soft); }
.service-icon svg, .login-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#view-login .content { padding: 0; min-width: 0; }
.card { border-radius: 12px; padding: 28px; box-shadow: 0 2px 5px rgb(25 35 20 / 2%); }
.card h2 { font-weight: 600; letter-spacing: -.025em; font-size: 22px; }
.card .intro { line-height: 1.7; color: var(--text-soft); }
#view-login .login-card { padding: 32px; margin: 0; box-shadow: 0 10px 32px rgb(25 35 20 / 4%); }
.login-card h2 { margin-bottom: 12px; }
.login-mark { height: 42px; width: 42px; padding: 10px; border: 1px solid var(--border); border-radius: 50%; margin-bottom: 22px; background: var(--bg); }
#sso-block .btn { margin-top: 10px; }
#view-code .content { padding-top: 64px; }

/* The same simple controls and surfaces throughout every customer flow. */
label { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-soft); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  border-radius: 7px; min-height: 46px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.btn { min-height: 46px; border-radius: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.btn-sm { min-height: 40px; font-size: 12px; }
.btn-outline:hover { background: var(--bg-alt); }
.btn:disabled { transform: none; }
.content { padding: 36px 28px 64px; }
.portal-nav { background: #fff; }
.portal-nav .inner { max-width: 1200px; padding: 0 36px; justify-content: flex-start; gap: 32px; }
.nav-tab { padding: 17px 0; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-tab.active { font-weight: 600; border-bottom-color: var(--accent); }
.nav-tab svg { stroke-width: 1.6; }
#view-orders .content { max-width: 1184px; margin: auto; }
#view-orders .card.wide { max-width: none; }
#view-orders .card:has(#orders-list) { background: transparent; border: 0; box-shadow: none; padding: 4px 0; }
#view-orders .card:has(#orders-list) > h2 { font-size: 30px; margin-bottom: 8px; }
.orders-grid { gap: 20px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.order-card { padding: 22px; border-radius: 12px; gap: 18px; }
.order-card:hover { border-color: #969f91; box-shadow: 0 5px 18px rgb(25 35 20 / 5%); transform: none; }
.oc-head .oc-id-block .oc-name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.oc-status-pill { font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.oc-status-pill.delivered { background: #e8f0e7; color: #36553a; }
.oc-status-pill.shipped { background: #edf0e8; color: #46543e; }
.oc-status-pill.unfulfilled { background: #f5eee0; color: #705426; }
.oc-thumbs-grid .oc-thumb { border-radius: 6px; background: var(--bg); }
.oc-select-btn { background: var(--accent); min-height: 44px; border-radius: 7px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.oc-select-btn:hover { background: var(--accent-hover); }
.dash-wrap { max-width: 1128px; }
.dash-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.quick-actions { border-radius: 12px; padding: 22px 18px; top: 170px; }
.quick-actions h3 { margin: 0 8px 16px; font-size: 15px; font-weight: 600; }
.quick-action-btn { padding: 14px 8px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; gap: 12px; font-weight: 500; }
.quick-action-btn:last-child { border-bottom: 0; }
.quick-action-btn:hover { transform: none; background: var(--bg); border-color: var(--border); }
.quick-action-btn .qa-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); }
.order-line, .carrier-card, .variant-chip, .dc-item, .bike-card, .case-card { border-radius: 8px; }
.carrier-card.active { border-color: var(--accent); background: #f1f4ed; color: var(--text); }
.carrier-card.active .cc-title { color: var(--text); }
.carrier-card.active .cc-sub { color: var(--text-soft); }
.bikes-container, .cases-container { max-width: 1128px; }
.bikes-header h1, .cases-header h1 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.modal { border-radius: 14px; }
.site-footer { background: transparent; margin-top: 0; padding: 28px 36px; }
.site-footer .inner { max-width: 1128px; font-size: 11px; }
.site-footer a { padding: 8px 0; display: inline-block; }

@media (max-width: 900px) {
  #view-login { gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .brand { gap: 14px; }
  .brand img { width: 150px; }
  .brand .divider, .brand .sub { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .quick-actions { position: static; }
}
@media (max-width: 640px) {
  .site-header > .inner { min-height: 74px; padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
  .brand img { width: 128px; height: auto; }
  .site-header nav { gap: 6px; margin-left: auto; }
  .site-header nav .btn-sm { padding: 8px; min-height: 40px; font-size: 11px; }
  #lang-picker { min-height: 40px; }
  #view-login { display: block; padding: 32px 20px 44px; }
  #view-login .hero { margin-bottom: 26px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: 34px; margin-bottom: 12px; }
  .hero p { max-width: none; font-size: 14px; line-height: 1.65; }
  .portal-services { display: none; }
  #view-login .login-card { padding: 24px; }
  .login-mark { display: none; }
  .content { padding: 24px 16px 44px; }
  .card { padding: 22px 18px; }
  .card h2 { font-size: 21px; }
  .portal-nav .inner { padding: 0 20px; gap: 24px; overflow-x: auto; }
  .nav-tab { font-size: 12px; flex-shrink: 0; }
  .nav-tab svg { display: none; }
  .order-card { padding: 18px; }
  .site-footer { padding: 22px 20px; }
  .site-footer .inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
