:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #eef0ea;
  --ink: #14171a;
  --ink-2: #4a5057;
  --ink-3: #7b828a;
  --line: #e1e4dc;
  --accent: #c5f135;
  --accent-ink: #14171a;
  --accent-strong: #5f7d00;
  --danger: #c2410c;
  --ok: #2f7d32;
  --info: #2563eb;
  --shadow: 0 1px 2px rgba(20, 23, 26, .06), 0 4px 16px rgba(20, 23, 26, .05);
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1113; --surface: #181b1e; --surface-2: #22262a; --ink: #f1f3ee; --ink-2: #c3c8cc;
    --ink-3: #8b9298; --line: #2b3035; --accent-strong: #c5f135; --danger: #fb923c; --ok: #4ade80; --info: #60a5fa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1113; --surface: #181b1e; --surface-2: #22262a; --ink: #f1f3ee; --ink-2: #c3c8cc;
  --ink-3: #8b9298; --line: #2b3035; --accent-strong: #c5f135; --danger: #fb923c; --ok: #4ade80; --info: #60a5fa;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

#app { max-width: 760px; margin: 0 auto; min-height: 100dvh; }
#view { padding: 16px 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); outline: none; }
.splash { padding: 40vh 0; text-align: center; color: var(--ink-3); }

/* ---------- Topbar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.topbar-spacer { flex: 1; }
.chip-client {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; text-decoration: none; max-width: 52vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Tabbar ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
#tabbar .tabs { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 760px; }
#tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  color: var(--ink-3); font-size: 11px; font-weight: 600;
}
#tabbar a svg { width: 22px; height: 22px; }
#tabbar a.active { color: var(--ink); }
#tabbar a.active .tab-ic { background: var(--accent); color: var(--accent-ink); }
.tab-ic { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: background .15s; }

/* ---------- Layout bits ---------- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.row > input, .row > select { flex: 1; min-width: 0; }
.row > .btn.sm { padding: 0 10px; }
@media (min-width: 560px) { .grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; margin: 8px 2px 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.tight { padding: 12px; }
.card-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-dark .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.card-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card-link { text-decoration: none; display: block; cursor: pointer; transition: transform .1s; }
.card-link:active { transform: scale(.99); }

.tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile svg { width: 22px; height: 22px; }
.tile .t { font-weight: 700; }
.tile .d { font-size: 12px; color: var(--ink-3); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.card-dark .stat .l, .card-accent .stat .l { color: inherit; opacity: .7; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent); color: var(--accent-ink); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macro { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.card-dark .macro { background: rgba(255, 255, 255, .08); }
.macro .v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.macro .l { font-size: 11px; font-weight: 600; opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.loading { pointer-events: none; opacity: .7; }

.save-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 15;
  padding: 10px 16px; background: linear-gradient(transparent, var(--bg) 30%); display: flex; justify-content: center;
}
.save-bar .inner { width: 100%; max-width: 728px; display: flex; gap: 8px; }
.has-save-bar { padding-bottom: 72px; }

/* ---------- Forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-weight: 500; color: var(--ink-3); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
input.compact { min-height: 40px; padding: 8px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.input-unit { position: relative; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; pointer-events: none; }
.input-unit input { padding-right: 44px; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 38px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; font-size: 15px; }
.scale button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.scale-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(18px); }

details.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
details.section > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary .chev { margin-left: auto; transition: transform .2s; color: var(--ink-3); }
details.section[open] > summary .chev { transform: rotate(90deg); }
details.section > .body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.sec-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.sec-ic svg { width: 18px; height: 18px; }
.summary-meta { font-size: 12px; font-weight: 600; color: var(--ink-3); }

/* ---------- Date nav ---------- */
.datenav { display: flex; align-items: center; gap: 8px; }
.datenav .label { flex: 1; text-align: center; }
.datenav .label .d { font-weight: 800; font-size: 17px; }
.date-pick { position: relative; }
.date-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; min-height: 0; padding: 0; cursor: pointer; }
.datenav .label .s { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ---------- Training ---------- */
.ex-card { padding: 0; overflow: hidden; }
.ex-head { display: flex; gap: 12px; padding: 14px 14px 10px; align-items: flex-start; }
.ex-letter { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; flex: none; }
.ex-name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ex-spec { margin: 0 14px 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--info) 9%, transparent); color: var(--ink-2); font-size: 13px; }
.sets { width: 100%; border-collapse: collapse; font-size: 13px; }
.sets th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 6px 4px; text-align: center; }
.sets td { padding: 4px; text-align: center; vertical-align: middle; }
.sets td.n { font-weight: 800; width: 34px; }
.sets td.plan { font-size: 12px; color: var(--ink-2); text-align: left; line-height: 1.25; }
.sets tr + tr td { border-top: 1px dashed var(--line); }
.sets-wrap { padding: 0 10px 8px; }
.prev { font-size: 11px; color: var(--ink-3); }
.ex-foot { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.week-picker { display: flex; align-items: center; gap: 8px; }
.week-picker select { width: auto; min-width: 130px; }

.history { display: grid; gap: 6px; }
.history .h-row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.history .h-w { width: 30px; font-weight: 800; color: var(--ink-3); }
.history .h-s { font-variant-numeric: tabular-nums; }

/* ---------- Nutrition ---------- */
.meal { padding: 0; overflow: hidden; }
.meal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 8px; }
.meal-items { list-style: none; margin: 0; padding: 4px 0; }
.meal-items li { display: flex; gap: 10px; padding: 8px 14px; align-items: baseline; }
.meal-items .q { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal-items .mm { font-size: 11px; color: var(--ink-3); }
.meal-note { margin: 0 14px 12px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.edit-item { display: grid; grid-template-columns: 1fr 78px; gap: 6px; padding: 6px 14px; }
.edit-item .notes { grid-column: 1 / -1; }

/* ---------- Tables / charts ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data th:first-child, table.data td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
table.data th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
table.data tr:last-child td { border-bottom: 0; }
.delta-down { color: var(--ok); font-size: 11px; display: block; }
.delta-up { color: var(--danger); font-size: 11px; display: block; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--ink-3); font-size: 11px; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.chart .dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart .dot-last { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }

/* ---------- Photos ---------- */
.poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pose { aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; position: relative; overflow: hidden; background: var(--surface); text-align: center; padding: 4px; }
.pose img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pose.has { border-style: solid; border-color: var(--ok); color: var(--ok); }
.pose input { display: none; }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; max-width: 420px; margin: 0 auto; gap: 24px; }
.login-brand { display: flex; flex-direction: column; gap: 14px; }
.login-brand .mark { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); display: grid; place-items: center; }
.login-brand .mark svg { width: 44px; height: 44px; }
.login h1 { font-size: 34px; }
.demo-note { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }

