:root {
  --ink: #17212f;
  --muted: #657184;
  --line: #d9e0ea;
  --paper: #fff;
  --soft: #f4f7fb;
  --navy: #203854;
  --green: #00b900;
  --teal: #28a99e;
  --amber: #f2a33a;
  --red: #d94854;
  --blue: #4267c9;
  --shadow: 0 12px 30px rgba(23, 33, 47, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f7;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: #132238;
  color: #fff;
  padding: 24px 18px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green);
  font-weight: 800;
}

.brand strong {
  display: block;
}

.brand span {
  color: #b7c4d6;
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-section {
  margin: 12px 0 2px;
  color: #91a5bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav a {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #dbe6f4;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.content {
  padding: 26px;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.lead {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.environment-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #c9d9f4;
  border-radius: 8px;
  color: #21487f;
  background: #eef5ff;
  font-size: 13px;
  line-height: 1.45;
}

.environment-status strong {
  font-weight: 900;
}

.environment-status span {
  color: #48627f;
}

.environment-status a {
  color: inherit;
  font-weight: 800;
}

.environment-status.production {
  border-color: #b8e7d3;
  color: #0d6b48;
  background: #edfbf5;
}

.environment-status.production span {
  color: #3b705c;
}

.environment-status.local,
.environment-status.temporary,
.environment-status.direct {
  border-color: #f3d8a2;
  color: #85560d;
  background: #fff8e8;
}

.environment-status.local span,
.environment-status.temporary span,
.environment-status.direct span {
  color: #7b6440;
}

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

.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.store-status {
  margin: -4px 0 16px;
  border: 1px solid #b9ece7;
  border-radius: 8px;
  padding: 10px 12px;
  color: #0b6f66;
  background: #ecfbf9;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.store-status span {
  color: #3a5f5b;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 16px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr);
  gap: 12px;
  align-items: end;
}

.form-grid.compact {
  grid-template-columns: 1fr 1fr;
}

.staff-schedule-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.schedule-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auto-category-note {
  min-height: 40px;
  border: 1px solid #dbe7f3;
  border-radius: 7px;
  padding: 8px 10px;
  background: #eef7ff;
  color: var(--ink);
  display: grid;
  gap: 2px;
}

.auto-category-note span,
.auto-category-note small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.auto-category-note strong {
  font-size: 14px;
  line-height: 1.2;
}

.customer-search-field {
  position: relative;
}

.customer-search-results {
  display: none;
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 40, 70, .16);
}

.customer-search-results.is-open {
  display: grid;
}

.customer-result {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.customer-result:hover {
  background: #eef7ff;
}

.customer-result span,
.customer-result-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-result-empty {
  padding: 12px;
}

.quick-customer-create {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfe;
}

.quick-customer-create summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--blue);
}

.quick-customer-create[open] summary {
  margin-bottom: 10px;
}

.quick-customer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.vehicle-status-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.vehicle-status-control .select {
  max-width: 120px;
}

.customer-management-grid {
  grid-template-columns: minmax(300px, .45fr) minmax(0, 1fr);
}

.customer-management-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.customer-management-create {
  margin: 12px 16px;
}

.customer-management-results {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.customer-management-result {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.customer-management-result:hover,
.customer-management-result.active {
  background: #eef7ff;
}

.customer-management-result span,
.customer-management-result small,
.customer-vehicle-head span,
.managed-vehicle-title span {
  color: var(--muted);
  font-size: 12px;
}

.customer-vehicle-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.customer-vehicle-head strong,
.customer-vehicle-head span {
  display: block;
}

.customer-vehicle-add {
  margin: 12px 16px;
}

.managed-vehicle-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.managed-vehicle-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.managed-vehicle-title {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.managed-vehicle-title strong,
.managed-vehicle-title span {
  display: block;
}

.datetime-trigger {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 700;
}

.datetime-trigger:hover {
  border-color: #86c5ee;
  background: #f7fbff;
}

.datetime-select-pair {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(94px, .45fr);
  gap: 8px;
}

.datetime-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(19, 34, 56, .42);
}

.datetime-picker[hidden] {
  display: none;
}

.datetime-picker-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(19, 34, 56, .25);
  display: grid;
  gap: 12px;
}

.datetime-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.datetime-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time-choice {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy);
  background: #f7fafc;
  font-weight: 800;
}

.time-choice.is-selected {
  color: #fff;
  border-color: #0c72bd;
  background: #0c72bd;
}

.staff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  min-height: 58px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.panel-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.reservation-search-guide {
  align-self: center;
  min-width: 210px;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f4faff;
  color: var(--ink);
}

.reservation-search-guide strong,
.reservation-search-guide span {
  display: block;
  line-height: 1.35;
}

.reservation-search-guide strong {
  font-size: 12px;
}

.reservation-search-guide span {
  color: var(--muted);
  font-size: 11px;
}

.panel-divider {
  border-top: 1px solid var(--line);
}

.reservation-workflow-panel {
  margin-bottom: 16px;
}

.reservation-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.workflow-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 108px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow-step.attention {
  border-color: #ffd39a;
  background: #fffaf1;
}

.workflow-step.danger {
  border-color: #ffc8cf;
  background: #fff5f6;
}

.workflow-step.active {
  border-color: #b9dcf5;
  background: #f3f9ff;
}

.workflow-step.done {
  border-color: #b9ece7;
  background: #f4fbfa;
}

.workflow-step button {
  grid-column: 2 / -1;
  justify-self: start;
}

