:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f3f5;
  --surface-3: #e9edf0;
  --ink: #111416;
  --ink-2: #2d3338;
  --muted: #68737d;
  --muted-2: #8a949d;
  --line: #dce2e7;
  --line-strong: #c7d0d8;
  --rail: #101214;
  --rail-2: #171a1d;
  --rail-line: rgba(255, 255, 255, 0.1);
  --accent: #087a67;
  --accent-soft: #dff3ee;
  --blue: #265bd6;
  --blue-soft: #e3ebff;
  --amber: #b67814;
  --amber-soft: #fff0d7;
  --red: #b94737;
  --red-soft: #fde7e1;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(8, 122, 103, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(17, 20, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 22, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 18px 14px;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    var(--rail);
  color: #f8fafc;
  border-right: 1px solid #050607;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 8px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  color: #0f1214;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 4px;
  color: #a8b1ba;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9d1d9;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
}

.nav-list a.active {
  background: #f8fafc;
  color: #101214;
}

.nav-list a.active::before {
  position: absolute;
  left: -14px;
  width: 3px;
  height: 22px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  content: "";
}

.icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.nav-list a.active .icon {
  background: var(--ink);
  color: #ffffff;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--rail-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #a8b1ba;
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #21c084;
  box-shadow: 0 0 0 4px rgba(33, 192, 132, 0.16);
}

.workspace {
  min-width: 0;
  max-width: 100vw;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto 18px;
  padding: 0 2px;
}

.eyebrow,
.section-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.topbar-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 20, 22, 0.14);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #000000;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: #ffffff;
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.compact-button {
  min-height: 38px;
  padding-inline: 12px;
}

.provider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.provider-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.provider-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.view {
  display: none;
  max-width: 1320px;
  margin: 0 auto;
}

.view.active {
  display: block;
}

.home-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.home-hero {
  min-height: 420px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 122, 103, 0.1), rgba(38, 91, 214, 0.08) 48%, rgba(182, 120, 20, 0.08)),
    #ffffff;
  box-shadow: var(--shadow);
}

.home-hero h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: 0;
}

.home-lede {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.52;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.home-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
}

.home-rules span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
}

.home-output {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101214;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.home-output .section-label {
  color: #9da7b0;
}

.output-stack {
  display: grid;
  gap: 10px;
}

.output-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.output-row span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  color: #101214;
  font-size: 12px;
  font-weight: 950;
}

.output-row strong,
.output-row p {
  grid-column: 2;
}

.output-row strong {
  display: block;
  margin-top: 2px;
  color: #ffffff;
}

.output-row p {
  margin: 4px 0 0;
  color: #b9c2ca;
  line-height: 1.45;
}

.output-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.output-note strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
}

.output-note p {
  margin-bottom: 0;
  color: #b9c2ca;
  line-height: 1.5;
}

.home-section {
  margin-bottom: 22px;
}

.section-heading {
  display: grid;
  gap: 2px;
  justify-items: start;
  margin-bottom: 14px;
}

.section-heading h2 {
  max-width: 780px;
}

.home-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mode-card {
  min-width: 0;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mode-card strong,
.mode-card span {
  display: block;
}

.mode-card strong {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

.mode-card span {
  color: var(--muted);
  line-height: 1.5;
}

.process-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

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

.process-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.process-grid article > span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.process-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.55fr);
  gap: 16px;
}

.panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.daily-panel,
.action-panel,
.saved-panel,
.form-panel,
.output-panel,
.tool-panel,
.connection-card {
  backdrop-filter: blur(10px);
}

.daily-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 122, 103, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff, #f9fbfc);
  box-shadow: var(--shadow);
}

.panel-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(8, 122, 103, 0.16);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #075e50;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.quiet {
  border-color: var(--line);
  background: var(--surface-2);
  color: #5f6b75;
}

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

.day-output {
  margin-top: 16px;
}

.day-output:empty {
  display: none;
}

.day-plan {
  display: grid;
  gap: 10px;
}

.day-plan-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.day-plan-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.day-plan-step strong,
.day-plan-step small {
  display: block;
}

.day-plan-step small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.action-panel,
.saved-panel {
  grid-column: span 1;
}

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

.action-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.action-card strong,
.action-card span {
  display: block;
}

.action-card strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.action-card span,
.latest-output {
  color: var(--muted);
  line-height: 1.45;
}

.latest-output {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 14px;
}

.latest-output strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.auth-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(8, 122, 103, 0.08), transparent 44%),
    #ffffff;
}

.auth-state h2 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.12;
}

