:root {
  color-scheme: dark;
  --page: #090c12;
  --surface: #121720;
  --raised: #1d222c;
  --line: #2b303a;
  --muted: #a9aeb8;
  --text: #eef0f3;
  --mint: #4acbbd;
  --warn: #e5c887;
  --red: #e7a6a2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font:
    14px/1.4 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--mint);
  color: #091614;
}
.app {
  max-width: 580px;
  margin: auto;
  min-height: 100vh;
  padding: 0 16px 30px;
}
.top {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.top strong {
  font-size: 16px;
  font-weight: 680;
  flex: 1;
}
.top-note {
  font-size: 12px;
  color: var(--muted);
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 5px 8px 0;
  display: grid;
  place-items: center;
}
.icon-button svg,
.icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  flex: none;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 8px 0 18px;
}
.tab {
  background: none;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 0 11px;
  font-weight: 600;
}
.tab[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--mint);
}
.tab-count {
  color: var(--mint);
  font-size: 12px;
  margin-left: 4px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 9px;
}
.section-heading h1 {
  font-size: 14px;
  font-weight: 680;
  margin: 0;
}
.section-heading span {
  color: var(--muted);
  font-size: 12px;
}
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 12px 13px;
  min-height: 76px;
}
.task + .task {
  border-top: 1px solid var(--line);
}
.task:hover {
  background: var(--raised);
}
.task-main {
  min-width: 0;
}
.action-label {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--mint);
  font-weight: 650;
  line-height: 1.3;
}
.action-label.warn {
  color: var(--warn);
}
.action-label.error {
  color: var(--red);
}
.action-label svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
  flex: none;
  margin-top: 1px;
}
.client {
  display: block;
  font-weight: 650;
  margin-top: 5px;
}
.contact {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.45;
}
.source {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.source svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.7;
}
.chevron {
  width: 15px;
  height: 15px;
  color: #777f8a;
  stroke-width: 1.7;
}
.empty {
  color: var(--muted);
  padding: 15px;
  font-size: 13px;
}
.search {
  position: relative;
  display: block;
}
.search > svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
input,
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 0 10px;
  width: 100%;
}
.search input {
  padding-left: 37px;
}
.search input::placeholder {
  color: #979da8;
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
}
#iiko-payment-filter {
  grid-column: 1 / -1;
}
.filters label > span,
.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.filter-row {
  display: flex;
  gap: 5px;
}
.filter-row input {
  min-width: 0;
}
.clear {
  width: 32px;
  min-width: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  display: grid;
  place-items: center;
}
.clear svg {
  width: 15px;
  height: 15px;
}
.list-heading {
  margin-top: 19px;
}
.all-name {
  font-weight: 650;
}
.all-detail {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.all-status {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.card-head {
  padding: 17px 0 13px;
}
.card-head h1 {
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 5px;
}
.card-contact {
  color: var(--muted);
  font-size: 13px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  margin: 0 0 13px;
  padding: 9px 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stage:has(.stage-step:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.origin-detail {
  color: var(--muted);
  font-size: 12px;
  margin: -4px 0 6px;
}
.stage-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 9px;
}
.stage-step.done {
  color: var(--mint);
}
.stage-step svg {
  height: 13px;
  width: 13px;
}
.card-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  margin-bottom: 13px;
}
.card-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 9px 0;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.card-tab[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--mint);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 13px;
  margin-bottom: 10px;
}
.panel h2 {
  font-size: 14px;
  margin: 0 0 10px;
}
.row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 38px;
}
.row-line + .row-line {
  border-top: 1px solid var(--line);
}
.row-line .label {
  color: var(--muted);
}
.row-line strong {
  text-align: right;
  font-weight: 650;
}
.order-item {
  padding: 9px 0;
}
.order-item + .order-item {
  border-top: 1px solid var(--line);
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
}
.modifiers {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}
.total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  font-weight: 700;
}
.statusline {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.statusline.error {
  color: var(--red);
}
.statusline.warn {
  color: var(--warn);
}
.statusline svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 6px;
  color: var(--text);
  min-height: 38px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 650;
}
.btn .icon {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
}
.btn.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #081a18;
}
.btn.link {
  background: none;
  border-color: transparent;
  padding-left: 0;
  color: var(--muted);
}
.field {
  margin-top: 10px;
}
.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.channel {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  border-radius: 6px;
  min-height: 38px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 650;
}
.channel[aria-pressed="true"] {
  color: var(--mint);
  border-color: var(--mint);
  background: #16302d;
}
.preferred {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.notice {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
}
.notice.error {
  color: var(--red);
}
.amount-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.amount-option {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}
.amount-option[aria-pressed="true"] {
  border-color: var(--mint);
  color: var(--mint);
}
.history {
  margin: 0;
  padding: 0;
  list-style: none;
}
.history li {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.history li + li {
  border-top: 1px solid var(--line);
}
.history time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 13px;
  border: 1px solid #3b4651;
  background: #27313a;
  border-radius: 7px;
  white-space: nowrap;
}
@media (min-width: 700px) {
  .app {
    padding-top: 24px;
  }
}

/* Staff sign-in */
body.login-mode .app { max-width: none; padding: 0; }
#login {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 32px 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 12%, #173c3d 0%, transparent 45%),
              radial-gradient(ellipse at 85% 84%, #182b3b 0%, transparent 45%), #090c12;
}
#login::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(151, 205, 201, .19) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 95%);
}
#login-background { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.login-card {
  width: min(100%, 430px); padding: 40px; background: #121a22;
  border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}
