/*
 * demo.aicharged.io — portal styles (layouts/demo.blade.php, resources/views/demo/**).
 * Plain CSS on top of the site's M3 tokens (--m3-* from resources/css/app.css, light + .dark),
 * so the portal needs no Tailwind rebuild. Tenants override tokens via layouts/demo inline vars.
 * Mobile-first, 16px gutters, no horizontal scroll. Class prefix: dp-.
 */

.dp-body {
    margin: 0;
    min-height: 100vh;
    background: var(--m3-background);
    color: var(--m3-on-background);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.dp-body *, .dp-body *::before, .dp-body *::after { box-sizing: border-box; }
.dp-shell { display: flex; min-height: 100vh; flex-direction: column; }
.dp-main { flex: 1; width: 100%; }
.dp-container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .dp-container { padding: 0 24px; } }

.dp-focus:focus-visible, .dp-body a:focus-visible, .dp-body button:focus-visible, .dp-body summary:focus-visible, .dp-body input:focus-visible {
    outline: 2px solid var(--m3-primary);
    outline-offset: 2px;
}
.dp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dp-skip { position: absolute; left: 16px; top: -100px; z-index: 10001; padding: 12px 20px; border-radius: 9999px; background: var(--m3-primary); color: var(--m3-on-primary); font-weight: 600; text-decoration: none; }
.dp-skip:focus { top: 16px; }

/* ---------------------------------------------------------------- header */
.dp-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--m3-surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--m3-outline-variant);
}
.dp-header__inner { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.dp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; color: var(--m3-on-surface); text-decoration: none; }
.dp-brand__logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.dp-brand__logo--dark { display: none; }
html.dark .dp-brand__logo--light.dp-has-dark { display: none; }
html.dark .dp-brand__logo--dark { display: block; }
.dp-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 700; font-size: 16px; }
.dp-brand__text { display: flex; min-width: 0; flex-direction: column; line-height: 1.2; }
.dp-brand__name { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-brand__sub { font-size: 12px; color: var(--m3-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-header__actions { display: flex; align-items: center; gap: 4px; flex: none; }

.dp-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 9999px;
    background: transparent; color: var(--m3-on-surface-variant); cursor: pointer;
    font: inherit; font-size: 14px; transition: background-color .15s ease, color .15s ease;
}
.dp-iconbtn:hover { background: var(--m3-surface-variant); color: var(--m3-primary); }
.dp-iconbtn svg { width: 20px; height: 20px; flex: none; }
.dp-iconbtn__label { display: none; }
@media (min-width: 768px) { .dp-iconbtn__label { display: inline; } }

/* Dropdown (tenant switcher, user menu) built on <details>. */
.dp-menu { position: relative; }
.dp-menu > summary { list-style: none; }
.dp-menu > summary::-webkit-details-marker { display: none; }
.dp-menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    width: min(18rem, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
    padding: 8px; border-radius: 16px; border: 1px solid var(--m3-outline-variant);
    background: var(--m3-surface); box-shadow: var(--shadow-m3-3, 0 8px 18px rgba(60,64,67,.14));
}
.dp-menu__label { padding: 8px 12px 4px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--m3-on-surface-variant); }
.dp-menu__item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
    border: 0; border-radius: 12px; background: transparent; color: var(--m3-on-surface);
    font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.dp-menu__item:hover { background: var(--m3-surface-variant); }
.dp-menu__item[aria-current="true"] { background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 600; }
.dp-menu__item small { margin-left: auto; color: var(--m3-on-surface-variant); font-size: 12px; }
.dp-menu__sep { height: 1px; margin: 6px 4px; background: var(--m3-outline-variant); }

/* ---------------------------------------------------------------- footer */
.dp-footer { margin-top: 64px; padding: 24px 0 32px; border-top: 1px solid var(--m3-outline-variant); color: var(--m3-on-surface-variant); font-size: 13px; }
.dp-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.dp-footer a { color: var(--m3-primary); text-decoration: none; font-weight: 600; }
.dp-footer a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- type & common */
.dp-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--m3-primary); }
.dp-h1 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--m3-on-background); }
.dp-h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.dp-h3 { margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.dp-lead { margin: 12px 0 0; max-width: 46rem; font-size: 1rem; line-height: 1.6; color: var(--m3-on-surface-variant); }
.dp-prose p { margin: 0 0 .75em; line-height: 1.65; }
.dp-prose p:last-child { margin-bottom: 0; }
.dp-muted { color: var(--m3-on-surface-variant); }

.dp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 10px 22px; border: 0; border-radius: 9999px; background: var(--dp-cta, var(--m3-primary)); color: var(--dp-on-cta, var(--m3-on-primary));
    font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    box-shadow: var(--shadow-m3-1, 0 1px 2px rgba(60,64,67,.16)); transition: box-shadow .15s ease, opacity .15s ease;
}
.dp-btn:hover { box-shadow: var(--shadow-m3-2, 0 2px 6px rgba(60,64,67,.16)); opacity: .94; }
.dp-btn--tonal { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); box-shadow: none; }
.dp-btn--block { width: 100%; }
.dp-btn svg { width: 18px; height: 18px; }

