:root {
  --ink:#202c32;
  --muted:#758087;
  --bg:#f7f7f2;
  --paper:#fff;
  --line:#e5e8df;
  --orange:#e77c50;
  --orange-dark:#c95d33;
  --soft-orange:#fff1e7;
  --nav:#17232b;
  --green:#42735e;
  --soft-green:#edf5ed;
  --red:#aa4940;
  --radius:18px;
  --shadow:0 4px 24px #25332c06;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
  line-height:1.5
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

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

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

a:hover {
  text-decoration:underline
}

button:disabled {
  cursor:wait;
  opacity:.55
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #e77c5075;
  outline-offset:3px
}

button {
  border:0
}

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

h1 {
  font-size:38px;
  letter-spacing:-1.4px;
  line-height:1.16;
  font-weight:650
}

h2 {
  font-size:22px;
  letter-spacing:-.5px;
  line-height:1.3;
  font-weight:650
}

h3 {
  font-size:17px;
  line-height:1.4;
  font-weight:600
}

p {
  margin-bottom:12px
}

svg {
  width:20px;
  height:20px;
  stroke:currentColor;
  stroke-width:1.6;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}

button svg {
  width:18px;
  height:18px
}

.muted {
  color:var(--muted)
}

.tiny {
  font-size:11px
}

.small {
  font-size:12px
}

.eyebrow {
  font-size:10px;
  letter-spacing:1.7px;
  text-transform:uppercase;
  font-weight:700;
  color:var(--muted)
}

.nowrap {
  white-space:nowrap
}

.layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:230px minmax(0,1fr)
}

.sidebar {
  background:var(--nav);
  color:#dce2e4;
  padding:34px 20px 25px;
  position:fixed;
  top:0;
  bottom:0;
  width:230px;
  display:flex;
  flex-direction:column;
  z-index:10
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  color:#fff;
  font-size:23px;
  letter-spacing:-.7px;
  font-weight:700;
  margin:0 13px 52px
}

.brand-symbol {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:11px;
  background:var(--orange);
  font-size:29px;
  line-height:1;
  color:#fff;
  font-weight:600;
  letter-spacing:-2px;
  padding-bottom:7px;
  flex-shrink:0
}

.sidebar-eyebrow {
  color:#637881;
  margin:0 14px 13px;
  font-size:9px;
  letter-spacing:1.8px
}

.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  background:transparent;
  color:#95a7ae;
  text-align:left;
  padding:13px 15px;
  border-radius:10px;
  margin-bottom:5px;
  font-size:13px;
  transition:background .15s,color .15s
}

.nav-item:hover {
  background:#26343b;
  color:#fff
}

.nav-item.active {
  background:#304047;
  color:#fff
}

.nav-item.active svg {
  color:#f3a383
}

.nav-count {
  margin-left:auto;
  background:#3d4e54;
  color:#d6e1e6;
  border-radius:6px;
  font-size:10px;
  min-width:21px;
  padding:1px 6px;
  text-align:center
}

.sidebar-bottom {
  margin-top:auto
}

.sidebar-pilot {
  padding:19px 14px 21px;
  border-top:1px solid #304048;
  border-bottom:1px solid #304048;
  margin-top:35px
}

.sidebar-pilot p {
  margin:0 0 10px;
  font-size:12px;
  color:#acbcc2
}

.progress-track {
  height:4px;
  background:#36454c;
  overflow:hidden;
  border-radius:5px
}

.progress-track span {
  display:block;
  height:100%;
  background:var(--orange);
  border-radius:5px
}

.sidebar-pilot .tiny {
  color:#7f939c;
  margin:10px 0 0
}

.sidebar-user {
  display:flex;
  align-items:center;
  gap:10px;
  padding:20px 12px 0
}

.avatar {
  width:32px;
  height:32px;
  border-radius:50%;
  background:#3c4d55;
  color:#d6dfe3;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:12px
}

.user-caption {
  flex:1;
  font-size:12px
}

.user-caption span {
  display:block;
  color:#6e8791;
  font-size:10px
}

.logout {
  background:none;
  color:#96a9b1;
  padding:4px
}

.workspace {
  grid-column:2;
  padding:0 43px 40px;
  max-width:1540px;
  width:100%;
  margin:auto;
  align-self:start
}

.topbar {
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:20px;
  margin-bottom:37px
}

.breadcrumb {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px
}

.breadcrumb strong {
  font-weight:500;
  color:var(--ink)
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:11px;
  color:var(--muted)
}

.connected-dot {
  width:6px;
  height:6px;
  background:#57906b;
  border-radius:50%;
  display:inline-block;
  margin-right:6px
}

.hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:29px
}

.hero h1 {
  max-width:580px;
  margin:10px 0 13px
}

.hero h1 em {
  font-style:normal;
  color:var(--orange)
}

.hero p {
  color:var(--muted);
  max-width:560px;
  margin-bottom:0;
  font-size:13px
}

.hero-actions {
  display:flex;
  gap:9px;
  align-items:center;
  flex-shrink:0
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  min-height:40px;
  padding:10px 16px;
  border-radius:9px;
  transition:background .15s,transform .15s;
  white-space:nowrap
}

.btn:hover {
  text-decoration:none;
  transform:translateY(-1px)
}

.btn-primary {
  background:var(--orange);
  color:#fff;
  box-shadow:0 3px 8px #de75451b
}

.btn-primary:hover {
  background:var(--orange-dark)
}

.btn-secondary {
  background:#fff;
  color:var(--ink);
  border:1px solid #dfe3da
}

.btn-secondary:hover {
  background:#f1f3ee
}

.btn-quiet {
  background:transparent;
  color:var(--muted);
  padding:8px 10px;
  min-height:35px
}

