:root {
    /* Premium palette: black/yellow header + clean off-white page */
    --page-bg: #fafaf7;
    --page-tint: #fff9eb;
    --surface: #ffffff;
    --surface-soft: #fffdf8;
    --surface-dark: #0b0f14;
    --surface-dark-2: #111111;
    --surface-dark-3: #181c23;
    --surface-dark-4: #232933;
    --accent: #FACC15; /* primary yellow */
    --accent-strong: #FBBF24; /* amber hover */
    --accent-soft: rgba(250, 204, 21, 0.12);
    --text: #0f172a;
    --muted: #5b6472;
    --muted-light: rgba(255, 255, 255, 0.72);
    --line: rgba(15, 23, 42, 0.1);
    --line-dark: rgba(255, 255, 255, 0.12);
    --shadow: 0 34px 80px rgba(7, 9, 14, 0.28);
    --shadow-deep: 0 34px 80px rgba(7, 9, 14, 0.36);
    --radius: 28px;
    --radius-small: 14px;
}

.dashboard-page {
    background: #f6f7f9;
}

.dashboard-app-shell {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.08), transparent 28%),
        #f6f7f9;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px 18px;
    overflow-y: auto;
    color: #ffffff;
    background: #090b0e;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 8px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 3px 4px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-brand .brand-icon {
    width: 48px;
    height: 48px;
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.18);
}

.dashboard-brand .brand-copy strong {
    color: #ffffff;
}

.dashboard-nav {
    display: grid;
    gap: 7px;
    padding: 10px 0 18px;
}

.dashboard-nav-group {
    display: grid;
    gap: 4px;
}

.dashboard-nav-item,
.dashboard-subitem,
.dashboard-logout {
    width: 100%;
    border: 0;
    appearance: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    background: transparent;
}

.dashboard-nav-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    font-weight: 850;
}

.dashboard-nav-item > span {
    min-width: 0;
}

.dashboard-nav-item b {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: transform 160ms ease;
}

.dashboard-nav-group.is-open .dashboard-nav-item b {
    transform: rotate(180deg);
}

.dashboard-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-nav-item .dashboard-icon,
.dashboard-subitem .dashboard-icon,
.dashboard-logout .dashboard-icon {
    color: var(--accent);
}

.dashboard-nav-item:hover,
.dashboard-nav-item.is-active,
.dashboard-nav-group.is-open > .dashboard-nav-item {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
}

.dashboard-nav-item.is-active,
.dashboard-subitem.is-active {
    color: var(--accent);
    background: rgba(250, 204, 21, 0.11);
    box-shadow: inset 3px 0 0 var(--accent);
}

.dashboard-subnav {
    display: none;
    gap: 3px;
    padding: 2px 0 7px 26px;
}

.dashboard-nav-group.is-open .dashboard-subnav {
    display: grid;
}

.dashboard-subitem {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    font-weight: 780;
}

.dashboard-subitem .dashboard-icon {
    width: 16px;
    height: 16px;
}

.dashboard-subitem:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.dashboard-help-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 13px;
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
}

.dashboard-help-card:hover,
.dashboard-help-card.is-active {
    color: #ffffff;
    border-color: rgba(250, 204, 21, 0.42);
    background: rgba(250, 204, 21, 0.12);
}

.dashboard-help-card > span {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #111111;
    background: linear-gradient(135deg, #fff6bf, var(--accent));
}

.dashboard-help-card strong {
    display: block;
    color: inherit;
}

.dashboard-help-card small {
    color: rgba(255, 255, 255, 0.64);
}

.dashboard-user-card > span,
.dashboard-profile > span {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #0c0d0f;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.dashboard-user-card strong,
.dashboard-profile strong {
    display: block;
    color: inherit;
}

.dashboard-user-card small,
.dashboard-profile small {
    color: rgba(255, 255, 255, 0.62);
}

.dashboard-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
}

.dashboard-logout:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.dashboard-main {
    min-width: 0;
    padding: 24px 28px 34px;
}

.dashboard-topbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-command {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 18, 28, 0.06);
}

.dashboard-command > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--accent-strong);
    border: 1px solid var(--line);
}

.dashboard-command input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.dashboard-command input[type="search"]::-webkit-search-cancel-button,
.dashboard-command input[type="search"]::-webkit-search-decoration {
    appearance: none;
    -webkit-appearance: none;
}

.dashboard-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    border: 0;
    padding: 0 22px;
    border-radius: 12px;
    color: #111111;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 28px rgba(250, 204, 21, 0.22);
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border-radius: 15px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #ffffff;
}

.dashboard-profile small {
    color: var(--muted);
}

.dashboard-content-panel {
    display: none;
}

.dashboard-content-panel.is-active {
    display: block;
}

.dashboard-hero-card,
.dashboard-suggestion,
.dashboard-metric-card,
.dashboard-panel,
.dashboard-work-form,
.dashboard-mini-card,
.dashboard-template-card,
.dashboard-table-wrap {
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 18, 28, 0.055);
}

.dashboard-hero-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 28px;
    border-radius: 20px;
}

.dashboard-eyebrow {
    color: #b98600;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-hero-card h1,
.dashboard-panel-heading h2 {
    margin: 10px 0 8px;
    color: var(--text);
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.02;
}

.dashboard-hero-card p,
.dashboard-section-block > p,
.dashboard-panel > p,
.dashboard-suggestion p,
.dashboard-metric-card p,
.dashboard-list-row p,
.dashboard-panel-heading p,
.dashboard-form-intro p,
.dashboard-mini-card p,
.dashboard-template-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-suggestion {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 16px;
}

.dashboard-suggestion > span,
.dashboard-metric-card > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #8a6400;
    background: #fff1ae;
}

.dashboard-suggestion small {
    display: block;
    margin-bottom: 4px;
    color: #b98600;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-suggestion strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1.05rem;
}

.dashboard-inline-action,
.dashboard-table button,
.dashboard-template-card button,
.dashboard-inline-actions button {
    min-height: 34px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 9px;
    padding: 0 12px;
    color: #111111;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    background: #fff7cc;
}

.dashboard-section-block {
    margin-top: 20px;
}

.dashboard-section-block h2,
.dashboard-panel h2,
.dashboard-form-intro h3,
.dashboard-mini-card h3,
.dashboard-template-card h3 {
    margin: 6px 0 6px;
    color: var(--text);
    font-size: 1.16rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.dashboard-metric-card {
    display: grid;
    gap: 9px;
    min-height: 154px;
    padding: 20px;
    border-radius: 16px;
}

.dashboard-metric-card strong {
    color: #000000;
    font-size: 2rem;
    line-height: 1;
}

.dashboard-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.dashboard-panel {
    min-height: 300px;
    padding: 20px;
    border-radius: 18px;
}

.dashboard-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.dashboard-list-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fffefa;
}

.dashboard-list-row > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #8a6400;
    background: #fff1ae;
}

.dashboard-list-row strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.dashboard-list-row small {
    color: var(--muted);
    white-space: nowrap;
}

.dashboard-empty-state {
    display: grid;
    place-items: center;
    min-height: 132px;
    margin-top: 16px;
    padding: 20px;
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: #fffefa;
}

.dashboard-progress-layout {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-top: 20px;
}

.dashboard-donut {
    display: grid;
    place-items: center;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    position: relative;
}

.dashboard-donut::after {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background: #ffffff;
}

.dashboard-donut span {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 950;
}

.dashboard-progress-list {
    display: grid;
    gap: 10px;
    width: 100%;
}

.dashboard-progress-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.dashboard-progress-list span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-panel-heading {
    margin-bottom: 18px;
}

.dashboard-work-form {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
}

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

.dashboard-field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 850;
}

.dashboard-field-wide {
    grid-column: 1 / -1;
}

.dashboard-field input,
.dashboard-field select,
.dashboard-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--text);
    font: inherit;
    font-weight: 650;
    background: #ffffff;
    outline: 0;
}

.dashboard-time-control {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) minmax(82px, 1fr) minmax(96px, 0.85fr);
    gap: 10px;
}

.dashboard-time-field input[type="hidden"] {
    display: none;
}

.dashboard-field textarea {
    min-height: 116px;
    resize: vertical;
}

.dashboard-field input:focus,
.dashboard-field select:focus,
.dashboard-field textarea:focus {
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.dashboard-permission-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.dashboard-permission-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.dashboard-permission-field strong,
.dashboard-permission-field small {
    display: block;
}

.dashboard-permission-field strong {
    color: var(--text);
    font-weight: 900;
}

.dashboard-permission-field small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.35;
}

.dashboard-service-note {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 14px;
    background: rgba(250, 204, 21, 0.1);
}

.dashboard-service-note strong {
    color: var(--text);
    font-weight: 900;
}

.dashboard-service-note span {
    color: var(--muted);
    line-height: 1.4;
}

.dashboard-custom-field {
    display: none;
}

.dashboard-custom-field.is-visible {
    display: grid;
}

.dashboard-form-grid > .button {
    align-self: end;
    justify-self: start;
}

.dashboard-form-status {
    min-height: 20px;
    color: #6f5400;
    font-weight: 800;
}

.dashboard-form-status.is-error {
    color: #b42318;
}

.dashboard-form-status.is-success {
    color: #287044;
}

.dashboard-recurring-note {
    display: none;
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 12px;
    color: #765400;
    font-weight: 800;
    line-height: 1.45;
    border: 1px solid rgba(250, 204, 21, 0.36);
    background: #fff8d7;
}

.dashboard-recurring-note.is-visible {
    display: block;
}

.dashboard-work-form button[disabled] {
    cursor: wait;
    opacity: 0.68;
}

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

.dashboard-account-single {
    display: grid;
    width: 100%;
    max-width: 1120px;
}

.dashboard-account-card {
    align-content: start;
}

.dashboard-account-card .dashboard-form-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: center;
}

.dashboard-account-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #8a6400;
    background: #fff1ae;
}

.dashboard-account-icon .dashboard-icon {
    width: 21px;
    height: 21px;
}

.dashboard-account-card .dashboard-form-grid {
    grid-template-columns: 1fr;
}

.dashboard-help-panel {
    display: grid;
    gap: 18px;
}

.dashboard-help-intro,
.dashboard-help-topic {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 18, 28, 0.055);
}

.dashboard-help-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    max-width: 1120px;
    padding: 20px 22px;
}

.dashboard-help-intro > span,
.dashboard-help-topic summary > span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #8a6400;
    background: #fff1ae;
}

