:root {
  --bg: #f5f5f7;
  --bg-soft: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: #d8d8df;
  --line-soft: #ececf1;
  --blue: #0071e3;
  --blue-dark: #005bb8;
  --green: #2f8f6f;
  --orange: #b65f1a;
  --red: #b42318;
  --violet: #6e5ce7;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.07);
  --radius: 8px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.auth-loading .auth-screen,
body.auth-loading .topbar,
body.auth-loading .layout,
body.signed-out .topbar,
body.signed-out .layout,
body.signed-in .auth-screen {
  display: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.hidden {
  display: none !important;
}

.auth-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 72px;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.72), transparent 68%);
}

.auth-visual {
  display: grid;
  gap: 30px;
  max-width: 780px;
  animation: introLift 760ms var(--ease) both;
}

.brand-mark,
.mini-mark {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 760;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 22px;
  box-shadow: var(--shadow-soft);
}

.mini-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 12px;
}

.auth-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 88px;
  font-weight: 740;
  line-height: 0.96;
}

.auth-copy p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 23px;
  font-weight: 430;
  line-height: 1.35;
}

.planner-preview {
  width: min(100%, 650px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: perspective(1300px) rotateX(4deg) rotateY(-6deg);
  animation: floatPanel 7s var(--ease) infinite alternate;
}

.preview-header,
.preview-card,
.brand,
.top-actions,
.section-head,
.platform-title,
.account-head,
.post-header {
  display: flex;
  align-items: center;
}

.preview-header,
.preview-card,
.section-head,
.post-header {
  justify-content: space-between;
  gap: 14px;
}

.preview-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
}

.preview-header strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

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

.preview-grid span {
  min-height: 56px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.preview-grid .busy {
  background: #eef8f3;
  border-color: rgba(47, 143, 111, 0.24);
}

.preview-grid .hot {
  background: #fff4ec;
  border-color: rgba(182, 95, 26, 0.24);
}

.preview-card {
  border-radius: var(--radius);
  padding: 14px;
  background: var(--ink);
  color: #fff;
}

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

.preview-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.preview-card b {
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f6ef;
  color: var(--green);
  font-size: 12px;
}

.auth-panel,
.panel,
.stat {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.auth-panel {
  padding: 30px;
  backdrop-filter: blur(22px);
  animation: introLift 760ms var(--ease) 100ms both;
}

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

.auth-brand {
  margin-bottom: 32px;
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 680;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 4px;
  background: rgba(245, 245, 247, 0.8);
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  transition: background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.auth-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.auth-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand h1,
.brand p,
.section-head h2,
.section-head p {
  margin: 0;
}

.brand h1 {
  font-size: 28px;
  line-height: 1;
  font-weight: 720;
}

.brand p,
.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

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

.mode {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--orange);
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.user-chip {
  max-width: min(46vw, 290px);
  overflow: hidden;
  color: var(--blue);
  text-overflow: ellipsis;
}

.layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 48px 72px;
}

.composer {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 18px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 680;
  line-height: 1.16;
}

.form {
  display: grid;
  gap: 14px;
}

.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  border: 1px dashed #a8a8b0;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 248, 251, 0.9)),
    linear-gradient(90deg, rgba(0, 113, 227, 0.08), rgba(47, 143, 111, 0.08));
  text-align: center;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.file-drop:hover,
.file-drop.dragging {
  border-color: var(--blue);
  box-shadow: 0 18px 48px rgba(0, 113, 227, 0.12);
  transform: translateY(-2px);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.file-drop strong,
.file-drop small {
  display: block;
  max-width: 100%;
  padding: 0 14px;
  overflow-wrap: anywhere;
}

.file-drop small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

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

.field span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 76px;
  padding: 11px 12px;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

input::placeholder,
textarea::placeholder {
  color: #9b9ba1;
}

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

.platform-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.platform-card:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.platform-title {
  gap: 10px;
}

.platform-title strong {
  min-width: 86px;
  font-weight: 680;
}

.switch {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d1d6;
  transition: background 180ms var(--ease);
}

.switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  transition: transform 180ms var(--ease);
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::before {
  transform: translateX(18px);
}

.primary-button,
.ghost-button,
.filter,
.small-button {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 660;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.primary-button {
  min-height: 48px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.22);
}

.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

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

.ghost-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.filter:hover:not(:disabled) {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--blue);
  transform: translateY(-1px);
}

.compact {
  min-height: 36px;
  padding: 0 12px;
}

.ai-button {
  justify-self: start;
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.16);
  color: var(--blue);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 650;
}

.plan-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(247, 248, 251, 0.72);
}

.plan-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: center;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--ink);
  font-weight: 660;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

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