.btn-quiet:hover {
  background:#eeefe9;
  color:var(--ink)
}

.btn-small {
  min-height:32px;
  padding:7px 10px;
  font-size:11px
}

.btn-danger {
  background:#fbece9;
  color:var(--red)
}

.icon-button {
  width:35px;
  height:35px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#f3f5f0;
  color:#758087
}

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

.stat {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:13px;
  padding:19px 19px 16px;
  box-shadow:var(--shadow)
}

.stat-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  font-size:11px;
  margin-bottom:11px
}

.stat-top svg {
  width:16px;
  height:16px;
  color:#95a08f
}

.stat-value {
  font-size:27px;
  font-weight:600;
  letter-spacing:-1px;
  line-height:1.2;
  margin-bottom:7px
}

.stat-detail {
  font-size:10px;
  color:var(--muted)
}

.stat-value small {
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  letter-spacing:0
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:17px
}

.section-heading h2 {
  margin:0;
  font-size:20px
}

.section-heading .section-caption {
  margin:5px 0 0;
  font-size:11px;
  color:var(--muted)
}

.section-meta {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  color:var(--muted)
}

.pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:6px;
  font-size:10px;
  line-height:1.35;
  font-weight:550;
  white-space:nowrap;
  max-width:100%
}

.pill-tiktok {
  background:#eef1f2;
  color:#3d4d57
}

.pill-instagram {
  background:#f6eef7;
  color:#8c6394
}

.pill-youtube {
  background:#fff0ec;
  color:#b56d5a
}

.pill-green {
  background:var(--soft-green);
  color:var(--green)
}

.pill-orange {
  background:var(--soft-orange);
  color:#b76b44
}

.pill-gray {
  background:#f1f3ee;
  color:#768278
}

.pill-red {
  background:#fbeceb;
  color:var(--red)
}

.pill svg {
  width:12px;
  height:12px
}

.tabs {
  display:flex;
  gap:6px;
  padding:4px;
  background:#eeefe9;
  border-radius:9px;
  width:max-content;
  margin:0 0 20px;
  max-width:100%;
  overflow:auto
}

.tab {
  background:none;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  padding:7px 12px;
  border-radius:6px
}

.tab.active {
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 4px #2835260b
}

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

.idea-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  display:flex;
  flex-direction:column;
  box-shadow:var(--shadow);
  min-width:0;
  transition:border-color .18s,box-shadow .18s
}

.idea-card:hover {
  border-color:#c7d1c4;
  box-shadow:0 7px 20px #26342907
}

.card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:7px;
  margin-bottom:17px
}

.card-top-right {
  display:flex;
  align-items:center;
  gap:6px
}

.card-number {
  font-size:10px;
  color:#a0a8a0
}

.idea-title {
  font-size:18px;
  letter-spacing:-.4px;
  line-height:1.38;
  margin-bottom:11px;
  overflow-wrap:anywhere
}

.idea-title button {
  font:inherit;
  color:inherit;
  text-align:left;
  padding:0;
  background:none;
  cursor:pointer
}

.idea-title button:hover {
  color:var(--orange-dark)
}

.card-caption {
  color:var(--muted);
  font-size:11px;
  margin-bottom:16px;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden
}

.card-metrics {
  display:flex;
  gap:13px;
  padding-bottom:15px;
  border-bottom:1px solid #edf0e8;
  margin-bottom:15px
}

.metric {
  font-size:14px;
  font-weight:600;
  letter-spacing:-.2px;
  line-height:1.45;
  min-width:0
}

.metric span {
  display:block;
  color:#889188;
  font-size:9px;
  font-weight:400;
  letter-spacing:0
}

.metric.growth {
  color:var(--green);
  font-size:12px
}

.metric.growth.unknown {
  color:#8c968d
}

.card-adaptation {
  font-size:12px;
  color:#56645d;
  line-height:1.65;
  margin-bottom:16px;
  overflow-wrap:anywhere
}

.card-adaptation .eyebrow {
  font-size:8px;
  letter-spacing:1px;
  display:block;
  margin-bottom:5px;
  color:#9aa294
}

.card-hook {
  border-left:2px solid #edaf84;
  padding:7px 0 7px 10px;
  font-size:11px;
  line-height:1.55;
  color:#6b6f61;
  background:linear-gradient(90deg,#fff8ee,transparent);
  margin-bottom:18px;
  overflow-wrap:anywhere
}

.card-bottom {
  margin-top:auto
}

.card-cost {
  display:flex;
  align-items:center;
  gap:6px;
  color:#8e978a;
  font-size:10px;
  margin:0 0 14px
}

.card-cost svg {
  width:13px;
  height:13px
}

.card-actions {
  display:flex;
  gap:7px;
  align-items:center
}

.card-actions .btn {
  flex:1
}

.content-tags,
.tag-filter-list,
.card-management {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center
}

.content-tags {
  margin:0 0 14px
}

.content-tag,
.tag-filter {
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid #dfe6db;
  border-radius:8px;
  background:#f3f6ef;
  color:#526a58;
  padding:6px 9px;
  min-height:32px;
  font-size:11px;
  line-height:1.5;
  max-width:100%;
  overflow-wrap:anywhere;
  text-align:left
}

.content-tag.untagged {
  color:var(--muted);
  background:#f5f5f2
}

.tag-filter.active {
  border-color:#42735e;
  background:var(--soft-green);
  color:var(--green)
}

.tag-filter span {
  color:var(--muted);
  font-size:10px
}

.card-management {
  justify-content:space-between;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid var(--line)
}

.delete-reference {
  color:var(--red)
}

.detail-delete {
  margin-top:20px;
  border-top:1px solid var(--line);
  padding-top:12px
}

.bank-production-filter {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:0 0 18px
}

.bank-production-filter label {
  font-size:11px;
  color:var(--muted)
}

.bank-production-filter select {
  width:auto;
  max-width:100%;
  min-height:38px
}

.bank-tag-filters,
.content-tag-options {
  border:0;
  padding:0;
  margin:0 0 20px;
  min-width:0
}

.bank-tag-filters legend {
  font-size:11px;
  color:var(--muted);
  margin-bottom:9px
}

.content-tag-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 14px
}

