:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #e8f1fe;
  --panel: #f8f8fb;
  --panel-2: #eef4ff;
  --text: #000000;
  --muted: #5f6b6d;
  --faint: #7b8588;
  --line: #d8dcf0;
  --line-strong: #c5d7fb;
  --accent: #3460fb;
  --accent-2: #0017c1;
  --accent-soft: #e8f1fe;
  --success: #087e76;
  --success-key: #4ac5bb;
  --warning: #765d00;
  --warning-key: #f4d25a;
  --danger: #fe3939;
  --danger-soft: #fff0f0;
  --tile-depth: 4px;
  --radius: 18px;
  --page: 980px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --visual-bottom-gap: 0px;
  --dock-bottom: calc(12px + var(--safe-bottom) + var(--visual-bottom-gap));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #e8f1fe;
  --panel: #ffffff;
  --panel-2: #f8f8fb;
  --text: #000000;
  --muted: #5f6b6d;
  --faint: #7b8588;
  --line: #d8dcf0;
  --line-strong: #c5d7fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-2);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-2);
  color: var(--text);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
}

.shell {
  width: min(100%, var(--page));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px calc(112px + var(--dock-bottom));
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-cube {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #0017c1;
  border-radius: 14px;
  background: linear-gradient(135deg, #0017c1 0%, #3460fb 100%);
  box-shadow: 0 4px 0 #00118f, 0 10px 20px rgba(0, 23, 193, 0.15);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
}

.brand small,
.brand strong {
  display: block;
  min-width: 0;
}

.brand small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  overflow: hidden;
  font-size: 23px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand em {
  display: inline-flex;
  margin-left: 6px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: middle;
}

.top-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button,
.text-button,
.primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  transition: transform 150ms var(--ease), border-color 150ms ease, background 150ms ease;
}

.icon-button {
  width: 44px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 23, 193, 0.05);
}

.text-button,
.primary-button {
  padding: 0 13px;
  font-size: 12px;
  font-weight: 880;
}

.primary-button {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

.icon-button:hover,
.text-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.icon-button:active,
.text-button:active,
.primary-button:active {
  transform: translateY(1px);
}

.icon-button svg,
.text-button svg,
.primary-button svg,
.dock svg {
  width: 18px;
  height: 18px;
}

.hero {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 14%, transparent);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: 46px;
  font-weight: 970;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 span {
  color: color-mix(in srgb, var(--text) 62%, var(--accent));
}

.hero p:last-child {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.section {
  margin-top: 32px;
  scroll-margin-top: 92px;
}

.tracker-section {
  margin-top: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head.is-compact {
  align-items: center;
  margin-bottom: 10px;
}

.tracker-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tracker-title-line .section-title {
  min-width: 0;
}

.tracker-reload-button {
  width: 34px;
  min-height: 34px;
  height: 34px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.tracker-reload-button svg {
  width: 16px;
  height: 16px;
}

.section-label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
}

.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 940;
  letter-spacing: 0;
}

.section-copy {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.tools-head {
  align-items: center;
}

.collapse-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms var(--ease);
}

.collapse-button svg {
  width: 16px;
  height: 16px;
  transition: transform 170ms var(--ease);
}

.tools-section.is-open .collapse-button {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: var(--accent-soft);
}

.tools-section.is-open .collapse-button svg {
  transform: rotate(180deg);
}

.tools-panel {
  display: grid;
}

.tile-board,
.tile-grid,
.store-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  --tile-bg: #ffffff;
  --tile-edge: #c5d7fb;
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tile-edge) 72%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tile-bg) 92%, white), var(--tile-bg));
  box-shadow: 0 var(--tile-depth) 0 color-mix(in srgb, var(--tile-edge) 78%, #ffffff), 0 10px 22px rgba(0, 23, 193, 0.09);
  transform: translateY(-1px);
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease), border-color 170ms ease;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line-strong));
  box-shadow: 0 calc(var(--tile-depth) + 1px) 0 color-mix(in srgb, var(--tile-edge) 78%, #ffffff), 0 14px 26px rgba(0, 23, 193, 0.12);
  transform: translateY(-3px);
}

.tile:active {
  box-shadow: 0 2px 0 color-mix(in srgb, var(--tile-edge) 78%, #ffffff), 0 7px 15px rgba(0, 23, 193, 0.08);
  transform: translateY(1px);
}

.tile-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
}

.tile-content {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
}

.tracker-tile {
  grid-column: span 2;
  grid-row: span 2;
  --tile-bg: #26223f;
  --tile-edge: #181134;
}

.tile-top,
.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tile-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
}

.tile h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  display: -webkit-box;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tile p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tile-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.tile-icon svg {
  width: 19px;
  height: 19px;
}

.status-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  overflow: hidden;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill.is-ready {
  border-color: color-mix(in srgb, var(--success) 42%, transparent);
  color: var(--success);
}

.tool-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--muted);
}

.search-box svg {
  width: 19px;
  height: 19px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
}

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

.filter-button {
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-button.is-active {
  border-color: transparent;
  background: var(--accent-2);
  color: #ffffff;
}

.empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 850;
}

.tracker-board {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 4px 16px rgba(0, 23, 193, 0.07);
}

.tracker-toolbar {
  display: none;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
}

.tracker-id {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.tracker-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-2);
  color: white;
}

