:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171717;background:#f4f5f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:#111214;color:#fff;padding:30px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none;margin-bottom:42px}.brand-mark{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#ff5a36,#d71920);display:grid;place-items:center;font-weight:900}.brand strong,.brand small{display:block}.brand small{color:#92959b;font-size:11px;margin-top:2px;letter-spacing:.08em}.sidebar nav{display:grid;gap:7px}.sidebar nav a,.sidebar nav span{padding:11px 13px;border-radius:8px;color:#9da0a6;text-decoration:none;font-size:14px}.sidebar nav .active{background:#24262a;color:#fff}.sidebar-foot{margin-top:auto;color:#696c72;font-size:11px}.content{padding:42px;max-width:1600px;width:100%;margin:0 auto}.notice{padding:12px 15px;border-radius:9px;margin-bottom:18px;font-size:12px;font-weight:700}.notice.success{background:#eaf7ef;border:1px solid #ccebd8;color:#18794e}.notice.error{background:#fff1f0;border:1px solid #ffd5d2;color:#a7261b}.page-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;margin-bottom:28px}.page-head h1{font-size:34px;letter-spacing:-.035em;margin:5px 0 4px}.page-head p{margin:0;color:#70747b}.page-actions{display:flex;gap:10px;align-items:center}.primary-button,.settings-card button,.inline-form button{display:inline-flex;align-items:center;justify-content:center;background:#191a1c;color:#fff!important;text-decoration:none;border:0;border-radius:9px;padding:11px 15px;font-size:12px;font-weight:750;cursor:pointer}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#e33a2b}.status-pill,.badge{font-size:11px;font-weight:700;background:#fff;border:1px solid #e0e2e5;border-radius:999px;padding:8px 12px}.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:13px;margin-bottom:25px}.kpis.four{grid-template-columns:repeat(4,1fr)}.kpis article,.panel{background:#fff;border:1px solid #e3e5e8;border-radius:14px;box-shadow:0 2px 10px rgba(15,18,22,.035)}.kpis article{padding:18px}.kpis span{display:block;color:#767a80;font-size:11px;margin-bottom:9px}.kpis strong{font-size:26px}.kpis strong small{font-size:11px;color:#7a7e84}.panel{padding:22px;margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-head h2{margin:3px 0 0;font-size:19px}.panel-head>span{font-size:12px;color:#85888d}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-card{border:1px solid #e7e8ea;border-radius:11px;padding:17px;display:grid;gap:12px;align-content:start}.settings-card h3{margin:0 0 3px}.settings-card label>span,.inline-form label>span{display:block;font-size:10px;font-weight:750;color:#60646b;margin-bottom:5px}.settings-card input,.settings-card select,.inline-form input,.inline-form select{width:100%;border:1px solid #dfe1e4;border-radius:8px;padding:10px;background:#fff;font:inherit;font-size:12px}.check{display:flex!important;gap:8px;align-items:center;font-size:12px;color:#555a61}.check input{width:auto!important}.check span{margin:0!important}.site-settings,.add-site{grid-column:1/-1;border-top:1px dashed #ddd;padding-top:10px}.site-settings summary,.add-site summary{cursor:pointer;font-size:11px;font-weight:750;color:#555}.add-site{margin-top:16px}.inline-form{display:grid;grid-template-columns:1fr 1.5fr .6fr 1fr auto;gap:8px;align-items:center;margin-top:10px}.pipeline{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.pipeline-stage{background:#f6f7f8;border:1px solid #eceef0;border-radius:9px;padding:12px}.pipeline-stage strong{display:block;font-size:20px}.pipeline-stage span{font-size:10px;color:#72767c}.progress-track{height:7px;background:#eceef0;border-radius:999px;overflow:hidden;margin:14px 0 7px}.progress-track span{display:block;height:100%;background:#30a46c;border-radius:999px}.pipeline-panel>small{color:#777c83;font-size:10px}.search-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.search-kpis article{background:#f7f8f9;border:1px solid #eceef0;border-radius:10px;padding:14px}.search-kpis span{display:block;font-size:9px;color:#73777d;text-transform:uppercase;font-weight:800;letter-spacing:.05em}.search-kpis strong{display:block;font-size:22px;margin-top:5px}.trend-list{margin-top:18px;border-top:1px solid #eceef0}.trend-head,.trend-row{display:grid;grid-template-columns:1fr 110px 90px 90px;gap:10px;align-items:center}.trend-head{padding:13px 8px 8px;font-size:10px;color:#73777d}.trend-row{padding:10px 8px;border-top:1px solid #f0f1f2;font-size:11px}.trend-row>div{min-width:0}.trend-row strong,.trend-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trend-row small{color:#8a8e94;margin-top:3px}.trend-row.gain>span:first-of-type{color:#18794e;font-weight:800}.trend-row.loss>span:first-of-type{color:#b42318;font-weight:800}.alert-center{border-top:3px solid #e43b2e}.alert-summary{display:flex;gap:12px;align-items:center;background:#f7f8f9;border-radius:10px;padding:12px 14px;margin-bottom:10px}.alert-summary strong{font-size:24px}.alert-summary span{font-size:11px;color:#6d7279}.alert-list{display:grid;gap:8px}.search-alert{display:flex;gap:12px;border:1px solid #e6e8eb;border-left-width:4px;border-radius:10px;padding:13px;background:#fff}.search-alert.severity-critical{border-left-color:#b42318;background:#fff8f7}.search-alert.severity-warning{border-left-color:#f0a000;background:#fffdf5}.search-alert h3{margin:4px 0;font-size:14px}.search-alert p{margin:0;color:#62676e;font-size:11px}.alert-severity{align-self:flex-start;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;background:#f1f2f4}.severity-critical .alert-severity{color:#b42318;background:#feeceb}.severity-warning .alert-severity{color:#8a5b00;background:#fff2c7}.split{display:grid;grid-template-columns:1.15fr .85fr;gap:20px}.site-detail{border-top:1px solid #eee;padding:17px 0;display:grid;grid-template-columns:1fr auto;gap:14px}.site-detail:first-of-type{border-top:0}.site-actions{display:flex;align-items:center;gap:10px}.site-actions button{border:0;background:#191a1c;color:#fff;padding:10px 13px;border-radius:8px;cursor:pointer}.site-detail small,.action-row small{color:#85888e}.score{width:40px;height:40px;border-radius:50%;background:#f0f8f4;color:#18794e;display:grid;place-items:center;font-weight:800}.score.large{width:54px;height:54px;font-size:18px}.history{grid-column:1/-1;height:62px;background:#f6f7f8;border-radius:8px;padding:8px;display:flex;align-items:end;gap:5px}.history span{display:block;flex:1;min-height:3px;max-width:30px;background:#e43b2e;border-radius:3px}.monitoring{grid-column:1/-1;display:flex;justify-content:space-between;color:#73777d;font-size:11px}.integration-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.integration-card{border:1px solid #e4e6e9;border-radius:9px;padding:11px;background:#fafbfc}.integration-card>div{display:flex;justify-content:space-between;gap:8px}.integration-card strong{font-size:11px}.integration-card span{font-size:8px;text-transform:uppercase;font-weight:850;letter-spacing:.05em}.integration-card p{font-size:10px;color:#6d7279;line-height:1.4;margin:7px 0 3px}.integration-card small{font-size:9px}.integration-card.state-ready{border-left:3px solid #30a46c}.integration-card.state-configuration_required{border-left:3px solid #f0a000}.integration-card.state-disabled{opacity:.65}.action-group{border-top:1px solid #e8e9eb;padding-top:16px;margin-top:16px}.action-group-head,.action-meta{display:flex;gap:7px;align-items:center}.action-group-head{justify-content:space-between}.action-row{display:flex;gap:12px;align-items:flex-start;border-top:1px solid #eee;padding:15px 0}.action-row p{font-size:12px;color:#666b72;margin:5px 0;line-height:1.5}.priority{background:#fff0ed;color:#c72b1c;font-size:11px;font-weight:900;border-radius:7px;padding:7px}.grow{flex:1;min-width:0}.action-meta{flex-wrap:wrap}.action-meta span{font-size:9px;color:#777c83}.category-chip{background:#f2f3f5;border-radius:999px;padding:4px 7px;text-transform:uppercase;font-weight:800}.recommendation{background:#f7f8f9;border-left:3px solid #e43b2e;padding:8px 10px}.affected-urls{display:grid;gap:3px;margin:9px 0;font-size:10px}.affected-urls a{color:#555f70;overflow:hidden;text-overflow:ellipsis}.action-row select{border:1px solid #ddd;border-radius:7px;padding:7px;background:#fff;font-size:11px}.table{display:grid}.table-row{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:15px;padding:12px 4px;border-top:1px solid #eee;font-size:12px;color:inherit;text-decoration:none}.back{display:inline-block;color:#777;text-decoration:none;font-size:12px;margin-bottom:18px}.empty{color:#909399;font-size:13px}@media(max-width:1100px){body{grid-template-columns:80px 1fr}.split,.settings-grid{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr 1fr}.pipeline{grid-template-columns:repeat(3,1fr)}.integration-grid{grid-template-columns:1fr}.search-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:720px){body{display:block}.sidebar{display:none}.content{padding:22px}.kpis,.kpis.four{grid-template-columns:1fr 1fr}.page-head{display:block}.site-actions{flex-wrap:wrap}.table-row{grid-template-columns:1fr 1fr}.action-row{flex-wrap:wrap}.pipeline{grid-template-columns:repeat(2,1fr)}.inline-form{grid-template-columns:1fr}.trend-head{display:none}.trend-row{grid-template-columns:1fr 1fr 1fr}.trend-row>div{grid-column:1/-1}}@media(max-width:520px){.kpis,.kpis.four,.search-kpis{grid-template-columns:1fr 1fr}}