.content-tag-options .checkbox {
  margin:0;
  min-height:38px
}

.loading-references {
  color:var(--muted)
}

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

.original-link {
  padding:8px;
  color:#99a28f
}

.original-link svg {
  width:16px;
  height:16px
}

.source-note {
  font-size:9px;
  color:#99a28f;
  margin-top:11px;
  overflow-wrap:anywhere
}

.trend-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 16px;
  margin:0 0 15px;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f2f5ee;
  color:#526a58;
  font-size:11px;
  line-height:1.7
}

.trend-summary>span {
  min-width:0;
  overflow-wrap:anywhere
}

.trend-summary .btn {
  white-space:normal;
  text-align:left
}

.trend-exclusion {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
  line-height:1.6;
  margin:0 0 15px;
  overflow-wrap:anywhere
}

.trend-exclusion .pill {
  flex-shrink:0
}

.trend-exclusion>span:last-child {
  min-width:0
}

.detail-trend-note {
  margin-bottom:16px
}

#trend-settings-panel {
  scroll-margin-top:24px
}

.selected-text .selected-exclusion {
  color:#8c7255;
  overflow-wrap:anywhere
}

.empty-state {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:45px 25px;
  text-align:center;
  position:relative;
  overflow:hidden
}

.empty-illustration {
  width:126px;
  height:94px;
  margin:0 auto 23px;
  position:relative
}

.empty-sheet {
  width:66px;
  height:78px;
  background:#f3f5ee;
  border:1px solid #e0e7d9;
  border-radius:9px;
  position:absolute;
  left:29px;
  top:6px;
  transform:rotate(-12deg)
}

.empty-sheet.back {
  left:44px;
  top:11px;
  transform:rotate(13deg);
  background:#fff3e8;
  border-color:#f1d9c4
}

.empty-sheet.front {
  display:flex;
  align-items:center;
  justify-content:center;
  transform:rotate(-5deg);
  background:#fff;
  box-shadow:0 3px 10px #20322805
}

.empty-sheet.front svg {
  width:29px;
  height:29px;
  color:#df9870
}

.empty-state h3 {
  font-size:20px;
  margin-bottom:10px
}

.empty-state p {
  color:var(--muted);
  max-width:445px;
  margin:0 auto 22px;
  font-size:12px;
  line-height:1.75
}

.empty-actions {
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap
}

.empty-footnote {
  font-size:10px;
  color:#9ba38f;
  margin-top:20px
}

.workflow-strip {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:23px;
  padding:22px 0;
  margin-top:13px
}

.workflow-step {
  display:flex;
  gap:11px;
  align-items:flex-start
}

.step-number {
  background:#eeefe6;
  border-radius:50%;
  width:27px;
  height:27px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#819076;
  font-size:10px;
  flex-shrink:0
}

.workflow-step strong {
  display:block;
  font-size:11px;
  font-weight:600;
  margin-bottom:4px
}

.workflow-step p {
  font-size:10px;
  color:var(--muted);
  margin-bottom:0;
  line-height:1.6
}

.notice {
  padding:13px 16px;
  border-radius:10px;
  background:#edf3ed;
  border:1px solid #dce6d8;
  color:#50704e;
  font-size:12px;
  line-height:1.65;
  margin-bottom:22px;
  display:flex;
  gap:10px;
  align-items:flex-start
}

.notice svg {
  width:17px;
  height:17px;
  margin-top:2px
}

.notice .btn {
  margin-left:auto;
  flex-shrink:0
}

.notice.warning {
  background:#fff4e9;
  border-color:#efdfcf;
  color:#946d43
}

.notice.error {
  background:#faedea;
  border-color:#eed8d0;
  color:#a05d4f
}

.notice-neutral {
  background:#f1f3ee;
  border-color:#e4e8de;
  color:#71816a
}

.jobs {
  margin-bottom:21px
}

.jobs-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:7px;
  font-size:12px;
  color:var(--muted)
}

.job {
  position:relative;
  display:flex;
  gap:10px;
  align-items:center;
  padding:13px 52px 13px 16px;
  background:#eef3f2;
  border:1px solid #dfe6e4;
  border-radius:10px;
  font-size:12px;
  margin-bottom:7px
}

.job > svg {
  width:16px;
  height:16px;
  flex-shrink:0
}

.job-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  flex-shrink:0;
  max-width:100%
}

.jobs-controls {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}

.job-dismiss {
  position:absolute;
  top:4px;
  right:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  cursor:pointer
}

.job-dismiss svg {
  width:18px;
  height:18px
}

.job-dismiss:hover {
  background:rgba(0,0,0,.05);
  color:var(--ink)
}

.job-dismiss:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:1px
}

.job-error {
  background:#fff2ed;
  color:#a9614e;
  border-color:#f2ddd1
}

.spinner {
  width:14px;
  height:14px;
  border:2px solid #aebfbc;
  border-top-color:var(--orange);
  border-radius:50%;
  animation:spin 1s linear infinite;
  flex-shrink:0
}

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

.job small {
  font-size:10px;
  display:block;
  color:var(--muted);
  margin-top:3px
}

.job .job-label {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere
}

