/* Workspace composition follows the RAKEZ mobile home card, compact spacing and tab bar. */
:root {
  --ink: #474747;
  --text: #474747;
  --muted: #666;
  --line: #ebebeb;
  --rk-color-action-default: #05a8a8;
  --rk-color-action-hover: #049797;
  --rk-color-action-active: #048686;
  --rk-color-action-subtle: #dbfaf9;
  --rk-ramp-mint-60: #006a6a;
  --rk-ramp-mint-92: #001c1b;
  --action: var(--rk-ramp-mint-60);
  --surface: #fff;
}
.nav-short { display: none; }
body, .shell, .rail, .bar { background: white; }
.rail nav a[aria-current] { background: var(--rk-color-action-subtle); color: #004141; box-shadow: none; }
.shell main { max-width: 1200px; }
.pagetop h1 { color: var(--ink); }
.summary-title { margin: 24px 0 12px; font-size: 1.35rem; }
#result, .panel, .metric { border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: none; }
#result { overflow: hidden; padding: 20px 24px 0; }
#result .cardhead { align-items: center; }
#result .overline { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
#result .pill, .sample { background: #f5f5f5; color: var(--text); }
#result h2 { margin: 12px 0 6px; font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: 0; }
.plan-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin: 16px 0 4px; padding: 0 22px; border-radius: 8px; font-weight: 600; }
/* Mobile's filled action uses the default mint. Darken the label for contrast. */
.primary, .plan-action {
  background: var(--rk-color-action-default);
  border-color: var(--rk-color-action-default);
  color: var(--rk-ramp-mint-92);
}
.primary:hover, .plan-action:hover {
  background: var(--rk-color-action-hover);
  border-color: var(--rk-color-action-hover);
  filter: none;
}
.primary:active, .plan-action:active {
  background: var(--rk-color-action-active);
  border-color: var(--rk-color-action-active);
  color: #000;
}
.pilotintro .outline {
  color: var(--action);
  border-color: var(--action);
}
.schedule summary, .combinations a { min-height: 44px; padding-block: 11px; cursor: pointer; }
.schedule .timeline { margin-bottom: 16px; }
#result .planfoot { margin: 0 -24px; padding: 0 24px; min-height: 44px; border-top: 1px solid var(--line); background: #f5f5f5; }
.planfoot a, .combinations a { display: inline-flex; align-items: center; min-height: 44px; color: var(--action); }
#result:has(.bad) { padding-bottom: 20px; }
.metric .micon { background: #f5f5f5; color: #474747; }
.metric strong { font-variant-numeric: tabular-nums; }
.workspacegrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.combinations p { margin: 6px 0 16px; }
.combinations small { display: block; margin-top: 12px; color: var(--muted); }
#mix-bits span { padding: 8px 2px; border-radius: 8px; border-color: #ccc; }
#mix-bits [data-status="Preferred"] { border-color: #cb4044; }
@media screen and (max-width: 840px) {
  .rail { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 4px 16px; }
  .brand { margin: 0; }
  .railfoot { display: block; border: 0; margin: 0; padding: 0; }
  .railfoot a { padding: 0 4px; min-height: 44px; font-size: .9rem; }
  .railbody { position: fixed; inset: auto 0 0; overflow: visible; z-index: 12; background: white; border-top: 1px solid var(--line); padding: 4px 8px max(8px, env(safe-area-inset-bottom)); }
  .rail { position: static; }
  .rail nav { width: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; padding: 0; }
  .rail nav a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; gap: 2px; padding: 4px 0; border-radius: 8px; font-size: 12px; line-height: 16px; }
  .rail nav svg { display: block; width: 20px; height: 20px; }
  .nav-long { display: none; } .nav-short { display: inline; }
  .shell main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .shell .bar { min-height: 44px; }
}
@media screen and (max-width: 640px) {
  .pagetop h1 { font-size: 1.6rem; }
  #result { padding: 16px 16px 0; }
  #result .planfoot { margin: 0 -16px; padding: 0 16px; }
  .plan-action { width: 100%; }
  .metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { padding: 12px; min-width: 0; }
  .metric:first-child { grid-column: 1 / -1; }
  .metric strong { font-size: 1.28rem; }
  .workspacegrid { grid-template-columns: 1fr; gap: 16px; }
  .pagetop .outline { min-width: 44px; height: 44px; }
}
@media print { .plan-action, .rail { display: none; } }
