:root {
  color-scheme: light;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #242c35;
  background: #f5f6f8;
  --blue: #526b83;
  --blue-dark: #364f67;
  --line: #dce2e8;
  --muted: #65717e;
  --sidebar: #e8edf2;
  --soft: #eaf0f5;
}

body { margin: 0; padding: clamp(16px, 5vw, 48px); }
main { max-width: 56rem; margin: auto; padding: clamp(18px, 4vw, 42px); background: white; border: 1px solid var(--line); border-radius: 16px; }
h1, h2 { line-height: 1.25; }
h1 { margin: 0 0 .5rem; }
.notice { color: var(--muted); margin: 0 0 1.4rem; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
form { display: grid; gap: .75rem; margin: 1.1rem 0; }
fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; min-width: 0; }
fieldset, input, select, textarea { border: 1px solid #cdd7df; border-radius: 6px; }
label { display: grid; gap: .2rem; }
input, button, select, textarea { font: inherit; padding: .45em .65em; }
input, select, textarea { min-width: 0; box-sizing: border-box; }
textarea { min-height: 6rem; }
button { color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: 7px; justify-self: start; cursor: pointer; }
:focus-visible { outline: 3px solid #a0b8cf; outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .45rem .35rem; overflow-wrap: anywhere; }
th { background: #f0f3f6; }
dt { font-weight: 650; }
dd { margin: 0 0 .65em; }
pre { font: inherit; background: #f0f3f6; padding: .8rem; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Keep primary controls comfortably tappable on a narrow phone display. */
@media (max-width: 480px) {
  input:not([type="hidden"]), button, select { min-height: 44px; }
  main > a, main > p > a, main td > a, main li > a[href*="/attachments/"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.my-tasks { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.my-tasks > li { border: 1px solid var(--line); border-radius: .55rem; padding: .5rem .75rem; margin-bottom: .45rem; }
.my-tasks > li > a { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.my-tasks small { display: block; color: var(--muted); }
.boss-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 9.5rem), 1fr)); gap: .6rem; list-style: none; padding: 0; }
.boss-metrics a { display: flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--soft); overflow-wrap: anywhere; }
.boss-delivery { padding: .9rem 1rem; margin: .75rem 0; border: 1px solid var(--line); border-radius: .55rem; }
.boss-delivery h2 { margin: 0 0 .45rem; }
.boss-delivery p { margin: .4rem 0 0; }
.boss-delivery progress { width: 100%; max-width: 26rem; accent-color: var(--blue-dark); }
.boss-order-flow { display: inline-block; margin: .28rem 0; color: var(--muted); overflow-wrap: anywhere; }
.boss-order-flow [aria-current="step"] { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .18em; }
.boss-results { list-style: none; padding: 0; }
.boss-results > li { padding: .55rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .boss-results > li > a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
}
.tool-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.tool-controls button { font-size: .9rem; }

.order-select { display:flex; align-items:center; justify-content:center; min-width:2.75rem; min-height:2.75rem; cursor:pointer; }
.order-select input { min-height:0; width:1.1rem; height:1.1rem; margin:.25rem; }


/* EAHO release worktree 12f146b, src/style.css and src/workspace.js: navigation and tools. */
.workspace-layout { display:grid; padding:0; grid-template-columns:222px minmax(0,1fr); grid-template-rows:66px 1fr; min-height:100vh; }
.workspace-layout .workspace-sidebar { grid-row:1/-1; background:var(--sidebar); padding:32px 20px 24px; border-right:1px solid var(--line); }
.workspace-brand { display:flex; gap:12px; align-items:center; color:#242c35; font-size:20px; font-weight:700; margin-bottom:32px; }
.workspace-brand > span { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:13px; background:var(--blue); color:#fff; }
.workspace-brand small { display:block; font-size:10px; font-weight:400; letter-spacing:.12em; color:var(--muted); }
.nav-label { padding:0 12px; color:var(--muted); font-size:11px; letter-spacing:.16em; }
.workspace-sidebar nav { display:flex; flex-direction:column; gap:8px; }
.workspace-sidebar nav a { min-height:44px; display:flex; align-items:center; gap:10px; border-radius:8px; padding:0 14px; color:#4c5b68; font-size:.875rem; text-decoration:none; }
.workspace-sidebar nav a[aria-current=page] { background:var(--blue); color:white; }
.workspace-sidebar nav a:hover:not([aria-current]) { background:#dce5ec; }
.workspace-top { display:flex; align-items:center; justify-content:space-between; gap:1em; padding:0 38px; border-bottom:1px solid var(--line); background:#ffffffdc; color:var(--muted); font-size:13px; }
.workspace-top small { border-radius:20px; background:var(--soft); padding:.35em .9em; color:var(--blue-dark); }
.workspace-layout main { box-sizing:border-box; width:min(100% - 42px, 980px); min-width:0; margin:22px auto; align-self:start; }
.tool-shelf section > ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:20px; }
.tool-shelf .my-tasks > li { padding:16px; border-radius:14px; background:#fff; box-shadow:0 4px 20px #34495e04; }
.tool-shelf .tool-controls button { background:#fff; color:var(--blue-dark); border-color:var(--line); }
.tool-shelf .tool-controls button:hover,button:hover:not(:disabled) { background:var(--blue-dark); color:#fff; }
@media(max-width:1100px) {
  .workspace-layout { grid-template-columns:184px minmax(0,1fr); }
  .workspace-layout .workspace-sidebar { padding:26px 12px; }
  .workspace-brand { font-size:17px; }
}
@media(max-width:780px) {
  .workspace-layout { display:block; }
  .workspace-layout .workspace-sidebar { padding:12px 15px; border-right:0; border-bottom:1px solid var(--line); }
  .workspace-brand { margin-bottom:9px; }
  .workspace-brand > span { width:32px; height:32px; flex-basis:32px; border-radius:10px; }
  .workspace-sidebar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
  .workspace-sidebar nav a { padding:0 8px; }
  .workspace-sidebar .nav-label { display:none; }
  .workspace-top { min-height:48px; padding:0 15px; }
  .workspace-layout main { width:calc(100% - 20px); margin:10px auto; padding:16px; }
  .tool-shelf section > ul { grid-template-columns:1fr; gap:8px; }
}

/* Preserve all quantity columns without widening the phone page. */
section[aria-label="订单数量"] .tablewrap{max-width:100%;overflow-x:auto}
section[aria-label="订单数量"] :is(th,td):not(:first-child){white-space:nowrap}
section[aria-label="订单数量"] th[scope="row"]{text-align:left;font-weight:600}

.workspace-crumb{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .65rem;color:#526b83}
.workspace-crumb a{display:inline-flex;align-items:center;min-height:44px}
