.function-index, .ord-navigation {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #363138;
  border-radius: 12px;
  background: #18161b;
}
.function-index { margin-top: 13px; }
.ord-tab {
  position: relative; min-width: 0; display: flex; gap: 10px; align-items: center;
  color: #ded7e5; text-decoration: none; padding: 14px clamp(10px, 1.4vw, 24px); min-height: 57px;
  border-inline-end: 1px solid #363138; line-height: 1.28; transition: background .16s ease;
}
.ord-tab:first-child { border-radius: 11px 0 0 11px; }
.ord-tab:last-child { border-inline-end: 0; border-radius: 0 11px 11px 0; }
.ord-step-icon { display: grid; place-items: center; flex: none; color: #bfa6e0; }
.ord-step-icon svg { width: 21px; height: 21px; }
.ord-tab-label { font-size: .9rem; letter-spacing: -.025em; font-weight: 510; }
.ord-tab-short { display: none; }
.ord-tab:hover { background: #252029; color: white; }
.ord-tab[aria-current="step"] { background: #34293d; box-shadow: inset 0 -2px #c9a6ee; color: #fcf5ff; }
.ord-tab[aria-current="step"] .ord-step-icon { color: #e3c8ff; }
.ord-step-num { margin-left: auto; font: .72rem/1 Consolas, monospace; color: #918699; }
.ord-navigation .ord-tab { padding-inline: clamp(9px, 1.1vw, 19px); }
.ord-navigation { scroll-margin-top: 12px; }
.ord-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 18px 0 13px; }
.ord-subject { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.ord-id, .ord-board-id { color: #dbbf9c; font: 550 .82rem/1.4 Consolas, monospace; letter-spacing: .02em; }
.ord-id { padding: 3px 8px; background: #2a241f; border: 1px solid #4a3d31; border-radius: 5px; }
.ord-context-text { font-size: .89rem; color: #e2dde5; }
.ord-context-state { margin-left: auto; font-size: .82rem; color: #afa7b6; }
.ord-restart { background: none; padding: 3px 0; color: #c5b4d7; border: 0; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.ord-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #e1d6e9; font-size: .86rem; }
.ord-stage { min-width: 0; }
.ord-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(13px,1.6vw,24px); }
.ord-panel { min-width: 0; padding: clamp(17px,2.1vw,31px); border: 1px solid #38333d; border-radius: 15px; background: #19171c; color: #f5f0f6; }
.ord-panel h2, .ord-panel h3 { margin: 5px 0 10px; letter-spacing: -.043em; line-height: 1.15; font-size: clamp(1.25rem,2.0vw,1.75rem); font-weight: 550; }
.ord-eyebrow { margin: 0; font-size: .75rem; line-height: 1.4; color: #c7acd8; font-weight: 540; text-transform: uppercase; letter-spacing: .105em; }
.ord-note { margin: 7px 0 14px; color: #c7bfcd; font-size: .96rem; line-height: 1.55; }
.ord-error { color: #ffb3a9; }
.ord-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; border: 1px solid #d9c6fa; border-radius: 8px; background: #d2bcf6; color: #24182e; padding: 10px 15px; min-height: 41px; font: 550 .91rem/1.35 var(--font); }
.ord-btn:hover { background: #e3ceff; }
.ord-btn.secondary { color: #efe7f4; background: #252029; border-color: #514754; }
.ord-btn.secondary:hover { background: #352a3b; border-color: #8b7598; }
.ord-btn:disabled { cursor: default; opacity: .6; }
.ord-board { max-width: 1100px; }
.ord-board-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.ord-board-head h2 { font-size: clamp(1.65rem,2.75vw,2.6rem); margin: 9px 0 0; }
.ord-board-date { font-size: .91rem; color: #d7cbdc; border: 1px solid #48404d; padding: 5px 11px; border-radius: 18px; }
.ord-board-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 21px 0 16px; }
.ord-board-filters button { font: inherit; font-size: .84rem; border: 1px solid #4a414f; border-radius: 7px; padding: 7px 12px; color: #d8d0de; background: transparent; }
.ord-board-filters button[aria-pressed="true"] { background: #392d43; color: #f8eaff; border-color: #7a5c8a; }
.ord-board-row { border-top: 1px solid #3b343e; }
.ord-board-row:last-child { border-bottom: 1px solid #3b343e; }
.ord-board-row summary { display: flex; gap: 14px; align-items: center; cursor: pointer; color: #f6effa; list-style: none; padding: 14px 0; }
.ord-board-row summary:focus-visible { outline: 2px solid #bfa6dd; outline-offset: 2px; }
.ord-board-row summary::-webkit-details-marker { display: none; }
.ord-board-name { display: flex; gap: 18px; align-items: center; min-width: 0; }
.ord-board-name strong { font-size: 1rem; font-weight: 540; }
.ord-status { margin-left: auto; font-size: .8rem; padding: 3px 8px; border-radius: 5px; border: 1px solid; }
.ord-status.purple { background: #2a2332; color: #dac3ef; border-color: #574460; }
.ord-status.amber { background: #30271f; color: #ebc79b; border-color: #5a4938; }
.ord-status.green { background: #1d302a; color: #b8dfca; border-color: #3a584b; }
.ord-disclose { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 50%; border: 1px solid #514756; color: #dbcce3; line-height: 1; font-size: 1.12rem; transition: transform .16s ease; }
.ord-board-row[open] .ord-disclose { transform: rotate(45deg); }
.ord-board-detail { display: grid; gap: 8px; background: #201c23; border: 1px solid #39303f; border-radius: 9px; padding: 14px 17px; margin: 0 0 13px; }
.ord-board-detail p { margin: 0; overflow-wrap: anywhere; font-size: .98rem; }
.ord-board-spec { color: #bdb1c3; font-size: .84rem; }
.ord-board-detail .ord-btn { justify-self: start; margin-top: 3px; }
.ord-empty { margin: 0; padding: 18px 0; color: #c7bdcd; }
@media(max-width: 1050px) {
  .ord-step-num { display: none; }
  .ord-tab { gap: 7px; }
}
@media(max-width: 800px) {
  .ord-grid { grid-template-columns: minmax(0,1fr); }
  .ord-tab { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px; }
  .ord-tab-label { font-size: .84rem; }
}
@media(max-width: 540px) {
  .function-index { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: none; }
  .function-index .ord-tab { flex-direction: row; align-items: center; min-height: 36px; border: 1px solid #38323d; border-radius: 7px; padding: 6px 9px; background: #19161d; }
  .function-index .ord-tab-label { font-size: .79rem; }
  .function-index .ord-step-icon svg { width: 15px; height: 15px; }
  .ord-navigation { display: grid; gap: 3px; border: 0; background: transparent; }
  .ord-navigation .ord-tab { min-height: 50px; flex-direction: column; gap: 4px; justify-content: center; align-items: center; padding: 5px 2px; border-radius: 7px; border: 1px solid #3e3643; background: #1a171c; }
  .ord-navigation .ord-tab[aria-current] { background: #392c44; border-color: #846894; box-shadow: none; }
  .ord-navigation .ord-tab-label { display: none; }
  .ord-tab-short { display: inline; font-size: .78rem; }
  .ord-navigation .ord-step-icon svg { width: 15px; height: 15px; }
  .ord-context { padding-top: 13px; gap: 6px; }
  .ord-context-state { display: none; }
  .ord-restart { margin-left: auto; }
  .ord-board-row summary { gap: 6px; }
  .ord-board-name { display: grid; gap: 1px; }
  .ord-status { font-size: .73rem; padding: 3px 6px; }
  .ord-board-detail { padding: 12px; }
}