.tracker-id strong,
.tracker-id span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-id strong {
  font-size: 14px;
}

.tracker-id span {
  margin-top: 2px;
  color: var(--faint);
  font-size: 10px;
}

.tracker-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.tracker-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}

.tracker-state.is-ready::before {
  background: var(--success);
}

.tracker-viewport {
  position: relative;
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.tracker-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%) scale(var(--tracker-scale, 0.44));
  transform-origin: top center;
}

.tracker-canvas iframe {
  width: 900px;
  height: 500px;
  border: 0;
  background: #ffffff;
  pointer-events: auto;
}

.tracker-viewport.is-interactive iframe {
  pointer-events: auto;
}

.tracker-overlay {
  position: absolute;
  inset: auto 50% 22px auto;
  display: grid;
  width: min(260px, calc(100% - 36px));
  gap: 5px;
  justify-items: center;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(16, 17, 23, 0.88);
  color: white;
  text-align: center;
  transform: translateX(50%);
}

.tracker-overlay svg {
  width: 28px;
  height: 28px;
}

.tracker-overlay strong {
  font-size: 13px;
}

.tracker-overlay span {
  color: #c8ccda;
  font-size: 10px;
  line-height: 1.45;
}

.tracker-viewport.is-interactive .tracker-overlay {
  display: none;
}

.tracker-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin: 12px 4px 2px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 38%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--warning) 9%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.tracker-note strong {
  color: var(--text);
}

.info-tile {
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--panel) 55%, #050609), 0 20px 34px rgba(0, 0, 0, 0.18);
}

.info-tile strong {
  display: block;
  color: var(--accent-2);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
}

.info-tile h3 {
  margin: 20px 0 7px;
  font-size: 16px;
}

.info-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.store-tile {
  --tile-bg: #ffffff;
  --tile-edge: #d8dcf0;
}

.logo-area {
  display: grid;
  min-height: 0;
  place-items: center;
  border-radius: 18px;
  background: var(--logo-bg, #fff);
  color: var(--logo-fg, #111);
  aspect-ratio: 1 / 0.72;
  padding: 14px;
}

.logo-area img {
  width: 100%;
  height: 100%;
  object-fit: var(--logo-fit, contain);
}

.logo-fallback {
  max-width: 100%;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}

.store-name {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 880;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-tile .status-pill {
  flex: 0 0 auto;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.54);
}

.setup-dialog {
  position: fixed;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  left: 12px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(86dvh, 820px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 28px 80px rgba(0, 23, 193, 0.18);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 8px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.dialog-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 16px;
}

.settings-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-2) 78%, transparent);
}

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

.settings-block p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.form-grid,
.shop-editor,
.service-editor,
.genre-editor {
  display: grid;
  gap: 8px;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 860;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  padding: 0 10px;
}

.field textarea {
  min-height: 74px;
  padding: 10px;
  resize: vertical;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  font-weight: 880;
  padding: 0 11px;
}

.setup-button.is-primary {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

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

.genre-editor,
.service-editor,
.shop-editor {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.service-editor {
  grid-template-columns: 30px 38px minmax(0, 1fr) auto auto auto;
  align-items: center;
}

.service-fields {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-2);
}

.drag-handle,
.square-icon-button {
  display: inline-grid;
  width: 34px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
}

.drag-handle {
  width: 30px;
  border-color: transparent;
  cursor: grab;
  touch-action: none;
}

.service-editor.is-dragging {
  border-color: var(--accent);
  opacity: 0.9;
}

.service-editor.is-hidden {
  opacity: 0.55;
}

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

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

.toast-region {
  position: fixed;
  right: 14px;
  bottom: calc(88px + var(--dock-bottom));
  left: 14px;
  z-index: 100;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.toast {
  width: min(440px, 100%);
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 18px 38px rgba(0, 23, 193, 0.14);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
  backdrop-filter: blur(18px);
}

.dock {
  position: fixed;
  right: 18px;
  bottom: var(--dock-bottom);
  left: 18px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(420px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(0, 23, 193, 0.14);
  backdrop-filter: blur(22px) saturate(1.25);
}

.dock button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
}

.dock button.is-active {
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (min-width: 760px) {
  .shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .section-title {
    font-size: 30px;
  }

  .tile h3 {
    font-size: 18px;
  }

  .info-tile strong {
    font-size: 52px;
  }

  .logo-fallback {
    font-size: 24px;
  }

  .tile-board,
  .tile-grid,
  .store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

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

  .tracker-tile {
    grid-column: span 2;
  }

  .setup-dialog {
    right: 28px;
    left: auto;
    width: min(820px, calc(100% - 56px));
  }

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

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

@media (min-width: 1100px) {
  .shell {
    padding-top: 16px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .tile-board {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .top-actions .icon-button:first-child {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .tracker-section .section-head,
  .tools-section .section-head {
    align-items: center;
    flex-direction: row;
  }

  .tracker-title-line {
    gap: 8px;
  }

  .section-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .section-actions .text-button span,
  .section-actions .primary-button span {
    display: none;
  }

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

  .service-editor {
    grid-template-columns: 28px 36px minmax(0, 1fr) 34px 34px;
  }

  .service-editor .delete-service {
    grid-column: 1 / -1;
    width: 100%;
  }

  .shop-editor {
    grid-template-columns: 1fr;
  }

  .shop-editor .wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
