/* Opt-in customer studio theme. Presentation only; state remains application-owned. */
[data-studio-theme="allprint"] {
  --studio-navy: #17364b;
  --studio-hover: #234b5e;
  --studio-muted: #52646a;
  --studio-paper: #faf8f3;
  --studio-wash: #f0eee7;
  --studio-line: #dadbd5;
  --studio-control-line: #809091;
  --studio-serif: Georgia, "Iowan Old Style", "Apple Garamond", serif;
  --orders-ink: var(--studio-navy);
  --orders-muted: var(--studio-muted);
  --orders-blue: var(--studio-navy);
  --orders-blue-hover: var(--studio-hover);
  --orders-line: var(--studio-line);
  --orders-tint: var(--studio-wash);
  --orders-ground: var(--studio-paper);
  --orders-shadow: 0 2px 8px rgb(23 54 75 / .035);
  --orders-radius: .8rem;
  --ap-blue: var(--studio-navy);
  --ap-blue-dark: var(--studio-hover);
  --ap-accent: var(--studio-navy);
  --ap-ink: var(--studio-navy);
  --ap-muted: var(--studio-muted);
  --ap-ivory: var(--studio-paper);
  --ap-subtle: var(--studio-paper);
  --ap-line: var(--studio-line);
  --lib-blue: var(--studio-navy);
  --lib-muted: var(--studio-muted);
  --lib-line: var(--studio-line);
}
[data-studio-theme] body {
  color: var(--studio-navy);
  background-color: var(--studio-paper);
}
[data-studio-theme] .receipt-page {
  --account-ink: var(--studio-navy);
  --account-muted: var(--studio-muted);
  --account-blue: var(--studio-navy);
  --account-paper: var(--studio-paper);
  --account-line: var(--studio-line);
  --account-tint: var(--studio-wash);
}
[data-studio-theme][data-orders-view=phone] .phone-brand img {flex: none}

/* Shared navigation keeps its existing geometry, menu and compact-phone behavior. */
[data-studio-theme] :is(.account-header, .photo-library-header, .customer-header, .builder-header) {
  background: #fff;
  border-color: var(--studio-line);
}
[data-studio-theme] :is(.ap-customer-nav, .ap-main-toggle, .ap-header-brand) {
  color: var(--studio-navy);
}
[data-studio-theme] .photo-library-header a {
  color: var(--studio-navy);
  text-decoration: none;
}
[data-studio-theme] .photo-library-header .ap-customer-nav a[aria-current=page] {
  color: var(--studio-navy);
  background: var(--studio-wash);
}
[data-studio-theme] :is(.ap-account-menu, .ap-main-links.ap-main-open) {
  border-color: var(--studio-line);
  box-shadow: 0 8px 24px rgb(23 54 75 / .1);
}
[data-studio-theme] :is(a, button, input, select, textarea, summary):focus-visible,
[data-studio-theme] .upload-label:focus-within {
  outline-color: var(--studio-navy);
}
[data-studio-theme] :is(input[type=checkbox], input[type=radio], progress) {
  accent-color: var(--studio-navy);
}
[data-studio-theme] :is(.ap-button, .primary, .account-action-primary):not(:disabled) {
  background-color: var(--studio-navy);
  border-color: var(--studio-navy);
  color: #fff;
}
[data-studio-theme] .ap-button--secondary:not(:disabled) {
  background-color: transparent;
  color: var(--studio-navy);
}

/* Editorial titles anchor each destination; functional subheads stay in DM Sans. */
[data-studio-theme][data-orders-view=auth] #account-title,
[data-studio-theme][data-orders-view=auth] .intro h2,
[data-studio-theme][data-orders-view=account] .account-main h1,
[data-studio-theme][data-orders-view=photos] .library .heading h1,
[data-studio-theme][data-orders-view=profile] .print-profile h1,
[data-studio-theme][data-orders-view=profile] #profile-root .profile-guest h1,
[data-studio-theme] #print-discovery-title,
[data-studio-theme][data-orders-view=phone] .phone-transfer-page h1 {
  font-family: var(--studio-serif);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.15;
  color: var(--studio-navy);
}
[data-studio-theme][data-orders-view=auth] .card {
  border-color: var(--studio-line);
  box-shadow: var(--orders-shadow);
}
[data-studio-theme][data-orders-view=auth] #account-modes {
  background: var(--studio-wash);
}
[data-studio-theme][data-orders-view=auth] #account-modes [aria-pressed=true] {
  border-color: var(--studio-control-line);
  color: var(--studio-navy);
  background: #fff;
  box-shadow: 0 1px 3px rgb(23 54 75 / .06);
}
[data-studio-theme][data-orders-view=auth] :is(input:not([type=checkbox]), textarea) {
  border-color: var(--studio-control-line);
  color: var(--studio-navy);
}
[data-studio-theme][data-orders-view=auth] .account-image img {
  outline: 1px solid var(--studio-line);
  outline-offset: 4px;
  border-radius: .4rem;
}
[data-studio-theme][data-orders-view=auth] :is(.eyebrow, a:not(.primary)),
[data-studio-theme][data-orders-view=auth] #account-check,
[data-studio-theme][data-orders-view=auth] #account-recovery button {
  color: var(--studio-navy);
}
[data-studio-theme][data-orders-view=account] .account-intro {
  background: var(--studio-wash);
  border-radius: .8rem;
}
[data-studio-theme][data-orders-view=account] .account-intro img {border-radius: .3rem}
[data-studio-theme][data-orders-view=account] :is(.account-card, .project-card) {
  border-color: var(--studio-line);
}
[data-studio-theme][data-orders-view=account] .project-order-nav a[aria-current] {
  color: var(--studio-navy);
  border-color: var(--studio-navy);
  background: var(--studio-wash);
}
[data-studio-theme][data-orders-view=account] #account-history .ap-button {
  background: #fff;
  color: var(--studio-navy);
}
[data-studio-theme] .receipt-page .orders-toolbar .account-action,
[data-studio-theme] #account-orders.projects-view .project-actions > a {
  background: var(--studio-navy);
  border-color: var(--studio-navy);
  color: #fff;
}
[data-studio-theme] #account-orders.projects-view .project-actions > button {
  color: var(--studio-navy);
  border-color: var(--studio-control-line);
}
[data-studio-theme] .account-saved #native-list li {border-color: var(--studio-line)}
[data-studio-theme] .projects-view .project-cover {
  background: var(--studio-wash);
  color: var(--studio-muted);
}
[data-studio-theme] .projects-view details summary,
[data-studio-theme] .orders-archive summary {color: var(--studio-navy)}
[data-studio-theme] .project-order-nav:focus-visible {
  outline: 2px solid var(--studio-navy);
  outline-offset: 3px;
}

