:root {
  color-scheme: light;
  color: #17283c;
  background: #edf2f6;
  font: 15px/1.55 "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  --muted: #526476;
  --line: #d8e2eb;
  --accent: #005e67;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #007681;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: #152a41; color: #fff; }
.topbar-content {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #086e79;
  font-size: 17px;
}
.account { color: #d7e5ef; font-size: 12px; text-align: right; }
.workbench, .connection { padding-block: 40px; }
.heading h1, .connection h1 {
  font-size: clamp(25px, 4vw, 39px);
  line-height: 1.25;
  margin: 0 0 7px;
}
.heading p, .connection p { color: var(--muted); margin: 0; }
.queues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 25px 0 20px;
}
.queue {
  min-height: 53px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #233b52;
  font-weight: 650;
}
.queue[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.queue-count { font-variant-numeric: tabular-nums; opacity: .92; }
.columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 2px 10px #27405708;
}
.panel-header { padding: 19px 22px 14px; }
.panel-header h2 { font-size: 19px; margin: 0; }
.instruction { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.search-area { display: grid; gap: 5px; padding: 3px 22px 17px; }
.search-area label { color: var(--muted); font-size: 12px; font-weight: 650; }
.search-area input {
  width: 100%;
  min-height: 43px;
  border: 1px solid #b8c9d8;
  border-radius: 7px;
  padding: 8px 11px;
  background: #fff;
  color: #17283c;
}
.task {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 84px;
  background: #fff;
  color: inherit;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 22px;
}
.task:last-child { border-radius: 0 0 10px 10px; }
.task:hover, .task[aria-pressed="true"] { background: #e8f3f4; }
.task[aria-pressed="true"] { box-shadow: inset 3px 0 var(--accent); }
.task:focus-visible { outline-offset: -4px; }
.task-identity, .task-progress { display: grid; gap: 4px; min-width: 0; }
.task-identity strong, .device-title { overflow-wrap: anywhere; }
.task small { color: var(--muted); }
.task-progress { justify-items: end; text-align: right; }
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: #e3f0f2;
  color: #14515a;
  font-size: 12px;
  font-weight: 650;
}
.detail-body { padding: 0 22px 22px; }
.device-title { margin: 8px 0 12px; font-size: 22px; }
.facts { margin: 0 0 16px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.check { background: #f1f6f8; border-radius: 7px; padding: 11px 13px; }
.check h4, .check p { margin: 0; font-size: 13px; }
.check p { margin-top: 3px; color: var(--muted); }
.receipt { color: var(--accent); font-weight: 650; margin-bottom: 0; }
.empty, .empty-detail { color: var(--muted); margin: 0; }
.empty { padding: 15px 22px 22px; }
.preview-link {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--accent);
  text-underline-offset: .2em;
  font-size: 13px;
}
.sales-heading { margin-bottom: 19px; }
.sales-record { max-width: 760px; padding: 24px; }
.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 23px;
}
.record-head h2 { margin: 9px 0 3px; }
.record-head p { margin: 0; color: var(--muted); }
.sales-record .facts { margin: 0; }
.receipt-box { margin-top: 18px; padding: 12px; border-radius: 7px; background: #e8f3f4; color: #14515a; }
.primary, .secondary {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 650;
}
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:disabled, .secondary:disabled { background: #e4eaee; border-color: #c8d7dd; color: #394f63; cursor: default; }
.secondary { background: #fff; color: #233b52; }
.action-dialog {
  width: min(460px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  color: #17283c;
}
.action-dialog::backdrop { background: #152a41a8; }
.action-dialog h2 { margin: 0; }
.action-dialog p { margin: 5px 0 16px; color: var(--muted); }
.action-dialog label { display: grid; gap: 4px; margin-top: 13px; font-weight: 650; }
.action-dialog input, .action-dialog textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #b8c9d8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 400;
}
.action-dialog textarea { resize: vertical; }
.action-dialog .form-error { color: #9f231f; }
.form-error:empty { display: none; }
.action-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .workbench, .connection { padding-block: 24px; }
  .queues { gap: 8px; grid-template-columns: repeat(2, 1fr); margin-block: 18px 14px; }
  .panel-header, .task { padding-inline: 14px; }
  .detail-body, .search-area { padding-inline: 14px; }
  .task { min-height: 81px; }
}