.weekday-grid label {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.weekday-grid input {
  position: absolute;
  opacity: 0;
}

.weekday-grid span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.weekday-grid input:checked + span {
  border-color: rgba(0, 113, 227, 0.26);
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
}

.next-slot {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.workspace {
  display: grid;
  align-self: start;
  gap: 22px;
}

.account-panel,
.queue-panel,
.activity-panel {
  padding: 18px;
}

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

.stat {
  padding: 17px 18px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.8);
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.stat strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.stats-grid .stat:nth-child(1) strong {
  color: var(--ink);
}

.stats-grid .stat:nth-child(2) strong {
  color: var(--violet);
}

.stats-grid .stat:nth-child(3) strong {
  color: var(--orange);
}

.stats-grid .stat:nth-child(4) strong {
  color: var(--green);
}

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

.connection-summary {
  display: grid;
  gap: 4px;
  margin: -2px 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(247, 248, 251, 0.76);
}

.connection-summary.ready {
  border-color: rgba(47, 143, 111, 0.22);
  background: rgba(238, 248, 243, 0.72);
}

.connection-summary strong {
  font-size: 14px;
  font-weight: 700;
}

.connection-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.account-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.76);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.account-card:hover {
  border-color: rgba(0, 113, 227, 0.26);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.account-card.connected {
  border-color: rgba(47, 143, 111, 0.24);
  background: rgba(238, 248, 243, 0.82);
}

.account-card.demo-connected {
  border-color: rgba(182, 95, 26, 0.22);
  background: rgba(255, 247, 240, 0.78);
}

.account-head {
  justify-content: space-between;
  gap: 10px;
}

.account-head strong,
.account-head span {
  display: block;
}

.account-head strong {
  font-weight: 680;
}

.account-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-status,
.platform-account {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

button.account-status {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

button.account-status:hover:not(:disabled) {
  color: var(--blue);
  outline: 1px solid rgba(0, 113, 227, 0.24);
}

button.account-status:disabled {
  cursor: not-allowed;
}

.account-status.ok,
.platform-account.connected {
  background: #e8f6ef;
  color: var(--green);
}

.account-status.missing,
.platform-account.missing {
  background: #f0f0f3;
  color: var(--muted);
}

.account-actions,
.filters,
.target-list,
.tag-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters {
  margin-bottom: 14px;
}

.filter {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: rgba(0, 0, 0, 0.08);
}

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

.post-list,
.event-list {
  display: grid;
  gap: 12px;
}

.post-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.post-card:hover {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.media-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(47, 143, 111, 0.12)),
    #f2f3f7;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  min-width: 0;
}

.post-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.post-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
}

.status-scheduled {
  background: rgba(110, 92, 231, 0.1);
  color: var(--violet);
}

.status-published {
  background: #e8f6ef;
  color: var(--green);
}

.status-failed {
  background: #fff0ed;
  color: var(--red);
}

.status-publishing {
  background: #fff6e8;
  color: var(--orange);
}

.target-list {
  margin: 12px 0;
}

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a1a1a6;
}

.dot.scheduled {
  background: var(--violet);
}

.dot.published {
  background: var(--green);
}

.dot.failed {
  background: var(--red);
}

.dot.publishing {
  background: var(--orange);
}

.caption-preview {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tag-row {
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  background: #f0f0f3;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.card-actions {
  margin-top: 12px;
}

.small-button.danger {
  color: var(--red);
}

.event {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--blue);
  padding: 5px 0 5px 11px;
}

.event.warning {
  border-left-color: var(--orange);
}

.event.error {
  border-left-color: var(--red);
}

.event strong {
  font-size: 14px;
  font-weight: 640;
}

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

.empty-state {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #c7c7cf;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.empty-state strong {
  color: var(--ink);
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes introLift {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPanel {
  from {
    transform: perspective(1300px) rotateX(4deg) rotateY(-6deg) translateY(0);
  }

  to {
    transform: perspective(1300px) rotateX(2deg) rotateY(-3deg) translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .auth-screen,
  .layout {
    grid-template-columns: 1fr;
  }

  .composer {
    position: static;
  }
}

@media (max-width: 900px) {
  .auth-screen {
    gap: 36px;
    padding: 36px 24px;
  }

  .auth-copy h1 {
    font-size: 64px;
  }

  .auth-copy p {
    font-size: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 22px;
  }

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

  .layout {
    padding: 22px 22px 54px;
  }
}

@media (max-width: 760px) {
  .auth-visual {
    gap: 20px;
  }

  .planner-preview {
    transform: none;
    animation: none;
  }

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

  .account-list {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .media-preview {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 520px) {
  .auth-screen {
    padding: 20px 14px;
  }

  .auth-copy h1 {
    font-size: 48px;
  }

  .auth-copy p {
    font-size: 18px;
  }

  .auth-panel,
  .account-panel,
  .queue-panel,
  .activity-panel,
  .composer {
    padding: 14px;
  }

  .layout,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .plan-head {
    grid-template-columns: 1fr;
  }

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

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

  .auth-panel h2 {
    font-size: 28px;
  }
}
