/* 同一类入口在深浅背景上都有明确边缘。页面内的普通正文链接仍沿用原来的排版。 */
.entry-button:is(button,a) {
  --entry-face:#304058;--entry-foot:#26354b;--entry-ink:#f0f5ff;--entry-edge:#72859e;--entry-shadow:#0a121f;
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  min-height:44px;padding:8px 16px;border:1px solid var(--entry-edge);border-radius:10px;
  color:var(--entry-ink);background:linear-gradient(180deg,var(--entry-face),var(--entry-foot));
  box-shadow:inset 0 1px 0 #ffffff26,0 2px 0 var(--entry-shadow),0 4px 9px #060e1b26;
  cursor:pointer;text-decoration:none;font:600 14px/1.35 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  transition:filter .14s,box-shadow .14s,transform .14s;
}
.entry-button.entry-primary {
  --entry-face:#eff6ff;--entry-foot:#c8dafa;--entry-ink:#1a304f;--entry-edge:#e4eeff;--entry-shadow:#647d9c;
}
.entry-button.entry-back {
  --entry-face:#263444;--entry-foot:#1a2736;--entry-edge:#596e84;--entry-ink:#e4ebf5;
  padding-inline:13px;font-weight:530;
}
.entry-button.entry-paper {
  --entry-face:#fffefa;--entry-foot:#f1eee7;--entry-edge:#9c9c98;--entry-ink:#273545;--entry-shadow:#b4b3ad;
}
.entry-button.entry-compact {min-height:36px;padding:6px 11px;font-size:13px;border-radius:8px}
.entry-button[hidden] {display:none!important}
@media(hover:hover) {
  .entry-button:is(button,a):hover {filter:brightness(1.09);transform:translateY(-1px);text-decoration:none}
  .entry-button.entry-paper:hover {filter:brightness(.97)}
}
.entry-button:is(button,a):active {transform:translateY(1px);box-shadow:inset 0 2px 3px #17284230}
.entry-button:is(button,a):focus-visible {outline:3px solid #9ebfff;outline-offset:3px}
.entry-icon {display:inline-block;position:relative;flex:none;width:16px;height:16px}
.icon-orders::before,.icon-orders::after {content:"";position:absolute;box-sizing:border-box;width:11px;height:12px;border:1.5px solid currentColor;border-radius:2px}
.icon-orders::before {left:1px;top:1px;opacity:.7}
.icon-orders::after {left:4px;top:4px;background:var(--entry-foot)}
.icon-library {border:1.5px solid currentColor;border-radius:3px;width:16px;height:13px}
.icon-library::after {content:"";position:absolute;left:6px;top:0;bottom:0;border-left:1px solid currentColor}
.icon-back::before {content:"";position:absolute;left:2px;top:4px;width:7px;height:7px;border:solid currentColor;border-width:0 0 1.6px 1.6px;transform:rotate(45deg)}
.icon-back::after {content:"";position:absolute;left:2px;right:1px;top:7.5px;height:1.5px;background:currentColor}
.run-tools {gap:10px}
.run-tools #sample-total {min-width:23px;padding:2px 5px;border-radius:6px;background:#364d71;color:white;font:650 13px/17px "Helvetica Neue",Arial,sans-serif;text-align:center}
.scene-tools {gap:8px;flex-wrap:wrap}
.scene-bar {flex-wrap:wrap}
.run-page #confirm-order.entry-button {--entry-face:#ffe0ad;--entry-foot:#f0be7c;--entry-ink:#3f2a13;--entry-edge:#fadaab;--entry-shadow:#8c6337;color:var(--entry-ink)}
.run-page #approval-note .entry-button {color:#ffe5bd;min-height:32px}
.run-page .actions button.entry-button:hover,.run-page .scene-tools button.entry-button:hover {text-decoration:none}
.opening-positioning .field-opening-actions {gap:12px;flex-wrap:wrap}
.opening-positioning .field-opening-actions a.entry-button {border-radius:24px;color:var(--entry-ink)}
.field-opening-actions a.entry-button span {padding:0;color:inherit}
.process-foot a.entry-button,.detail-nav a.entry-button,.detail-end a.entry-button,.case-lookup button.entry-button {padding:8px 14px;border:1px solid var(--entry-edge);color:var(--entry-ink);background:linear-gradient(var(--entry-face),var(--entry-foot));text-decoration:none}
.detail-end {flex-wrap:wrap}
.engineering-note .text-action.entry-button,.closing-actions .contact-email.entry-button {color:var(--entry-ink)}
/* 窄屏把两个入口并列放到标题下，工具栏自然换行，保留足够大的触控面积。 */
@media(max-width:600px) {
  .run-heading {display:grid;gap:13px}
  .run-tools {display:flex;justify-content:flex-start;gap:8px}
  .run-tools .entry-button {padding-inline:13px}
  .scene-tools .entry-button {min-height:44px}
  .scene-bar .line-id {margin-right:auto}
  .opening-positioning .field-opening-actions {gap:8px}
}
@media(max-width:410px) {
  .scene-tools {width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .scene-tools .entry-button {padding-inline:4px}
}
@media(prefers-reduced-motion:reduce) {.entry-button:is(button,a) {transition:none}}