.toolbar {
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:20px;
  flex-wrap:wrap
}

.searchbox {
  position:relative;
  flex:1;
  min-width:190px
}

.searchbox svg {
  position:absolute;
  top:11px;
  left:12px;
  width:17px;
  height:17px;
  color:#a3aa9c
}

.searchbox input {
  padding-left:38px
}

.toolbar select {
  width:auto;
  max-width:200px
}

.field,input,select,textarea {
  width:100%;
  border:1px solid #dde3d7;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  padding:10px 12px;
  font-size:12px;
  outline:0;
  transition:border-color .15s
}

input:focus,select:focus,textarea:focus {
  border-color:#d89c73
}

textarea {
  resize:vertical;
  min-height:90px;
  line-height:1.6
}

input::placeholder,textarea::placeholder {
  color:#a1ab9d
}

label {
  display:block;
  font-size:11px;
  font-weight:550;
  line-height:1.6;
  color:#5c6b60;
  margin-bottom:6px
}

.field-help {
  font-size:10px;
  color:var(--muted);
  line-height:1.65;
  margin:6px 0 0
}

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

.form-grid .full {
  grid-column:1/-1
}

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

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

.form-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-top:21px
}

.form-error {
  color:var(--red);
  font-size:12px;
  line-height:1.6;
  margin:15px 0 0
}

.form-section-title {
  font-size:14px;
  font-weight:600;
  letter-spacing:-.2px;
  margin:25px 0 15px
}

.form-section-title:first-child {
  margin-top:0
}

.publication-list {
  display:flex;
  flex-direction:column;
  gap:13px
}

.publication-card {
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff
}

.publication-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}

.publication-top h3 {
  margin:9px 0 5px;
  max-width:720px;
  font-size:16px;
  overflow-wrap:anywhere
}

.publication-top p {
  font-size:11px;
  color:var(--muted);
  margin-bottom:0
}

.publication-actions {
  display:flex;
  gap:7px;
  flex-shrink:0
}

.publication-metrics {
  display:flex;
  align-items:center;
  gap:27px;
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid #edf0e8;
  flex-wrap:wrap
}

.publication-metrics .metric {
  font-size:17px
}

.publication-metrics .metric span {
  font-size:10px
}

.publication-note {
  font-size:11px;
  color:#687669;
  margin-top:12px;
  overflow-wrap:anywhere
}

.platform-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:25px
}

.platform-stat {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:17px
}

.platform-stat .value {
  font-size:23px;
  letter-spacing:-.8px;
  margin:12px 0 2px
}

.platform-stat p {
  font-size:10px;
  color:var(--muted);
  margin-bottom:0
}

.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  min-width:0
}

.panel h2 {
  font-size:17px;
  margin-bottom:6px
}

.panel .intro {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:22px
}

.settings-grid {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:20px;
  align-items:start
}

.settings-stack {
  display:flex;
  flex-direction:column;
  gap:20px
}

.source-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:22px
}

.source-card {
  border:1px solid var(--line);
  background:#fff;
  border-radius:13px;
  padding:19px
}

.source-card h3 {
  margin:14px 0 5px;
  font-size:15px
}

.source-card p {
  font-size:10px;
  color:var(--muted);
  line-height:1.75;
  margin-bottom:15px
}

.source-status {
  font-size:10px;
  color:#85917f;
  display:flex;
  align-items:center;
  gap:5px
}

.source-status svg {
  width:13px;
  height:13px
}

.budget-total {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:18px 0 13px
}

.budget-total strong {
  font-size:28px;
  font-weight:600;
  letter-spacing:-1px
}

.budget-total strong small {
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  letter-spacing:0
}

.budget-track {
  background:#edf0e6;
  border-radius:5px;
  height:6px;
  overflow:hidden;
  display:flex
}

.budget-spent {
  background:var(--orange)
}

.budget-reserved {
  background:#edc29c
}

.budget-labels {
  display:flex;
  gap:16px;
  margin:11px 0 19px;
  font-size:10px;
  color:var(--muted)
}

.budget-labels i {
  display:inline-block;
  width:6px;
  height:6px;
  background:var(--orange);
  border-radius:50%;
  margin-right:5px
}

.budget-labels i.reserved {
  background:#edc29c
}

.budget-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:11px 0;
  border-top:1px solid #edf0e8;
  font-size:11px
}

.budget-row small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}

.credentials-section {
  padding:16px 0;
  border-top:1px solid #edf0e8
}

.credentials-section:first-of-type {
  padding-top:0;
  border-top:0
}

.credentials-section h3 {
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px
}

.credentials-section p {
  color:var(--muted);
  font-size:10px;
  line-height:1.7;
  margin-bottom:12px
}

.input-button {
  display:flex;
  gap:8px;
  align-items:center
}

.checkbox {
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer
}

.checkbox input {
  width:16px;
  height:16px;
  accent-color:var(--orange)
}

.checkbox span {
  font-size:11px
}

.links-row {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:13px
}

.text-link {
  font-size:11px;
  color:#bf7956;
  display:inline-flex;
  align-items:center;
  gap:5px
}

.text-link svg {
  width:12px;
  height:12px
}

.page-footer {
  margin-top:35px;
  padding-top:19px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:9px;
  color:#99a18e
}

.checklist {
  list-style:none;
  padding:0;
  margin:12px 0 0
}

.checklist li {
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin:10px 0;
  font-size:11px;
  color:var(--muted)
}

.checklist li svg {
  width:14px;
  height:14px;
  margin-top:1px
}

.checklist .yes {
  color:var(--green)
}

dialog {
  border:0;
  padding:0;
  border-radius:18px;
  background:var(--bg);
  color:var(--ink);
  width:min(760px,calc(100vw - 32px));
  max-height:90dvh;
  box-shadow:0 18px 80px #17232b40
}

