.hasami-app {
  --hasami-ink: #17211c;
  --hasami-muted: #60706a;
  --hasami-line: #d8e0dc;
  --hasami-panel: #ffffff;
  --hasami-paper: #fbfcfa;
  --hasami-accent: #1f6f5b;
  --hasami-danger: #a84430;
  --hasami-warn: #fff2d5;
  color: var(--hasami-ink);
  background: var(--hasami-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
}

.hasami-app * {
  box-sizing: border-box;
}

.hasami-header {
  border-bottom: 1px solid var(--hasami-line);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.hasami-eyebrow {
  color: var(--hasami-muted);
  font-weight: 700;
  margin: 0 0 6px;
}

.hasami-panel {
  background: var(--hasami-panel);
  border: 1px solid var(--hasami-line);
  border-radius: 8px;
  padding: 18px;
  margin: 16px 0;
}

.hasami-flow {
  display: grid;
  gap: 16px;
}

.hasami-hidden {
  display: none !important;
}

.hasami-muted {
  color: var(--hasami-muted);
}

.hasami-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.hasami-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hasami-option {
  display: grid;
  gap: 6px;
  min-height: 70px;
  border: 1px solid var(--hasami-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}

.hasami-option:has(input:checked) {
  border-color: var(--hasami-accent);
  background: #d6efe7;
}

.hasami-field {
  display: grid;
  gap: 8px;
}

.hasami-field input,
.hasami-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hasami-line);
  border-radius: 8px;
  padding: 12px;
}

.hasami-field textarea {
  min-height: 82px;
  resize: vertical;
}

.hasami-button,
.hasami-mini-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--hasami-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.hasami-secondary {
  background: #e7ece9;
  color: var(--hasami-ink);
}

.hasami-danger {
  background: var(--hasami-danger);
}

.hasami-actions,
.hasami-admin-actions,
.hasami-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hasami-mini-button {
  min-height: 34px;
  padding: 0 10px;
  background: #e7ece9;
  color: var(--hasami-ink);
}

.hasami-ticket {
  font-size: clamp(72px, 20vw, 132px);
  line-height: 0.9;
  font-weight: 900;
}

.hasami-ticket-suffix {
  font-size: 28px;
  font-weight: 900;
}

.hasami-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hasami-line);
  border-radius: 8px;
}

.hasami-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.hasami-table th,
.hasami-table td {
  padding: 10px;
  border-bottom: 1px solid var(--hasami-line);
  text-align: left;
  vertical-align: top;
}

.hasami-table th {
  background: #edf2ef;
  font-size: 13px;
}

.hasami-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  background: #e7ece9;
  font-weight: 800;
  white-space: nowrap;
}

.hasami-badge.outside,
.hasami-badge.absent {
  background: var(--hasami-warn);
}

.hasami-badge.called {
  background: #fbe3de;
}

.hasami-display-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.hasami-display-number {
  font-size: clamp(72px, 16vw, 180px);
  font-weight: 900;
  line-height: 0.9;
}

.hasami-notice {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--hasami-warn);
}

.hasami-error {
  color: var(--hasami-danger);
  font-weight: 700;
}

@media (max-width: 760px) {
  .hasami-two,
  .hasami-display-grid {
    grid-template-columns: 1fr;
  }

  .hasami-actions .hasami-button,
  .hasami-admin-actions .hasami-button {
    width: 100%;
  }
}
