:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #17202a;
  --muted: #687385;
  --line: #dce3ea;
  --primary: #146c72;
  --primary-dark: #0e5156;
  --danger: #b42318;
  --warn: #a15c07;
  --ok: #147a3d;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-stack {
  display: grid;
  gap: 1px;
}

.app-version,
.login-version {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a,
.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
}

.button:hover,
.nav-button:hover,
.nav a:hover {
  text-decoration: none;
  border-color: #b6c3ce;
}

.button.primary,
.primary-link {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.button.primary:hover,
.primary-link:hover {
  background: var(--primary-dark);
}

.button.ghost {
  background: transparent;
}

.button.danger {
  border-color: #f1aaa5;
  background: #fff0ef;
  color: var(--danger);
}

.mobile-submit-panel {
  display: none;
}

.page {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.title-actions,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.2;
}

.toolbar,
.table-wrap,
.form-panel,
.detail-grid,
.compact-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toolbar {
  padding: 16px;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.exchange-rate-button {
  width: fit-content;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.url-preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.url-preview[hidden] {
  display: none;
}

.url-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8edf2;
}

.url-preview-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.url-preview-body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-preview-body span,
.url-preview-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.url-preview-body p {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.service-overview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-overview-header,
.service-panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-overview-header strong,
.service-panel-card-header strong {
  color: var(--text);
  font-size: 14px;
}

.service-overview-header span,
.service-panel-card-header span,
.service-panel-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.confirm-list {
  display: grid;
  gap: 12px;
}

.confirm-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  word-break: break-word;
}

.confirm-item strong {
  font-size: 16px;
}

.confirm-item span {
  color: var(--muted);
  font-weight: 650;
}

.service-panel-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.service-panel-card.active {
  border-color: #9bcfd2;
  background: #f1faf9;
}

.service-chip-list {
  display: grid;
  gap: 6px;
}

.service-chip {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-chip:hover {
  border-color: #9bcfd2;
}

.service-chip.selected {
  border-color: var(--primary);
  background: #edf7f6;
}

.service-chip span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--text);
}

.checkbox input {
  width: 18px;
  min-height: 18px;
}

.form-checkbox {
  min-height: 40px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span,
.detail-item span,
.compact-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.calculation-preview {
  display: grid;
  align-content: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.calculation-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calculation-preview strong {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.2;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  background: var(--surface-strong);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.panel,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.panel {
  background: #edf7f6;
  color: var(--primary-dark);
}

.status.pending {
  background: #fff4d8;
  color: var(--warn);
}

.status.running {
  background: #edf7f6;
  color: var(--primary-dark);
}

.status.completed {
  background: #e7f7ed;
  color: var(--ok);
}

.status.failed {
  background: #fde8e6;
  color: var(--danger);
}

.status.partial {
  background: #eef1ff;
  color: #3e4aa8;
}

.small-link {
  font-weight: 800;
}

.url-cell {
  display: inline-block;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.progress-cell {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.progress-cell span,
.progress-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.progress-bar.large {
  height: 12px;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.orders-table-wrap {
  scrollbar-gutter: stable;
}

.orders-table {
  min-width: 2380px;
  table-layout: fixed;
}

.orders-table th,
.orders-table td {
  white-space: nowrap;
}

.orders-table tbody tr:hover {
  background: #f9fbfc;
}

.orders-table .col-sales-order {
  width: 145px;
}

.orders-table .col-panel-order {
  width: 145px;
}

.orders-table .col-management {
  width: 110px;
}

.orders-table .col-panel {
  width: 150px;
}

.orders-table .col-customer {
  width: 180px;
}

.orders-table .col-repeat {
  width: 95px;
}

.orders-table .col-channel {
  width: 145px;
}

.orders-table .col-service {
  width: 250px;
}

.orders-table .col-url {
  width: 320px;
}

.orders-table .col-number,
.orders-table .col-money {
  width: 108px;
}

.orders-table .col-progress {
  width: 280px;
}

.orders-table .col-date {
  width: 120px;
}

.orders-table .col-status {
  width: 120px;
}

.orders-table .col-actions {
  width: 170px;
}

.orders-table .service-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.45;
  word-break: keep-all;
}

.orders-table .strong-cell {
  font-weight: 750;
}

.orders-table .muted-cell {
  color: var(--muted);
}

.progress-note {
  margin: 8px 0 0;
}

.repeat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.repeat-badge.repeat {
  border-color: #9bd3af;
  background: #edf9f1;
  color: var(--ok);
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.view-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.view-tabs a:hover {
  text-decoration: none;
  background: #f8fafc;
}

.view-tabs a.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.set-list {
  display: grid;
  gap: 12px;
}

.empty-set-list,
.set-summary-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.empty-set-list {
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.set-summary-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.set-summary-card summary::-webkit-details-marker {
  display: none;
}

.set-summary-main,
.set-summary-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.set-summary-main {
  display: grid;
  gap: 3px;
}

.set-summary-main strong {
  font-size: 17px;
}

.set-summary-main span:not(.set-code) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.set-code,
.set-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 850;
}

.set-summary-side {
  justify-content: end;
}

.set-summary-side > span:not(.status) {
  font-weight: 850;
}

.set-breakdown {
  display: grid;
  border-top: 1px solid var(--line);
}

.set-breakdown-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.set-breakdown-row:last-child {
  border-bottom: 0;
}

.set-breakdown-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.set-breakdown-row div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.link-button {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.link-button.danger {
  color: var(--danger);
}

.form-panel {
  padding: 22px;
}

.form-panel.narrow {
  max-width: 620px;
}

.order-entry-form {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.form-section {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section-primary {
  background: #fbfcfd;
}

.form-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.form-section-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.form-section-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.required-note,
.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4d8;
  color: var(--warn);
  font-size: 11px;
  font-weight: 800;
}

.required-mark {
  margin-left: 6px;
  min-height: 18px;
  padding: 1px 6px;
  vertical-align: middle;
}

.required-mark.soft {
  background: #edf7f6;
  color: var(--primary-dark);
}

.optional-section {
  padding: 0;
}

.optional-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.optional-section summary::-webkit-details-marker {
  display: none;
}

.optional-section summary::after {
  content: "開く";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.optional-section[open] summary::after {
  content: "閉じる";
}

.optional-section summary small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.optional-grid {
  padding: 0 20px 20px;
}

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

.wide {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.split-actions {
  align-items: center;
}

.inline-checkbox {
  width: auto;
  margin-right: auto;
}

.compact-table form {
  margin: 0;
}

.inline-toggle-form {
  margin: 6px 0 0;
}

.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f1aaa5;
  border-radius: 8px;
  background: #fff0ef;
  color: var(--danger);
  font-weight: 700;
}

.alert.success {
  border-color: #9bd3af;
  background: #edf9f1;
  color: var(--ok);
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.detail-item {
  padding: 17px;
  background: white;
}

.detail-item strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  word-break: break-word;
}

.compact-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

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

.admin-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.admin-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.success-message {
  margin-top: 14px !important;
  color: var(--ok) !important;
  font-weight: 700;
  word-break: break-word;
}

.error-message {
  margin-top: 14px !important;
  color: var(--danger) !important;
  font-weight: 700;
}

.admin-section {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.embedded-section {
  box-shadow: none;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 100px auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.service-inline-form {
  grid-template-columns: 110px 120px 120px minmax(190px, 1fr) 100px 105px 105px 80px 80px auto;
}

.panel-inline-form {
  grid-template-columns: 120px 150px minmax(220px, 1fr) minmax(180px, 1fr) 90px 80px auto;
}

.compact-table {
  box-shadow: none;
}

.compact-table table {
  min-width: 720px;
}

.api-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.api-panel-settings {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.api-panel-settings h3 {
  margin: 0;
  font-size: 17px;
}

.set-items {
  display: grid;
  gap: 12px;
}

.set-item {
  display: grid;
  grid-template-columns: 120px 130px minmax(220px, 1.2fr) 95px minmax(220px, 1.2fr) 120px 90px 105px 115px 100px auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.set-item label,
.set-item input,
.set-item select {
  min-width: 0;
}

.setting-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-header,
  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header {
    padding: 14px 16px;
  }

  .nav {
    width: 100%;
  }

.nav a {
    flex: 1;
  }

  .nav form {
    flex: 1;
  }

  .nav-button {
    width: 100%;
  }

  .page {
    width: min(100vw - 20px, 1180px);
    padding-top: 20px;
    padding-bottom: 84px;
  }

  h1 {
    font-size: 25px;
  }

  .summary-grid,
  .form-grid,
  .detail-grid,
  .admin-grid,
  .api-settings-form,
  .inline-form,
  .panel-inline-form,
  .service-inline-form,
  .set-item {
    grid-template-columns: 1fr;
  }

  .form-section,
  .optional-section summary {
    padding: 16px;
  }

  .optional-grid {
    padding: 0 16px 16px;
  }

  .form-section-header {
    display: grid;
  }

  .toolbar,
  .admin-panel,
  .admin-section,
  .form-panel {
    box-shadow: none;
  }

  .filters,
  .title-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .filters .button,
  .title-actions .button,
  .title-actions form,
  .title-actions button {
    width: 100%;
  }

  .orders-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .orders-table {
    display: block;
    min-width: 0;
  }

  .orders-table colgroup,
  .orders-table thead {
    display: none;
  }

  .orders-table tbody {
    display: grid;
    gap: 12px;
  }

  .orders-table tr {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .orders-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 11px 13px;
    white-space: normal;
    word-break: break-word;
  }

  .orders-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .orders-table .empty {
    display: block;
    text-align: center;
  }

  .orders-table .empty::before {
    content: "";
  }

  .orders-table .service-cell,
  .orders-table .url-cell {
    max-width: none;
    white-space: normal;
  }

  .orders-table .progress-cell {
    min-width: 0;
  }

  .orders-table .row-actions {
    justify-content: flex-start;
  }

  .view-tabs {
    overflow-x: auto;
  }

  .view-tabs a {
    flex: 1;
    justify-content: center;
  }

  .set-summary-card summary,
  .set-breakdown-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .set-summary-side {
    justify-content: start;
  }

  .service-overview-grid {
    grid-template-columns: 1fr;
  }

  .service-chip span {
    white-space: normal;
  }

  .set-item {
    align-items: stretch;
    padding: 14px;
  }

  .set-item input,
  .set-item select {
    width: 100%;
  }

  .set-item .button,
  .split-actions .button,
  .split-actions .form-checkbox {
    width: 100%;
  }

  .mobile-submit-panel {
    display: block;
    margin-top: 14px;
  }

  .mobile-submit-panel .button {
    width: 100%;
    min-height: 52px;
  }

  .form-panel > .actions .button {
    flex: 1 1 140px;
    justify-content: center;
  }

  .split-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-checkbox {
    margin-right: 0;
  }
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 18px;
}
