@import url("/css/tokens.css");
@import url("/css/commerce-type.css");

@media screen {
  body.tv-utility, html[lang] body.tv-utility {
    font-family: var(--tv-font); background: var(--tv-paper-tint); color: var(--tv-ink);
  }
  .tv-utility :is(h1,h2,.brand strong,.portal-brand strong) { font-family: var(--tv-display-font); letter-spacing: -.025em; }
  .tv-utility :is(button,input,textarea,select) { font-family: inherit; }
  .tv-utility :is(a,button,input,textarea,select,[tabindex]):focus-visible {
    outline: 2px solid var(--tv-cobalt); outline-offset: 2px;
  }
  .tv-utility :is(.card,.done:not(.mark),.portal-card,.sheet,.wrap > .acct) {
    border-radius: 16px; border-color: var(--tv-line); box-shadow: var(--tv-shadow-sm);
  }
  .tv-utility .toolbar { color: var(--tv-ink-secondary); font-family: var(--tv-font); }
  .tv-utility .sheet { max-width: 100%; box-sizing: border-box; }
  .tv-utility .sheet .grand, .tv-utility .docno { font-variant-numeric: tabular-nums; }
  .tv-utility #drop { background: var(--tv-soft-blue); border-color: var(--tv-line-hover); }
  .tv-utility #drop:is(:hover,.over) { border-color: var(--tv-cobalt); }
  .tv-utility .auth-form-side { padding: clamp(24px, 5vw, 72px); background: var(--tv-paper-tint); }
  .tv-utility .portal-card { width: min(460px, 100%); padding: clamp(20px, 3vw, 36px); box-sizing: border-box; }
  .tv-utility .portal-tabs { background: var(--tv-canvas-deep); }
  .tv-utility .portal-tabs button.active { color: var(--tv-cobalt-ink); }
  .tv-utility.role-seller, .tv-utility.role-admin { --auth-photo: url("/assets/photos/japan-still-life-768.webp"); }
  .tv-utility.role-warehouse { --auth-photo: url("/assets/photos/warehouse-fulfillment-768.webp"); }
  .tv-utility.role-supplier { --auth-photo: url("/assets/photos/supplier-maker-768.webp"); }
  .tv-utility .auth-split .auth-hero {
    background: var(--tv-night); color: white;
    justify-content: center; isolation: isolate; overflow: hidden; padding: clamp(32px, 5vw, 84px);
  }
  .tv-utility .auth-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(8,14,27,.96), rgba(8,14,27,.72) 56%, rgba(8,14,27,.50)), var(--auth-photo) center / cover;
  }
  .tv-utility .auth-hero h1 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.15; max-width: 15em; }
  .tv-utility .auth-hero .brand { margin-bottom: clamp(36px, 6vw, 80px); }
  .tv-utility .auth-hero .brand-mark-img { filter: none !important; background: transparent; }
  .tv-utility .auth-hero li { color: var(--tv-night-text); }
  @media (max-width: 600px) {
    .tv-utility .auth-form-side { padding: 54px 16px 24px; }
    .tv-utility .sheet { padding-inline: 16px; overflow-wrap: anywhere; }
    .tv-utility .parties { flex-wrap: wrap; }
  }
}


@media screen {
  body.tv-consent {
    display: grid; place-items: center; min-height: 100vh; min-height: 100svh;
    margin: 0; padding: 16px; box-sizing: border-box; background: var(--tv-night);
  }
  .tv-consent .card {
    box-sizing: border-box; width: min(460px, 100%); padding: clamp(22px, 5vw, 38px);
    background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: 18px;
  }
  .tv-consent h1 { color: var(--tv-ink-strong); font: 700 24px/1.25 var(--tv-display-font); }
  .tv-consent .client { background: var(--tv-soft-blue); color: var(--tv-ink); }
  .tv-consent button { background: var(--tv-cobalt); }
  .tv-consent a { color: var(--tv-cobalt-ink); }
}
