.workspace {
  --rail-width: 222px;
  --gutter: clamp(24px, 3.15vw, 58px);
  --content-max: 1440px;
  --page: #f5f8fc;
  --surface: #fff;
  --surface-soft: #f0f5fb;
  --ink: #192d46;
  --muted: #52667c;
  --subtle: #5c7086;
  --line: #dde6ef;
  --field-line: #a8b9cb;
  --accent: #2563eb;
  --accent-dark: #1a4aa2;
  --accent-fill: #e4edff;
  --accent-soft: #ebf2fe;
  --accent-border: #8caede;
  --shadow: 0 4px 16px #153b6b08;
  --radius: 14px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(125deg, #f5f8fc, #f5fafc 76%, #f6f9fd);
  font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.workspace :is(button, a, input, select):focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.skip-content { position: fixed; z-index: 40; top: 8px; left: 10px; padding: 9px 15px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-content:focus { transform: none; }
.work-icon, .rail-link svg, .work-crumb svg { flex: none; width: 19px; height: 19px; }
.work-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 9;
  display: flex; flex-direction: column; width: var(--rail-width);
  border-right: 1px solid var(--line); background: #fff; padding: 23px 17px 18px;
  overflow-y: auto;
}
.work-brand { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 7px; color: #172d4d; text-decoration: none; }
.work-brand img { width: 49px; height: 49px; flex: none; border: 1px solid #d5e4f5; border-radius: 14px; background: linear-gradient(145deg,#f8fbff,#e0eeff); object-fit: contain; }
.work-brand > span { display: grid; gap: 3px; }
.work-brand strong { font-size: 20px; font-weight: 740; line-height: 1.2; letter-spacing: -.045em; }
.work-brand small { font: 600 9px/1.3 "Inter", "Segoe UI", sans-serif; letter-spacing: .26em; color: #5a7290; }
.work-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.rail-group { margin: 0 12px 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--subtle); }
.rail-link + .rail-group { margin-top: 25px; }
.rail-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 9px 13px; border: 1px solid transparent; border-radius: 9px;
  color: #4f6279; background: transparent; font: inherit; font-size: 14px; font-weight: 530;
  text-align: left; text-decoration: none; white-space: nowrap;
}
.rail-link:hover { color: var(--accent-dark); background: #f3f7fd; }
.rail-link:is([aria-current="page"],[aria-current="location"],.is-active) { color: #2053af; background: #e7f0ff; font-weight: 700; }
.rail-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 18px 9px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rail-foot > span { display: grid; gap: 5px; }
.rail-foot strong { font-size: 12px; font-weight: 600; }
.rail-foot small { font-size: 11px; line-height: 1.75; color: var(--subtle); }
.rail-foot .work-icon { width: 16px; height: 16px; margin-top: 2px; }
.work-main { min-height: 100svh; margin-left: var(--rail-width); min-width: 0; }
.work-top {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 60px; padding: 0 max(var(--gutter), calc((100% - var(--content-max)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line); background: #fff; color: var(--subtle); font-size: 12px;
}
.work-crumb { display: inline-flex; align-items: center; gap: 12px; }
.work-crumb .work-icon { width: 15px; height: 15px; }
.work-crumb i { color: #a9b9c8; font-style: normal; }
.work-crumb strong { color: var(--ink); font-weight: 630; }
.trade-mode { display: inline-flex; align-items: center; gap: 6px; color: #50677e; font-size: 12px; }
.trade-mode > span:first-child { width: 7px; height: 7px; margin-right: 2px; border-radius: 50%; background: #4281cd; }
.trade-mode strong { font-weight: 600; color: #28538f; }
.work-content { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 28px var(--gutter) 48px; }
.work-content [id] { scroll-margin-top: 18px; }
.work-footer { display: flex; align-items: center; gap: 18px; padding: 18px var(--gutter); border-top: 1px solid var(--line); color: var(--subtle); background: #fff; font-size: 12px; }
.work-footer a { text-underline-offset: 3px; }
.work-footer a:last-child { margin-left: auto; }
.store-cover {
  position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden;
  min-height: clamp(126px, 10.6vw, 178px); border: 1px solid #ccdff1; border-radius: 18px; background: #eaf5ff;
}
.cover-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 29%;  }
.store-cover::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#f8fcffab 0%,#f5faff82 21%,#f1f9ff5c 35%,#effaff20 51%,transparent 68%); content: ""; }
.cover-copy { position: relative; padding: 20px clamp(22px, 2.5vw, 42px); }
.cover-copy h1 { margin: 0; color: #162a46; font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", sans-serif; font-weight: 740; font-size: clamp(32px, 2.9vw, 46px); line-height: 1.23; letter-spacing: -.04em; }
.cover-copy h1 span { color: #245fb8; }
.cover-copy p { margin: 7px 0 0; color: #475e76; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }
.desk-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 30px 0 0; }
.desk-shortcut { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 78px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.desk-shortcut:hover { border-color: #9cbbe2; background: #fbfdff; }
.shortcut-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #e9f0ff; color: #386aca; }
.shortcut-teal .shortcut-icon { background: #e5f5f3; color: #157778; }
.shortcut-cobalt .shortcut-icon { background: #e9effb; color: #3557a3; }
.shortcut-label { display: grid; gap: 3px; min-width: 0; }
.shortcut-label strong { font-size: 14px; font-weight: 650; }
.shortcut-label small { color: var(--subtle); font-size: 12px; }
.desk-shortcut > .work-icon { width: 14px; height: 14px; margin-left: auto; color: #8192a6; }
.workspace .modal { border-radius: 15px; border-color: #d5e1ee; box-shadow: 0 22px 76px #14273d38; }
.workspace .modal-header { padding: 18px 22px 14px; }
.workspace .modal-body { padding: 21px 22px; }
.workspace .modal-header h2 { font-size: 1.25rem; }
.workspace .modal .button-primary { background: #235cd7; border-color: #235cd7; color: #fff; }
.workspace .modal .button-primary:hover { background: #174ab9; }
.workspace .modal .order-row dd { min-width: 0; overflow-wrap: anywhere; }
.receipt-save {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #b8d4f2;
  border-inline-start: 4px solid #245fc4;
  border-radius: 10px;
  background: #f1f7ff;
  color: #173961;
}
.receipt-save h3 { margin: 0; font-size: 1rem; }
.receipt-save-note { margin: 4px 0 10px; font-size: .9rem; line-height: 1.55; }
.receipt-copy-status { display: block; font-size: .85rem; margin-top: 6px; }
.receipt-copy-status:empty { display: none; }
.receipt-manual { display: grid; gap: 5px; margin-top: 9px; }
.receipt-manual textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 8px; font: inherit; }
.receipt-key { display: block; overflow-wrap: anywhere; white-space: normal; user-select: all; }
.receipt-key-copy { margin-top: 4px; }
@media (max-width: 1150px) and (min-width: 861px) {
  .workspace { --rail-width: 196px; }
  .work-rail { padding-inline: 13px; }
  .desk-shortcut { padding-inline: 12px; gap: 10px; }
}
@media (max-width: 860px) {
  .workspace { --gutter: clamp(15px, 3.5vw, 30px); }
  .work-main { margin-left: 0; min-height: 0; }
  .work-rail { position: static; display: block; width: auto; padding: 9px var(--gutter) 8px; overflow: visible; border: 0; border-bottom: 1px solid var(--line); }
  .work-brand { width: max-content; min-height: 40px; padding: 0; gap: 8px; }
  .work-brand img { width: 37px; height: 37px; border-radius: 10px; }
  .work-brand strong { font-size: 17px; }
  .work-brand small { font-size: 8px; }
  .work-nav { width: 100%; flex-direction: row; align-items: center; gap: 4px; margin: 8px 0 0; padding-block: 2px; overflow-x: auto; scrollbar-width: none; }
  .work-nav::-webkit-scrollbar { display: none; }
  .work-nav .rail-group, .rail-foot, .work-top { display: none; }
  .rail-link { flex: none; min-height: 36px; gap: 6px; padding: 6px 10px; font-size: 12px; }
  .rail-link svg { width: 15px; height: 15px; }
  .work-content { padding-top: 18px; }
  .desk-shortcuts { gap: 9px; }
}
@media (max-width: 600px) {
  .workspace:not(.admin-workspace) .work-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; }
  .workspace:not(.admin-workspace) .rail-link { flex-direction: column; justify-content: center; min-height: 43px; padding: 4px 1px; gap: 3px; font-size: 11px; }
  .store-cover { min-height: 115px; border-radius: 13px; }
  .cover-art { object-position: 72% 40%; }
  .store-cover::before { background: linear-gradient(90deg,#f7fcfff5 0%,#f4faffd9 27%,#f5fbff80 52%,transparent 84%); }
  .cover-copy { padding: 22px 17px; }
  .cover-copy h1 { font-size: clamp(30px,7.7vw,41px); }
  .cover-copy p { max-width: 19em; margin: 5px 0 0; font-size: 12px; }
  .desk-shortcuts { gap: 7px; margin-top: 22px; }
  .desk-shortcut { min-height: 69px; flex-direction: column; justify-content: center; gap: 4px; padding: 6px; border-radius: 9px; }
  .shortcut-icon { width: 27px; height: 27px; border-radius: 8px; }
  .shortcut-icon .work-icon { width: 15px; height: 15px; }
  .shortcut-label strong { font-size: 12px; }
  .shortcut-label small, .desk-shortcut > .work-icon { display: none; }
  .work-footer { flex-wrap: wrap; }
  .workspace .modal-header, .workspace .modal-body { padding-inline: 17px; }
}