/* Neutral mats keep the customer's photographs, including their own colors, primary. */
[data-studio-theme][data-orders-view=photos] .library .heading h1 {
  font-size: clamp(1.875rem, 3.125vw, 2.5rem);
}
[data-studio-theme][data-orders-view=photos] :is(button:not(.primary):not(.danger):not(:disabled), select, input:not([type=checkbox]):not([type=file]), textarea) {
  border-color: var(--studio-control-line);
  color: var(--studio-navy);
}
[data-studio-theme][data-orders-view=photos] .photo-storage {
  background: var(--studio-wash);
  border-color: var(--studio-line);
}
[data-studio-theme][data-orders-view=photos] #lib-grid[aria-busy=true] {
  background: var(--studio-wash);
  border-color: var(--studio-control-line);
}
[data-studio-theme][data-orders-view=photos] :is(.tools, .selection, .photo, .uploads, .empty) {
  border-color: var(--studio-line);
  box-shadow: none;
}
[data-studio-theme][data-orders-view=photos] .image {background: var(--studio-wash)}
[data-studio-theme][data-orders-view=photos] .upload-label {
  border-color: var(--studio-control-line);
  color: var(--studio-navy);
  background: #fff;
  box-shadow: none;
}
[data-studio-theme][data-orders-view=photos] .upload-icon {
  color: var(--studio-navy);
  border-color: var(--studio-line);
  background: var(--studio-wash);
}
[data-studio-theme][data-orders-view=photos] :is(.eyebrow, .selection strong, .empty-icon) {color: var(--studio-navy)}
[data-studio-theme][data-orders-view=photos] :is(.library-views [aria-pressed=true], #lib-grid .photo.selected label) {
  background: var(--studio-wash);
  color: var(--studio-navy);
  border-color: var(--studio-navy);
}
[data-studio-theme][data-orders-view=photos] .notice,
[data-studio-theme][data-orders-view=profile] .print-profile :is(.notice, #p-status, .badge) {
  color: var(--studio-navy);
  background: var(--studio-wash);
  border-color: var(--studio-line);
}
[data-studio-theme][data-orders-view=profile] .print-profile :is(.card, input:not([type=checkbox])) {
  border-color: var(--studio-control-line);
}
[data-studio-theme][data-orders-view=profile] .print-profile .card {border-color: var(--studio-line)}
/* Print workspace and phone entry retain existing task and payment layout. */
[data-studio-theme][data-orders-view=builder] .builder-signin {
  background: #fff;
  border-color: var(--studio-line);
}
[data-studio-theme][data-orders-view=builder] .builder-signin #builder-login-heading {
  font-family: var(--studio-serif);
  font-weight: 400;
}
[data-studio-theme][data-orders-view=builder] .builder-signin-icon {
  color: var(--studio-navy);
  background: var(--studio-wash);
}
[data-studio-theme][data-orders-view=builder] #builder-login-link {
  background: var(--studio-navy);
  border-color: var(--studio-navy);
  color: #fff;
  box-shadow: none;
}
[data-studio-theme][data-orders-view=builder] #builder-login-link:hover {
  background: var(--studio-hover);
  border-color: var(--studio-hover);
}
[data-studio-theme][data-orders-view=phone] .phone-transfer-page {background: #fff}

@media (hover:hover) {
  [data-studio-theme] .receipt-page .orders-toolbar .account-action:hover,
  [data-studio-theme] #account-orders.projects-view .project-actions > a:hover {
    background: var(--studio-hover);
    color: #fff;
    border-color: var(--studio-hover);
  }
  [data-studio-theme] :is(.ap-button, .primary, .account-action-primary):hover:not(:disabled) {
    background-color: var(--studio-hover);
    border-color: var(--studio-hover);
    color: #fff;
  }
  [data-studio-theme] .ap-button--secondary:hover:not(:disabled),
  [data-studio-theme] .ap-customer-nav :is(a, button, summary):hover,
  [data-studio-theme][data-orders-view=photos] button:not(.primary):not(.danger):hover:not(:disabled),
  [data-studio-theme][data-orders-view=photos] .upload-label:hover {
    background: var(--studio-wash);
    color: var(--studio-navy);
    border-color: var(--studio-control-line);
  }
}
@media (forced-colors:active) {
  [data-studio-theme] :is(.ap-button, .primary, .account-action-primary):not(:disabled) {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }
  [data-studio-theme] :is(a, button, input, select, textarea, summary):focus-visible {
    outline-color: Highlight;
  }
}