.dp-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px;
    font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.dp-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dp-badge--live { background: color-mix(in srgb, #1e8e3e 16%, transparent); color: #137333; }
html.dark .dp-badge--live { color: #81c995; }
.dp-badge--prepared { background: var(--m3-primary-container); color: var(--m3-on-primary-container); }
.dp-badge--concept { background: var(--m3-tertiary-container); color: var(--m3-on-tertiary-container); }
.dp-badge--proposal { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
.dp-badge--external { background: var(--m3-surface-variant); color: var(--m3-on-surface-variant); }

/* ---------------------------------------------------------------- hero */
.dp-hero { padding: 32px 0 8px; }
@media (min-width: 768px) { .dp-hero { padding: 56px 0 16px; } }

/* ---------------------------------------------------------------- hub groups & cards */
.dp-groups { display: flex; flex-direction: column; gap: 36px; padding-top: 24px; }
.dp-group__head { margin-bottom: 12px; }
.dp-group__title { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--m3-on-surface-variant); }
.dp-group__lead { margin: 6px 0 0; max-width: 46rem; font-size: 14px; line-height: 1.55; color: var(--m3-on-surface-variant); }
.dp-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dp-cards > li { min-width: 0; }
.dp-card {
    display: grid; grid-template-columns: 1.75rem 64px minmax(0, 1fr); align-items: center; gap: 8px 12px;
    min-height: 88px; padding: 12px; border-radius: 20px; overflow: hidden;
    background: var(--m3-surface); border: 1px solid var(--m3-outline-variant);
    color: var(--m3-on-surface); text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
a.dp-card:hover { border-color: color-mix(in srgb, var(--m3-primary) 45%, var(--m3-outline-variant)); box-shadow: var(--shadow-m3-2, 0 2px 6px rgba(60,64,67,.16)); }
.dp-card--static { opacity: .9; }
.dp-card__num { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.04em; color: var(--m3-primary); text-align: right; }
.dp-card__thumb { display: grid; place-items: center; width: 64px; height: 52px; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--m3-primary) 12%, var(--m3-surface)); color: var(--m3-primary); font-weight: 700; font-size: 18px; }
.dp-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.dp-card:hover .dp-card__thumb img { transform: scale(1.04); }
.dp-card__body { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.dp-card__body .dp-badge { align-self: flex-start; }
.dp-card__title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.dp-card__summary { margin: 0; font-size: 14px; line-height: 1.5; color: var(--m3-on-surface-variant); overflow-wrap: anywhere; }
.dp-card__arrow { display: none; color: var(--m3-primary); }
.dp-card__arrow svg { width: 20px; height: 20px; transition: transform .2s ease; }
a.dp-card:hover .dp-card__arrow svg { transform: translate(3px, -3px); }
@media (min-width: 640px) {
    .dp-card { grid-template-columns: 2.4rem 112px minmax(0, 1fr) auto; gap: 8px 18px; padding: 12px 18px 12px 12px; min-height: 100px; }
    .dp-card__thumb { width: 112px; height: 76px; border-radius: 14px; }
    .dp-card__arrow { display: flex; }
    .dp-card__num { font-size: 22px; }
    .dp-card__title { font-size: 18px; }
}

/* Picker grid */
.dp-tiles { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
@media (min-width: 640px) { .dp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dp-tile {
    display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border-radius: 28px;
    background: var(--m3-surface); border: 1px solid var(--m3-outline-variant); color: var(--m3-on-surface); text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dp-tile:hover { border-color: color-mix(in srgb, var(--m3-primary) 45%, var(--m3-outline-variant)); box-shadow: var(--shadow-m3-2, 0 2px 6px rgba(60,64,67,.16)); }
.dp-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-tile__logo { height: 36px; max-width: 140px; object-fit: contain; }
.dp-tile__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--m3-primary); font-weight: 600; font-size: 14px; }
.dp-tile__cta svg { width: 18px; height: 18px; }

/* Empty state */
.dp-empty { margin-top: 32px; padding: 40px 24px; border-radius: 28px; text-align: center; background: color-mix(in srgb, var(--m3-surface-variant) 50%, transparent); }
.dp-empty p { margin: 8px auto 0; max-width: 32rem; color: var(--m3-on-surface-variant); line-height: 1.6; }

/* ---------------------------------------------------------------- section page */
.dp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 24px; font-size: 14px; color: var(--m3-on-surface-variant); }
.dp-crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--m3-primary); text-decoration: none; font-weight: 600; }
.dp-crumbs a:hover { text-decoration: underline; }
.dp-crumbs svg { width: 16px; height: 16px; }
.dp-section-head { display: grid; gap: 20px; padding: 8px 0 24px; }
@media (min-width: 1024px) { .dp-section-head--media { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }
.dp-section-head__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dp-section-head__media { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--m3-surface-variant); }
.dp-section-head__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-note {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; padding: 14px 18px; border-radius: 16px;
    background: color-mix(in srgb, var(--m3-tertiary-container) 60%, transparent); color: var(--m3-on-tertiary-container); font-size: 14px; line-height: 1.55;
}
.dp-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.dp-blocks { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dp-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dp-block--wide { grid-column: 1 / -1; } }
.dp-block { min-width: 0; padding: 20px; border-radius: 28px; background: var(--m3-surface); border: 1px solid var(--m3-outline-variant); }
@media (min-width: 640px) { .dp-block { padding: 24px 28px; } }
.dp-block--tonal { background: color-mix(in srgb, var(--m3-primary) 6%, var(--m3-surface)); border-color: transparent; }
.dp-block__label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--m3-primary); }
.dp-block__label svg { width: 18px; height: 18px; }
.dp-block .dp-prose { font-size: 15px; color: var(--m3-on-surface); }

