:root {
  /* Color — surfaces & ink */
  --bg: #f4f3f0;
  --surface: #ffffff;
  --surface-2: #eeece8;
  --ink: #1a1a1a;
  --ink-2: #4a4a46;
  --ink-3: #8a8780;
  --line: #e0ddd6;
  --line-strong: #cfcabe;

  /* Accent & status */
  --accent: #2f6fed;
  --accent-soft: rgba(47, 111, 237, 0.10);
  --done: #1a7f4b;
  --done-soft: rgba(26, 127, 75, 0.10);
  --progress: #b86e0a;
  --progress-soft: rgba(184, 110, 10, 0.12);
  --pending: #5b6270;
  --pending-soft: rgba(91, 98, 112, 0.10);
  --alarm: #d94841;
  --alarm-soft: rgba(217, 72, 65, 0.10);

  /* Mind-map edges */
  --edge-tree: #d0cdc4;
  --edge-rel: rgba(47, 111, 237, 0.28);

  /* Radius — GLOBAL 5px; pill/circle are exceptions */
  --radius: 5px;
  --radius-sm: 5px;
  --radius-md: 5px;
  --radius-lg: 5px;
  --radius-pill: 999px;
  --radius-full: 50%;

  /* Elevation — keep minimal */
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-focus: 0 0 0 3px var(--accent-soft);
  --shadow-drag: 0 2px 8px rgba(26, 26, 26, 0.10);

  /* Type */
  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.68rem;
  --fs-sm: 0.78rem;
  --fs-md: 0.85rem;
  --fs-base: 0.92rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.35rem;
  --lh-tight: 1.3;
  --lh-body: 1.45;
  --tracking-tight: -0.01em;

  /* Space (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  /* Layout */
  --panel-w: min(400px, 92vw);
  --topbar-pad-y: 16px;
  --topbar-pad-x: 24px;
  --content-pad: 8px 20px 24px;
  --focus-ring: 2px solid var(--accent);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--topbar-pad-y) var(--topbar-pad-x) var(--space-3);
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--accent);
}
.brand h1 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}
.subtitle {
  margin: 2px 0 0;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: var(--lh-body);
}
.topbar-meta { display: flex; align-items: center; gap: 10px; padding-top: 4px; }

/* View tabs — top-left */
.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.view-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.view-tab:hover { color: var(--ink-2); background: var(--surface-2); }
.view-tab[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.view-tab:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 1px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface);
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--ink-3);
}
.pill-live { color: var(--done); border-color: rgba(26,127,75,0.25); background: var(--done-soft); }
.pill-live::before { background: var(--done); box-shadow: 0 0 0 3px rgba(26,127,75,0.12); }
.pill-muted { color: var(--ink-3); }
.pill-err { color: var(--alarm); }

.ghost-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: var(--radius-pill); padding: 6px 12px; font: inherit; font-size: 0.8rem;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--line-strong); }
.ghost-btn.hidden, .hidden { display: none !important; }

.layout {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--panel-w);
  gap: 0;
  min-height: 0;
  padding: var(--content-pad);
}
.layout.panel-closed { grid-template-columns: 1fr 0fr; }
.layout.panel-closed .side-panel { opacity: 0; pointer-events: none; width: 0; padding: 0; border: 0; overflow: hidden; }