.workflow-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.workflow-step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workflow-count {
  min-width: 34px;
  text-align: right;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.compact-card {
  padding: 10px;
}

.compact-head {
  padding-top: 12px;
}

.card-new {
  border-color: #a9e8df;
  box-shadow: 0 0 0 3px rgba(40, 169, 158, .12);
}

.status-card {
  border-color: #b9ece7;
  background: #f0fbfa;
}

.dashboard-alert-card {
  border-color: #ffc2c2;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.daily-operation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.daily-operation-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 9px;
  align-items: start;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.daily-operation-step:hover {
  border-color: #a9d7ef;
  background: #f5fbff;
}

.daily-operation-step > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.daily-operation-step strong,
.daily-operation-step p,
.daily-operation-step small {
  overflow-wrap: anywhere;
}

.daily-operation-step strong {
  display: block;
  color: var(--ink);
}

.daily-operation-step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.daily-operation-step small {
  grid-column: 2;
  color: #2276a9;
  font-weight: 800;
}

.daily-operation-step.ok > span {
  background: #009b63;
}

.daily-operation-step.todo > span {
  background: #d98200;
}

.daily-operation-step.alert {
  border-color: #ffc2c2;
  background: #fff7f7;
}

.daily-operation-step.alert > span {
  background: #dc2626;
}

.dashboard-quick-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #d7e6f3;
  border-radius: 8px;
  background: #f8fbfe;
}

.dashboard-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-quick-head strong {
  color: var(--ink);
}

.dashboard-quick-head span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-quick-link {
  display: grid;
  gap: 3px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.dashboard-quick-link:hover {
  border-color: #a9d7ef;
  background: #f5fbff;
}

.dashboard-quick-link strong {
  color: var(--ink);
}

.dashboard-quick-link span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-quick-link.ok {
  border-color: #bdebdc;
  background: #f3fbf7;
}

.dashboard-quick-link.todo {
  border-color: #ffdba8;
  background: #fffaf0;
}

.dashboard-quick-link.alert {
  border-color: #ffc2c2;
  background: #fff7f7;
}

.maintenance-card {
  display: grid;
  gap: 10px;
}

.maintenance-urgent {
  border-color: #ffd39a;
  background: #fffaf1;
}

.maintenance-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.maintenance-facts div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.maintenance-facts span,
.maintenance-facts strong {
  display: block;
}

.maintenance-facts span {
  color: var(--muted);
  font-size: 11px;
}

.maintenance-facts strong {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
}

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card h3 {
  margin: 0;
  font-size: 15px;
}

.card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

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

.inline-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.table-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.table-filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.settings-check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.settings-check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.admin-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.production-shortcuts {
  margin-top: -4px;
}

.line-url-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.line-url-card-wide {
  grid-column: 1 / -1;
}

.line-url-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d7e6f3;
  border-radius: 8px;
  background: #f7fbff;
}

.line-url-card.ok {
  border-color: #bdebdc;
  background: #f3fbf7;
}

.line-url-card.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.line-url-card.todo {
  border-color: #ffc8c8;
  background: #fff7f7;
}

.line-url-card strong {
  color: var(--ink);
  font-size: 13px;
}

.line-url-card code {
  display: block;
  min-height: 34px;
  padding: 8px;
  border-radius: 6px;
  background: #eef6fc;
  color: #17395c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.line-url-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.line-url-operation-guide {
  border-color: #cfe4f5;
  background: #f4faff;
}

.line-url-operation-guide code {
  background: #fff;
  color: var(--ink);
}

.line-url-operation-guide b {
  color: var(--ink);
}

.line-url-current b {
  color: var(--ink);
}

.line-url-role-guide {
  background: #fff;
}

.line-url-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.line-url-role-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfe;
}

.line-url-role-grid span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.line-url-role-grid p {
  margin-top: 5px;
}

.settings-grid {
  align-items: start;
}

.settings-left-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.line-setup-guide {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.line-device-checklist {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbff;
}

.line-device-checklist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.line-device-checklist-head strong {
  color: var(--ink);
}

.line-device-checklist-head p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.line-device-checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.line-device-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.line-device-step:hover {
  border-color: #a9d7ef;
  background: #f5fbff;
}

.line-device-step > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: #d63a4d;
  font-size: 12px;
  font-weight: 900;
}

.line-device-step.ok > span {
  background: #009b63;
}

.line-device-step.warn > span {
  background: #d98200;
}

.line-device-step strong {
  display: block;
  color: var(--ink);
}

.line-device-step p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.line-device-step small {
  color: #2276a9;
  font-weight: 800;
}

.rich-menu-device-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rich-menu-device-check > strong {
  grid-column: 1 / -1;
  color: var(--ink);
}

.rich-menu-device-check div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d7e6f3;
  border-radius: 8px;
  background: #fff;
}

.rich-menu-device-check span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
}

.rich-menu-device-check p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.line-production-readiness {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  background: #f4faff;
}

.line-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.line-readiness-head strong {
  color: var(--ink);
}

.line-readiness-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.line-readiness-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.line-readiness-item > span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 999px;
  color: #8a5208;
  background: #fff4e3;
  font-size: 11px;
  font-weight: 900;
}

.line-readiness-item.done > span {
  color: #08776c;
  background: #e9fbf9;
}

.line-readiness-item strong,
.line-readiness-item p {
  display: block;
}

.line-readiness-item strong {
  color: var(--ink);
  font-size: 13px;
}

.line-readiness-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.setup-steps div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.setup-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
}

.setup-steps p {
  margin: 2px 0 0;
  color: var(--muted);
}

.compact-steps {
  grid-template-columns: 1fr;
}

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

.backup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.backup-card.warning {
  background: #fffaf0;
  border-color: #ffdba8;
}

.backup-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
}

.backup-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.backup-history {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.backup-history div {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

.backup-history span,
.backup-history small {
  color: var(--muted);
  font-size: 12px;
}

.backup-history strong {
  overflow-wrap: anywhere;
}

.production-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.production-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.production-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 8px;
}

.production-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.production-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 4px;
}

.production-summary code {
  display: block;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #f3f8fd;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: normal;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.production-check-section {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.production-check-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.production-check-section-head strong {
  color: var(--ink);
  font-size: 16px;
}

.production-check-section-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.production-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.production-item.ok {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.production-item.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.production-item.todo {
  border-color: #ffc4cd;
  background: #fff6f7;
}

.production-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.production-item-head span {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: var(--muted);
}

.production-item.ok .production-item-head span {
  background: #009b63;
}

.production-item.warn .production-item-head span {
  background: #d98200;
}

.production-item.todo .production-item-head span {
  background: #d63a4d;
}

.production-item strong {
  color: var(--ink);
  font-size: 15px;
}

.production-item p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.7;
}

.production-item small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

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

.production-next-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.production-next-action {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.production-next-action:hover {
  border-color: #a9d7ef;
  background: #f5fbff;
}

.production-next-action strong {
  color: var(--ink);
}

.production-next-action p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.production-next-action span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  background: #009b63;
  font-size: 12px;
  font-weight: 800;
}

.production-next-action.warn span {
  background: #d98200;
}

.production-next-action.todo span {
  background: #d63a4d;
}

.production-launch-plan {
  display: grid;
  gap: 12px;
  margin: 14px 0 4px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbff;
}

.production-launch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.production-launch-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.production-launch-head p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.production-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.production-launch-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.production-launch-step > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.production-launch-step.ok {
  border-color: #bdebdc;
  background: #f3fbf7;
}

.production-launch-step.ok > span {
  background: #009b63;
}

.production-launch-step.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.production-launch-step.warn > span {
  background: #d98200;
}

.production-launch-step.todo {
  border-color: #ffc2c2;
  background: #fff7f7;
}

.production-launch-step.todo > span {
  background: #dc2626;
}

.production-launch-step strong {
  color: var(--ink);
}

.production-launch-step p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.production-launch-step small {
  color: #2276a9;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.production-tool-card-wide {
  grid-column: 1 / -1;
}

.production-tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.production-tool-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.production-tool-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.production-url-plan {
  display: grid;
  gap: 12px;
}

.production-url-status {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfe;
}