.auth-state p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.auth-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.auth-profile strong,
.auth-profile small {
  display: block;
}

.auth-profile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.email-auth-form label {
  gap: 8px;
}

.inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.provider-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.telegram-login-slot {
  min-width: 0;
}

.telegram-login-slot iframe {
  max-width: 100%;
}

.primary-provider {
  min-height: 48px;
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 20, 22, 0.14);
}

.primary-provider:hover {
  background: #000000;
}

.quiet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quiet-options::before {
  content: "More ways to sign in are coming next:";
  flex-basis: 100%;
}

.quiet-options span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-weight: 800;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
}

.auth-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-panel.is-signed-in .email-auth-form,
.auth-panel.is-signed-in .provider-actions,
.auth-panel.is-signed-in .quiet-options {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 850;
}

label.full,
.form-actions {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

select {
  cursor: pointer;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 122, 103, 0.55);
  box-shadow: var(--focus);
}

.output-panel {
  min-height: 560px;
}

.output-empty {
  display: grid;
  place-items: center;
  min-height: 410px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(rgba(17, 20, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 22, 0.04) 1px, transparent 1px),
    #fbfcfd;
  background-size: 22px 22px;
  color: var(--muted);
  text-align: center;
}

.plan-output,
.structured-output,
.item-list {
  display: grid;
  gap: 10px;
}

.plan-section,
.list-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.plan-section h3,
.list-item strong {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
}

.plan-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.tool-panel {
  max-width: 980px;
  box-shadow: var(--shadow);
}

.tool-panel h2 {
  margin-bottom: 18px;
}

.mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}

.reset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.connections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.connection-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
}

.connection-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.connection-card:nth-child(1) .connection-icon {
  background: var(--blue);
}

.connection-card:nth-child(2) .connection-icon {
  background: var(--accent);
}

.connection-card:nth-child(3) .connection-icon {
  background: var(--amber);
}

.connection-card:nth-child(4) .connection-icon {
  background: var(--red);
}

.connection-card p,
.list-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  margin-bottom: 16px;
}

.support-hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(38, 91, 214, 0.1), transparent 44%),
    linear-gradient(180deg, #ffffff, #f9fbfc);
  box-shadow: var(--shadow);
}

.support-hero h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 26px;
}

.support-hero p,
.support-note li,
.support-disclaimer p {
  color: var(--muted);
  line-height: 1.58;
}

.support-hero p {
  max-width: 840px;
  margin-bottom: 12px;
}

.support-hero p:last-child,
.support-disclaimer p {
  margin-bottom: 0;
}

.support-note ul {
  margin: 0;
  padding-left: 18px;
}

.support-note li + li {
  margin-top: 9px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.wallet-topline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-topline h2 {
  font-size: 17px;
}

.wallet-topline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 950;
}

.wallet-mark.btc {
  background: #c47a0c;
}

.wallet-mark.eth {
  background: #265bd6;
}

.wallet-mark.usdt {
  background: #087a67;
}

.wallet-mark.sol {
  background: #7f3fd1;
}

.wallet-address {
  display: block;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wallet-copy {
  width: 100%;
}

.support-disclaimer {
  border-color: rgba(182, 120, 20, 0.28);
  background: var(--amber-soft);
  box-shadow: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #101214;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .home-landing {
    grid-template-columns: 1fr;
  }

  .home-output {
    min-height: auto;
  }

  .home-mode-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .sidebar {
    position: static;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #050607;
  }

  .brand {
    min-height: 46px;
    padding: 4px;
  }

  .nav-list {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .nav-list a {
    flex: 0 0 auto;
    min-width: 94px;
    justify-content: center;
  }

  .nav-list a.active::before {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .mini-form {
    grid-template-columns: 1fr;
  }

  .provider-actions,
  .inline-control {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 16px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 18px;
  }

  .topbar-actions,
  .topbar-actions > * {
    width: 100%;
    min-width: 0;
  }

  .daily-form,
  .action-list,
  .builder-form,
  .reset-grid,
  .home-mode-grid,
  .process-grid,
  .connections-grid,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 26px;
  }

  .home-hero h2 {
    font-size: 42px;
    line-height: 1;
  }

  .home-lede {
    font-size: 16px;
  }

  .home-actions,
  .home-actions > * {
    width: 100%;
    min-width: 0;
  }

  .panel {
    padding: 16px;
  }

  .nav-list a {
    min-width: 72px;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .brand small {
    display: none;
  }

  .home-hero h2 {
    font-size: 34px;
  }
}
