/* Final art direction: ink, linen, and restrained teal. Screen-only so
   evidence-pack printing continues to use the document stylesheet. */
@media screen {
  :root, body[data-country='de'], body[data-country='id'] {
    --bg: #f2f1ed; --panel: #e9ece8; --border: #dce0da;
    --hairline: #e4e7e1; --text: #23342f; --text-muted: #56635c;
    --primary: #234f44; --primary-press: #173c32;
    --accent: #28644f; --accent-tint: #e5eee7;
    --radius-card: 16px; --radius-control: 8px;
  }
  body { font-size: 1rem; }
  .app-shell { background: var(--bg); }
  #app-header, body[data-country='id'] #app-header { background: #fbfcf9; }
  .header-bar { height: 4.5rem; padding-inline: 1.75rem; }
  :root { --header-h: 4.5rem; --sidebar-w: 14rem; }
  .page { max-width: 80rem; padding: 2.75rem clamp(1.25rem, 3vw, 3rem) 3rem; }
  .page-narrow { max-width: 52rem; }
  .page-head { margin-bottom: 2rem; }
  h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 550; letter-spacing: -.045em; }
  .page-sub { color: var(--text-muted); }
  .foc-card, .table-card, .list-card { box-shadow: 0 3px 12px #253c2b05; }
  .btn { min-height: 2.875rem; padding: .75rem 1.125rem; font-size: .875rem; }
  .avatar { border: 0; background: #e7e9df; box-shadow: none; }
  .app-footer { font-size: .6875rem; }

  /* A distinct entry screen: editorial introduction and two company doors. */
  body[data-signed-in='no'] .app-shell { background: #f2f1ed; }
  .welcome { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; max-width: 82rem; padding: 2rem; }
  .welcome-hero { position: relative; overflow: hidden; min-height: 39rem; align-self: stretch; max-width: none; margin: 0; padding: 3.25rem; border-radius: 22px 0 0 22px; background: #183c36; color: #fff; }
  .welcome-hero > .eyebrow { color: #c1d8b8; font-size: .75rem; max-width: 30ch; }
  .welcome-hero .display { position: relative; z-index: 1; margin: 1.5rem 0; max-width: 15ch; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; color: #fffdf3; }
  .welcome-lead { position: relative; z-index: 1; color: #d0ddd4; font-size: .9375rem; line-height: 1.75; max-width: 42ch; }
  .textile-scene { height: 15rem; position: relative; margin: 2rem -1rem -3rem; }
  .fabric-piece { position: absolute; width: 69%; height: 10rem; border-radius: 5px 5px 22px 5px; box-shadow: 12px 18px 25px #071e2733; background-size: 5px 5px; }
  .fabric-back { left: 8%; top: 1rem; transform: rotate(-12deg); background-color: #658b7a; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #214f4440 2px 3px), repeating-linear-gradient(90deg, transparent 0 2px, #e1e4d744 2px 3px); }
  .fabric-front { left: 26%; top: 3.5rem; transform: rotate(9deg); background-color: #c7ccac; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #69735445 2px 3px), repeating-linear-gradient(90deg, transparent 0 2px, #fffbe577 2px 3px); }
  .fabric-label { position: absolute; left: 54%; top: 6rem; padding: 1rem .75rem; transform: rotate(9deg); background: #f5f0d9; color: #2c4434; font-size: .875rem; font-weight: 600; box-shadow: 0 2px 3px #34452b33; }
  .fabric-label small { font-size: .5rem; letter-spacing: .13em; }
  .welcome-accounts { padding: 3.25rem 2.75rem; background: #fffef9; border-radius: 0 22px 22px 0; }
  .welcome-accounts > h2 { font-size: 1.375rem; letter-spacing: -.035em; margin-bottom: 1.75rem; }
  .account-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .account-card { position: relative; min-height: 0; padding: 1.5rem; background: #f0f3ec; border: 1px solid transparent; border-radius: 12px; box-shadow: none; }
  .account-card[data-account='producer'] { background: #eeeae1; }
  .account-card-top { margin: 0 0 1rem; gap: .75rem; }
  .country-flag { width: 2rem; height: 1.375rem; border-radius: 3px; box-shadow: none; }
  .account-card-role { font-size: .6875rem; font-weight: 500; color: #516057; }
  .account-card-company { font-size: 1.25rem; letter-spacing: -.03em; }
  .account-card-does { font-size: .8125rem; margin: .5rem 0 1rem; line-height: 1.65; }
  .account-card-person { max-width: calc(100% - 2.5rem); font-size: .6875rem; }
  .account-card-cta, .account-card[data-account='producer'] .account-card-cta { margin: 1rem 0 0; padding: 0; background: transparent; color: #234f44; font-size: .8125rem; gap: .75rem; }
  .account-card:hover, .account-card[data-account='producer']:hover { border-color: #6c8877; box-shadow: none; transform: none; }
  .account-card:hover .account-card-cta { background: transparent; }
  .welcome-foot { grid-column: 1 / -1; display: flex; gap: .25rem 1rem; margin-top: 1rem; padding: 1rem 0 0; border: 0; font-size: .625rem; }
  .welcome-foot p { flex-basis: 42rem; }
  .welcome-foot .btn-text { font-size: .6875rem; }

  /* The actionable task is the visual anchor of each workspace. */
  .status-line, .task-main .next-card { padding: 1.75rem; background: #e0e9da; border: 0; border-radius: 16px; }
  .status-line.is-waiting, .task-main .next-card.is-waiting { background: #e3e8e1; border: 0; }
  .status-symbol { background: #c4d6bd; width: 3rem; height: 3rem; }
  .status-line.is-waiting .status-symbol { background: #d0dcd0; }
  .status-line .status-title { font-size: 1.375rem; font-weight: 550; margin: .25rem 0 .5rem; }
  .status-line .status-text { font-size: .9375rem; color: #46584a; }
  .status-line .next-switch { border: 0; padding: .25rem 0 0; }
  .portfolio-details { margin-top: 2rem; }
  .portfolio-details > summary { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 0; cursor: pointer; font-size: 1.125rem; font-weight: 550; list-style: none; }
  .portfolio-details > summary .icon:last-child { margin-left: auto; }
  .portfolio-details > summary::-webkit-details-marker { display: none; }
  .portfolio-details:not([open]) { border-top: 1px solid var(--border); }
  .portfolio-details .stat-row { background: none; padding: 0; margin: .25rem 0 1rem; }
  .stat-row { gap: .75rem 1.5rem; }
  .stat-value { font-size: .9375rem; }
  .stat-label { font-size: .8125rem; }
  .table-card { border: 0; border-radius: 14px; }
  .data-table th { background: #e6ebe3; padding-block: .875rem; color: #52624f; }
  .data-table td { padding-block: 1.25rem; }
  .overview-grid { grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr); }
  .duty-summary { background: #e5e8db; border: 0; box-shadow: none; }
  .duty-summary .stake-value { color: #38583a; font-size: 2.75rem; }
  .duty-summary > .fine { font-size: .6875rem; }
  .cost-details summary { cursor: pointer; font-size: .8125rem; padding: .5rem 0; color: #38583a; }
  .cost-details .data-list { margin-top: .75rem; }
  .order-block > .eyebrow { color: #6a7669; }
  .order-block h2 { font-size: 1.25rem; }
  .order-block .stepper { margin-top: 1.25rem; }
  .stepper { box-shadow: none; }
  .request-card { background: #e9e9df; border: 0; box-shadow: none; }
  .request-card .request-due { padding: 0; background: none; }
  .request-card .disclosure summary { font-size: .8125rem; }
  .page-tasks .list-row { padding-block: 1.125rem; }
  .list-row-title { font-size: .9375rem; }
  .list-row-sub { line-height: 1.6; }
  .empty-request { background: #e5ebe1; border: 0; }
  .empty-request > .next-switch { background: #f6f8f2; }
  .signin { max-width: 32rem; }
  .signin-card { padding: 2.25rem; border: 0; }
  @media (min-width: 1280px) {
    #app-sidebar:not(:empty) { background: #203c35; border: 0; padding: 2rem 1rem; }
    .sidenav-heading { color: #b6c6b9; font-size: .6875rem; margin-bottom: 1.25rem; }
    .sidenav-link { color: #d0dbd2; min-height: 3rem; font-size: .875rem; }
    .sidenav-link .icon { color: #b4cabb; }
    .sidenav-link:hover { color: #fff; background: #ffffff0c; }
    .sidenav-link.is-active, .sidenav-link.is-active:hover { background: #dce9ce; color: #233b2b; }
    .sidenav-foot { color: #b5c7b9; }
  }
  @media (max-width: 1050px) {
    .welcome { padding: 1.5rem; }
    .welcome-hero { padding: 2rem; }
    .welcome-accounts { padding: 2rem; }
    .welcome-hero .display { font-size: 2.75rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .duty-summary { display: block; }
  }
  @media (max-width: 760px) {
    .welcome { display: block; padding: 1rem; max-width: 42rem; }
    .welcome-hero { min-height: 0; padding: 2rem; border-radius: 16px 16px 0 0; }
    .welcome-hero .display { font-size: clamp(2.4rem, 7vw, 3rem); max-width: 18ch; }
    .welcome-lead { font-size: .875rem; }
    .textile-scene { display: none; }
    .welcome-accounts { padding: 1.75rem; border-radius: 0 0 16px 16px; }
    .welcome-accounts > h2 { font-size: 1.125rem; }
    .welcome-foot { font-size: .6875rem; }
    .page { padding: 1.5rem 1rem 6.5rem; }
    .page-head { margin-bottom: 1.5rem; }
    .status-line, .task-main .next-card { padding: 1.25rem; }
    .status-line .status-title { font-size: 1.125rem; }
    .status-line .status-text { font-size: .875rem; }
    .status-symbol { width: 2.25rem; height: 2.25rem; }
    .table-card { background: none; }
    .data-table td { padding-block: .625rem; }
    .header-bar { padding-inline: 1rem; }
    .account-card-person { max-width: 100%; }
  }
  @media (prefers-contrast: more) {
    :root, body[data-country] { --text-muted: #34433a; --border: #7b8c7b; --hairline: #7b8c7b; }
  }
}
