:root {
  color-scheme: light;
  --bg: #f3f6f8;
  --panel: #ffffff;
  --ink: #101820;
  --muted: #64717f;
  --line: #dce4ea;
  --brand: #00a6b7;
  --brand-strong: #087988;
  --accent: #f4c542;
  --mint: #22c55e;
  --rose: #f43f5e;
  --orange: #f97316;
  --violet: #7c3aed;
  --blue: #2563eb;
  --success: #18734d;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 166, 183, 0.07), transparent 28%),
    linear-gradient(315deg, rgba(244, 197, 66, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  padding: 48px max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(rgba(9, 21, 31, 0.66), rgba(9, 21, 31, 0.66)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%2309151f'/%3E%3Cg opacity='.4' stroke='%2300a6b7' stroke-width='2' fill='none'%3E%3Cpath d='M0 680 C240 610 382 664 560 604 S840 468 1088 532 1320 550 1400 500'/%3E%3Cpath d='M0 740 C200 704 376 740 556 690 S862 584 1088 640 1320 640 1400 606'/%3E%3C/g%3E%3Cg fill='%23f4c542' opacity='.22'%3E%3Ccircle cx='1030' cy='250' r='180'/%3E%3Ccircle cx='1140' cy='430' r='80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.login-copy h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 660px;
  margin: 0;
  color: #d8e2e9;
  font-size: 18px;
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 760px;
}

.glass-tile {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.glass-tile strong {
  display: block;
  margin-top: 12px;
}

.glass-tile span {
  display: block;
  margin-top: 4px;
  color: #d8e2e9;
  font-size: 13px;
}

.login-card,
.panel,
.metric,
.tool-card,
.notice,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.login-card {
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 18px 0 6px;
  font-size: 32px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sub-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.linked-measure {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fbfc;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 166, 183, 0.16);
}

textarea {
  min-height: 106px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.primary,
.ghost,
.tab-btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary {
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  background: var(--brand);
  color: #fff;
}

.primary:hover {
  background: var(--brand-strong);
}

.secondary-primary {
  margin-top: 14px;
  background: var(--ink);
}

.ghost {
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.ghost.compact {
  padding: 7px 9px;
  font-size: 12px;
}

.danger-action {
  width: 100%;
  margin-top: 14px;
  color: var(--danger);
}

.error {
  display: none;
  margin-top: 14px;
  border: 1px solid #f2b8b5;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff4f2;
  color: var(--danger);
  font-weight: 750;
}

.error.show {
  display: block;
}

.preview-note {
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 12px;
  background: #eef3f6;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand-mark,
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--brand), #101820);
  box-shadow: 0 10px 24px rgba(0, 166, 183, 0.24);
}

.brand-mark svg,
.icon-box svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.brand-title {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #526171;
  min-height: 38px;
  white-space: nowrap;
}

.nav-btn.active {
  border-color: #17212b;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.12);
}

.nav-btn:not(.active):hover {
  border-color: var(--line);
  background: #f4f7f9;
  color: var(--ink);
}

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

.user-actions {
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
}

.language-select span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-select select {
  width: auto;
  min-width: 58px;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #dff6f8;
  color: #075b65;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  align-content: end;
  border-radius: var(--radius);
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(9, 21, 31, 0.92), rgba(9, 21, 31, 0.54)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1180' height='420' viewBox='0 0 1180 420'%3E%3Crect width='1180' height='420' fill='%2309151f'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='10' opacity='.18'%3E%3Ccircle cx='800' cy='284' r='74'/%3E%3Ccircle cx='1010' cy='284' r='74'/%3E%3Cpath d='M800 284l94-142 44 142 72-120M894 142h88'/%3E%3C/g%3E%3Cpath d='M0 330 C180 292 304 330 468 284 S760 206 1180 240' stroke='%2300a6b7' stroke-width='12' fill='none' opacity='.65'/%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-photo {
  min-height: 520px;
}

.hero h1 {
  max-width: 780px;
  margin: 16px 0 8px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.hero h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.hero p,
.section-head p {
  max-width: 720px;
  margin: 0;
  color: #d8e2e9;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-primary,
.hero-secondary {
  width: auto;
  margin-top: 0;
}

.hero-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-punch {
  margin-top: 18px !important;
  color: #fff !important;
  font-weight: 900;
}

.home-story {
  margin-top: 18px;
  padding: 24px;
}

.home-story > div:first-child {
  max-width: 780px;
}

.home-story h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.home-story p {
  color: var(--muted);
  line-height: 1.65;
}

.home-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-story-card {
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfc;
}

.home-story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dbe7ec;
}

.home-story-card .icon-box {
  margin: 18px 18px 0;
}

.home-story-card h3 {
  margin: 16px 18px 6px;
  font-size: 20px;
}

.home-story-card p {
  margin: 0 18px 18px;
  font-size: 14px;
}

.cards-grid,
.metrics-grid,
.suggestion-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

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

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  text-align: left;
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.05);
}

.tool-card::before,
.metric::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--brand);
}

.tool-card:nth-child(2)::before,
.metric:nth-child(2)::before {
  background: var(--orange);
}

.tool-card:nth-child(3)::before,
.metric:nth-child(3)::before {
  background: var(--violet);
}

.tool-card:nth-child(4)::before,
.metric:nth-child(4)::before {
  background: var(--blue);
}

.tool-card:nth-child(5)::before {
  background: var(--success);
}

.tool-card:nth-child(6)::before {
  background: var(--accent);
}

.tool-card:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tool-card h2 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.tool-card p,
.notice,
.metric p,
.empty,
.footer {
  color: var(--muted);
  line-height: 1.55;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #dff6f8;
  color: #075b65;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notice {
  margin-top: 18px;
  padding: 16px;
}

.notice.warning {
  border-color: #f2d48f;
  background: #fff8e1;
  color: #7b5410;
}

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

.section-head h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.section-head p {
  color: var(--muted);
}

.counter {
  flex: 0 0 auto;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

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

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 20px;
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.05);
}

.panel h2,
.panel h3 {
  margin: 0 0 16px;
}

.control-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-value {
  border-radius: 999px;
  padding: 6px 10px;
  background: #dff6f8;
  color: #075b65;
  font-weight: 900;
}

.success-note {
  border-color: #b7e4ca;
  background: #ecfdf3;
  color: var(--success);
  font-weight: 800;
}

.profile-gear-highlight {
  border: 1px solid #b7e4ca;
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(135deg, #ecfdf3, #f4fcfd);
}

.profile-gear-highlight div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.profile-gear-highlight strong {
  color: var(--success);
  font-size: 34px;
  line-height: 1;
}

.profile-gear-highlight span:not(.label) {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.profile-gear-highlight p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gear-picker {
  display: grid;
  gap: 14px;
  border: 2px solid #c9eef2;
  border-radius: var(--radius);
  padding: 18px;
  background: #f4fcfd;
  overflow: visible;
}

.gear-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gear-picker-head strong {
  display: block;
  margin-top: 4px;
  font-size: 42px;
  line-height: 1;
}

.gear-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gear-stepper {
  display: grid;
  gap: 8px;
  border: 1px solid #d4e2e8;
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.gear-stepper-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gear-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  grid-column: 1 / -1;
  order: 1;
  border: 2px solid #d4e2e8;
  border-radius: var(--radius);
  background: #f9feff;
  color: var(--ink);
  text-align: center;
  min-height: 58px;
  padding: 7px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.gear-readout span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.step-btn {
  order: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  font-size: 26px;
  font-weight: 900;
}

.decimal-picker {
  display: grid;
  gap: 6px;
  border-top: 1px solid #dcebee;
  padding-top: 10px;
}

.decimal-toggle {
  border: 1px dashed #b8c8d1;
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: #526171;
  font-size: 13px;
  font-weight: 900;
}

.decimal-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.decimal-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.decimal-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.decimal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.decimal-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.decimal-chip.active {
  border-color: var(--brand);
  background: #dff6f8;
  color: #075b65;
}

.step-btn:not(:disabled):hover {
  border-color: var(--brand);
}

.danger-text {
  color: var(--danger);
}

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

.metric {
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f9fdfe);
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.05);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title-row h2,
.panel-title-row p {
  margin: 0;
}

.panel-title-row p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.save-profile-btn {
  width: auto;
  min-width: 150px;
}

.save-state {
  border: 1px dashed #b7cbd4;
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fcfd;
  color: var(--muted);
  font-weight: 850;
}

.save-state.saved {
  border-color: #b7e4ca;
  background: #ecfdf3;
  color: var(--success);
}

.chrono-save-grid {
  display: grid;
  gap: 10px;
}

.chrono-save-grid .ghost,
.chrono-save-grid .primary {
  width: 100%;
}

.chrono-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e5fbfd;
  color: #075b65;
  font-size: 12px;
  font-weight: 950;
}

.chrono-type.gate {
  background: #fff2d2;
  color: #8a5a00;
}

.chrono-type.lap {
  background: #f0e8ff;
  color: #5b21b6;
}

.sub-value {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric p {
  margin: 10px 0 0;
  font-size: 13px;
}

.compare-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  border: 1px solid #c9eef2;
  border-radius: var(--radius);
  padding: 16px;
  background: #f4fcfd;
}

.compare-panel > div {
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.compare-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.compare-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  padding: 6px;
  background: #eef3f6;
}

.reverse-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid #d9c8ff;
  border-radius: var(--radius);
  padding: 16px;
  background: #f7f2ff;
}

.reverse-apply {
  grid-column: 2;
  margin-top: 0;
  align-self: end;
}

.reverse-panel strong {
  display: block;
  margin-top: 4px;
  color: #4c1d95;
  font-size: 28px;
}

.reverse-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.tab-btn {
  padding: 12px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 32, 0.12);
}