.view-stack {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tree-pane {
  overflow: auto;
  padding: 8px 12px 24px 8px;
  max-width: 1100px;
}

.group {
  --group-toggle-size: 22px;
  --group-spine-w: 2px;
  --group-rail: 28px; /* indent for cards; spine centers under toggle */
  margin-bottom: var(--space-5);
  position: relative;
  padding-left: 0;
}
/* Vertical rail: centered under the 22px toggle, starts below it */
.group:not(.collapsed)::before {
  content: "";
  position: absolute;
  left: calc((var(--group-toggle-size) - var(--group-spine-w)) / 2);
  top: var(--group-toggle-size);
  bottom: var(--space-2);
  width: var(--group-spine-w);
  background: var(--line-strong);
  border-radius: 1px;
  pointer-events: none;
}
.group-head {
  display: flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-3) 0;
  cursor: pointer; user-select: none;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.group-toggle {
  width: var(--group-toggle-size); height: var(--group-toggle-size);
  border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--ink-2); flex-shrink: 0;
  transition: transform 0.15s ease;
}
.group.collapsed .group-toggle { transform: rotate(-90deg); }
.group.collapsed .bot-grid { display: none; }
.group.collapsed::before { display: none; }
.group-title {
  margin: 0; font-size: 0.95rem; font-weight: 600; letter-spacing: var(--tracking-tight);
}
.group-count {
  color: var(--ink-3); font-size: 0.75rem; font-weight: 500;
  background: var(--surface-2); padding: 2px 8px; border-radius: var(--radius-pill);
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  position: relative;
  margin-left: var(--group-rail, 28px);
  padding-left: var(--space-3);
}
/* Elbow stubs on first-column cards — align to spine */
.bot-card::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-3) - 1px);
  top: 18px;
  width: var(--space-3);
  height: var(--group-spine-w, 2px);
  background: var(--line-strong);
  pointer-events: none;
}
.bot-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 108px;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.bot-card:hover {
  border-color: var(--line-strong);
}
.bot-card.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.bot-card-name {
  font-weight: 600; font-size: var(--fs-base); line-height: var(--lh-tight);
  padding-right: 28px;
  letter-spacing: var(--tracking-tight);
}
.bot-card-duty {
  color: var(--ink-3); font-size: 0.75rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.bot-card-stats {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto;
}
.chip {
  font-size: var(--fs-xs); font-weight: 600; padding: 3px 7px; border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.chip-done { background: var(--done-soft); color: var(--done); }
.chip-progress { background: var(--progress-soft); color: var(--progress); }
.chip-pending { background: var(--pending-soft); color: var(--pending); }

.alarm-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 3px;
  background: #fff5f4; color: var(--alarm);
  border: 1px solid rgba(217,72,65,0.25);
  border-radius: var(--radius-pill); padding: 2px 6px 2px 5px;
  font-size: var(--fs-xs); font-weight: 600;
}
.alarm-badge.svg-inline svg,
.alarm-badge svg { width: 12px; height: 12px; }

.side-panel {
  position: sticky; top: 12px;
  align-self: start;
  height: calc(100vh - 100px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 0.2s ease;
}
.side-inner {
  height: 100%; overflow: auto; padding: var(--space-5); position: relative;
}
.side-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink-2);
}
.side-empty {
  height: 100%; display: grid; place-items: center; color: var(--ink-3);
  text-align: center; padding: var(--space-6); font-size: 0.9rem;
}
.side-content.hidden { display: none !important; }
.side-group {
  margin: 0 0 4px; color: var(--ink-3); font-size: 0.75rem; font-weight: 500;
  text-transform: none; letter-spacing: 0.02em;
}
.side-content h2 {
  margin: 0 0 6px;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  padding-right: 36px;
}
.side-sync { margin: 0 0 var(--space-4); color: var(--ink-3); font-size: var(--fs-sm); min-height: 1.2em; }
.side-section { margin-top: var(--space-4); }
.side-section h3 {
  margin: 0 0 var(--space-2); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.duty-list, .task-list {
  margin: 0; padding: 0; list-style: none;
}
.duty-list li {
  position: relative; padding: 6px 0 6px 14px;
  font-size: 0.9rem; color: var(--ink-2); line-height: var(--lh-body);
  border-bottom: 1px solid var(--surface-2);
}
.duty-list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent);
}
.task-list li {
  padding: 8px 10px; margin-bottom: 6px;
  background: var(--surface-2); border-radius: var(--radius);
  font-size: var(--fs-md); color: var(--ink);
}
.task-list li.empty { color: var(--ink-3); background: transparent; padding-left: 0; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.stat {
  background: var(--surface-2); border-radius: var(--radius); padding: 12px 10px; text-align: center;
}
.stat .n { display: block; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; }
.stat .l { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.stat-done .n { color: var(--done); }
.stat-progress .n { color: var(--progress); }
.stat-pending .n { color: var(--pending); }

.routines-line { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

.side-backdrop { display: none; }

/* --- Mind map view --- */
.mindmap-pane {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mindmap-pane.hidden { display: none !important; }
.mm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.mm-hint {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 500;
}
.mm-viewport {
  position: relative;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  cursor: grab;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(228,225,218,0.5) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(228,225,218,0.5) 24px);
  touch-action: none;
}
.mm-viewport.dragging { cursor: grabbing; }
.mm-world {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.mm-edges {
  position: absolute;
  left: 0; top: 0;
  overflow: visible;
  pointer-events: none;
}
.mm-edges .tree-link {
  fill: none;
  stroke: var(--edge-tree);
  stroke-width: 1.5;
}
.mm-edges .rel-link {
  fill: none;
  stroke: var(--edge-rel);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}
.mm-nodes { position: absolute; left: 0; top: 0; }
.mm-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: grab;
  user-select: none;
  touch-action: none;
  text-align: center;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mm-node.dragging {
  cursor: grabbing;
  z-index: 6;
  transition: none;
  box-shadow: var(--shadow-drag);
}
.mm-node.root {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: var(--tracking-tight);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
}
.mm-node.group {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--surface-2);
  min-width: 96px;
}
.mm-node.group .mm-count {
  display: inline-block;
  margin-left: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 1px 6px;
}
.mm-node.bot {
  padding: 8px 12px;
  border-radius: var(--radius);
  min-width: 128px;
  max-width: 180px;
  cursor: grab;
  text-align: left;
}
.mm-node.bot:hover:not(.dragging) {
  border-color: var(--line-strong);
}
.mm-node.bot.dragging {
  transform: translate(-50%, -50%);
}
.mm-node.bot.selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.mm-node.bot .mm-bot-name {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  padding-right: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-node.bot .mm-bot-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mm-node.bot .mm-bot-meta .chip {
  font-size: 0.62rem;
  padding: 2px 6px;
}
.mm-node.bot .alarm-badge {
  top: 6px;
  right: 6px;
  padding: 1px 5px 1px 4px;
  font-size: 0.62rem;
}
.mm-node.bot .alarm-badge svg { width: 10px; height: 10px; }

@media (max-width: 900px) {
  .layout {
    display: block; padding: 8px 14px 24px;
  }
  .side-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: var(--panel-w); height: 100%;
    border-radius: var(--radius) 0 0 var(--radius); z-index: 40;
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }
  .layout.panel-open .side-panel { transform: translateX(0); opacity: 1; pointer-events: auto; width: var(--panel-w); }
  .layout.panel-closed .side-panel { transform: translateX(105%); }
  .side-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(26,26,26,0.28);
    z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .layout.panel-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .topbar { padding: 16px 16px 8px; }
  .mindmap-pane { min-height: 70vh; }
}

/* --- status & collaboration --- */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-full);
  margin-right: 4px; vertical-align: middle;
}
.status-active { background: var(--done); box-shadow: 0 0 0 3px rgba(26,127,75,0.12); }
.status-idle { background: #c5c1b8; }
.status-routines { background: var(--alarm); }

.bot-card-status {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500;
}
.bot-card-rels {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px;
}
.rel-chip {
  font-size: 0.62rem; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.side-status-row {
  display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2);
}
.side-status-row .pill { font-size: 0.72rem; }

.rel-list { margin: 0; padding: 0; list-style: none; }
.rel-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; margin-bottom: 6px;
  background: var(--surface-2); border-radius: var(--radius);
  font-size: var(--fs-md);
}
.rel-list .rel-type {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
}
.rel-list .rel-dir { color: var(--ink); font-weight: 500; }
.rel-list .rel-label { color: var(--ink-3); font-size: var(--fs-sm); }
.rel-list li.empty { color: var(--ink-3); background: transparent; padding-left: 0; }

.collab-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 var(--space-4); padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.72rem; color: var(--ink-3);
}
.collab-legend span { display: inline-flex; align-items: center; gap: 4px; }
.collab-legend i {
  font-style: normal; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 1px 6px; border-radius: var(--radius-pill); font-size: 0.65rem;
}


