:root {
  color-scheme: dark;

  --canvas: #101214;
  --surface-float: #1a1c21;
  --fill: rgba(255, 255, 255, 0.06);
  --fill-strong: rgba(255, 255, 255, 0.14);
  --accent-soft: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f6f8;
  --text-2: #b0b4bc;
  --text-3: #82868f;

  --danger: #ff8f8f;
  --danger-text: #ffb4ae;
  --danger-soft: rgba(255, 143, 143, 0.12);
  --warn: #f5c84c;

  --radius: 12px;
  --radius-btn: 10px;
  --radius-sheet: 20px;
  --control-h: 44px;
  --nav-h: 56px;
  --dur: 140ms;
  --shadow-toast: 0 8px 28px rgba(0, 0, 0, 0.5);

  --lel-bg: var(--canvas);
  --lel-surface: var(--canvas);
  --lel-surface-2: var(--surface-float);
  --lel-border: var(--hairline);
  --lel-text: var(--text);
  --lel-muted: var(--text-3);
  --lel-accent: var(--text);
  --lel-accent-strong: var(--text);
  --lel-danger: var(--danger);
  --lel-radius: var(--radius);
  --lel-nav-h: var(--nav-h);
}

* {
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

html,
body {
  height: 100%;
}

body {
  background: var(--canvas);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: none;
}

/* ------------------------------------------------------------------ shell */

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: var(--canvas);
}

/* ----------------------------------------------------------------- app bar */

.app-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 6px;
}

.app-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--text);
  color: var(--canvas);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.app-logo svg {
  width: 13px;
  height: 13px;
}

.app-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--text-2);
  border-radius: 9px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  transition: background var(--dur) ease, color var(--dur) ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ----------------------------------------------- context tabs (underlines) */

.context-tabs {
  display: flex;
  position: relative;
  margin: 4px 0 0;
  padding: 0;
}

.context-tab {
  flex: 1 1 50%;
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 8px 0 12px;
  min-height: 42px;
  transition: color var(--dur) ease;
}

.context-tab:hover {
  color: var(--text-2);
}

.context-tab.active {
  color: var(--text);
}

.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 2px;
  background: var(--text);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-tabs[data-active="WORK"] .tab-indicator {
  transform: translateX(100%);
}

/* ------------------------------------------------------------- status bar */

.status-bar {
  background: rgba(245, 200, 76, 0.05);
  border-bottom: 1px solid rgba(245, 200, 76, 0.22);
  color: var(--warn);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.status-bar::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  flex: 0 0 auto;
}

.status-bar.online-sync {
  background: rgba(74, 222, 128, 0.05);
  border-bottom-color: rgba(74, 222, 128, 0.22);
  color: #86efac;
}

/* ------------------------------------------------------------------- main */

.app-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
}

#screen-dashboard {
  overflow: hidden;
}

/* ------------------------------------------------------------- sort toggle */

.sort-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin: 12px 16px 8px;
}

.sort-btn {
  background: transparent;
  border: 0;
  color: var(--text-3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 32px;
  transition: color var(--dur) ease, background var(--dur) ease;
}

.sort-btn:hover {
  color: var(--text-2);
  background: var(--accent-soft);
}

.sort-btn.active {
  color: var(--text);
  background: transparent;
}

/* ------------------------------------------------------------------ pager */

.pager {
  flex: 1 1 auto;
  overflow: hidden;
}

.pager-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pager-track[data-active="WORK"] {
  transform: translateX(-50%);
}

.pager-track.no-anim {
  transition: none;
}

.pager-page {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding: 2px 16px 24px;
  touch-action: pan-y;
}

/* ------------------------------------------------------------- event keys */

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

.event-tile {
  --wash: 15%;
  position: relative;
  border: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    140% 130% at 12% 0%,
    color-mix(in srgb, var(--tile-color, #6b7280) var(--wash), transparent),
    transparent 62%
  );
  color: var(--text);
  min-height: 88px;
  padding: 12px 12px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: pointer;
}

@media (hover: hover) {
  .event-tile:hover {
    --wash: 22%;
  }
}

.event-tile:active {
  transform: scale(0.97);
  --wash: 34%;
}

.event-tile.is-active-long {
  --wash: 28%;
}

.tile-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tile-name::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tile-color, #6b7280);
  margin-top: 5px;
}

.event-tile.is-active-long .tile-name::before {
  animation: keyDotPulse 1.4s ease-in-out infinite;
}

@keyframes keyDotPulse {
  50% {
    opacity: 0.3;
  }
}

.tile-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--text-3);
}

