:root{--navy:#0a192f;--cyan:#00d1ff;--text:#0f172a;--muted:#64748b;--border:#e2e8f0;--surface:#fff;--surface-soft:#f8fafc;--card:#fff}body{background:var(--surface-soft)}.content{width:100%}.card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:1.25rem;box-shadow:0 18px 48px rgba(15,23,42,.06)}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;cursor:pointer;text-decoration:none;font-weight:800;white-space:nowrap;padding:.78rem 1.05rem}.btn.primary{background:var(--navy);color:#fff}.btn.secondary{background:#eef2ff;color:var(--navy)}.btn.ghost{background:transparent;color:var(--navy);border:1px solid var(--border)}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.page-heading h1{margin:0;font-size:2rem}.page-heading p{margin:.35rem 0 0;color:var(--muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.kpi-card span{display:block;color:var(--muted);font-size:.9rem}.kpi-card strong{display:block;font-size:2rem;margin:.35rem 0}.kpi-card small{color:var(--muted)}.split-card{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem}.actions-row,.form-actions,.filter-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-head h2{margin:0}.section-head p{margin:.25rem 0 0;color:var(--muted)}.compact-table-wrap{overflow:auto}.compact-table{width:100%;border-collapse:collapse}.compact-table th,.compact-table td{padding:.75rem .8rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.compact-table th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.compact-table small,.muted{color:var(--muted)}.case-link{font-weight:900;text-decoration:none;color:var(--navy)}.status-pill{display:inline-flex;border-radius:999px;padding:.25rem .55rem;font-size:.78rem;font-weight:800;background:#eef2ff}.status-pill.success{background:#dcfce7;color:#166534}.status-pill.info{background:#dbeafe;color:#1d4ed8}.status-pill.warning{background:#fef3c7;color:#92400e}.status-pill.neutral{background:#f3f4f6;color:#374151}.filter-card,.form-card{margin-bottom:1rem}.filter-form,.activity-filter-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:.8rem;align-items:end}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.grid-form .form-actions{grid-column:1/-1}.field label{display:block;font-weight:800;margin-bottom:.35rem}.field input,.field select,.field textarea,.copy-box input{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:14px;padding:.75rem .85rem;background:var(--card);color:inherit}.question-field{margin-bottom:1rem}.case-hero{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}.case-hero h2{margin:.2rem 0}.case-hero-meta{display:flex;flex-direction:column;gap:.45rem;align-items:flex-end}.eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:var(--muted)}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}.copy-box{display:flex;gap:.6rem}.meta-list{display:grid;grid-template-columns:9rem 1fr;gap:.45rem .8rem}.meta-list dt{font-weight:800;color:var(--muted)}.meta-list dd{margin:0}.answer-list{display:grid;gap:.8rem}.answer-item{border:1px solid var(--border);border-radius:18px;padding:1rem}.answer-item h3{margin:0 0 .5rem}.answer-item p{margin:0;white-space:pre-wrap}.report-box{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:flex-start}.report-box pre{white-space:pre-wrap;margin:0;font-family:inherit;line-height:1.55}.score-circle{width:86px;height:86px;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#eef2ff}.score-circle strong{font-size:1.6rem}.score-circle span{font-size:.78rem;color:var(--muted)}.public-shell{max-width:980px;margin:0 auto;padding:2rem 1rem}.public-content{display:grid;gap:1rem}.public-hero h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.05;margin:.35rem 0}.public-hero p{font-size:1.05rem;color:var(--muted);max-width:760px}.empty-state{padding:1.2rem;border:1px dashed var(--border);border-radius:18px;color:var(--muted)}.activity-timeline{display:grid;gap:.85rem}.activity-item{display:grid;grid-template-columns:auto 1fr;gap:.8rem}.activity-dot{width:12px;height:12px;border-radius:999px;background:#2563eb;margin-top:1.1rem}.activity-main{border:1px solid var(--border);border-radius:18px;padding:1rem}.activity-row,.activity-meta-row{display:flex;gap:.75rem;flex-wrap:wrap}.activity-topline{justify-content:space-between}.activity-badge{border-radius:999px;padding:.2rem .55rem;font-weight:800;font-size:.78rem;background:#f3f4f6}.activity-badge.success{background:#dcfce7;color:#166534}.activity-badge.info{background:#dbeafe;color:#1d4ed8}.activity-badge.danger{background:#fee2e2;color:#991b1b}.activity-date,.activity-meta-row{color:var(--muted);font-size:.88rem}.activity-details{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.7rem}.activity-details span{background:#f3f4f6;border-radius:999px;padding:.25rem .55rem;font-size:.8rem}.time-help-button{display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--navy);font-weight:800;padding:.55rem .8rem;cursor:pointer}.time-help-button-icon,.time-inline-help-button{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#eef2ff;color:var(--navy);font-weight:900}.time-inline-help-button{border:0;cursor:pointer;margin-left:.25rem}.time-help-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1000;padding:1rem}.time-help-backdrop.is-open{display:flex;align-items:center;justify-content:center}.time-help-modal{max-width:560px;width:100%;background:var(--card);border-radius:24px;padding:1.2rem;box-shadow:0 24px 80px rgba(0,0,0,.24)}.time-help-modal-head{display:flex;justify-content:space-between;gap:1rem}.time-help-kicker{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:900}.time-help-close{border:0;background:#f1f5f9;border-radius:999px;width:34px;height:34px;cursor:pointer;font-weight:900}.time-help-list{padding-left:1.2rem}.time-help-note{margin-top:.8rem;background:#f8fafc;border:1px solid var(--border);border-radius:16px;padding:.8rem;color:var(--muted)}.flash-stack{display:grid;gap:.5rem;margin-bottom:1rem}.flash-message{display:flex;gap:.6rem;align-items:center;border-radius:16px;padding:.8rem 1rem;background:#eef2ff}.flash-message.success{background:#dcfce7}.flash-message.error{background:#fee2e2}.error-shell{max-width:760px;margin:8vh auto;padding:2rem}.error-brand img{width:32px;vertical-align:middle;margin-right:.5rem}.error-kicker{color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.error-actions{display:flex;gap:.7rem}.error-primary,.error-secondary{display:inline-flex;border-radius:999px;padding:.75rem 1rem;text-decoration:none;font-weight:800}.error-primary{background:var(--navy);color:#fff}.error-secondary{background:#eef2ff;color:var(--navy)}@media(max-width:900px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-form,.activity-filter-form,.grid-form,.two-column{grid-template-columns:1fr}.split-card,.case-hero{flex-direction:column}.case-hero-meta{align-items:flex-start}.copy-box{flex-direction:column}.report-box{grid-template-columns:1fr}.meta-list{grid-template-columns:1fr}.public-shell{padding:1rem}}
[data-theme="dark"]{--text:#e5eefc;--muted:#94a3b8;--border:#243449;--surface:#07111f;--surface-soft:#020617;--card:#0b1628}[data-theme="dark"] .activity-details span,[data-theme="dark"] .time-help-note,[data-theme="dark"] .time-help-close{background:#111f35}[data-theme="dark"] .score-circle,[data-theme="dark"] .status-pill.neutral,[data-theme="dark"] .btn.secondary{background:#111f35;color:#e5eefc}
.field.full{grid-column:1/-1}.workflow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}.workflow-step{border:1px solid var(--border);border-radius:18px;padding:.85rem;background:var(--surface-soft);display:flex;gap:.65rem;align-items:center;color:var(--muted)}.workflow-step strong{width:30px;height:30px;border-radius:999px;background:#e2e8f0;color:#0f172a;display:inline-flex;align-items:center;justify-content:center}.workflow-step.active{border-color:rgba(0,209,255,.45);background:rgba(0,209,255,.08);color:var(--text)}.workflow-step.active strong{background:var(--cyan);color:#001525}.prefill-list,.prefill-confirm,.link-list{display:grid;gap:.75rem;margin-top:1rem}.prefill-list article,.prefill-confirm article,.link-list article{border:1px solid var(--border);border-radius:16px;padding:.85rem;background:var(--surface-soft)}.prefill-list p,.prefill-confirm p{margin:.3rem 0 0;color:var(--muted);white-space:pre-wrap}.compact-form{margin-top:1rem}.compact-form .field input,.compact-form .field select{padding:.65rem .75rem}.inline-form{display:inline-flex}.status-note{border-radius:16px;padding:.8rem 1rem;background:#eef2ff;font-weight:800;margin-bottom:.8rem}.status-note.success{background:#dcfce7;color:#166534}.link-list article{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.link-list span{display:block;color:var(--muted);font-size:.86rem}.btn.mini{padding:.45rem .7rem;background:#f1f5f9;color:var(--navy)}button[disabled]{opacity:.45;cursor:not-allowed}.process-card{margin-bottom:1rem}@media(max-width:900px){.workflow-steps{grid-template-columns:1fr}.link-list article{align-items:flex-start;flex-direction:column}}
[data-theme="dark"] .workflow-step,[data-theme="dark"] .prefill-list article,[data-theme="dark"] .prefill-confirm article,[data-theme="dark"] .link-list article{background:#07111f}[data-theme="dark"] .btn.mini{background:#111f35;color:#e5eefc}

/* V1.4: Public KI-Check as interactive self-service chat */
.public-chat-shell{display:grid;gap:1rem}.public-chat-hero{margin-bottom:0}.ai-public-chat-card{padding:1rem}.ai-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border);padding:.35rem .35rem 1rem}.ai-chat-head h2{margin:.2rem 0 0;font-size:1.55rem}.ai-chat-status-wrap{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}.ai-chat-progress,.ai-chat-status{border-radius:999px;padding:.45rem .7rem;font-size:.82rem;font-weight:900;background:var(--surface-soft);border:1px solid var(--border);color:var(--muted)}.ai-chat-status.busy{background:#fff7ed;color:#9a3412}.ai-chat-status.done{background:#dcfce7;color:#166534}.ai-chat-messages{height:min(58vh,620px);overflow:auto;padding:1rem .35rem;display:flex;flex-direction:column;gap:.8rem}.ai-chat-bubble{max-width:86%;border:1px solid var(--border);border-radius:22px;padding:.9rem 1rem;line-height:1.52;white-space:pre-wrap;box-shadow:0 12px 30px rgba(15,23,42,.05)}.ai-chat-bubble.assistant{align-self:flex-start;background:var(--card)}.ai-chat-bubble.customer{align-self:flex-end;background:#eaf7ff;border-color:rgba(0,209,255,.25)}.ai-chat-bubble.error{background:#fee2e2;color:#991b1b}.ai-chat-quick-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;padding:0 .35rem .85rem;color:var(--muted);font-size:.9rem}.ai-chat-quick-actions button{border:1px solid var(--border);background:var(--card);border-radius:999px;padding:.48rem .7rem;font-weight:800;cursor:pointer;color:var(--navy)}.ai-chat-composer{display:flex;gap:.75rem;align-items:flex-end;border-top:1px solid var(--border);padding:1rem .35rem .35rem}.ai-chat-composer textarea{flex:1;resize:none;min-height:64px;border:1px solid var(--border);border-radius:18px;padding:.9rem 1rem;font:inherit;background:var(--card);color:inherit}.ai-chat-composer textarea:focus{outline:none;box-shadow:0 0 0 4px rgba(0,209,255,.16);border-color:rgba(0,209,255,.45)}.ai-chat-composer button{border:0;border-radius:999px;background:var(--navy);color:#fff;font-weight:900;padding:0 1.1rem;min-height:58px;cursor:pointer}.ai-chat-composer button:disabled{opacity:.55;cursor:not-allowed}.ai-chat-done{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.9rem .35rem .2rem;border:1px solid var(--border);border-radius:18px;background:var(--surface-soft);padding:.85rem 1rem}@media(max-width:720px){.ai-chat-head,.ai-chat-done{flex-direction:column;align-items:flex-start}.ai-chat-status-wrap{justify-content:flex-start}.ai-chat-messages{height:58vh}.ai-chat-bubble{max-width:94%}.ai-chat-composer{flex-direction:column}.ai-chat-composer button{width:100%}}
[data-theme="dark"] .ai-chat-bubble.customer{background:#10243a}[data-theme="dark"] .ai-chat-quick-actions button{background:#111f35;color:#e5eefc}

/* V1.5 public self-service intake polish */
.public-start-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.65fr);gap:1.25rem;align-items:stretch;background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(236,253,255,.72));overflow:hidden;position:relative}.public-start-hero:before{content:"";position:absolute;right:-120px;top:-140px;width:340px;height:340px;border-radius:999px;background:rgba(0,209,255,.13);filter:blur(4px)}.public-start-copy,.public-start-panel{position:relative}.public-start-copy h1{font-size:clamp(2.2rem,5vw,4rem);line-height:1.02;margin:.45rem 0}.public-start-copy p{font-size:1.08rem;line-height:1.65;color:var(--muted);max-width:760px}.public-start-badges{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.public-start-badges span{border:1px solid rgba(0,209,255,.22);background:#ecfeff;border-radius:999px;padding:.45rem .7rem;font-weight:900;color:#075985}.public-start-panel{border:1px solid var(--border);border-radius:22px;padding:1rem;background:rgba(255,255,255,.68)}.public-start-panel strong{display:block;font-size:1.1rem;margin-bottom:.55rem}.public-start-panel ol{margin:0;padding-left:1.25rem;color:var(--muted);line-height:1.65}.public-start-form-card{margin-top:1rem}.public-start-form{display:grid;gap:1.2rem}.single-check-info{display:grid;gap:.35rem;border:1px solid rgba(0,209,255,.28);border-radius:20px;padding:1rem;background:linear-gradient(180deg,#ecfeff,#fff)}.single-check-info strong{color:var(--navy);font-size:1.2rem}.single-check-info span{color:var(--muted);line-height:1.5;font-weight:700}.check-mode-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.mode-card{position:relative;display:grid;gap:.25rem;border:1px solid var(--border);border-radius:20px;padding:1rem;background:var(--surface-soft);cursor:pointer}.mode-card input{position:absolute;opacity:0;pointer-events:none}.mode-card span{font-weight:900;color:var(--navy)}.mode-card strong{font-size:1.25rem}.mode-card small{color:var(--muted);line-height:1.45}.mode-card:has(input:checked){border-color:rgba(0,209,255,.55);box-shadow:0 0 0 4px rgba(0,209,255,.12);background:linear-gradient(180deg,#ecfeff,#fff)}.field-wide{grid-column:1/-1}.public-start-actions{justify-content:space-between;border-top:1px solid var(--border);padding-top:1rem}
.public-chat-shell{display:grid;gap:1rem;max-width:1180px;margin:0 auto}.public-chat-intro{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;background:linear-gradient(135deg,#fff,#f0fdff)}.public-chat-intro h1{font-size:clamp(2rem,4vw,3.35rem);line-height:1.03;margin:.35rem 0}.public-chat-intro p{color:var(--muted);font-size:1.05rem;line-height:1.6;max-width:760px}.public-chat-intro-box{min-width:240px;border:1px solid rgba(0,209,255,.22);border-radius:20px;padding:1rem;background:#ecfeff}.public-chat-intro-box span,.public-chat-intro-box small{display:block;color:var(--muted);font-weight:800}.public-chat-intro-box strong{display:block;font-size:1.15rem;margin:.25rem 0;color:var(--navy)}.ai-chat-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:1rem;align-items:start}.ai-chat-side{position:sticky;top:1rem}.ai-chat-side h2{margin:.3rem 0 1rem;font-size:1.55rem}.ai-prefill-list{display:grid;gap:.55rem;margin-bottom:1rem}.ai-prefill-list div{border:1px solid var(--border);border-radius:16px;padding:.7rem .8rem;background:var(--surface-soft)}.ai-prefill-list span{display:block;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;font-weight:900}.ai-prefill-list strong{display:block;margin-top:.15rem;word-break:break-word}.ai-chat-help-box{margin-top:1rem;border:1px solid rgba(0,209,255,.22);border-radius:18px;background:#ecfeff;padding:.85rem}.ai-chat-help-box p{margin:.35rem 0 0;color:var(--muted);line-height:1.5}.ai-public-chat-card{padding:0;overflow:hidden}.ai-chat-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--border);background:rgba(248,250,252,.72)}.ai-chat-head h2{margin:.2rem 0 0;font-size:1.4rem}.ai-chat-status-wrap{display:grid;grid-template-columns:160px auto auto;gap:.5rem;align-items:center}.ai-progress-shell{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.ai-progress-shell span{display:block;height:100%;width:0;background:linear-gradient(90deg,#00d1ff,#0ea5e9);border-radius:999px;transition:width .25s ease}.ai-chat-progress,.ai-chat-status{white-space:nowrap}.ai-chat-messages{height:min(62vh,660px);overflow:auto;padding:1.1rem;display:flex;flex-direction:column;gap:1rem;background:linear-gradient(180deg,rgba(248,250,252,.65),rgba(255,255,255,.95))}.ai-message-row{display:flex;gap:.65rem;align-items:flex-start;max-width:92%}.ai-message-row.customer{align-self:flex-end;flex-direction:row-reverse}.ai-message-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--navy);color:#fff;font-weight:900;box-shadow:0 8px 22px rgba(15,23,42,.12)}.ai-message-row.customer .ai-message-avatar{background:#0ea5e9}.ai-message-content{display:grid;gap:.25rem;min-width:0}.ai-message-label{font-size:.76rem;color:var(--muted);font-weight:900}.ai-message-row.customer .ai-message-label{text-align:right}.ai-chat-bubble{max-width:100%;border:1px solid var(--border);border-radius:22px;padding:.95rem 1rem;line-height:1.58;white-space:pre-wrap;box-shadow:0 12px 30px rgba(15,23,42,.05);font-size:1rem}.ai-chat-bubble.assistant{background:#fff;border-top-left-radius:8px}.ai-chat-bubble.customer{background:#e0f7ff;border-color:rgba(0,209,255,.34);border-top-right-radius:8px}.ai-chat-bubble.error{background:#fee2e2;color:#991b1b}.ai-chat-quick-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;padding:.85rem 1.1rem;color:var(--muted);font-size:.9rem;background:#fff;border-top:1px solid var(--border)}.ai-chat-quick-actions span{text-transform:uppercase;letter-spacing:.06em;font-weight:900;font-size:.74rem}.ai-chat-quick-actions button{border:1px solid var(--border);background:var(--surface-soft);border-radius:999px;padding:.55rem .8rem;font-weight:900;cursor:pointer;color:var(--navy)}.ai-chat-composer{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:end;border-top:1px solid var(--border);padding:1rem 1.1rem;background:#fff}.ai-chat-composer textarea{resize:none;min-height:70px;border:1px solid var(--border);border-radius:18px;padding:.95rem 1rem;font:inherit;background:var(--surface-soft);color:inherit}.ai-chat-composer textarea:focus{outline:none;box-shadow:0 0 0 4px rgba(0,209,255,.16);border-color:rgba(0,209,255,.45);background:#fff}.ai-chat-composer button{border:0;border-radius:999px;background:var(--navy);color:#fff;font-weight:900;padding:0 1.25rem;min-height:58px;cursor:pointer}.ai-chat-composer button:disabled{opacity:.55;cursor:not-allowed}.ai-chat-done{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0;border-top:1px solid var(--border);background:#f0fdf4;padding:1rem 1.1rem}.ai-chat-done span{display:block;color:var(--muted);margin-top:.2rem}.ai-typing{display:flex;gap:.28rem;align-items:center;min-width:68px}.ai-typing span{width:7px;height:7px;border-radius:999px;background:#94a3b8;animation:aiTyping 1s infinite ease-in-out}.ai-typing span:nth-child(2){animation-delay:.12s}.ai-typing span:nth-child(3){animation-delay:.24s}@keyframes aiTyping{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
[data-theme="dark"] .public-start-hero,[data-theme="dark"] .public-chat-intro{background:linear-gradient(135deg,#0b1424,#0f2136)}[data-theme="dark"] .public-start-panel,[data-theme="dark"] .public-chat-intro-box,[data-theme="dark"] .ai-chat-help-box,[data-theme="dark"] .public-start-badges span{background:#10243a;border-color:#1d3b55;color:#dff7ff}[data-theme="dark"] .mode-card,[data-theme="dark"] .single-check-info{background:#0f1b2d}[data-theme="dark"] .mode-card:has(input:checked){background:#10243a}[data-theme="dark"] .ai-chat-head,[data-theme="dark"] .ai-chat-messages,[data-theme="dark"] .ai-chat-quick-actions,[data-theme="dark"] .ai-chat-composer{background:#0b1424}[data-theme="dark"] .ai-chat-bubble.assistant{background:#111f35}[data-theme="dark"] .ai-chat-bubble.customer{background:#102b42}[data-theme="dark"] .ai-prefill-list div{background:#0f1b2d}[data-theme="dark"] .ai-chat-composer textarea{background:#0f1b2d}
@media(max-width:980px){.public-start-hero,.ai-chat-workspace,.public-chat-intro{grid-template-columns:1fr;display:grid}.ai-chat-side{position:static}.ai-chat-status-wrap{grid-template-columns:1fr;justify-items:start}.check-mode-choice{grid-template-columns:1fr}.public-start-actions{justify-content:flex-start}.ai-chat-messages{height:58vh}}@media(max-width:640px){.ai-chat-head,.ai-chat-composer,.ai-chat-done{grid-template-columns:1fr}.ai-chat-done{display:grid}.ai-message-row{max-width:100%}.public-shell{padding:.75rem}.public-start-copy h1,.public-chat-intro h1{font-size:2.2rem}}

/* AI-Check V1.6: visueller Kurzbericht mit Spider-/Radar-Grafik */
.ai-report-visual{display:grid;gap:1rem}.report-summary-hero{display:grid;grid-template-columns:auto 1fr;gap:1.15rem;align-items:center;padding:1.15rem;border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,rgba(0,209,255,.09),rgba(255,255,255,.04))}.report-summary-hero h2{margin:.2rem 0 .5rem;font-size:clamp(1.5rem,3vw,2.15rem)}.report-summary-hero p{margin:0;color:var(--muted);line-height:1.6;max-width:880px}.score-ring{--score:0;width:112px;height:112px;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:conic-gradient(var(--cyan) calc(var(--score)*1%),#e8eef7 0);position:relative;box-shadow:0 18px 45px rgba(0,209,255,.16)}.score-ring:after{content:"";position:absolute;inset:10px;border-radius:999px;background:var(--card)}.score-ring strong,.score-ring span{position:relative;z-index:1}.score-ring strong{font-size:2rem;line-height:1;color:var(--navy)}.score-ring span{font-size:.8rem;color:var(--muted);font-weight:800}.report-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}.report-tags span{display:inline-flex;border-radius:999px;padding:.35rem .65rem;background:#eef2ff;color:var(--navy);font-weight:900;font-size:.82rem}.report-visual-grid{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(280px,1.05fr);gap:1rem}.radar-card,.dimension-card,.report-insight-card{border:1px solid var(--border);border-radius:24px;background:var(--card);padding:1.1rem}.radar-card h3,.dimension-card h3,.report-insight-card h3{margin:0 0 .85rem}.radar-svg{width:100%;max-width:390px;margin:0 auto;display:block}.radar-grid{fill:none;stroke:var(--border);stroke-width:1}.radar-axis{stroke:var(--border);stroke-width:1}.radar-shape{fill:rgba(0,209,255,.22);stroke:var(--cyan);stroke-width:3;filter:drop-shadow(0 10px 18px rgba(0,209,255,.18))}.radar-label{font-size:10px;font-weight:900;fill:var(--muted)}.dimension-bars{display:grid;gap:.85rem}.dimension-row{display:grid;grid-template-columns:1fr auto;gap:.55rem;align-items:center}.dimension-row span{font-weight:800}.dimension-row strong{font-size:.88rem;color:var(--muted)}.dimension-row i{grid-column:1/-1;display:block;height:10px;border-radius:999px;background:#e8eef7;overflow:hidden}.dimension-row b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),#2563eb)}.report-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.report-insight-card{position:relative;overflow:hidden}.report-insight-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:var(--cyan)}.report-insight-card.risk:before{background:#f59e0b}.report-insight-card.next:before{background:#2563eb}.report-insight-card ul{margin:0;padding-left:1.15rem;display:grid;gap:.5rem;color:var(--muted);line-height:1.45}.raw-report{border:1px solid var(--border);border-radius:18px;background:var(--card);padding:.85rem 1rem}.raw-report summary{cursor:pointer;font-weight:900;color:var(--navy)}.raw-report pre{white-space:pre-wrap;margin:1rem 0 0;font-family:inherit;line-height:1.55;color:var(--muted)}[data-theme="dark"] .score-ring{background:conic-gradient(var(--cyan) calc(var(--score)*1%),#1b2a41 0)}[data-theme="dark"] .score-ring:after{background:var(--card)}[data-theme="dark"] .score-ring strong,[data-theme="dark"] .raw-report summary{color:#e5eefc}[data-theme="dark"] .report-tags span,[data-theme="dark"] .dimension-row i{background:#111f35;color:#e5eefc}@media(max-width:900px){.report-summary-hero,.report-visual-grid,.report-card-grid{grid-template-columns:1fr}.score-ring{width:96px;height:96px}.report-summary-hero{align-items:flex-start}}

/* V1.7: Public access request / token-only public intake */
.public-gated-hero .public-start-copy h1{max-width:720px}
.public-link-panel{border-color:rgba(14,165,233,.18);background:linear-gradient(180deg,rgba(14,165,233,.08),rgba(255,255,255,.52))}
.public-token-request-form .hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.public-request-success{margin-bottom:22px}
.public-request-success p{margin:8px 0 0;color:var(--muted,#5b6475)}
.public-token-request-form .mode-card input:checked + span{color:var(--accent,#0ea5e9)}
.public-token-request-form .public-start-actions .muted{max-width:360px;line-height:1.45}

.ai-chat-done[hidden]{display:none!important}

/* V4.2 report and feedback refinements */
.ai-chat-progress{display:none!important}.ai-chat-status-wrap{grid-template-columns:160px auto}.report-action-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.1rem}.ai-report-v2 .report-visual-grid,.ai-report-v2 .radar-card,.ai-report-v2 .dimension-card{display:none!important}.report-path-card{border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,rgba(0,209,255,.09),rgba(37,99,235,.06));padding:1.15rem}.report-path-card h3{margin:.25rem 0 1rem;font-size:1.35rem}.path-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.path-steps div{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1rem}.path-steps strong{display:inline-flex;width:32px;height:32px;border-radius:999px;align-items:center;justify-content:center;background:var(--navy);color:#fff;margin-bottom:.6rem}.path-steps span{display:block;font-weight:900;color:var(--navy);margin-bottom:.35rem}.path-steps p{margin:0;color:var(--muted);line-height:1.5}.feedback-card{max-width:760px;margin:0 auto}.feedback-form{display:grid;gap:1rem}.rating-choice{display:flex;gap:.65rem;flex-wrap:wrap}.rating-choice label input{position:absolute;opacity:0;pointer-events:none}.rating-choice label span{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:18px;border:1px solid var(--border);background:var(--surface-soft);font-weight:900;cursor:pointer}.rating-choice label input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy)}.feedback-form textarea{width:100%;border:1px solid var(--border);border-radius:18px;padding:1rem;font:inherit;background:var(--surface-soft);color:inherit}.feedback-form textarea:focus{outline:none;box-shadow:0 0 0 4px rgba(0,209,255,.16);border-color:rgba(0,209,255,.45);background:var(--card)}@media(max-width:900px){.path-steps{grid-template-columns:1fr}.ai-chat-status-wrap{grid-template-columns:1fr}.ai-progress-shell{width:160px}}

/* V4.6 report PDF / aresa CTA cleanup */
.ai-report-final .report-summary-hero-final{display:grid;grid-template-columns:108px minmax(0,1fr);gap:1.25rem;align-items:center}
.ai-report-final .score-ring{width:88px;height:88px;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at center,var(--card) 58%,transparent 59%),conic-gradient(var(--cyan) calc(var(--score)*1%),rgba(230,234,243,.9) 0);box-shadow:0 14px 40px rgba(0,209,255,.16)}
.ai-report-final .score-ring strong{font-size:1.75rem;line-height:1;color:var(--navy)}
.ai-report-final .score-ring span{font-weight:900;color:var(--muted);font-size:.8rem}
.ai-report-final .report-tags span:not(:first-child){display:none!important}
.ai-report-final .report-diagnosis-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}
.ai-report-final .report-diagnosis-grid article{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1rem;box-shadow:0 12px 32px rgba(7,26,53,.04)}
.ai-report-final .report-diagnosis-grid h3{font-size:1rem;margin:0 0 .45rem;color:var(--navy)}
.ai-report-final .report-diagnosis-grid p{margin:0;color:var(--muted);line-height:1.55}
.ai-report-final .path-steps-clean>div{overflow:hidden;min-width:0}
.ai-report-final .path-steps-clean p{margin:.35rem 0 0;font-weight:500;color:var(--muted);line-height:1.5}
.ai-report-final .path-steps-clean b{color:var(--navy);font-weight:900}
.ai-report-final .report-path-final .btn{margin-top:.25rem}
@media(max-width:900px){.ai-report-final .report-summary-hero-final,.ai-report-final .report-diagnosis-grid{grid-template-columns:1fr}.ai-report-final .score-ring{width:78px;height:78px}}
.feedback-card-v2{max-width:880px}.feedback-question{border:1px solid var(--border);border-radius:18px;padding:1rem;margin:0;background:var(--surface-soft)}.feedback-question legend{font-weight:900;color:var(--navy);padding:0 .35rem}.feedback-card-v2 .rating-choice{margin-top:.75rem}

/* V4.8 public i18n and dark-mode readability fixes */
.hero-eyebrow{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--border);border-radius:999px;padding:.32rem .7rem;background:rgba(255,255,255,.88);color:#657085;letter-spacing:.10em;line-height:1.1;max-width:max-content}
.hero-eyebrow::before{content:"";width:.45rem;height:.45rem;border-radius:999px;background:var(--cyan);box-shadow:0 0 0 4px rgba(0,209,255,.12)}
[data-theme="dark"] .hero-eyebrow{background:#eaf3fb;color:#5b6475;border-color:#d7e2ef;box-shadow:0 8px 22px rgba(0,0,0,.18)}
[data-theme="dark"] .flash-message.success{background:#0f4a2d;border:1px solid #16884e;color:#e8fff2}
[data-theme="dark"] .flash-message.success p,[data-theme="dark"] .flash-message.success .muted{color:#c8f7dd!important}
[data-theme="dark"] .flash-message.success span{color:#dfffea;font-weight:900}
[data-theme="dark"] .public-request-success{box-shadow:0 18px 44px rgba(0,0,0,.22)}
[data-theme="dark"] .feedback-question{background:#0f1b2d}
[data-theme="dark"] .rating-choice label span{background:#111f35;color:#e5eefc}


/* V4.9: dark mode / i18n cleanup */
[data-theme="dark"] .public-body{background:#020617;}
[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .eyebrow.hero-eyebrow{
  background:linear-gradient(135deg,rgba(0,209,255,.18),rgba(14,165,233,.10));
  color:#dff8ff;
  border-color:rgba(0,209,255,.45);
  box-shadow:0 0 0 1px rgba(0,209,255,.08),0 12px 32px rgba(0,209,255,.10);
}
[data-theme="dark"] .hero-eyebrow::before{background:#22d3ee;box-shadow:0 0 0 4px rgba(34,211,238,.16),0 0 18px rgba(34,211,238,.55);}
[data-theme="dark"] .public-start-badges span,
[data-theme="dark"] .ai-chat-help-box,
[data-theme="dark"] .public-chat-intro-box{
  background:linear-gradient(135deg,rgba(0,209,255,.13),rgba(15,35,60,.96));
  border-color:rgba(0,209,255,.32);
  color:#e5faff;
}
[data-theme="dark"] .public-start-badges span{box-shadow:0 0 22px rgba(0,209,255,.08);}
[data-theme="dark"] .ai-chat-bubble.assistant{background:#10243a;border-color:rgba(0,209,255,.20);color:#e8f3ff;}
[data-theme="dark"] .ai-chat-bubble.customer{background:linear-gradient(135deg,rgba(0,209,255,.24),rgba(14,165,233,.16));border-color:rgba(0,209,255,.44);color:#effcff;}
[data-theme="dark"] .ai-message-avatar{background:#10243a;border:1px solid rgba(0,209,255,.22);color:#dff8ff;}
[data-theme="dark"] .ai-message-row.customer .ai-message-avatar{background:#00d1ff;color:#001525;border-color:#00d1ff;}
[data-theme="dark"] .ai-chat-quick-actions button{background:rgba(0,209,255,.10);border-color:rgba(0,209,255,.25);color:#dff8ff;}
[data-theme="dark"] .ai-chat-status{background:rgba(0,209,255,.10);border-color:rgba(0,209,255,.25);color:#dff8ff;}
[data-theme="dark"] .ai-chat-composer textarea:focus{background:#10243a;border-color:rgba(0,209,255,.65);box-shadow:0 0 0 4px rgba(0,209,255,.18);}
[data-theme="dark"] .ai-chat-composer button:disabled{background:#10243a;color:#7890aa;border:1px solid #243449;}
.ai-public-footer{border-top:1px solid var(--border);background:var(--card);padding:2rem 0;color:var(--muted);}
.ai-public-footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;}
.ai-public-footer-brand{font-weight:900;color:var(--navy);font-size:1.1rem;margin-bottom:.45rem;}
.ai-public-footer-brand span{color:var(--cyan);}
.ai-public-footer p{margin:.25rem 0;font-size:.92rem;}
.ai-public-footer nav{display:flex;gap:1.25rem;flex-wrap:wrap;justify-content:flex-end;}
.ai-public-footer a{color:var(--muted);text-decoration:none;font-size:.92rem;}
.ai-public-footer a:hover{color:var(--cyan);}
[data-theme="dark"] .ai-public-footer{background:#07111f;border-color:#1e2f45;}
[data-theme="dark"] .ai-public-footer-brand{color:#e5eefc;}
@media(max-width:720px){.ai-public-footer-inner{flex-direction:column}.ai-public-footer nav{justify-content:flex-start;gap:.85rem}}

/* V4.12 chat pill and avatar contrast polish */
[data-theme="dark"] .public-chat-shell .hero-eyebrow,
[data-theme="dark"] .public-chat-shell .eyebrow.hero-eyebrow,
[data-theme="dark"] .ai-chat-side .hero-eyebrow,
[data-theme="dark"] .ai-public-chat-card .hero-eyebrow{
  background:linear-gradient(180deg,rgba(10,30,50,.98),rgba(11,20,36,.98));
  border:1px solid rgba(0,209,255,.36);
  color:#dff8ff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 0 0 1px rgba(0,209,255,.10),0 10px 28px rgba(0,209,255,.10);
}
[data-theme="dark"] .public-chat-shell .hero-eyebrow::before,
[data-theme="dark"] .public-chat-shell .eyebrow.hero-eyebrow::before,
[data-theme="dark"] .ai-chat-side .hero-eyebrow::before,
[data-theme="dark"] .ai-public-chat-card .hero-eyebrow::before{
  background:#49dfff;
  box-shadow:0 0 0 4px rgba(73,223,255,.18),0 0 14px rgba(73,223,255,.55);
}
[data-theme="dark"] .ai-message-avatar{
  background:linear-gradient(180deg,#122a43,#0b1d31);
  border:1px solid rgba(0,209,255,.30);
  color:#f5fbff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 8px 22px rgba(0,0,0,.28);
}
[data-theme="dark"] .ai-message-row.customer .ai-message-avatar{
  background:#45cfff;
  border-color:#45cfff;
  color:#032136;
  box-shadow:0 8px 22px rgba(0,209,255,.18);
}


/* V4.14 final chat send button: compact blue pill like status badge */
.ai-chat-composer{
  grid-template-columns:1fr auto;
  align-items:center;
}
.ai-chat-composer button,
.ai-chat-composer button:disabled,
[data-theme="dark"] .ai-chat-composer button,
[data-theme="dark"] .ai-chat-composer button:disabled{
  width:auto;
  min-width:64px;
  height:44px;
  min-height:44px;
  padding:0 .95rem;
  border-radius:999px;
  border:1px solid rgba(0,209,255,.55);
  background:linear-gradient(135deg,#00d1ff,#22d3ee);
  color:#031827;
  font-size:.76rem;
  font-weight:900;
  box-shadow:0 10px 28px rgba(0,209,255,.20);
  opacity:1;
}
.ai-chat-composer button:hover,
[data-theme="dark"] .ai-chat-composer button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(0,209,255,.26);
}
.ai-chat-composer button:disabled,
[data-theme="dark"] .ai-chat-composer button:disabled{
  cursor:not-allowed;
  opacity:.72;
}
@media(max-width:640px){
  .ai-chat-composer{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .ai-chat-composer button{
    width:100%;
  }
}

/* V4.15 report dark-mode badge polish */
.ai-report-final .report-summary-copy > .eyebrow,
.ai-report-final .report-path-final > .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  max-width:max-content;
  border-radius:999px;
  padding:.32rem .7rem;
}
.ai-report-final .report-summary-copy > .eyebrow::before,
.ai-report-final .report-path-final > .eyebrow::before{
  content:"";
  width:.45rem;
  height:.45rem;
  border-radius:999px;
  background:var(--cyan);
  box-shadow:0 0 0 4px rgba(0,209,255,.12);
  flex:0 0 auto;
}
[data-theme="dark"] .ai-report-final .report-summary-copy > .eyebrow,
[data-theme="dark"] .ai-report-final .report-path-final > .eyebrow{
  background:linear-gradient(180deg,rgba(10,30,50,.98),rgba(11,20,36,.98)) !important;
  border:1px solid rgba(0,209,255,.36) !important;
  color:#dff8ff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 0 0 1px rgba(0,209,255,.10),0 10px 28px rgba(0,209,255,.10) !important;
}
[data-theme="dark"] .ai-report-final .report-summary-copy > .eyebrow::before,
[data-theme="dark"] .ai-report-final .report-path-final > .eyebrow::before{
  background:#49dfff !important;
  box-shadow:0 0 0 4px rgba(73,223,255,.18),0 0 14px rgba(73,223,255,.55) !important;
}
[data-theme="dark"] .ai-report-final .report-path-final .path-steps-clean > div > strong{
  background:linear-gradient(180deg,#122a43,#0b1d31) !important;
  border:1px solid rgba(0,209,255,.34) !important;
  color:#f5fbff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 8px 22px rgba(0,209,255,.12) !important;
}

/* V4.16 mobile public header language switch visibility */
@media(max-width:640px){
  .public-topbar .topbar-inner{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:.45rem!important;
    padding-left:.75rem!important;
    padding-right:.75rem!important;
  }
  .public-topbar .topbar-left{
    min-width:0!important;
    flex:1 1 auto!important;
    gap:.45rem!important;
  }
  .public-topbar .brand{
    flex-shrink:0!important;
    gap:.35rem!important;
  }
  .public-topbar .brand-logo{
    width:24px!important;
    height:24px!important;
  }
  .public-topbar .brand-text{
    font-size:1.05rem!important;
    letter-spacing:-.03em!important;
  }
  .public-topbar .brand-pipe{
    margin:0 .2rem!important;
    opacity:.75!important;
  }
  .public-topbar .brand-module{
    font-size:.92rem!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:74px!important;
  }
  .public-topbar .topbar-right{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    gap:.35rem!important;
    min-width:auto!important;
  }
  .public-topbar .lang-switch{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    gap:.12rem!important;
    padding:.18rem!important;
    border-radius:999px!important;
    transform:none!important;
    position:static!important;
  }
  .public-topbar .lang-switch a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:24px!important;
    height:24px!important;
    padding:0!important;
    font-size:.65rem!important;
    line-height:1!important;
  }
  .public-topbar .theme-toggle{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .public-topbar .theme-toggle-label{
    display:none!important;
  }
}
@media(max-width:370px){
  .public-topbar .brand-module,
  .public-topbar .brand-pipe{
    display:none!important;
  }
  .public-topbar .brand-text{
    font-size:1rem!important;
  }
}

/* V4.15 internal create form and dark design polish only */
.app-shell{
  background:linear-gradient(135deg,#eefaff 0%,#f8fbff 48%,#ffffff 100%);
  min-height:calc(100vh - 76px);
  padding-top:1.2rem;
}
.app-shell .content{max-width:1120px;}
.internal-check-heading{align-items:flex-start;margin-bottom:1.15rem;}
.internal-check-heading h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.02;margin:.35rem 0 .45rem;letter-spacing:-.04em;}
.internal-check-heading p{max-width:780px;line-height:1.55;}
.internal-kicker{display:inline-flex;align-items:center;gap:.45rem;border:1px solid rgba(0,209,255,.26);border-radius:999px;background:#f8fbff;color:#64748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;font-weight:950;padding:.38rem .7rem;box-shadow:0 10px 28px rgba(15,23,42,.04);}
.internal-kicker span{width:8px;height:8px;border-radius:999px;background:var(--cyan);box-shadow:0 0 0 4px rgba(0,209,255,.14),0 0 14px rgba(0,209,255,.4);}
.internal-create-card{padding:1.1rem;border-color:rgba(0,209,255,.24);}
.internal-check-form{display:grid;gap:1rem;}
.internal-form-section{border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,rgba(0,209,255,.07),rgba(37,99,235,.035));padding:1.05rem;}
.internal-form-main{padding:1.2rem;}
.internal-section-head h2{font-size:clamp(1.4rem,3vw,2.05rem);letter-spacing:-.035em;margin:.45rem 0 .25rem;}
.internal-section-head p{margin:0 0 1rem;color:var(--muted);line-height:1.5;}
.internal-grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;}
.internal-grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem;}
.internal-grid-one{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem;}
.internal-check-form .field.full{grid-column:1/-1;}
.internal-check-form .field label{font-size:.84rem;letter-spacing:.01em;}
.internal-check-form .field input,
.internal-check-form .field textarea,
.internal-check-form .field select{
  border-radius:18px;
  min-height:48px;
  background:rgba(248,251,255,.78);
  border-color:rgba(148,163,184,.24);
}
.internal-check-form .field textarea{min-height:118px;resize:vertical;line-height:1.5;}
.internal-check-form .field input:focus,
.internal-check-form .field textarea:focus,
.internal-check-form .field select:focus{outline:none;border-color:rgba(0,209,255,.52);box-shadow:0 0 0 4px rgba(0,209,255,.14);background:var(--card);}
.internal-details{padding:0;overflow:hidden;background:var(--card);}
.internal-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;cursor:pointer;}
.internal-details summary::-webkit-details-marker{display:none;}
.internal-details summary:after{content:'+';display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:rgba(0,209,255,.12);border:1px solid rgba(0,209,255,.22);font-weight:950;color:var(--navy);}
.internal-details[open] summary:after{content:'−';}
.internal-details summary strong{display:block;font-size:1rem;}
.internal-details summary small{display:block;color:var(--muted);margin-top:.18rem;line-height:1.35;}
.internal-details .internal-grid-one,
.internal-details .internal-grid-three{padding:0 1.1rem 1.1rem;margin-top:0;}
.internal-form-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:1rem;}
.internal-form-actions .btn.primary{background:linear-gradient(135deg,#00d1ff,#22d3ee);color:#031827;box-shadow:0 14px 34px rgba(0,209,255,.22);}

[data-theme="dark"] .app-shell{
  background:
    radial-gradient(circle at 18% 8%,rgba(0,209,255,.10),transparent 26%),
    radial-gradient(circle at 82% 18%,rgba(37,99,235,.10),transparent 28%),
    linear-gradient(135deg,#020617 0%,#081121 48%,#020617 100%);
}
[data-theme="dark"] .app-shell .sidebar,
[data-theme="dark"] .app-shell .card,
[data-theme="dark"] .internal-form-section,
[data-theme="dark"] .internal-details{
  background:rgba(8,19,34,.92);
  border-color:rgba(0,209,255,.20);
  box-shadow:0 18px 60px rgba(0,0,0,.30);
}
[data-theme="dark"] .app-shell .sidebar{background:rgba(11,21,38,.88);}
[data-theme="dark"] .sidebar-title,
[data-theme="dark"] .page-heading p,
[data-theme="dark"] .internal-section-head p,
[data-theme="dark"] .internal-details summary small{color:rgba(226,232,240,.68);}
[data-theme="dark"] .internal-check-heading h1,
[data-theme="dark"] .internal-section-head h2,
[data-theme="dark"] .internal-details summary strong{color:#f8fbff;}
[data-theme="dark"] .internal-kicker{
  background:linear-gradient(180deg,rgba(10,30,50,.98),rgba(11,20,36,.98));
  border:1px solid rgba(0,209,255,.36);
  color:#dff8ff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 0 0 1px rgba(0,209,255,.10),0 10px 28px rgba(0,209,255,.10);
}
[data-theme="dark"] .internal-form-main{background:linear-gradient(135deg,rgba(0,209,255,.085),rgba(37,99,235,.035));}
[data-theme="dark"] .internal-check-form .field input,
[data-theme="dark"] .internal-check-form .field textarea,
[data-theme="dark"] .internal-check-form .field select{
  background:rgba(15,28,48,.88);
  border-color:rgba(148,163,184,.20);
  color:#f8fbff;
}
[data-theme="dark"] .internal-check-form .field input::placeholder,
[data-theme="dark"] .internal-check-form .field textarea::placeholder{color:rgba(226,232,240,.42);}
[data-theme="dark"] .internal-details summary:after{background:rgba(0,209,255,.16);border-color:rgba(0,209,255,.30);color:#e5fbff;}
[data-theme="dark"] .internal-form-actions{border-top-color:rgba(148,163,184,.18);}
[data-theme="dark"] .internal-form-actions .btn.secondary{background:rgba(148,163,184,.12);color:#e5eefc;border:1px solid rgba(148,163,184,.16);}
[data-theme="dark"] .app-shell .sidebar-nav a.active{background:linear-gradient(135deg,rgba(0,209,255,.20),rgba(37,99,235,.13));border-color:rgba(0,209,255,.48);box-shadow:0 0 28px rgba(0,209,255,.08);}
@media(max-width:900px){
  .internal-grid-two,.internal-grid-three{grid-template-columns:1fr;}
  .internal-check-heading{display:block;}
  .internal-create-card{padding:.8rem;}
}

/* V4.15 internal dark background edge fix */
[data-theme="dark"] html,
html[data-theme="dark"] {
  background:#050b18 !important;
}

[data-theme="dark"] body,
html[data-theme="dark"] body,
[data-theme="dark"] .app-body,
[data-theme="dark"] .app-main,
[data-theme="dark"] .app-shell,
[data-theme="dark"] .app-page,
[data-theme="dark"] .dashboard-shell,
[data-theme="dark"] .internal-shell,
[data-theme="dark"] .admin-shell {
  background:
    radial-gradient(circle at top left, rgba(0,209,255,.08), transparent 34rem),
    linear-gradient(180deg,#071120 0%,#050b18 100%) !important;
}

[data-theme="dark"] .app-layout,
[data-theme="dark"] .app-content,
[data-theme="dark"] main {
  background:transparent !important;
}