.table-wrap {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
}

.table-head {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-body {
  max-height: 420px;
  overflow: auto;
}

.table-row:nth-child(even) {
  background: #f7fafc;
}

.table-row.current {
  background: #e5fbfd;
  box-shadow: inset 4px 0 0 var(--brand);
}

.chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef3f6;
  font-weight: 850;
}

.diff-up {
  color: var(--success);
  font-weight: 900;
}

.diff-down {
  color: var(--danger);
  font-weight: 900;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.pressure-advice {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pressure-advice div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #c9eef2;
  border-radius: var(--radius);
  padding: 14px;
  background: #f4fcfd;
  color: var(--muted);
  line-height: 1.5;
}

.pressure-advice svg {
  color: var(--brand-strong);
}

.suggestion-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.suggestion,
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.roadmap {
  margin-top: 18px;
}

.suggestion strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.big-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f7fafc;
  font-weight: 900;
}

.big-chip.selected {
  border-color: var(--brand);
  background: #dff6f8;
  color: #075b65;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-loader {
  display: grid;
  gap: 10px;
  border: 1px solid #d9e8ec;
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fcfd;
}

.profile-loader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-loader-head span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.load-profile-btn {
  width: 100%;
}

.profile-pill {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.profile-pill span {
  color: var(--muted);
  font-size: 13px;
}

.profile-pill.active {
  border-color: var(--brand);
  background: #e5fbfd;
  box-shadow: inset 4px 0 0 var(--brand);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:nth-child(even) td {
  background: #f7fafc;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 24px 34px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .login-shell,
  .workspace {
    grid-template-columns: 1fr;
  }

  .login-card {
    max-width: 520px;
  }

  .metrics-grid,
  .cards-grid,
  .home-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decimal-row,
  .compare-panel,
  .reverse-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .panel-title-row {
    flex-direction: column;
  }

  .user-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .user-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
  }

  .login-shell,
  .page {
    padding: 24px 16px;
  }

  .login-highlights,
  .metrics-grid,
    .cards-grid,
    .home-story-grid,
  .suggestion-grid,
  .feature-grid,
  .gear-step-grid,
  .compare-panel,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .reverse-panel {
    grid-template-columns: 1fr;
  }

  .reverse-apply {
    grid-column: 1;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
  }
}
