/* The customer workspace shares the colors of the public TestDock page. */
.workspace-shell {
  --ink: #17221c;
  --muted: #526057;
  --line: #cdd3c6;
  --wash: #e9eee5;
  --accent: #345a2f;
  --deep: #121e19;
  --lime: #ddf95a;
  --coral: var(--accent);
  --panel: #fdfdf8;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  color: var(--ink);
  background: #f8f8ef;
  font-family: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.workspace-shell ::selection { background: var(--lime); color: var(--deep); }
.workspace-shell :focus-visible { outline: 2px solid #466322; outline-offset: 3px; }
.workspace-shell main:focus { outline: none; }
.workspace-skip { position: fixed; z-index: 22; top: 8px; left: 8px; padding: 9px 14px; background: var(--accent); color: white; transform: translateY(-150%); }
.workspace-skip:focus { transform: translateY(0); }
.workspace-shell .workspace-header { padding: 0; display: block; background: var(--panel); border-bottom: 1px solid var(--line); }
.workspace-top, .workspace-shell main { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }
.workspace-top { display: flex; align-items: center; }
.workspace-top nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.workspace-top nav > a, .workspace-top nav > button { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .87rem; font-weight: 680; }
.workspace-top nav > a.selected { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.workspace-top nav > a:hover { color: var(--accent); }
.workspace-shell main { flex: 1; max-width: none; min-height: 0; padding: clamp(32px, 5vw, 65px) 0 76px; }
.workspace-shell .workspace-footer { padding: 20px max(24px, calc((100vw - 1160px) / 2)); background: var(--panel); font-size: .78rem; line-height: 1.5; gap: 9px 20px; }
.workspace-shell .workspace-footer div { flex-wrap: wrap; gap: 5px 16px; }
.workspace-footer a:hover { color: var(--accent); text-decoration: underline; }
.workspace-shell h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.22; letter-spacing: -.035em; font-weight: 760; }
.workspace-shell h2 { line-height: 1.4; letter-spacing: -.025em; }
.workspace-shell .heading .eyebrow { display: none; }
.workspace-shell .heading p { margin-bottom: 0; }
.workspace-shell .card, .workspace-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.workspace-shell .button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); font-size: .86rem; font-weight: 680; white-space: normal; }
.workspace-shell .button:hover { background: var(--wash); border-color: #9eac99; }
.workspace-shell .button.primary { background: var(--lime); border-color: #9db538; color: var(--deep); }
.workspace-shell .button.primary:hover { background: #ecff9c; }
.workspace-shell .button.text { background: transparent; border-color: transparent; color: var(--muted); }
.workspace-shell .button.small { min-height: 44px; padding: 6px 9px; }
.workspace-shell input, .workspace-shell select, .workspace-shell textarea { color: var(--ink); border-color: #9eaa9b; border-radius: 4px; }
.workspace-shell input::placeholder, .workspace-shell textarea::placeholder { color: #59675c; }
.workspace-shell dialog { color: var(--ink); background: var(--panel); border-radius: 8px; }
.workspace-shell dialog::backdrop { background: #121e1980; }
.workspace-shell #notice { background: var(--deep); border-radius: 5px; }
.workspace-shell .banner { border-radius: 5px; }
.workspace-shell .pill { color: #344938; background: #e7ece4; border-radius: 4px; font-size: .76rem; font-weight: 680; }
.workspace-shell .pill.green { color: #185b42; background: #e4f1e9; }
.workspace-shell .pill.red { color: #8b352b; background: #f8eae7; }

.workspace-auth { width: min(100%, 456px); margin: 6px auto 24px; }
.workspace-auth-with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: 19px; width: min(100%, 930px); align-items: start; }
.workspace-auth-visual { margin: 0; border: 1px solid #405247; border-radius: 7px; overflow: hidden; color: #f9fbef; background: var(--deep); }
.workspace-auth-visual > div { padding: 18px 22px; }
.workspace-auth-visual > div span { display: block; color: var(--lime); font-size: .84rem; font-weight: 730; }
.workspace-auth-visual strong { display: block; margin-top: 3px; font-size: clamp(1.14rem, 2.4vw, 1.72rem); line-height: 1.3; letter-spacing: -.04em; }
.workspace-auth-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.workspace-auth-visual figcaption { padding: 9px 22px; color: #ced8cf; font-size: .76rem; }
.workspace-auth-heading { margin-bottom: 23px; }
.workspace-auth-heading p, .workspace-page-heading p { margin: 7px 0 0; color: var(--muted); }
.workspace-auth-panel { padding: clamp(18px, 4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.workspace-auth-panel label { font-size: .91rem; }
.workspace-auth-panel .check { font-size: .81rem; }
.workspace-auth-panel input:not([type=checkbox]) { min-height: 46px; font-size: 16px; }
.workspace-auth-panel .button.full { margin-top: 4px; min-height: 46px; }
.workspace-auth-links { display: flex; flex-wrap: wrap; gap: 8px 21px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 15px; }
.workspace-auth-links a, .workspace-auth-help a, .workspace-related, .workspace-back, .workspace-run-link { color: var(--accent); font-weight: 680; text-decoration: underline; text-underline-offset: .23em; }
.workspace-auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.workspace-auth-help { margin: 3px 0 0; font-size: .88rem; }

.workspace-page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 24px; }
.workspace-masthead { padding: clamp(19px, 4vw, 35px); border: 1px solid #405247; border-radius: 7px; color: #f9fbef; background: linear-gradient(115deg, var(--deep) 18%, #243b30 100%); }
.workspace-masthead h1 { color: inherit; }
.workspace-masthead p { color: #ced8cf; }
.workspace-masthead :focus-visible { outline-color: var(--lime); }
.workspace-masthead .pill { color: #e9efe9; background: #354c3e; }
.workspace-masthead .pill.green { color: #214732; background: #dcead7; }
.workspace-masthead .pill.red { color: #86362c; background: #fae4de; }
.workspace-shell #order-form .order-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 19px; }
.workspace-shell #order-form .card { min-width: 0; padding: clamp(17px, 3vw, 28px); }
.workspace-shell #order-form .card h2 { margin: 0 0 15px; }
.workspace-shell #order-form .card h2:not(:first-child) { margin-top: 24px; }
.workspace-shell #order-form input:not([type="radio"], [type="checkbox"]) { min-height: 46px; font-size: 16px; }
.workspace-shell #order-form .plan { background: var(--wash); cursor: pointer; }
.workspace-shell #order-form .plan:has(:checked) { border-color: #789566; }
.workspace-shell #order-form .plan strong, .workspace-shell #order-form .plan b { font-size: .91rem; }
.workspace-shell #order-form .plan p, .workspace-shell #order-form .plan small { font-size: .79rem; }
.workspace-shell #order-form .plan b { flex: none; }
.workspace-shell #order-form .check { min-height: 44px; padding-block: 6px; cursor: pointer; }
.workspace-shell #order-form .order-aside details > summary { min-height: 44px; padding: 9px 0; }
.workspace-ledger { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.workspace-ledger-caption { padding: 15px 20px; font-weight: 720; }
.workspace-ledger-head, .workspace-order-row { display: grid; grid-template-columns: minmax(145px, 1.65fr) minmax(112px, .85fr) minmax(115px, .9fr) minmax(70px, .55fr) minmax(90px, .65fr); align-items: center; gap: 12px; padding: 12px 20px; }
.workspace-ledger-head { color: var(--muted); background: var(--wash); font-size: .8rem; font-weight: 690; border-block: 1px solid var(--line); }
.workspace-order-list { margin: 0; padding: 0; list-style: none; }
.workspace-order-list li + li { border-top: 1px solid var(--line); }
.workspace-order-row { min-height: 76px; }
.workspace-order-row:hover { background: #f1f5eb; }
.workspace-order-row:focus-visible { outline-offset: -3px; }
.workspace-order-row strong { display: block; line-height: 1.35; font-weight: 750; }
.workspace-order-name > span { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.workspace-order-units, .workspace-order-row time { color: var(--muted); font-size: .85rem; }
.workspace-order-price { font-variant-numeric: tabular-nums; font-size: .88rem; }
.workspace-empty { padding: 34px 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.workspace-empty h2 { margin: 0 0 6px; }
.workspace-empty p { color: var(--muted); }

.workspace-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }
.workspace-status { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-package { font-family: ui-monospace, monospace; font-size: .85rem; overflow-wrap: anywhere; }
.workspace-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: start; gap: 21px; }
.workspace-detail-main, .workspace-detail-side { min-width: 0; display: grid; gap: 15px; }
.workspace-detail-main .card, .workspace-detail-side .card { margin: 0; padding: 20px; }
.workspace-panel { min-width: 0; padding: 20px; }
.workspace-panel h2 { margin: 0; font-size: 1.18rem; }
.workspace-panel-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; }
.workspace-panel > p:last-child { margin-bottom: 0; }
.workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 10px; padding: 13px 0; border-block: 1px solid var(--line); }
.workspace-metrics dt { color: var(--muted); font-size: .79rem; }
.workspace-metrics dd { margin: 2px 0 0; font-size: clamp(1.15rem, 2.25vw, 1.7rem); line-height: 1.3; letter-spacing: -.025em; font-variant-numeric: tabular-nums; font-weight: 730; }
.workspace-metrics dd span { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: normal; }
.workspace-summary p { margin: 5px 0 0; }
.workspace-facts { margin: 12px 0; }
.workspace-facts > div { display: grid; grid-template-columns: minmax(45px, .33fr) 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.workspace-facts dt { color: var(--muted); }
.workspace-facts dd { margin: 0; }
.workspace-order-actions { align-items: stretch; }
.workspace-order-actions .button { flex: 1 1 auto; }
.workspace-detail .workspace-disclosure { margin: 0; border: 1px solid var(--line); background: var(--panel); padding: 13px 20px; border-radius: 7px; min-width: 0; }
.workspace-detail .workspace-disclosure > summary { color: var(--ink); font-weight: 730; }
.workspace-detail .workspace-disclosure > summary span, .workspace-day > summary span { margin-left: 7px; color: var(--muted); font-size: .82rem; font-weight: 550; }
.workspace-detail .workspace-order-id { margin-top: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 0 0; font-size: .82rem; }
.workspace-related { font-size: .88rem; padding: 5px 3px; }
.workspace-day { margin: 0; border-top: 1px solid var(--line); padding: 0; }
.workspace-day summary { padding: 11px 2px; color: var(--ink); font-weight: 710; }
.workspace-day table { table-layout: fixed; }
.workspace-day th:first-child { width: 19%; }
.workspace-day th:nth-child(2) { width: 25%; }
.workspace-day th:nth-child(3) { width: 29%; }
.workspace-day th, .workspace-day td { vertical-align: middle; }
.workspace-detail table thead th { background: var(--wash); color: var(--muted); font-weight: 690; }
.workspace-detail table tbody th { background: transparent; color: var(--ink); font-weight: 660; }
.workspace-detail table { font-size: .84rem; }
.workspace-detail th, .workspace-detail td { padding: 9px 9px; }
.workspace-version-change { display: inline-block; color: var(--accent); font-size: .74rem; }
.workspace-run-link { background: transparent; border: 0; border-radius: 3px; padding: 5px 0; min-height: 44px; text-align: left; cursor: pointer; }
.workspace-run-link:hover { text-decoration-thickness: 2px; }
.workspace-queue { padding: 0; margin: 8px 0 0; list-style: none; max-height: 330px; overflow: auto; }
.workspace-queue li { display: grid; grid-template-columns: minmax(55px,.6fr) minmax(0,2fr) max-content; gap: 7px 11px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); font-size: .84rem; }
.workspace-queue li > span:not(.pill) { color: var(--muted); }
.workspace-operations > .card { margin-top: 12px; }
.workspace-detail .evidence-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); margin: 10px 0; }
.workspace-detail .evidence-grid img { height: 175px; }
.workspace-detail .version-grid details { border-color: var(--line); border-radius: 5px; }

@media (max-width: 900px) {
  .workspace-detail-grid { grid-template-columns: minmax(0,1fr) minmax(200px,245px); gap: 14px; }
  .workspace-ledger-head, .workspace-order-row { grid-template-columns: minmax(125px,1.45fr) minmax(94px,.8fr) minmax(91px,.95fr) minmax(60px,.55fr) minmax(75px,.65fr); gap: 9px; padding-inline: 15px; }
  .workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .workspace-top, .workspace-shell main { width: calc(100% - 32px); }
  .workspace-top nav { width: 100%; gap: 0 9px; }
  .workspace-top nav > a, .workspace-top nav > button { min-height: 44px; }
  .workspace-shell .workspace-top nav > button.text { padding-inline: 4px; }
  .workspace-shell main { padding-bottom: 52px; }
  .workspace-auth-with-photo { grid-template-columns: minmax(0, 1fr); gap: 13px; width: min(100%, 456px); }
  .workspace-auth-visual { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.78fr); align-items: center; }
  .workspace-auth-visual > div { padding: 12px; }
  .workspace-auth-visual img { height: 100%; max-height: 119px; }
  .workspace-auth-visual figcaption { grid-column: 1 / -1; padding: 5px 12px; border-top: 1px solid #405247; }
  .workspace-masthead { margin-bottom: 17px; }
  .workspace-masthead > .button { width: 100%; }
  .workspace-shell #order-form .order-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .workspace-shell #order-form .order-aside { position: static; }
  .workspace-detail-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-payment-pending .workspace-detail-side { grid-row: 1; }
  .workspace-ledger-head { display: none; }
  .workspace-ledger-caption { border-bottom: 1px solid var(--line); }
  .workspace-order-row { grid-template-columns: minmax(0,1fr) minmax(0, auto); gap: 7px 10px; padding-block: 14px; }
  .workspace-order-state, .workspace-order-price { justify-self: end; text-align: right; }
  .workspace-order-state { max-width: 108px; }
  .workspace-order-state .pill { white-space: normal; }
  .workspace-order-row time { font-size: .8rem; }
  .workspace-panel, .workspace-detail .workspace-disclosure { padding-inline: 14px; }
  .workspace-detail .workspace-order-id { padding-inline: 0; }
  .workspace-detail th, .workspace-detail td { padding-inline: 5px; }
  .workspace-detail .table { overflow-x: auto; }
  .workspace-detail .table table { min-width: 360px; }
  .workspace-day table { font-size: .82rem; }
  .workspace-day .pill { padding: 3px 5px; font-size: .71rem; white-space: normal; }
  .workspace-queue li { grid-template-columns: minmax(0,1fr) max-content; }
  .workspace-queue li > span:not(.pill) { grid-row: 2; }
  .workspace-queue li > .pill { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-shell #notice { transition: none; }
}

.workspace-new-ai { margin: 0 0 18px; }
.workspace-new-ai > summary { cursor: pointer; font-weight: 730; }
.workspace-ai-panel, .workspace-new-ai { border-left: 4px solid #63834c; }
.workspace-shell .td-ai-guide p { margin: 5px 0 10px; color: var(--muted); font-size: .86rem; }
.workspace-shell .td-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.workspace-shell .td-ai-status { color: #385637; font-size: .8rem; }
.workspace-shell .td-ai-guide details, .workspace-inline-help { margin-top: 9px; font-size: .83rem; }
.workspace-shell .td-ai-guide summary, .workspace-inline-help summary { padding: 5px 0; cursor: pointer; font-weight: 680; }
.workspace-shell .td-ai-guide textarea { min-height: 126px; font-size: .81rem; resize: vertical; }
.workspace-new-ai .td-ai-guide h2 { display: none; }
.workspace-new-ai .td-ai-guide { padding-top: 8px; }
.workspace-ai-panel .actions { margin-top: 9px; }
.workspace-mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0; margin: 7px 0; list-style: none; }
.workspace-mini-flow li { padding: 4px 8px; border-radius: 4px; background: var(--wash); }
.workspace-mini-flow li + li::before { content: '→'; margin-right: 6px; color: var(--muted); }
.workspace-run-meter { display: block; width: 100%; height: 9px; accent-color: #4e7847; }
.workspace-snapshot { margin-top: 14px; padding: 13px; border-radius: 5px; background: #172820; color: #eff4ea; }
.workspace-snapshot :focus-visible { outline-color: #ddf95a; }
.workspace-snapshot .workspace-panel-heading { gap: 5px; }
.workspace-snapshot time, .workspace-snapshot p { font-size: .76rem; color: #bacbbd; }
.workspace-snapshot ul { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 4px; list-style: none; padding: 0; margin: 9px 0; }
.workspace-snapshot .workspace-device-slot { display: grid; place-content: center; justify-items: center; gap: 3px; width: 100%; min-height: 44px; padding: 3px 0; color: #c1cdc4; background: #1e3228; border: 1px solid #4a6253; border-radius: 4px; font: 700 .72rem/1.05 ui-monospace, monospace; }
.workspace-snapshot button.workspace-device-slot { cursor: pointer; }
.workspace-snapshot button.workspace-device-slot:hover { border-color: #ddf95a; }
.workspace-snapshot .slot-ok b { color: #ddf95a; }
.workspace-snapshot .slot-attention b, .workspace-snapshot p span { color: #ffc788; }
.workspace-daily > h2 { margin-bottom: 10px; }
@media (max-width: 600px) {
  .workspace-snapshot ul { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