/* ---------- Misc ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 50;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }
#timer {
  position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
}
#timer .t { font-size: 22px; }
#timer button { border: 0; background: rgba(0,0,0,.12); border-radius: 8px; padding: 6px 8px; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-3); }
.error-box { border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.card-dark .progress { background: rgba(255,255,255,.12); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.menu { position: absolute; right: 16px; top: calc(56px + env(safe-area-inset-top)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: 6px; z-index: 30; min-width: 220px; }
.menu button, .menu a { display: flex; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-weight: 600; text-decoration: none; font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--surface-2); }
.menu .who { padding: 10px 12px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10, 12, 14, .5); }
dialog .dlg { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.faq summary { font-weight: 700; padding: 14px 16px; cursor: pointer; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { padding: 0 16px 16px; color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.faq + .faq { border-top: 1px solid var(--line); }
.tabs-inline { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; }
.tabs-inline button { border: 0; background: none; padding: 10px 6px; margin-right: 10px; font-weight: 700; color: var(--ink-3); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs-inline button.on { color: var(--ink); border-color: var(--ink); }
.plan-slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.plan-sets { display: flex; flex-direction: column; gap: 8px; }
.plan-set { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 64px; gap: 6px; align-items: center; }
.plan-set .n { font-weight: 800; font-size: 13px; color: var(--ink-3); grid-row: span 2; align-self: start; padding-top: 9px; }
.plan-set .rango { grid-column: 2 / 4; }
.plan-set .tipo { grid-column: 3 / 5; }
.plan-set input { min-height: 38px; padding: 6px 10px; font-size: 15px; border-radius: 9px; }
@media (min-width: 560px) {
  .plan-set { grid-template-columns: 22px minmax(0, 1fr) 64px minmax(0, 1.3fr) minmax(0, 1fr); }
  .plan-set .n { grid-row: auto; padding-top: 0; align-self: center; }
  .plan-set .rango, .plan-set .tipo { grid-column: auto; }
}
@media (max-width: 420px) {
  .macros { grid-template-columns: repeat(2, 1fr); }
}
