/* Distance reading is a separate presentation layer, not a kitchen workflow.
 * Keep the legacy compact wall available. Never ellipsize products, changes or
 * allergies in large mode; paginate orders before sacrificing readable text.
 */
.zestia-ops-shell--kds .kds-reading-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.zestia-ops-shell--kds .kds-reading-choices button {
  min-width: 0;
  min-height: 52px;
  padding: 10px;
  border: 2px solid #cbd5e1;
  background: #fffdf8;
  color: #172033;
  font-weight: 900;
  white-space: normal;
}
.zestia-ops-shell--kds .kds-reading-choices button[aria-pressed="true"] {
  border-color: #0369a1;
  background: #e0f2fe;
  color: #0c4a6e;
}
.zestia-ops-shell--kds .kds-reading-choices button:focus-visible {
  outline: 3px solid #0369a1;
  outline-offset: 3px;
}
.zestia-ops-shell--kds .kds-reading-settings small { line-height: 1.5; }
.zestia-ops-shell--kds .kds-products-scroll-hint { display: none; }
.zestia-ops-shell--kds [data-kds-items-scope]:focus-visible {
  outline: 3px solid #0369a1;
  outline-offset: 2px;
}

/* Opening a long order must keep the same hierarchy as the wall, rather
 * than fall back to small sentence-case rows. All data stays in the DOM. */