.dashboard-help-intro h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.dashboard-help-intro p,
.dashboard-help-topic small,
.dashboard-help-report p,
.dashboard-help-report li {
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-help-grid {
    display: grid;
    gap: 12px;
    max-width: 1120px;
}

.dashboard-help-topic {
    overflow: hidden;
}

.dashboard-help-topic summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.dashboard-help-topic summary::-webkit-details-marker {
    display: none;
}

.dashboard-help-topic summary strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
}

.dashboard-help-topic[open] {
    border-color: rgba(250, 204, 21, 0.52);
}

.dashboard-help-report {
    display: grid;
    gap: 12px;
    padding: 0 20px 20px 78px;
}

.dashboard-help-report p {
    margin: 0;
}

.dashboard-help-report ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.dashboard-help-report li strong {
    color: var(--text);
}

.has-dashboard-dialog {
    overflow: hidden;
}

.dashboard-logout-dialog[hidden] {
    display: none;
}

.dashboard-logout-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 18, 28, 0.46);
    backdrop-filter: blur(6px);
}

.dashboard-logout-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    width: min(100%, 460px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 18, 28, 0.2);
}

.dashboard-logout-card > span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #8a6400;
    background: #fff1ae;
}

.dashboard-logout-card h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.35rem;
}

.dashboard-logout-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-logout-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-logout-confirm-actions .button {
    min-width: 138px;
}

.dashboard-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.dashboard-table th {
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #fffefa;
}

.dashboard-table td {
    color: var(--muted);
}

.dashboard-table td:first-child {
    color: var(--text);
    font-weight: 850;
}

.dashboard-table td .dashboard-empty-state {
    margin: 0;
}

.dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.dashboard-mini-card,
.dashboard-template-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 16px;
}

.dashboard-mini-card small {
    color: #8a6400;
    font-weight: 850;
}

.dashboard-template-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .dashboard-app-shell {
        grid-template-columns: 258px minmax(0, 1fr);
    }

    .dashboard-topbar,
    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-profile {
        justify-self: start;
    }

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

@media (max-width: 900px) {
    .dashboard-app-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
        max-height: none;
    }

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

    .dashboard-sidebar-footer {
        margin-top: 10px;
    }

    .dashboard-hero-card,
    .dashboard-suggestion {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-card {
        flex-direction: column;
    }

}

@media (max-width: 680px) {
    .dashboard-main {
        padding: 18px;
    }

    .dashboard-nav,
    .dashboard-topbar,
    .dashboard-metric-grid,
    .dashboard-card-grid,
    .dashboard-account-grid,
    .dashboard-form-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-list-row {
        grid-template-columns: auto 1fr;
    }

    .dashboard-list-row small {
        grid-column: 2;
        white-space: normal;
    }

    .dashboard-help-intro,
    .dashboard-help-topic summary {
        grid-template-columns: 1fr;
    }

    .dashboard-help-report {
        padding: 0 18px 18px;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page-bg);
}

body {
    min-height: 100%;
    margin: 0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

/* Homepage background: soft warm glow with subtle top contrast from dark header */
body.home-page {
    background:
        linear-gradient(180deg, rgba(11, 15, 20, 0.08) 0%, rgba(11, 15, 20, 0) 220px),
        radial-gradient(circle at 78% 8%, rgba(250, 204, 21, 0.16), transparent 34%),
        radial-gradient(circle at 12% 24%, rgba(251, 191, 36, 0.08), transparent 28%),
        linear-gradient(180deg, #FAFAF7 0%, #FFFFFF 100%);
}

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

button,
input {
    font: inherit;
}

.site-container {
    width: min(100% - 80px, 1280px);
    margin-inline: auto;
}

/* Wider homepage content wrapper to avoid narrow, unfinished-looking sections */
.home-container {
    width: min(100% - 80px, 1320px);
}

.site-header {
    /* Simple premium header styling */
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 8px 0;
    background: #0B0F14; /* solid brand header */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header .site-container {
    width: 100%;
    max-width: none;
    padding: 0 48px;
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(420px, 720px) auto;
    align-items: center;
    min-height: 60px;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-self: start;
}

.brand-icon {
    /* Compact logo for a cleaner header */
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #0B0F14;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    box-shadow: 0 6px 14px rgba(250, 204, 21, 0.12);
    overflow: hidden;
}

.brand-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-icon svg,
.header-command-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-copy strong {
    display: inline-block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-copy strong span,
.cta-banner h2 span {
    color: var(--accent-strong);
}

.header-command {
    /* Centered workspace search for authenticated users. */
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    width: 100%;
    max-width: 720px;
    justify-self: center;
    padding: 0 18px;
    color: var(--muted-light);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: box-shadow 200ms ease, border-color 180ms ease, transform 120ms ease;
}

.header-command input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font-size: 0.95rem;
    padding: 8px 0;
}

.header-command input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-command-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    color: #0b0f14;
    background: var(--accent);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease;
}

.header-command-submit:hover,
.header-command-submit:focus-visible {
    background: var(--accent-strong);
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.18);
    transform: translateY(-1px);
}

.header-public-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: center;
}

.header-public-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 800;
    transition: color 160ms ease, background 160ms ease, transform 120ms ease;
}

.header-public-nav a:hover,
.header-public-nav a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.header-command-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
}

/* search focus glow */
.header-command:focus-within {
    box-shadow: 0 6px 24px var(--accent-soft), 0 2px 6px rgba(0,0,0,0.24) inset;
    border-color: rgba(250, 204, 21, 0.28);
    transform: translateY(-1px);
}

.header-actions {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary,
.button-header-primary {
    color: #0b0f14;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.16);
}

.button-primary:hover,
.button-header-primary:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 12px 28px rgba(250, 190, 45, 0.18);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(15, 18, 28, 0.06);
}

.button-secondary:hover {
    background: #ffffff;
}

.button-header-ghost {
    color: #A1A1AA;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

.button-header-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.button-header-ghost:focus-visible,
.button-header-primary:focus-visible,
.header-command input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.button-large {
    min-height: 58px;
    padding-inline: 30px;
    border-radius: 18px;
}

.site-main {
    overflow: hidden;
}

.hero-section {
    padding: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.08), transparent 22%),
        radial-gradient(circle at 10% 22%, rgba(251, 191, 36, 0.04), transparent 18%),
        linear-gradient(180deg, #fafaf8 0%, #ffffff 100%);
}

.hero-section .home-container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(32px, 4.4vw, 72px);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(460px, 0.92fr) minmax(640px, 1.08fr);
    align-items: center;
    gap: clamp(56px, 5vw, 80px);
    padding: 88px 0 72px;
}