.operator-queue{display:grid;gap:18px}.operator-queue>.panel-head{margin-bottom:0}.attention-group{display:grid;gap:10px}.attention-group-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px}.attention-group-head strong{font-size:12px}.attention-group-head span{font-size:10px;background:#f1f2f4;border-radius:999px;padding:4px 8px}.attention-card{border-left:4px solid #d5d7da}.attention-card.level-critical{border-left-color:#b42318;background:#fffafa}.attention-card.level-high{border-left-color:#e98b00}.attention-card.level-medium{border-left-color:#5d6672}.attention-reason{font-weight:750;margin:12px 0 8px}.attention-meta{display:flex;flex-wrap:wrap;gap:6px}.attention-meta span{font-size:9px;background:#f3f4f5;border-radius:999px;padding:5px 8px;color:#5f646b}.execution-state{font-weight:800!important}.failure-detail{font-size:10px;color:#a7261b;background:#fff1f0;padding:8px;border-radius:7px}.healthy-state{border-left:4px solid #30a46c}

.attention-actions{display:flex;align-items:center;gap:8px;margin-top:12px}.attention-actions form{margin:0}.attention-actions a,.attention-actions button{display:inline-flex;border:0;border-radius:7px;padding:8px 10px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}.attention-actions a{background:#f0f1f2;color:#333}.attention-actions button{background:#191a1c;color:#fff}

.login-panel{max-width:520px;margin:10vh auto}.login-panel h1{margin-bottom:8px}.login-form{display:grid;gap:14px;margin-top:24px}.login-form label span{display:block;font-size:10px;font-weight:800;margin-bottom:6px}.login-form input{width:100%;border:1px solid #dfe1e4;border-radius:8px;padding:12px;font:inherit}.login-form button{border:0;border-radius:9px;background:#191a1c;color:#fff;padding:12px 15px;font-weight:800;cursor:pointer}

.action-card{padding:18px 0}.priority-block{width:58px;flex:0 0 58px;text-align:center}.priority-block .priority{display:inline-block;min-width:38px;font-size:13px}.priority-block>span{display:block;margin-top:5px;font-size:8px;font-weight:800;color:#777c83;text-transform:uppercase;letter-spacing:.04em}.status-chip{border:1px solid #e0e2e5;border-radius:999px;padding:4px 7px!important;background:#fff}.affected-details{margin:10px 0}.affected-details summary{cursor:pointer;font-size:10px;font-weight:800;color:#4f5660}.affected-details[open] summary{margin-bottom:7px}.affected-details .affected-urls{max-height:180px;overflow:auto;background:#f7f8f9;border-radius:8px;padding:8px;margin:0}.affected-details .affected-urls a{padding:3px 0}.action-source{display:block;margin-top:9px}.action-status-form{flex:0 0 135px}.action-status-form label>span{display:block;font-size:8px;font-weight:800;color:#777c83;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.action-status-form select{width:100%}
@media(max-width:720px){.priority-block{width:48px;flex-basis:48px}.action-status-form{flex:1 1 100%;margin-left:60px}}

html{scroll-behavior:smooth;scroll-padding-top:24px}
.project-workspace{display:grid;grid-template-columns:1fr;gap:20px}
.project-workspace>.panel{margin-bottom:0}
.project-workspace .work-queue{max-height:none;overflow:visible}
#websites,#massnahmen,#audit-verlauf{scroll-margin-top:24px}

.audit-run-row{align-items:center;gap:12px}.audit-run-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}.audit-run-actions a{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-weight:700}.audit-run-actions a:hover{border-color:var(--accent)}@media(min-width:900px){.audit-run-actions{grid-column:auto;margin-left:auto}}

/* Audit report actions: primary actions must read visually as buttons. */
.audit-run-actions{gap:10px}
.audit-run-actions a{min-height:40px;padding:10px 14px;border:1px solid #d7dce3;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06);font-weight:700;line-height:1.2;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.audit-run-actions a:first-child{background:#15171a;color:#fff;border-color:#15171a}
.audit-run-actions a:not(:first-child){background:#f7f8fa;color:#15171a}
.audit-run-actions a:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(16,24,40,.10);border-color:#aeb6c2}
.audit-run-actions a:focus-visible{outline:3px solid currentColor;outline-offset:2px}

/* Audit detail report toolbar */
.report-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.report-actions>span{font-weight:700;margin-right:2px}.report-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 13px;border:1px solid #d7dce3;border-radius:10px;background:#f7f8fa;color:#15171a;text-decoration:none;font-weight:700;line-height:1.2;box-shadow:0 1px 2px rgba(16,24,40,.05)}.report-actions a:first-of-type{background:#15171a;color:#fff;border-color:#15171a}.report-actions a:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(16,24,40,.10);border-color:#aeb6c2}.report-actions a:focus-visible{outline:3px solid currentColor;outline-offset:2px}

/* Agency portfolio visual hierarchy */
.customer-section{padding:26px}.customer-section>.panel-head{padding-bottom:16px;border-bottom:1px solid #eceef1}.customer-section>.panel-head h2{font-size:22px}.customer-section .project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.portfolio-card{display:block;border:1px solid #e2e5e9;border-radius:12px;padding:18px;background:#fff;color:#171717;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.portfolio-card:hover{transform:translateY(-2px);border-color:#cfd4da;box-shadow:0 8px 24px rgba(15,18,22,.08)}.portfolio-card .project-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.portfolio-card h3{margin:0 0 5px;font-size:17px}.portfolio-card small{color:#777c83}.portfolio-card .project-metrics{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 12px}.portfolio-card .project-metrics span{background:#f5f6f7;border-radius:999px;padding:6px 9px;font-size:10px;color:#5e636a}.portfolio-card .site-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;border-top:1px solid #eceef1}.portfolio-card .site-row>div:first-child{min-width:0}.portfolio-card .site-row strong,.portfolio-card .site-row small{display:block}.portfolio-card .site-row small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portfolio-card .score{flex:0 0 40px}
@media(max-width:900px){.customer-section .project-grid{grid-template-columns:1fr}}

/* Agency queue visual cleanup */
.operator-queue{padding:26px}.operator-queue .project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.attention-card{padding:17px;border:1px solid #e3e5e8;border-left-width:4px;border-radius:11px;box-shadow:0 1px 4px rgba(15,18,22,.035)}.attention-card .project-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.attention-card h3{margin:0 0 4px;font-size:15px}.attention-card .badge{flex:0 0 auto;padding:6px 9px}.attention-reason{font-size:12px;line-height:1.45}.attention-actions a,.attention-actions button{min-height:36px;padding:9px 12px;border-radius:8px}.attention-actions a{border:1px solid #e0e3e7;background:#fff}.attention-actions button{box-shadow:0 1px 2px rgba(16,24,40,.08)}
@media(max-width:900px){.operator-queue .project-grid{grid-template-columns:1fr}}

/* Project website workspace */
.website-workspace{padding:26px}.website-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 24px;padding:22px;border:1px solid #e2e5e9;border-radius:14px;background:#fff}.website-card+.website-card{margin-top:16px}.site-identity h3{margin:3px 0 5px;font-size:20px}.site-url{display:block;max-width:720px;color:#626870;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-url:hover{text-decoration:underline}.website-card .site-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:9px;flex-wrap:wrap}.website-card .site-actions form{margin:0}.website-card .site-actions button,.website-card .site-actions summary{min-height:38px;display:inline-flex;align-items:center;padding:8px 11px;border-radius:8px}.website-card .history,.website-card .monitoring,.website-card .integration-grid,.website-card>.site-settings{grid-column:1/-1}.website-card .monitoring{display:flex;gap:18px;flex-wrap:wrap;padding:11px 13px;border-radius:9px;background:#f7f8f9;font-size:12px}.website-card .integration-grid{margin-top:0}.website-card>.site-settings{border-top:1px solid #eceef1;padding-top:12px}.website-workspace>.add-site{margin-top:16px;padding:14px 16px;border:1px dashed #cfd4da;border-radius:10px}
@media(max-width:900px){.website-card{grid-template-columns:1fr}.website-card .site-actions{justify-content:flex-start}.website-card .history,.website-card .monitoring,.website-card .integration-grid,.website-card>.site-settings{grid-column:1}}

/* Measures and audit history */
.measures-panel{padding:26px}.measures-panel .action-group{margin-top:18px}.measures-panel .action-group-head{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e8eaed}.measures-panel .action-card{margin-top:10px;border:1px solid #e3e6e9;border-radius:12px;padding:17px;background:#fff}.measures-panel .action-card h3{margin:7px 0;font-size:16px}.measures-panel .recommendation{padding:10px 12px;background:#f7f8f9;border-radius:8px}.measures-panel .action-status-form{min-width:170px}.audit-history-panel{padding:26px}.audit-history-panel .table{display:grid;gap:10px}.audit-history-panel .audit-run-row{display:grid;grid-template-columns:150px 110px 100px 110px minmax(300px,1fr);align-items:center;gap:12px;padding:14px 15px;border:1px solid #e3e6e9;border-radius:11px;background:#fff}.audit-run-date{font-weight:700}.audit-run-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.audit-run-actions a{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid #d9dde2;border-radius:8px;background:#f8f9fa;color:#1c2024;text-decoration:none;font-size:11px;font-weight:700}.audit-run-actions a:first-child{background:#17191c;border-color:#17191c;color:#fff}.audit-run-actions a:hover{transform:translateY(-1px)}
@media(max-width:1100px){.audit-history-panel .audit-run-row{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-run-actions{grid-column:1/-1;justify-content:flex-start}}@media(max-width:700px){.audit-history-panel .audit-run-row{grid-template-columns:1fr}.audit-run-actions{grid-column:auto}.measures-panel .action-card{display:block}.measures-panel .action-status-form{margin-top:14px}}

/* Audit detail hierarchy */
.audit-hero{align-items:flex-start;padding:8px 0 18px}.audit-hero h1{font-size:30px;letter-spacing:-.025em}.audit-hero .score{min-width:62px;min-height:62px;display:flex;align-items:center;justify-content:center;font-size:20px}.audit-kpis{gap:12px}.audit-kpis article{padding:18px;border-radius:12px}.audit-kpis article span{display:block;margin-bottom:7px;text-transform:uppercase;letter-spacing:.06em;font-size:9px}.audit-kpis article strong{font-size:24px}.audit-findings-panel{padding:26px}.audit-findings-panel .panel-head{padding-bottom:14px;border-bottom:1px solid #eceef1}.audit-findings-panel .action-row{padding:18px 0;gap:14px}.audit-findings-panel .action-row+.action-row{border-top:1px solid #eceef1}.audit-findings-panel .priority{flex:0 0 38px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#fff0ed}.audit-findings-panel h3{margin:4px 0 8px;font-size:17px}.audit-findings-panel p{max-width:1050px}.affected-details{margin:10px 0}.affected-details summary{cursor:pointer;font-weight:700}.affected-urls{display:grid;gap:5px;margin-top:8px}.affected-urls a{overflow-wrap:anywhere}

/* Login shell */
.login-shell{display:block;background:#f2f3f5}.login-shell .sidebar{display:none}.login-shell .content{width:100%;max-width:none;margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px}.login-panel{width:min(460px,100%);padding:34px;border-radius:16px;box-shadow:0 18px 50px rgba(18,22,28,.10)}.login-panel h1{margin:6px 0 8px;font-size:30px;overflow-wrap:normal;word-break:normal}.login-panel>p{margin-bottom:24px;color:#686d73}.login-form{display:grid;gap:16px}.login-form label span{display:block;margin-bottom:7px;font-size:12px;font-weight:800}.login-form input{width:100%;min-height:46px;padding:10px 12px;border:1px solid #d7dbe0;border-radius:9px;background:#fff}.login-form button{min-height:46px;border:0;border-radius:9px;background:#17191c;color:#fff;font-weight:800;cursor:pointer}.login-form button:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(16,24,40,.12)}

/* Global responsive finishing */
.content{max-width:1680px}.panel,.metric,.project-card,.action-card,.attention-card,.site-detail{min-width:0}a,button,input,select,summary{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}.content h1,.content h2,.content h3{overflow-wrap:anywhere}
@media(max-width:980px){.sidebar{width:190px}.content{margin-left:190px;padding:24px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head,.audit-head{gap:16px;flex-wrap:wrap}}
@media(max-width:720px){body:not(.login-shell){display:block}.sidebar{position:static;width:auto;height:auto;padding:14px 16px;display:flex;align-items:center;gap:14px;overflow-x:auto}.sidebar .brand{flex:0 0 auto;margin:0}.sidebar nav{display:flex;gap:6px;flex:0 0 auto}.sidebar nav a{white-space:nowrap;padding:8px 10px}.sidebar-foot{display:none}.content{margin-left:0;padding:18px 14px}.page-head h1,.audit-head h1{font-size:26px}.kpi-grid{grid-template-columns:1fr 1fr}.panel{padding:18px}.project-grid{grid-template-columns:1fr}.report-actions,.site-actions{justify-content:flex-start}.action-row{align-items:flex-start}.action-row .grow{min-width:0}}
@media(max-width:460px){.kpi-grid{grid-template-columns:1fr}.content{padding:14px 10px}.panel{padding:15px}.sidebar{padding:10px}.sidebar .brand small{display:none}.action-row{display:block}.action-row .priority{margin-bottom:9px}}


/* v1.2.1 project dashboard layout hardening */

.project-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 24px;
    align-items: start;
}

.project-workspace > *,
.website-workspace,
.measures-panel,
.website-card,
.site-identity,
.site-actions,
.audit-delta,
.integration-center {
    min-width: 0;
}

.website-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 24px;
    align-items: start;
}

.website-card > .site-identity {
    grid-column: 1;
}

.website-card > .site-actions {
    grid-column: 2;
}

.website-card > .history,
.website-card > .monitoring,
.website-card > .audit-delta,
.website-card > .integration-center,
.website-card > .site-settings {
    grid-column: 1 / -1;
}

.site-url,
.affected-urls a,
.integration-card,
.audit-delta,
.monitoring {
    overflow-wrap: anywhere;
    word-break: normal;
}

.history {
    width: 100%;
    min-width: 0;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.integration-card {
    min-width: 0;
}

.report-language-field {
    padding: 14px;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 10px;
}

.report-language-field > span {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.report-language-field select {
    width: 100%;
}

.report-language-field small {
    display: block;
    margin-top: 7px;
    opacity: .72;
    line-height: 1.4;
}

@media (max-width: 1050px) {
    .project-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .website-card {
        grid-template-columns: 1fr;
    }

    .website-card > .site-identity,
    .website-card > .site-actions {
        grid-column: 1;
    }

    .site-actions {
        width: 100%;
    }

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


/* v1.3 action management */
.action-management {
    margin-top: 14px;
}

.action-management > summary {
    cursor: pointer;
    font-weight: 700;
}

.action-management-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.action-management-form label {
    display: grid;
    gap: 6px;
}

.action-management-form label > span {
    font-size: .78rem;
    font-weight: 700;
}

.action-management-form .full {
    grid-column: 1 / -1;
}

.action-management-form textarea {
    resize: vertical;
}

.action-management-form button {
    justify-self: start;
}

@media (max-width: 760px) {
    .action-management-form {
        grid-template-columns: 1fr;
    }

    .action-management-form .full {
        grid-column: auto;
    }
}


/* v1.3 agency action operations */
.attention-card.level-critical .attention-reason {
    font-weight: 700;
}

.attention-meta span {
    overflow-wrap: anywhere;
}


.verification-summary,
.verification-counts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .5rem;
}

.verification-count {
    display: inline-flex;
    align-items: center;
    padding: .3rem .55rem;
    border-radius: .45rem;
    font-size: .82rem;
    font-weight: 700;
    background: rgba(255,255,255,.06);
}

.verification-details {
    margin-top: .7rem;
}

.verification-rule-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
}

.verification-rule-group code {
    padding: .2rem .4rem;
    border-radius: .3rem;
    background: rgba(255,255,255,.06);
}

.verification-failed {
    border-left: 3px solid currentColor;
}

.verification-pending {
    border-left: 3px dashed currentColor;
}


/* v1.3 project action workspace filters */
.action-filters {
    display:grid;
    grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto;
    gap:10px;
    align-items:end;
    padding:14px;
    margin-bottom:8px;
    border:1px solid #e4e6e9;
    border-radius:11px;
    background:#f8f9fa;
}
.action-filters label{display:grid;gap:5px}
.action-filters label>span{font-size:9px;font-weight:800;color:#686d73;text-transform:uppercase;letter-spacing:.05em}
.action-filters input,.action-filters select{width:100%;min-height:38px;padding:8px 10px;border:1px solid #d9dde2;border-radius:8px;background:#fff}
.action-filters button{min-height:38px;padding:8px 11px;border:1px solid #d9dde2;border-radius:8px;background:#fff;cursor:pointer;font-weight:700}
.operation-chip{padding:4px 7px;border-radius:999px;background:#f2f3f5}
.operation-chip.warning{background:#fff4d6;color:#805400!important}
.operation-chip.danger{background:#fff0ef;color:#a7261b!important;font-weight:800}
.action-filter-empty{padding:18px;margin-top:12px;text-align:center;border:1px dashed #d7dbe0;border-radius:10px}
.action-card[hidden],.action-group[hidden],.action-filter-empty[hidden]{display:none!important}

@media(max-width:1100px){
    .action-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
    .action-search{grid-column:1/-1}
}
@media(max-width:620px){
    .action-filters{grid-template-columns:1fr}
    .action-search{grid-column:auto}
}

/* PH-01: prevent website identity titles collapsing into character wrapping */
.website-card {
    grid-template-columns: minmax(280px, 1fr) minmax(0, auto);
}

.website-card > .site-identity {
    min-width: 280px;
}

.website-card .site-identity h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 1050px) {
    .website-card {
        grid-template-columns: 1fr;
    }

    .website-card > .site-identity,
    .website-card > .site-actions {
        grid-column: 1;
    }

    .website-card .site-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .website-card > .site-identity {
        min-width: 0;
    }

    .website-card .site-identity h3 {
        overflow-wrap: break-word;
    }
}


/* dashboard audit comparison v1 */
.audit-delta {
    padding: 20px;
    border: 1px solid #e3e6e9;
    border-radius: 13px;
    background: #fafbfc;
}

.audit-delta-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.audit-delta-head h3 {
    margin: 4px 0 0;
    font-size: 18px;
}

.audit-score-change {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-score-change > span {
    color: #73777d;
    font-size: 12px;
    font-weight: 700;
}

.audit-score-change strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.audit-score-change .positive {
    color: #18794e;
    background: #eaf7ef;
}

.audit-score-change .negative {
    color: #b42318;
    background: #fff0ed;
}

.audit-score-change .neutral {
    color: #656a70;
    background: #eef0f2;
}

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

.audit-change-grid article {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 14px 14px 13px;
    border: 1px solid #e5e7ea;
    border-radius: 10px;
    background: #fff;
}

.audit-change-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #d6d9dd;
}

.audit-change-grid .resolved::before,
.audit-change-grid .improved::before {
    background: #30a46c;
}

.audit-change-grid .new::before,
.audit-change-grid .worsened::before {
    background: #e43b2e;
}

.audit-change-grid article span {
    display: block;
    margin-bottom: 5px;
    color: #747980;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.audit-change-grid article strong {
    display: block;
    font-size: 23px;
    line-height: 1.1;
}

.audit-url-impact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e7e9ec;
    color: #73777d;
    font-size: 11px;
}

.audit-url-impact b {
    color: #33373c;
}

.integration-center {
    display: grid;
    gap: 16px;
}

.gsc-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    border: 1px solid #e1e5e8;
    border-radius: 11px;
    background: #f8faf9;
}

.gsc-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gsc-status-main > div {
    min-width: 0;
}

.gsc-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dfe3e6;
    font-weight: 900;
    font-size: 17px;
}

.gsc-status-main strong,
.gsc-status-main small {
    display: block;
}

.gsc-status-main strong {
    margin-top: 3px;
    font-size: 13px;
}

.gsc-status-main small {
    margin-top: 3px;
    color: #767b82;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gsc-status-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.gsc-connected {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf7ef;
    color: #18794e;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.gsc-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: #191a1c;
    color: #fff !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
}

@media (max-width: 900px) {
    .audit-change-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .audit-delta-head,
    .gsc-status-strip {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .gsc-status-actions {
        width: 100%;
    }

    .gsc-live-button {
        flex: 1;
    }
}

/* Integration Center actions */
.integration-check-form {
    display: block;
    margin: 14px 0 10px;
    width: 100%;
}

.integration-check-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 170px;
    max-width: 100%;
    padding: 10px 16px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}


.connector-management{grid-column:1/-1;margin-top:14px;padding:16px;border:1px solid #e4e6e9;border-radius:10px;background:#f8f9fa}
.connector-management-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.connector-management-head strong{display:block;font-size:12px}
.connector-management-head small{display:block;margin-top:4px;color:#777c83;font-size:10px}
.connector-state{padding:5px 8px;border-radius:999px;background:#eceef0;font-size:8px;font-weight:900;text-transform:uppercase}
.connector-state.state-active{background:#eaf7ef;color:#18794e}
.connector-state.state-pending{background:#fff4d6;color:#8a5b00}
.connector-state.state-revoked{background:#fff0ef;color:#a7261b}
.connector-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:13px;font-size:10px;color:#666b72}
.connector-actions{display:flex;gap:8px;margin-top:13px}
.connector-actions form{margin:0}
.connector-actions button{border:0;border-radius:8px;background:#191a1c;color:#fff;padding:9px 12px;font-size:10px;font-weight:800;cursor:pointer}
.connector-actions .danger-button{background:#fff0ef;color:#a7261b;border:1px solid #ffd5d2}
.connector-empty{margin:12px 0 0;font-size:10px;color:#777c83}
.connector-secret{margin-top:14px;padding:14px;border:1px solid #f0c36d;border-radius:9px;background:#fffaf0}
.connector-secret>strong{font-size:12px}
.connector-secret>p{font-size:10px;line-height:1.45;color:#6d6250}
.connector-secret label{display:block;margin-top:9px}
.connector-secret label span{display:block;margin-bottom:4px;font-size:9px;font-weight:800}
.connector-secret input{width:100%;padding:9px;border:1px solid #ddd4c3;border-radius:7px;background:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}
.connector-secret>small{display:block;margin-top:9px;color:#746b5b}


/* ==========================================================
   GLOBAL INTEGRATION CENTER
   ========================================================== */

.integration-page-head {
    margin-bottom: 22px;
}

.integration-project {
    margin-bottom: 24px;
}

.integration-site {
    padding: 20px 0;
    border-top: 1px solid #eceef0;
}

.integration-site:first-of-type {
    border-top: 0;
}

.integration-site-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.integration-site-head h3 {
    margin: 0 0 4px;
}

.integration-site-head a {
    font-size: 11px;
    color: #777c83;
    text-decoration: none;
}

.integration-site-head a:hover {
    color: #191a1c;
}

.integration-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 9px 13px;
    border-radius: 8px;
    background: #191a1c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.integration-action-link:hover {
    opacity: .88;
}

@media (max-width: 900px) {
    .integration-site-head {
        flex-direction: column;
    }
}


/* ==========================================================
   COMPACT INTEGRATION CENTER
   ========================================================== */

.integration-project-list {
    display: grid;
    gap: 18px;
}

.integration-project-compact {
    background: #fff;
    border: 1px solid #e4e6e9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(20, 24, 28, .035);
}

.integration-project-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eceef0;
}

.integration-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integration-title-line h2 {
    margin: 2px 0 3px;
    font-size: 20px;
}

.integration-site-url {
    font-size: 11px;
    color: #747980;
    text-decoration: none;
}

.integration-project-link {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

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

.integration-compact-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
}

.integration-compact-card.state-connected {
    border-top: 3px solid #31a56d;
}

.integration-compact-card.state-error {
    border-top: 3px solid #d94a4a;
}

.integration-compact-card.state-degraded,
.integration-compact-card.state-configuration_required,
.integration-compact-card.state-not_checked {
    border-top: 3px solid #e4a11b;
}

.integration-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.integration-compact-head h3 {
    margin: 2px 0 0;
    font-size: 14px;
}

.integration-provider {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8b9097;
}

.mini-state {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe2e5;
    border-radius: 999px;
    padding: 4px 7px;
    background: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.mini-state.state-connected {
    border-color: #bfe5d0;
    background: #eef9f3;
}

.mini-state.state-error {
    border-color: #efc4c4;
    background: #fff1f1;
}

.mini-state.state-degraded,
.mini-state.state-configuration_required,
.mini-state.state-not_checked {
    border-color: #ecd69f;
    background: #fff9e9;
}

.integration-compact-detail {
    margin: 12px 0 6px;
    min-height: 32px;
    font-size: 11px;
    line-height: 1.45;
    color: #555c64;
}

.integration-compact-data {
    margin: 0 0 8px;
    font-size: 10px;
    color: #747980;
}

.integration-compact-data.available {
    color: #277b53;
}

.integration-compact-actions {
    margin-top: auto;
    padding-top: 10px;
}

.integration-compact-actions form {
    margin: 0;
}

.integration-compact-actions button,
.compact-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.integration-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e6e8eb;
    font-size: 10px;
}

.integration-details summary {
    cursor: pointer;
    font-weight: 700;
    color: #666c73;
}

.integration-details p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
}

.compact-secret {
    margin: 10px 0 0;
    padding: 10px;
}

.compact-secret label {
    margin-top: 7px;
}

.compact-secret input {
    width: 100%;
}

@media (max-width: 1100px) {
    .integration-compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .integration-project-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .integration-project-compact {
        padding: 15px;
    }
}


/* Integration Center: stronger project hierarchy */

.integration-project-label {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .14em;
    color: #f04438;
}

.integration-project-name-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integration-project-name {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

.integration-site-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 11px;
    color: #737980;
}

.integration-site-meta strong {
    color: #444a50;
    font-weight: 700;
}

.integration-site-meta .integration-site-url {
    font-size: inherit;
}

/* ==========================================================
   INTEGRATION CENTER BUTTONS
   ========================================================== */

.integration-project-link,
.integration-compact-actions button,
.integration-compact-actions .compact-action-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid #191a1c;
    border-radius: 8px;
    background: #191a1c;
    color: #fff !important;
    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.integration-compact-actions button:hover,
.integration-compact-actions .compact-action-button:hover {
    opacity: .86;
    transform: translateY(-1px);
}

.integration-project-link {
    min-height: 32px;
    padding: 7px 12px;
    border-color: #d9dde1;
    background: #fff;
    color: #292d32 !important;
}

.integration-project-link:hover {
    border-color: #191a1c;
    background: #f5f6f7;
    color: #191a1c !important;
}

.integration-compact-actions .danger-button {
    border-color: #d43c3c;
    background: #fff;
    color: #c83232 !important;
}

.integration-compact-actions .danger-button:hover {
    background: #fff4f4;
    opacity: 1;
}

.integration-compact-actions form {
    display: inline-flex;
}

/* ==========================================================
   PROJECT MANAGEMENT
   ========================================================== */

.project-create-button,
.project-admin-head-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 8px;
    border: 1px solid #191a1c;
    background: #191a1c;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 800;
}

.project-admin-head-actions a {
    border-color: #d9dde1;
    background: #fff;
    color: #292d32 !important;
}


.customer-admin-list {
    display: grid;
    gap: 24px;
}

.customer-admin-card {
    overflow: hidden;
    background: #f7f8f9;
    border: 1px solid #dfe3e6;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(20,24,28,.045);
}

.customer-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e8eb;
}

.customer-admin-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.customer-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: #737980;
    font-size: 11px;
}

.customer-project-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.customer-project-list > .project-admin-card {
    box-shadow: none;
}

.customer-edit-panel {
    min-width: 180px;
    border: 1px solid #e4e7ea;
    border-radius: 10px;
    background: #fafbfc;
}

.customer-edit-panel summary {
    cursor: pointer;
    padding: 11px 13px;
    font-size: 11px;
    font-weight: 800;
}

.customer-edit-panel[open] {
    width: min(720px, 65vw);
}

.customer-admin-form {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 0 13px 13px;
}

.customer-admin-form label {
    display: grid;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
}

.customer-admin-form input {
    min-width: 0;
    height: 36px;
    padding: 7px 9px;
    border: 1px solid #d8dce0;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.customer-admin-form button {
    height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: #191a1c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.customer-empty-projects {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: #737980;
    font-size: 12px;
}

.customer-empty-projects a {
    font-weight: 800;
    text-decoration: none;
}

.orphan-projects {
    border-style: dashed;
}

@media (max-width: 1000px) {
    .customer-admin-form {
        grid-template-columns: 1fr 1fr;
    }

    .customer-edit-panel[open] {
        width: min(620px, 70vw);
    }
}

@media (max-width: 700px) {
    .customer-admin-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .customer-edit-panel,
    .customer-edit-panel[open] {
        width: 100%;
    }

    .customer-admin-form {
        grid-template-columns: 1fr;
    }

    .customer-project-list {
        padding: 12px;
    }
}


.project-admin-list {
    display: grid;
    gap: 18px;
}

.project-admin-card {
    background: #fff;
    border: 1px solid #e3e6e9;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(20,24,28,.035);
}

.project-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eceef0;
}

.project-admin-label {
    display: block;
    margin-bottom: 4px;
    color: #f04438;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.project-admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-admin-title h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.project-admin-meta {
    display: block;
    margin-top: 6px;
    color: #737980;
    font-size: 10px;
}

.project-admin-body {
    padding-top: 14px;
}

.project-edit-panel,
.project-site-edit {
    border: 1px solid #e4e7ea;
    border-radius: 10px;
    background: #fafbfc;
}

.project-edit-panel {
    margin-bottom: 14px;
}

.project-edit-panel summary,
.project-site-edit summary {
    cursor: pointer;
    padding: 11px 13px;
    font-size: 11px;
    font-weight: 800;
}

.project-admin-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 0 13px 13px;
}

.project-admin-form label {
    display: grid;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
}

.project-admin-form input,
.project-admin-form select {
    min-width: 0;
    height: 36px;
    padding: 7px 9px;
    border: 1px solid #d8dce0;
    border-radius: 7px;
    background: #fff;
    font: inherit;
}

.project-admin-form button {
    height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: #191a1c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.project-admin-sites-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.project-admin-site {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(120px, auto);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid #eceef0;
}

.project-admin-site-info strong {
    font-size: 12px;
}

.project-admin-site-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-admin-site-info > a {
    display: block;
    margin-top: 4px;
    color: #747980;
    font-size: 10px;
    text-decoration: none;
}

.project-site-edit {
    min-width: 120px;
}

.project-site-edit[open] {
    grid-column: 1 / -1;
}

.project-site-edit[open] .site-form {
    grid-template-columns: 1fr 2fr .7fr 1.5fr auto auto;
}

.project-active-check {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px !important;
    white-space: nowrap;
}

.project-active-check input {
    width: auto;
    height: auto;
}

@media (max-width: 1000px) {
    .project-admin-form,
    .project-site-edit[open] .site-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .project-admin-head,
    .project-admin-site {
        grid-template-columns: 1fr;
        display: grid;
    }

    .project-admin-form,
    .project-site-edit[open] .site-form {
        grid-template-columns: 1fr;
    }
}

.legal-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 36px 0 64px;
}

.legal-page-header {
    margin-bottom: 28px;
}

.legal-page-header h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.04em;
}

.legal-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 48px);
}

.legal-card h2 {
    margin: 32px 0 10px;
    font-size: 1.15rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    line-height: 1.75;
}

.legal-card a {
    text-decoration: underline;
}

.legal-updated {
    margin-top: 40px;
    color: var(--muted);
    font-size: .9rem;
}


/* mediaDIV SEO simulation dashboard */
.seo-simulations-panel {
  margin-block: 1.5rem;
}

.seo-simulation-list {
  display: grid;
  gap: 1rem;
}

.seo-simulation-site {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border, #d9dfe7);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.seo-simulation-site-head,
.seo-simulation-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.seo-simulation-site-head {
  margin-bottom: 1rem;
}

.seo-simulation-site-head strong {
  display: block;
  font-size: 1.05rem;
}

.seo-simulation-site-head small {
  display: block;
  margin-top: .25rem;
  overflow-wrap: anywhere;
  opacity: .7;
}

.seo-simulation-results {
  display: grid;
  gap: .75rem;
}

.seo-simulation-order {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border, #d9dfe7);
  border-radius: 10px;
}

.seo-simulation-order-head strong {
  overflow-wrap: anywhere;
}

.seo-simulation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.seo-simulation-metric {
  min-width: 0;
  padding: .75rem;
  border-radius: 8px;
  background: var(--surface-muted, rgba(127, 127, 127, .08));
}

.seo-simulation-metric small,
.seo-simulation-metric strong {
  display: block;
  overflow-wrap: anywhere;
}

.seo-simulation-metric small {
  margin-bottom: .35rem;
  opacity: .7;
}

.seo-simulation-reason {
  margin: .75rem 0 0;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.seo-simulation-safety {
  margin-top: 1rem;
  font-size: .875rem;
  opacity: .8;
}

@media (max-width: 900px) {
  .seo-simulation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .seo-simulation-site {
    padding: .875rem;
  }

  .seo-simulation-metrics {
    grid-template-columns: 1fr;
  }
}

/* mediaDIV SEO optimization summary */
.seo-simulation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .5rem;
}

.seo-simulation-summary-item {
  padding: .875rem;
  border: 1px solid var(--border, #d9dfe7);
  border-radius: 10px;
  background: var(--surface-muted, rgba(127, 127, 127, .08));
}

.seo-simulation-summary-item small,
.seo-simulation-summary-item strong {
  display: block;
}

.seo-simulation-summary-item strong {
  margin-top: .35rem;
  font-size: 1.35rem;
}

@media (max-width: 480px) {
  .seo-simulation-summary {
    grid-template-columns: 1fr;
  }
}

/* mediaDIV SEO order details */
.seo-simulation-details {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border, #d9dfe7);
}

.seo-simulation-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}

.seo-simulation-details summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.seo-simulation-detail-content {
  margin-top: .875rem;
  display: grid;
  gap: .625rem;
}

.seo-simulation-detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
  overflow-wrap: anywhere;
}

.seo-simulation-detail-row small {
  opacity: .7;
}

@media (max-width: 480px) {
  .seo-simulation-detail-row {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}


/* Independent read-only SEO draft overview */
.seo-draft-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border, #d9dfe7);
}

.seo-draft-section h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.seo-draft-intro {
  margin: 0 0 1rem;
  font-size: .875rem;
  opacity: .8;
}

.seo-draft-results {
  display: grid;
  gap: .75rem;
}

.seo-draft-card {
  background: var(--surface-muted, rgba(127, 127, 127, .04));
}

/* Read-only SEO draft before/after preview */
.seo-preview-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border, #d5d9df);
  padding-top: .8rem;
}

.seo-preview-details summary {
  cursor: pointer;
  font-weight: 650;
}

.seo-preview-details summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.seo-preview-content {
  margin-top: 1rem;
}

.seo-preview-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seo-preview-column {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border, #d5d9df);
  border-radius: .75rem;
}

.seo-preview-column small {
  display: block;
  margin-bottom: .65rem;
  font-weight: 700;
}

.seo-preview-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.seo-preview-note {
  margin-top: .8rem;
  font-size: .875rem;
}

@media (max-width: 700px) {
  .seo-preview-comparison {
    grid-template-columns: 1fr;
  }
}


/* mediaDIV responsive core 12B.3 */

/* Grid- und Flex-Kinder dürfen auf verfügbare Breite schrumpfen */
body:not(.login-shell) {
    grid-template-columns: 245px minmax(0, 1fr);
}

body:not(.login-shell) > .content {
    min-width: 0;
    max-width: 1680px;
}

.project-workspace,
.website-workspace,
.website-card,
.integration-center,
.integration-grid,
.gsc-status-strip,
.measures-panel {
    min-width: 0;
    max-width: 100%;
}

/* Maßnahmenfilter an Kartenbreite statt Fensterbreite anpassen */
.measures-panel {
    container-type: inline-size;
}

.action-filters {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
}

.action-filters > * {
    min-width: 0;
}

@container (max-width: 850px) {
    .action-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-filters .action-search {
        grid-column: 1 / -1;
    }
}

@container (max-width: 480px) {
    .action-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .action-filters .action-search {
        grid-column: auto;
    }

    .action-filters button {
        width: 100%;
    }
}

/* GSC-Statusleiste und Integrationen */
.gsc-status-strip {
    flex-wrap: wrap;
}

.gsc-status-main {
    flex: 1 1 240px;
}

.gsc-status-actions {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.integration-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.integration-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Mittlere Bildschirmbreiten */
@media (min-width: 721px) and (max-width: 1100px) {
    body:not(.login-shell) {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    body:not(.login-shell) .sidebar {
        width: auto;
    }

    body:not(.login-shell) .content {
        margin-left: 0;
        padding: 24px;
    }
}

/* Smartphone */
@media (max-width: 720px) {
    body:not(.login-shell) {
        display: block;
    }

    body:not(.login-shell) .content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .gsc-status-main {
        flex-basis: 100%;
    }

    .gsc-status-actions {
        width: 100%;
    }

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

/* mediaDIV mobile navigation 12B.6 */

.mobile-navigation {
    display: none;
}

@media (max-width: 720px) {
    body:not(.login-shell) .sidebar {
        display: flex;
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    body:not(.login-shell) .sidebar .desktop-navigation {
        display: none;
    }

    body:not(.login-shell) .mobile-navigation {
        display: block;
        position: relative;
    }

    .mobile-navigation summary {
        list-style: none;
        cursor: pointer;
        padding: 10px 14px;
        border: 1px solid #45484e;
        border-radius: 9px;
        color: #fff;
        font-size: 13px;
        font-weight: 750;
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation[open] nav {
        display: grid;
        gap: 4px;
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        z-index: 100;
        width: min(280px, 85vw);
        padding: 10px;
        border: 1px solid #36383d;
        border-radius: 12px;
        background: #191a1d;
        box-shadow: 0 15px 35px rgba(0,0,0,.25);
    }

    .mobile-navigation nav a {
        display: block;
        white-space: normal;
        color: #fff;
        padding: 12px;
        border-radius: 7px;
    }

    .mobile-navigation nav a:hover {
        background: #303237;
    }
}

/* mediaDIV responsive preview 12B.8 */
.seo-preview-details {
    container-type: inline-size;
    min-width: 0;
}

@container (max-width: 700px) {
    .seo-preview-comparison {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Lange Inhalte dürfen Karten nicht verbreitern */
.action-management-form,
.action-management-form > *,
.integration-center > *,
.seo-preview-content {
    min-width: 0;
    max-width: 100%;
}

.action-management-form input,
.action-management-form select,
.action-management-form textarea {
    max-width: 100%;
}

/* mediaDIV full-width project layout 12B.13 */

/* Websites und Maßnahmen untereinander statt in engen Spalten */
.project-workspace {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

/* Beide Hauptbereiche nutzen die komplette verfügbare Breite */
.project-workspace > .website-workspace,
.project-workspace > .measures-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Maßnahmenkarten: Inhalte dürfen flexibel wachsen */
.measures-panel .action-card {
    min-width: 0;
}

.measures-panel .action-card .grow {
    flex: 1 1 0;
    min-width: 0;
}

/* Auf kleineren Geräten bleibt der Status unter den Inhalten */
@media (max-width: 760px) {
    .measures-panel .action-card .action-status-form {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}

/* mediaDIV UI sprint 12B.16 */

/* Einheitliche moderne Typografie im Projekt-Dashboard */
body:not(.login-shell) .content h1,
body:not(.login-shell) .content h2,
body:not(.login-shell) .content h3 {
    font-family: Inter, ui-sans-serif, system-ui,
        -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 750;
    line-height: 1.3;
}

/* Audit-Verlauf: platzsparendes, flexibles Raster */
.audit-history-panel .audit-run-row {
    display: grid;
    grid-template-columns:
        minmax(125px, 1.15fr)
        minmax(90px, .8fr)
        minmax(80px, .65fr)
        minmax(85px, .75fr)
        minmax(0, 3fr);
    gap: 10px;
    padding: 11px 13px;
    align-items: center;
}

.audit-history-panel .audit-run-row > * {
    min-width: 0;
}

.audit-history-panel .audit-run-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.audit-history-panel .audit-run-actions {
    grid-column: auto;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 0;
}

.audit-history-panel .audit-run-actions a {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
}

/* Lange SEO-Texte und Formulare */
.measures-panel .recommendation,
.measures-panel .action-card .grow {
    min-width: 0;
    overflow-wrap: anywhere;
}

.measures-panel .action-status-form select {
    max-width: 100%;
}

/* Tablet: Audit-Informationen und Aktionen in zwei Zeilen */
@media (max-width: 1200px) {
    .audit-history-panel .audit-run-row {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .audit-history-panel .audit-run-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

/* Smartphone: kompakte zweispaltige Audit-Metadaten */
@media (max-width: 620px) {
    .audit-history-panel .audit-run-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        padding: 12px;
    }

    .audit-history-panel .audit-run-date {
        grid-column: 1 / -1;
    }

    .audit-history-panel .audit-run-actions {
        grid-column: 1 / -1;
    }

    .audit-history-panel .audit-run-actions a {
        white-space: normal;
    }

    .audit-history-panel .panel-head,
    .measures-panel .panel-head {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* mediaDIV SEO Health timeline */
.website-card > .seo-health-chart{grid-column:1/-1;min-width:0;padding:20px 22px;border:1px solid #e5e8ed;border-radius:14px;background:linear-gradient(145deg,#fff,#f8f9fb)}
.seo-health-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.seo-health-chart-head h3{margin:5px 0;font-size:18px}
.seo-health-chart-head p{margin:0;color:#69717c;font-size:12px}
.seo-health-chart-current{text-align:right;display:flex;flex-direction:column;gap:5px}
.seo-health-chart-current strong{font-size:27px;line-height:1.1;color:#202329}
.seo-health-chart-current strong small{font-size:13px;font-weight:500;color:#69717c}
.seo-health-chart-current span{font-size:12px;font-weight:600}
.seo-health-chart-current .positive{color:#209568}
.seo-health-chart-current .negative{color:#d94739}
.seo-health-chart-current .neutral{color:#69717c}
.seo-health-chart-svg{display:block;width:100%;height:auto;max-height:220px;overflow:visible;margin-top:15px}
.seo-health-grid{stroke:#e4e8ed;stroke-width:1}
.seo-health-axis,.seo-health-date{fill:#69717c;font-size:11px;font-family:Inter,Arial,sans-serif}
.seo-health-segment{stroke-width:3;stroke-linecap:round}
.seo-health-segment.up{stroke:#209568}
.seo-health-segment.down{stroke:#d94739}
.seo-health-segment.flat{stroke:#8a939e}
.seo-health-point{stroke:#fff;stroke-width:2}
.seo-health-point.good{fill:#209568}
.seo-health-point.medium{fill:#d49a34}
.seo-health-point.low{fill:#d94739}
.seo-health-chart-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#69717c;font-size:11px}
.seo-health-empty{padding:22px 0;color:#69717c}
@media(max-width:600px){
.website-card > .seo-health-chart{padding:15px}
.seo-health-chart-current{text-align:left}
.seo-health-chart-svg{min-height:120px}
.seo-health-date{font-size:10px}
}


/* mediaDIV customer report sharing */
.customer-share-panel{border-top:3px solid #e43b2e}
.customer-share-intro{max-width:780px;color:#646970;font-size:13px;line-height:1.65;margin:0 0 22px}
.customer-share-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px;background:#f7f8fa;border:1px solid #e8eaed;border-radius:12px}
.customer-share-form label{font-size:12px;font-weight:750;color:#43474d}
.customer-share-form select{min-width:135px;padding:11px 13px;border:1px solid #d9dde3;border-radius:9px;background:#fff;font:inherit;font-size:12px}
.customer-share-form .primary-button{min-height:40px}
.customer-share-result{margin-top:18px;padding:17px;border:1px solid #ccebd8;border-radius:12px;background:#f1faf5}
.customer-share-result[hidden]{display:none}
.customer-share-result label{display:block;font-size:12px;font-weight:800;margin-bottom:9px}
.customer-share-link-row{display:flex;gap:9px}
.customer-share-link-row input{flex:1;min-width:0;padding:11px;border:1px solid #c5d6ca;border-radius:8px;background:#fff;font-size:12px}
.customer-share-link-row button{border:0;border-radius:8px;background:#18794e;color:#fff;padding:10px 15px;font-size:12px;font-weight:800;cursor:pointer}
.customer-share-result p{margin:10px 0 0;font-size:11px;color:#52685b}
#customer-share-feedback:not(:empty){margin-top:12px;font-size:12px;font-weight:700}
.customer-share-list-title{margin:26px 0 12px;font-size:14px}
.customer-share-list{display:grid;gap:9px}
.customer-share-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 17px;border:1px solid #e7e9ec;border-radius:10px;background:#fff}
.customer-share-item strong{display:block;font-size:12px}
.customer-share-item small{display:block;color:#797e85;font-size:11px;margin-top:5px}
.customer-share-revoke button{padding:9px 12px;border:1px solid #e8c5c0;border-radius:8px;background:#fff5f3;color:#a62d20;font-size:11px;font-weight:800;cursor:pointer}
.customer-share-revoke button:hover{background:#ffe8e3}
@media(max-width:720px){
.customer-share-panel .panel-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
.customer-share-form{align-items:stretch;flex-direction:column}
.customer-share-form select,.customer-share-form button{width:100%}
.customer-share-link-row{flex-direction:column}
.customer-share-item{align-items:flex-start;flex-direction:column}
}


/* mediaDIV Search Intelligence Cards v1 */
.search-performance {
    min-width: 0;
}

.search-performance .panel-head {
    gap: 12px;
    flex-wrap: wrap;
}

.search-performance .search-kpis {
    grid-template-columns: repeat(
        auto-fit, minmax(min(100%, 145px), 1fr)
    );
    gap: 12px;
}

.search-performance .search-kpis article {
    min-width: 0;
}

.search-performance .search-kpis strong {
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.search-intelligence {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(min(100%, 155px), 1fr)
    );
    gap: 12px;
    margin-top: 18px;
}

.intelligence-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 17px;
    border: 1px solid #e7e9ed;
    border-radius: 12px;
    background: #fff;
    border-top: 3px solid #cbd0d7;
}

.intelligence-card strong {
    display: block;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.intelligence-card span {
    display: block;
    color: #646b75;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
}

.intelligence-positive {
    border-top-color: #23976b;
}

.intelligence-negative {
    border-top-color: #d44b43;
}

.intelligence-warning {
    border-top-color: #e4a32b;
}

.intelligence-neutral {
    border-top-color: #78869a;
}


/* mediaDIV SaaS Dashboard Redesign 21.31 */

:root {
  --md-bg: #f2f5f9;
  --md-surface: #ffffff;
  --md-border: #e2e8f0;
  --md-text: #202938;
  --md-muted: #64748b;
  --md-red: #e74638;
  --md-orange: #e99b32;
  --md-blue: #3979d3;
  --md-green: #218b69;
}

/* Globaler Arbeitsbereich */
body:not(.login-shell) {
  background: var(--md-bg);
  color: var(--md-text);
}

body:not(.login-shell) > .content {
  padding-top: 36px;
  padding-bottom: 48px;
}

/* Sidebar */
body:not(.login-shell) .sidebar {
  background: linear-gradient(180deg, #171a20 0%, #101217 100%);
  border-right: 1px solid #2b303a;
}

body:not(.login-shell) .desktop-navigation a {
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease;
}

body:not(.login-shell) .desktop-navigation a:hover {
  background: #292e38;
  color: #fff;
}

body:not(.login-shell) .desktop-navigation a.active {
  background: #33313a;
  border-left: 3px solid var(--md-red);
  color: #fff;
}

/* Typografie */
body:not(.login-shell) .page-head h1 {
  color: #172033;
  letter-spacing: -.04em;
}

body:not(.login-shell) .page-head p {
  color: var(--md-muted);
}

body:not(.login-shell) .eyebrow {
  color: #c83a2e;
}

/* Hauptkarten */
body:not(.login-shell) .panel {
  background: var(--md-surface);
  border-color: var(--md-border);
  box-shadow: 0 5px 20px rgba(23, 32, 51, .045);
}

body:not(.login-shell) .panel-head h2 {
  color: var(--md-text);
}

/* KPI-Karten */
body:not(.login-shell) .kpis article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--md-border);
  border-top: 3px solid var(--md-blue);
  background: #fff;
  box-shadow: 0 5px 15px rgba(23, 32, 51, .045);
}


body:not(.login-shell) .kpis article.kpi-success {
  border-top-color: var(--md-green);
}

body:not(.login-shell) .kpis article.kpi-warning {
  border-top-color: var(--md-orange);
}

body:not(.login-shell) .kpis article.kpi-danger {
  border-top-color: var(--md-red);
}

body:not(.login-shell) .kpis article.kpi-info {
  border-top-color: var(--md-blue);
}

body:not(.login-shell) .kpis article strong {
  color: #1c2940;
  font-variant-numeric: tabular-nums;
}

/* Kundenbereiche */
body:not(.login-shell) .customer-section {
  border-top: 4px solid var(--md-blue);
}

body:not(.login-shell) .customer-section > .panel-head {
  background: #f8faff;
  margin: -22px -22px 22px;
  padding: 22px;
  border-bottom: 1px solid var(--md-border);
  border-radius: 10px 10px 0 0;
}

/* Projektkarten */
body:not(.login-shell) .portfolio-card {
  border: 1px solid var(--md-border);
  border-left: 4px solid var(--md-blue);
  background: #fff;
  box-shadow: 0 3px 12px rgba(23, 32, 51, .035);
}

body:not(.login-shell) .portfolio-card:hover {
  border-left-color: var(--md-red);
  box-shadow: 0 10px 25px rgba(23, 32, 51, .10);
}

body:not(.login-shell) .portfolio-card .project-metrics span {
  background: #edf3fc;
  color: #365780;
}

/* Arbeitsqueue */
body:not(.login-shell) .operator-queue {
  border-top: 4px solid var(--md-orange);
}

body:not(.login-shell) .attention-card.level-critical {
  border-left: 4px solid #d83f43;
  background: #fffafa;
}

body:not(.login-shell) .attention-card.level-high {
  border-left: 4px solid #e99b32;
  background: #fffdf8;
}

body:not(.login-shell) .attention-card.level-medium {
  border-left: 4px solid #3979d3;
  background: #f9fbff;
}

/* Primäre Aktionen */
body:not(.login-shell) .primary-button {
  background: var(--md-red);
  border-color: var(--md-red);
  color: #fff;
}

body:not(.login-shell) .primary-button:hover {
  background: #c9362a;
}

/* Tastaturbedienung */
body:not(.login-shell) a:focus-visible,
body:not(.login-shell) button:focus-visible {
  outline: 3px solid #3979d3;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1100px) {
  body:not(.login-shell) > .content {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  body:not(.login-shell) > .content {
    padding: 16px;
  }

  body:not(.login-shell) .customer-section > .panel-head {
    margin: -18px -18px 18px;
    padding: 18px;
  }
}

/* mediaDIV Dashboard Layout 21.37 */

/* SEO Operations: Kennzahlen statt Fließtext */
body:not(.login-shell) .panel:has(> .panel-head + .project-metrics)
  > .project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body:not(.login-shell) .panel:has(> .panel-head + .project-metrics)
  > .project-metrics > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #526176;
  font-size: 12px;
  line-height: 1.45;
}

body:not(.login-shell) .panel:has(> .panel-head + .project-metrics)
  > .project-metrics > span b {
  display: block;
  color: #1d2a40;
  font-size: 25px;
  line-height: 1;
}

/* Arbeitsqueue: vorhandene Breite ausnutzen */
body:not(.login-shell) .operator-queue .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body:not(.login-shell) .operator-queue .project-grid
  > .attention-card:only-child {
  grid-column: 1 / -1;
}

body:not(.login-shell) .attention-card {
  min-width: 0;
  padding: 20px;
}

body:not(.login-shell) .attention-reason {
  font-size: 13px;
  line-height: 1.6;
}

body:not(.login-shell) .attention-meta {
  row-gap: 8px;
}

/* Kundenbereiche bleiben eigenständig */
body:not(.login-shell) .customer-section .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body:not(.login-shell) .customer-section .project-grid
  > .portfolio-card:only-child {
  grid-column: 1 / -1;
}

body:not(.login-shell) .portfolio-card {
  min-width: 0;
  padding: 20px;
}

body:not(.login-shell) .portfolio-card h3 {
  font-size: 18px;
}

body:not(.login-shell) .portfolio-card .site-row {
  align-items: center;
}

body:not(.login-shell) .portfolio-card .site-row small {
  font-size: 12px;
  line-height: 1.5;
}

/* Tablet */
@media (max-width: 1200px) {
  body:not(.login-shell) .panel:has(> .panel-head + .project-metrics)
    > .project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Smartphone */
@media (max-width: 900px) {
  body:not(.login-shell) .operator-queue .project-grid,
  body:not(.login-shell) .customer-section .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  body:not(.login-shell) .panel:has(> .panel-head + .project-metrics)
    > .project-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-shell) .attention-card,
  body:not(.login-shell) .portfolio-card {
    padding: 16px;
  }
}

/* mediaDIV Dashboard KPI V3 21.41b */

body:not(.login-shell) .dashboard-kpi-groups {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
}

body:not(.login-shell) .dashboard-kpi-section {
  display: grid;
  gap: 11px;
  min-width: 0;
}

body:not(.login-shell) .dashboard-kpi-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

body:not(.login-shell) .dashboard-kpi-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: #1d2a40;
}

body:not(.login-shell) .dashboard-kpi-heading span {
  color: #66758a;
  font-size: 12px;
}

body:not(.login-shell) .dashboard-kpi-groups .kpis {
  display: grid;
  gap: 12px;
  margin: 0;
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-portfolio {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-priority,
body:not(.login-shell) .dashboard-kpi-groups .kpis-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-priority article {
  min-height: 112px;
  padding: 20px;
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-priority article strong {
  font-size: 32px;
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary article {
  min-height: 76px;
  padding: 13px 15px;
}

body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary article strong {
  font-size: 21px;
}

@media (max-width: 1200px) {
  body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body:not(.login-shell) .dashboard-kpi-groups .kpis-portfolio,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-priority,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body:not(.login-shell) .dashboard-kpi-groups .kpis-portfolio,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-priority,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-secondary,
  body:not(.login-shell) .dashboard-kpi-groups .kpis-progress {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* mediaDIV SEO Diagnostics UX v24 */

.action-diagnostics {
    margin: 14px 0;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.action-diagnostics > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: #17263b;
    background: #f7f9fc;
}

.action-diagnostics > summary:hover {
    background: #edf3f9;
}

.action-diagnostics[open] > summary {
    border-bottom: 1px solid #e2e8f0;
}

.diagnostic-count {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8eef8;
    color: #385577;
    font-size: 11px;
    font-weight: 700;
}

.diagnostic-content {
    padding: 16px;
}

.diagnostic-source {
    margin: 0 0 14px;
    font-size: 12px;
    color: #64748b;
}

.diagnostic-groups {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 1fr)
    );
    gap: 14px;
}

.diagnostic-card {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    background: #fafbfd;
}

.diagnostic-card-header {
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.diagnostic-value {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.diagnostic-value > span {
    font-size: 12px;
    color: #64748b;
}

.diagnostic-value > strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    color: #17263b;
    overflow-wrap: anywhere;
}

.diagnostic-urls {
    border-top: 1px solid #e2e8f0;
    padding-top: 11px;
}

.diagnostic-urls > summary {
    cursor: pointer;
    color: #275e9a;
    font-size: 12px;
    font-weight: 700;
}

.diagnostic-urls .affected-urls {
    margin-top: 10px;
    padding: 0;
    background: transparent;
}

.diagnostic-urls .affected-urls a {
    display: block;
    padding: 6px 0;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.diagnostic-extra {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 12px;
}

.diagnostic-repair {
    margin-top: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #f8fafc;
}

.diagnostic-repair > summary {
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 700;
    color: #17263b;
}

.diagnostic-repair[open] > summary {
    border-bottom: 1px solid #e2e8f0;
}

.diagnostic-guide {
    padding: 15px;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.diagnostic-guide p {
    margin: 0 0 12px;
}

.diagnostic-guide ol {
    margin: 10px 0 14px;
    padding-left: 22px;
}

.diagnostic-guide li {
    margin-bottom: 7px;
}

@media (max-width: 640px) {
    .action-diagnostics > summary {
        padding: 12px;
    }

    .diagnostic-content {
        padding: 12px;
    }

    .diagnostic-groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .diagnostic-card {
        padding: 12px;
    }

    .diagnostic-count {
        margin: 6px 0 0;
    }
}


/* mediaDIV SEO Command Center – Block 27.74 */
body:not(.login-shell) .command-center {
  display:grid;gap:16px;margin-bottom:24px;
}
body:not(.login-shell) .command-summary {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
}
body:not(.login-shell) .command-stat {
  display:flex;flex-direction:column;gap:5px;padding:19px 22px;
  background:#fff;border:1px solid #e7ebf2;border-radius:14px;
  text-decoration:none;color:#17243e;
  box-shadow:0 6px 18px rgba(22,34,56,.035);
}
body:not(.login-shell) .command-stat:hover {
  border-color:#ed4639;
}
body:not(.login-shell) .command-stat span {
  font-size:12px;color:#64748b;
}
body:not(.login-shell) .command-stat strong {
  font-size:30px;letter-spacing:-.04em;line-height:1.2;
}
body:not(.login-shell) .command-main {
  display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.5fr);
  gap:14px;
}
body:not(.login-shell) .command-health {
  background:#17243e;color:#fff;border-radius:16px;
  padding:27px;min-width:0;
}
body:not(.login-shell) .command-eyebrow {
  display:block;font-size:11px;font-weight:750;
  letter-spacing:.08em;color:#75849b;
}
body:not(.login-shell) .command-health .command-eyebrow {
  color:#c2d1e4;
}
body:not(.login-shell) .command-health-value {
  display:flex;align-items:baseline;gap:8px;margin:13px 0;
}
body:not(.login-shell) .command-health-value strong {
  font-size:clamp(38px,4vw,58px);
  letter-spacing:-.05em;line-height:1;
}
body:not(.login-shell) .command-health-value span {
  font-size:15px;color:#c2d1e4;
}
body:not(.login-shell) .command-meter {
  height:9px;background:#45536b;border-radius:99px;overflow:hidden;
}
body:not(.login-shell) .command-meter span {
  display:block;height:100%;background:#31bc91;border-radius:99px;
}
body:not(.login-shell) .command-health p {
  color:#c2d1e4;font-size:12px;line-height:1.6;
  margin:13px 0 20px;
}
body:not(.login-shell) .command-trends {
  display:flex;gap:10px;flex-wrap:wrap;font-size:12px;
}
body:not(.login-shell) .command-trends span {
  padding:6px 9px;background:rgba(255,255,255,.09);
  border-radius:7px;
}
body:not(.login-shell) .command-work {
  background:#fff;border:1px solid #e7ebf2;
  border-radius:16px;padding:22px 25px;min-width:0;
}
body:not(.login-shell) .command-work-head {
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:10px;margin-bottom:13px;
}
body:not(.login-shell) .command-work-head h2 {
  margin:4px 0 0;font-size:19px;line-height:1.35;color:#17243e;
}
body:not(.login-shell) .command-work-head>a {
  font-size:12px;font-weight:700;color:#d63e32;text-decoration:none;
}
body:not(.login-shell) .command-work-row {
  display:flex;align-items:center;gap:13px;padding:13px 0;
  border-top:1px solid #edf0f5;text-decoration:none;color:#17243e;
}
body:not(.login-shell) .command-work-row>span:nth-child(2) {
  display:grid;gap:3px;min-width:0;flex:1;
}
body:not(.login-shell) .command-work-row strong {
  font-size:13px;line-height:1.4;
}
body:not(.login-shell) .command-work-row small {
  font-size:12px;color:#738096;line-height:1.5;
}
body:not(.login-shell) .command-work-row>b {
  font-size:23px;color:#98a4b6;
}
body:not(.login-shell) .command-work-icon {
  flex:0 0 36px;height:36px;display:grid;place-items:center;
  border-radius:10px;background:#fff2e7;color:#ba6b20;font-weight:800;
}
body:not(.login-shell) .command-work-icon.urgent {
  background:#fff0ef;color:#d5443a;
}
body:not(.login-shell) .command-ok {
  border-top:1px solid #edf0f5;padding-top:14px;
  color:#238765;font-size:12px;font-weight:650;
}
body:not(.login-shell) .command-strip {
  display:flex;flex-wrap:wrap;gap:8px 22px;
  padding:11px 16px;border:1px solid #e7ebf2;
  border-radius:11px;background:#fff;color:#64748b;font-size:12px;
}
body:not(.login-shell) .command-strip strong {
  color:#17243e;margin-right:5px;
}
@media(max-width:1000px) {
  body:not(.login-shell) .command-main {
    grid-template-columns:1fr;
  }
}
@media(max-width:580px) {
  body:not(.login-shell) .command-summary {gap:7px}
  body:not(.login-shell) .command-stat {padding:13px 11px}
  body:not(.login-shell) .command-stat strong {font-size:24px}
  body:not(.login-shell) .command-health,
  body:not(.login-shell) .command-work {padding:20px 17px}
  body:not(.login-shell) .command-work-head h2 {font-size:17px}
}