dialog::backdrop {
  background:#17232b87;
  backdrop-filter:blur(3px)
}

.modal-header {
  position:sticky;
  top:0;
  z-index:2;
  background:var(--bg);
  padding:24px 27px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}

.modal-header h2 {
  font-size:21px;
  margin:0 0 5px;
  overflow-wrap:anywhere
}

.modal-header p {
  font-size:11px;
  color:var(--muted);
  margin:0
}

.modal-body {
  padding:23px 27px 27px
}

.modal-section {
  padding:20px 0;
  border-top:1px solid var(--line)
}

.modal-section:first-child {
  border-top:0;
  padding-top:0
}

.modal-section h3 {
  font-size:13px;
  margin-bottom:10px
}

.modal-section p {
  font-size:12px;
  line-height:1.75;
  white-space:pre-line;
  overflow-wrap:anywhere
}

.detail-tags {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-bottom:17px
}

.detail-meta {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  font-size:11px;
  margin-top:17px
}

.detail-meta span {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:2px
}

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

.detail-metrics .metric {
  font-size:20px;
  background:#fff;
  border:1px solid var(--line);
  padding:15px;
  border-radius:10px
}

.detail-metrics .metric span {
  font-size:10px
}

.hook-list {
  display:flex;
  flex-direction:column;
  gap:8px
}

.hook-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #e6e5d7;
  background:#fffdf7;
  padding:13px 14px;
  border-radius:9px;
  text-align:left;
  font-size:12px;
  line-height:1.6
}

.hook-option span {
  overflow-wrap:anywhere
}

.hook-option .hook-arrow {
  color:#c28860;
  flex-shrink:0;
  white-space:nowrap;
  font-size:10px
}

.hook-option:hover {
  border-color:#d3ae8f
}

.cost-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px;
  margin:14px 0
}

.cost-item {
  background:#fff;
  border:1px solid var(--line);
  padding:12px;
  border-radius:9px;
  font-size:17px
}

.cost-item span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:4px
}

.detail-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 20px
}

.card-platforms {
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  min-width:0
}

.analysis-status h3 {
  display:flex;
  align-items:center;
  gap:8px
}

.analysis-block {
  margin-top:18px
}

.analysis-block h4 {
  font-size:12px;
  margin:0 0 8px;
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px
}

.analysis-time {
  color:var(--muted);
  font-size:11px;
  font-weight:400;
  white-space:nowrap
}

.analysis-list,
.analysis-timeline {
  padding-left:18px;
  margin:8px 0;
  font-size:12px;
  line-height:1.75;
  overflow-wrap:anywhere
}

.analysis-list li,
.analysis-timeline li {
  margin:7px 0
}

.analysis-timeline p {
  margin:2px 0
}

.analysis-error {
  color:var(--red)
}

.details-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:10px
}

.details-table th {
  font-weight:500;
  color:var(--muted);
  padding:9px 7px;
  border-bottom:1px solid var(--line)
}

.details-table td {
  padding:9px 7px;
  border-bottom:1px solid #edf0e8
}

.table-scroll {
  overflow:auto
}

.snapshot-note {
  font-size:10px;
  color:var(--muted);
  line-height:1.7;
  margin-top:10px
}

.visual-status {
  font-size:11px;
  padding:10px 12px;
  background:#fff3e7;
  border:1px solid #eedecb;
  border-radius:8px;
  color:#9b7042;
  margin-bottom:12px
}

.visual-status.reviewed {
  color:var(--green);
  background:var(--soft-green);
  border-color:#dae5d8
}

.modal-body details {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:18px
}

.modal-body summary {
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  padding-bottom:10px;
  list-style:none;
  display:flex;
  justify-content:space-between
}

.modal-body summary::after {
  content:'+';
  font-size:17px;
  font-weight:400;
  color:var(--muted)
}

.modal-body details[open] summary::after {
  content:'−'
}

.toasts {
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:100;
  display:flex;
  flex-direction:column;
  gap:9px;
  max-width:min(430px,calc(100vw - 32px))
}

.toast {
  background:#24362e;
  color:#fff;
  padding:14px 18px;
  border-radius:10px;
  font-size:12px;
  line-height:1.65;
  box-shadow:0 5px 25px #17232b30;
  display:flex;
  gap:12px;
  align-items:flex-start;
  animation:toast-in .18s ease
}

.toast.error {
  background:#8e4e3e
}

.toast button {
  padding:0;
  background:none;
  color:#d3ddd4;
  font-size:18px;
  line-height:1.2
}

.toast span {
  overflow-wrap:anywhere
}

.toast .toast-action {
  font-size:12px;
  min-height:32px;
  line-height:1.5;
  text-decoration:underline;
  flex-shrink:0
}