.dp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dp-list li { position: relative; padding-left: 20px; line-height: 1.55; font-size: 15px; }
.dp-list li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--m3-primary); }

.dp-flow { margin: 0; padding: 0; list-style: none; counter-reset: dpflow; display: flex; flex-direction: column; gap: 12px; }
.dp-flow li { counter-increment: dpflow; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; }
.dp-flow li::before { content: counter(dpflow); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 700; font-size: 14px; }
.dp-flow__action { font-weight: 600; line-height: 1.45; font-size: 15px; }
.dp-flow__result { display: flex; gap: 6px; color: var(--m3-on-surface-variant); line-height: 1.5; font-size: 14px; }
.dp-flow__result::before { content: '→'; color: var(--m3-primary); font-weight: 700; }

.dp-next { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-next a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 9999px; background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; font-size: 14px; text-decoration: none; max-width: 100%; }
.dp-next a:hover { box-shadow: var(--shadow-m3-1, 0 1px 2px rgba(60,64,67,.16)); }
.dp-next svg { width: 16px; height: 16px; flex: none; }

.dp-pager { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 640px) { .dp-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-pager a { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 20px; border-radius: 20px; border: 1px solid var(--m3-outline-variant); background: var(--m3-surface); color: var(--m3-on-surface); text-decoration: none; }
.dp-pager a:hover { border-color: color-mix(in srgb, var(--m3-primary) 45%, var(--m3-outline-variant)); }
.dp-pager small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--m3-on-surface-variant); }
.dp-pager strong { overflow-wrap: anywhere; }
.dp-pager__next { text-align: right; }
@media (max-width: 639px) { .dp-pager__next { text-align: left; } }

