:root {
  --ink: #17152b;
  --muted: #706b82;
  --blue: #6f3de0;
  --blue-hover: #5326bb;
  --green: #11a96a;
  --green-soft: #effbf5;
  --sky: #efe9ff;
  --canvas: #f8f6ff;
  --line: #e7e1f0;
  --white: #ffffff;
}

/* Application views */
.inline-form { display: inline; margin: 0; }
button.button { cursor: pointer; font-family: inherit; }
button.button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.button-danger { color: #a01f2f; background: #fff5f6; border-color: #e6a5ad; }
.button-danger:hover { background: #fee9ec; }
.flash { position: fixed; z-index: 80; top: 112px; left: 50%; transform: translateX(-50%); max-width: min(680px, calc(100vw - 32px)); padding: 15px 20px; border: 1px solid; border-radius: 12px; box-shadow: 0 16px 45px rgba(16,33,63,.15); font-weight: 700; transition: opacity .2s ease, transform .2s ease; }
.flash-success { color: #087745; border-color: #8ad7b0; background: #effbf5; }
.flash-error { color: #9f1f2f; border-color: #ebaab2; background: #fff4f5; }
.flash-hide { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }

.auth-shell { min-height: calc(100vh - 96px); padding: 76px clamp(24px,7vw,110px); display: grid; grid-template-columns: minmax(0,620px) minmax(360px,1fr); align-items: start; justify-content: center; gap: clamp(50px,9vw,140px); background: linear-gradient(135deg,#fff 0%,var(--canvas) 100%); }
.auth-shell.single { grid-template-columns: minmax(0,620px); }
.auth-card, .auth-aside { border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 24px 64px rgba(22,71,145,.1); }
.auth-card { padding: clamp(28px,5vw,55px); }
.auth-card h1 { margin: 0; font-size: clamp(38px,4vw,55px); }
.form-intro { color: var(--muted); font-size: 17px; line-height: 1.65; }
.auth-aside { margin-top: 46px; padding: 42px; background: var(--ink); color: white; }
.auth-aside h2 { margin: 14px 0 28px; font-size: 34px; line-height: 1.15; letter-spacing: -.035em; }
.auth-aside ul { padding: 0; list-style: none; display: grid; gap: 18px; }
.auth-aside li { padding-left: 29px; position: relative; color: #d1d9e7; line-height: 1.5; }
.auth-aside li::before { content: "✓"; position: absolute; left: 0; color: #55d59c; font-weight: 900; }
.auth-aside > p { margin-top: 32px; color: #9eacc1; font-size: 13px; line-height: 1.6; }
.stack-form { margin-top: 32px; display: grid; gap: 21px; }
.stack-form label, .grid-form label, .filter-row label, .inline-action label { display: grid; gap: 8px; color: #34445c; font-size: 14px; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cdd8e8; border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: 15px; outline: 0; transition: border .18s ease, box-shadow .18s ease; }
textarea { min-height: 130px; resize: vertical; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,87,230,.12); }
input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--blue); }
.check-label { display: flex !important; align-items: flex-start; gap: 12px !important; line-height: 1.5; font-weight: 500 !important; }
.check-label a { color: var(--blue); text-decoration: underline; }
.form-error { padding: 13px 15px; border: 1px solid #ebaab2; border-radius: 9px; color: #9f1f2f; background: #fff4f5; font-size: 14px; }
.fineprint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.auth-switch { margin: 26px 0 0; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 700; }

.account-shell { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 245px minmax(0,1fr); background: var(--canvas); }
.account-nav { padding: 45px 20px; border-right: 1px solid var(--line); background: white; display: flex; flex-direction: column; gap: 8px; }
.account-nav strong { margin: 0 14px 15px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.account-nav a { padding: 13px 15px; border-radius: 9px; color: #53617a; font-size: 14px; font-weight: 650; }
.account-nav a:hover { background: var(--canvas); color: var(--blue); }
.account-nav a.active { color: var(--blue); background: var(--sky); }
.account-content { min-width: 0; padding: 58px clamp(25px,5vw,78px) 100px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.page-head .section-kicker { margin-bottom: 17px; }
.page-head h1 { margin: 0; max-width: 900px; font-size: clamp(38px,4.5vw,64px); }
.page-head p:not(.section-kicker) { margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.notice { margin: 0 0 18px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid; border-radius: 12px; }
.notice b { white-space: nowrap; }
.notice span { color: #526079; font-size: 14px; }
.notice a { color: var(--blue); font-weight: 750; }
.notice.warning { border-color: #eed78d; background: #fffaf0; }
.notice.info { border-color: #b9cef7; background: #f3f7ff; }
.account-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 28px 0; }
.account-metrics article { min-height: 145px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: white; }
.account-metrics span { color: var(--muted); font-size: 13px; font-weight: 650; }
.account-metrics b { margin-top: 13px; font-size: 41px; letter-spacing: -.045em; }
.account-metrics small { margin-top: auto; color: #8290a5; }
.panel { margin-top: 22px; padding: clamp(22px,3.5vw,36px); border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 14px 38px rgba(16,33,63,.045); }
.panel > h2, .panel-head h2 { margin: 0 0 22px; font-size: 25px; letter-spacing: -.025em; }
.panel > p { color: var(--muted); line-height: 1.6; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head a, .table-link { color: var(--blue); font-weight: 700; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); }
.empty-state b { color: var(--ink); font-size: 18px; }
.empty-state p { margin-bottom: 0; }
.data-list { display: grid; }
.data-list article { min-height: 83px; padding: 13px 0; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 82px; align-items: center; gap: 15px; border-top: 1px solid var(--line); }
.data-list article:first-child { border-top: 0; }
.list-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: var(--sky); font-weight: 800; }
.data-list article > span:nth-child(2), table td:first-child, .table-link { min-width: 0; display: grid; gap: 5px; }
.data-list small, table small { color: var(--muted); font-size: 12px; }
.data-list time { color: var(--muted); font-size: 12px; text-align: right; }
.badge { display: inline-flex; width: max-content; align-items: center; padding: 7px 10px; border-radius: 20px; border: 1px solid #b9cef7; color: var(--blue); background: #f3f7ff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-submitted, .badge-approved, .badge-active, .badge-completed { color: #087745; border-color: #8ad7b0; background: var(--green-soft); }
.badge-needs_action, .badge-review, .badge-candidate, .badge-paused, .badge-processing, .badge-trialing { color: #875d00; border-color: #eed78d; background: #fffaf0; }
.badge-failed, .badge-blocked, .badge-canceled, .badge-past_due { color: #9f1f2f; border-color: #ebaab2; background: #fff4f5; }
.grid-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.span-two { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.category-check { cursor: pointer; }
.category-check input { position: absolute; opacity: 0; pointer-events: none; }
.category-check span { min-height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: #53617a; background: white; font-size: 14px; font-weight: 700; }
.category-check input:checked + span { color: var(--blue); border-color: var(--blue); background: var(--sky); }
.preference-form { display: grid; gap: 25px; }
.pause-check { padding-top: 5px; }
.danger-zone { border-color: #f0c7cc; }
.danger-zone h2 { color: #8e2230; }
.filter-row { margin-bottom: 25px; display: flex; align-items: end; gap: 13px; }
.filter-row label { min-width: 200px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 14px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td code, dd code { word-break: break-all; font-size: 11px; }
.price-grid.compact { margin-top: 25px; }
.subscription-panel, .engine-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.subscription-panel h2, .engine-panel h2 { margin: 14px 0 5px; }
.subscription-panel p, .engine-panel p { margin: 0; }
.cancellation { margin-top: 35px; }
.admin-shell .account-content { max-width: 1550px; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.checklist li { padding: 14px 16px 14px 48px; position: relative; border-radius: 10px; background: #fff8f0; color: #6d5b41; }
.checklist li::before { content: "!"; position: absolute; left: 16px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e8b95a; color: white; font-weight: 900; }
.checklist li.done { background: var(--green-soft); color: #176e48; }
.checklist li.done::before { content: "✓"; background: var(--green); }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.detail-grid .panel { margin-top: 0; }
dl { display: grid; grid-template-columns: 145px 1fr; gap: 12px 18px; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; min-width: 0; word-break: break-word; }
dd a { color: var(--blue); font-weight: 700; }
.finding-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.finding-list li { display: flex; gap: 10px; align-items: center; color: #526079; }
.finding-list span { width: 11px; height: 11px; border-radius: 50%; background: #e2ac3f; }
.finding-stop span { background: #d64558; }
.finding-candidate span { background: var(--green); }
.inline-action { display: flex; align-items: end; gap: 15px; }
.inline-action label { flex: 1; }
.legal-shell { padding: 75px 24px 110px; background: var(--canvas); }
.legal-document { max-width: 900px; margin: auto; padding: clamp(28px,6vw,70px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.legal-document h1 { font-size: clamp(42px,6vw,70px); }
.legal-document h2 { margin: 45px 0 14px; font-size: 24px; }
.legal-document p { color: #4f5e75; line-height: 1.75; }

@media (max-width: 1050px) {
  .account-metrics { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .auth-shell { grid-template-columns: minmax(0,700px); }
  .auth-aside { margin-top: 0; }
}
@media (max-width: 800px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-nav { padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; position: sticky; top: 74px; z-index: 20; }
  .account-nav strong { display: none; }
  .account-nav a { white-space: nowrap; }
  .account-content { padding: 40px 18px 80px; }
  .page-head { display: grid; }
  .detail-grid { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .notice { grid-template-columns: 1fr; }
  .notice b { white-space: normal; }
}
@media (max-width: 600px) {
  .auth-shell { padding: 45px 16px; }
  .auth-aside { padding: 28px; }
  .account-metrics, .grid-form, .category-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .data-list article { grid-template-columns: 45px 1fr; }
  .data-list .badge, .data-list time { display: none; }
  .subscription-panel, .engine-panel, .inline-action { align-items: stretch; flex-direction: column; }
  .filter-row { align-items: stretch; flex-direction: column; }
  .filter-row label { min-width: 0; }
  dl { grid-template-columns: 1fr; gap: 4px; }
  dd { margin-bottom: 12px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid rgba(36, 87, 230, .28); outline-offset: 4px; border-radius: 8px; }

.site-header {
  min-height: 96px;
  padding: 18px clamp(24px, 4.4vw, 68px);
  display: grid;
  grid-template-columns: minmax(225px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}
.logo-link { justify-self: start; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 48px; height: 36px; display: block; position: relative; transform: rotate(-8deg); }
.brand-mark i { position: absolute; width: 39px; height: 16px; border: 5px solid var(--blue); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; left: 4px; }
.brand-mark i:first-child { top: 2px; }
.brand-mark i:last-child { bottom: 2px; }
nav { display: flex; align-items: center; gap: clamp(26px, 4vw, 58px); font-size: 16px; font-weight: 600; white-space: nowrap; }
nav a { position: relative; padding: 10px 2px; }
nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: 3px; background: var(--blue); transition: right .18s ease; }
nav a:hover::after { right: 0; }
.header-actions { justify-self: end; display: flex; gap: 14px; }

.button { min-height: 48px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 16px; font-weight: 700; border: 1px solid transparent; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(36, 87, 230, .2); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 13px 30px rgba(36, 87, 230, .27); }
.button-secondary, .button-ghost { background: white; color: var(--blue); border-color: var(--blue); }
.button-secondary:hover, .button-ghost:hover { background: var(--sky); }
.button-large { min-height: 58px; padding-inline: 28px; font-size: 17px; }
.button-wide { width: 100%; min-height: 55px; }

.hero {
  min-height: calc(100vh - 96px);
  padding: clamp(64px, 8vw, 118px) clamp(24px, 4.4vw, 68px) 86px;
  background: linear-gradient(135deg, #fff 0%, #fff 48%, var(--canvas) 100%);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  gap: clamp(50px, 6vw, 96px);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; animation: rise .45s ease both; }
.eyebrow, .section-kicker { margin: 0 0 25px; color: var(--blue); font-size: 15px; line-height: 1; font-weight: 700; display: inline-flex; align-items: center; padding: 12px 17px; border-radius: 12px; background: var(--sky); }
h1 { margin: 0; max-width: 650px; font-size: clamp(50px, 4.55vw, 73px); line-height: 1.05; letter-spacing: -.055em; font-weight: 820; }
h1 span { display: block; }
.hero-text { margin: 29px 0 0; max-width: 600px; color: #52617a; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.57; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px; }
.trust-list { margin: 43px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; color: #36465e; font-size: 13px; line-height: 1.35; font-weight: 600; }
.trust-list li { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border-left: 1px solid var(--line); }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 18px; }

.dashboard-wrap { position: relative; z-index: 2; animation: rise .55s .08s ease both; }
.dashboard-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: 0 24px 64px rgba(22, 71, 145, .13); }
.dashboard-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dashboard-head h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.035em; }
.demo-label { color: var(--blue); text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.month { padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; color: #53617a; font-size: 14px; background: white; }
.month b { margin-left: 14px; color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.metric { min-height: 98px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 47px 1fr; grid-template-rows: 1fr 1fr; column-gap: 13px; align-items: center; }
.metric-icon { grid-row: 1 / 3; width: 47px; height: 56px; display: grid; place-items: center; border-radius: 11px; font-size: 21px; font-weight: 800; }
.metric-icon.blue { color: var(--blue); background: var(--sky); }
.metric-icon.green { color: white; background: linear-gradient(145deg, #31c980, #16a863); }
.metric b { align-self: end; font-size: 27px; line-height: 1; }
.metric small { align-self: start; margin-top: 5px; color: var(--muted); font-size: 12px; }
.activity-list { margin-top: 18px; display: grid; gap: 10px; }
.activity-row { min-height: 81px; padding: 11px 14px; display: grid; grid-template-columns: 72px 1fr auto auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; transition: transform .18s ease, background .18s ease; }
.activity-row:hover { transform: translateY(-2px); background: var(--canvas); }
.prize-thumb { width: 72px; height: 56px; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(145deg, #73a6fd, #2457e6); font-size: 18px; font-weight: 800; }
.activity-row:nth-child(2) .prize-thumb { background: linear-gradient(145deg, #3b4a61, #111d2e); }
.activity-row:nth-child(3) .prize-thumb { background: linear-gradient(145deg, #2472f5, #113ca7); }
.activity-main { min-width: 0; display: grid; gap: 5px; }
.activity-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.activity-main small, .activity-row time { color: var(--muted); font-size: 12px; }
.status { padding: 8px 10px; border-radius: 9px; border: 1px solid #8ad7b0; color: #087745; background: var(--green-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status i { width: 18px; height: 18px; margin-right: 5px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-style: normal; }
.new-chance { min-height: 92px; margin-top: 17px; padding: 14px 16px; display: grid; grid-template-columns: 54px 1fr 24px; gap: 15px; align-items: center; border: 1px solid #b9e3ca; border-radius: 14px; background: linear-gradient(100deg, var(--green-soft), #fff); box-shadow: 0 12px 30px rgba(34,181,115,.12); }
.gift { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 31px; font-weight: 300; }
.new-chance > span:nth-child(2) { display: grid; gap: 5px; }
.new-chance b { font-size: 15px; }
.new-chance small { color: var(--muted); font-size: 12px; }
.arrow { color: #07814c; font-size: 36px; }
.hero-orbit { position: absolute; border-radius: 48% 52% 63% 37%; background: var(--sky); opacity: .68; filter: blur(.2px); }
.hero-orbit-one { width: 740px; height: 690px; right: -70px; top: 48px; transform: rotate(18deg); }
.hero-orbit-two { width: 420px; height: 380px; right: 27%; bottom: -160px; opacity: .5; }
.route { position: absolute; width: 128px; border-top: 3px dashed #77a7ff; z-index: -1; opacity: .9; }
.route-top { right: -42px; top: -53px; transform: rotate(13deg); }
.route-bottom { left: -68px; bottom: -40px; transform: rotate(-12deg); }

.section { padding: 120px clamp(24px, 6vw, 92px); }
.section h2 { margin: 0; max-width: 830px; font-size: clamp(38px, 4vw, 60px); line-height: 1.08; letter-spacing: -.045em; }
.section-kicker { margin-bottom: 23px; }
.intro { background: var(--ink); color: white; }
.intro .section-kicker { color: #a9c5ff; background: rgba(68,122,255,.16); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 65px; }
.steps article { padding: 34px; min-height: 280px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.055); }
.steps article > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: var(--blue); font-weight: 800; }
.steps h3, .safety-grid h3 { margin: 40px 0 15px; font-size: 23px; letter-spacing: -.02em; }
.steps p { margin: 0; color: #bdc8d9; font-size: 16px; line-height: 1.65; }

.safety { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(55px, 8vw, 120px); background: var(--canvas); }
.section-copy > p:not(.section-kicker):not(.legal-note) { max-width: 560px; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.legal-note { margin-top: 35px; padding: 20px 22px; max-width: 560px; border-left: 4px solid var(--green); background: white; color: #46556c; line-height: 1.55; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.safety-grid article { padding: 28px; min-height: 235px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.safety-grid article > span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.safety-grid h3 { margin-top: 30px; }
.safety-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.pricing { text-align: center; }
.pricing .section-kicker { margin-inline: auto; }
.pricing h2, .pricing-lead { margin-inline: auto; }
.pricing-lead { max-width: 720px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.price-grid { max-width: 850px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; text-align: left; }
.price-card { position: relative; padding: 37px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 18px 48px rgba(16,33,63,.07); }
.price-card.featured { border: 2px solid var(--blue); box-shadow: 0 22px 58px rgba(36,87,230,.15); }
.best-value { position: absolute; top: -15px; right: 22px; padding: 8px 13px; border-radius: 20px; background: var(--green); color: white; font-size: 12px; font-weight: 800; }
.price-card > p { color: var(--blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.price-card h3 { margin: 10px 0 25px; font-size: 27px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 45px; letter-spacing: -.045em; }
.price span { color: var(--muted); }
.price-card ul { margin: 32px 0; padding: 0; list-style: none; display: grid; gap: 15px; color: #435169; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 10px; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(55px, 9vw, 130px); background: var(--canvas); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 82px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--blue); font-size: 29px; font-weight: 400; transition: transform .18s ease; }
details[open] summary span { transform: rotate(45deg); }
details > p { margin: -5px 0 25px; padding-right: 45px; color: var(--muted); line-height: 1.65; }

footer { padding: 70px clamp(24px, 6vw, 92px) 35px; display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 50px; border-top: 1px solid var(--line); }
footer > div:first-child > p { max-width: 390px; margin: 20px 0 0; color: var(--muted); line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 15px; color: #526079; font-size: 14px; }
.footer-links a:hover { color: var(--blue); }
footer > small { grid-column: 1 / -1; padding-top: 35px; border-top: 1px solid var(--line); color: #7a8699; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1150px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .dashboard-wrap { max-width: 760px; }
  .hero-orbit-one { top: 43%; }
  .safety, .faq { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 74px; padding: 13px 20px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand-mark { width: 37px; transform: scale(.8) rotate(-8deg); transform-origin: left center; margin-right: -5px; }
  .header-actions .button-ghost { display: none; }
  .header-actions .button { min-height: 44px; padding-inline: 16px; font-size: 14px; }
  .hero { min-height: auto; padding: 60px 20px 70px; grid-template-columns: minmax(0,1fr); gap: 58px; }
  h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-text { font-size: 18px; }
  .hero-actions { display: grid; }
  .button-large { width: 100%; }
  .trust-list { grid-template-columns: 1fr; gap: 14px; }
  .trust-list li, .trust-list li:first-child { border: 0; padding: 0; min-height: auto; }
  .dashboard-card { padding: 17px; overflow: hidden; }
  .dashboard-head h2 { font-size: 22px; }
  .month { display: none; }
  .metrics { gap: 8px; }
  .metric { min-height: 86px; padding: 10px; display: flex; flex-direction: column; gap: 5px; text-align: center; }
  .metric-icon { width: 35px; height: 35px; flex: 0 0 35px; }
  .metric b { font-size: 22px; }
  .metric small { margin: 0; }
  .activity-row { grid-template-columns: 48px 1fr; min-height: 72px; }
  .prize-thumb { width: 48px; height: 45px; font-size: 13px; }
  .activity-row time, .activity-row .status { display: none; }
  .new-chance { grid-template-columns: 45px 1fr; }
  .gift { width: 45px; height: 45px; }
  .new-chance .arrow { display: none; }
  .section { padding: 84px 20px; }
  .steps, .safety-grid, .price-grid { grid-template-columns: 1fr; }
  .steps { margin-top: 45px; }
  .steps article { min-height: auto; }
  .safety-grid { margin-top: 20px; }
  .price-card { padding: 28px; }
  footer { grid-template-columns: 1fr; padding: 60px 20px 30px; }
  footer > small { grid-column: auto; }
}

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

/* Probemonat-Tarife */
.trial-card { display: flex; flex-direction: column; }
.trial-card h3 { min-height: 68px; margin-bottom: 20px; line-height: 1.15; }
.trial-price { min-height: 112px; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; border: 1px solid #e8e1ff; border-radius: 17px; background: linear-gradient(135deg, #f7f3ff 0%, #fff 100%); }
.trial-price > span { max-width: 120px; color: var(--blue); font-size: 15px; font-weight: 800; line-height: 1.25; }
.trial-price > b { white-space: nowrap; color: var(--ink); font-size: clamp(52px, 5vw, 66px); line-height: .9; letter-spacing: -.055em; }
.trial-after { min-height: 58px; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.trial-after strong { color: var(--ink); }
.trial-after small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.trial-card ul { margin-top: 27px; }
.trial-card form { margin-top: auto; }
.trial-note { display: block; margin-top: 12px; color: #7a8192; font-size: 12px; line-height: 1.45; text-align: center; }

@media (max-width: 760px) {
  .trial-card h3 { min-height: auto; }
  .trial-price { min-height: 98px; padding: 19px 20px; }
  .trial-price > b { font-size: 56px; }
  .trial-after { min-height: auto; }
}

/* Membership-period progress and capacity */
.progress-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px 35px; }
.progress-copy h2 { margin: 14px 0 6px; }
.progress-copy p { margin: 0; color: var(--muted); }
.progress-number { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.progress-number b { font-size: 48px; letter-spacing: -.05em; }
.progress-number span { color: var(--muted); font-weight: 700; }
.progress-track { grid-column: 1 / -1; height: 12px; overflow: hidden; border-radius: 999px; background: var(--sky); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
@media (max-width: 600px) {
  .progress-panel { grid-template-columns: 1fr; }
  .progress-number { justify-content: flex-start; }
  .progress-track { grid-column: auto; }
}

/* Adapter-Engine V2 */
.adapter-form-card { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbfaff; }
.adapter-form-card h3 { margin: 0 0 5px; }
.adapter-form-card > p { margin: 0 0 15px; color: var(--muted); overflow-wrap: anywhere; }
.adapter-form-card td small, .panel table td small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.adapter-newsletter-row { background: #fff4f4; }
.adapter-help { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.adapter-help code { padding: 7px 10px; border: 1px solid #e4dcff; border-radius: 999px; background: #f7f3ff; color: var(--purple); font-size: 12px; }
.adapter-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: stretch; }
.adapter-live-confirm { grid-column: 1 / -1; margin: 4px 0; padding: 14px 16px; border: 1px solid #f0d798; border-radius: 14px; background: #fffaf0; }
.adapter-live-confirm span { color: #624b16; font-size: 14px; line-height: 1.45; }
@media (max-width: 850px) {
  .adapter-actions { grid-template-columns: 1fr; }
}

/* Auto-Adapter Generator */
.auto-adapter-panel { border: 1px solid #dcd1ff; background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%); }
.auto-status { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.auto-status-green { color: #087747; background: #e8fff3; border: 1px solid #9be0bd; }
.auto-status-yellow { color: #755200; background: #fff8db; border: 1px solid #ebd279; }
.auto-status-red { color: #a52731; background: #fff0f1; border: 1px solid #efa7ad; }
.auto-generate-row { margin-top: 18px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.auto-generate-row b { display: block; margin-bottom: 5px; font-size: 17px; }
.auto-generate-row p { margin: 0; color: var(--muted); line-height: 1.45; }
.auto-metrics { margin-top: 18px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,.65fr)); gap: 12px; }
.auto-metrics article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.auto-metrics span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.auto-metrics b { display: block; overflow-wrap: anywhere; font-size: 18px; }
.auto-message { margin-top: 18px; padding: 17px 19px; border-radius: 15px; line-height: 1.5; }
.auto-message b { display: block; margin-bottom: 4px; }
.auto-message p { margin: 0; }
.auto-message ul { margin: 8px 0 0; padding-left: 20px; }
.auto-message-green { color: #09633d; background: #eafff4; border: 1px solid #a8e1c4; }
.auto-message-yellow { color: #6d5000; background: #fff9e2; border: 1px solid #ead27b; }
.auto-message-red { color: #9e2630; background: #fff1f2; border: 1px solid #efa9af; }
.auto-decisions { margin-top: 20px; padding: 20px; border: 1px solid #ead688; border-radius: 17px; background: #fffaf0; }
.auto-decisions-head { margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.auto-decisions-head h3 { margin: 0 0 5px; }
.auto-decisions-head p { margin: 0; color: #765f29; line-height: 1.45; }
.auto-decisions-head > span { min-width: max-content; padding: 6px 10px; border-radius: 999px; color: #725300; background: #ffefb1; font-size: 12px; font-weight: 800; }
.auto-decision-row { padding: 15px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.9fr); gap: 22px; align-items: center; border-top: 1px solid #eadfb6; }
.auto-decision-row b { display: block; }
.auto-decision-row small { display: block; margin-top: 5px; color: #735f31; line-height: 1.4; }
.auto-decision-controls { display: grid; gap: 8px; }
.auto-decisions > .button { margin-top: 15px; }
.auto-details, .adapter-advanced { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.auto-details > summary, .adapter-advanced > summary { min-height: 58px; padding: 14px 17px; }
.auto-details[open] > summary, .adapter-advanced[open] > summary { border-bottom: 1px solid var(--line); }
.auto-details .table-wrap, .adapter-advanced > .adapter-help, .adapter-advanced > label { margin: 16px; }
.adapter-advanced > label { display: block; }

@media (max-width: 900px) {
  .auto-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auto-decision-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  .auto-generate-row, .auto-decisions-head { align-items: stretch; flex-direction: column; }
  .auto-generate-row .button { width: 100%; }
  .auto-metrics { grid-template-columns: 1fr; }
}

/* Adapter test diagnostics */
.adapter-test-result > b { display: block; }
.adapter-test-details { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; }
.adapter-test-details > summary { cursor: pointer; padding: 10px 12px; color: var(--purple); font-weight: 800; }
.adapter-test-details[open] > summary { border-bottom: 1px solid var(--line); }
.adapter-test-details dl { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 8px 14px; margin: 0; padding: 12px; }
.adapter-test-details dt { color: var(--muted); font-weight: 800; }
.adapter-test-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.adapter-test-details dd > code { white-space: normal; overflow-wrap: anywhere; }
.adapter-field-list { display: flex; flex-wrap: wrap; gap: 6px; }
.adapter-field-list code { padding: 4px 7px; border-radius: 8px; background: #f0ebff; color: var(--purple); font-size: 11px; }
@media (max-width: 760px) { .adapter-test-details dl { grid-template-columns: 1fr; } }


/* Confirmed entries: open the original competition in a new tab. */
.entry-competition-link {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease;
}
.entry-competition-link > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.entry-competition-link:hover,
.entry-competition-link:focus-visible {
  color: var(--blue);
}
.entry-competition-link:focus-visible {
  outline: 3px solid rgba(111,61,224,.18);
  outline-offset: 4px;
  border-radius: 4px;
}
.entry-external-icon {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Competition batch analysis */
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.page-head-actions form { margin: 0; }
.batch-intro { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 30px; align-items: start; }
.batch-intro h2 { margin: 14px 0 8px; }
.batch-intro p { margin: 0; color: var(--muted); line-height: 1.55; }
.batch-intro ul { margin: 0; padding: 20px 22px 20px 42px; border-radius: 16px; background: #fbf9ff; line-height: 1.6; }
.batch-analysis-panel { overflow: hidden; }
.batch-state { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.batch-state-running, .batch-state-queued { color: #684600; background: #fff4c7; border: 1px solid #e7ca63; }
.batch-state-completed { color: #087747; background: #e8fff3; border: 1px solid #9be0bd; }
.batch-state-cancelled { color: #7a4550; background: #fff0f2; border: 1px solid #edb4bb; }
.batch-metrics { display: grid; grid-template-columns: 1.15fr repeat(4,minmax(0,.8fr)); gap: 12px; margin-top: 20px; }
.batch-metrics article { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.batch-metrics article > span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.batch-metrics article > b { display: block; margin: 8px 0 3px; font-size: 29px; line-height: 1; }
.batch-metrics article > b i { font-style: normal; }
.batch-metrics article > small { color: var(--muted); }
.batch-green { background: #effff7 !important; border-color: #b1e6ca !important; }
.batch-yellow { background: #fffbed !important; border-color: #ebdb9d !important; }
.batch-red, .batch-failed { background: #fff4f5 !important; border-color: #efbdc2 !important; }
.batch-progress { height: 13px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: #eee9fb; }
.batch-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--purple),#9d70ff); transition: width .3s ease; }
.batch-current { min-height: 24px; margin-top: 14px; color: var(--muted); font-weight: 700; }
.batch-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.batch-controls form { margin: 0; }
.batch-controls [data-batch-resume]:disabled { display: none; }
.batch-results small { display: block; max-width: 440px; line-height: 1.45; color: var(--muted); }
.batch-result-queued { opacity: .6; }
.batch-result-processing { background: #fbf9ff; }
.batch-result-green { background: #f7fffb; }
.batch-result-yellow { background: #fffdf5; }
.batch-result-red, .batch-result-failed { background: #fff8f8; }
@media (max-width: 1100px) {
  .batch-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .page-head-actions, .page-head-actions .button { width: 100%; }
  .page-head-actions form { width: 100%; }
  .batch-intro { grid-template-columns: 1fr; }
  .batch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .batch-metrics { grid-template-columns: 1fr; }
}

/* Mitspiel white brand overrides */
:root { --ink:#171719; --muted:#707078; --blue:#5b45f7; --blue-hover:#4632dc; --sky:#f0edff; --canvas:#f8f8f9; --line:#e7e7ea; }
.site-header { display:none !important; }
body.app-page { background:#fff; }
.account-shell { min-height:calc(100vh - 84px); }
.account-nav { top:84px; }
.button { border-radius:11px; }
.button-primary { background:#171719; box-shadow:none; }
.button-primary:hover { background:#343438; box-shadow:none; }
.section-kicker { color:#5b45f7; background:#f0edff; }
.auth-aside { background:#171719; }
.flash { top:96px; }
.auto-profile-mappings { margin-top: 20px; padding: 20px; border: 1px solid #b9dfd1; border-radius: 17px; background: #f2fbf7; }
.auto-profile-mappings .auto-decisions-head p { color: #356b59; }
.auto-profile-mappings .auto-decision-row { border-top-color: #cde9df; }
.auto-profile-mappings .auto-decision-row small { color: #4f7467; }
.auto-profile-badge { justify-self: end; padding: 7px 11px; border-radius: 999px; background: #dff5ec; color: #0b7658; font-size: 12px; font-weight: 800; }
@media (max-width: 760px) { .auto-profile-badge { justify-self: start; } }

/* Form discovery and candidate ranking */
.form-discovery-summary,
.selected-form-source {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:16px 0;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fbfbfd;
}
.form-discovery-summary p,
.selected-form-source span { margin:5px 0 0; color:var(--muted); line-height:1.45; }
.selected-form-source { flex-direction:column; gap:4px; background:#f6f4ff; border-color:#d9d2ff; }
.selected-form-source a,
.form-discovery-summary a { max-width:100%; overflow-wrap:anywhere; }
.adapter-form-card h3 { overflow-wrap:anywhere; }
.adapter-form-card p { overflow-wrap:anywhere; }
@media (max-width:760px) {
  .form-discovery-summary { flex-direction:column; }
}

/* Green-Yield 0.8.1 */
.yield-start-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.yield-start-form label{display:grid;gap:5px;font-size:.78rem;font-weight:800;color:#64748b}.yield-start-form input{width:92px;min-height:42px;border:1px solid #d8e0eb;border-radius:10px;padding:8px 10px;font:inherit;color:#111827;background:#fff}.yield-overview{margin-bottom:18px;grid-template-columns:repeat(4,minmax(0,1fr))}.yield-insights-grid{display:grid;gap:18px;margin-bottom:22px}.yield-insights-grid details.panel{padding:0;overflow:hidden}.yield-insights-grid details.panel>summary{padding:20px 24px}.yield-insights-grid details.panel>.table-wrap,.yield-insights-grid details.panel>.empty-state{border-top:1px solid #e6ebf2}.yield-insights-grid table small{display:block;margin-top:4px;color:#64748b}.batch-state-target_reached{background:#e8fff3;color:#047857;border-color:#9ee8c5}
@media (max-width:1000px){.yield-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.yield-start-form{width:100%}.yield-start-form .button{width:100%}}
@media (max-width:620px){.yield-overview{grid-template-columns:1fr}.yield-start-form label{flex:1}.yield-start-form input{width:100%}}
.yield-competition-summary{display:flex;align-items:center;justify-content:space-between;gap:24px}.yield-competition-summary h2{margin:10px 0 5px}.yield-competition-summary p{margin:0;color:#64748b}.yield-competition-summary>div:last-child{min-width:120px;text-align:right}.yield-competition-summary>div:last-child small,.yield-competition-summary>div:last-child b{display:block}.yield-competition-summary>div:last-child b{font-size:1.5rem;margin-top:5px}
@media (max-width:700px){.yield-competition-summary{align-items:flex-start;flex-direction:column}.yield-competition-summary>div:last-child{text-align:left}}

/* Monatsreferenzen und vereinfachte Administration */
.admin-nav-more{min-width:0;margin:4px 0;border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:4px;display:grid;gap:2px;background:#fff}
.admin-nav-more summary{cursor:pointer;font-weight:800;padding:10px 12px;list-style:none;color:#475569}
.admin-nav-more summary::-webkit-details-marker{display:none}
.admin-nav-more[open] summary{color:#111827}
.admin-nav-more a{width:100%;margin:0;padding:11px 12px;display:block;white-space:normal;overflow-wrap:anywhere}
.reference-metrics{margin-bottom:24px}
.reference-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.reference-import-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end}
.reference-import-form button{grid-column:1/-1}
.reference-organizer-list,.reference-candidate-list{display:grid;gap:0}
.reference-organizer-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #e8edf4}
.reference-organizer-list>div:last-child{border-bottom:0}
.reference-organizer-list span{color:#64748b;text-align:right;font-size:.92rem}
.reference-candidate-list a{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #e8edf4;text-decoration:none;color:inherit}
.reference-candidate-list a:last-child{border-bottom:0}
.reference-candidate-list span{display:grid;gap:4px;min-width:0}
.reference-candidate-list b{overflow-wrap:anywhere}
.reference-candidate-list small{color:#64748b}
.reference-candidate-list em{font-style:normal;font-weight:900;color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;padding:6px 10px;white-space:nowrap}
.filter-check{display:flex!important;align-items:center;gap:8px;align-self:end;min-height:46px}
.filter-check input{width:auto!important;margin:0}
@media (max-width:900px){.reference-action-grid{grid-template-columns:1fr}.reference-import-form{grid-template-columns:1fr}.reference-import-form button{grid-column:auto}.reference-organizer-list>div{align-items:flex-start;flex-direction:column;gap:3px}.reference-organizer-list span{text-align:left}}

/* Autopilot und datenbankgestütztes Magazin */
.autopilot-progress{height:14px;margin:18px 0 22px;overflow:hidden;border-radius:999px;background:#edf0f5;box-shadow:inset 0 0 0 1px #e0e5ec}
.autopilot-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b45f7,#18a875);transition:width .25s ease}
.ms-editorial-content{font-size:1.04rem;line-height:1.78;color:#303039}
.ms-editorial-content h2{margin-top:2.1em;color:#171719}
.ms-editorial-content h3{margin-top:1.6em;color:#25252a}
.ms-editorial-content a{color:#5b45f7;font-weight:750}
.ms-editorial-roundup{display:grid;gap:14px;margin:22px 0}
.ms-editorial-roundup article{padding:18px 20px;border:1px solid #e7e7ea;border-radius:16px;background:#fbfbfc}
.ms-editorial-roundup article h3{margin:0 0 8px}
.ms-editorial-roundup article p{margin:6px 0}
.ms-magazine-categories a.active{border-color:#ff755f;box-shadow:0 10px 26px rgba(255,117,95,.13)}

/* Betriebsampel und Ausnahmeübersicht 0.9.7 */
.ms-system-light-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 8px}
.ms-system-light-grid article{min-height:145px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:14px;background:#fff}
.ms-system-light-grid article>b{margin-top:15px;font-size:16px}
.ms-system-light-grid article>small{margin-top:auto;padding-top:12px;color:var(--muted);line-height:1.45}
.ms-source-light-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.ms-source-light-grid article{padding:13px 14px;display:grid;grid-template-columns:auto 1fr;align-items:start;gap:12px;border:1px solid var(--line);border-radius:12px;background:#fbfbfc}
.ms-source-light-grid article div{min-width:0;display:grid;gap:4px}
.ms-source-light-grid article small{color:var(--muted);line-height:1.4}
.ms-problem-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.ms-problem-metrics article{padding:16px 18px;display:grid;grid-template-columns:1fr auto;gap:5px 16px;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fbfbfc}
.ms-problem-metrics article span{font-weight:800}
.ms-problem-metrics article b{grid-row:1/3;grid-column:2;font-size:30px}
.ms-problem-metrics article small{color:var(--muted)}
@media (max-width:1000px){.ms-system-light-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.ms-system-light-grid,.ms-source-light-grid,.ms-problem-metrics{grid-template-columns:1fr}.ms-system-light-grid article{min-height:125px}}
