:root {
  color-scheme: dark;
  --bg: #080910;
  --panel: rgba(18, 19, 31, 0.76);
  --panel-strong: rgba(24, 25, 39, 0.94);
  --line: rgba(207, 211, 255, 0.105);
  --line-bright: rgba(194, 201, 255, 0.2);
  --text: #f5f4fb;
  --muted: #9799ac;
  --muted-2: #858797;
  --font-caption: 13px;
  --font-small: 14px;
  --font-body: 15px;
  --font-control: 16px;
  --font-input: 16px;
  --accent: #9da8ff;
  --accent-2: #c8c9ff;
  --success: #75d5a6;
  --sidebar: 248px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 77% 12%, rgba(110, 120, 224, 0.13), transparent 26rem),
    radial-gradient(circle at 18% 94%, rgba(103, 82, 176, 0.09), transparent 29rem),
    #080910;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, textarea, input, select { font: inherit; }
small { font-size: var(--font-caption); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one { width: 360px; height: 360px; background: #6e7cff; top: -180px; left: 38%; }
.ambient-two { width: 300px; height: 300px; background: #9273d9; right: -120px; bottom: -130px; }

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 17px;
  background: rgba(9, 10, 18, 0.91);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(28px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 1px 10px 10px;
}

.brand img { width: 107px; max-height: 48px; object-fit: contain; object-position: center; filter: brightness(1.2); }
.brand span { color: #888ba7; text-transform: uppercase; letter-spacing: .19em; font-size: var(--font-caption); margin: 4px 0 0 -3px; }

.nav-list { display: grid; gap: 5px; margin-top: 31px; }
.nav-item {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 11px;
  color: #8d8e9f;
  font-size: var(--font-control);
  font-weight: 500;
  transition: .18s ease;
  width: 100%;
  border: 0;
  text-align: left;
  background-color: transparent;
  cursor: pointer;
}

.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.is-active { color: #f0f0fa; background: linear-gradient(100deg, rgba(151,163,255,.16), rgba(151,163,255,.055)); box-shadow: inset 0 0 0 1px rgba(164,174,255,.09); }
.nav-icon { display: grid; place-items: center; width: 20px; height: 20px; color: #aaadd0; font-size: 18px; line-height: 1; }
.nav-item.is-active .nav-icon { color: #c3c9ff; }
.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 20px; text-align: center; color: #cacfff; background: rgba(141,154,255,.15); font-size: var(--font-body); }
.sidebar-bottom { margin-top: auto; }

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 8px 0;
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #aab4ff, #777dcc); color: #10111d; font-weight: 700; font-size: var(--font-body); box-shadow: 0 5px 20px rgba(123,135,227,.2); }
.profile-copy { display: grid; gap: 3px; min-width: 0; }
.profile-copy strong { font-size: var(--font-control); font-weight: 600; }
.profile-copy small { color: var(--muted-2); font-size: var(--font-small); }
.icon-button { margin-left: auto; border: 0; background: transparent; color: #6f7181; cursor: pointer; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  min-height: 91px;
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 16px clamp(24px, 4.2vw, 67px);
  background: linear-gradient(to bottom, rgba(8,9,16,.96), rgba(8,9,16,.83));
  border-bottom: 1px solid rgba(255,255,255,.045);
  backdrop-filter: blur(22px);
}

.eyebrow { margin: 0 0 5px; color: var(--muted-2); font-size: var(--font-caption); letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.04em; font-weight: 530; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.sync-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--font-body); }
.sync-state i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(117,213,166,.7); }
.ghost-button { min-height: 36px; padding: 0 16px; border: 1px solid var(--line-bright); border-radius: 9px; background: rgba(255,255,255,.025); color: #c5c5d1; cursor: pointer; font-size: var(--font-body); }
.ghost-button:hover { border-color: rgba(194,201,255,.35); background: rgba(255,255,255,.05); }
.mobile-menu { display: none; border: 0; background: none; font-size: 21px; }

.workspace {
  width: min(1135px, calc(100% - 48px));
  margin: 0 auto;
  padding: 33px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.composer-column { display: grid; gap: 14px; }
.step-card, .publish-card, .help-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(24,25,39,.76), rgba(14,15,25,.72));
  box-shadow: 0 18px 70px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(20px);
}

.step-card { padding: 23px 25px 25px; }
.step-heading { display: flex; align-items: flex-start; gap: 13px; }
.step-number { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(163,173,255,.22); border-radius: 8px; color: #aeb6ff; background: rgba(140,152,255,.07); font-size: var(--font-caption); font-weight: 700; letter-spacing: .05em; }
.step-heading h2 { margin: 1px 0 5px; font-size: 15px; letter-spacing: -.025em; font-weight: 560; }
.step-heading p { margin-bottom: 0; color: var(--muted); font-size: var(--font-body); line-height: 1.45; }
.text-button { margin-left: auto; padding: 3px 0; border: 0; color: #9ea8ff; background: transparent; cursor: pointer; font-size: var(--font-body); }
.text-button:hover { color: #c8ceff; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 20px; }
.platform {
  min-width: 0;
  min-height: 76px;
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  text-align: left;
  background: rgba(255,255,255,.018);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.platform:hover { transform: translateY(-1px); border-color: rgba(174,184,255,.22); }
.platform.is-selected { border-color: rgba(151,164,255,.3); background: linear-gradient(145deg, rgba(142,155,255,.13), rgba(111,119,205,.045)); }
.platform > span:nth-child(2) { min-width: 0; }
.platform-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #282a37; color: #f5f5fa; font-size: 17px; font-weight: 600; }
.platform-mark.instagram { background: linear-gradient(140deg, #7738a6, #df4b82 55%, #ef9752); }
.platform-mark.facebook { background: #2374e1; font-family: Arial, sans-serif; font-size: 20px; }
.platform-mark.threads { background: #f3f3f3; color: #0b0b0d; }
.platform-mark.tiktok { background: #14151c; text-shadow: 1px 1px #ff375f, -1px -1px #43e6e8; }
.platform-mark.youtube { border-radius: 9px; background: #e32f35; font-size: var(--font-control); }
.platform strong, .platform small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform strong { margin-bottom: 4px; font-size: var(--font-body); font-weight: 600; }
.platform small { color: var(--muted-2); font-size: var(--font-caption); }
.platform .check { display: none; position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #9da8ff; color: #11131f; font-size: var(--font-caption); line-height: 1; font-weight: 800; }
.platform.is-selected .check { display: grid; }

.dropzone {
  width: 100%;
  min-height: 145px;
  margin-top: 19px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed rgba(162,174,255,.23);
  border-radius: 15px;
  color: #d9d9e3;
  background: radial-gradient(circle at 50% 15%, rgba(132,144,255,.08), transparent 55%), rgba(255,255,255,.012);
  cursor: pointer;
  transition: .18s ease;
}
.dropzone:hover, .dropzone.is-dragging { border-color: rgba(171,181,255,.52); background-color: rgba(143,154,255,.05); }
.upload-orb { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 10px; color: #b9c1ff; background: rgba(142,155,255,.1); box-shadow: inset 0 0 0 1px rgba(173,182,255,.12); font-size: 16px; }
.dropzone strong { font-size: var(--font-body); font-weight: 600; }
.dropzone > span:not(.upload-orb) { color: var(--muted); font-size: var(--font-small); }
.dropzone u { color: #aab4ff; text-decoration: none; }
.dropzone small { margin-top: 5px; color: var(--muted-2); font-size: var(--font-caption); }

.media-tip { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 9px 12px; border-radius: 10px; background: rgba(147,159,255,.055); color: #878a9e; }
.media-tip > span { color: #adb7ff; font-size: 12px; }
.media-tip p { margin: 0; font-size: var(--font-small); line-height: 1.5; }
.media-tip strong { color: #aeb0bf; font-weight: 600; }

.copy-field { position: relative; display: block; margin-top: 19px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(4,5,10,.22); overflow: hidden; transition: border .15s; }
.copy-field:focus-within { border-color: rgba(158,170,255,.36); }
.copy-field textarea { width: 100%; min-height: 115px; resize: vertical; display: block; padding: 15px 16px 41px; border: 0; outline: 0; color: #e8e8ef; background: transparent; font-size: var(--font-control); line-height: 1.6; }
.copy-field textarea::placeholder { color: var(--muted-2); }
.copy-tools { position: absolute; left: 11px; right: 12px; bottom: 9px; display: flex; align-items: center; gap: 5px; }
.copy-tools button { width: 25px; height: 25px; border: 0; border-radius: 7px; color: #77798b; background: transparent; cursor: pointer; }
.copy-tools button:hover { color: #c4c8e6; background: rgba(255,255,255,.04); }
.copy-tools > span { margin-left: auto; color: var(--muted-2); font-size: var(--font-caption); }
.adaptation-row { display: flex; align-items: center; gap: 10px; padding: 13px 3px 0; }
.spark { color: #b4bcff; }
.adaptation-row > span:nth-child(2) { display: grid; gap: 3px; }
.adaptation-row strong { color: #bfc1ce; font-size: var(--font-small); font-weight: 600; }
.adaptation-row small { color: var(--muted-2); font-size: var(--font-caption); }
.switch { margin-left: auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { display: block; width: 32px; height: 18px; position: relative; border-radius: 20px; background: #30313d; transition: .18s; }
.switch span::after { content: ""; width: 12px; height: 12px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #898b9a; transition: .18s; }
.switch input:checked + span { background: #7783df; }
.switch input:checked + span::after { left: 17px; background: white; }

.title-field { display: grid; gap: 7px; margin-top: 20px; }
.title-field > span { color: #9b9dad; font-size: var(--font-small); font-weight: 600; }
.title-field small { color: var(--muted-2); font-weight: 400; }
.title-field input, .schedule-fields input, .analytics-controls select, .card-title select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 10px;
  outline: none;
  color: #e7e7ef;
  background: rgba(4,5,10,.22);
  padding: 0 12px;
  font-size: var(--font-body);
}
.title-field input:focus, .schedule-fields input:focus { border-color: rgba(158,170,255,.36); }
.media-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.media-item { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.025); }
.media-thumb { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; overflow: hidden; background: #10111b; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .video-fallback { color: #afb7ff; font-size: 24px; }
.media-progress { position: absolute; inset: auto 0 0; height: 3px; background: rgba(255,255,255,.08); }
.media-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7b87e9, #c4c8ff); transition: width .2s; }
.media-meta { display: flex; align-items: center; gap: 6px; padding: 8px; }
.media-meta > span { min-width: 0; display: grid; gap: 2px; }
.media-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--font-caption); font-weight: 600; }
.media-meta small { color: var(--muted-2); font-size: var(--font-caption); }
.media-remove { margin-left: auto; width: 20px; height: 20px; border: 0; border-radius: 6px; color: #7a7c8b; background: transparent; cursor: pointer; }
.media-remove:hover { color: #fff; background: rgba(255,255,255,.07); }
.platform-copy-variants { display: grid; gap: 8px; margin-top: 12px; }
.copy-variant { border: 1px solid rgba(255,255,255,.06); border-radius: 11px; background: rgba(255,255,255,.015); overflow: hidden; }
.copy-variant summary { list-style: none; min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; cursor: pointer; color: #a8aab9; font-size: var(--font-small); }
.copy-variant summary::-webkit-details-marker { display: none; }
.copy-variant summary::after { content: "⌄"; margin-left: auto; color: var(--muted-2); }
.copy-variant[open] summary::after { transform: rotate(180deg); }
.variant-mark { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: #292b3a; color: #c7c9db; font-size: var(--font-small); }
.variant-state { margin-left: auto; margin-right: 9px; font-size: var(--font-caption); color: #6fcf9e; }
.variant-state.warning { color: #e5b76e; }
.copy-variant textarea { width: 100%; min-height: 82px; resize: vertical; padding: 10px 12px; border: 0; border-top: 1px solid rgba(255,255,255,.05); outline: 0; color: #dadbe5; background: rgba(0,0,0,.1); font-size: var(--font-small); line-height: 1.55; }
.variant-footer { display: flex; justify-content: flex-end; padding: 0 10px 8px; color: var(--muted-2); font-size: var(--font-caption); }

.schedule-fields { margin-top: 9px; padding: 11px; border: 1px solid rgba(155,167,255,.13); border-radius: 10px; background: rgba(132,145,255,.04); }
.schedule-fields label { display: grid; gap: 6px; }
.schedule-fields label span { color: #9b9dad; font-size: var(--font-caption); }
.schedule-fields small { display: block; margin-top: 6px; color: var(--muted-2); font-size: var(--font-caption); line-height: 1.45; }
.target-options { display: grid; gap: 6px; margin-top: 14px; }
.target-option { padding: 9px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(255,255,255,.012); }
.target-option summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; color: #9294a4; font-size: var(--font-caption); }
.target-option summary::-webkit-details-marker { display:none; }
.target-option summary small { margin-left: auto; color: var(--muted-2); }
.target-option-fields { display: grid; gap: 8px; padding-top: 10px; }
.target-option-fields label { display: grid; gap: 5px; color: var(--muted); font-size: var(--font-caption); }
.target-option-fields select, .target-option-fields input { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; color: #c8c9d5; background: #141521; padding: 0 9px; font-size: var(--font-caption); }

.view-panel { animation: view-in .24s ease both; }
.view-panel[hidden] { display: none !important; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.library-view, .comments-view, .analytics-view, .settings-view {
  width: min(1135px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 72px;
}
.section-head { min-height: 74px; display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.section-head h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.04em; font-weight: 540; }
.section-head > div > p:last-child { margin: 0; color: var(--muted); font-size: var(--font-body); line-height: 1.5; }
.section-actions, .analytics-controls { display: flex; gap: 8px; align-items: center; }
.primary-compact, .connect-button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; color: #151622; background: linear-gradient(100deg, #a5afff, #c6c9ff); cursor: pointer; font-size: var(--font-small); font-weight: 650; }
.connect-button:disabled { color: #606171; background: #2a2b37; cursor: not-allowed; }
.filter-row { display: flex; gap: 6px; padding: 16px 0 22px; border-top: 1px solid var(--line); overflow-x: auto; }
.filter-chip { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: rgba(255,255,255,.015); cursor: pointer; font-size: var(--font-caption); }
.filter-chip.is-active { border-color: rgba(157,168,255,.24); color: #c8cced; background: rgba(142,153,255,.09); }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feed-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(155deg, rgba(24,25,39,.77), rgba(13,14,23,.72)); }
.feed-media { aspect-ratio: 16/11; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, #202233, #11121d); }
.feed-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-media-placeholder { color: #545769; font-size: 30px; }
.feed-platform { position: absolute; left: 9px; top: 9px; min-height: 21px; padding: 0 8px; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; color: #e3e4ec; background: rgba(7,8,14,.72); backdrop-filter: blur(12px); font-size: var(--font-caption); }
.feed-card-body { padding: 13px; }
.feed-card-body p { min-height: 31px; margin: 0 0 11px; color: #a4a6b5; font-size: var(--font-small); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-metrics { display: flex; gap: 13px; color: var(--muted-2); font-size: var(--font-caption); }
.delivery-warning { display: grid; gap: 6px; margin: 0 0 11px; padding: 10px; border: 1px solid rgba(225,177,104,.22); border-radius: 11px; background: rgba(201,149,70,.07); }
.delivery-warning strong { color: #e0b66f; font-size: var(--font-caption); }
.delivery-warning span, .delivery-warning small { color: #9b8a70; font-size: var(--font-caption); line-height: 1.45; }
.delivery-warning button { justify-self: start; border: 1px solid rgba(225,177,104,.24); border-radius: 8px; padding: 6px 9px; color: #ddb16a; background: rgba(225,177,104,.08); cursor: pointer; font: inherit; font-size: var(--font-caption); }
.delivery-warning.compact { margin-top: 9px; margin-bottom: 0; }
.delivery-warning.compact > div { display: flex; gap: 7px; }
.resolution-dialog { padding: 42px 38px 34px; }
.resolution-dialog > p { max-width: 620px; color: #989aaa; line-height: 1.65; }
.resolution-target { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 12px; align-items: end; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.resolution-target > div:first-child { align-self: center; }
.resolution-target strong, .resolution-target small { display: block; }
.resolution-target small { margin-top: 5px; color: var(--muted); font-size: var(--font-caption); line-height: 1.45; }
.resolution-target label { display: grid; gap: 6px; color: var(--muted); font-size: var(--font-caption); }
.resolution-target input { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(5,6,12,.55); }
.resolution-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.feed-date { margin-left: auto; }
.empty-state { grid-column: 1 / -1; min-height: 285px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(156,167,255,.15); border-radius: 18px; color: var(--muted-2); }
.empty-state > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: rgba(144,156,255,.06); color: #8f98e3; font-size: 19px; }
.empty-state h3 { margin: 0 0 6px; color: #a7a9b8; font-size: var(--font-control); font-weight: 550; }
.empty-state p { max-width: 300px; margin: 0; color: var(--muted-2); font-size: var(--font-small); line-height: 1.5; }

.comments-layout { display: grid; grid-template-columns: 185px 1fr; gap: 13px; margin-top: 17px; padding-top: 20px; border-top: 1px solid var(--line); }
.comment-filters { display: grid; align-content: start; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(19,20,32,.6); }
.comment-filters button { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: var(--font-small); }
.comment-filters button.is-active { color: #c7c9db; background: rgba(144,156,255,.08); }
.comment-filters small { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.04); }
.comment-list { display: grid; gap: 8px; }
.comment-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,21,34,.65); }
.comment-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #b9c0fb; background: linear-gradient(145deg, #303344, #20212d); font-size: var(--font-small); font-weight: 700; }
.comment-main { min-width: 0; }
.comment-topline { display: flex; align-items: center; gap: 7px; }
.comment-topline strong { font-size: var(--font-small); font-weight: 600; }
.comment-topline span { color: var(--muted-2); font-size: var(--font-caption); }
.comment-main > p { margin: 7px 0 8px; color: #a8aab8; font-size: var(--font-small); line-height: 1.55; }
.comment-context { color: var(--muted-2); font-size: var(--font-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-actions { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; }
.comment-actions button { min-height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.015); cursor: pointer; font-size: var(--font-caption); }
.comment-actions button:hover:not(:disabled) { color: #c5c8e5; border-color: rgba(160,171,255,.24); }
.comment-actions button:disabled { opacity: .4; cursor: not-allowed; }
.reply-form { grid-column: 2 / -1; display: flex; gap: 7px; margin-top: 3px; }
.reply-form textarea { flex: 1; min-height: 58px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: #d4d5df; background: #10111a; font-size: var(--font-caption); }

.analytics-controls select { width: auto; min-width: 130px; background-color: #14151f; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); }
.metric-card { min-height: 108px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(150deg, rgba(25,26,40,.75), rgba(15,16,26,.67)); }
.metric-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: var(--font-caption); }
.info-dot { width: 16px; height: 16px; display: grid; place-items: center; position: relative; border: 1px solid #434655; border-radius: 50%; color: #85889b; font-family: Georgia, serif; font-size: var(--font-caption); cursor: help; }
.info-dot::after { content: attr(data-tooltip); width: 210px; position: absolute; right: -5px; bottom: calc(100% + 8px); z-index: 20; padding: 9px 10px; border: 1px solid var(--line-bright); border-radius: 9px; color: #b9bac6; background: #171822; box-shadow: 0 12px 35px rgba(0,0,0,.35); font: var(--font-caption)/1.5 Inter, sans-serif; opacity: 0; pointer-events: none; transform: translateY(4px); transition: .16s; }
.info-dot:hover::after, .info-dot:focus::after { opacity: 1; transform: none; }
.metric-value { display: block; margin-top: 16px; font-size: 22px; letter-spacing: -.04em; font-weight: 520; }
.metric-foot { display: block; margin-top: 6px; color: var(--muted-2); font-size: var(--font-caption); }
.analytics-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-top: 10px; }
.analytics-card, .connections-card, .diagnostics-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(24,25,39,.7), rgba(14,15,24,.68)); }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.card-title h3 { margin: 0; font-size: var(--font-control); font-weight: 540; }
.card-title select { width: auto; min-width: 125px; min-height: 32px; background-color: #14151f; }
.platform-bars { min-height: 190px; display: grid; gap: 11px; align-content: center; }
.bar-row { display: grid; grid-template-columns: 68px 1fr 50px; gap: 9px; align-items: center; color: var(--muted); font-size: var(--font-caption); }
.bar-track { height: 7px; border-radius: 8px; overflow: hidden; background: #272936; }
.bar-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #7783df, #aeb7ff); }
.bar-row strong { color: #aeb0be; text-align: right; font-size: var(--font-caption); font-weight: 500; }
.audience-card [data-audience] { min-height: 190px; display: grid; place-items: center; color: var(--muted-2); text-align: center; font-size: var(--font-caption); line-height: 1.5; }
.top-card { margin-top: 10px; }
.top-posts { display: grid; gap: 7px; margin-top: 15px; }
.top-post-row { display: grid; grid-template-columns: 24px 38px 1fr auto; gap: 10px; align-items: center; padding: 7px 9px; border: 1px solid rgba(255,255,255,.045); border-radius: 10px; }
.top-index { color: var(--muted-2); font-size: var(--font-small); text-align: center; }
.top-thumb { width: 38px; height: 32px; border-radius: 7px; object-fit: cover; background: #252735; }
.top-post-copy { min-width: 0; }
.top-post-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb0bd; font-size: var(--font-small); font-weight: 500; }
.top-post-copy small { color: var(--muted-2); font-size: var(--font-caption); }
.top-score { color: #b4bbfb; font-size: var(--font-small); }

.security-strip { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; padding: 14px 16px; border: 1px solid rgba(117,213,166,.12); border-radius: 14px; background: rgba(77,153,116,.045); }
.security-orb { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #87d8ad; background: rgba(95,198,143,.09); }
.security-strip div { min-width: 0; }
.security-strip strong { display: block; margin-bottom: 4px; font-size: var(--font-small); font-weight: 600; }
.security-strip p { margin: 0; color: var(--muted-2); font-size: var(--font-caption); line-height: 1.45; }
.status-pill { min-height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; color: var(--muted); background: rgba(255,255,255,.025); font-size: var(--font-caption); white-space: nowrap; }
.status-pill.success { border-color: rgba(117,213,166,.16); color: #80cfa6; background: rgba(80,175,124,.06); }
.status-pill.warning { border-color: rgba(225,177,104,.16); color: #d6a85f; background: rgba(201,149,70,.06); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.provider-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(150deg, rgba(24,25,39,.72), rgba(14,15,24,.68)); }
.provider-card-head { display: flex; align-items: center; gap: 10px; }
.provider-logo { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #2b2d3b; font-size: 13px; font-weight: 650; }
.provider-logo.meta { color: #aab6ff; background: #26345d; }
.provider-logo.threads { color: #171820; background: #eeeef1; }
.provider-logo.tiktok { text-shadow: 1px 1px #ff375f, -1px -1px #43e6e8; }
.provider-logo.youtube { color: #fff; background: #c93238; font-size: var(--font-body); }
.provider-card-head > div { min-width: 0; }
.provider-card-head h3 { margin: 0 0 4px; font-size: var(--font-control); font-weight: 560; }
.provider-card-head p { margin: 0; color: var(--muted-2); font-size: var(--font-caption); }
.provider-card-head .status-pill { margin-left: auto; }
.provider-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.provider-card form label { display: grid; gap: 5px; color: var(--muted-2); font-size: var(--font-caption); }
.provider-card form input { min-width: 0; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: #c9cad5; background: rgba(3,4,9,.2); font-size: var(--font-caption); }
.provider-card form label:nth-of-type(3) { grid-column: 1 / -1; }
.provider-card form input:focus { border-color: rgba(158,170,255,.3); }
.provider-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 7px; padding-top: 3px; }
.provider-notice { margin-top: 12px; padding: 9px 10px; border-radius: 9px; color: #9a825f; background: rgba(187,133,55,.06); font-size: var(--font-caption); line-height: 1.5; }
.connections-card { margin-top: 10px; }
.connection-list { display: grid; gap: 6px; margin-top: 14px; }
.connection-row { display: grid; grid-template-columns: 31px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid rgba(255,255,255,.045); border-radius: 10px; }
.connection-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #292b38; color: #bdc1e2; font-size: var(--font-small); }
.connection-copy { min-width: 0; }
.connection-copy strong { display: block; margin-bottom: 3px; font-size: var(--font-small); font-weight: 550; }
.connection-copy small { color: var(--muted-2); font-size: var(--font-caption); }
.connection-row button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: var(--font-caption); }
.empty-inline { color: var(--muted-2); font-size: var(--font-small); padding: 10px 0; }
.diagnostics-card { margin-top: 10px; color: #8e90a0; font: var(--font-caption)/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 250px; max-width: 360px; padding: 11px 13px; border: 1px solid var(--line-bright); border-radius: 11px; color: #c7c8d4; background: rgba(24,25,36,.96); box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(20px); font-size: var(--font-small); line-height: 1.45; animation: toast-in .2s ease both; }
.toast.success { border-color: rgba(117,213,166,.23); }
.toast.error { border-color: rgba(235,111,124,.25); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }
.preview-dialog { width: min(840px, calc(100% - 30px)); min-height: 420px; padding: 0; border: 1px solid var(--line-bright); border-radius: 20px; color: var(--text); background: #12131e; box-shadow: 0 30px 100px rgba(0,0,0,.62); }
.preview-dialog::backdrop { background: rgba(3,4,8,.76); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 13px; top: 12px; z-index: 3; width: 30px; height: 30px; border: 0; border-radius: 9px; color: #8f91a0; background: rgba(255,255,255,.05); cursor: pointer; font-size: 18px; }
.crop-dialog-content { min-height: 470px; display: grid; grid-template-columns: 1.2fr .8fr; }
.crop-stage { width: min(82%, 430px); max-height: 420px; align-self: center; justify-self: center; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 15px; background: #080910; box-shadow: 0 20px 55px rgba(0,0,0,.3); }
.crop-stage img { width: 100%; height: 100%; display: block; object-fit: cover; }
.crop-controls { display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: 45px 34px 34px; border-left: 1px solid var(--line); background: rgba(8,9,16,.26); }
.crop-controls h2, .publish-review h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; font-weight: 530; }
.crop-controls > p:not(.eyebrow), .publish-review > p { margin: -4px 0 4px; color: var(--muted-2); font-size: var(--font-small); line-height: 1.6; }
.crop-controls label { display: grid; gap: 7px; color: #858797; font-size: var(--font-caption); }
.crop-controls select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; color: #c8cad6; background: #171822; }
.crop-controls input[type="range"] { width: 100%; accent-color: #9da8ff; }
.publish-review { padding: 45px clamp(24px, 6vw, 62px) 38px; }
.review-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 20px 0 12px; }
.review-platform { min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.review-platform.has-error { border-color: rgba(235,111,124,.2); background: rgba(191,71,84,.035); }
.review-platform > div { display: grid; gap: 4px; }
.review-platform strong { font-size: var(--font-small); font-weight: 600; }
.review-platform small { color: var(--muted-2); font-size: var(--font-caption); }
.review-errors { margin: 12px 0; padding: 10px 10px 10px 27px; border: 1px solid rgba(235,111,124,.16); border-radius: 10px; color: #ca8991; background: rgba(191,71,84,.04); font-size: var(--font-caption); line-height: 1.7; }
.review-copy { margin: 12px 0 17px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.11); }
.review-copy strong { color: #9092a2; font-size: var(--font-caption); }
.review-copy p { max-height: 95px; overflow: auto; margin: 7px 0; color: #b5b6c2; font-size: var(--font-small); line-height: 1.55; white-space: pre-wrap; }
.review-copy span { color: var(--muted-2); font-size: var(--font-caption); }
.comment-actions a { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; color: var(--muted); font-size: var(--font-caption); }

.auth-body { min-height: 100vh; overflow-x: hidden; }
.auth-ambient { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.auth-ambient-one { width: 460px; height: 460px; left: -120px; top: -190px; background: rgba(113,128,255,.18); }
.auth-ambient-two { width: 380px; height: 380px; right: -150px; bottom: -190px; background: rgba(153,113,216,.14); }
.auth-shell { width: min(1030px, calc(100% - 36px)); min-height: min(660px, calc(100vh - 70px)); margin: 35px auto; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(14,15,24,.78); box-shadow: 0 35px 110px rgba(0,0,0,.38); backdrop-filter: blur(28px); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 65px); overflow: hidden; background: radial-gradient(circle at 30% 12%, rgba(150,163,255,.14), transparent 47%), linear-gradient(145deg, rgba(31,33,53,.72), rgba(11,12,21,.86)); }
.auth-brand-panel::after { content: ""; position: absolute; width: 330px; height: 330px; right: -100px; bottom: -130px; border: 1px solid rgba(173,181,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(173,181,255,.025), 0 0 0 110px rgba(173,181,255,.012); }
.auth-brand-panel > img { width: 150px; height: 105px; object-fit: contain; object-position: left center; filter: brightness(1.12); }
.auth-brand-panel h1 { margin: 0 0 18px; font-size: clamp(35px, 4.6vw, 61px); line-height: 1.02; font-weight: 420; letter-spacing: -.055em; }
.auth-brand-panel h1 em { color: #aeb6ff; font-family: Georgia, serif; font-weight: 400; }
.auth-brand-panel > div > p:last-child { max-width: 390px; margin: 0; color: var(--muted); font-size: var(--font-body); line-height: 1.7; }
.auth-private { display: flex; align-items: center; gap: 8px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .13em; font-size: var(--font-caption); }
.auth-private i { width: 5px; height: 5px; border-radius: 50%; background: #75d5a6; box-shadow: 0 0 8px rgba(117,213,166,.6); }
.auth-form-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 60px); background: rgba(8,9,16,.42); }
.auth-form { width: min(100%, 350px); display: grid; gap: 15px; }
.auth-form-head { margin-bottom: 7px; }
.auth-form-head h2 { margin: 0 0 9px; font-size: 24px; letter-spacing: -.04em; font-weight: 520; }
.auth-form-head > p:last-child { margin: 0; color: var(--muted-2); font-size: var(--font-body); line-height: 1.55; }
.auth-field { display: grid; gap: 7px; color: #8f91a1; font-size: var(--font-small); }
.auth-field > input, .password-wrap input { width: 100%; min-height: 44px; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; outline: none; color: #e6e6ee; background: rgba(3,4,9,.28); padding: 0 12px; font-size: var(--font-body); }
.auth-field > input:focus, .password-wrap input:focus { border-color: rgba(162,173,255,.38); box-shadow: 0 0 0 3px rgba(132,145,255,.05); }
.auth-field small { color: var(--muted-2); font-size: var(--font-caption); line-height: 1.4; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 68px; }
.password-wrap button { position: absolute; right: 7px; top: 7px; bottom: 7px; padding: 0 7px; border: 0; color: var(--muted-2); background: transparent; cursor: pointer; font-size: var(--font-caption); }
.auth-submit { margin-top: 3px; }
.auth-security-note { margin: 0; color: var(--muted-2); text-align: center; font-size: var(--font-caption); line-height: 1.55; }
.form-error { padding: 9px 10px; border: 1px solid rgba(235,111,124,.2); border-radius: 9px; color: #dfa1a8; background: rgba(191,71,84,.06); font-size: var(--font-caption); line-height: 1.45; }

.publish-column { position: sticky; top: 112px; display: grid; gap: 12px; }
.publish-card { padding: 22px; background: linear-gradient(160deg, rgba(28,29,45,.91), rgba(13,14,23,.91)); }
.publish-card-head { display: flex; justify-content: space-between; align-items: center; }
.publish-card-head h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; font-weight: 540; }
.readiness { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(157,168,255,.25); border-radius: 50%; color: #bdc4ff; background: rgba(139,151,255,.06); font-size: var(--font-caption); }
.readiness-bar { height: 3px; margin-top: 20px; border-radius: 10px; background: #282a35; overflow: hidden; }
.readiness-bar span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7884e4, #b9c1ff); }
.readiness-copy { margin: 8px 0 18px; color: var(--muted-2); font-size: var(--font-caption); line-height: 1.5; }

.preview-stack { display: flex; align-items: center; min-height: 39px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mini-preview { width: 31px; height: 37px; display: grid; place-items: center; border: 2px solid #181926; border-radius: 7px; margin-left: -7px; color: #c9cbda; background: #343644; font-size: var(--font-body); }
.mini-preview:first-child { margin-left: 0; }
.mini-one { background: linear-gradient(145deg, #684080, #c4637b); }
.mini-two { background: linear-gradient(145deg, #315f9f, #172235); }
.mini-three { background: linear-gradient(145deg, #74363c, #271719); }
.preview-count { width: 27px; height: 27px; display: grid; place-items: center; margin-left: -5px; border: 2px solid #181926; border-radius: 50%; background: #282a37; color: #9396aa; font-size: var(--font-caption); }
.preview-stack .text-button { margin-left: auto; }

.timing-options { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; border: 0; }
.timing-options legend { margin-bottom: 10px; color: #9b9dab; font-size: var(--font-small); font-weight: 600; }
.radio-card { min-height: 52px; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 11px; background: rgba(255,255,255,.015); cursor: pointer; }
.radio-card.is-active { border-color: rgba(151,164,255,.24); background: rgba(139,151,255,.055); }
.radio-card input { position: absolute; opacity: 0; }
.radio-dot { width: 12px; height: 12px; position: relative; border: 1px solid #555868; border-radius: 50%; }
.radio-card.is-active .radio-dot { border-color: #a5afff; }
.radio-card.is-active .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #a5afff; }
.radio-card > span:nth-of-type(2) { display: grid; gap: 3px; }
.radio-card strong { font-size: var(--font-small); font-weight: 600; }
.radio-card small { color: var(--muted-2); font-size: var(--font-caption); }
.timing-icon { color: #6e7082; font-size: 15px; }
.publish-summary { display: flex; justify-content: space-between; margin: 19px 0 11px; color: var(--muted-2); font-size: var(--font-small); }
.publish-summary strong { color: #b3b5c5; font-weight: 600; }
.primary-button { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 11px; color: #12131f; background: linear-gradient(100deg, #a5afff, #c6c9ff); font-size: var(--font-body); font-weight: 650; cursor: pointer; box-shadow: 0 10px 28px rgba(126,139,239,.16); }
.primary-button:disabled { color: #606170; background: #272936; cursor: not-allowed; box-shadow: none; }
.button-note { margin: 8px 0 0; text-align: center; color: var(--muted-2); font-size: var(--font-caption); }
.help-card { display: flex; gap: 10px; padding: 14px 15px; border-radius: 15px; background: rgba(18,19,30,.55); }
.help-icon { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(161,171,255,.2); border-radius: 50%; color: #a5afff; font-family: Georgia, serif; font-size: var(--font-body); line-height: 1; }
.help-card strong { display: block; margin-bottom: 4px; color: #a9abba; font-size: var(--font-small); }
.help-card p { margin: 0; color: var(--muted-2); font-size: var(--font-caption); line-height: 1.5; }

/* Keep editable content and primary actions comfortable at normal browser zoom. */
.copy-field textarea,
.copy-variant textarea,
.reply-form textarea,
.title-field input,
.schedule-fields input,
.analytics-controls select,
.card-title select,
.target-option-fields select,
.target-option-fields input,
.provider-card form input,
.auth-field > input,
.password-wrap input,
.crop-controls select,
.resolution-target input {
  font-size: var(--font-input);
  line-height: 1.5;
}

.title-field input,
.schedule-fields input,
.analytics-controls select,
.card-title select,
.target-option-fields select,
.target-option-fields input,
.provider-card form input,
.auth-field > input,
.password-wrap input,
.crop-controls select {
  min-height: 44px;
}

.ghost-button,
.primary-compact,
.connect-button,
.primary-button {
  min-height: 44px;
  font-size: var(--font-body);
}

.filter-chip,
.comment-actions button,
.comment-actions a,
.connection-row button,
.delivery-warning button {
  min-height: 36px;
  font-size: var(--font-body);
}

.info-dot { width: 24px; height: 24px; }
.copy-tools button, .media-remove { min-width: 32px; height: 32px; }

.copy-field:focus-within, .copy-variant:focus-within {
  box-shadow: 0 0 0 2px rgba(200, 201, 255, 0.75);
}

.provider-card form input:focus-visible,
.info-dot:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.switch input:focus-visible + span,
.radio-card input:focus-visible + .radio-dot {
  box-shadow: 0 0 0 3px rgba(200, 201, 255, 0.72);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  :root { --sidebar: 210px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .workspace { grid-template-columns: minmax(0, 1fr) 280px; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { transform: translateX(-100%); width: 250px; transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .main { grid-column: 1 / -1; }
  .mobile-menu { display: block; }
  .topbar { justify-content: flex-start; padding-inline: 18px; }
  .topbar-actions { margin-left: auto; }
  .sync-state { display: none; }
  .workspace { width: min(100% - 28px, 680px); grid-template-columns: 1fr; padding-top: 18px; }
  .publish-column { position: static; }
  .library-view, .comments-view, .analytics-view, .settings-view { width: min(100% - 28px, 680px); padding-top: 22px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .comments-layout { grid-template-columns: 1fr; }
  .comment-filters { display: flex; overflow-x: auto; }
  .comment-filters button { flex: 0 0 auto; gap: 12px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand-panel { min-height: 330px; }
  .auth-form-panel { min-height: 430px; }
  .crop-dialog-content { grid-template-columns: 1fr; }
  .crop-stage { margin: 50px auto 12px; }
  .crop-controls { border-left: 0; border-top: 1px solid var(--line); }
  .resolution-target { grid-template-columns: 1fr; }
  .resolution-actions { grid-column: auto; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .topbar .ghost-button { display: none; }
  .topbar { min-height: 76px; }
  .workspace { width: min(100% - 20px, 500px); }
  .step-card { padding: 18px 15px; border-radius: 18px; }
  .step-heading { gap: 10px; }
  .step-heading p { max-width: 240px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .platform { min-height: 68px; }
  .platform:last-child { grid-column: 1 / -1; }
  .adaptation-row small { display: none; }
  .media-queue { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; min-height: 0; }
  .section-actions, .analytics-controls { width: 100%; flex-wrap: wrap; }
  .analytics-controls select { flex: 1; min-width: 0; }
  .feed-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-card form { grid-template-columns: 1fr; }
  .provider-card form label:nth-of-type(3), .provider-actions { grid-column: 1; }
  .provider-actions { flex-wrap: wrap; }
  .connection-row { grid-template-columns: 31px minmax(0, 1fr); }
  .connection-row .status-pill, .connection-row button { grid-column: 2; justify-self: start; }
  .comment-actions { flex-wrap: wrap; }
  .reply-form textarea { min-width: 0; }
  .metric-card:nth-child(odd) .info-dot::after { left: -5px; right: auto; }
  .security-strip { align-items: flex-start; }
  .security-strip .status-pill { display: none; }
  .auth-shell { width: min(100% - 20px, 500px); margin: 10px auto; border-radius: 20px; }
  .auth-brand-panel { min-height: 275px; padding: 28px; }
  .auth-brand-panel > img { width: 120px; height: 75px; }
  .auth-brand-panel h1 { font-size: 38px; }
  .auth-form-panel { min-height: 420px; padding: 30px 22px; }
  .review-platforms { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card:nth-child(odd) .info-dot::after { left: auto; right: -5px; }
}

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