:root {
  --bg: #f8f9fc;
  --ink: #141414;
  --muted: #667085;
  --line: #e3e7ef;
  --panel: #ffffff;
  --panel-2: #f0f4f8;
  --charcoal: #ffffff;
  --cyan: #00c3df;
  --magenta: #ff4f9a;
  --lime: #a7f943;
  --amber: #f4a62a;
  --red: #ec4b5f;
  --focus: #111827;
  --shadow: 0 18px 42px rgba(20, 20, 20, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar: 282px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 79, 154, 0.08), transparent 32vw),
    radial-gradient(circle at top left, rgba(167, 249, 67, 0.12), transparent 28vw),
    var(--bg);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
label.import-button:focus-within {
  outline: 3px solid rgba(8, 168, 189, 0.35);
  outline-offset: 2px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--charcoal);
  color: var(--ink);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
}

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

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #141414 0%, var(--magenta) 52%, var(--lime) 100%);
  border-radius: var(--radius);
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
}

.brand-subtitle,
.sidebar-label,
.mini-label,
.field-label,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}

.sidebar-label {
  color: #98a2b3;
  margin-bottom: 8px;
}

.business-list,
.nav-list {
  display: grid;
  gap: 8px;
}

.business-button,
.nav-button,
.ghost-button,
.solid-button,
.icon-button,
.chip-button,
.import-button {
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 42px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.business-button:hover,
.nav-button:hover,
.ghost-button:hover,
.solid-button:hover,
.icon-button:hover,
.chip-button:hover,
.import-button:hover {
  transform: translateY(-1px);
}

.business-button {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #f7f8fb;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  border: 1px solid transparent;
}

.business-button.active {
  background: #f2ffe3;
  color: var(--ink);
  border-color: rgba(53, 199, 123, 0.45);
}

.business-dot {
  width: 10px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent, var(--cyan));
}

.business-name {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-meta {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  opacity: 0.68;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  color: #475467;
  text-align: left;
}

.nav-button svg,
.ghost-button svg,
.solid-button svg,
.icon-button svg,
.chip-button svg,
.import-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-button.active {
  background: #141414;
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.15);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.side-promo {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(167, 249, 67, 0.55);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #141414, #27272a);
  color: #fff;
}

.side-promo span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.side-promo strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.side-promo p {
  margin: 0;
  color: #d8dee8;
  font-size: 12px;
  line-height: 1.35;
}

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

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 0.96;
}

.page-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.page-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.header-actions,
.row-actions,
.form-actions,
.toolbar-actions,
.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.solid-button,
.ghost-button,
.chip-button,
.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  font-weight: 700;
  text-decoration: none;
}

.solid-button {
  background: var(--ink);
  color: #fff;
}

.solid-button.accent {
  background: var(--lime);
  color: #17210a;
}

.solid-button.magenta {
  background: var(--magenta);
  color: #fff;
}

.ghost-button,
.import-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.chip-button {
  min-height: 34px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
}

.chip-button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.icon-button.danger,
.ghost-button.danger {
  color: var(--red);
}

.view-grid {
  display: grid;
  gap: 18px;
}

.module-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.module-tile {
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.02);
}

.module-tile.active {
  border-color: rgba(20, 20, 20, 0.78);
  background: #fff;
  box-shadow: var(--shadow);
}

.module-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #141414;
}

.module-icon svg {
  width: 19px;
  height: 19px;
}

.module-icon.lime {
  background: var(--lime);
}

.module-icon.magenta {
  background: rgba(255, 79, 154, 0.18);
  color: #a71957;
}

.module-icon.cyan {
  background: rgba(0, 195, 223, 0.16);
  color: #03788a;
}

.module-icon.amber {
  background: rgba(244, 166, 42, 0.2);
  color: #7a4c00;
}

.module-tile strong,
.module-tile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-tile strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
}

.module-tile small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

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

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(167, 249, 67, 0.22), rgba(255, 79, 154, 0.11)),
    #fff;
}

.dashboard-hero h2 {
  max-width: 820px;
  margin: 5px 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 0.98;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: #374151;
  line-height: 1.5;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analytics-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border-left: 5px solid var(--lime);
  background:
    linear-gradient(135deg, rgba(53, 199, 123, 0.16), rgba(255, 79, 139, 0.08)),
    #fff;
}