.type-badge .type-glyph {
  font-size: 9px;
  line-height: 1;
}

.tile-usage {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.tile-usage::before {
  content: "· ";
}

.tile-usage::after {
  content: "×";
}

.add-tile {
  border: 0;
  background: transparent;
  color: var(--text-3);
  min-height: 88px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  border-radius: var(--radius);
  transition: color var(--dur) ease, transform 0.12s ease;
  cursor: pointer;
}

.add-tile:hover {
  color: var(--text-2);
}

.add-tile:active {
  transform: scale(0.97);
}

.add-tile .plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 350;
  line-height: 1;
  color: var(--text-2);
}

.hint {
  text-align: center;
  color: var(--text-3);
  font-size: 11px;
  margin: 10px 0 0;
  padding: 0 24px;
}

/* ------------------------------------------------------- active long hero */

.active-banner {
  margin: 0;
  padding: 12px 16px 14px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--banner-color, transparent) 12%, transparent),
    transparent 88%
  );
  display: flex;
  align-items: center;
  gap: 16px;
}

.active-banner .banner-info {
  flex: 1 1 auto;
  min-width: 0;
}

.active-banner .banner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
}

.active-banner .banner-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  animation: liveDot 2s ease-in-out infinite;
}

@keyframes liveDot {
  50% {
    opacity: 0.35;
  }
}

.active-banner .banner-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.active-banner .banner-time {
  font-size: 30px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.banner-stop {
  border: 0;
  background: var(--danger-soft);
  color: var(--danger-text);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-btn);
  padding: 0 16px;
  min-height: 40px;
  transition: background var(--dur) ease, transform 0.12s ease;
  cursor: pointer;
}

.banner-stop:hover {
  background: rgba(255, 143, 143, 0.2);
}

.banner-stop:active {
  transform: scale(0.96);
}

/* ------------------------------------------------------------ empty states */

.empty-state,
.timeline-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  border: 0;
  padding: 36px 12px;
}

.empty-state {
  grid-column: 1 / -1;
}

.timeline-empty {
  padding: 48px 16px;
}

.empty-state::before,
.timeline-empty::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  opacity: 0.4;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b909c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4l1.6 2.5h4.8L16 13h4'/%3E%3Cpath d='M6.2 5h11.6l2.2 8v6H4v-6z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- timeline */

.filter-row {
  display: flex;
  gap: 2px;
  padding: 8px 16px 4px;
  align-items: center;
}

.filter-row .form-select {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  padding: 4px 20px 4px 8px;
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2382868f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: right 6px center;
}

.filter-row .form-select:hover {
  background-color: var(--accent-soft);
}

.filter-row .form-select:has(option[value=""]:checked) {
  color: var(--text-3);
}

.timeline-list {
  padding: 0 0 24px;
}

.day-group {
  border-top: 1px solid var(--hairline);
  overflow: visible;
}

.day-group:first-child {
  border-top: 0;
}

.day-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--canvas);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  padding: 11px 16px 8px;
  border-bottom: 1px solid var(--hairline);
}

.timeline-item {
  display: grid;
  grid-template-areas: "time dot body";
  grid-template-columns: 100px 8px 1fr;
  column-gap: 10px;
  align-items: start;
  padding: 10px 16px;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--hairline);
}

.item-color {
  grid-area: dot;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
}

.item-body {
  grid-area: body;
  flex: 1 1 auto;
  min-width: 0;
}

.item-name {
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 3px;
  flex-wrap: wrap;
}

.item-times {
  grid-area: time;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.35;
}

.item-times .item-duration {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  margin-top: 1px;
}

.context-chip {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-3);
}