.production-url-status span {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.production-url-status strong {
  color: var(--ink);
  line-height: 1.6;
}

.production-url-status.ok {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.production-url-status.ok span {
  background: #009b63;
}

.production-url-status.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.production-url-status.warn span {
  background: #d98200;
}

.production-url-status.todo {
  border-color: #ffc4cd;
  background: #fff6f7;
}

.production-url-status.todo span {
  background: #d63a4d;
}

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

.production-url-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfe;
}

.production-url-grid small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.production-url-grid code {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: normal;
}

.production-url-mode-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.production-url-mode-guide div {
  border: 1px solid #d7e6f3;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfe;
}

.production-url-mode-guide strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.production-url-mode-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.production-url-helper {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  padding: 12px;
  background: #f7fbff;
}

.production-url-helper strong {
  color: var(--ink);
}

.production-url-helper p,
.production-url-helper small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.production-url-helper code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: normal;
}

.production-migration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.production-migration-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  padding: 12px;
}

.production-migration-grid small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.production-migration-grid strong {
  display: block;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}

.production-migration-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.vps-requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vps-requirement-grid div,
.vps-url-examples div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  padding: 12px;
}

.vps-requirement-grid small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.vps-requirement-grid strong {
  display: block;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}

.vps-requirement-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.vps-url-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.vps-url-examples span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vps-url-examples code {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: normal;
}

.line-device-mini {
  display: grid;
  gap: 8px;
}

.line-device-mini a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  background: #f8fbfe;
}

.line-device-mini a:hover {
  border-color: #a9d7ef;
  background: #f5fbff;
}

.line-device-mini strong {
  color: var(--ink);
}

.line-device-mini span {
  color: var(--muted);
  line-height: 1.5;
}

.db-migration-plan,
.db-schema-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.db-migration-plan div,
.db-schema-summary div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
}

.db-migration-plan small,
.db-schema-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.db-migration-plan strong,
.db-schema-summary strong {
  color: var(--ink);
}

.db-migration-plan p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.db-storage-status {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.db-storage-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .75fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid #bdebdc;
  border-radius: 8px;
  padding: 14px;
  background: #f2fbf7;
}

.db-storage-card.database {
  border-color: #b9d8ff;
  background: #f4f8ff;
}

.db-storage-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  background: #009b63;
  font-size: 12px;
  font-weight: 800;
}

.db-storage-card.database span {
  background: #1f66d1;
}

.db-storage-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.db-storage-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.db-env-grid div {
  display: grid;
  gap: 4px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.db-env-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.db-env-grid b {
  color: var(--ink);
}

.db-switch-note {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.db-switch-note strong {
  color: var(--ink);
}

.db-switch-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.db-readiness-guide {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.db-readiness-head {
  display: grid;
  gap: 4px;
}

.db-readiness-head strong {
  color: var(--ink);
}

.db-readiness-head span {
  color: var(--muted);
  line-height: 1.6;
}

.db-readiness-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.db-readiness-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.db-readiness-list span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #d98200;
  font-size: 12px;
  font-weight: 900;
}

.db-readiness-list .ok span {
  background: #009b63;
}

.db-readiness-list strong {
  align-self: center;
  color: var(--ink);
}

.db-readiness-list p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.db-action-groups {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.db-action-groups > div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfe;
}

.db-action-groups strong {
  color: var(--ink);
  font-size: 13px;
}

.db-action-groups .actions {
  margin: 0;
}

.db-safety-status {
  min-height: 0;
}

.db-safety-card {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e6f3;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.db-safety-card.running {
  background: #f7fbff;
}

.db-safety-card.ok {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.db-safety-card.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.db-safety-card strong {
  color: var(--ink);
}

.db-safety-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.db-safety-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.db-safety-result-grid div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
}

.db-safety-result-grid span,
.db-safety-result-grid b {
  display: block;
}

.db-safety-result-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.db-safety-result-grid b {
  margin-top: 4px;
  color: var(--ink);
}

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

.test-checklist-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.test-checklist-summary small,
.test-checklist-summary span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.test-checklist-summary strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  margin: 4px 0;
}

.test-checklist-summary .line-focus {
  border-color: #cfe4f5;
  background: #f7fbff;
}

.test-checklist-summary .line-focus strong {
  color: var(--blue);
}

.test-line-guide {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbff;
}

.test-line-guide-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.test-line-guide-head strong {
  color: var(--ink);
}

.test-line-guide-head p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.test-line-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-line-guide-actions .btn {
  min-height: 38px;
}

.test-line-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.test-line-guide-list div {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.test-line-guide-list div.ok,
.test-line-guide-list div.skip {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.test-line-guide-list div.concern {
  border-color: #ffdba8;
  background: #fffaf0;
}

.test-line-guide-list span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.test-line-guide-list strong {
  color: var(--ink);
  font-size: 13px;
}

.test-line-guide-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.test-checklist-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.test-checklist-toolbar label {
  max-width: 260px;
}

.test-checklist {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.test-checklist-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.test-checklist-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfe;
}

.test-checklist-group-head strong {
  color: var(--ink);
  font-size: 16px;
}

.test-checklist-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.test-checklist-items {
  display: grid;
}

.test-checklist-item {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 180px) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.test-checklist-item:last-child {
  border-bottom: 0;
}

.test-checklist-item.ok {
  background: #f2fbf7;
}

.test-checklist-item.concern {
  background: #fffaf0;
}

.test-checklist-item.skip {
  background: #f7f9fb;
}

.test-checklist-item-main {
  display: grid;
  gap: 7px;
}

.test-checklist-item-main strong {
  color: var(--ink);
  line-height: 1.6;
}

.test-checklist-status {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-width: 62px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #edf3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.test-checklist-item.ok .test-checklist-status {
  background: #d9f5e7;
  color: #00794f;
}

.test-checklist-item.concern .test-checklist-status {
  background: #ffecc7;
  color: #9a5a00;
}

.test-checklist-item.skip .test-checklist-status {
  background: #e8edf2;
  color: #5b6b7a;
}

.compact-head {
  margin-bottom: 12px;
}

.test-issue-form {
  display: grid;
  grid-template-columns: 140px 140px minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.test-issues {
  display: grid;
  gap: 10px;
}

.test-issue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.test-issue-card.done {
  background: #f7f9fb;
  opacity: 0.78;
}

.test-issue-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.6;
}

.test-issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.test-issue-meta span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.daily-guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.daily-guide-card.primary {
  border-color: #9bd5ff;
  background: #f1f9ff;
}

.daily-guide-card span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e9f2fb;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.daily-guide-card h3,
.daily-guide-notes h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
}

.daily-guide-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.75;
}

.daily-guide-card li + li {
  margin-top: 6px;
}

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

.daily-guide-notes section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfe;
  padding: 16px;
}

.daily-guide-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

#maintenanceAutomationStatus {
  display: grid;
  gap: 4px;
}

#maintenanceAutomationStatus span {
  color: var(--muted);
}

.database-schema-list {
  display: grid;
  gap: 8px;
}