.analytics-hero h2 {
  max-width: 780px;
  margin: 4px 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.98;
}

.analytics-hero p {
  max-width: 780px;
  margin: 0 0 12px;
  color: #2b2f38;
  line-height: 1.5;
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analytics-config input[type="password"] {
  letter-spacing: 0.06em;
}

.analytics-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.analytics-loading svg {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.analytics-error {
  border-left: 5px solid var(--red);
}

.analytics-error p {
  margin: 8px 0;
  color: #7f1d1d;
  font-weight: 700;
}

.line-chart {
  display: grid;
  gap: 10px;
}

.chart-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.line-chart svg {
  width: 100%;
  height: 230px;
  display: block;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.chart-grid {
  fill: none;
  stroke: rgba(102, 112, 133, 0.18);
  stroke-width: 0.5;
}

.chart-line {
  fill: none;
  stroke: var(--magenta);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.content-score {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.content-score strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 44px;
  line-height: 0.95;
}

.content-score span {
  color: var(--muted);
  font-weight: 700;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-bar-track {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 999px;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.mini-bar-fill.cyan {
  background: var(--cyan);
}

.mini-bar-fill.magenta {
  background: var(--magenta);
}

.mini-bar-fill.lime {
  background: var(--lime);
}

.mini-bar-fill.amber {
  background: var(--amber);
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.analytics-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.analytics-table td:nth-child(4),
.analytics-table td:nth-child(5),
.analytics-table td:nth-child(6) {
  font-weight: 700;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.03), 0 10px 26px rgba(20, 20, 20, 0.035);
}

.panel.pad {
  padding: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 0;
}

.panel-title {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 21px;
  line-height: 1.1;
}

.panel-body {
  padding: 16px;
}

.metric {
  display: grid;
  gap: 10px;
  min-height: 132px;
  border-top: 0;
  border-left: 5px solid var(--metric, var(--cyan));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 252, 0.96)),
    #fff;
}

.metric-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 0.9;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef1f6;
  color: #39404c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.cyan {
  background: rgba(8, 168, 189, 0.12);
  color: #086b78;
}

.badge.magenta {
  background: rgba(216, 72, 144, 0.12);
  color: #91325f;
}

.badge.lime {
  background: rgba(133, 184, 59, 0.16);
  color: #496b16;
}

.badge.amber {
  background: rgba(229, 157, 26, 0.17);
  color: #7b520b;
}

.badge.red {
  background: rgba(216, 74, 74, 0.12);
  color: #993535;
}

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

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

.task-line,
.idea-card,
.business-card,
.suggestion-line {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent, var(--cyan));
  border-radius: var(--radius);
}

.task-line,
.suggestion-line {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.task-line-header,
.idea-card-header,
.business-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.task-title,
.idea-title,
.business-card-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.task-title.done {
  color: var(--muted);
  text-decoration: line-through;
}

.task-meta,
.idea-meta,
.muted-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.publish-kit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.kit-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  padding: 10px;
}

.kit-block.wide {
  grid-column: 1 / -1;
}

.kit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.kit-heading .icon-button {
  width: 30px;
  height: 30px;
}

.kit-heading .icon-button svg {
  width: 15px;
  height: 15px;
}

.kit-block p {
  margin: 0;
  color: #242932;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.checklist {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  color: #242932;
  font-size: 13px;
  line-height: 1.35;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--cyan);
  border-radius: 2px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.search-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.search-input {
  min-height: 44px;
  padding: 0 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select {
  min-height: 42px;
  padding: 0 11px;
}

.field textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

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

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

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

.idea-card,
.business-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.idea-card-body {
  display: grid;
  gap: 10px;
}

.idea-caption {
  color: #242932;
  line-height: 1.45;
}

.status-select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

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

.kanban-column {
  min-width: 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kanban-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
}

.kanban-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.calendar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.calendar-board {
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-header span {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--line);
  gap: 1px;
}

.day-cell {
  min-height: 126px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.day-cell.outside {
  background: #f0f2f6;
  color: #9aa3b2;
}

.day-cell.today {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.day-cell.selected {
  background: #fcf7ff;
  box-shadow: inset 0 0 0 2px var(--magenta);
}

.day-number {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
}

.day-items {
  display: grid;
  gap: 5px;
  align-content: start;
}

.calendar-pill {
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(8, 168, 189, 0.14);
  color: #075c67;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-pill.magenta {
  background: rgba(216, 72, 144, 0.13);
  color: #873058;
}

.calendar-pill.amber {
  background: rgba(229, 157, 26, 0.18);
  color: #7a520a;
}

.calendar-pill.lime {
  background: rgba(133, 184, 59, 0.17);
  color: #466612;
}

.day-overflow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 510px) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at 78% 18%, rgba(167, 249, 67, 0.22), transparent 25vw),
    radial-gradient(circle at 92% 78%, rgba(255, 79, 154, 0.16), transparent 24vw),
    var(--bg);
}

.auth-card,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-card {
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
}

.auth-brand,
.auth-panel-top,
.auth-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.auth-pill svg {
  width: 16px;
  height: 16px;
}

.auth-title {
  max-width: 11ch;
  margin: 8px 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 700;
  line-height: 0.9;
}

.auth-copy {
  max-width: 42rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-input-wrap {
  min-height: 50px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.auth-input-wrap svg {
  width: 18px;
  height: 18px;
  color: #98a2b3;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid rgba(236, 75, 95, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(236, 75, 95, 0.08);
  color: #9f2636;
  font-size: 13px;
  font-weight: 700;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-panel {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 96px));
  padding: clamp(20px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(28, 31, 36, 0.92)),
    var(--ink);
  color: #fff;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: auto -18% -22% auto;
  width: 52%;
  aspect-ratio: 1;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.86;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 14% auto auto -8%;
  width: 34%;
  aspect-ratio: 1;
  background: var(--magenta);
  clip-path: polygon(0 0, 100% 22%, 72% 100%, 12% 78%);
  opacity: 0.78;
}

.auth-panel-top,
.auth-stats,
.auth-preview {
  position: relative;
  z-index: 1;
}

.auth-panel-top span,
.auth-stats span {
  color: #b8c0cc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-panel-top strong {
  max-width: 12rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 0.95;
  text-align: right;
}

.auth-stats {
  margin-top: 44px;
}

.auth-stats div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.auth-stats strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.auth-preview {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.auth-preview div {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 26%, transparent 26% 32%, rgba(255, 255, 255, 0.08) 32% 100%),
    rgba(255, 255, 255, 0.08);
}

.auth-preview div:nth-child(2) {
  width: 86%;
  margin-left: auto;
  border-color: rgba(167, 249, 67, 0.38);
}

.auth-preview div:nth-child(3) {
  width: 74%;
  border-color: rgba(0, 195, 223, 0.36);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .span-3,
  .span-4,
  .span-5,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }

  .idea-grid,
  .business-grid,
  .module-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-wrap {
    grid-template-columns: 1fr;
  }

  .analytics-hero {
    grid-template-columns: 1fr;
  }

  .analytics-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .auth-card,
  .auth-panel {
    min-height: auto;
  }

  .auth-panel-top {
    align-items: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .form-grid,
  .idea-grid,
  .business-grid,
  .module-rail,
  .kanban,
  .publish-kit {
    grid-template-columns: 1fr;
  }

  .kit-block.wide {
    grid-column: auto;
  }

  .dashboard-hero,
  .analytics-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions,
  .analytics-actions {
    justify-content: flex-start;
  }

  .analytics-actions .solid-button,
  .analytics-actions .ghost-button {
    width: auto;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    padding: 12px;
  }

  .auth-card,
  .auth-panel {
    padding: 18px;
  }

  .auth-title {
    max-width: 12ch;
  }

  .auth-stats {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .auth-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-panel-top strong {
    max-width: none;
    text-align: left;
  }

  .workspace {
    padding: 12px;
  }

  .calendar-board {
    overflow-x: auto;
  }

  .calendar-header,
  .calendar-grid {
    min-width: 720px;
  }

  .panel-header,
  .task-line-header,
  .idea-card-header,
  .business-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .solid-button,
  .ghost-button,
  .import-button {
    width: 100%;
  }

  .analytics-actions .solid-button,
  .analytics-actions .ghost-button {
    width: 100%;
  }
}
