:root {
  color-scheme: dark;
  --bg: #061018;
  --bg2: #0a1721;
  --panel: rgba(15, 30, 42, 0.88);
  --panel2: rgba(10, 22, 32, 0.94);
  --line: rgba(114, 148, 174, 0.22);
  --line2: rgba(255, 255, 255, 0.08);
  --ink: #f4f8fb;
  --muted: #9fb0bf;
  --soft: #c8d4de;
  --pink: #e3295b;
  --purple: #984bf3;
  --blue: #3d8dff;
  --green: #43c970;
  --orange: #f5a147;
  --gold: #f4b942;
  --danger: #e45768;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 87, 124, 0.24), transparent 32%),
    linear-gradient(135deg, #03080d 0%, #08131d 48%, #020609 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 172px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(5, 13, 20, 0.96);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand {
  min-height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
}

.brand-word {
  font-size: 1.82rem;
  line-height: 0.86;
  letter-spacing: 0.16em;
  font-weight: 300;
}

.brand small {
  display: block;
  margin-top: 58px;
  color: var(--soft);
  font-size: 0.72rem;
}

nav {
  display: grid;
  gap: 3px;
  overflow-y: auto;
}

nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
  color: #dce6ed;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
}

nav a:hover,
nav a.active {
  background: linear-gradient(90deg, var(--pink), #c91f4d);
  color: #fff;
}

.grouped-nav {
  gap: 12px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group strong {
  padding: 0 10px 3px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 35, 50, 0.88);
}

.support-card strong,
.support-card small,
.support-card a {
  display: block;
}

.support-card small {
  color: var(--muted);
  margin: 2px 0 10px;
}

.support-card a {
  text-align: center;
  padding: 8px;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
}

main {
  margin-left: 172px;
  padding: 9px 12px 24px;
}

.simple-home {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  padding: 24px;
}

.home-hero,
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-hero h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  line-height: 1.02;
}

.home-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.help-link,
.section-title a {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

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

.start-card,
.home-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 29, 42, 0.98), rgba(8, 18, 28, 0.98));
  box-shadow: var(--shadow);
}

.start-card {
  min-height: 172px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
}

.start-card.primary {
  background: linear-gradient(145deg, rgba(227, 41, 91, 0.92), rgba(84, 31, 54, 0.98));
}

.start-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.start-card strong {
  display: block;
  font-size: 1.08rem;
}

.start-card small {
  color: var(--soft);
  line-height: 1.35;
}