@keyframes toast-in {
  from {
    opacity:0;
    transform:translateY(8px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}

.login-screen {
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr
}

.login-story {
  background:var(--nav);
  color:#fff;
  padding:65px 9%;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden
}

.login-story .brand {
  margin:0 0 100px
}

.login-story h1 {
  font-size:48px;
  font-weight:550;
  max-width:440px;
  line-height:1.2;
  margin-bottom:25px
}

.login-story h1 em {
  font-style:normal;
  color:#f2a37b
}

.login-story p {
  color:#a7b5b9;
  max-width:375px;
  line-height:1.8;
  font-size:14px
}

.login-decor {
  position:absolute;
  right:-70px;
  bottom:-150px;
  width:400px;
  height:400px;
  border-radius:50%;
  border:1px solid #374b53
}

.login-decor::before {
  content:'';
  position:absolute;
  inset:35px;
  border:1px solid #374b53;
  border-radius:50%
}

.login-decor::after {
  content:'';
  position:absolute;
  inset:75px;
  border:1px solid #374b53;
  border-radius:50%
}

.login-form-wrapper {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:45px
}

.login-form {
  width:100%;
  max-width:335px
}

.login-form h2 {
  font-size:26px;
  margin:10px 0
}

.login-form>p {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:25px
}

.login-form .btn {
  width:100%;
  margin-top:17px
}

.login-form .field-help {
  font-size:10px;
  margin-top:17px
}

.initial-loader {
  height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:18px;
  color:var(--muted);
  font-size:12px
}

.initial-loader .brand-symbol {
  width:48px;
  height:48px;
  font-size:39px
}

.initial-loader p {
  margin:0
}

.mobile-brand {
  display:none
}

.text-wrap {
  overflow-wrap:anywhere
}

@media(min-width:1500px) {
  .workspace {
    padding-left:55px;
    padding-right:55px
  }
  .ideas-grid {
    gap:22px
  }
  .idea-card {
    padding:24px
  }
  .hero h1 {
    font-size:43px
  }
  .sidebar {
    width:250px
  }
  .layout {
    grid-template-columns:250px minmax(0,1fr)
  }
}

@media(max-width:1190px) {
  .sidebar {
    width:200px;
    padding-left:14px;
    padding-right:14px
  }
  .layout {
    grid-template-columns:200px minmax(0,1fr)
  }
  .workspace {
    padding-left:28px;
    padding-right:28px
  }
  .hero h1 {
    font-size:33px
  }
  .hero {
    align-items:flex-start
  }
  .hero-actions {
    padding-top:34px;
    flex-direction:column;
    align-items:stretch
  }
  .ideas-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .settings-grid {
    grid-template-columns:1fr
  }
  .stats-grid {
    gap:10px
  }
  .stat {
    padding:16px 14px
  }
  .source-card {
    padding:16px
  }
  .topbar-right .schedule-top {
    display:none
  }
}

@media(max-width:820px) {
  .sidebar {
    width:75px;
    padding:26px 10px 20px
  }
  .layout {
    grid-template-columns:75px minmax(0,1fr)
  }
  .sidebar .brand {
    margin:0 auto 39px;
    justify-content:center
  }
  .sidebar .brand .brand-name,.sidebar-eyebrow,.nav-item span,.sidebar-pilot,.sidebar-user .user-caption {
    display:none
  }
  .nav-item {
    justify-content:center;
    padding:14px 10px;
    gap:0
  }
  .sidebar-user {
    padding:15px 0 0;
    justify-content:center;
    flex-wrap:wrap
  }
  .sidebar-user .logout {
    margin-top:10px
  }
  .sidebar .brand-symbol {
    width:36px;
    height:36px
  }
  .workspace {
    padding-left:24px;
    padding-right:24px
  }
  .hero h1 {
    font-size:32px
  }
  .hero-actions {
    padding-top:35px
  }
  .topbar {
    height:73px;
    margin-bottom:27px
  }
  .stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .stat-top {
    margin-bottom:8px
  }
  .stat-value {
    font-size:25px
  }
  .section-heading .section-meta .hide-small {
    display:none
  }
  .workflow-strip {
    gap:13px
  }
  .workflow-step {
    gap:8px
  }
  .platform-stats {
    gap:9px
  }
  .publication-top {
    flex-direction:column;
    gap:13px
  }
  .publication-actions {
    flex-wrap:wrap
  }
  .source-grid {
    gap:10px
  }
  .source-card {
    padding:15px 11px
  }
  .source-card .pill {
    font-size:9px
  }
  .source-card h3 {
    font-size:13px
  }
  .source-card p {
    font-size:10px
  }
  .page-footer {
    font-size:8px
  }
  .notice .btn {
    margin-top:0
  }
}

@media(max-width:600px) {
  :root {
    font-size:13px
  }
  .layout {
    display:block;
    padding-bottom:75px
  }
  .sidebar {
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:100%;
    height:66px;
    flex-direction:row;
    align-items:center;
    padding:5px 7px;
    box-shadow:0 -2px 15px #17232b13
  }
  .sidebar .brand,.sidebar-bottom,.sidebar-eyebrow {
    display:none
  }
  .sidebar nav {
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-around
  }
  .nav-item {
    flex:1;
    flex-direction:column;
    gap:3px;
    padding:7px 5px;
    margin:0;
    border-radius:8px;
    width:auto;
    min-height:53px
  }
  .nav-item span:not(.nav-count) {
    display:block;
    font-size:9px
  }
  .nav-item svg {
    width:19px;
    height:19px
  }
  .sidebar .nav-count {
    display:none
  }
  .workspace {
    padding:0 17px 25px
  }
  .topbar {
    height:65px;
    gap:10px;
    margin-bottom:25px
  }
  .breadcrumb {
    display:none
  }
  .mobile-brand {
    display:flex;
    align-items:center;
    gap:9px;
    font-weight:700;
    font-size:19px;
    letter-spacing:-.7px
  }
  .mobile-brand .brand-symbol {
    width:29px;
    height:29px;
    font-size:24px;
    border-radius:9px;
    padding-bottom:5px
  }
  .topbar-right {
    gap:8px;
    font-size:9px
  }
  .topbar-right .server-status {
    display:none
  }
  .mobile-logout {
    display:flex!important;
    color:var(--muted);
    background:none;
    padding:6px
  }
  .mobile-logout svg {
    width:16px;
    height:16px
  }
  .hero {
    display:block;
    margin-bottom:24px
  }
  .hero h1 {
    font-size:32px;
    line-height:1.18;
    margin:9px 0 12px;
    max-width:370px
  }
  .hero p {
    font-size:12px;
    line-height:1.75
  }
  .hero-actions {
    padding-top:20px;
    flex-direction:row;
    align-items:center
  }
  .hero-actions .btn {
    padding:11px 13px;
    flex:1
  }
  .stats-grid {
    gap:10px;
    margin-bottom:27px
  }
  .stat {
    padding:15px 14px
  }
  .stat-top {
    font-size:10px
  }
  .stat-value {
    font-size:25px
  }
  .stat-detail {
    font-size:9px
  }
  .section-heading {
    align-items:flex-start;
    gap:7px;
    margin-bottom:16px
  }
  .section-heading h2 {
    font-size:19px
  }
  .section-heading .section-caption {
    font-size:10px;
    line-height:1.6
  }
  .section-meta {
    gap:5px;
    font-size:9px
  }
  .section-meta .btn {
    font-size:10px;
    padding:6px 8px
  }
  .ideas-grid {
    grid-template-columns:1fr;
    gap:14px
  }
  .idea-card {
    padding:20px
  }
  .idea-title {
    font-size:20px
  }
  .card-caption {
    font-size:12px
  }
  .card-adaptation {
    font-size:13px
  }
  .card-hook {
    font-size:12px
  }
  .card-metrics .metric {
    font-size:16px
  }
  .card-metrics .metric.growth {
    font-size:13px
  }
  .card-metrics .metric span {
    font-size:10px
  }
  .empty-state {
    padding:34px 19px
  }
  .empty-state h3 {
    font-size:20px
  }
  .empty-state p {
    font-size:11px
  }
  .empty-actions .btn {
    font-size:11px;
    padding:10px 11px
  }
  .workflow-strip {
    grid-template-columns:1fr;
    gap:17px;
    padding:19px 0
  }
  .workflow-step strong {
    font-size:12px
  }
  .workflow-step p {
    font-size:11px
  }
  .workflow-step .step-number {
    width:28px;
    height:28px
  }
  .notice {
    font-size:11px;
    gap:8px;
    padding:12px;
    flex-wrap:wrap
  }
  .notice .btn {
    margin:0 0 0 24px
  }
  .notice>div {
    flex:1;
    min-width:0
  }
  .job {
    font-size:11px;
    padding:11px 52px 11px 11px
  }
  .job .btn {
    font-size:10px
  }
  .toolbar {
    gap:8px
  }
  .toolbar .searchbox {
    flex-basis:100%
  }
  .toolbar select {
    flex:1;
    max-width:none;
    font-size:11px
  }
  .toolbar .btn {
    font-size:11px
  }
  .platform-stats {
    grid-template-columns:minmax(0,1fr)
  }
  .platform-stat {
    display:flex;
    flex-wrap:wrap;
    min-width:0;
    align-items:center;
    gap:12px;
    padding:14px
  }
  .platform-stat .value {
    margin:0;
    margin-left:auto;
    font-size:22px
  }
  .platform-stat p {
    font-size:9px;
    flex-basis:100%;
    max-width:none
  }
  .publication-card {
    padding:17px
  }
  .publication-top h3 {
    font-size:16px
  }
  .publication-metrics {
    gap:20px
  }
  .publication-metrics .metric {
    font-size:16px
  }
  .source-grid {
    grid-template-columns:1fr;
    gap:11px
  }
  .source-card {
    padding:17px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:4px 15px
  }
  .source-card h3 {
    font-size:14px;
    margin:7px 0 3px;
    grid-column:1
  }
  .source-card p {
    margin:0;
    font-size:11px;
    grid-column:1
  }
  .source-card>.pill {
    width:max-content
  }
  .source-status {
    grid-column:2;
    grid-row:1/-1;
    align-self:center;
    font-size:10px;
    max-width:100px
  }
  .panel {
    padding:20px
  }
  .settings-grid,.settings-stack {
    gap:15px
  }
  .form-grid {
    gap:13px
  }
  .form-grid.three,.form-grid.four {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .form-grid.three>:last-child {
    grid-column:1/-1
  }
  .input-button .btn {
    padding:10px 12px
  }
  .detail-meta {
    gap:13px;
    font-size:10px
  }
  .detail-metrics {
    gap:8px
  }
  .detail-metrics .metric {
    font-size:16px;
    padding:11px
  }
  .detail-metrics .metric span {
    font-size:9px
  }
  .cost-grid {
    gap:8px
  }
  .cost-item {
    font-size:15px;
    padding:10px
  }
  .cost-item span {
    font-size:9px
  }
  .modal-header {
    padding:20px 18px 16px
  }
  .modal-header h2 {
    font-size:19px
  }
  .modal-body {
    padding:20px 18px
  }
  .modal-body p {
    font-size:11px
  }
  .hook-option {
    padding:11px;
    font-size:11px;
    gap:10px
  }
  .hook-option .hook-arrow {
    font-size:9px
  }
  .detail-actions .btn {
    font-size:10px;
    padding:8px 11px
  }
  .page-footer {
    font-size:9px;
    flex-direction:column;
    gap:7px;
    margin-top:25px
  }
  .toasts {
    bottom:82px;
    right:16px
  }
  .login-screen {
    display:block
  }
  .login-story {
    padding:29px 27px 33px;
    min-height:300px
  }
  .login-story .brand {
    margin-bottom:36px;
    font-size:22px
  }
  .login-story h1 {
    font-size:32px;
    margin-bottom:17px;
    max-width:330px
  }
  .login-story p {
    font-size:12px;
    margin-bottom:0;
    max-width:300px
  }
  .login-decor {
    width:210px;
    height:210px;
    right:-90px;
    bottom:-90px
  }
  .login-form-wrapper {
    padding:35px 27px;
    min-height:360px
  }
  .login-form h2 {
    font-size:23px
  }
  .login-form>p {
    font-size:12px
  }
  .tabs {
    width:100%;
    gap:3px
  }
  .tab {
    flex:1;
    padding:8px 9px;
    font-size:10px
  }
}

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

.mobile-logout {
  display:none
}

.login-form-wrapper {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:45px
}

.login-eyebrow {
  color:#80979f
}

.pilot-count {
  float:right;
  color:#d1dedf
}

.selected-section {
  margin-top:30px
}

.saved-batch {
  font-size:10px;
  color:var(--muted);
  margin:15px 0 0
}

.no-bottom-gap {
  margin-bottom:0
}

.source-error {
  color:var(--red)!important;
  grid-column:1/-1
}

.schedule-switch {
  margin-bottom:17px
}

.budget-settings {
  margin-top:15px
}

.budget-settings summary {
  cursor:pointer;
  font-size:11px;
  color:var(--muted)
}

#budget-settings-form {
  margin-top:17px
}

.compact-actions {
  margin-top:12px
}

.snapshot-refresh {
  margin:15px 0
}

@media(max-width:600px) {
  .login-form-wrapper {
    padding:35px 27px;
    min-height:360px
  }
  .mobile-logout {
    display:flex
  }
}

.selected-list {
  display:flex;
  flex-direction:column;
  gap:9px
}

.selected-row {
  display:flex;
  gap:13px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 18px
}

.selected-check {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--soft-green);
  color:var(--green);
  width:32px;
  height:32px;
  border-radius:9px;
  flex-shrink:0
}

.selected-check svg {
  width:16px;
  height:16px
}

.selected-text {
  flex:1;
  min-width:0
}

.selected-text button {
  font-size:12px;
  font-weight:600;
  text-align:left;
  color:var(--ink);
  padding:0;
  background:none;
  overflow-wrap:anywhere
}

.selected-text button:hover {
  color:var(--orange-dark)
}

.selected-text p {
  font-size:10px;
  color:var(--muted);
  margin:5px 0 0
}

@media(max-width:600px) {
  .job {
    flex-wrap:wrap
  }
  .job .job-label {
    flex-basis:calc(100% - 26px)
  }
  .job-actions {
    margin-left:26px
  }
  .selected-row {
    padding:14px;
    gap:10px;
    flex-wrap:wrap
  }
  .selected-text button {
    font-size:12px
  }
  .selected-row .btn {
    margin-left:42px
  }
  .selected-text p {
    font-size:10px;
    line-height:1.7
  }
}

@media(max-width:380px) {
  .hero-actions {
    flex-wrap:wrap
  }
  .hero-actions .btn {
    flex-basis:100%
  }
  .card-actions {
    flex-wrap:wrap
  }
  .card-actions .original-link {
    margin-left:auto
  }
  .card-actions .btn {
    min-width:100px
  }
  .section-heading {
    flex-wrap:wrap
  }
  .section-meta {
    margin-left:auto
  }
  .notice .btn {
    margin-left:24px
  }
}

@media(max-width:600px) {
  .delete-confirm-actions {
    flex-wrap:wrap
  }
  .delete-confirm-actions .btn {
    flex:1 1 100%;
    min-height:44px;
    white-space:normal;
    justify-content:center
  }
  .card-top {
    flex-wrap:wrap
  }
  .card-top-right {
    flex-wrap:wrap;
    margin-left:auto
  }
  .content-tag,
  .tag-filter,
  .card-management .btn,
  .bank-production-filter select,
  .toast .toast-action {
    min-height:44px
  }
  .content-tag-options {
    grid-template-columns:1fr
  }
  .content-tag-options .checkbox {
    min-height:44px
  }
  .bank-production-filter .btn {
    margin-left:auto
  }
}

/* Trend conditions and the saved library use explicit, separate scopes. */
.trend-filters-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  align-items:start;
  margin-bottom:20px
}
.trend-filters-grid .panel {
  min-width:0
}
.trend-filter-counts {
  margin:18px 0 24px
}
.trend-filter-counts>div {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:13px 0;
  border-bottom:1px solid var(--line)
}
.trend-filter-counts dt {
  font-size:12px;
  color:var(--muted)
}
.trend-filter-counts dd {
  margin:0;
  font-size:23px;
  font-weight:600
}
.trend-filter-counts>div:first-child dd {
  color:var(--green)
}
.trend-filter-reasons {
  list-style:none;
  padding:0;
  margin:12px 0
}
.trend-filter-reasons li {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:9px 0;
  font-size:12px;
  line-height:1.5
}
.trend-filter-reasons strong {
  flex-shrink:0;
  font-weight:600
}
.filter-result-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px
}
.trend-required-checks {
  max-width:100%
}
.bank-scope .tab {
  min-height:44px
}
@media(max-width:1190px) {
  .trend-filters-grid {
    grid-template-columns:1fr
  }
}
@media(max-width:600px) {
  .nav-item {
    min-width:0;
    padding:5px 2px;
    min-height:55px;
    justify-content:center
  }
  .nav-item span:not(.nav-count) {
    max-width:100%;
    white-space:normal;
    line-height:1.15;
    text-align:center;
    font-size:8px
  }
  .bank-scope {
    display:flex;
    width:100%;
    gap:3px
  }
  .bank-scope .tab {
    flex:1;
    white-space:normal;
    padding:8px 5px;
    font-size:10px
  }
  .trend-filters-grid {
    gap:15px
  }
  .trend-filters-grid .form-actions .btn,
  .filter-result-actions .btn {
    width:100%;
    min-height:44px
  }
}
