:root {
  color-scheme: light;
  --bg: #f5f1ea;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e6dccf;
  --muted: #74695f;
  --text: #11100e;
  --soft: #5e5348;
  --navy: #050505;
  --accent: #ff7a00;
  --gold: #ff9416;
  --rose: #f2708a;
  --amber: #d9972f;
  --red: #d44444;
  --accent: #ff7a00;
  --green: #23875a;
  --shadow: 0 14px 34px rgba(15, 34, 56, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.auth-pending .app-shell, body.auth-pending .fab { visibility: hidden; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,122,0,.28);
  outline-offset: 2px;
}

.login-screen {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: #f5f1ea;
}
.login-screen::before {
  content: ""; position: absolute; inset: 0; opacity: .42; pointer-events: none;
  background-image: linear-gradient(#e6dccf 1px, transparent 1px), linear-gradient(90deg, #e6dccf 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-card {
  position: relative; width: min(440px, 100%); display: grid; gap: 18px; padding: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(15,34,56,.14);
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 18px; }
.login-brand span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.login-copy { margin-top: 6px; }
.login-copy h1 { margin: 5px 0 8px; font-size: 30px; letter-spacing: 0; }
.login-copy > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 6px; background: #fff7ed; }
.auth-tab { min-height: 40px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(15,34,56,.12); }
.login-submit { width: 100%; min-height: 48px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.guest-button { width: 100%; min-height: 46px; background: #fffaf3; color: var(--navy); }
.guest-button:hover { border-color: #c9b59c; background: #fff7ed; }
.guest-note { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  padding: 22px 16px 18px;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; padding: 0 5px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 7px; overflow: hidden;
  color: var(--text); font-weight: 800;
  filter: drop-shadow(0 8px 14px rgba(15,30,48,.18));
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand strong, .brand span { display: block; }
.brand strong { color: var(--text); font-size: 18px; letter-spacing: 0; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.app-switcher { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: -12px 0; padding: 0 5px; }
.app-switcher a { min-width: 0; display: flex; align-items: center; gap: 8px; color: #5e5348; font-size: 10px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: color 180ms ease; }
.app-switcher a:hover { color: var(--text); }
.app-switcher a:focus-visible { outline: 3px solid rgba(255,122,0,.28); outline-offset: 2px; }
.app-switcher img { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 7px; }
.eyebrow { color: var(--muted); font-size: 12px; margin: 0; }

.nav-list { display: grid; gap: 7px; min-width: 0; }
.nav-button {
  width: 100%; border: 0; color: #5e5348; background: transparent; display: flex; align-items: center; gap: 12px;
  padding: 0 13px; border-radius: 7px; transition: 180ms ease; white-space: nowrap; min-height: 45px; text-align: left;
  font-weight: 700;
}
.nav-button:hover { background: #fff7ed; color: var(--text); }
.nav-button.active { background: var(--navy); color: #ffffff; box-shadow: none; }
.nav-button:focus-visible, .sidebar-account-actions .ghost-button:focus-visible {
  outline: 3px solid rgba(255,122,0,.28);
  outline-offset: 2px;
}

.sidebar-insights { display: grid; gap: 12px; margin-top: auto; }
.sidebar-card {
  padding: 17px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff7ed; color: var(--text);
}
.sidebar-card .eyebrow { color: var(--muted); font-size: 11px; }
.sidebar-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.plan-card { background: var(--navy); border-color: #33200f; color: #fff; }
.plan-card .eyebrow { color: #ffc56f; }
.plan-card p { color: #ded6cc; }
.plan-card strong { display: block; margin: 8px 0 4px; }
.sidebar-metric { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sidebar-metric strong { font-size: 18px; line-height: 1.1; }
.sidebar-metric span { color: #ff9416; font-size: 12px; font-weight: 800; }
.plan-meter { height: 7px; margin: 12px 0; overflow: hidden; border-radius: 999px; background: #2b241d; }
.plan-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: #ff9416; transition: width 180ms ease; }
.goal-meter span { background: linear-gradient(90deg, #ff7a00, #ff9f1c); }
.plan-upgrade { width: 100%; min-height: 38px; border: 1px solid #5f3a12; border-radius: 6px; color: #fff; background: #20160d; font-weight: 800; }
.plan-upgrade:hover { background: #3a210b; }
.plan-upgrade[hidden] { display: none; }
.sidebar-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #33200f;
  border-radius: 8px;
  background: #080706;
}
.sidebar-account .account-chip { min-width: 0; overflow: hidden; padding: 0; border: 0; background: transparent; }
.sidebar-account .account-chip > strong {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  background: #050505; color: #fff1df; font-size: 12px; line-height: 1; text-align: center;
}
.sidebar-account-copy { min-width: 0; }
.sidebar-account-copy span, .sidebar-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy span { color: #f7fafc; font-size: 12px; font-weight: 800; }
.sidebar-account-copy small { margin-top: 2px; color: #b6aca0; font-size: 10px; line-height: 1.05; }
.sidebar-account-copy .account-workspace { color: #ffb454; }
.sidebar-account-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.sidebar-account-actions .ghost-button { width: 38px; min-width: 38px; padding: 0; border-color: #5f3a12; background: #20160d; color: #fff1df; }
.sidebar-account-actions .ghost-button:hover { background: #3a210b; color: #fff; }
.sidebar-account-actions .ghost-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pulse { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px rgba(35, 135, 90, 0.1); }

.workspace { min-width: 0; width: 100%; margin: 0; padding: 24px clamp(24px, 3vw, 40px) 56px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 5; margin: -24px calc(clamp(24px, 3vw, 40px) * -1) 24px;
  padding: 20px clamp(24px, 3vw, 40px); background: #ffffff; border-bottom: 1px solid var(--line);
}
.topbar-title { min-width: 190px; }
#topbarKicker { display: none; }
.topbar-title h1 { margin: 4px 0 0; font-size: 30px; line-height: 1; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; justify-content: end; gap: 10px; min-width: 0; flex-wrap: nowrap; }
.topbar-app-icon { display: none; width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; border-radius: 8px; }
.account-chip { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf3; }
.account-chip strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: var(--navy); font-size: 11px; }
.account-chip span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; }
button.menu-button { display: none; }

.search-wrap {
  width: min(260px, 24vw); min-width: 170px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 6px; background: #fffaf3; min-height: 48px;
}
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font-size: 12px; }

.primary-button, .ghost-button, .danger-button, .icon-button {
  border-radius: 6px; border: 1px solid var(--line); min-height: 38px; color: #5e5348; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: #ffffff; font-weight: 700;
}
.primary-button { background: var(--navy); color: #ffffff; padding: 0 14px; border: 0; }
.primary-button:hover { background: #1a1714; }
.ghost-button { padding: 0 12px; }
.ghost-button:hover { border-color: #c9b59c; background: #fff7ed; color: var(--text); }
.danger-button { background: #fff1f1; border-color: #ffc7c7; color: #a20000; padding: 0 12px; }
.danger-button:hover { border-color: #fca5a5; background: #ffe4e6; }
.icon-button { width: 38px; background: #ffffff; }
.icon-button:hover { border-color: #c9b59c; background: #fff7ed; color: var(--text); }
.icon-button svg { width: 18px; height: 18px; }

.hero-band {
  min-height: 130px;
  border: 1px solid #33200f;
  border-radius: var(--radius);
  padding: 25px 27px;
  color: #fff;
  background: radial-gradient(circle at 75% 0, #3a210b, transparent 42%), var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}
.hero-band h1 { max-width: 620px; margin: 7px 0 6px; font: 800 clamp(23px, 2.5vw, 34px)/1.1 Manrope, sans-serif; letter-spacing: -.04em; }
.hero-band .eyebrow { color: var(--gold); }
.hero-band p { color: #ded6cc; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .ghost-button,
.hero-actions .primary-button {
  min-height: 45px;
  border-color: rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.07);
}
.hero-actions .ghost-button:hover,
.hero-actions .primary-button:hover {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.12);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

.alerts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.alert-pill { border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; padding: 12px; display: flex; gap: 9px; align-items: center; }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(36,209,126,.12); }
.alert-pill.warning .alert-dot { background: var(--amber); box-shadow: 0 0 0 6px rgba(246,189,96,.13); }
.alert-pill.danger .alert-dot { background: var(--red); box-shadow: 0 0 0 6px rgba(242,112,138,.13); }
.alert-pill strong { display: block; font-size: 13px; }
.alert-pill span { color: var(--muted); font-size: 12px; }

.view-root { animation: none; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid #33200f;
  border-radius: var(--radius);
  background: #080706;
  color: #fffaf3;
  box-shadow: var(--shadow);
}
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
}
.footer-brand span, .footer-brand strong { display: block; }
.footer-brand span { margin-bottom: 3px; color: #b6aca0; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.footer-brand strong { font-size: 15px; }
.footer-standard { margin: 0; color: #ded6cc; font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; }
.footer-cta {
  min-height: 44px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 6px;
  background: #ff9416;
  color: #080706;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition: 180ms ease;
}
.footer-cta:hover { background: #f2c86f; transform: translateY(-1px); }
.footer-cta svg { width: 17px; height: 17px; }
.section-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.view-root .kpi:nth-of-type(6) { margin-bottom: 4px; }
.view-root .kpi:nth-of-type(6) + .panel { margin-top: 4px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-pad { padding: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.panel-head h2, .drawer h2 { margin: 0; font-size: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }

.kpi { padding: 10px; display: grid; gap: 8px; min-height: 86px; }
.kpi-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.kpi strong { font-size: 21px; line-height: 1; }
.trend { color: var(--accent); font-weight: 700; font-size: 12px; }
.spark { height: 14px; border-radius: 6px; background: #fff7ed; position: relative; overflow: hidden; }
.spark::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); }
.kpi.warn .trend, .kpi.attention .trend { color: var(--amber); }
.kpi.warn .spark { background: linear-gradient(90deg, rgba(246,189,96,.1), rgba(246,189,96,.2)); }
.kpi.warn .spark::after { background: linear-gradient(90deg, var(--amber), #ffd166); }
.kpi.attention .spark { background: linear-gradient(90deg, rgba(246,189,96,.08), rgba(36,209,126,.14)); }
.kpi.attention .spark::after { background: linear-gradient(90deg, var(--amber), var(--accent)); }

.chart-bars { display: grid; gap: 8px; padding: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: 10px; color: var(--soft); font-size: 12px; }
.bar-track { height: 7px; border-radius: 999px; background: #eadfce; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.bar-row.warning .bar-fill { background: linear-gradient(90deg, var(--amber), #ffd166); }
.bar-row.danger .bar-fill { background: linear-gradient(90deg, var(--red), #ff9aa8); }
.bar-row.success .bar-fill { background: linear-gradient(90deg, var(--accent), var(--green)); }

.records-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters select, .filters input { color: var(--text); background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 40px; padding: 0 10px; }

.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.record-card { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; transition: 180ms ease; }
.record-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.record-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.record-title h3 { margin: 0; font-size: 15px; }
.meta { color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: #fff7ed; color: var(--soft); font-size: 12px; border: 1px solid var(--line); white-space: nowrap; }
.tag.hot { color: #a20000; background: #fff1f1; border-color: #ffc7c7; }
.tag.good { color: #0f6b40; background: #ecfff6; border-color: #bcebd1; }
.tag.warn { color: #8c5700; background: #fff7e8; border-color: #f5d9a7; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 11px 0; }
.detail-list div { min-width: 0; }
.detail-list span { color: var(--muted); font-size: 11px; display: block; }
.detail-list strong { font-size: 13px; overflow-wrap: anywhere; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.activity-list, .timeline { display: grid; gap: 10px; padding: 14px; }
.activity { display: flex; gap: 12px; align-items: start; }
.activity-icon { width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center; background: #fff3df; color: var(--accent); flex: 0 0 auto; }
.activity p { margin: 0; }

.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.report-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; }
.report-card h3 { margin: 0 0 10px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(17,16,14,.55); z-index: 20; backdrop-filter: blur(5px); }
.drawer {
  position: fixed; z-index: 21; top: 0; right: 0; width: min(620px, 100vw); height: 100vh; transform: translateX(104%);
  transition: 260ms ease; background: #ffffff; border-left: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); background: #ffffff; }
.drawer-form { padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--soft); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; color: var(--text); background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 42px; padding: 10px 11px; outline: 0;
}
.field textarea { min-height: 92px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: end; gap: 10px; padding-top: 8px; }

.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.confirm-modal { width: min(430px, 100%); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); padding: 20px; box-shadow: var(--shadow); }
.confirm-modal p { color: var(--muted); }
.modal-actions { display: flex; justify-content: end; gap: 10px; }
.modal-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.auth-modal { display: grid; gap: 14px; }
.auth-modal h3 { margin: 4px 0 0; }
.auth-error { min-height: 18px; margin: 0; color: #b42318; font-size: 13px; }
.auth-button { min-width: 136px; }
.upgrade-button { color: #805300; background: #fff8e8; border-color: #efd79d; }
.upgrade-modal { width: min(448px, 100%); padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 28px 80px rgba(5,5,5,.25); }
.upgrade-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 30px; }
.upgrade-logo { width: 92px; height: 72px; overflow: hidden; background: transparent; }
.upgrade-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.upgrade-modal h2 { margin: 5px 0 16px; max-width: 360px; font-size: 20px; line-height: 1.4; letter-spacing: 0; }
.upgrade-copy { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.upgrade-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.upgrade-actions .primary-button { min-height: 44px; text-decoration: none; }
.upgrade-actions .ghost-button { min-height: 44px; }

body.dark-mode {
  color-scheme: dark;
  --bg: #050505; --panel: #11100e; --panel-solid: #11100e; --line: #332820;
  --muted: #b6aca0; --text: #fffaf3; --soft: #c7d4e1; --navy: #050505;
  --shadow: 0 16px 40px rgba(0,0,0,.22);
}
body.dark-mode .login-screen { background: #050505; }
body.dark-mode .login-screen::before {
  background-image: linear-gradient(#332820 1px, transparent 1px), linear-gradient(90deg, #332820 1px, transparent 1px);
}
body.dark-mode .login-card,
body.dark-mode .auth-tabs {
  background: var(--panel);
  border-color: var(--line);
}
body.dark-mode .auth-tab.active { color: var(--text); background: #191611; box-shadow: 0 1px 5px rgba(0,0,0,.22); }
body.dark-mode .guest-button { color: var(--text); background: #191611; border-color: var(--line); }
body.dark-mode .guest-button:hover { border-color: #7a4a16; background: #21180d; }
body.dark-mode .sidebar, body.dark-mode .topbar,
body.dark-mode .panel, body.dark-mode .record-card, body.dark-mode .report-card,
body.dark-mode .confirm-modal, body.dark-mode .upgrade-modal, body.dark-mode .drawer,
body.dark-mode .drawer-head, body.dark-mode .cloud-status, body.dark-mode .icon-button,
body.dark-mode .ghost-button, body.dark-mode .field input, body.dark-mode .field select,
body.dark-mode .field textarea, body.dark-mode .filters select, body.dark-mode .filters input {
  background: #11100e; color: var(--text);
}
body.dark-mode .sidebar-card, body.dark-mode .search-wrap, body.dark-mode .account-chip { background: #191611; }
body.dark-mode .alert-pill { background: #11100e; }
body.dark-mode .spark, body.dark-mode .bar-track { background: #2b241d; }
body.dark-mode .tag { background: #191611; color: var(--soft); border-color: var(--line); }
body.dark-mode .plan-upgrade { background: #20160d; color: #fff; border-color: #5f3a12; }
body.dark-mode .plan-upgrade:hover { background: #3a210b; border-color: #7a4a16; }
body.dark-mode .app-switcher a, body.dark-mode .nav-button { color: var(--muted); }
body.dark-mode .app-switcher a:hover, body.dark-mode .nav-button:hover { color: var(--text); }
body.dark-mode .nav-button:hover { background: #191611; }
body.dark-mode .nav-button.active { color: #fff; background: var(--navy); }
body.dark-mode .plan-card { background: var(--navy); }
body.dark-mode .hero-band { background: radial-gradient(circle at 75% 0, #3a210b, transparent 42%), var(--navy); color: #fff; }
body.dark-mode .primary-button:hover { background: #1a1714; }
body.dark-mode .ghost-button:hover,
body.dark-mode .icon-button:hover { border-color: #7a4a16; background: #191611; color: #fff; }
body.dark-mode .danger-button { border-color: #5b2630; color: #fecdd3; background: #3a1d24; }
body.dark-mode .danger-button:hover { border-color: #9f4f5d; background: #4a2430; }
body.dark-mode .drawer-backdrop,
body.dark-mode .modal-backdrop { background: rgba(5,5,5,.66); }
body.dark-mode .nav-button:focus-visible,
body.dark-mode .sidebar-account-actions .ghost-button:focus-visible,
body.dark-mode .app-switcher a:focus-visible {
  outline-color: rgba(255,148,22,.38);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(17,16,14,.55);
  backdrop-filter: blur(3px);
}

.mobile-backdrop[hidden] { display: none; }

body.dark-mode .mobile-backdrop { background: rgba(5,5,5,.66); }

.toast-stack { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 40; }
.toast { padding: 12px 14px; min-width: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff; color: var(--text); box-shadow: var(--shadow); animation: fadeUp 220ms ease both; }
body.dark-mode .toast { border-color: #332820; background: #050505; color: #fff; }

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 8; width: 56px; height: 56px; border-radius: 50%; border: 0;
  display: none; place-items: center; color: #ffffff; background: var(--navy); box-shadow: 0 18px 50px rgba(5,5,5,.18);
}

.empty-state { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 32px; }
.empty-art { width: 98px; height: 78px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff7ed; position: relative; }
.empty-art::before, .empty-art::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; }
.empty-art::before { width: 44px; height: 28px; left: 12px; top: 16px; }
.empty-art::after { width: 36px; height: 38px; right: 12px; bottom: 10px; }

@keyframes fadeUp { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 272px minmax(0, 1fr); }
  .sidebar { padding: 22px 16px 18px; }
  .search-wrap { width: min(220px, 25vw); }
  .alerts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-standard { display: none; }
}

@media (max-width: 820px) {
  .login-screen { padding: 12px; }
  .login-card { padding: 24px 20px; }
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 272px;
    height: 100vh;
    transform: translateX(-105%);
    padding: 22px 16px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 20px 0 60px rgba(5,16,28,.2);
    transition: transform .22s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { margin-bottom: 0; }
  .sidebar-insights { display: grid; }
  .nav-list {
    display: grid;
    gap: 6px;
    overflow: visible;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-button {
    width: 100%;
    flex: initial;
    justify-content: flex-start;
    padding: 0 13px;
  }
  .workspace { padding: 0 12px 56px; overflow-x: hidden; }
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 24px 18px;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-standard { display: block; white-space: normal; }
  .footer-cta { justify-self: center; width: min(100%, 310px); }
  .topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: -18px -12px 18px;
    padding: 15px 12px;
    gap: 12px;
  }
  button.menu-button { display: inline-flex; flex: 0 0 auto; }
  .topbar-app-icon { display: block; }
  .topbar-title { min-width: 0; margin-right: auto; }
  .topbar-title h1 { font-size: clamp(22px, 7vw, 29px); }
  .topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    flex: 0 0 auto;
  }
  .search-wrap { display: none; }
  #exportBtn { display: none; }
  .upgrade-button { width: 100%; }
  .sidebar-account { padding-top: 8px; }
  .hero-band {
    display: grid;
    align-items: start;
    min-height: auto;
    position: relative;
    top: 18px;
    margin: 0 0 32px;
    padding: 22px;
    gap: 18px;
    overflow: hidden;
  }
  .hero-band h1 { margin: 7px 0 14px; font-size: 22px; overflow-wrap: anywhere; }
  .alerts-row { grid-template-columns: 1fr; }
  .drawer-form { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .fab { display: grid; }
  .toast-stack { right: 12px; bottom: 92px; left: 12px; }
  .toast { min-width: 0; }
  .upgrade-actions { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  #quickAddBtn {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }
  #quickAddBtn span { display: none; }
}

/* SINDRI brand theme override */
:root {
  --bg: #f5f1ea;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e6dccf;
  --muted: #74695f;
  --text: #11100e;
  --soft: #5e5348;
  --navy: #050505;
  --accent: #ff7a00;
  --gold: #ff9416;
  --rose: #d9480f;
  --amber: #b87819;
  --red: #d9480f;
  --accent: #ff7a00;
  --green: #22a06b;
  --shadow: 0 16px 40px rgba(5, 5, 5, 0.12);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline-color: rgba(255, 122, 0, 0.28);
}

.login-screen {
  background: radial-gradient(circle at 18% 10%, #ffe4bd, transparent 30%), var(--bg);
}

.login-screen::before {
  background-image: linear-gradient(rgba(17, 16, 14, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 16, 14, 0.08) 1px, transparent 1px);
}

.login-card,
.auth-tab.active,
.guest-button,
.topbar,
.primary-button,
.icon-button,
.record-card,
.report-card,
.drawer,
.drawer-head,
.field input,
.field select,
.field textarea,
.filters select,
.filters input,
.toast {
  background: var(--panel);
}

.auth-tabs,
.sidebar-card,
.search-wrap,
.account-chip,
.alert-pill,
.tag,
.empty-art {
  background: var(--panel-soft);
}

.app-switcher a,
.nav-button,
.primary-button,
.ghost-button,
.danger-button,
.icon-button {
  color: #5e5348;
}

.nav-button:hover,
.ghost-button:hover,
.icon-button:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.nav-button.active,
.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #050505, #20160d 72%, #ff7a00);
}

.primary-button:hover {
  background: linear-gradient(90deg, #18110a, #3a210b 68%, #ff9f1c);
}

.plan-card,
.hero-band,
.fab {
  border-color: #33200f;
  color: #fff;
  background: radial-gradient(circle at 78% 0, rgba(255, 122, 0, 0.42), transparent 42%), var(--navy);
}

.hero-band .eyebrow,
.plan-card .eyebrow {
  color: var(--gold);
}

.hero-band p,
.plan-card p {
  color: #ded6cc;
}

.plan-meter,
.bar-track,
.spark {
  background: #eadfce;
}

.plan-meter span,
.footer-cta {
  background: linear-gradient(90deg, #ff7a00, #ff9f1c);
}

.goal-meter span,
.bar-row.success .bar-fill,
.alert-dot {
  background: linear-gradient(90deg, #ff7a00, #ff9f1c);
}

.plan-upgrade,
.sidebar-account-actions .ghost-button {
  border-color: #5f3a12;
  color: #fff;
  background: #20160d;
}

.plan-upgrade:hover,
.sidebar-account-actions .ghost-button:hover {
  border-color: #ff7a00;
  background: #3a210b;
}

.sidebar-account,
.site-footer {
  border-color: #33200f;
  background: #080706;
}

.sidebar-account .account-chip > strong,
.account-chip strong {
  background: linear-gradient(135deg, #050505, #ff7a00);
}

.sidebar-account-copy .account-workspace {
  color: #ffb454;
}

.sidebar-account-copy small,
.footer-brand span,
.footer-standard {
  color: #b6aca0;
}

.spark::after,
.bar-fill,
.activity-icon {
  color: #ff7a00;
  background: var(--accent);
}

.activity-icon {
  background: #fff3df;
}

.tag {
  color: #7a3900;
}

.drawer-backdrop,
.modal-backdrop,
.mobile-backdrop {
  background: rgba(17, 16, 14, 0.55);
}

body.dark-mode {
  --bg: #050505;
  --panel: #11100e;
  --panel-solid: #11100e;
  --line: #332820;
  --muted: #b6aca0;
  --text: #fffaf3;
  --soft: #ded6cc;
  --navy: #050505;
}

body.dark-mode .login-screen {
  background: radial-gradient(circle at 18% 10%, rgba(255, 122, 0, 0.22), transparent 30%), var(--bg);
}

body.dark-mode .login-screen::before {
  background-image: linear-gradient(rgba(255, 148, 22, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 148, 22, 0.12) 1px, transparent 1px);
}

body.dark-mode .login-card,
body.dark-mode .auth-tabs,
body.dark-mode .auth-tab.active,
body.dark-mode .guest-button,
body.dark-mode .sidebar,
body.dark-mode .topbar,
body.dark-mode .panel,
body.dark-mode .record-card,
body.dark-mode .report-card,
body.dark-mode .confirm-modal,
body.dark-mode .upgrade-modal,
body.dark-mode .drawer,
body.dark-mode .drawer-head,
body.dark-mode .cloud-status,
body.dark-mode .icon-button,
body.dark-mode .ghost-button,
body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field textarea,
body.dark-mode .filters select,
body.dark-mode .filters input {
  background: var(--panel);
  color: var(--text);
}

body.dark-mode .sidebar-card,
body.dark-mode .search-wrap,
body.dark-mode .account-chip,
body.dark-mode .alert-pill,
body.dark-mode .tag,
body.dark-mode .empty-art {
  background: var(--panel-soft);
}

body.dark-mode .guest-button:hover,
body.dark-mode .ghost-button:hover,
body.dark-mode .icon-button:hover,
body.dark-mode .nav-button:hover {
  border-color: #7a4a16;
  background: #21180d;
  color: #fff;
}

body.dark-mode .nav-button.active,
body.dark-mode .plan-card,
body.dark-mode .hero-band,
body.dark-mode .fab {
  background: radial-gradient(circle at 78% 0, rgba(255, 122, 0, 0.42), transparent 42%), var(--navy);
}

body.dark-mode .spark,
body.dark-mode .bar-track {
  background: #2b241d;
}

body.dark-mode .toast {
  border-color: #332820;
  background: #11100e;
}

/* Final SINDRI auth spec shared across apps */
:root {
  --sindri-auth-bg: #050505;
  --sindri-auth-panel: #11100e;
  --sindri-auth-panel-soft: #191611;
  --sindri-auth-line: #332820;
  --sindri-auth-line-strong: #5f3a12;
  --sindri-auth-text: #fffaf3;
  --sindri-auth-muted: #b6aca0;
  --sindri-auth-accent: #ff7a00;
  --sindri-auth-accent-2: #ff9f1c;
  --sindri-auth-radius: 8px;
}

.login-screen {
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at 18% 10%, rgba(255, 122, 0, 0.18), transparent 30%), var(--sindri-auth-bg);
}

.login-screen::before {
  opacity: 0.58;
  background-image: linear-gradient(rgba(255, 148, 22, 0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 148, 22, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-card {
  width: min(440px, 100%);
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--sindri-auth-line);
  border-radius: var(--sindri-auth-radius);
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.login-brand {
  gap: 12px;
}

.login-brand img,
.login-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.login-brand strong {
  color: var(--sindri-auth-text);
  font: 800 19px Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.login-brand span,
.login-copy > p:last-child,
.guest-note {
  color: var(--sindri-auth-muted);
}

.login-brand span {
  margin-top: 3px;
  font-size: 11px;
}

.login-copy {
  margin-top: 4px;
}

.login-copy h1 {
  margin: 6px 0 8px;
  color: var(--sindri-auth-text);
  font: 800 30px/1.08 Manrope, Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.login-copy > p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  border: 0;
  border-radius: var(--sindri-auth-radius);
  background: var(--sindri-auth-panel-soft);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--sindri-auth-muted);
  background: transparent;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.24);
}

.auth-tab:hover {
  color: var(--sindri-auth-text);
}

.login-card label,
.login-card .field label {
  color: var(--sindri-auth-text);
  font-size: 12px;
  font-weight: 800;
}

.login-card input,
.login-card select,
.login-card textarea {
  min-height: 43px;
  border: 1px solid var(--sindri-auth-line);
  border-radius: var(--sindri-auth-radius);
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel-soft);
}

.login-card input::placeholder {
  color: #8b837b;
  opacity: 1;
}

.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus {
  border-color: var(--sindri-auth-accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.login-submit,
.login-card .primary-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--sindri-auth-accent);
  border-radius: var(--sindri-auth-radius);
  color: #fff;
  background: linear-gradient(90deg, #050505 0%, #11100e 58%, var(--sindri-auth-accent) 100%);
  font-weight: 800;
  box-shadow: none;
}

.login-submit:hover,
.login-card .primary-button:hover {
  border-color: var(--sindri-auth-accent-2);
  background: linear-gradient(90deg, #050505 0%, #20160d 55%, var(--sindri-auth-accent-2) 100%);
}

.auth-divider {
  gap: 12px;
  color: var(--sindri-auth-muted);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--sindri-auth-line);
}

.guest-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--sindri-auth-line);
  border-radius: var(--sindri-auth-radius);
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel-soft);
  font-weight: 800;
}

.guest-button:hover {
  border-color: var(--sindri-auth-line-strong);
  color: var(--sindri-auth-text);
  background: #21180d;
}

.guest-note {
  margin: -8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

body.dark .login-screen,
body.dark-mode .login-screen {
  background: radial-gradient(circle at 18% 10%, rgba(255, 122, 0, 0.18), transparent 30%), var(--sindri-auth-bg);
}

body.dark .login-card,
body.dark-mode .login-card,
body.dark .auth-tabs,
body.dark-mode .auth-tabs {
  border-color: var(--sindri-auth-line);
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel);
}

body.dark .auth-tab.active,
body.dark-mode .auth-tab.active,
body.dark .guest-button,
body.dark-mode .guest-button {
  border-color: var(--sindri-auth-line);
  color: var(--sindri-auth-text);
  background: var(--sindri-auth-panel-soft);
}

/* Final SINDRI controls pass */
input,
select,
textarea,
.search-wrap,
.field input,
.field select,
.field textarea,
.filters select,
.filters input,
.account-chip,
.icon-button,
.ghost-button {
  border-color: #332820;
  color: #11100e;
  background: #fffaf3;
}

input::placeholder,
textarea::placeholder {
  color: #8b837b;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.primary-button,
.nav-button.active {
  border-color: #ff7a00;
  color: #fff;
  background: linear-gradient(90deg, #050505, #20160d 72%, #ff7a00);
}

.primary-button:hover {
  background: linear-gradient(90deg, #18110a, #3a210b 68%, #ff9f1c);
}

.icon-button:hover,
.ghost-button:hover {
  border-color: #7a4a16;
  color: #11100e;
  background: #fff3df;
}

.drawer-backdrop,
.modal-backdrop,
.mobile-backdrop {
  background: rgba(17, 16, 14, 0.55);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .search-wrap,
body.dark-mode .field input,
body.dark-mode .field select,
body.dark-mode .field textarea,
body.dark-mode .filters select,
body.dark-mode .filters input,
body.dark-mode .account-chip,
body.dark-mode .icon-button,
body.dark-mode .ghost-button {
  border-color: #332820;
  color: #fffaf3;
  background: #191611;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #8b837b;
}

/* Auth inputs must stay on the SINDRI dark surface in every theme. */
.login-card input,
.login-card select,
.login-card textarea,
body.dark-mode .login-card input,
body.dark-mode .login-card select,
body.dark-mode .login-card textarea {
  border-color: var(--sindri-auth-line) !important;
  color: var(--sindri-auth-text) !important;
  background: var(--sindri-auth-panel-soft) !important;
  box-shadow: none;
}

.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus,
body.dark-mode .login-card input:focus,
body.dark-mode .login-card select:focus,
body.dark-mode .login-card textarea:focus {
  border-color: var(--sindri-auth-accent) !important;
  background: var(--sindri-auth-panel-soft) !important;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18) !important;
}

.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card textarea:-webkit-autofill,
.login-card textarea:-webkit-autofill:hover,
.login-card textarea:-webkit-autofill:focus,
.login-card select:-webkit-autofill,
.login-card select:-webkit-autofill:hover,
.login-card select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--sindri-auth-text) !important;
  caret-color: var(--sindri-auth-text) !important;
  border-color: var(--sindri-auth-accent) !important;
  box-shadow: 0 0 0 1000px var(--sindri-auth-panel-soft) inset, 0 0 0 3px rgba(255, 122, 0, 0.18) !important;
  transition: background-color 999999s ease-in-out 0s;
}


/* Shared TrueBit Forge North footer */
.site-footer { display: block; margin-top: 28px; padding: 0; overflow: hidden; border: 1px solid #33200f; border-radius: 10px; color: #fffaf3; background: radial-gradient(circle at 100% 0, rgba(255,122,0,.16), transparent 34%), #050505; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.tbfn-footer-link { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 20px; min-height: 104px; padding: 16px 18px; color: inherit; text-decoration: none; }
.tbfn-footer-logo { width: 72px; height: 72px; object-fit: contain; }
.tbfn-footer-copy, .tbfn-footer-copy strong, .tbfn-footer-copy span { display: block; }
.tbfn-footer-copy strong { margin-bottom: 5px; color: #fff; font-size: 16px; line-height: 1.3; }
.tbfn-footer-copy span { max-width: 620px; color: #c9c0b6; font-size: 12px; line-height: 1.55; }
.tbfn-footer-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 6px; color: #050505; background: linear-gradient(90deg,#ff7a00,#ff9f1c); font-size: 13px; font-weight: 800; text-align: center; transition: 180ms ease; }
.tbfn-footer-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.tbfn-footer-link:hover .tbfn-footer-action { background: #ffb454; transform: translateY(-1px); }
.tbfn-footer-link:focus-visible { outline: 3px solid #ff9f1c; outline-offset: -3px; }
@media (max-width: 720px) { .tbfn-footer-link { grid-template-columns: 58px minmax(0,1fr); gap: 14px; padding: 18px; } .tbfn-footer-logo { width: 58px; height: 58px; } .tbfn-footer-action { grid-column: 1 / -1; width: 100%; } }
