:root {
  --navy: #0d1f3c;
  --sky: #2a5298;
  --white: #ffffff;
  --off: #f5f5f7;
  --soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --gold: #c8a96e;
  --green: #32d15f;
  --red: #c84b35;
  --display: "Inter", sans-serif;
  --cond: "Barlow Condensed", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 82px; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.47;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  align-items: center;
  gap: 24px;
  padding: 0 5vw;
  background: rgba(251,251,253,.92);
  border-bottom: 1px solid rgba(0,0,0,.1);
  backdrop-filter: blur(18px);
}
.brand-mark img {
  width: 170px;
  max-height: 46px;
  object-fit: contain;
  opacity: 1;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
  font-size: 15px;
}
.primary-nav a, .subbar a, .footer-cols a, .footer-cols button {
  text-decoration: none;
  color: var(--ink);
}
.primary-nav a:hover, .subbar a:hover, .hero-links a:hover, .product-card a:hover { color: var(--sky); }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.portal-link, .footer-cols button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.lang-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
}
.lang-pill span, .lang-pill strong {
  min-width: 34px;
  text-align: center;
  padding: 5px 8px;
  border-radius: 999px;
}
.lang-pill strong { background: var(--ink); color: var(--white); font-weight: 600; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: 12px;
}
.lang-switch a {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a.active { background: var(--ink); color: var(--white); }

.subbar {
  position: sticky;
  top: 58px;
  z-index: 35;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  background: rgba(251,251,253,.92);
  border-bottom: 1px solid rgba(0,0,0,.1);
  backdrop-filter: blur(18px);
}
.subbar .sub-title { font-weight: 700; font-size: 19px; }
.subbar div { display: flex; gap: clamp(16px, 3vw, 42px); font-size: 14px; color: var(--muted); }

.hero-apple {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 4vw 0;
  background: var(--soft);
  overflow: hidden;
}
.hero-apple h1 {
  width: min(100%, 1180px);
  margin: 0;
  font-size: clamp(52px, 5.4vw, 74px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 700;
  text-wrap: balance;
}
.hero-apple > p {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 28px;
}
.hero-links {
  display: flex;
  gap: 32px;
  margin: 28px 0 52px;
  font-size: 21px;
}
.hero-links a, .showcase-card a, .product-card a {
  color: #06c;
  text-decoration: none;
}
.hero-links a::after, .showcase-card a::after, .product-card a::after { content: " >"; }
.hero-photo-panel {
  width: min(92vw, 1660px);
  height: min(54vw, 650px);
  margin: 0;
  background: #f1f2f4;
  border-radius: 0;
  overflow: hidden;
}
.hero-photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
}
.showcase-card {
  min-height: 820px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 92px 36px 0;
  border-radius: 28px;
}
.showcase-card.light { background: #f5f5f7; }
.showcase-card.dark { background: #050505; color: var(--white); }
.showcase-card p, .product-card p, .overline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-card.dark p { color: rgba(255,255,255,.55); }
.showcase-card h2, .section-center h2, .brand-cycle-copy h2, .logistics-section h2, .contact h2, .project-section h2, .detail-hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
.showcase-card span {
  display: block;
  max-width: 640px;
  margin: 20px 0 28px;
  color: #424245;
  font-size: 25px;
}
.showcase-card.dark span { color: rgba(255,255,255,.64); }
.showcase-card img {
  position: relative;
  z-index: 0;
  width: 82%;
  height: 360px;
  margin-top: auto;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}

.services-band, .products-grid-section, .branding-cycle, .quality-section, .contact {
  padding: 100px 5vw;
}
.section-center {
  max-width: 920px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-center > p:last-child, .brand-cycle-copy p:last-child, .logistics-section > div > p, .contact > div > p, .project-section > div > p {
  color: var(--muted);
  font-size: 22px;
}
.service-steps, .cycle-grid, .quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service-steps article, .cycle-grid article, .quality-grid article {
  min-height: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.service-steps span, .cycle-grid span {
  color: var(--sky);
  font-family: var(--mono);
  font-size: 12px;
}
.service-steps h3, .cycle-grid h3, .quality-grid strong, .product-card h3 {
  display: block;
  margin: 14px 0 10px;
  font-size: 30px;
  line-height: 1.05;
}
.service-steps p, .cycle-grid p, .quality-grid span, .product-card span {
  color: var(--muted);
}

.products-grid-section { background: #f1f2f4; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.product-card {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 64px 34px 0;
  background: var(--soft);
  border-radius: 28px;
}
.product-card h3 {
  max-width: 620px;
  margin: 0 auto 14px;
  font-size: clamp(44px, 5.2vw, 70px);
  line-height: 1.08;
  text-wrap: balance;
}
.product-card span {
  display: block;
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 22px;
}
.product-card img {
  width: 86%;
  height: 310px;
  margin-top: 48px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.branding-cycle {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 56px;
  align-items: start;
  background: var(--ink);
  color: var(--white);
}
.branding-cycle .overline { color: rgba(255,255,255,.56); }
.brand-cycle-copy { position: sticky; top: 150px; }
.brand-cycle-copy p:last-child { color: rgba(255,255,255,.68); }
.cycle-grid {
  grid-template-columns: repeat(2, 1fr);
}
.cycle-grid article {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}
.cycle-grid p { color: rgba(255,255,255,.68); }

.logistics-section {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 60px;
  align-items: center;
  padding: 110px 5vw;
  background: var(--white);
}
.logistics-section h2 { max-width: 620px; }
.black-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 34px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 20px;
  text-decoration: none;
}
.black-pill::after { content: " >"; }
.phone-panel {
  display: grid;
  place-items: center;
}
.phone {
  width: 260px;
  min-height: 520px;
  padding: 32px 22px;
  border: 12px solid #111;
  border-radius: 42px;
  background: linear-gradient(#1f2026, #030406);
  color: var(--white);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}
.phone > span { color: rgba(255,255,255,.55); font-size: 12px; }
.phone h3 { margin: 20px 0 2px; font-size: 22px; }
.phone p { margin: 0 0 18px; color: rgba(255,255,255,.5); font-size: 12px; }
.phone i {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green) 62%, rgba(255,255,255,.15) 62%);
}
.phone ol {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.phone li {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 0 0 18px 28px;
  color: rgba(255,255,255,.42);
  font-size: 13px;
}
.phone li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.phone li.done, .phone li.active { color: var(--white); }
.phone li.done::before { background: var(--green); border-color: var(--green); }
.phone li.active::before { background: var(--white); border-color: #3c8cff; box-shadow: 0 0 12px #3c8cff; }
.phone small { color: rgba(255,255,255,.35); }

.quality-section { background: var(--off); }
.quality-grid { grid-template-columns: repeat(3, 1fr); }
.contact, .project-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  background: var(--white);
}
.project-section {
  padding: 100px 5vw;
}
.project-section > div > p:last-child {
  color: var(--muted);
  font-size: 22px;
}
.contact-form, .project-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.project-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--soft);
}
label span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--off);
  color: var(--ink);
}
input, select { height: 44px; }
textarea { resize: vertical; }
.calculated-field {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
}
.full { grid-column: 1 / -1; }
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.primary-btn { background: var(--ink); color: var(--white); }
.ghost-btn { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.22); }
.form-status, .login-hint { color: var(--muted); font-size: 13px; }
.project-form .form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  padding: 8px 0 0;
}
.captcha-field {
  min-height: 72px;
  display: flex;
  align-items: center;
}
.form-status.success { color: #178a3b; }
.form-status.error { color: #b42318; }
.form-status.pending { color: var(--muted); }
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(520px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 60px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
}
.cookie-banner strong { display: block; margin-bottom: 4px; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.service-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.service-picker legend {
  padding: 0 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.service-picker label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.service-picker input { width: auto; }
.dynamic-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dynamic-fields.on { display: grid; }
.portal-page {
  min-height: 100vh;
  background: var(--off);
  font-size: 14px;
  line-height: 1.38;
}
.portal-top {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 5vw;
  background: rgba(251,251,253,.9);
  border-bottom: 1px solid rgba(0,0,0,.1);
  backdrop-filter: blur(18px);
}
.portal-userline { color: var(--muted); font-size: 15px; }
.portal-userline strong { color: var(--ink); }
.portal-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.pill-button.small { min-height: 30px; padding: 0 12px; font-size: 12px; }
.pill-button.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-button.danger { color: #b42318; border-color: #ffd1cc; background: #fff4f2; }
.auth-shell {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  padding: 70px 18px;
}
.auth-card {
  width: min(780px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(0,0,0,.08);
}
.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.05;
}
.auth-card > p { margin: 0 0 18px; color: var(--muted); text-align: center; font-size: 22px; }
.auth-form { display: grid; gap: 16px; }
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.link-button {
  border: 0;
  background: transparent;
  color: #06c;
  cursor: pointer;
  padding: 0;
}
.demo-hint {
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.demo-hint code { background: var(--off); padding: 2px 6px; border-radius: 6px; }
.portal-view {
  padding: 34px 3vw 62px;
}
.portal-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}
.portal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
}
.portal-hero p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.metric-card {
  min-height: 102px;
  padding: 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(0,0,0,.04);
}
.metric-card span { color: var(--muted); }
.metric-card strong { display: block; margin-top: 10px; font-size: 31px; line-height: 1; }
.portal-panel {
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.visitor-insights {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.visitor-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.visitor-summary article, .visitor-grid section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--soft);
}
.visitor-summary span, .visitor-row span { display: block; color: var(--muted); font-size: 11px; }
.visitor-summary strong { display: block; margin-top: 4px; font-size: 19px; }
.visitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.visitor-grid h3 { margin: 0 0 10px; font-size: 15px; }
.mini-counts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mini-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.mini-counts span { overflow-wrap: anywhere; }
.visitor-table { display: grid; border-top: 1px solid var(--border); }
.visitor-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 150px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.visitor-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.visitor-row time { color: var(--muted); text-align: right; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 { margin: 0; font-size: 22px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.panel-tools select, .panel-tools input { width: auto; min-width: 190px; background: var(--white); }
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--off);
}
.segmented button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.segmented button.active { background: var(--white); color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.order-list, .request-list, .user-list { display: grid; }
.order-row, .request-row, .user-row {
  display: grid;
  grid-template-columns: 150px 1.6fr 1fr 1fr 190px 44px;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.order-row.compact, .request-row.compact {
  min-height: 56px;
  padding: 8px 18px;
}
.order-row.admin-compact {
  grid-template-columns: 28px 110px 1.6fr .75fr .9fr 160px 38px;
}
.request-row.compact {
  grid-template-columns: 28px 130px 1.35fr .95fr .8fr 180px 38px;
}
.order-row.compact .row-title, .request-row.compact .row-title { font-size: 14px; }
.request-row { grid-template-columns: 150px 1.4fr 1fr 1fr 190px 44px; }
.user-row { grid-template-columns: 1.4fr 1fr .7fr auto; }
.user-edit-row {
  grid-template-columns: 1.4fr 1fr 1fr .55fr auto;
}
.user-edit-row label span {
  margin-bottom: 4px;
  font-size: 9px;
}
.user-edit-row input {
  height: 36px;
  background: var(--white);
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.order-row:last-child, .request-row:last-child, .user-row:last-child { border-bottom: 0; }
.row-title { font-size: 16px; font-weight: 650; }
.row-sub, .row-muted { color: var(--muted); font-size: 12px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--off);
  color: var(--muted);
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.production { color: #d8901d; background: #fff4e3; }
.status-badge.transit { color: #2970d6; background: #eaf2ff; }
.status-badge.customs, .status-badge.hold { color: #d94f45; background: #fff0ef; }
.status-badge.delete-requested { color: #b42318; background: #fff4f2; }
.status-badge.delivered { color: #188038; background: #eaf8ef; }
.status-badge.new { color: #b77900; background: #fff4cc; }
.row-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row-delete {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid #ffd1cc;
  border-radius: 999px;
  background: #fff4f2;
  color: #b42318;
  font-size: 13px;
  cursor: pointer;
}
.client-order-group { border-bottom: 1px solid var(--border); }
.client-order-group:last-child { border-bottom: 0; }
.client-group-head {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.client-toggle {
  display: grid;
  gap: 2px;
  justify-items: start;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.client-toggle strong { font-size: 17px; }
.client-toggle span { color: var(--muted); font-size: 13px; }
.client-group-body.hidden { display: none; }
.record-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  color: var(--muted);
}
.record-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.request-section-head, .archive-section summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #fafafa;
  color: var(--muted);
  cursor: default;
}
.request-section-head.needs-attention {
  background: #fff8df;
  color: #8a5a00;
}
.archive-section summary { cursor: pointer; border-top: 1px solid var(--border); }
.request-row.archived { background: #fbfbfc; }
.request-row.needs-attention {
  background: #fffaf0;
  box-shadow: inset 3px 0 0 #f5b400;
}
.row-open {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
}
.profile-grid, .request-form-grid, .admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px 22px;
}
.portal-page input, .portal-page select {
  height: 36px;
  padding: 7px 10px;
}
.portal-page textarea {
  padding: 8px 10px;
}
.portal-page label span {
  margin-bottom: 4px;
  font-size: 9px;
}
.profile-section {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.profile-section h3 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pi-editor {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbfc;
  overflow: hidden;
}
.pi-editor .message-head {
  padding: 18px 22px 0;
}
.pi-preview-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}
.pi-preview-card span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pi-preview-card strong {
  display: block;
  margin-top: 4px;
}
.request-items-editor, .line-items-editor, .line-items-summary {
  display: grid;
  gap: 8px;
}
.line-items-head, .line-items-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.line-items-head span, .line-items-total span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.line-items-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-y: hidden;
  background: var(--white);
}
.line-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) 100px 130px 120px minmax(140px, .7fr) 70px;
  align-items: center;
  gap: 0;
  min-height: 38px;
  border-bottom: 1px solid var(--border);
  min-width: 800px;
}
.pi-item-row, .pi-item-header {
  grid-template-columns: 46px minmax(240px, 1.7fr) 130px 90px 110px 110px minmax(120px, .7fr) 66px;
  min-width: 1010px;
}
.line-item-row:last-child { border-bottom: 0; }
.line-item-row > * {
  min-width: 0;
  height: 100%;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 7px 10px;
}
.line-item-row > *:last-child { border-right: 0; }
.line-item-row input {
  height: 37px;
  background: transparent;
}
.line-item-row strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
}
.line-item-header {
  min-height: 30px;
  background: #f7f7f9;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.line-items-total {
  justify-content: flex-end;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f7f9;
}
.line-items-total strong { min-width: 130px; text-align: right; }
.request-form-grid .primary-btn, .profile-grid .primary-btn, .admin-edit-grid .primary-btn { width: max-content; }
.portal-empty { padding: 28px; color: var(--muted); }
.drawer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
}
.drawer.on { display: block; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
}
.drawer-card {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  width: auto;
  height: calc(100% - 32px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  background: var(--white);
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 24px;
}
.drawer-card h2 { margin: 0; font-size: 30px; line-height: 1; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--off);
}
.info-grid span { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.info-grid strong { display: block; margin-top: 3px; font-size: 15px; }
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto auto;
  gap: 3px 8px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
}
.timeline li::before {
  content: attr(data-step);
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
}
.timeline li.done::before {
  content: "✓";
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.timeline strong { color: var(--ink); font-size: 13px; line-height: 1.15; }
.timeline span {
  grid-column: 2;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.timeline time {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  word-break: keep-all;
}
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--off);
  color: var(--muted);
}
.danger-note {
  border-left: 4px solid #d94f45;
  background: #fff4f2;
  color: #7a271a;
}
.message-panel {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.message-panel h3 { margin: 0 0 12px; font-size: 18px; }
.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.message-head h3 { margin: 0; }
.message-thread { display: grid; gap: 9px; margin-bottom: 12px; }
.message-item {
  padding: 10px;
  border-radius: 10px;
  background: var(--off);
}
.message-item.admin { background: #edf4ff; }
.message-item.client { background: #f7f7f9; }
.message-item div { display: flex; justify-content: space-between; gap: 12px; }
.message-item p { margin: 8px 0 0; color: var(--ink); }
.message-item time { color: var(--muted); font-size: 12px; }
.message-form { display: grid; gap: 12px; }
.portal-empty.compact { padding: 0; margin: 0; }
.notify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff4e3;
  color: #c27a10;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.pi-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfbfc;
}
.pi-panel.confirmed { border-color: rgba(24,128,56,.25); background: #f0fbf4; }
.pi-panel span { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.pi-panel strong { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; }
.pi-panel p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.pi-attachment {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.pi-attachment p {
  flex-basis: 100%;
}
.pi-missing {
  display: inline-flex !important;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.hidden { display: none !important; }

.apple-footer {
  padding: 54px 5vw 28px;
  background: var(--off);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 42px;
  max-width: 1500px;
  margin: 0 auto 48px;
}
.footer-cols h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
}
.footer-cols a, .footer-cols button {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.login-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
}
.login-dialog::backdrop { background: rgba(0,0,0,.42); backdrop-filter: blur(8px); }
.login-card { position: relative; padding: 34px; display: grid; gap: 16px; }
.login-card h2 { margin: 0; font-size: 44px; line-height: 1.05; }
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.member-app {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--off);
}
.member-app[hidden] { display: none; }
.member-app aside {
  background: var(--ink);
  color: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.member-app aside img { width: 150px; filter: none; }
.member-app aside p {
  margin-top: auto;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.member-app aside h2 { margin: 0; font-size: 34px; line-height: 1; }
.member-main { padding: 38px; overflow: auto; }
.member-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.member-head h2 { margin: 0; font-size: 56px; }
.member-head select { width: min(240px, 100%); background: var(--white); }
.order-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 18px; }
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.order-card header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.order-card h3 { margin: 0; font-size: 28px; }
.status-pill { align-self: flex-start; padding: 6px 10px; border-radius: 99px; background: var(--off); color: var(--sky); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.progress-track { height: 8px; margin: 20px 0; background: #e9e9ee; border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--sky); border-radius: inherit; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.order-meta span { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.order-meta strong { display: block; color: var(--ink); font-weight: 600; margin-top: 3px; }
.milestones { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.milestones li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.milestones li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--border); margin-top: 6px; flex: 0 0 auto; }
.milestones li.done::before { background: var(--sky); }
.doc-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-row span { padding: 6px 9px; background: var(--off); border-radius: 99px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 720px;
  padding: 90px 5vw;
  background: var(--soft);
}
.detail-hero p { color: var(--muted); font-size: 23px; }
.detail-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 80px 5vw;
}
.detail-grid article, .request-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.detail-grid h2 { margin: 0 0 12px; font-size: 26px; }
.request-panel {
  margin: 0 5vw 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.request-panel h2 { margin: 0; font-size: clamp(34px, 5vw, 66px); }
.request-panel h2 {
  max-width: 920px;
  line-height: 1.08;
  text-wrap: balance;
}

.member-ev-section {
  overflow: hidden;
}

.member-ev-frame {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

@media (max-width: 1000px) {
  .topbar, .portal-top { grid-template-columns: 1fr auto; }
  .portal-userline { grid-column: 1 / -1; order: 3; padding-bottom: 14px; }
  .primary-nav { display: none; }
  .hero-apple h1 { font-size: 62px; }
  .subbar { overflow-x: auto; align-items: flex-start; flex-direction: column; padding-top: 14px; padding-bottom: 14px; }
  .subbar div { min-width: max-content; }
  .split-showcase, .product-grid, .branding-cycle, .logistics-section, .contact, .project-section, .member-app, .detail-hero { grid-template-columns: 1fr; }
  .service-steps, .cycle-grid, .quality-grid, .detail-grid, .metric-grid { grid-template-columns: 1fr 1fr; }
  .brand-cycle-copy { position: static; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .order-row, .request-row { grid-template-columns: 110px 1.5fr 1fr 170px 34px; }
  .order-row.admin-compact, .request-row.compact { grid-template-columns: 28px 96px 1.5fr 1fr 150px 38px; }
  .user-row { grid-template-columns: 1.3fr 1fr auto; }
  .user-edit-row { grid-template-columns: 1fr 1fr; }
  .visitor-summary, .visitor-grid { grid-template-columns: 1fr 1fr; }
  .visitor-row { grid-template-columns: 1fr 1fr; }
  .visitor-row time { text-align: left; }
  .order-row > div:nth-child(4), .request-row > div:nth-child(4), .user-row > div:nth-child(3) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar, .portal-top { padding: 0 18px; }
  .brand-mark img { width: 118px; }
  .top-actions { gap: 10px; }
  .subbar { top: 58px; padding-left: 18px; padding-right: 18px; }
  .hero-apple { padding: 64px 18px 0; }
  .hero-apple h1 { font-size: 34px; }
  .hero-apple > p { font-size: 21px; }
  .hero-links { flex-direction: column; gap: 12px; font-size: 18px; }
  .hero-photo-panel { width: 100%; height: 360px; }
  .split-showcase { padding: 12px; }
  .showcase-card { min-height: 620px; padding: 58px 22px 0; border-radius: 20px; }
  .showcase-card h2, .section-center h2, .brand-cycle-copy h2, .logistics-section h2, .contact h2, .project-section h2, .detail-hero h1 { font-size: 43px; }
  .showcase-card span, .section-center > p:last-child, .brand-cycle-copy p:last-child, .logistics-section > div > p, .contact > div > p, .project-section > div > p { font-size: 19px; }
  .services-band, .products-grid-section, .branding-cycle, .quality-section, .contact, .project-section, .detail-hero, .detail-grid { padding: 64px 18px; }
  .portal-view { padding: 28px 14px 48px; }
  .service-steps, .cycle-grid, .quality-grid, .detail-grid, .contact-form, .project-form, .profile-grid, .request-form-grid, .admin-edit-grid, .dynamic-fields, .service-picker, .order-grid, .metric-grid, .pi-panel, .pi-preview-card { grid-template-columns: 1fr; }
  .product-card { min-height: 570px; padding: 52px 22px 0; }
  .product-card h3 { font-size: 42px; }
  .product-card span { font-size: 19px; }
  .full { grid-column: auto; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .member-main { padding: 24px; }
  .member-head { flex-direction: column; align-items: flex-start; }
  .request-panel { margin: 0 18px 64px; flex-direction: column; align-items: flex-start; }
  .portal-actions { flex-wrap: wrap; justify-content: flex-start; }
  .portal-hero { align-items: flex-start; flex-direction: column; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-tools { justify-content: flex-start; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .pill-button { flex: 1; }
  .visitor-summary, .visitor-grid, .visitor-row { grid-template-columns: 1fr; }
  .panel-tools select, .panel-tools input { width: 100%; }
  .order-row, .request-row, .user-row { grid-template-columns: 1fr 38px; gap: 10px; }
  .user-edit-row { grid-template-columns: 1fr; }
  .member-ev-frame { min-height: 680px; }
  .order-row.admin-compact, .request-row.compact { grid-template-columns: 24px 1fr 38px; }
  .client-group-head { grid-template-columns: 24px 1fr; }
  .client-group-head > .row-muted { display: none; }
  .order-row > div:not(:nth-child(2)), .request-row > div:not(:nth-child(2)) { display: block; }
  .order-row.admin-compact > div:nth-child(2), .request-row.compact > div:nth-child(2) { display: none; }
  .order-row.admin-compact .row-open, .request-row.compact .row-open { grid-column: 3; grid-row: 1 / span 5; }
  .user-row > div { display: block; }
  .user-row .pill-button { grid-column: 1 / -1; width: 100%; }
  .user-actions { justify-content: stretch; }
  .row-open { grid-column: 2; grid-row: 1 / span 4; }
  .info-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .drawer-card { inset: 0; width: 100%; height: 100%; border-radius: 0; padding: 18px; }
  .auth-card { border-radius: 24px; }
}