.hero-copy {
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 999px;
    background: #fff3cb;
    color: #8a6400;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    color: #0f172a;
    font-size: clamp(4rem, 5.6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
    color: inherit;
}

.hero-copy h1 span {
    color: inherit;
}

.hero-lede {
    max-width: 620px;
    margin: 28px 0 0;
    color: #5b6472;
    font-size: clamp(1.08rem, 1.22vw, 1.24rem);
    line-height: 1.74;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-media-frame {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    padding: 16px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 28px 64px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-video-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-sound-toggle {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    color: #0b0f14;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 140ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hero-video-sound-toggle:hover,
.hero-video-sound-toggle:focus-visible {
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.hero-video-sound-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.hero-video-sound-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 7px;
    height: 8px;
    border-radius: 2px;
    background: #0b0f14;
    box-shadow: 6px -3px 0 -2px #0b0f14, 6px 3px 0 -2px #0b0f14;
}

.hero-video-sound-icon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 2px;
    width: 9px;
    height: 12px;
    border-right: 2px solid #0b0f14;
    border-radius: 50%;
    opacity: 0.28;
}

.hero-video-shell.has-sound .hero-video-sound-toggle {
    color: #0b0f14;
    background: var(--accent);
    border-color: rgba(250, 204, 21, 0.5);
}

.hero-video-shell.has-sound .hero-video-sound-icon::after {
    opacity: 1;
}

.features-section,
.audience-section,
.cta-section {
    padding: 28px 0 34px;
}

.features-section {
    padding-inline: 0;
}

.feature-grid,
.audience-grid {
    display: grid;
    gap: 20px;
}

.feature-grid {
    width: min(100% - 96px, 1680px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

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

.feature-card,
.audience-card {
    min-height: 178px;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(15, 18, 28, 0.05);
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 318px;
    padding: 16px 16px 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 253, 248, 0.94) 100%);
    box-shadow:
        0 18px 42px rgba(15, 18, 28, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.feature-visual {
    display: grid;
    place-items: center;
    height: 148px;
    border-radius: 16px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background:
        radial-gradient(circle at 28% 22%, rgba(250, 204, 21, 0.22), transparent 34%),
        linear-gradient(135deg, #fffdf5 0%, #ffffff 54%, #fff8d8 100%);
}

.feature-art {
    display: block;
    width: min(88%, 300px);
    height: 100%;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #8a6400;
    font-size: 1.05rem;
    font-weight: 900;
    background: linear-gradient(145deg, #fff5cf, #ffec9a);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.18);
}

.feature-card h2,
.audience-card h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.feature-card h2 {
    margin: 2px 14px 0;
}

.feature-card p,
.audience-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

.feature-card p {
    margin: 0 14px;
}

.use-case-card {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.use-case-card:hover,
.use-case-card:focus-within {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 22px 46px rgba(15, 18, 28, 0.08);
    transform: translateY(-1px);
}

.use-case-card summary {
    display: block;
    cursor: pointer;
    list-style: none;
}

.use-case-card summary::-webkit-details-marker {
    display: none;
}

.use-case-card-hint {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 18px;
    padding: 0 12px;
    border-radius: 999px;
    color: #8a6400;
    background: #fff1ae;
    font-size: 0.8rem;
    font-weight: 900;
}

.use-case-card[open] .use-case-card-hint {
    color: #0b0f14;
    background: var(--accent);
}

.use-case-card[open] .use-case-card-hint::after {
    content: " open";
}

.use-case-detail {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.use-case-detail p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.use-case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.use-case-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0b0f14;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.82rem;
    font-weight: 900;
}

.use-case-actions a:hover,
.use-case-actions a:focus-visible {
    background: var(--accent);
    border-color: rgba(250, 204, 21, 0.6);
}

.steps-section {
    padding: 44px 0 48px;
    background: linear-gradient(180deg, #0b0d12 0%, #101318 100%);
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading-center {
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: 0;
}

.section-heading p {
    margin: 10px auto 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
}

.section-heading-light h2,
.section-heading-light p {
    color: #ffffff;
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.18), rgba(250, 204, 21, 0.65), rgba(250, 204, 21, 0.18));
    transform: translateY(-50%);
}

.step-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 18px 22px;
    border-radius: 18px;
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #111111;
    background: var(--accent-strong);
    font-weight: 900;
}

.step-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--accent-strong);
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
}

.step-copy {
    min-width: 0;
}

.step-card h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1.12rem;
}

.step-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 82% 50%, rgba(245, 194, 26, 0.18), transparent 14rem),
        linear-gradient(180deg, #0c0e13 0%, #12151b 100%);
    box-shadow: var(--shadow-deep);
}

.cta-copy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #111111;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.cta-banner h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.2vw, 3rem);
    letter-spacing: 0;
}

.cta-banner p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.site-footer {
    padding: 48px 0 28px;
    background: #0b0d12;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(120px, 0.7fr)) 1.1fr;
    gap: 28px;
    align-items: start;
}

.footer-brand p,
.footer-column p {
    margin: 16px 0 0;
    line-height: 1.65;
}

.footer-brand-mark .brand-copy strong,
.footer-column strong {
    color: #ffffff;
}

.footer-column {
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.74);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.footer-mini-actions a {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0b0f14;
    background: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
}

.footer-mini-actions a + a {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.footer-mini-actions a:hover {
    color: #0b0f14;
    background: var(--accent-strong);
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.dashboard-page {
    background: #f7f8fa;
}

.dashboard-app-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
    background: #f7f8fa;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 20px;
    overflow-y: auto;
    color: #ffffff;
    background: #0b0d0f;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.dashboard-brand .brand-icon {
    width: 48px;
    height: 48px;
}

.dashboard-brand .brand-copy strong {
    color: #ffffff;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav-group {
    display: grid;
    gap: 4px;
}

.dashboard-nav-item,
.dashboard-subitem,
.dashboard-logout {
    min-height: 44px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
}

.dashboard-nav-item span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: var(--accent);
    border: 1px solid rgba(250, 204, 21, 0.42);
}

.dashboard-nav-item:hover,
.dashboard-subitem:hover,
.dashboard-logout:hover,
.dashboard-nav-item.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-nav-item.is-active {
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
}

.dashboard-subitem {
    display: flex;
    align-items: center;
    margin-left: 39px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.dashboard-sidebar-footer {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 22px;
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-help-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px;
    color: rgba(255, 255, 255, 0.86);
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
}

.dashboard-help-card:hover,
.dashboard-help-card.is-active {
    color: #ffffff;
    border-color: rgba(250, 204, 21, 0.46);
    background: rgba(250, 204, 21, 0.12);
}

.dashboard-help-card > span {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #111111;
    background: linear-gradient(135deg, #fff6bf, var(--accent));
}

.dashboard-help-card strong {
    display: block;
    color: inherit;
}

.dashboard-help-card small {
    color: rgba(255, 255, 255, 0.64);
}

.dashboard-user-card > span,
.dashboard-profile > span {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #111111;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.dashboard-user-card strong,
.dashboard-profile strong {
    display: block;
}

.dashboard-user-card small,
.dashboard-profile small {
    color: rgba(255, 255, 255, 0.64);
}

.dashboard-logout {
    width: 100%;
    border: 0;
    padding: 0 14px;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.dashboard-main {
    min-width: 0;
    padding: 26px;
}

.dashboard-topbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.dashboard-command {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 18, 28, 0.06);
}

.dashboard-command > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.dashboard-search-mark {
    color: #8a6400;
    border-color: rgba(185, 134, 0, 0.22);
    background: #fff7cf;
}

.dashboard-command input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.dashboard-command input[type="search"]::-webkit-search-cancel-button,
.dashboard-command input[type="search"]::-webkit-search-decoration {
    appearance: none;
    -webkit-appearance: none;
}

.dashboard-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 12px;
    color: #111111;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.dashboard-profile small {
    color: var(--muted);
}

.dashboard-hero-card,
.dashboard-suggestion,
.dashboard-metric-card,
.dashboard-panel {
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 18, 28, 0.055);
}

.dashboard-hero-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
}

.dashboard-eyebrow {
    color: #b98600;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-hero-card h1 {
    margin: 10px 0 8px;
    color: var(--text);
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1;
}

.dashboard-hero-card p,
.dashboard-section-block > p,
.dashboard-panel > p,
.dashboard-suggestion p,
.dashboard-metric-card p,
.dashboard-list-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.dashboard-suggestion {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 18px;
}

.dashboard-suggestion > span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #111111;
    background: var(--accent);
}

.dashboard-suggestion small {
    display: block;
    margin-bottom: 4px;
    color: #b98600;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-suggestion strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1.08rem;
}

.dashboard-section-block {
    margin-top: 20px;
}

.dashboard-section-block h2,
.dashboard-panel h2 {
    margin: 6px 0 6px;
    color: var(--text);
    font-size: 1.25rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.dashboard-metric-card {
    display: grid;
    gap: 9px;
    min-height: 170px;
    padding: 22px;
    border-radius: 18px;
}

.dashboard-metric-card > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #8a6400;
    font-size: 0.78rem;
    font-weight: 900;
    background: #fff1ae;
}

.dashboard-metric-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.96rem;
}

.dashboard-metric-card strong {
    color: #000000;
    font-size: 2rem;
    line-height: 1;
}

button.dashboard-metric-card {
    appearance: none;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

button.dashboard-metric-card:focus-visible {
    outline: 3px solid rgba(250, 204, 21, 0.45);
    outline-offset: 3px;
}

.dashboard-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-panel {
    min-height: 330px;
    padding: 22px;
    border-radius: 20px;
}

.dashboard-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-list-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fffefa;
}

.dashboard-list-row > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #8a6400;
    font-size: 0.72rem;
    font-weight: 900;
    background: #fff1ae;
}

.dashboard-list-row strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.dashboard-list-row small {
    color: var(--muted);
    white-space: nowrap;
}

.dashboard-empty-state {
    display: grid;
    place-items: center;
    min-height: 172px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    background: #fffefa;
}

.dashboard-progress-layout {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-top: 22px;
}

.dashboard-donut {
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    position: relative;
}

.dashboard-donut::after {
    content: "";
    position: absolute;
    inset: 36px;
    border-radius: 50%;
    background: #ffffff;
}

.dashboard-donut span {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 2rem;
    font-weight: 900;
}

.dashboard-progress-list {
    display: grid;
    gap: 10px;
    width: 100%;
}

.dashboard-progress-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.dashboard-progress-list span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.flash-stack:empty {
    display: none;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash-message.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.auth-section,
.search-section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 72px 0 88px;
}