.active-chip {
  background: none;
  padding: 0;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.active-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  animation: liveDot 2s ease-in-out infinite;
}

/* ------------------------------------------------------------- bottom nav */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  display: flex;
  z-index: 100;
}

.bottom-nav-btn {
  flex: 1 1 auto;
  margin: 7px 8px 5px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--text-3);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 0 3px;
  transition: color var(--dur) ease, background var(--dur) ease;
}

.bottom-nav-btn svg {
  width: 21px;
  height: 21px;
}

.bottom-nav-btn.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* ------------------------------------------------------- modals & buttons */

.modal-content {
  background: var(--surface-float);
  color: var(--text);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.modal-content::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  margin: 8px auto 0;
}

.modal-header {
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--hairline);
}

.modal-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--hairline);
  gap: 8px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 14px 18px;
}

@media (max-width: 576px) {
  .modal-dialog-centered {
    align-items: flex-end;
    min-height: 100%;
  }

  .modal-dialog {
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .modal-content {
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    max-height: calc(100vh - 24px);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  }
}

.btn {
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  min-height: 42px;
  padding: 8px 16px;
  transition: background var(--dur) ease, color var(--dur) ease, transform 0.12s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text);
  border: 0;
  color: var(--canvas);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ffffff;
  border: 0;
  color: var(--canvas);
}

.btn-secondary {
  background: transparent;
  border: 0;
  color: var(--text-2);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--accent-soft);
  border: 0;
  color: var(--text);
}

.btn-outline-secondary {
  background: transparent;
  border: 0;
  color: var(--text-2);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--accent-soft);
  border: 0;
  color: var(--text);
}

.btn-outline-primary {
  background: transparent;
  border: 0;
  color: var(--text);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--accent-soft);
  border: 0;
  color: var(--text);
}

.btn-outline-danger {
  background: transparent;
  border: 0;
  color: var(--danger-text);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: var(--danger-soft);
  border: 0;
  color: var(--danger-text);
}

/* ------------------------------------------------------ forms and controls */

.form-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background-color: var(--fill);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 14.5px;
  min-height: var(--control-h);
  padding: 10px 12px;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}

.form-control::placeholder {
  color: var(--text-3);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  box-shadow: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2382868f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
}

/* ------------------------------------------------------- editor specifics */

.segmented {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: var(--radius-btn);
  padding: 3px;
}

.segment-btn {
  flex: 1 1 50%;
  background: transparent;
  border: 0;
  color: var(--text-3);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  transition: background var(--dur) ease, color var(--dur) ease;
}

.segment-btn:hover {
  color: var(--text-2);
}

.segment-btn.active {
  background: var(--fill-strong);
  color: var(--text);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  min-height: 40px;
  min-width: 40px;
  transition: transform 0.12s ease;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatch.selected {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- manage list */

.manage-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.manage-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin: 14px 2px 2px;
}

.manage-section-title:first-child {
  margin-top: 0;
}

.manage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 9px 2px;
}

.manage-item + .manage-item {
  border-top: 1px solid var(--hairline);
}

.manage-item .item-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 0;
  flex: 0 0 auto;
}

.manage-item .item-name {
  flex: 1 1 auto;
  font-size: 14.5px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-item .manage-actions {
  display: flex;
  gap: 2px;
}

.manage-item .btn {
  background: transparent;
  border: 0;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- toasts */

.toast {
  background: var(--surface-float);
  color: var(--text);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-toast);
  font-size: 13px;
}

.toast-body {
  padding: 9px 16px;
}

.toast-container {
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px) !important;
}

/* ---------------------------------------------------------- color utility */

.color-red { background: #ef4444; }
.color-orange { background: #f97316; }
.color-amber { background: #f59e0b; }
.color-yellow { background: #eab308; }
.color-green { background: #22c55e; }
.color-teal { background: #14b8a6; }
.color-blue { background: #3b82f6; }
.color-indigo { background: #6366f1; }
.color-purple { background: #a855f7; }
.color-pink { background: #ec4899; }
.color-gray { background: #6b7280; }

/* ------------------------------------------------------------- responsive */

@media (min-width: 480px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .app-shell {
    border-left: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
  }
}

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