/* ---------------------------------------------------------------- widgets */
.dp-widget { grid-column: 1 / -1; min-width: 0; }
.dp-blocks--top { margin-bottom: 16px; }
.dp-widget__title { margin: 0 0 4px; }
.dp-widget__lead { margin: 0 0 16px; color: var(--m3-on-surface-variant); line-height: 1.55; font-size: 14px; }
.dp-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.dp-stat { padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--m3-primary) 7%, var(--m3-surface)); min-width: 0; }
.dp-stat__value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--m3-primary); overflow-wrap: anywhere; }
.dp-stat__label { margin-top: 2px; font-weight: 600; font-size: 14px; }
.dp-stat__note { margin-top: 4px; font-size: 13px; color: var(--m3-on-surface-variant); line-height: 1.45; }
.dp-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.dp-gallery figure { margin: 0; min-width: 0; }
.dp-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--m3-surface-variant); }
.dp-gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--m3-on-surface-variant); line-height: 1.45; }
.dp-process { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); counter-reset: dpproc; }
.dp-process li { counter-increment: dpproc; position: relative; padding: 16px 18px; border-radius: 20px; background: var(--m3-surface); border: 1px solid var(--m3-outline-variant); min-width: 0; }
.dp-process li::before { content: counter(dpproc, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--m3-primary); letter-spacing: .04em; }
.dp-process__actor { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; background: var(--m3-surface-variant); color: var(--m3-on-surface-variant); }
.dp-process p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--m3-on-surface-variant); }
.dp-proposals { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dp-proposal { padding: 16px 18px; border-radius: 20px; background: var(--m3-surface); border: 1px solid var(--m3-outline-variant); min-width: 0; }
.dp-proposal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.dp-proposal p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--m3-on-surface-variant); }
.dp-proposal__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--m3-on-surface-variant); }
.dp-proposal__meta strong { color: var(--m3-on-surface); font-weight: 600; }
.dp-external { display: grid; gap: 16px; padding: 16px; border-radius: 28px; background: color-mix(in srgb, var(--m3-primary) 6%, var(--m3-surface)); }
@media (min-width: 768px) { .dp-external--shot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 20px; } }
.dp-external__shot { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--m3-surface-variant); }
.dp-external__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-external__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; padding: 4px; }
.dp-external__body p { margin: 0; line-height: 1.6; color: var(--m3-on-surface-variant); }
.dp-external__url { font-size: 13px; color: var(--m3-on-surface-variant); overflow-wrap: anywhere; }
.dp-placeholder { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 28px; border: 1px dashed var(--m3-outline); background: color-mix(in srgb, var(--m3-surface-variant) 40%, transparent); }
.dp-placeholder svg { width: 28px; height: 28px; flex: none; color: var(--m3-primary); }
.dp-placeholder p { margin: 4px 0 0; color: var(--m3-on-surface-variant); line-height: 1.55; font-size: 14px; }

/* ---------------------------------------------------------------- login */
.dp-auth { display: grid; place-items: center; min-height: calc(100vh - 64px - 120px); padding: 32px 16px; }
.dp-auth__card { width: 100%; max-width: 26rem; padding: 28px 24px; border-radius: 28px; background: var(--m3-surface); border: 1px solid var(--m3-outline-variant); box-shadow: var(--shadow-m3-2, 0 2px 6px rgba(60,64,67,.16)); }
@media (min-width: 640px) { .dp-auth__card { padding: 36px 36px; } }
.dp-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.dp-field label { font-size: 14px; font-weight: 600; }
.dp-input {
    width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--m3-outline);
    background: var(--m3-surface); color: var(--m3-on-surface); font: inherit; font-size: 16px;
}
.dp-input:focus { outline: 2px solid var(--m3-primary); outline-offset: 0; border-color: var(--m3-primary); }
.dp-check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; min-height: 44px; }
.dp-check input { width: 18px; height: 18px; accent-color: var(--m3-primary); }
.dp-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--m3-error-container); color: var(--m3-on-error-container); font-size: 14px; line-height: 1.5; }
.dp-auth__hint { margin-top: 20px; font-size: 13px; line-height: 1.55; color: var(--m3-on-surface-variant); text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .dp-card, .dp-card__thumb img, .dp-card__arrow svg, .dp-tile { transition: none; }
    a.dp-card:hover .dp-card__thumb img, a.dp-card:hover .dp-card__arrow svg { transform: none; }
}

/* small helpers */
.dp-lead--sm { font-size: 15px; }
.dp-mt-16 { margin-top: 16px; }
.dp-tile__tagline { margin: 0; font-size: 14px; line-height: 1.55; color: var(--m3-on-surface-variant); }