.auth-card,
.search-panel {
    width: min(100% - 32px, 600px);
    padding: 66px 38px 58px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.auth-card {
    min-height: 640px;
}

.auth-card-compact {
    min-height: auto;
}

.auth-card h1,
.search-panel h1 {
    margin: 10px 0 10px;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
}

.auth-card p,
.search-panel p {
    margin: 0 0 42px;
    color: var(--muted);
    line-height: 1.65;
}

.auth-eyebrow {
    color: #9a7300;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field,
.field-row {
    display: grid;
    gap: 8px;
}

.field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-card .field {
    margin-bottom: 30px;
}

.field span {
    color: var(--text);
    font-weight: 700;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-label-row a {
    color: #9a7300;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.field input {
    min-height: 52px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.field input:focus {
    border-color: rgba(245, 194, 26, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 194, 26, 0.18);
}

.field small {
    color: var(--muted);
}

.field-error {
    color: #b42318 !important;
}

.auth-notice {
    margin: -14px 0 26px;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text);
    line-height: 1.55;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fffefa;
}

.auth-notice-success {
    color: #166534;
    border-color: rgba(22, 101, 52, 0.18);
    background: #f0fdf4;
}

.auth-switch {
    display: block;
    margin-top: 30px;
    color: var(--muted);
}

.auth-switch a {
    color: #9a7300;
    font-weight: 800;
}

.search-results-grid {
    display: grid;
    gap: 12px;
}

.search-result-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.search-result-card span {
    color: var(--muted);
    line-height: 1.6;
}

.info-section {
    min-height: calc(100vh - 76px);
    padding: 84px 0 96px;
    background:
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.1), transparent 24%),
        linear-gradient(180deg, #fafaf8 0%, #ffffff 100%);
}

.info-layout {
    display: grid;
    gap: 28px;
}

.info-hero {
    max-width: 820px;
}

.info-hero h1 {
    margin: 12px 0 14px;
    color: var(--text);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.info-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.72;
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

.info-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(15, 18, 28, 0.055);
}

.info-card h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1.2rem;
    letter-spacing: 0;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.68;
}

@media (max-width: 1200px) {
    .site-container {
        width: min(100% - 56px, 1280px);
    }

    .site-header .site-container {
        padding: 0 24px;
    }

    .home-container {
        width: min(100% - 48px, 1320px);
    }

    .site-header-inner {
        grid-template-columns: auto minmax(320px, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 14px 18px;
    }

    .brand-mark {
        grid-area: brand;
        justify-self: start;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
    }

    .header-command,
    .header-public-nav {
        grid-area: search;
    }

    .hero-layout {
        grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
        gap: 44px;
        padding: 72px 0 60px;
    }

    .feature-grid {
        width: min(100% - 56px, 1320px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-app-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .dashboard-topbar,
    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-profile {
        justify-self: start;
    }

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

    .audience-grid,
    .footer-grid,
    .info-card-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    /* Tablet: stack hero while preserving comfortable width and spacing */
    .home-container {
        width: min(100% - 48px, 1320px);
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 60px 0 52px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-media-frame {
        justify-self: stretch;
        max-width: 100%;
    }

    .dashboard-app-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        height: auto;
    }

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

    .dashboard-nav-group {
        align-content: start;
    }

    .dashboard-hero-card {
        flex-direction: column;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .steps-grid::before {
        top: 36px;
        bottom: 36px;
        left: 39px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(250, 204, 21, 0.62), rgba(250, 204, 21, 0.18));
        transform: none;
    }
}

@media (max-width: 760px) {
    .site-container {
        width: min(100% - 32px, 1280px);
    }

    .site-header .site-container {
        padding: 0 10px;
    }

    .home-container {
        width: min(100% - 32px, 1320px);
    }

    .site-header {
        padding: 10px 0;
    }

    /* Responsive header behavior: clean stacked layout on mobile */
    .site-header-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "actions";
        gap: 12px;
    }

    .brand-mark,
    .header-actions,
    .header-command,
    .header-public-nav {
        justify-self: stretch;
    }

    .header-actions,
    .header-public-nav {
        justify-content: flex-start;
    }

    .header-command,
    .header-public-nav {
        min-height: 52px;
    }

    .header-command-key {
        display: none;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 10vw, 3.5rem);
        line-height: 0.97;
    }

    .hero-media-frame {
        padding: 12px;
        border-radius: 24px;
    }

    .hero-video-shell {
        min-height: 280px;
    }

    .feature-grid {
        width: min(100% - 32px, 1320px);
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        padding: 18px;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        gap: 10px;
    }

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

    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list-row {
        grid-template-columns: auto 1fr;
    }

    .dashboard-list-row small {
        grid-column: 2;
        white-space: normal;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .cta-copy {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-sidebar .dashboard-nav-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 11px;
}

.dashboard-sidebar .dashboard-nav-item > span {
    display: block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: inherit;
    place-items: initial;
}

.dashboard-sidebar .dashboard-subnav {
    display: none;
    gap: 3px;
    padding: 2px 0 7px 26px;
}

.dashboard-sidebar .dashboard-nav-group.is-open .dashboard-subnav {
    display: grid;
}

.dashboard-sidebar .dashboard-subitem {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 9px;
    margin-left: 0;
}

.dashboard-main .dashboard-topbar {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.dashboard-main .dashboard-command {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-command small[data-dashboard-search-status] {
    grid-column: 2 / -1;
    min-width: 0;
    color: #9a6b00;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
}

.dashboard-command small[data-dashboard-search-status]:empty {
    display: none;
}

.dashboard-search-clear,
.dashboard-search-submit {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid transparent;
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.dashboard-search-clear[hidden] {
    display: none;
}

.dashboard-search-clear {
    color: #475569;
    background: #f8fafc;
}

.dashboard-search-clear:hover {
    color: var(--text);
    border-color: var(--line);
}

.dashboard-search-submit {
    color: #111111;
    background: var(--accent);
    border-color: rgba(250, 204, 21, 0.55);
}

.dashboard-search-clear .dashboard-icon,
.dashboard-search-submit .dashboard-icon {
    width: 19px;
    height: 19px;
}

.dashboard-bell,
.dashboard-profile {
    border: 1px solid var(--line);
    appearance: none;
    cursor: pointer;
    font: inherit;
    background: #ffffff;
}

.dashboard-dropdown-wrap {
    position: relative;
}

.dashboard-main .dashboard-create {
    width: 100%;
    white-space: nowrap;
}

.dashboard-main .dashboard-ai-help {
    min-width: 172px;
    padding-inline: 18px;
}

.dashboard-bell {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(15, 18, 28, 0.04);
}

.dashboard-bell .dashboard-icon {
    width: 22px;
    height: 22px;
    color: var(--text);
}

.dashboard-bell [data-notification-badge] {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    color: #111111;
    font-size: 0.68rem;
    font-weight: 950;
    background: var(--accent);
    border: 2px solid #ffffff;
}

.dashboard-bell [data-notification-badge].is-zero {
    display: none;
}

.dashboard-main .dashboard-profile {
    min-width: 190px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(15, 18, 28, 0.04);
}

.dashboard-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    display: none;
    width: min(340px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(7, 9, 14, 0.2);
}

.dashboard-dropdown.is-open {
    display: grid;
    gap: 8px;
}

.dashboard-create-menu {
    width: 260px;
}

.dashboard-ai-create-menu {
    width: min(520px, calc(100vw - 36px));
    padding: 14px;
    gap: 12px;
}

.dashboard-ai-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 4px 4px 8px;
}

.dashboard-ai-head > span,
.dashboard-ai-message > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #8a5f00;
    background: #fff1ae;
}

.dashboard-ai-head strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
}

.dashboard-ai-head small,
.dashboard-ai-form small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.dashboard-ai-head-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dashboard-ai-head-actions button,
.dashboard-ai-history-head button,
.dashboard-ai-history-delete {
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 850;
}

.dashboard-ai-history-head button,
.dashboard-ai-history-delete {
    color: #9f1d1d;
}

.dashboard-ai-form small.is-error {
    color: #b42318;
}

.dashboard-ai-form small.is-success {
    color: #1f7a3b;
}

.dashboard-ai-messages {
    display: grid;
    gap: 9px;
    max-height: 290px;
    overflow-y: auto;
    padding: 4px;
}

.dashboard-ai-messages:empty {
    display: none;
}

.dashboard-ai-empty {
    display: grid;
    place-items: center;
    min-height: 132px;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    background: #fffefa;
}

.dashboard-ai-empty[hidden] {
    display: none;
}

.dashboard-ai-empty strong {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-ai-empty p {
    max-width: 330px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.dashboard-ai-history {
    display: grid;
    gap: 9px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fffefa;
}

.dashboard-ai-history[hidden] {
    display: none;
}

.dashboard-ai-history-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.dashboard-ai-history-head strong {
    color: var(--text);
    font-size: 0.88rem;
}

.dashboard-ai-history-list {
    display: grid;
    gap: 7px;
    max-height: 180px;
    overflow-y: auto;
}

.dashboard-ai-history-list > p {
    margin: 0;
    padding: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.dashboard-ai-history-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.dashboard-ai-history-open {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0;
    text-align: left;
    color: var(--text);
    border: 0;
    background: transparent;
}

.dashboard-ai-history-open strong,
.dashboard-ai-history-open small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-ai-history-open strong {
    font-size: 0.84rem;
}

.dashboard-ai-history-open small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.dashboard-ai-message {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.dashboard-ai-message.is-user {
    grid-template-columns: 1fr;
    justify-items: end;
}

.dashboard-ai-message p {
    margin: 0;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-ai-message.is-user p {
    color: #111111;
    background: #ffe58a;
    border-color: rgba(250, 204, 21, 0.48);
}

.dashboard-ai-confirm {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.dashboard-ai-confirm ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.dashboard-ai-confirm-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-dropdown .dashboard-ai-confirm-actions button {
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.dashboard-ai-form {
    display: grid;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-ai-composer {
    display: grid;
    grid-template-columns: 1fr 42px 42px;
    align-items: end;
    gap: 7px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 7px;
    background: #fffefa;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.dashboard-ai-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 128px;
    resize: none;
    border: 0;
    outline: 0;
    padding: 10px 8px;
    color: var(--text);
    font: inherit;
    line-height: 1.35;
    background: transparent;
}

.dashboard-dropdown .dashboard-ai-composer button {
    justify-content: center;
}

.dashboard-dropdown .dashboard-ai-voice,
.dashboard-dropdown .dashboard-ai-send {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    color: #111827;
    border: 1px solid var(--line);
    background: #ffffff;
}

.dashboard-dropdown .dashboard-ai-send {
    color: #111111;
    border-color: #f5c400;
    background: #ffc400;
}

.dashboard-dropdown .dashboard-ai-voice .dashboard-icon,
.dashboard-dropdown .dashboard-ai-send .dashboard-icon {
    width: 21px;
    height: 21px;
    color: currentColor;
}

.dashboard-dropdown .dashboard-ai-voice.is-listening {
    color: #111111;
    background: #ffe58a;
}

.dashboard-dropdown .dashboard-ai-voice:disabled,
.dashboard-dropdown .dashboard-ai-send:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .dashboard-ai-head {
        grid-template-columns: auto 1fr;
    }

    .dashboard-ai-head-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

.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;
}

.dashboard-dropdown button,
.dashboard-dropdown form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 11px;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    text-align: left;
    background: transparent;
}

.dashboard-dropdown button:hover,
.dashboard-dropdown form button:hover {
    background: #fff6c7;
}

.dashboard-dropdown .dashboard-icon {
    width: 18px;
    height: 18px;
    color: #9a6b00;
}

.dashboard-dropdown-head,
.dashboard-dropdown-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 8px;
}

.dashboard-dropdown-head strong {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-dropdown-head small {
    color: #9a6b00;
    font-weight: 850;
}

.dashboard-notification-list {
    display: grid;
    gap: 7px;
    max-height: 330px;
    overflow-y: auto;
    padding: 2px;
}

.dashboard-notification-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 11px;
    border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #ffffff;
}

.dashboard-notification-item[hidden],
.dashboard-notification-row[hidden] {
    display: none;
}

.dashboard-notification-item.is-unread {
    background: #fffbea;
    border-color: rgba(250, 204, 21, 0.45);
}

.dashboard-notification-item > span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #9a6b00;
    background: #fff1ae;
}

.dashboard-notification-item strong,
.dashboard-profile-menu-head strong {
    display: block;
    color: var(--text);
}

.dashboard-notification-item p {
    margin: 3px 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.dashboard-notification-item small,
.dashboard-profile-menu-head small,
.dashboard-profile-menu-head em {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

.dashboard-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.dashboard-notification-actions button,
.dashboard-notification-filters button {
    width: auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #ffffff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-notification-actions button:hover,
.dashboard-notification-filters button:hover,
.dashboard-notification-filters button.is-active {
    border-color: rgba(250, 204, 21, 0.7);
    background: #fff8d2;
}

.dashboard-notification-actions button.is-danger {
    color: #991b1b;
    border-color: rgba(153, 27, 27, 0.18);
    background: #fff7f7;
}

.dashboard-notifications-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
}

.dashboard-notifications-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-notifications-toolbar h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.dashboard-notifications-toolbar p {
    margin: 0;
    color: var(--muted);
}

.dashboard-notification-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-all-notifications-list {
    display: grid;
    gap: 10px;
}

.dashboard-notification-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.dashboard-notification-row.is-unread {
    border-color: rgba(250, 204, 21, 0.55);
    background: #fffdf1;
}

.dashboard-notification-row > span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #9a6b00;
    background: #fff1ae;
}

.dashboard-notification-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-notification-row-head strong {
    color: var(--text);
}

.dashboard-notification-row-head small,
.dashboard-notification-row p {
    color: var(--muted);
}

.dashboard-notification-row p {
    margin: 5px 0 0;
}

.dashboard-dropdown-empty {
    display: grid;
    place-items: center;
    min-height: 96px;
    margin: 2px;
    border-radius: 13px;
    color: var(--muted);
    border: 1px dashed rgba(15, 23, 42, 0.16);
    background: #fffefa;
}

.dashboard-dropdown-empty[hidden],
.dashboard-empty-state[hidden] {
    display: none !important;
}

.dashboard-dropdown-actions {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-dropdown-actions button {
    justify-content: center;
}

.dashboard-notification-menu .dashboard-dropdown-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-notification-menu .dashboard-dropdown-actions button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.84rem;
    line-height: 1.15;
}

.dashboard-notification-menu .dashboard-notification-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.dashboard-notification-menu .dashboard-notification-actions button {
    justify-content: center;
    min-height: 32px;
    width: 100%;
}

.dashboard-profile-menu {
    width: 286px;
}

.dashboard-profile-menu-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    padding: 10px 9px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-profile-menu-head > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #111111;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

@media (max-width: 1120px) {
    .dashboard-main .dashboard-topbar {
        grid-template-columns: minmax(280px, 1fr) auto auto;
    }

    .dashboard-profile-wrap {
        grid-column: span 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .dashboard-main .dashboard-topbar {
        grid-template-columns: 1fr;
    }

    .dashboard-command small[data-dashboard-search-status] {
        min-width: 0;
        text-align: left;
    }

    .dashboard-main .dashboard-create,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        width: 100%;
        justify-content: center;
    }

    .dashboard-time-control {
        grid-template-columns: 1fr;
    }

    .dashboard-profile-wrap {
        grid-column: auto;
        justify-self: stretch;
    }

    .dashboard-dropdown {
        left: 0;
        right: auto;
        width: min(100%, calc(100vw - 36px));
    }

}

/* Final responsive safety layer for public/mobile use. */
:root {
    --dashboard-sidebar-width: 286px;
}

html,
body {
    overflow-x: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

.site-main,
.dashboard-main,
.dashboard-content-panel,
.dashboard-panel,
.dashboard-work-form,
.dashboard-table-wrap {
    min-width: 0;
}

.dashboard-page {
    background: linear-gradient(
        90deg,
        #0b0d0f 0 var(--dashboard-sidebar-width),
        #f7f8fa var(--dashboard-sidebar-width) 100%
    );
}

.dashboard-app-shell {
    min-height: 100dvh;
    background: linear-gradient(
        90deg,
        #0b0d0f 0 var(--dashboard-sidebar-width),
        #f7f8fa var(--dashboard-sidebar-width) 100%
    );
}

.dashboard-sidebar {
    min-height: 100dvh;
    height: 100dvh;
}

@media (max-width: 1200px) and (min-width: 981px) {
    :root {
        --dashboard-sidebar-width: 240px;
    }
}

@media (max-width: 980px) {
    :root {
        --dashboard-sidebar-width: 100%;
    }

    .dashboard-page,
    .dashboard-app-shell {
        background: #f7f8fa;
    }

    .dashboard-app-shell {
        display: block;
        min-width: 0;
    }

    .dashboard-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 18px;
        overflow: visible;
    }

    .dashboard-brand {
        margin-bottom: 14px;
    }

    .dashboard-sidebar-footer {
        margin-top: 14px;
    }

    .dashboard-main {
        width: 100%;
        padding: 18px;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dashboard-dropdown-wrap,
    .dashboard-main .dashboard-create,
    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        width: 100%;
        min-width: 0;
    }

    .dashboard-bell,
    .dashboard-main .dashboard-profile,
    .dashboard-main .dashboard-create,
    .dashboard-main .dashboard-ai-help {
        justify-content: center;
    }

    .dashboard-dropdown {
        left: 0;
        right: auto;
        width: min(100%, calc(100vw - 36px));
        max-width: calc(100vw - 36px);
    }

    .dashboard-ai-create-menu {
        width: min(100%, calc(100vw - 36px));
    }

    .dashboard-account-grid,
    .dashboard-form-grid,
    .dashboard-card-grid,
    .dashboard-panel-grid,
    .info-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header .site-container,
    .hero-section .home-container,
    .site-container,
    .home-container {
        width: 100%;
        padding-inline: 16px;
    }

    .site-header-inner {
        min-width: 0;
    }

    .brand-mark {
        max-width: 100%;
    }

    .brand-copy strong {
        font-size: 0.95rem;
    }

    .brand-copy small {
        font-size: 0.68rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .header-actions .button {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }

    .header-public-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
    }

    .header-public-nav a {
        justify-content: center;
        width: 100%;
        min-height: 38px;
    }

    .header-command {
        min-width: 0;
        padding-inline: 12px;
    }

    .hero-layout {
        gap: 26px;
        padding: 42px 0 34px;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 12vw, 3.25rem);
        line-height: 1;
        letter-spacing: 0;
    }

    .hero-lede {
        margin-top: 18px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-media-frame {
        padding: 10px;
        border-radius: 22px;
    }

    .hero-video-shell {
        min-height: 220px;
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .hero-video-sound-toggle {
        right: 12px;
        bottom: 12px;
        min-height: 38px;
        padding-inline: 11px;
        font-size: 0.8rem;
    }

    .features-section,
    .audience-section,
    .cta-section,
    .steps-section {
        padding-block: 30px;
    }

    .feature-grid,
    .audience-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 14px;
    }

    .feature-card,
    .audience-card,
    .info-card {
        min-height: auto;
        padding: 18px;
    }

    .feature-visual {
        height: 128px;
    }

    .step-card {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .step-icon {
        display: none;
    }

    .cta-banner {
        padding: 22px;
        border-radius: 20px;
    }

    .cta-banner .button {
        width: 100%;
    }

    .site-footer {
        padding: 36px 0 24px;
    }

    .dashboard-sidebar {
        padding: 16px;
    }

    .dashboard-nav {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dashboard-nav-item {
        min-height: 42px;
    }

    .dashboard-subnav {
        padding-left: 12px;
    }

    .dashboard-main {
        padding: 14px;
    }

    .dashboard-command {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        min-height: auto;
        padding: 10px;
    }

    .dashboard-search-clear {
        display: none;
    }

    .dashboard-search-submit {
        width: 40px;
        height: 40px;
    }

    .dashboard-command input {
        font-size: 0.92rem;
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel,
    .dashboard-account-card,
    .dashboard-help-intro,
    .dashboard-help-topic,
    .dashboard-table-wrap {
        border-radius: 16px;
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2,
    .info-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.04;
        letter-spacing: 0;
    }

    .dashboard-metric-card {
        min-height: auto;
        padding: 18px;
    }

    .dashboard-time-control {
        grid-template-columns: 1fr;
    }

    .dashboard-field input,
    .dashboard-field select,
    .dashboard-field textarea,
    .field input {
        min-height: 48px;
        padding: 12px;
        font-size: 1rem;
    }

    .dashboard-table-wrap {
        margin-inline: -2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 680px;
    }

    .dashboard-ai-composer {
        grid-template-columns: 1fr 40px 40px;
    }

    .dashboard-notification-menu .dashboard-dropdown-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-notifications-toolbar,
    .dashboard-notification-row-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-section,
    .search-section,
    .info-section {
        min-height: auto;
        padding: 42px 0;
    }

    .auth-card,
    .search-panel {
        width: min(100%, calc(100vw - 28px));
        min-height: auto;
        padding: 34px 20px;
        border-radius: 20px;
    }

    .auth-card p,
    .search-panel p {
        margin-bottom: 28px;
    }
}

@media (max-width: 420px) {
    .dashboard-sidebar,
    .dashboard-main {
        padding-inline: 12px;
    }

    .dashboard-brand .brand-icon,
    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-profile,
    .dashboard-user-card,
    .dashboard-help-card {
        gap: 9px;
    }

    .dashboard-profile strong,
    .dashboard-user-card strong,
    .dashboard-help-card strong {
        font-size: 0.92rem;
    }

    .dashboard-profile small,
    .dashboard-user-card small,
    .dashboard-help-card small {
        font-size: 0.74rem;
    }

    .dashboard-dropdown {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .dashboard-ai-create-menu {
        width: calc(100vw - 24px);
    }

    .dashboard-ai-head {
        grid-template-columns: auto 1fr;
    }

    .dashboard-ai-head-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .dashboard-ai-head-actions button {
        flex: 1;
    }

    .hero-video-shell {
        min-height: 190px;
    }

    .button-large {
        min-height: 52px;
        padding-inline: 20px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 0 14px;
    }

    .site-header .site-container,
    .hero-section .home-container,
    .site-container,
    .home-container {
        padding-inline: 22px;
    }

    .site-header-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        min-height: auto;
    }

    .brand-mark {
        width: 100%;
        align-items: center;
    }

    .brand-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .brand-copy strong {
        font-size: 1.08rem;
        line-height: 1.05;
    }

    .brand-copy small {
        font-size: 0.74rem;
        letter-spacing: 0.05em;
    }

    .header-command {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 6px 9px 6px 16px;
        border-radius: 999px;
        gap: 10px;
    }

    .header-command-icon {
        display: inline-grid;
        place-items: center;
    }

    .header-command input {
        min-width: 0;
        font-size: 1rem;
        text-overflow: ellipsis;
    }

    .header-command-submit {
        min-width: 92px;
        min-height: 46px;
        padding: 0 16px;
        font-size: 0.92rem;
    }

    .header-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 12px;
    }

    .header-actions .button {
        min-height: 58px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .hero-section {
        background:
            radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.1), transparent 34%),
            linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
    }

    .hero-layout {
        padding: 30px 0 38px;
        gap: 26px;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 11.5vw, 4rem);
        line-height: 1.02;
        letter-spacing: 0;
    }

    .hero-lede {
        max-width: 100%;
        margin-top: 22px;
        font-size: 1.08rem;
        line-height: 1.72;
    }

    .hero-actions {
        margin-top: 28px;
    }

    .hero-actions .button {
        width: auto;
        min-width: 190px;
        border-radius: 18px;
    }

    .hero-media-frame {
        margin-top: 0;
        padding: 10px;
        border-radius: 24px;
    }

    .hero-video-shell {
        min-height: 260px;
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .feature-grid,
    .audience-grid,
    .steps-grid {
        gap: 18px;
    }

    .feature-card,
    .audience-card {
        border-radius: 18px;
    }
}

@media (max-width: 380px) {
    .site-header .site-container,
    .hero-section .home-container,
    .site-container,
    .home-container {
        padding-inline: 16px;
    }

    .header-command {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        padding-left: 12px;
    }

    .header-command-submit {
        min-width: 78px;
        padding: 0 12px;
    }

    .hero-copy h1 {
        font-size: clamp(2.65rem, 12vw, 3.35rem);
    }
}

/* Device-specific polish: mobile should be compact, not merely stacked. */
@media (max-width: 720px) {
    .site-header {
        padding: 12px 0;
    }

    .site-header .site-container {
        padding-inline: 16px;
    }

    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        align-items: center;
        gap: 12px 12px;
        min-height: auto;
    }

    .brand-mark {
        grid-area: brand;
        width: auto;
        min-width: 0;
        justify-self: start;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .brand-copy strong {
        font-size: 1rem;
        line-height: 1.05;
    }

    .brand-copy small {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .header-actions {
        grid-area: actions;
        display: flex;
        width: auto;
        gap: 8px;
        justify-content: flex-end;
        justify-self: end;
    }

    .header-actions .button {
        width: auto;
        min-width: 0;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .header-public-nav {
        grid-area: nav;
        display: flex;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        justify-content: space-between;
        padding: 2px 0 0;
        scrollbar-width: none;
    }

    .header-public-nav::-webkit-scrollbar {
        display: none;
    }

    .header-public-nav a {
        flex: 1 0 auto;
        justify-content: center;
        min-height: 38px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 0.82rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .header-command {
        grid-area: nav;
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        width: 100%;
        min-height: 52px;
        padding: 6px 8px 6px 14px;
    }

    .header-command input {
        font-size: 0.94rem;
    }

    .header-command-submit {
        min-width: 82px;
        min-height: 40px;
        padding: 0 13px;
        font-size: 0.84rem;
    }

    .hero-section .home-container,
    .home-container,
    .site-container {
        width: 100%;
        padding-inline: 22px;
    }

    .hero-layout {
        padding: 34px 0 36px;
        gap: 24px;
    }

    .hero-copy h1 {
        width: min(100%, 520px);
        font-size: clamp(2.35rem, 8.8vw, 3.15rem);
        line-height: 1.07;
        letter-spacing: 0;
    }

    .hero-lede {
        width: min(100%, 500px);
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.62;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-actions .button {
        width: auto;
        min-width: 168px;
        min-height: 54px;
        border-radius: 16px;
    }

    .hero-media-frame {
        padding: 9px;
        border-radius: 22px;
    }

    .hero-video-shell {
        min-height: 230px;
        aspect-ratio: 4 / 3;
        border-radius: 17px;
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .section-heading h2 {
        font-size: clamp(1.65rem, 7.5vw, 2.3rem);
        line-height: 1.1;
    }

    .section-heading p {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .feature-grid,
    .audience-grid,
    .steps-grid {
        gap: 15px;
    }

    .feature-card,
    .audience-card,
    .info-card {
        padding: 18px;
        border-radius: 17px;
    }

    .feature-card h2,
    .audience-card h3,
    .step-card h3 {
        font-size: 1rem;
    }

    .feature-card p,
    .audience-card p,
    .step-card p {
        font-size: 0.94rem;
        line-height: 1.52;
    }

    .feature-visual {
        height: 118px;
    }

    .steps-grid::before {
        display: none;
    }

    .step-card {
        min-height: auto;
        padding: 16px;
        grid-template-columns: auto 1fr;
    }

    .step-number {
        width: 32px;
        height: 32px;
    }

    .step-icon {
        display: none;
    }

    .cta-banner {
        padding: 22px;
        border-radius: 20px;
    }

    .cta-icon {
        width: 58px;
        height: 58px;
        font-size: 1.35rem;
    }

    .cta-banner h2 {
        font-size: clamp(1.7rem, 8vw, 2.25rem);
    }

    .site-footer {
        padding: 34px 0 22px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-brand p,
    .footer-column p,
    .footer-column a {
        font-size: 0.95rem;
    }
}

@media (max-width: 520px) {
    .dashboard-sidebar {
        max-height: 52vh;
        overflow-y: auto;
    }

    .dashboard-brand {
        gap: 11px;
        margin-bottom: 12px;
    }

    .dashboard-nav-item,
    .dashboard-subitem,
    .dashboard-logout {
        font-size: 0.88rem;
    }

    .dashboard-subnav {
        padding-left: 9px;
    }

    .dashboard-main {
        padding: 14px 12px 24px;
    }

    .dashboard-main .dashboard-topbar {
        gap: 9px;
    }

    .dashboard-command {
        grid-template-columns: 30px minmax(0, 1fr) 40px;
        padding: 8px 9px;
        border-radius: 15px;
    }

    .dashboard-command > span {
        width: 30px;
        height: 30px;
    }

    .dashboard-command input {
        font-size: 0.9rem;
    }

    .dashboard-search-submit {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .dashboard-create,
    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        min-height: 48px;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel,
    .dashboard-metric-card,
    .dashboard-mini-card,
    .dashboard-template-card {
        padding: 16px;
        border-radius: 16px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
        line-height: 1.08;
    }

    .dashboard-section-block h2,
    .dashboard-panel h2,
    .dashboard-form-intro h3,
    .dashboard-mini-card h3,
    .dashboard-template-card h3 {
        font-size: 1.05rem;
    }

    .dashboard-hero-card p,
    .dashboard-panel-heading p,
    .dashboard-panel > p,
    .dashboard-form-intro p,
    .dashboard-mini-card p,
    .dashboard-template-card p {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .dashboard-metric-grid,
    .dashboard-panel-grid,
    .dashboard-card-grid,
    .dashboard-account-grid,
    .dashboard-form-grid {
        gap: 12px;
    }

    .dashboard-metric-card strong {
        font-size: 1.75rem;
    }

    .dashboard-empty-state {
        min-height: 118px;
        padding: 16px;
    }

    .dashboard-table {
        min-width: 620px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px;
        font-size: 0.88rem;
    }

    .dashboard-dropdown {
        top: calc(100% + 8px);
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .dashboard-ai-create-menu {
        width: calc(100vw - 24px);
        padding: 12px;
    }

    .dashboard-ai-messages {
        max-height: 250px;
    }

    .dashboard-ai-composer {
        grid-template-columns: minmax(0, 1fr) 40px 40px;
        border-radius: 16px;
    }

    .dashboard-ai-composer textarea {
        font-size: 0.95rem;
    }

    .dashboard-notification-row,
    .dashboard-notification-item {
        grid-template-columns: 1fr;
    }

    .dashboard-notification-row > span,
    .dashboard-notification-item > span {
        display: none;
    }

    .auth-card,
    .search-panel {
        padding: 30px 18px;
    }

    .auth-card h1,
    .search-panel h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
    }

    .field-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 390px) {
    .site-header .site-container,
    .hero-section .home-container,
    .home-container,
    .site-container {
        padding-inline: 14px;
    }

    .brand-copy small {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .header-public-nav a {
        min-height: 36px;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.15rem, 10vw, 2.8rem);
    }

    .hero-lede {
        font-size: 0.96rem;
    }
}

/* Final mobile dashboard polish: compact navigation, readable cards, and clean controls. */
@media (max-width: 980px) {
    .dashboard-app-shell {
        display: block;
    }

    .dashboard-sidebar {
        position: relative;
        display: grid;
        gap: 12px;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 18px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background:
            radial-gradient(circle at 16px 0, rgba(250, 204, 21, 0.12), transparent 150px),
            #090b0e;
    }

    .dashboard-brand {
        margin: 0;
        padding: 0 0 14px;
    }

    .dashboard-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
    }

    .dashboard-nav > .dashboard-nav-item,
    .dashboard-nav-group {
        min-width: 0;
    }

    .dashboard-nav-item {
        min-height: 42px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 0.84rem;
    }

    .dashboard-nav-item b {
        font-size: 0.86rem;
    }

    .dashboard-subnav {
        gap: 4px;
        padding: 6px 0 0;
    }

    .dashboard-subitem {
        min-height: 32px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 0.76rem;
        line-height: 1.2;
    }

    .dashboard-subitem .dashboard-icon {
        width: 15px;
        height: 15px;
    }

    .dashboard-sidebar-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 10px;
        margin: 0;
        padding-top: 12px;
    }

    .dashboard-help-card {
        min-height: 52px;
        padding: 10px;
        border-radius: 14px;
    }

    .dashboard-help-card > span {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dashboard-sidebar-footer form {
        display: flex;
    }

    .dashboard-logout {
        justify-content: center;
        min-height: 52px;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.045);
    }

    .dashboard-main {
        width: 100%;
        padding: 18px;
    }

    .dashboard-main .dashboard-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px 72px;
        gap: 10px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .dashboard-command {
        grid-column: 1 / -1;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        min-height: 54px;
        padding: 8px 10px;
        border-radius: 16px;
    }

    .dashboard-command > span {
        width: 34px;
        height: 34px;
    }

    .dashboard-search-clear {
        display: none;
    }

    .dashboard-search-submit {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .dashboard-ai-wrap {
        grid-column: 1;
    }

    .dashboard-notification-wrap {
        grid-column: 2;
    }

    .dashboard-profile-wrap {
        grid-column: 3;
        justify-self: stretch;
    }

    .dashboard-dropdown-wrap,
    .dashboard-main .dashboard-create,
    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        min-width: 0;
        width: 100%;
    }

    .dashboard-main .dashboard-ai-help {
        min-height: 52px;
        padding: 0 13px;
        border-radius: 15px;
        white-space: nowrap;
    }

    .dashboard-main .dashboard-ai-help span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-bell {
        min-height: 52px;
        border-radius: 15px;
    }

    .dashboard-main .dashboard-profile {
        justify-content: center;
        min-height: 52px;
        padding: 6px;
        border-radius: 15px;
    }

    .dashboard-main .dashboard-profile > div {
        display: none;
    }

    .dashboard-dropdown {
        position: fixed;
        top: 84px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 104px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-ai-create-menu,
    .dashboard-notification-menu,
    .dashboard-profile-menu {
        width: auto;
    }

    .dashboard-content-panel.is-active {
        display: block;
    }

    .dashboard-hero-card,
    .dashboard-suggestion,
    .dashboard-work-form,
    .dashboard-panel,
    .dashboard-metric-card,
    .dashboard-mini-card,
    .dashboard-template-card,
    .dashboard-table-wrap {
        border-radius: 16px;
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: 2.2rem;
        line-height: 1.04;
    }

    .dashboard-section-block {
        margin-top: 16px;
    }

    .dashboard-section-block h2,
    .dashboard-panel h2,
    .dashboard-form-intro h3,
    .dashboard-mini-card h3,
    .dashboard-template-card h3 {
        font-size: 1.08rem;
        line-height: 1.25;
    }

    .dashboard-hero-card p,
    .dashboard-section-block > p,
    .dashboard-panel > p,
    .dashboard-panel-heading p,
    .dashboard-form-intro p,
    .dashboard-mini-card p,
    .dashboard-template-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .dashboard-metric-card {
        min-height: 132px;
        padding: 14px;
        gap: 7px;
    }

    .dashboard-metric-card > span,
    .dashboard-suggestion > span {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dashboard-metric-card h3 {
        margin: 0;
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .dashboard-metric-card strong {
        font-size: 1.65rem;
    }

    .dashboard-metric-card p {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .dashboard-panel-grid,
    .dashboard-card-grid,
    .dashboard-account-grid,
    .dashboard-form-grid,
    .info-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-panel {
        min-height: auto;
    }

    .dashboard-list-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .dashboard-list-row small {
        grid-column: 2;
        white-space: normal;
    }

    .dashboard-time-control {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-field input,
    .dashboard-field select,
    .dashboard-field textarea {
        min-height: 48px;
        padding: 12px;
        font-size: 0.95rem;
    }

    .dashboard-form-grid > .button,
    .dashboard-work-form .button-primary {
        width: 100%;
    }

    .dashboard-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 620px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px;
        font-size: 0.86rem;
        line-height: 1.35;
        vertical-align: top;
    }
}

@media (max-width: 520px) {
    .dashboard-sidebar {
        max-height: none;
        padding: 14px 12px;
    }

    .dashboard-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .dashboard-nav-item {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 7px;
        min-height: 40px;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .dashboard-nav-item .dashboard-icon {
        width: 17px;
        height: 17px;
    }

    .dashboard-subitem {
        grid-template-columns: 15px minmax(0, 1fr);
        gap: 6px;
        min-height: 30px;
        font-size: 0.72rem;
    }

    .dashboard-sidebar-footer {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        padding: 14px 12px 24px;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) 50px 58px;
        gap: 8px;
    }

    .dashboard-command {
        grid-template-columns: 30px minmax(0, 1fr) 40px;
        gap: 8px;
        min-height: 50px;
        padding: 7px 8px;
    }

    .dashboard-command > span {
        width: 30px;
        height: 30px;
    }

    .dashboard-command input {
        font-size: 0.9rem;
    }

    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        min-height: 50px;
        border-radius: 14px;
    }

    .dashboard-main .dashboard-ai-help {
        padding: 0 10px;
        font-size: 0.86rem;
    }

    .dashboard-main .dashboard-profile > span {
        width: 38px;
        height: 38px;
        font-size: 0.86rem;
    }

    .dashboard-dropdown {
        top: 76px;
        left: 10px;
        right: 10px;
        max-height: calc(100dvh - 92px);
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel {
        padding: 16px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: 1.95rem;
    }

    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-metric-card {
        min-height: 122px;
        padding: 12px;
    }

    .dashboard-empty-state {
        min-height: 112px;
        padding: 15px;
    }
}

@media (max-width: 370px) {
    .dashboard-nav {
        grid-template-columns: 1fr;
    }

    .dashboard-metric-grid,
    .dashboard-time-control {
        grid-template-columns: 1fr;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .dashboard-profile-wrap {
        grid-column: 1 / -1;
    }

    .dashboard-main .dashboard-profile > div {
        display: block;
        min-width: 0;
    }
}

/* Phone dashboard layout: keep navigation as a compact left rail instead of stacking it above content. */
@media (max-width: 760px) {
    body.dashboard-page {
        background: #f6f7f9;
    }

    .dashboard-app-shell {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: start;
        min-height: 100dvh;
        background:
            linear-gradient(90deg, #090b0e 0 108px, transparent 108px),
            #f6f7f9;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        flex-direction: column;
        width: 108px;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: 10px 8px;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 0;
        background:
            radial-gradient(circle at 20px 0, rgba(250, 204, 21, 0.16), transparent 150px),
            #090b0e;
    }

    .dashboard-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .dashboard-brand {
        display: grid;
        justify-items: center;
        gap: 7px;
        margin: 0 0 8px;
        padding: 0 0 10px;
        text-align: center;
    }

    .dashboard-brand .brand-icon {
        width: 44px;
        height: 44px;
    }

    .dashboard-brand .brand-copy strong {
        display: block;
        max-width: 86px;
        font-size: 0.76rem;
        line-height: 1.06;
    }

    .dashboard-brand .brand-copy small {
        display: none;
    }

    .dashboard-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 0;
    }

    .dashboard-nav-item {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 4px;
        min-height: 52px;
        padding: 7px 4px;
        border-radius: 14px;
        font-size: 0.66rem;
        line-height: 1.08;
        text-align: center;
    }

    .dashboard-nav-item .dashboard-icon {
        width: 20px;
        height: 20px;
    }

    .dashboard-nav-item > span {
        display: -webkit-box;
        min-width: 0;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
    }

    .dashboard-nav-item b {
        position: absolute;
        top: 5px;
        right: 6px;
        font-size: 0.7rem;
    }

    .dashboard-nav-item.is-active,
    .dashboard-subitem.is-active {
        box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.72);
    }

    .dashboard-subnav {
        gap: 4px;
        padding: 4px 0 6px;
    }

    .dashboard-subitem {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 3px;
        min-height: 42px;
        padding: 6px 3px;
        border-radius: 12px;
        font-size: 0.59rem;
        line-height: 1.06;
        text-align: center;
    }

    .dashboard-subitem .dashboard-icon {
        width: 15px;
        height: 15px;
    }

    .dashboard-sidebar-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: auto;
        padding-top: 9px;
    }

    .dashboard-help-card {
        display: grid;
        justify-items: center;
        gap: 5px;
        min-height: 56px;
        padding: 7px 4px;
        text-align: center;
    }

    .dashboard-help-card > span {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .dashboard-help-card strong {
        font-size: 0.68rem;
        line-height: 1.08;
    }

    .dashboard-help-card small {
        display: none;
    }

    .dashboard-sidebar-footer form {
        display: block;
    }

    .dashboard-logout {
        display: grid;
        justify-items: center;
        gap: 4px;
        min-height: 50px;
        padding: 6px 4px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        font-size: 0.66rem;
        line-height: 1.08;
        text-align: center;
        background: rgba(255, 255, 255, 0.045);
    }

    .dashboard-logout .dashboard-icon {
        width: 18px;
        height: 18px;
    }

    .dashboard-main {
        width: 100%;
        min-width: 0;
        padding: 10px 9px 26px;
    }

    .dashboard-main .dashboard-topbar {
        position: sticky;
        top: 0;
        z-index: 25;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        gap: 8px;
        align-items: stretch;
        margin: 0 0 12px;
        padding: 8px 0;
        background: rgba(246, 247, 249, 0.96);
        backdrop-filter: blur(14px);
    }

    .dashboard-command {
        grid-column: 1 / -1;
        grid-template-columns: 28px minmax(0, 1fr) 38px;
        gap: 7px;
        min-height: 48px;
        padding: 6px;
        border-radius: 15px;
    }

    .dashboard-command > span {
        width: 28px;
        height: 28px;
    }

    .dashboard-command input {
        font-size: 0.83rem;
    }

    .dashboard-search-submit {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dashboard-ai-wrap {
        grid-column: 1;
    }

    .dashboard-notification-wrap {
        grid-column: 2;
    }

    .dashboard-profile-wrap {
        grid-column: 3;
        justify-self: stretch;
    }

    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        min-height: 44px;
        border-radius: 14px;
    }

    .dashboard-main .dashboard-ai-help {
        gap: 6px;
        padding: 0 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .dashboard-main .dashboard-ai-help .dashboard-icon {
        width: 18px;
        height: 18px;
    }

    .dashboard-main .dashboard-ai-help span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-bell {
        padding: 0;
    }

    .dashboard-main .dashboard-profile {
        justify-content: center;
        padding: 4px;
    }

    .dashboard-main .dashboard-profile > span {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .dashboard-main .dashboard-profile > div {
        display: none;
    }

    .dashboard-dropdown {
        position: fixed;
        top: 74px;
        left: 116px;
        right: 9px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 86px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-ai-create-menu,
    .dashboard-notification-menu,
    .dashboard-profile-menu {
        width: auto;
    }

    .dashboard-hero-card,
    .dashboard-suggestion,
    .dashboard-work-form,
    .dashboard-panel,
    .dashboard-metric-card,
    .dashboard-mini-card,
    .dashboard-template-card,
    .dashboard-table-wrap {
        border-radius: 15px;
    }

    .dashboard-hero-card,
    .dashboard-work-form,
    .dashboard-panel {
        padding: 14px;
    }

    .dashboard-panel-heading {
        margin-bottom: 14px;
    }

    .dashboard-eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        margin-top: 7px;
        font-size: 1.72rem;
        line-height: 1.05;
    }

    .dashboard-section-block h2,
    .dashboard-panel h2,
    .dashboard-form-intro h3,
    .dashboard-mini-card h3,
    .dashboard-template-card h3 {
        font-size: 1rem;
        line-height: 1.24;
    }

    .dashboard-hero-card p,
    .dashboard-section-block > p,
    .dashboard-panel > p,
    .dashboard-panel-heading p,
    .dashboard-form-intro p,
    .dashboard-mini-card p,
    .dashboard-template-card p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .dashboard-metric-grid {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 12px;
    }

    .dashboard-metric-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 4px 10px;
        min-height: 0;
        padding: 12px;
    }

    .dashboard-metric-card > span {
        grid-row: 1 / span 3;
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .dashboard-metric-card h3 {
        margin: 0;
        font-size: 0.84rem;
    }

    .dashboard-metric-card strong {
        font-size: 1.5rem;
    }

    .dashboard-metric-card p {
        font-size: 0.8rem;
    }

    .dashboard-panel-grid,
    .dashboard-card-grid,
    .dashboard-account-grid,
    .dashboard-form-grid,
    .info-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-panel {
        min-height: auto;
    }

    .dashboard-time-control {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .dashboard-field input,
    .dashboard-field select,
    .dashboard-field textarea {
        min-height: 46px;
        padding: 11px;
        font-size: 0.9rem;
    }

    .dashboard-form-grid > .button,
    .dashboard-work-form .button-primary {
        width: 100%;
        min-height: 46px;
    }

    .dashboard-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 560px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 11px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .dashboard-empty-state {
        min-height: 104px;
        padding: 14px;
        font-size: 0.86rem;
    }
}

@media (max-width: 390px) {
    .dashboard-app-shell {
        grid-template-columns: 96px minmax(0, 1fr);
        background:
            linear-gradient(90deg, #090b0e 0 96px, transparent 96px),
            #f6f7f9;
    }

    .dashboard-sidebar {
        width: 96px;
        padding: 9px 6px;
    }

    .dashboard-brand .brand-icon {
        width: 40px;
        height: 40px;
    }

    .dashboard-brand .brand-copy strong {
        max-width: 76px;
        font-size: 0.7rem;
    }

    .dashboard-nav-item {
        min-height: 49px;
        font-size: 0.61rem;
    }

    .dashboard-subitem {
        min-height: 39px;
        font-size: 0.55rem;
    }

    .dashboard-main {
        padding-inline: 8px;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) 42px 42px;
        gap: 7px;
    }

    .dashboard-main .dashboard-ai-help {
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .dashboard-dropdown {
        left: 104px;
        right: 8px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: 1.58rem;
    }
}

@media (max-width: 340px) {
    .dashboard-app-shell {
        grid-template-columns: 82px minmax(0, 1fr);
        background:
            linear-gradient(90deg, #090b0e 0 82px, transparent 82px),
            #f6f7f9;
    }

    .dashboard-sidebar {
        width: 82px;
    }

    .dashboard-brand .brand-copy {
        display: none;
    }

    .dashboard-nav-item,
    .dashboard-subitem,
    .dashboard-help-card strong,
    .dashboard-logout {
        font-size: 0;
    }

    .dashboard-nav-item,
    .dashboard-subitem {
        min-height: 42px;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .dashboard-profile-wrap {
        grid-column: 1 / -1;
    }

    .dashboard-main .dashboard-profile > div {
        display: block;
        min-width: 0;
    }

    .dashboard-dropdown {
        left: 90px;
    }

    .dashboard-time-control {
        grid-template-columns: 1fr;
    }
}

.dashboard-mobile-menu-toggle,
.dashboard-mobile-brand,
.dashboard-mobile-search-toggle,
.dashboard-mobile-sidebar-close,
.dashboard-sidebar-backdrop {
    display: none;
}

/* Final phone navigation: desktop sidebar becomes an off-canvas drawer. */
@media (max-width: 760px) {
    body.dashboard-page {
        overflow-x: hidden;
        background: #f6f7f9;
    }

    body.is-mobile-sidebar-open {
        overflow: hidden;
    }

    .dashboard-app-shell {
        display: block;
        min-height: 100dvh;
        background: #f6f7f9;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        display: flex;
        flex-direction: column;
        width: min(84vw, 316px);
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        padding: 18px;
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 0;
        background:
            radial-gradient(circle at 18px 0, rgba(250, 204, 21, 0.14), transparent 180px),
            #090b0e;
        box-shadow: 24px 0 60px rgba(7, 9, 14, 0.34);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    body.is-mobile-sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        width: 100%;
        height: 100%;
        border: 0;
        padding: 0;
        cursor: pointer;
        background: rgba(7, 9, 14, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    body.is-mobile-sidebar-open .dashboard-sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-mobile-sidebar-close {
        position: absolute;
        top: 16px;
        right: 14px;
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        color: #ffffff;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.08);
    }

    .dashboard-sidebar .dashboard-brand {
        display: flex;
        align-items: center;
        justify-items: initial;
        gap: 12px;
        margin: 0 48px 14px 0;
        padding: 0 0 15px;
        text-align: left;
    }

    .dashboard-sidebar .dashboard-brand .brand-icon {
        width: 46px;
        height: 46px;
    }

    .dashboard-sidebar .dashboard-brand .brand-copy strong {
        display: block;
        max-width: none;
        font-size: 0.94rem;
        line-height: 1.12;
    }

    .dashboard-sidebar .dashboard-brand .brand-copy small {
        display: block;
        font-size: 0.68rem;
    }

    .dashboard-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 8px 0 16px;
    }

    .dashboard-nav-item {
        position: static;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto;
        justify-items: stretch;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 0.92rem;
        line-height: 1.2;
        text-align: left;
    }

    .dashboard-nav-item .dashboard-icon {
        width: 20px;
        height: 20px;
    }

    .dashboard-nav-item > span {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        -webkit-line-clamp: initial;
    }

    .dashboard-nav-item b {
        position: static;
        font-size: 0.95rem;
    }

    .dashboard-subnav {
        gap: 3px;
        padding: 3px 0 8px 26px;
    }

    .dashboard-subitem {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        justify-items: stretch;
        align-items: center;
        gap: 9px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 0.83rem;
        line-height: 1.2;
        text-align: left;
    }

    .dashboard-subitem .dashboard-icon {
        width: 16px;
        height: 16px;
    }

    .dashboard-nav-item.is-active,
    .dashboard-subitem.is-active {
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .dashboard-sidebar-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: auto;
        padding-top: 14px;
    }

    .dashboard-help-card {
        display: flex;
        align-items: center;
        justify-items: initial;
        gap: 11px;
        min-height: 58px;
        padding: 12px;
        text-align: left;
    }

    .dashboard-help-card > span {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .dashboard-help-card strong {
        font-size: 0.95rem;
        line-height: 1.15;
    }

    .dashboard-help-card small {
        display: block;
    }

    .dashboard-logout {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: 10px;
        font-size: 0.92rem;
        line-height: 1.2;
        text-align: left;
        background: transparent;
    }

    .dashboard-logout .dashboard-icon {
        width: 20px;
        height: 20px;
    }

    .dashboard-main {
        width: 100%;
        min-width: 0;
        padding: 10px 12px 28px;
    }

    .dashboard-main .dashboard-topbar {
        position: sticky;
        top: 0;
        z-index: 50;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px 42px 44px;
        grid-template-areas:
            "menu brand search bell profile"
            "ai ai ai ai ai";
        gap: 8px;
        align-items: center;
        margin: 0 0 14px;
        padding: 8px 0 10px;
        background: rgba(246, 247, 249, 0.96);
        backdrop-filter: blur(14px);
    }

    .dashboard-mobile-menu-toggle {
        grid-area: menu;
        display: inline-grid;
        place-items: center;
        gap: 2px;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 14px;
        cursor: pointer;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 18, 28, 0.06);
    }

    .dashboard-mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #111827;
    }

    .dashboard-mobile-search-toggle {
        grid-area: search;
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 14px;
        color: var(--text);
        cursor: pointer;
        background: var(--accent);
        box-shadow: 0 12px 26px rgba(250, 204, 21, 0.18);
    }

    .dashboard-mobile-search-toggle .dashboard-icon {
        width: 20px;
        height: 20px;
        stroke-width: 2.3;
    }

    .dashboard-mobile-brand {
        grid-area: brand;
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        color: var(--text);
        text-decoration: none;
    }

    .dashboard-mobile-brand .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .dashboard-mobile-brand .brand-copy {
        min-width: 0;
    }

    .dashboard-mobile-brand .brand-copy strong {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 0.92rem;
        line-height: 1.08;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .dashboard-mobile-brand .brand-copy small {
        display: block;
        overflow: hidden;
        color: var(--muted);
        font-size: 0.62rem;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .dashboard-command {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        z-index: 75;
        display: none;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
        min-height: 54px;
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 18px 42px rgba(15, 18, 28, 0.2);
    }

    body.is-mobile-search-open .dashboard-command {
        display: grid;
    }

    .dashboard-command > span {
        display: none;
    }

    .dashboard-command input {
        min-width: 0;
        padding-left: 10px;
        font-size: 0.92rem;
    }

    .dashboard-command small[data-dashboard-search-status] {
        grid-column: 1 / -1;
        padding-left: 10px;
    }

    .dashboard-search-clear {
        display: none;
    }

    .dashboard-search-submit {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .dashboard-ai-wrap {
        grid-area: ai;
    }

    .dashboard-notification-wrap {
        grid-area: bell;
        align-self: stretch;
    }

    .dashboard-profile-wrap {
        grid-area: profile;
        align-self: stretch;
        justify-self: stretch;
    }

    .dashboard-dropdown-wrap,
    .dashboard-main .dashboard-ai-help,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        width: 100%;
        min-width: 0;
    }

    .dashboard-main .dashboard-ai-help {
        min-height: 46px;
        padding: 0 12px;
        border-radius: 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .dashboard-main .dashboard-ai-help span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        min-height: 44px;
        border-radius: 14px;
    }

    .dashboard-bell {
        padding: 0;
    }

    .dashboard-main .dashboard-profile {
        justify-content: center;
        padding: 4px;
    }

    .dashboard-main .dashboard-profile > span {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .dashboard-main .dashboard-profile > div {
        display: none;
    }

    .dashboard-dropdown {
        position: fixed;
        top: 76px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 92px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-ai-create-menu,
    .dashboard-notification-menu,
    .dashboard-profile-menu {
        width: auto;
    }

    .dashboard-hero-card,
    .dashboard-suggestion,
    .dashboard-work-form,
    .dashboard-panel {
        padding: 16px;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: 2rem;
        line-height: 1.05;
    }

    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-metric-card {
        display: grid;
        min-height: 136px;
        padding: 14px;
    }

    .dashboard-time-control {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 600px;
    }
}

@media (max-width: 430px) {
    .dashboard-main {
        padding-inline: 10px;
    }

    .dashboard-main .dashboard-topbar {
        grid-template-columns: 40px minmax(0, 1fr) 40px 40px 40px;
        gap: 7px;
    }

    .dashboard-mobile-menu-toggle,
    .dashboard-mobile-search-toggle,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        width: 40px;
        min-height: 42px;
        border-radius: 13px;
    }

    .dashboard-mobile-brand .brand-icon {
        width: 34px;
        height: 34px;
    }

    .dashboard-mobile-brand .brand-copy strong {
        font-size: 0.84rem;
    }

    .dashboard-mobile-brand .brand-copy small {
        font-size: 0.56rem;
    }

    .dashboard-main .dashboard-ai-help {
        min-height: 44px;
        font-size: 0.86rem;
    }

    .dashboard-hero-card h1,
    .dashboard-panel-heading h2 {
        font-size: 1.82rem;
    }

    .dashboard-metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .dashboard-main .dashboard-topbar {
        grid-template-columns: 38px minmax(0, 1fr) 38px 38px 38px;
    }

    .dashboard-mobile-menu-toggle,
    .dashboard-mobile-search-toggle,
    .dashboard-bell,
    .dashboard-main .dashboard-profile {
        width: 38px;
        min-height: 40px;
    }

    .dashboard-mobile-brand .brand-icon {
        display: none;
    }

    .dashboard-time-control {
        grid-template-columns: 1fr;
    }
}