.team-mode,
.quick-actions,
.onboarding {
  display: grid;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.home-panel {
  padding: 16px;
}

.home-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.home-list,
.house-list {
  display: grid;
  gap: 8px;
}

.home-row,
.house-pill,
.empty-home {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.home-row strong,
.house-pill strong {
  display: block;
  color: #fff;
}

.home-row small,
.house-pill span,
.empty-home {
  color: var(--muted);
}

.home-row > span {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 900;
}

.house-pill {
  color: var(--ink);
  text-decoration: none;
}

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

.quick-grid a {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--pink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.onboarding ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding li {
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.onboarding strong,
.onboarding span {
  display: block;
}

.onboarding strong {
  margin-bottom: 8px;
  color: #fff;
}

.onboarding span {
  color: var(--muted);
  line-height: 1.35;
}

section {
  scroll-margin-top: 14px;
}

.command-dashboard {
  display: grid;
  gap: 10px;
}

.dashboard-top {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-top h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.dashboard-top h1 span {
  color: var(--pink);
}

.dashboard-top p {
  display: inline;
  margin: 0 0 0 12px;
  color: var(--soft);
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-actions a {
  padding: 10px 18px;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.dashboard-actions span {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.1;
}

.dashboard-actions small {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  position: relative;
  min-height: 76px;
  padding: 11px 13px 10px 56px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(20, 38, 54, 0.95), rgba(9, 20, 31, 0.96));
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  color: #fff;
  margin-top: 3px;
  font-size: 1.42rem;
  line-height: 1.05;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat small {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.66rem;
}

.stat::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 8px;
  opacity: 0.95;
}

.stat.pink { color: var(--pink); }
.stat.blue { color: var(--blue); }
.stat.purple { color: var(--purple); }
.stat.green { color: var(--green); }
.stat.gold { color: var(--gold); }

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 2.25fr 0.85fr 1.05fr 0.78fr;
  gap: 10px;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.48fr 0.52fr;
  gap: 10px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr 1.2fr 0.8fr 1.05fr;
  gap: 10px;
}

.panel,
.card,
.list-item,
.form-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 29, 42, 0.95), rgba(8, 18, 28, 0.95));
  box-shadow: var(--shadow);
}

.panel {
  min-height: 126px;
  padding: 11px;
  overflow: hidden;
}

.panel-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.panel-header h2,
.section-header h2 {
  margin: 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-header a,
.panel-tools span {
  color: #91a4ff;
  text-decoration: none;
  font-size: 0.72rem;
}

.panel-tools {
  display: flex;
  gap: 8px;
}

.panel-tools span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--soft);
}

.mini-calendar {
  display: grid;
  gap: 5px;
}

.calendar-days,
.calendar-house-row {
  display: grid;
  grid-template-columns: 90px repeat(7, 1fr);
  gap: 5px;
  align-items: stretch;
}

.calendar-days {
  grid-template-columns: 90px repeat(7, 1fr);
  margin-left: 0;
}

.calendar-days::before {
  content: "";
}

.calendar-days span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.calendar-days small {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.calendar-days .active {
  background: var(--pink);
  border-color: var(--pink);
  border-radius: 6px;
}

.calendar-house-row {
  min-height: 48px;
}

.calendar-house-row b {
  display: flex;
  align-items: center;
  color: var(--soft);
  font-size: 0.78rem;
}

.calendar-house-row b::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.calendar-house-row.lola b::before { background: var(--purple); }
.calendar-house-row.tetriz b::before { background: var(--blue); }
.calendar-house-row.augusta b::before { background: var(--orange); }

.calendar-house-row em {
  display: block;
  padding: 7px;
  border: 1px solid rgba(244, 185, 66, 0.5);
  border-radius: 4px;
  color: #fff;
  font-style: normal;
  font-size: 0.66rem;
  background: rgba(244, 185, 66, 0.1);
}

.compact-list,
.task-list {
  display: grid;
  gap: 7px;
}

.compact-item,
.task-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.compact-item strong,
.task-item strong {
  display: block;
  color: #fff;
  font-size: 0.76rem;
}

.compact-item small,
.task-item small {
  color: var(--muted);
  font-size: 0.68rem;
}

.task-item {
  grid-template-columns: 16px 1fr auto auto;
}

.task-item input {
  width: 14px;
  min-height: 14px;
  padding: 0;
}

.priority {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #fff;
  background: rgba(228, 87, 104, 0.35);
}

.priority.medium { background: rgba(244, 185, 66, 0.35); }
.priority.low { background: rgba(67, 201, 112, 0.28); }

.panel-button,
.ghost-button {
  display: block;
  margin-top: 10px;
  padding: 9px;
  border-radius: 5px;
  background: var(--pink);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.78rem;
}

.panel-button.accent {
  background: linear-gradient(90deg, var(--purple), #7427d7);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.ai-panel {
  position: relative;
}

.ai-score {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 8px auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(13, 29, 42, 1) 58%, transparent 60%),
    conic-gradient(var(--purple) 78%, rgba(255, 255, 255, 0.08) 0);
}

.ai-score span {
  font-size: 1.35rem;
}

.ai-panel p {
  color: var(--muted);
}

.ai-panel p b {
  display: block;
  color: var(--green);
}

.ai-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.ai-panel li,
.integration-list span,
.finance-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 0.74rem;
}

.ai-panel li span,
.integration-list b {
  color: var(--green);
  font-weight: 800;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.flow-steps span {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--soft);
  text-align: center;
  font-size: 0.7rem;
}

.creative-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.creative-card {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.creative-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.creative-card span {
  display: block;
  padding: 6px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.content-calendar {
  min-height: 214px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--line2);
}

.content-day {
  padding: 8px;
  border-right: 1px solid var(--line2);
}

.content-day:last-child {
  border-right: 0;
}

.content-day strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
}

.content-tag {
  display: block;
  margin-bottom: 8px;
  padding: 6px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.68rem;
  background: rgba(152, 75, 243, 0.4);
}

.content-tag.green { background: rgba(67, 201, 112, 0.35); }
.content-tag.orange { background: rgba(245, 161, 71, 0.35); }

.integration-list,
.finance-list {
  display: grid;
  gap: 8px;
}

.phone-panel {
  display: grid;
  place-items: center;
}

.phone-mock {
  width: 178px;
  min-height: 318px;
  padding: 18px 12px;
  border: 8px solid #0a0f14;
  border-radius: 32px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.75)),
    url("/static/hero-love-haus.jpeg");
  background-size: cover;
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.phone-head {
  font-size: 0.72rem;
  margin-bottom: 26px;
}

.phone-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.phone-mock p {
  margin: 10px 0 16px;
  font-size: 0.7rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.phone-grid span {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-gallery img,
.thumb,
.generated-thumb {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line2);
}

.mini-gallery img {
  aspect-ratio: 1;
}

.thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}

.generated-thumb {
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
}