/* --- Routines list view --- */
.routines-pane {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.routines-pane.hidden { display: none !important; }
.routines-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.routines-hint {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 500;
}
.routines-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  min-width: min(240px, 100%);
  outline: none;
}
.routines-filter:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.routines-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 4px 0 16px;
}
.routines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}
.routines-table th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
}
.routines-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
  color: var(--ink-2);
}
.routines-table tbody tr:hover td {
  background: var(--surface-2);
}
.routines-bot-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-md);
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.routines-bot-btn:hover { text-decoration: underline; }
.routines-name {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}
.routines-summary {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.35;
}
.routines-schedule {
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.routines-cron {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.routines-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
}
.routines-type.type-cron { background: var(--accent-soft); color: var(--accent); }
.routines-type.type-webhook { background: var(--alarm-soft); color: var(--alarm); }
.routines-type.type-slack,
.routines-type.type-github,
.routines-type.type-email { background: var(--progress-soft); color: var(--progress); }
.routines-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.routines-status::before {
  content: "";
  width: 7px; height: 7px; border-radius: var(--radius-full);
  background: var(--ink-3);
}
.routines-status.on { color: var(--done); }
.routines-status.on::before { background: var(--done); }
.routines-status.off { color: var(--ink-3); }
.routines-empty {
  margin: 48px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
}
@media (max-width: 720px) {
  .routines-table th:nth-child(4),
  .routines-table td:nth-child(4) { display: none; }
}

.routines-side-item { display: inline; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.5; }
.routines-side-item strong { color: var(--ink); font-weight: 600; }