.login-brand { display: flex; align-items: center; gap: 10px; color: #eef8f6; font-size: 16px; font-weight: 700; }
.brand-logo { display: block; flex: none; height: auto; object-fit: contain; }
.login-logo { width: 96px; }
.work-logo { width: 68px; }
.work-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.work-brand-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.work-brand-identity strong { font-size: 15px; line-height: 1.25; }
.work-brand #logout { flex: none; }
.login-card h1 { margin: 35px 0 6px; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
.login-intro { margin: 0 0 28px; color: #b6c3c5; font-size: 14px; }
#login-form { display: flex; flex-direction: column; }
#login-form label { margin: 0 0 8px; color: #d8e3e2; font-size: 13px; font-weight: 650; }
#login-form input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #394951; border-radius: 8px; background: #0d141b; color: var(--text); caret-color: var(--mint); font-size: 16px; }
#login-form > input { margin-bottom: 20px; }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 52px !important; }
#password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 6px; color: #b6c3c5; background: transparent; }
#password-toggle:hover { color: #fff; background: #24343b; }
#password-toggle svg { width: 19px; height: 19px; }
.login-error { margin: 14px 0 0; color: #ffb8b2; line-height: 1.4; }
#login-submit { width: 100%; min-height: 50px; margin-top: 24px; border-radius: 8px; font-size: 15px; transition: background-color .15s ease; }
#login-submit:hover:not(:disabled) { background: #73ddd0; border-color: #73ddd0; }
@media (max-width: 420px) { .login-card { padding: 30px 24px; } }
@media (prefers-reduced-motion: reduce) { #login-submit { transition: none; } }

#login-form .remember-choice { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; font-weight: 400; }
#login-form .remember-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--mint); }
.work-brand-actions { display: flex; align-items: center; gap: 6px; flex: none; }
#settings-screen { padding: 18px 0 30px; }
.settings-heading { display: flex; align-items: center; gap: 10px; }
.settings-heading h1 { margin: 0; font-size: 22px; }
.settings-note { color: var(--muted); line-height: 1.5; }
#settings-form { margin-top: 22px; }
#settings-form h2 { margin: 24px 0 8px; font-size: 16px; }
.settings-choice { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--line); }
.settings-choice input { width: 20px; height: 20px; accent-color: var(--mint); flex: none; }
#test-sound { margin-top: 12px; }
#settings-status { min-height: 20px; color: var(--muted); }

#login-form .remember-choice input { min-height: 18px; padding: 0; }
.settings-choice input { min-height: 20px; padding: 0; }
#settings-open, #settings-back { min-width: 40px; min-height: 40px; }

/* Banquet list and card */
@media (min-width: 700px) { body:not(.login-mode) .app { max-width: 880px; } }
.task:has(.row-side) { grid-template-columns: minmax(0,1fr) auto 17px; gap: 16px; padding: 16px; }
.task-main { display: grid; gap: 4px; }
.row-name { font-size: 15px; font-weight: 680; overflow-wrap: anywhere; }
.row-phone { font-size: 15px; font-weight: 600; color: #e5f4f2; overflow-wrap: anywhere; }
.row-side { display: grid; justify-items: end; align-content: center; gap: 7px; text-align: right; }
.row-date { font-size: 13px; color: #d8e3e2; white-space: nowrap; }
.row-side .source, .card-meta .source { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.row-states, .card-states { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.row-states { margin-top: 5px; }
.state-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #bbc5c7; }
.state-badge svg { width: 14px; height: 14px; }
.state-badge.good { color: #79d9cb; }
.state-badge.warn { color: #e5c887; }
.card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-head h1 { font-size: 22px; overflow-wrap: anywhere; }
.card-phone { font-size: 17px; font-weight: 650; color: #e5f4f2; overflow-wrap: anywhere; }
.card-meta { display: grid; justify-items: end; gap: 6px; margin: 0; flex: none; }
.card-date { color: #d8e3e2; font-size: 13px; }
.card-states { margin: 0 0 12px; }
#card-top { height: 44px; }
#card-top #back { min-width: 40px; min-height: 40px; }
.channel { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px; }
.channel img { width: 23px; height: 23px; object-fit: contain; flex: none; }
.channel svg { width: 14px; height: 14px; flex: none; }
.send-feedback { min-height: 47px; margin-top: 12px; color: #d5e0df; font-size: 13px; }
.send-feedback span { display: flex; gap: 6px; align-items: center; }
.send-feedback svg { width: 16px; height: 16px; }
.send-feedback small { display: block; margin-top: 3px; color: #b6c3c5; }
.send-feedback.success { color: #79d9cb; }
.send-feedback.error { color: #ffb8b2; }
.send-panel .actions { align-items: center; }
.copy-link { color: #c5d0d0; }
@media (max-width: 480px) {
  .task:has(.row-side) { gap: 8px; padding: 14px 12px; }
  .row-date { white-space: normal; font-size: 12px; }
  .row-side { max-width: 112px; }
  .channel { font-size: 11px; gap: 3px; }
  .channel img { width: 20px; height: 20px; }
  .card-head h1 { font-size: 19px; }
  .card-meta { max-width: 135px; text-align: right; }
}

/* One-action banquet screen */
body:not(.login-mode) { background: radial-gradient(ellipse at 18% 8%, #153133 0%, transparent 42%), radial-gradient(ellipse at 85% 84%, #152532 0%, transparent 45%), #090c12; background-attachment: fixed; }
body:not(.login-mode) button:focus-visible, body:not(.login-mode) input:focus-visible, body:not(.login-mode) select:focus-visible { outline-width: 1px; outline-offset: 2px; }
.action-panel { padding: 20px; margin: 4px 0 12px; }
.action-panel h2 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.action-panel > p { color: #d4dfdf; line-height: 1.5; }
.action-panel .confirmed-note, .previous-receipt { color: #79d9cb; }
.action-panel .field { display: block; margin-top: 16px; }
.action-panel .field-label { display: block; margin-bottom: 7px; }
.action-panel input, .action-panel select { width: 100%; }
.action-panel .row-line { margin-bottom: 4px; }
.destination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; color: #e5f4f2; }
.previous-receipt { margin: 12px 0; font-size: 13px; }
.previous-receipt svg { width: 15px; height: 15px; vertical-align: -3px; }
.previous-receipt small { display: block; color: #b6c3c5; margin-top: 3px; }
.send-feedback:empty { min-height: 0; margin: 0; }
.send-feedback.success { min-height: 0; margin-bottom: 5px; }
details.panel > summary { cursor: pointer; font-weight: 650; padding: 4px 0; }
details.panel[open] > summary { margin-bottom: 10px; }
@media (max-width: 480px) { .action-panel { padding: 16px; } }

.is-busy svg, #send:disabled svg[data-lucide] { width: 16px; height: 16px; vertical-align: -3px; animation: busy-spin .8s linear infinite; }
.action-region { display: grid; grid-template-rows: 1fr; }
.action-region > .panel { min-height: 0; overflow: hidden; }
.action-enter { animation: action-reveal 200ms ease-out both; }
#onsite-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
#onsite-details > summary { cursor: pointer; font-weight: 650; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes action-reveal { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .action-enter, .is-busy svg, #send:disabled svg[data-lucide] { animation: none; } }

.action-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.action-heading h2 { margin: 7px 0 12px; }
.copy-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 7px; background: transparent; color: #b6c3c5; }
.copy-icon:hover { background: #25343a; color: var(--text); }
.copy-icon svg { width: 18px; height: 18px; }
.history li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.history time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.iiko-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.iiko-banner > div { display: grid; gap: 2px; flex: 1; }
.iiko-banner strong { font-size: 13px; }
.iiko-banner span { color: var(--muted); font-size: 12px; }
.iiko-badge { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 500; }

#queue.iiko-queue {
  display: grid;
  gap: 8px;
  border: 0;
  background: none;
  overflow: visible;
}
.queue-divider { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.queue-task { position: relative; min-width: 0; }
.queue-task > .task {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.queue-task > .task:hover { background: var(--raised); }
.queue-task.unread > .task {
  border-color: #b96365;
  grid-template-columns: minmax(0,1fr) auto;
  padding-right: 53px;
}
.queue-task.reading > .task { border-color: var(--mint); background: #17282c; }
.queue-task.moving { z-index: 2; }
.queue-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f2b2af;
}
.queue-eye:hover { background: var(--raised); }
.queue-eye svg { grid-area: 1/1; width: 19px; height: 19px; transition: opacity 100ms ease, transform 140ms ease; }
.queue-eye .eye-on { opacity: 0; transform: scale(.84); color: var(--mint); }
.queue-task.reading .eye-off { opacity: 0; transform: scale(.84); }
.queue-task.reading .eye-on { opacity: 1; transform: scale(1); }
.iiko-menu { position: relative; }
.iiko-menu summary {
  display: grid; place-items: center; width: 40px; height: 40px;
  list-style: none; border-radius: 7px; color: var(--muted); cursor: pointer;
}
.iiko-menu summary::-webkit-details-marker { display: none; }
.iiko-menu summary:hover, .iiko-menu[open] summary { background: var(--raised); color: var(--text); }
.iiko-menu summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.iiko-menu svg { width: 17px; height: 17px; stroke-width: 1.8; }
.iiko-menu-content {
  position: absolute; z-index: 5; top: 47px; right: 0; width: 220px;
  display: grid; gap: 9px; padding: 12px; border: 1px solid #343b47;
  border-radius: 8px; background: var(--surface); box-shadow: 0 8px 22px #0008;
}
.iiko-menu-content span { color: var(--muted); font-size: 12px; }
.iiko-menu-content .btn { display: flex; align-items: center; justify-content: center; gap: 7px; }
#iiko-sync-status { color: var(--red); }
#iiko-refresh-dialog {
  width: min(260px, calc(100% - 32px)); padding: 32px 20px; margin: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--text); text-align: center; font-weight: 650;
}
#iiko-refresh-dialog[open] { display: grid; justify-items: center; gap: 15px; }
#iiko-refresh-dialog::backdrop { background: #05080db3; }
#iiko-refresh-dialog svg {
  width: 32px; height: 32px; color: var(--mint);
  animation: busy-spin .9s linear infinite;
}
@media (max-width: 425px) {
  .work-brand:has(.iiko-menu:not([hidden])) { gap: 6px; }
  .work-brand:has(.iiko-menu:not([hidden])) .work-brand-identity { gap: 8px; }
  .work-brand:has(.iiko-menu:not([hidden])) .work-logo { width: 51px; }
  .work-brand:has(.iiko-menu:not([hidden])) .work-brand-actions { gap: 0; }
  .work-brand:has(.iiko-menu:not([hidden])) #logout { padding-inline: 9px; }
  .queue-task.unread > .task { gap: 6px; padding-left: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .queue-task > .task, .queue-eye svg { transition: none; }
  #iiko-refresh-dialog svg { animation: none; }
}
.queue-eye span {
  grid-area: 1/1;
  display: grid;
  place-items: center;
  transition: opacity 100ms ease, transform 140ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .queue-eye span { transition: none; }
}

.composition-list { display: grid; gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.composition-list li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.composition-heading { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.composition-heading time { color: var(--muted); font-size: 12px; }
.composition-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0; }