/* ---------------------------------------------------------------- tenant style "band"
 * <html data-dp-style="band"> (brand.style in the tenant content). Mirrors the Oresi 3D planner
 * (kuchyne-oresi.aicharged.io): solid white header with the brand logo, a full-width hero band
 * (--dp-hero / --dp-on-hero / --dp-hero-accent) and squarer cards with heavier headings. */
[data-dp-style="band"] .dp-header { background: var(--m3-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-dp-style="band"] .dp-header__inner { min-height: 68px; }
[data-dp-style="band"] .dp-brand--logo { gap: 14px; }
[data-dp-style="band"] .dp-brand--logo .dp-brand__logo { height: 27px; max-width: 160px; }
[data-dp-style="band"] .dp-brand--logo .dp-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[data-dp-style="band"] .dp-brand--logo .dp-brand__text { padding-left: 14px; border-left: 1px solid var(--m3-outline-variant); }
[data-dp-style="band"] .dp-brand--logo .dp-brand__sub { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 479px) {
    [data-dp-style="band"] .dp-brand--logo .dp-brand__text { display: none; }
    [data-dp-style="band"] .dp-brand--logo .dp-brand__logo { height: 22px; max-width: 120px; }
}

/* Hub hero as a full-bleed band (box-shadow + clip-path extend the background past the container
   without changing layout width, so no horizontal scroll). */
[data-dp-style="band"] .dp-hero {
    position: relative; margin-bottom: 8px; padding: 40px 0 44px;
    background: var(--dp-hero, #000); color: var(--dp-on-hero, #fff);
    box-shadow: 0 0 0 100vmax var(--dp-hero, #000); clip-path: inset(0 -100vmax);
}
@media (min-width: 768px) { [data-dp-style="band"] .dp-hero { padding: 64px 0 60px; } }
[data-dp-style="band"] .dp-hero .dp-eyebrow { color: var(--dp-hero-accent, #9eb6ef); letter-spacing: .14em; }
[data-dp-style="band"] .dp-hero .dp-h1 { color: var(--dp-on-hero, #fff); font-weight: 800; letter-spacing: -.025em; }
[data-dp-style="band"] .dp-hero .dp-lead { color: color-mix(in srgb, var(--dp-on-hero, #fff) 78%, transparent); }
[data-dp-style="band"] .dp-groups { padding-top: 32px; }

[data-dp-style="band"] .dp-h1, [data-dp-style="band"] .dp-h2, [data-dp-style="band"] .dp-h3 { color: var(--m3-primary); font-weight: 800; }
[data-dp-style="band"] .dp-group__title { color: var(--m3-primary); font-weight: 800; }
[data-dp-style="band"] .dp-card__title { color: var(--m3-primary); font-weight: 700; }
[data-dp-style="band"] .dp-card { border-radius: 10px; }
[data-dp-style="band"] .dp-card__thumb { border-radius: 4px; }
[data-dp-style="band"] .dp-block, [data-dp-style="band"] .dp-tile, [data-dp-style="band"] .dp-external,
[data-dp-style="band"] .dp-section-head__media, [data-dp-style="band"] .dp-placeholder { border-radius: 14px; }
[data-dp-style="band"] .dp-pager a, [data-dp-style="band"] .dp-proposal, [data-dp-style="band"] .dp-process li,
[data-dp-style="band"] .dp-stat, [data-dp-style="band"] .dp-gallery img, [data-dp-style="band"] .dp-external__shot { border-radius: 10px; }
[data-dp-style="band"] .dp-btn { font-weight: 700; }
[data-dp-style="band"] .dp-body a:focus-visible, [data-dp-style="band"] .dp-body button:focus-visible { outline-color: var(--dp-cta, var(--m3-primary)); }

/* ---------------------------------------------------------------- header nav item
 * Only rendered by GET /t/{tenant}/shell?active=<section> (the 3D planner embeds the portal header,
 * MODULE-3D.md): one chip naming the demonstration the host page belongs to, linking back to it. */
.dp-header__nav { display: none; flex: none; min-width: 0; }
@media (min-width: 640px) { .dp-header__nav { display: flex; } }
.dp-header__navitem {
    display: inline-flex; align-items: center; min-height: 36px; max-width: 18rem; padding: 0 14px;
    border-radius: 9999px; background: var(--m3-primary-container); color: var(--m3-on-primary-container);
    font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-header__navitem:hover { background: color-mix(in srgb, var(--m3-primary-container) 85%, var(--m3-primary)); }