.database-schema-list div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #f8fbfe;
}

.database-schema-list span,
.database-schema-list small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.db-preflight-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.db-preflight-summary.ok {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.db-preflight-summary.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.db-preflight-summary span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  background: #009b63;
  font-size: 12px;
  font-weight: 800;
}

.db-preflight-summary.warn span {
  background: #d98200;
}

.db-preflight-summary strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.db-preflight-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.db-issue-list,
.db-next-steps {
  display: grid;
  gap: 8px;
}

.db-issue-list div,
.db-next-steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.db-issue-list .error {
  border-color: #ffc4cd;
  background: #fff6f7;
  color: #a72f3a;
}

.db-issue-list .warn {
  border-color: #ffdba8;
  background: #fffaf0;
  color: #8a5700;
}

.db-next-steps div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.db-next-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.db-next-steps p {
  margin: 0;
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef6fc 0%, #e6f0f8 100%);
}

.login-shell {
  width: min(92vw, 460px);
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.login-brand strong {
  display: block;
}

.login-brand span {
  color: var(--muted);
  font-size: 12px;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.btn {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.green {
  background: var(--green);
}

.btn.secondary {
  color: var(--navy);
  background: #edf3fa;
}

.btn.ghost {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
}

.btn.small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.tiny-btn {
  min-height: 24px;
  margin-top: 4px;
  padding: 3px 7px;
  font-size: 11px;
}

.btn.danger {
  background: var(--red);
}

.btn.secondary-danger {
  color: #a72833;
  border: 1px solid #f2c6ca;
  background: #fff1f2;
}

.chip {
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.chip.pending, .chip.not_reserved {
  color: #8a5208;
  border-color: #ffd39a;
  background: #fff4e3;
}

.chip.confirmed, .chip.completed, .chip.linked {
  color: #08776c;
  border-color: #b9ece7;
  background: #e9fbf9;
}

.chip.change_requested, .chip.cancel_requested, .chip.expired, .chip.canceled, .chip.failed {
  color: #a72f3a;
  border-color: #ffc8cf;
  background: #fff0f2;
}

.chip.preview, .chip.received {
  color: #8a5208;
  border-color: #ffd39a;
  background: #fff4e3;
}

.chip.sent {
  color: #08776c;
  border-color: #b9ece7;
  background: #e9fbf9;
}

.chip.pack {
  color: #0b5d8e;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.chip.regular {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}

.chip.unknown {
  color: #8a5208;
  border-color: #ffd39a;
  background: #fff4e3;
}

.chip.excluded {
  color: #64748b;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.chip.new {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.stack-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.table-wrap {
  overflow: auto;
}

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

th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #536173;
  background: #f8fafc;
  font-size: 12px;
}

.row-attention td {
  background: #fff8eb;
}

.row-muted td {
  color: #7b8796;
  background: #f8fafc;
}

.table-actions {
  margin-top: 0;
}

.table-actions .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.maintenance-customer-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 130px;
}

.maintenance-gear-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy);
  background: #f7fbff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.maintenance-gear-btn:hover,
.maintenance-gear-btn.is-active {
  border-color: #9fc9eb;
  background: #e7f3ff;
}

.vehicle-inspection-edit {
  display: grid;
  grid-template-columns: 116px 62px 44px;
  gap: 4px;
  align-items: end;
  max-width: 238px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid #d7e8f8;
  border-radius: 6px;
  background: #f7fbff;
}

.maintenance-inspection-editor {
  margin-top: 8px;
}

.vehicle-inspection-edit label {
  gap: 2px;
  font-size: 10px;
}

.compact-input,
.compact-select {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 11px;
}

.vehicle-inspection-edit .btn.small {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.vehicle-inspection-edit .muted {
  grid-column: 1 / -1;
  font-size: 10px;
}

.calendar {
  overflow: auto;
}

.month-calendar {
  min-width: 900px;
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  grid-auto-rows: auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.month-weekday {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #536173;
  background: #f5f7fa;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.month-weekday:first-child {
  color: #c82f3d;
}

.month-weekday:nth-child(7) {
  color: #245cc4;
}

.month-day {
  min-height: 118px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  align-content: start;
  z-index: 1;
}

.month-day:hover,
.month-day.is-selected {
  background: #eef8ff;
  box-shadow: inset 0 0 0 2px #86c5ee;
}

.month-day.outside {
  color: #9aa5b4;
  background: #f7f8fa;
}

.month-day.is-holiday {
  background: #fff5f6;
}

.month-day-number {
  font-weight: 800;
  font-size: 18px;
}

.holiday-label {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #ffc8cf;
  border-radius: 999px;
  padding: 2px 7px;
  color: #a72f3a;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.month-event-bar {
  align-self: start;
  min-height: 19px;
  margin-top: calc(34px + (var(--event-lane) * 22px));
  margin-left: 6px;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.month-event-bar.single-day {
  justify-self: start;
  width: fit-content;
  max-width: calc(100% - 12px);
}

.month-event-bar.multi-day {
  justify-self: stretch;
  border-radius: 4px;
}

.month-event-bar.pending {
  opacity: .88;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.month-event-bar.change_requested,
.month-event-bar.cancel_requested {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #d33b4a, 0 1px 0 rgba(0, 0, 0, .08);
}

.month-event-bar.change_requested {
  background: #b35c00 !important;
}

.month-event-bar.cancel_requested {
  background: #c62f3d !important;
}

.month-events {
  display: grid;
  gap: 3px;
  overflow: hidden;
}

.month-event {
  min-height: 20px;
  overflow: hidden;
  border-radius: 3px;
  padding: 2px 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.month-event.multi-day {
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 0;
}

.month-event.span-start {
  margin-left: 0;
  border-radius: 3px 0 0 3px;
}

.month-event.span-end {
  margin-right: 0;
  border-radius: 0 3px 3px 0;
}

.month-event.span-start.span-end {
  border-radius: 3px;
}

.month-event.span-middle {
  color: transparent;
}

.month-event.pending {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .08);
}

.month-more {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.staff-red {
  background: #d91f4c;
}

.staff-green {
  background: #2fb10f;
}

.staff-purple {
  background: #8232a8;
}

.day-schedule-item {
  border: 1px solid var(--line);
  border-left: 8px solid #8232a8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.day-schedule-item.change_requested {
  border-color: #ffd39a;
  background: #fffaf1;
}

.day-schedule-item.cancel_requested {
  border-color: #ffc8cf;
  background: #fff5f6;
}

.day-timeline {
  padding: 0 14px 14px;
}

.continuing-events {
  display: grid;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.timeline-time {
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-slot {
  min-height: 64px;
  padding: 7px 0 7px 10px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 7px;
  align-content: start;
}

.timeline-slot:empty {
  background-image: linear-gradient(90deg, transparent 0, transparent 10px, rgba(217, 224, 234, .55) 10px, rgba(217, 224, 234, .55) 11px, transparent 11px);
  background-size: 100% 100%;
}

.day-schedule-item.staff-red {
  border-left-color: #d91f4c;
  background: #fff;
}

.day-schedule-item.staff-green {
  border-left-color: #2fb10f;
  background: #fff;
}

.day-schedule-item.staff-purple {
  border-left-color: #8232a8;
  background: #fff;
}

.day-schedule-item strong,
.day-schedule-item span {
  display: block;
}

.day-schedule-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.message-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 180px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
  line-height: 1.7;
}

.message-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.message-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.message-summary-card {
  display: inline-flex;
  flex-direction: column;
  align-items: baseline;
  gap: 1px;
  min-width: 112px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.message-summary-card.active {
  border-color: #8ec7f3;
  background: #eff8ff;
  color: #0b4f82;
}

.message-summary-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.message-summary-card span {
  font-weight: 800;
}

.message-device-check,
.message-send-guide {
  display: grid;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 14px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  background: #f7fbff;
}

.message-device-check {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.message-device-check > strong {
  grid-column: 1 / -1;
  color: var(--ink);
}

.message-device-check div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.message-device-check span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.message-device-check p,
.message-send-guide span {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.message-send-guide {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 0 0 12px;
}

.message-send-guide strong {
  color: var(--ink);
}

.message-send-guide.warn {
  border-color: #ffdba8;
  background: #fffaf0;
}

.message-send-guide.ready {
  border-color: #bdebdc;
  background: #f2fbf7;
}

.message-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  white-space: normal;
}

.message-preview > .notice {
  grid-column: 1 / -1;
}

.message-card + .message-card {
  margin-top: 0;
}

.message-card-preview {
  border-left-color: #f59e0b;
}

.message-card-failed {
  border-left-color: #e11d48;
  background: #fff8f9;
}

.message-card-sent {
  border-left-color: #0f766e;
}

.message-card-main {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.message-next-action {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid #dbe8f5;
  background: #f4f9fe;
}

.message-next-action strong {
  color: var(--ink);
  font-size: 14px;
}

.message-next-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.message-next-action.preview {
  border-color: #f7cf8a;
  background: #fff9eb;
}

.message-warning {
  border-color: #f7cf8a;
  background: #fff9eb;
}

.message-next-action.failed {
  border-color: #ffb7c2;
  background: #fff3f5;
}

.message-next-action.sent {
  border-color: #abe1d4;
  background: #f1fbf7;
}

.message-subject {
  margin-bottom: 6px;
  color: #082f56;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.message-title-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.message-card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.message-recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.message-recipient-grid span {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.message-recipient-grid strong {
  color: var(--muted);
  font-size: 11px;
}

.message-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.small-search {
  min-width: 220px;
}

.message-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.message-details summary {
  color: #0b5d8e;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.message-error {
  background: #fff0f2;
  color: #9f1239;
}

.message-body-preview {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.65;
  white-space: pre-wrap;
}

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

.line-chat-list {
  display: grid;
  gap: 10px;
}

.line-chat-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.line-chat-thread-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.line-chat-thread {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.line-chat-thread.active {
  border-color: #8ec7f3;
  background: #eff8ff;
}

.line-chat-thread-title {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
}

.line-chat-thread-preview {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-chat-thread-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.line-chat-thread-meta strong {
  color: #9f1239;
}

.line-chat-conversation {
  display: grid;
  gap: 10px;
}

.line-chat-conversation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.line-chat-conversation-head strong {
  color: var(--ink);
}

.line-chat-conversation-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.line-chat-message-list {
  display: grid;
  gap: 10px;
}

.line-chat-card p {
  white-space: pre-wrap;
}

.line-chat-action-read {
  border: 1px solid #7dd3fc;
  background: #0284c7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
}

.line-chat-action-done {
  border: 1px solid #86efac;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.22);
}

.line-chat-action-read:hover,
.line-chat-action-done:hover {
  filter: brightness(0.96);
}

.line-chat-reply {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.line-chat-reply-text {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  line-height: 1.6;
}

.line-chat-attachments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.line-chat-attachments a {
  display: block;
  width: min(220px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.line-chat-attachments img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.line-chat-image-input {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.line-chat-image-input input {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 860px) {
  .line-chat-layout {
    grid-template-columns: 1fr;
  }

  .line-chat-thread-list {
    max-height: 260px;
    padding-right: 0;
  }
}

.message-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.maintenance-send-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.maintenance-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.maintenance-summary-card.primary {
  border-color: #9dd8ff;
  background: #eef8ff;
}

.maintenance-summary-card span,
.maintenance-summary-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.maintenance-summary-card span {
  font-size: 13px;
}

.maintenance-summary-card strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
}

.maintenance-summary-card small {
  font-size: 12px;
}

.line-link-qr {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.qr-box {
  width: 150px;
  aspect-ratio: 1;
  border: 8px solid #fff;
  outline: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-link-qr p {
  word-break: break-all;
  color: var(--muted);
}

.line-registration-url {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.line-registration-url p {
  margin: 6px 0 8px;
}

.link-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  background: #fbfcfe;
}

.link-candidate span,
.link-candidate small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.linked-line-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 0;
}

.linked-line-summary {
  margin: 8px 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.linked-customer-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.line-link-check {
  align-self: flex-start;
  margin-top: 2px;
}

.check-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.message-body {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font: inherit;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.color-input {
  min-height: 42px;
  padding: 4px;
}

.small-select {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

.setting-list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.setting-list-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.selected-holiday-date {
  display: grid;
  gap: 3px;
  border: 1px solid #b9d7ee;
  border-radius: 8px;
  padding: 10px;
  background: #f1f8fd;
}

.selected-holiday-date span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.selected-holiday-date strong {
  font-size: 18px;
}

.holiday-mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.holiday-mini-weekday {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f5f7fa;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.holiday-mini-day {
  min-height: 52px;
  display: grid;
  align-content: start;
  gap: 2px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.holiday-mini-day.outside {
  color: #9aa5b4;
  background: #f7f8fa;
}

.holiday-mini-day.is-holiday {
  background: #fff5f6;
}

.holiday-mini-day.is-selected {
  box-shadow: inset 0 0 0 2px #0c72bd;
  background: #eef8ff;
}

.holiday-mini-day span {
  font-size: 13px;
  font-weight: 800;
}

.holiday-mini-day small {
  overflow: hidden;
  color: #a72f3a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekday-checks {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.weekday-checks label {
  min-height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}

.settings-saved {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-right: 8px;
  color: #08776c;
  font-weight: 800;
  transition: opacity .9s ease, transform .9s ease;
  animation: savedNoticeIn .22s ease-out;
}

.settings-saved.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes savedNoticeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 4px;
}

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

.template-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.template-help span {
  border: 1px solid #b9d7ee;
  border-radius: 7px;
  padding: 5px 8px;
  color: #0b477a;
  background: #f1f8fd;
  font-size: 12px;
  font-weight: 800;
}

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

.template-grid textarea {
  min-height: 220px;
  margin-top: 6px;
  resize: vertical;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 36px rgba(23, 33, 47, .18);
  transform: translateX(104%);
  transition: transform .18s ease;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.detail-head {
  min-height: 70px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-head h2 {
  margin: 0;
  font-size: 18px;
}

.detail-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-body {
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.detail-section dl {
  margin: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 10px;
  font-size: 13px;
}

.detail-section dt {
  color: var(--muted);
}

.detail-section dd {
  margin: 0;
}

.customer-context-grid {
  display: grid;
  gap: 12px;
}

.customer-context-grid h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.context-row {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.context-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.context-row strong,
.context-row span,
.context-row small {
  display: block;
}

.context-row span,
.context-row small {
  color: var(--muted);
  font-size: 12px;
}

.context-row .chip {
  display: inline-flex;
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
}

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

.phone-shell {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #edf6fc;
  border-left: 1px solid #d6e8f5;
  border-right: 1px solid #d6e8f5;
}

.phone-head {
  padding: 0;
  color: #0c315f;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.phone-head h1 {
  font-size: 20px;
}

.customer-brand-image {
  display: block;
  width: 100%;
  height: 154px;
  object-fit: cover;
  object-position: 58% 45%;
  background: #fff;
}

.customer-brand-copy {
  margin: 0;
  padding: 9px 14px 11px;
  color: #0c315f;
  background: #f6fbff;
  border-top: 1px solid #d9ecfb;
  font-size: 13px;
  font-weight: 800;
}

.customer-brand-strip {
  height: 5px;
  background: linear-gradient(90deg, #072954 0%, #0c72bd 52%, #27a8e3 100%);
}

.phone-tabs {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.phone-tabs button {
  min-height: 48px;
  color: #55708c;
  background: #fff;
  border-bottom: 3px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.phone-tabs button.active {
  color: #0c5c9c;
  border-bottom-color: #0c72bd;
}

.phone-content {
  padding: 14px 14px 128px;
  display: grid;
  gap: 12px;
}

.phone-shell .card {
  border-color: #d6e8f5;
  box-shadow: 0 10px 24px rgba(12, 49, 95, .08);
}

.phone-shell .status-card {
  border-color: #b9dcf5;
  background: #f3faff;
}

.phone-shell .status-card:first-child {
  position: relative;
  overflow: hidden;
  border-color: #7fbde8;
  background: linear-gradient(135deg, #ffffff 0%, #edf8ff 54%, #dff2ff 100%);
  box-shadow: 0 14px 30px rgba(12, 49, 95, .14);
}

.phone-shell .status-card:first-child::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(#072954, #0c72bd);
}

.phone-shell .status-card:first-child h3 {
  color: #072954;
  font-size: 17px;
}

.phone-shell .btn.green {
  background: #0c72bd;
  box-shadow: 0 8px 18px rgba(12, 114, 189, .25);
}

.phone-shell .btn.secondary {
  color: #0c315f;
  background: #e6f1fb;
}

.phone-shell .chip.confirmed,
.phone-shell .chip.completed,
.phone-shell .chip.linked {
  color: #0c5c9c;
  border-color: #b9dcf5;
  background: #eff8ff;
}

.phone-shell .maintenance-urgent {
  border-color: #b9dcf5;
  background: #f8fcff;
}

.vehicle-overview-card {
  display: grid;
  gap: 12px;
}

.vehicle-overview-card h3 {
  font-size: 18px;
}

.vehicle-overview-card p {
  margin-top: 4px;
}

.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-facts div {
  min-height: 62px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.vehicle-facts span,
.vehicle-facts strong {
  display: block;
}

.vehicle-facts span {
  color: #657184;
  font-size: 11px;
  font-weight: 800;
}

.vehicle-facts strong {
  margin-top: 4px;
  color: #17212f;
  font-size: 13px;
  line-height: 1.35;
}

.insurance-alert-card,
.insurance-card-attention {
  border-color: #ffb4b4;
  background: #fff4f4;
}

.insurance-alert-card h3,
.insurance-card-attention h3 {
  color: #9f1239;
}

.insurance-inline-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #ffc2c2;
  border-radius: 8px;
  padding: 10px;
  color: #9f1239;
  background: #fff5f5;
  font-weight: 800;
}

.insurance-facts strong {
  font-size: 12px;
}

.home-focus-card {
  border-color: #9bd2ff;
  background: linear-gradient(180deg, #eef8ff, #ffffff);
}

.home-focus-card h3 {
  color: #003d73;
}

.home-focus-card.insurance-focus {
  border-color: #ffb4b4;
  background: linear-gradient(180deg, #fff1f1, #ffffff);
}

.home-focus-card.insurance-focus h3 {
  color: #9f1239;
}

.customer-section-title {
  padding: 4px 2px 0;
}

.customer-section-title h3 {
  margin: 0;
  color: #0c315f;
  font-size: 16px;
}

.customer-section-title p {
  margin: 3px 0 0;
  color: #657184;
  font-size: 12px;
}

.phone-shell .notice {
  color: #173f68;
  background: #e8f3fc;
}

.emergency-closed-card {
  display: grid;
  gap: 12px;
  border-color: #ffd39a !important;
  background: #fff8ed;
}

.emergency-closed-card h3 {
  color: #7c3f00;
  font-size: 17px;
}

.emergency-closed-card p {
  margin-top: 5px;
  color: #5d4630;
}

.emergency-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: #7c3f00;
  background: #ffe4bd;
  font-size: 11px;
  font-weight: 900;
}

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

.emergency-actions .btn {
  min-height: 42px;
  justify-content: center;
  text-align: center;
}

.emergency-insurance-note {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #173f68;
  background: #e8f3fc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.reservation-complete-card {
  display: grid;
  gap: 12px;
  border-color: #9bd2f3 !important;
  background: linear-gradient(135deg, #fff 0%, #f1f9ff 100%);
}

.reservation-complete-card h3 {
  color: #072954;
  font-size: 18px;
}

.complete-mark {
  width: 52px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #0c72bd;
  font-size: 12px;
  font-weight: 900;
}

.reservation-summary {
  display: grid;
  gap: 8px;
}

.reservation-summary div {
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.reservation-summary span,
.reservation-summary strong {
  display: block;
}

.reservation-summary span {
  color: #657184;
  font-size: 11px;
  font-weight: 800;
}

.reservation-summary strong {
  margin-top: 3px;
  color: #17212f;
  font-size: 14px;
  line-height: 1.35;
}

.reservation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.reservation-steps div {
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 8px 5px;
  color: #657184;
  background: #fff;
  text-align: center;
}

.reservation-steps strong {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #55708c;
  background: #e8f3fc;
  font-size: 12px;
}

.reservation-steps span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.reservation-steps .done,
.reservation-steps .active {
  color: #0c315f;
  border-color: #9bd2f3;
  background: #f3faff;
}

.reservation-steps .done strong,
.reservation-steps .active strong {
  color: #fff;
  background: #0c72bd;
}

.customer-date-selected {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  color: #0c315f;
  background: #fff;
  font-weight: 900;
  text-align: left;
  padding: 0 10px;
}

.customer-date-picker {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.customer-date-picker-head {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 8px;
}

.customer-date-picker-head strong {
  text-align: center;
  color: #072954;
  font-size: 14px;
}

.customer-date-picker-head button {
  min-height: 32px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  color: #0c315f;
  background: #f3faff;
  font-size: 12px;
  font-weight: 900;
}

.customer-date-weekdays,
.customer-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.customer-holiday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.customer-date-weekdays span {
  color: #657184;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.customer-date-cell {
  min-height: 45px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  color: #0c315f;
  background: #fff;
  text-align: center;
}

.customer-date-cell strong,
.customer-date-cell span {
  display: block;
}

.customer-date-cell strong {
  font-size: 13px;
}

.customer-date-cell span {
  margin-top: 2px;
  color: #9a5a00;
  font-size: 9px;
  font-weight: 900;
}

.customer-date-cell.selected {
  color: #fff;
  border-color: #0c72bd;
  background: #0c72bd;
}

.customer-date-cell.selected span {
  color: rgba(255, 255, 255, .85);
}

.customer-date-cell.has-reservation {
  color: #7c3f00;
  border-color: #ffbe73;
  background: #fff4df;
}

.customer-date-cell.has-reservation span {
  color: #b56400;
}

.customer-date-cell.has-reservation.selected {
  color: #fff;
  border-color: #e17a00;
  background: #e17a00;
}

.customer-date-cell.has-reservation.selected span {
  color: rgba(255, 255, 255, .9);
}

.customer-date-cell.disabled {
  color: #9aa8b8;
  border-color: #e6eef6;
  background: #f3f6f9;
}

.customer-date-cell.has-reservation.disabled {
  color: #9a6a28;
  border-color: #efd0a6;
  background: #fff7ea;
}

.customer-date-cell.blank {
  min-height: 45px;
  border: 0;
  background: transparent;
}

.customer-holiday-calendar-card {
  display: grid;
  gap: 10px;
}

.customer-holiday-cell {
  min-height: 50px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  color: #0c315f;
  background: #fff;
  padding: 6px;
}

.customer-holiday-cell strong,
.customer-holiday-cell span {
  display: block;
}

.customer-holiday-cell strong {
  font-size: 13px;
}

.customer-holiday-cell span {
  margin-top: 4px;
  color: #c43b4e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

.customer-holiday-cell.is-closed {
  border-color: #ffc3cd;
  background: #fff1f3;
}

.customer-holiday-cell.is-past {
  color: #9aa8b8;
  border-color: #e6eef6;
  background: #f3f6f9;
}

.customer-holiday-cell.is-past span {
  color: #8b98aa;
}

.customer-holiday-cell.is-closed.is-past {
  color: #0c315f;
  border-color: #ffc3cd;
  background: #fff1f3;
}

.customer-holiday-cell.is-closed.is-past span {
  color: #c43b4e;
}

.customer-holiday-cell.is-today {
  outline: 2px solid #0c72bd;
  outline-offset: -2px;
}

.customer-holiday-cell.blank {
  min-height: 50px;
  border: 0;
  background: transparent;
}

.customer-date-help {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #657184;
  font-size: 11px;
  line-height: 1.45;
}

.customer-date-help span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid #ffbe73;
  border-radius: 3px;
  background: #fff4df;
}

.liff-bottom-menu {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, 100vw);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #f9fcff;
  box-shadow: 0 -8px 24px rgba(12, 49, 95, .13);
  z-index: 10;
}

.liff-bottom-menu button {
  min-height: 58px;
  border-right: 1px solid #d6e8f5;
  border-bottom: 1px solid #d6e8f5;
  color: #0c315f;
  background: linear-gradient(#ffffff, #f6fbff);
  font-size: 12px;
  font-weight: 800;
}

.liff-bottom-menu button:nth-child(1),
.liff-bottom-menu button:nth-child(3) {
  color: #fff;
  background: linear-gradient(135deg, #07315f, #0c72bd);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-grid button {
  min-height: 78px;
  border-radius: 8px;
  border: 1px solid #d6e8f5;
  background: linear-gradient(#ffffff, #f8fcff);
  text-align: left;
  padding: 10px;
  font-weight: 800;
  color: #0c315f;
}

.menu-grid button:first-child {
  color: #fff;
  border-color: #0c72bd;
  background: linear-gradient(135deg, #07315f, #0c72bd);
  box-shadow: 0 10px 22px rgba(12, 114, 189, .18);
}

.menu-grid button:first-child span {
  color: rgba(255, 255, 255, .82);
}

.menu-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

label {
  display: grid;
  gap: 5px;
  color: #4e5d6e;
  font-size: 12px;
  font-weight: 800;
}

.input, .select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: #fff;
}

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

.csv-text {
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

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

.mapping-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.mapping-item strong {
  display: block;
  font-size: 13px;
}

.mapping-item span {
  color: var(--muted);
  font-size: 12px;
}

.csv-ignored {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.csv-ignored summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.ignored-column-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ignored-column {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: #788394;
  background: #fff;
  font-size: 12px;
}

.slots {
  display: grid;
  gap: 8px;
}

.slot {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #b9dcf5;
  border-radius: 8px;
  padding: 9px 10px;
  color: #0c315f;
  background: #f1f8ff;
}

.reservation-time-box {
  display: grid;
  gap: 10px;
  border: 1px solid #b9dcf5;
  border-radius: 8px;
  padding: 10px;
  background: #f5fbff;
}

.reservation-service-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reservation-service-picker button {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 10px;
  color: #0c315f;
  background: #fff;
  text-align: left;
}

.reservation-service-picker button.active {
  border-color: #0c72bd;
  background: #edf7ff;
  box-shadow: inset 4px 0 0 #0c72bd;
}

.reservation-service-picker strong,
.customer-reservation-row strong {
  display: block;
  font-size: 14px;
}

.reservation-service-picker span,
.customer-reservation-row span {
  color: #657184;
  font-size: 12px;
  line-height: 1.35;
}

.customer-reservation-list {
  display: grid;
  gap: 8px;
}

.customer-reserve-owner {
  border: 1px solid #b9dcf5;
  border-radius: 8px;
  padding: 11px 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f9ff 100%);
}

.customer-reserve-owner span,
.customer-reserve-owner strong,
.customer-reserve-owner p {
  display: block;
}

.customer-reserve-owner span {
  color: #657184;
  font-size: 11px;
  font-weight: 900;
}

.customer-reserve-owner strong {
  margin-top: 2px;
  color: #072954;
  font-size: 18px;
  line-height: 1.35;
}

.customer-reserve-owner p {
  margin: 4px 0 0;
  color: #657184;
  font-size: 12px;
  line-height: 1.45;
}

.customer-reservation-list h3 {
  margin-bottom: 0;
}

.customer-reservation-card {
  display: grid;
  gap: 8px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.customer-reservation-card p {
  margin: 0;
  color: #9a5a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.customer-reservation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 4px 2px;
  background: transparent;
  text-align: left;
}

.customer-reservation-row em {
  flex: 0 0 auto;
  border: 1px solid #b9dcf5;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0c5c9c;
  background: #eff8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.coupon-main-card {
  gap: 12px;
}

.coupon-code {
  border: 1px dashed #82bde8;
  border-radius: 8px;
  padding: 12px;
  color: #07315f;
  background: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.stamp-card {
  display: grid;
  gap: 12px;
}

.stamp-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.stamp-row span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d6e8f5;
  border-radius: 999px;
  color: #7890aa;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.stamp-row span.filled {
  color: #fff;
  border-color: #0c72bd;
  background: #0c72bd;
}

.benefit-list {
  display: grid;
  gap: 8px;
}

.benefit-list button,
.contact-action {
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  padding: 11px 12px;
  color: #0c315f;
  background: #fff;
  text-align: left;
  text-decoration: none;
}

.benefit-list strong,
.benefit-list span,
.contact-action strong,
.contact-action span {
  display: block;
}

.benefit-list span,
.contact-action span {
  margin-top: 3px;
  color: #657184;
  font-size: 12px;
  line-height: 1.35;
}

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

.contact-action {
  min-height: 78px;
  display: grid;
  align-content: center;
}

.contact-action.primary {
  color: #fff;
  border-color: #0c72bd;
  background: linear-gradient(135deg, #07315f, #0c72bd);
}

.contact-action.primary span {
  color: rgba(255, 255, 255, .82);
}

.contact-info-card {
  display: grid;
  gap: 10px;
}

.announcement-card {
  display: grid;
  gap: 10px;
}

.announcement-card > p {
  margin: 0;
  color: #26384d;
  line-height: 1.75;
}

.announcement-card.is-expired {
  background: #f4f7fa;
  border-color: #d4dde8;
  box-shadow: none;
  opacity: .58;
  filter: grayscale(.35);
}

.announcement-card.is-expired h3,
.announcement-card.is-expired p {
  color: #657386;
}

.announcement-list-item {
  align-items: flex-start;
}

.announcement-list-item p {
  margin: 6px 0 0;
  color: #26384d;
  font-size: 13px;
  line-height: 1.55;
}

.announcement-editor {
  display: grid;
  gap: 12px;
}

.announcement-editor > .list {
  padding: 0;
}

.btn.wide {
  width: 100%;
}

.notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf3fa;
  color: #2d4666;
  font-size: 13px;
  line-height: 1.6;
}

.compact-notice {
  margin: 10px 0;
  padding: 8px 10px;
  font-size: 12px;
}

.rich-preview-page {
  min-height: 100vh;
  padding: 28px;
  background: #edf6fc;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}

.rich-preview-intro {
  grid-column: 1 / -1;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #0c72bd;
  font-weight: 800;
}

.line-chat-frame {
  max-width: 430px;
  border-radius: 28px;
  overflow: hidden;
  border: 10px solid #102640;
  background: #dcecf8;
  box-shadow: 0 24px 52px rgba(12, 49, 95, .24);
}

.line-chat-head {
  min-height: 72px;
  padding: 8px 12px;
  color: #0c315f;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d6e8f5;
}

.line-chat-brand {
  width: 98px;
  height: 46px;
  border: 1px solid #d6e8f5;
  border-radius: 8px;
  object-fit: cover;
  object-position: 58% 45%;
  background: #fff;
}

.line-chat-head strong,
.line-chat-head span {
  display: block;
}

.line-chat-head span {
  color: #55708c;
  font-size: 12px;
}

.line-chat-body {
  min-height: 330px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.chat-date {
  justify-self: center;
  color: #fff;
  background: rgba(0, 0, 0, .2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.chat-bubble {
  max-width: 78%;
  border-radius: 16px;
  padding: 10px 12px;
  line-height: 1.55;
  font-size: 13px;
}

.chat-bubble.shop {
  justify-self: start;
  background: #fff;
  color: #173f68;
}

.chat-bubble.user {
  justify-self: end;
  color: #fff;
  background: #0c72bd;
}

.rich-menu {
  border-top: 1px solid #d6e8f5;
  background: #fff;
  line-height: 0;
}

.rich-menu img {
  display: block;
  width: 100%;
  height: auto;
}

.rich-notes {
  display: grid;
  gap: 12px;
}

.line-rich-menu-publish {
  display: grid;
  gap: 12px;
  border: 1px solid #cfe4f5;
  border-radius: 8px;
  background: #f6fbff;
  padding: 14px;
  margin-top: 14px;
}

.line-rich-menu-publish p {
  margin: 4px 0 0;
  color: #60748a;
  font-size: 13px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .grid, .kpis, .reservation-workflow {
    grid-template-columns: 1fr;
  }

  .message-preview {
    grid-template-columns: 1fr;
  }

  .message-recipient-grid {
    grid-template-columns: 1fr;
  }

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

  .form-grid, .mapping-grid, .template-grid {
    grid-template-columns: 1fr;
  }

  .backup-grid,
  .production-grid,
  .production-next-actions,
  .production-launch-grid,
  .production-summary,
  .production-migration-grid,
  .vps-requirement-grid,
  .vps-url-examples,
  .daily-operation-flow,
  .dashboard-quick-grid,
  .line-device-checklist-grid,
  .test-line-guide-list,
  .db-readiness-list,
  .db-storage-card,
  .db-env-grid,
  .db-migration-plan,
  .db-schema-summary,
  .db-safety-result-grid,
  .production-url-grid,
  .line-url-role-grid,
  .production-url-mode-guide,
  .production-tools,
  .rich-menu-device-check,
  .message-device-check,
  .message-send-guide,
  .test-checklist-summary,
  .daily-guide-grid,
  .daily-guide-notes {
    grid-template-columns: 1fr;
  }

  .test-checklist-toolbar,
  .production-check-section-head {
    display: grid;
    align-items: start;
  }

  .test-issue-form,
  .test-checklist-item {
    grid-template-columns: 1fr;
  }

  .test-issue-card {
    grid-template-columns: 1fr;
  }

  .production-check-section-head span {
    text-align: left;
  }

  .linked-line-toolbar {
    grid-template-columns: 1fr;
  }

  .backup-history div {
    grid-template-columns: 1fr;
  }

  .line-url-checks {
    grid-template-columns: 1fr;
  }

  .schedule-form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 16px;
  }

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

  .rich-preview-page {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}