.report-bars {
  min-height: 140px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.report-bars span {
  flex: 1;
  min-height: 18px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.finance-list b {
  color: var(--gold);
}

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

.execution-grid {
  margin-top: 12px;
}

.section-header {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  margin-bottom: 12px;
}

input,
select,
textarea,
button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 10px;
  font: inherit;
}

input,
select,
textarea {
  background: rgba(3, 10, 16, 0.72);
  color: var(--ink);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(200, 212, 222, 0.48);
}

select option {
  background: #08131d;
  color: var(--ink);
}

textarea {
  grid-column: span 2;
  min-height: 78px;
  resize: vertical;
}

button {
  align-self: end;
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: #f13a69;
}

.checkbox-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(3, 10, 16, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.checkbox-row input {
  width: 16px;
  min-height: 16px;
}

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

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

.compact-form {
  align-content: start;
}

.card,
.list-item {
  padding: 12px;
}

.card {
  min-height: 118px;
}

.card h3,
.list-item h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 0.9rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.pill.accent {
  background: rgba(227, 41, 91, 0.2);
  color: #ff7c9b;
}

.pill.olive {
  background: rgba(67, 201, 112, 0.16);
  color: #8ff0b0;
}

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

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.small-button {
  width: auto;
  min-height: 31px;
  padding: 7px 9px;
  font-size: 0.72rem;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  border-color: var(--line);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.auth-widget {
  position: fixed;
  z-index: 80;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 13, 20, 0.96);
  box-shadow: var(--shadow);
}

.auth-widget span,
.auth-widget small {
  display: block;
}

.auth-widget strong {
  color: #fff;
  font-size: 0.78rem;
}

.auth-widget small {
  color: var(--muted);
  font-size: 0.66rem;
}

.auth-widget button {
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.login-page {
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(420px, calc(100vw - 28px));
  margin: 0;
  padding: 0;
}

.login-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 29, 42, 0.98), rgba(8, 18, 28, 0.98));
  box-shadow: var(--shadow);
}

.login-brand {
  min-height: 82px;
}

.login-card h1 {
  color: #fff;
  margin: 0 0 8px;
}

.login-card p,
.login-help,
.login-message {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.login-message {
  min-height: 22px;
  margin-top: 10px;
  color: #ff7c9b;
  font-weight: 800;
}

.users-top {
  margin-bottom: 12px;
}

.users-top button {
  width: auto;
  padding-inline: 16px;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
}

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

.user-form .checkbox-row,
.user-form .permission-toolbar,
.user-form .permissions-grid,
.user-form button[type="submit"] {
  grid-column: 1 / -1;
}

.permission-toolbar {
  display: flex;
  justify-content: flex-end;
}

.permissions-grid {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.1fr) repeat(5, minmax(78px, 0.7fr));
  align-items: center;
  min-width: 560px;
  border-bottom: 1px solid var(--line2);
}

.permission-row:last-child {
  border-bottom: 0;
}

.permission-row strong,
.permission-row span,
.permission-row label {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px;
}

.permission-row strong {
  justify-content: start;
  color: #fff;
  font-size: 0.74rem;
}

.permission-row span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.permission-head {
  background: rgba(255, 255, 255, 0.04);
}

.permission-row input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.user-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.users-log-panel {
  margin-top: 12px;
}

@media (max-width: 1500px) {
  .dashboard-main-grid {
    grid-template-columns: 1.6fr 0.9fr 1fr;
  }

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

  .dashboard-content-grid,
  .dashboard-bottom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .brand {
    min-height: 52px;
  }

  .brand small {
    margin-top: 36px;
  }

  nav {
    display: flex;
    overflow-x: auto;
  }

  nav a {
    flex: 0 0 auto;
  }

  main {
    margin-left: 0;
  }

  .dashboard-main-grid,
  .dashboard-content-grid,
  .dashboard-bottom-grid,
  .stats,
  .start-grid,
  .team-grid,
  .quick-grid,
  .onboarding ol,
  .cards,
  .split,
  .execution-grid,
  .users-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-panel,
  .ai-panel,
  .content-flow {
    grid-column: span 2;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 13px;
  }

  main {
    padding: 8px;
  }

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

  .simple-home {
    padding: 14px 10px;
  }

  .home-hero,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero h1 {
    font-size: 1.9rem;
  }

  .dashboard-top p {
    display: block;
    margin: 6px 0 0;
  }

  .dashboard-main-grid,
  .dashboard-content-grid,
  .dashboard-bottom-grid,
  .stats,
  .start-grid,
  .team-grid,
  .quick-grid,
  .onboarding ol,
  .cards,
  .split,
  .execution-grid,
  .users-layout,
  .user-form,
  .form-grid,
  #execution .form-grid {
    grid-template-columns: 1fr;
  }

  .agenda-panel,
  .ai-panel,
  .content-flow {
    grid-column: span 1;
  }

  .calendar-days,
  .calendar-house-row {
    grid-template-columns: 74px repeat(7, minmax(76px, 1fr));
    overflow-x: auto;
  }

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

  .flow-steps,
  .creative-strip,
  .content-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  textarea {
    grid-column: span 1;
  }
}