.zestia-ops-shell--kds .kds-ticket--wall-detail-open {
  text-transform: uppercase;
}
.zestia-ops-shell--kds .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] :is(strong, span, small, b, li, button, a),
.zestia-ops-shell--kds.kds-focus .kds-ticket.kds-ticket--wall-detail-open[role="dialog"]:popover-open :is(strong, span, small, b, li, button, a) {
  text-transform: uppercase;
}
.zestia-ops-shell--kds .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] :is(button, .btn, a),
.zestia-ops-shell--kds.kds-focus .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] :is(button, .btn, a) {
  min-height: 44px;
}
.zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] .kds-products-scroll-hint {
  display: none;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .kds-food-safety {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .kds-food-safety > strong {
  flex: 1 0 100%;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .kds-food-safety > .kds-allergen-mark {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 5px;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .ticket-items:not([hidden]) > li,
.zestia-ops-shell--kds .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] .ticket-items:not([hidden]) > li:nth-child(n) {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .ticket-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .ticket-item__top > span,
.zestia-ops-shell--kds .kds-ticket.kds-ticket--wall-detail-open[role="dialog"] .ticket-item__top > span {
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
}
.zestia-ops-shell--kds .kds-ticket--wall-detail-open .ticket-inline-form {
  flex: 0 0 auto;
  margin: 0;
}

@media (min-width: 981px) {
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-board {
    grid-template-columns: var(--kds-reading-columns, repeat(3, minmax(0, 1fr)));
    gap: 10px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-column__head {
    flex-basis: auto;
    min-height: 56px;
    padding: 9px 12px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-column__head h2 {
    font-size: clamp(20px, 1.9vw, 30px);
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] [data-kds-lane-empty="true"] .kitchen-column__head {
    min-height: 40px;
    padding: 6px;
    gap: 6px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] [data-kds-lane-empty="true"] .kitchen-column__head h2 {
    font-size: clamp(12px, .9vw, 18px);
    overflow-wrap: normal;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket {
    gap: 8px;
    padding: 10px;
    border-width: 2px;
    border-left-width: 8px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket > :not([data-kds-items-scope]) {
    flex-shrink: 0;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket .ticket-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
    padding-right: 94px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket .ticket-head .kds-order-number {
    flex: 0 0 auto;
    min-width: 100px;
    min-height: 64px;
    max-width: none;
    padding: 4px 12px;
    font-size: clamp(48px, 4.7vw, 72px);
    line-height: 1;
    letter-spacing: -.04em;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__title {
    min-width: 140px;
    flex: 1 1 140px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__title strong {
    font-size: clamp(19px, 1.8vw, 28px);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: normal;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__wall-detail-toggle {
    top: 10px;
    right: 10px;
    min-width: 80px;
    min-height: 48px;
    max-width: 90px;
    padding: 5px;
    font-size: 15px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__wall-status {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-deadline {
    flex: 1 1 140px;
    min-width: 0;
    padding: 7px 9px;
    gap: 3px 8px;
    grid-template-columns: 1fr auto;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-deadline__time { font-size: 25px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kitchen-deadline__countdown { font-size: 17px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-coordination-strip {
    flex: 1 1 180px;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    font-size: 16px;
    gap: 4px;
    padding: 7px 9px;
    overflow: visible;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-coordination-strip :is(strong, span) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] [data-kds-items-scope] {
    min-height: 0;
    overflow: visible;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-items {
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-items > li,
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-items > li:nth-child(n) {
    display: list-item;
    height: auto;
    min-height: 0;
    padding: 8px 10px;
    overflow: visible;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-item__top > span {
    display: block;
    padding-right: 0;
    overflow: visible;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.2;
    font-weight: 950;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-item__top > span .kds-item-quantity {
    display: inline-block;
    padding: 1px 5px;
    margin-right: 4px;
    border-radius: 4px;
    background: #172033;
    color: #fffdf8;
    font-size: 1.05em;
    white-space: nowrap;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-item__change-flag {
    display: block;
    position: static;
    width: max-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 3px 6px;
    overflow: visible;
    white-space: normal;
    font-size: 14px;
    text-overflow: clip;
  }
  /* ORDER scope is already shown in the fixed, full-width allergy alert.
   * DINER/item-specific alerts remain beside their own products. */
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-item__food-safety[data-food-safety-scope="ORDER"] {
    display: none;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-item__change-flag ~ ul,
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-items > li > ul {
    display: block;
    margin: 5px 0 0;
    padding-left: 20px;
    font-size: clamp(18px, 1.5vw, 23px);
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .ticket-items > li > ul > li {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__notes {
    padding: 8px;
    font-size: 18px;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    text-transform: uppercase;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket__actions :is(button, .btn),
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-handoff-note {
    min-height: 56px;
    padding: 9px;
    font-size: 19px;
  }
  /* An unusually long ticket scrolls its product list, not its alerts/actions.
   * The pager keeps all orders and the detail dialog remains available. */
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket[data-kds-wall-fit="readable-scroll"] {
    max-height: var(--kds-card-space);
    height: var(--kds-card-space);
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket[data-kds-wall-fit="readable-scroll"] [data-kds-items-scope] {
    flex: 1 1 auto;
    min-height: 48px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: auto;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket[data-kds-wall-fit="readable-scroll"] .kds-products-scroll-hint {
    display: block;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 7px;
    background: #fff3cd;
    color: #663c00;
    font-size: 13px;
    font-weight: 900;
  }
  /* Details keep the same full information; the full dialog is scrollable. */
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open {
    height: auto;
    max-height: calc(100dvh - 32px);
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open [data-kds-items-scope] {
    flex: 0 0 auto;
    overflow: visible;
  }
}

/* Critical information must also wrap on tablets and small touchscreens. */
.zestia-ops-shell--kds .kds-food-safety {
  grid-template-columns: 1fr;
  min-width: 0;
}
.zestia-ops-shell--kds .kds-food-safety :is(strong, span, b),
.zestia-ops-shell--kds .ticket-item__food-safety :is(strong, span) {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-food-safety strong { font-size: 19px; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-food-safety span {
  font-size: 23px;
  text-transform: uppercase;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-food-safety b { font-size: 14px; line-height: 1.25; }
.zestia-ops-shell--kds[data-kds-reading="large"] .ticket-item__top .kds-item-name {
  /* Wide rows and the legacy detail dialog reset the parent's case. */
  text-transform: uppercase;
  font-weight: 950;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .ticket-item__food-safety[data-food-safety-scope="ORDER"] { display: none; }
@media (max-width: 980px) {
  .zestia-ops-shell--kds .kds-reading-choices { grid-template-columns: 1fr; }
  .zestia-ops-shell--kds[data-kds-reading="large"] .ticket-item__top > span {
    font-size: 23px;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .zestia-ops-shell--kds[data-kds-reading="large"] .ticket-item__top .kds-item-quantity { font-weight: 950; }
  .zestia-ops-shell--kds[data-kds-reading="large"] .ticket-item__change-flag ~ ul > li {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
}

/* Direct reading: one visible copy of each fact, not a second workflow.
 * Secondary metadata remains in the same accessible detail card. Safety,
 * exceptional coordination, quantities and modifications are never removed.
 */
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) :is(
  .ticket-meta, .kds-ticket__title > span, .kds-ticket__scope[data-kds-scope="ALL"],
  .sync-state, .kds-coordination-detail, .station-grid, .kds-ticket__secondary-actions,
  .ticket-item__change-flag, .ticket-item__top .ticket-inline-form
) { display: none; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) {
  gap: 5px;
  padding: 8px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-head {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 56px;
  padding-right: 82px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__title {
  min-width: 0;
  flex: 1 1 80px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__title strong {
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.15;
  overflow-wrap: normal;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-order-number {
  min-width: 84px;
  min-height: 56px;
  padding: 3px 7px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__wall-detail-toggle {
  top: 8px;
  right: 8px;
  min-width: 72px;
  max-width: 78px;
  min-height: 44px;
  font-size: 13px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-food-safety {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 8px;
  padding: 6px 8px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-food-safety strong {
  font-size: 14px;
  line-height: 1.2;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-food-safety span { font-size: 20px; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-food-safety b {
  flex: 1 0 100%;
  font-size: 12px;
  line-height: 1.2;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  flex: 1 1 145px;
  padding: 4px 6px;
  gap: 2px 6px;
  min-height: 0;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline__label { display: none; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline__time { font-size: 24px; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline__countdown { font-size: 14px; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-coordination-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 130px;
  padding: 4px 6px;
  gap: 2px 6px;
  font-size: 13px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-coordination-strip[data-kds-coordination-detail="routine"] > span { display: none; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-items {
  gap: 4px;
  margin: 0;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-items > li { padding: 6px 8px; }
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-items > li > ul {
  margin: 3px 0 0;
  padding-left: 18px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__notes {
  margin: 0;
  padding: 5px 7px;
  font-size: 15px;
}
.zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-products-scroll-hint { padding: 4px 6px; }
/* Product-first density: normal commands must fit before the exceptional
 * long-order fallback. Do not remove quantities, changes, notes or allergies. */
.zestia-ops-shell--kds .kds-allergen-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.zestia-ops-shell--kds .kds-allergen-mark img { width: 24px; height: 24px; flex: 0 0 24px; }
@media (min-width: 981px) {
  .zestia-ops-shell--kds.kds-focus .main-nav.zestia-ops-nav { justify-content: flex-start; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) {
    gap: 4px;
    padding: 6px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-order-number {
    font-size: clamp(48px, 3.8vw, 72px);
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-food-safety {
    padding: 4px 6px;
    align-items: center;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__wall-status { gap: 4px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline {
    flex-basis: 170px;
    gap: 2px 4px;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline__time { font-size: 22px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kitchen-deadline__countdown { font-size: 13px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-coordination-strip { flex-basis: 100px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-items > li { padding: 4px 6px; }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-item__top > span {
    font-size: clamp(24px, 1.85vw, 32px);
    line-height: 1.12;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .ticket-items > li > ul {
    margin-top: 2px;
    line-height: 1.2;
  }
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__actions :is(button, .btn),
  .zestia-ops-shell--kds.kds-focus[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-handoff-note {
    min-height: 44px;
    padding: 6px;
    font-size: 18px;
  }
}
.zestia-ops-shell--kds .main-nav .kds-guide-open {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #64748b;
  background: #fffdf8;
  color: #172033;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.zestia-ops-shell--kds .kds-guide {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 2px solid #64748b;
  border-radius: 14px;
  background: #fffdf8;
  color: #172033;
  overflow: auto;
}
.zestia-ops-shell--kds .kds-guide::backdrop { background: rgba(15,23,42,.6); }
.zestia-ops-shell--kds .kds-guide header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.zestia-ops-shell--kds .kds-guide h2 { margin: 0; font-size: 24px; }
.zestia-ops-shell--kds .kds-guide button { min-height: 44px; }
.zestia-ops-shell--kds .kds-guide-steps { padding-left: 22px; }
.zestia-ops-shell--kds .kds-guide-steps li { padding: 8px 0; }
.zestia-ops-shell--kds .kds-guide-steps :is(strong, span) { display: block; }
.zestia-ops-shell--kds .kds-guide dl { margin: 12px 0; }
.zestia-ops-shell--kds .kds-guide dt { margin-top: 12px; font-weight: 900; }
.zestia-ops-shell--kds .kds-guide dd { margin: 2px 0 0; line-height: 1.45; }
.zestia-ops-shell--kds .kds-guide :is(button, a):focus-visible { outline: 3px solid #0369a1; outline-offset: 2px; }
@media (max-width: 980px) {
  .zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket:not(.kds-ticket--wall-detail-open) .kds-ticket__wall-detail-toggle {
    display: inline-flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    background: #fff;
    color: #172033;
    border: 1px solid #64748b;
    border-radius: 7px;
  }
  .zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open:popover-open {
    position: fixed;
    inset: 12px;
    margin: auto;
    width: auto;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 12px;
    background: #fffdf8;
  }
  .zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open .kds-ticket__wall-detail-toggle {
    display: inline-flex;
    position: static;
    align-self: end;
    min-height: 44px;
    padding: 5px 12px;
  }
  .zestia-ops-shell--kds[data-kds-reading="large"] .kds-ticket.kds-ticket--wall-detail-open .ticket-head { padding-right: 0; }
}
