:root {
    --app-navy: #0c1d41;
    --app-blue: #1f5fe8;
    --app-blue-dark: #1547bc;
    --app-blue-soft: #eaf2ff;
    --app-purple: #7651d9;
    --app-green: #19a974;
    --app-orange: #f39b35;
    --app-pink: #d946a8;
    --app-text: #142342;
    --app-muted: #6e7b96;
    --app-border: #e5eaf3;
    --app-background: #f6f8fc;
    --app-card: #ffffff;
    --app-radius: 16px;
    --app-shadow: 0 10px 30px rgb(22 53 108 / 7%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--app-text);
    background: var(--app-background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.app-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--app-navy);
    line-height: 1.15;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--app-navy);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

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

.app-sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 22px 14px 16px;
    border-right: 1px solid var(--app-border);
    background: var(--app-card);
}

.app-brand {
    display: block;
    width: 176px;
    margin: 0 auto 26px;
}

.app-brand img {
    width: 100%;
    height: auto;
}

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

.app-nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #46536e;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.app-nav-link:hover,
.app-nav-link[aria-current="page"] {
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
}

.app-nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: currentColor;
    font-size: 1.1rem;
    line-height: 1;
}

.app-sidebar-card {
    margin-top: auto;
    padding: 16px;
    border: 1px solid #e0e8fc;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5f8ff, #eef4ff);
}

.app-sidebar-card p {
    margin-bottom: 6px;
    color: var(--app-muted);
    font-size: 0.78rem;
}

.app-sidebar-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--app-navy);
}

.app-sidebar-card a {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e2fb;
    border-radius: 9px;
    color: var(--app-blue-dark);
    background: #fff;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 18px;
    padding: 14px 34px;
    border-bottom: 1px solid rgb(229 234 243 / 90%);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(14px);
}

.app-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    color: var(--app-navy);
    background: #fff;
    font-size: 1.25rem;
}

.app-search {
    display: flex;
    max-width: 560px;
    flex: 1;
}

.app-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 16px 9px 42px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    color: var(--app-text);
    outline: none;
    background: #f7f9fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e7b96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 14px center;
}

.app-search input:focus {
    border-color: #9bb8f7;
    box-shadow: 0 0 0 3px rgb(31 95 232 / 12%);
    background-color: #fff;
}

.app-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon-button {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #61708e;
    background: transparent;
    font-size: 1.15rem;
}

.app-icon-button:hover {
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
}

.app-notification-badge {
    position: absolute;
    top: 3px;
    right: 2px;
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 99px;
    color: #fff;
    background: #e53955;
    font-size: 0.62rem;
    font-weight: 800;
}

.app-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 6px 4px 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    text-align: left;
}

.app-profile:hover {
    border-color: var(--app-border);
    background: #f7f9fd;
}

.app-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #2c75ed, #633fd0);
    font-size: 0.9rem;
    font-weight: 800;
}

.app-profile-copy {
    display: grid;
    gap: 1px;
}

.app-profile-copy strong {
    color: var(--app-navy);
    font-size: 0.82rem;
}

.app-profile-copy small {
    color: var(--app-blue);
    font-size: 0.7rem;
    font-weight: 750;
}

.app-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px 34px 48px;
}

.app-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.app-page-heading h1 {
    margin-bottom: 7px;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.app-page-heading p {
    margin-bottom: 0;
    color: var(--app-muted);
}

.app-eyebrow {
    margin-bottom: 7px;
    color: var(--app-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    background: var(--app-blue);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.app-button:hover {
    background: var(--app-blue-dark);
    transform: translateY(-1px);
}

.app-button.secondary {
    border-color: var(--app-border);
    color: var(--app-navy);
    background: #fff;
}

.app-button.secondary:hover {
    background: #f8faff;
}

.app-button.full {
    width: 100%;
}

.app-welcome {
    display: grid;
    min-height: 224px;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 30px 32px;
    overflow: hidden;
    border: 1px solid #d9e7ff;
    border-radius: 20px;
    background: linear-gradient(115deg, #e9f2ff 0%, #f8fbff 58%, #eaf4ff 100%);
}

.app-welcome h2 {
    margin-bottom: 9px;
    color: var(--app-blue-dark);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.app-welcome p {
    max-width: 480px;
    margin-bottom: 16px;
    color: #516483;
}

.app-welcome-visual {
    display: grid;
    min-height: 170px;
    align-items: center;
    justify-items: center;
}

.app-visual-orbit {
    position: relative;
    display: grid;
    width: min(100%, 330px);
    height: 168px;
    place-items: center;
}

.app-visual-orbit::before,
.app-visual-orbit::after {
    position: absolute;
    border: 1px solid #b9d1fb;
    border-radius: 50%;
    content: "";
}

.app-visual-orbit::before {
    width: 240px;
    height: 130px;
    transform: rotate(-13deg);
}

.app-visual-orbit::after {
    width: 300px;
    height: 148px;
    transform: rotate(12deg);
}

.app-visual-avatar {
    position: relative;
    z-index: 1;
    display: grid;
    width: 122px;
    height: 122px;
    place-items: center;
    border: 9px solid #fff;
    border-radius: 50%;
    color: var(--app-blue-dark);
    background: linear-gradient(145deg, #cfe0ff, #fff);
    box-shadow: 0 10px 25px rgb(34 94 202 / 18%);
    font-size: 4.2rem;
}

.app-visual-chip {
    position: absolute;
    z-index: 2;
    display: grid;
    min-width: 92px;
    min-height: 48px;
    place-items: center;
    padding: 8px 11px;
    border: 1px solid #d8e6ff;
    border-radius: 12px;
    color: var(--app-navy);
    background: #fff;
    box-shadow: var(--app-shadow);
    font-size: 0.74rem;
    font-weight: 750;
    text-align: center;
}

.app-visual-chip:first-of-type {
    top: 8px;
    left: 10px;
}

.app-visual-chip:last-of-type {
    right: 0;
    bottom: 4px;
}

.app-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.app-stat-card,
.app-panel,
.app-tool-card,
.app-auth-card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: var(--app-card);
    box-shadow: var(--app-shadow);
}

.app-stat-card {
    min-width: 0;
    padding: 17px;
}

.app-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.app-stat-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    font-size: 1.1rem;
}

.app-stat-card:nth-child(2) .app-stat-icon { color: #7b4dd6; background: #f2ecff; }
.app-stat-card:nth-child(3) .app-stat-icon { color: var(--app-green); background: #e6f8f0; }
.app-stat-card:nth-child(4) .app-stat-icon { color: var(--app-orange); background: #fff1df; }
.app-stat-card:nth-child(5) .app-stat-icon { color: #059b9d; background: #e3f8f7; }

.app-stat-card strong {
    display: block;
    margin: 13px 0 4px;
    color: var(--app-navy);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.1;
}

.app-stat-change {
    color: var(--app-green);
    font-size: 0.72rem;
    font-weight: 750;
}

.app-stat-change.neutral {
    color: var(--app-orange);
}

.app-sparkline {
    height: 24px;
    margin-top: 12px;
    border-bottom: 2px solid currentColor;
    border-radius: 50%;
    color: #8eb4f8;
    opacity: 0.75;
    transform: skewY(-5deg);
}

.app-stat-card:nth-child(2) .app-sparkline { color: #b594ef; }
.app-stat-card:nth-child(3) .app-sparkline { color: #78d4ad; }
.app-stat-card:nth-child(4) .app-sparkline { color: #efbd72; }
.app-stat-card:nth-child(5) .app-sparkline { color: #6dc8c4; }

.app-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 18px;
    margin-bottom: 18px;
}

.app-panel {
    min-width: 0;
    padding: 20px;
}

.app-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.app-panel-heading h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.app-panel-heading.spaced {
    margin-top: 24px;
}

.app-panel-heading a {
    color: var(--app-blue);
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

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

.app-quick-card {
    display: grid;
    min-height: 118px;
    align-content: space-between;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    color: var(--app-text);
    background: #fbfcff;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-quick-card:hover {
    border-color: #acc5fa;
    box-shadow: 0 8px 18px rgb(31 95 232 / 8%);
    transform: translateY(-2px);
}

.app-quick-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    font-size: 1.1rem;
}

.app-quick-card:nth-child(2n) .app-quick-icon { color: var(--app-purple); background: #f1ecff; }
.app-quick-card:nth-child(3n) .app-quick-icon { color: var(--app-green); background: #e6f8f0; }

.app-quick-card strong {
    display: block;
    margin-bottom: 2px;
    color: var(--app-navy);
    font-size: 0.78rem;
}

.app-quick-card small {
    display: block;
    color: var(--app-muted);
    font-size: 0.7rem;
}

.app-recommendations,
.app-task-list {
    display: grid;
    gap: 4px;
}

.app-recommendation,
.app-task {
    display: flex;
    min-height: 56px;
    align-items: center;
    gap: 11px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
    text-decoration: none;
}

.app-recommendation:last-child,
.app-task:last-child {
    border-bottom: 0;
}

.app-list-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--app-green);
    background: #e8f8f0;
}

.app-recommendation strong,
.app-task strong {
    display: block;
    color: var(--app-navy);
    font-size: 0.8rem;
}

.app-recommendation small,
.app-task small {
    display: block;
    color: var(--app-muted);
    font-size: 0.7rem;
}

.app-recommendation-arrow {
    margin-left: auto;
    color: var(--app-blue);
    font-size: 1.2rem;
}

.app-task-check {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    place-items: center;
    border: 1px solid #a9b8ce;
    border-radius: 5px;
    color: transparent;
    font-size: 0.7rem;
}

.app-task[data-complete="true"] .app-task-check {
    border-color: #94dbb8;
    color: var(--app-green);
    background: #e5f8ee;
}

.app-task-check.checked {
    border-color: #94dbb8;
    color: var(--app-green);
}

.app-task[data-complete="true"] strong {
    color: var(--app-muted);
    text-decoration: line-through;
}

.app-calendar {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--app-border);
}

.app-date-tile {
    display: grid;
    min-height: 84px;
    place-items: center;
    align-content: center;
    border-radius: 13px;
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
    text-align: center;
}

.app-date-tile strong {
    font-size: 1.65rem;
    line-height: 1;
}

.app-date-tile small {
    margin-top: 5px;
    font-size: 0.68rem;
    font-weight: 750;
}

.app-schedule {
    display: grid;
    gap: 8px;
}

.app-schedule-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--app-muted);
    font-size: 0.73rem;
}

.app-schedule-row time {
    width: 58px;
    flex: 0 0 58px;
    color: var(--app-navy);
    font-weight: 750;
}

.app-bottom-banner {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 22px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(105deg, #164dbb, #245fea 55%, #3b78ed);
}

.app-bottom-banner h2 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 1rem;
}

.app-bottom-banner p {
    margin-bottom: 0;
    color: #dce8ff;
    font-size: 0.75rem;
}

.app-bottom-banner .app-button {
    border-color: rgb(255 255 255 / 28%);
    background: rgb(255 255 255 / 13%);
    white-space: nowrap;
}

.app-bottom-banner .app-button:hover {
    background: rgb(255 255 255 / 22%);
}

.app-footer {
    padding: 26px 34px 36px;
    color: var(--app-muted);
    font-size: 0.75rem;
}

.app-footer .footer-disclaimer {
    margin: 0;
    color: var(--app-muted);
}

.app-tool-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
    padding: 28px 30px;
    border: 1px solid #dce8ff;
    border-radius: 18px;
    background: linear-gradient(110deg, #edf4ff, #fff);
}

.app-tool-hero h1 {
    margin-bottom: 7px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.app-tool-hero p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--app-muted);
}

.app-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.app-filter {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    color: var(--app-muted);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.app-filter:hover,
.app-filter[aria-pressed="true"] {
    border-color: var(--app-blue);
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
}

.app-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.app-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.app-tool-card {
    display: grid;
    min-height: 190px;
    align-content: space-between;
    gap: 16px;
    padding: 17px;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.app-tool-card:hover {
    border-color: #aec6f9;
    box-shadow: 0 12px 25px rgb(31 95 232 / 9%);
    transform: translateY(-2px);
}

.app-tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.app-tool-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    font-size: 1.4rem;
}

.app-tool-card:nth-child(2n) .app-tool-icon { color: var(--app-purple); background: #f1ecff; }
.app-tool-card:nth-child(3n) .app-tool-icon { color: var(--app-green); background: #e5f8ef; }
.app-tool-card:nth-child(4n) .app-tool-icon { color: #e8791f; background: #fff0e2; }

.app-tool-card h2 {
    margin: 14px 0 5px;
    font-size: 1rem;
}

.app-tool-card p {
    margin-bottom: 0;
    color: var(--app-muted);
    font-size: 0.78rem;
}

.app-tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--app-blue);
    font-size: 0.76rem;
    font-weight: 750;
}

.app-tool-side-list {
    display: grid;
    gap: 2px;
}

.app-tool-side-link {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
    color: var(--app-text);
    text-decoration: none;
}

.app-tool-side-link:last-child {
    border-bottom: 0;
}

.app-tool-side-rank {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: var(--app-blue-dark);
    background: var(--app-blue-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.app-tool-side-link strong {
    display: block;
    font-size: 0.77rem;
}

.app-tool-side-link small {
    display: block;
    color: var(--app-muted);
    font-size: 0.68rem;
}

.app-tip-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-tip-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--app-muted);
    font-size: 0.75rem;
}

.app-tip-list li::before {
    color: var(--app-green);
    content: "✓";
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.1;
}

.app-empty-state {
    display: none;
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #bdc9dd;
    border-radius: 14px;
    color: var(--app-muted);
    background: #fff;
    text-align: center;
}

.app-auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #eef5ff 0%, #fff 48%, #f2edff 100%);
}

.app-auth-shell {
    display: grid;
    width: min(100%, 1040px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    overflow: hidden;
    border: 1px solid #dde6f7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgb(26 66 142 / 12%);
}

.app-auth-intro {
    display: flex;
    min-height: 630px;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    background: linear-gradient(145deg, #e8f2ff, #f8fbff);
}

.app-auth-brand {
    width: 190px;
    margin-bottom: 35px;
}

.app-auth-intro h1 {
    max-width: 460px;
    margin-bottom: 13px;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.app-auth-intro > p {
    max-width: 440px;
    margin-bottom: 26px;
    color: var(--app-muted);
    font-size: 1.02rem;
}

.app-auth-benefits {
    display: grid;
    gap: 15px;
    max-width: 430px;
}

.app-auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.app-auth-benefit-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--app-blue);
    background: #dceaff;
}

.app-auth-benefit strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.app-auth-benefit small {
    display: block;
    color: var(--app-muted);
    font-size: 0.73rem;
}

.app-auth-card {
    align-self: center;
    margin: 24px;
    padding: 32px;
    box-shadow: none;
}

.app-auth-card h2 {
    margin-bottom: 7px;
    font-size: 1.65rem;
}

.app-auth-card > p {
    margin-bottom: 24px;
    color: var(--app-muted);
    font-size: 0.85rem;
}

.app-form {
    display: grid;
    gap: 15px;
}

.app-form-group {
    display: grid;
    gap: 6px;
}

.app-form-group label {
    color: var(--app-navy);
    font-size: 0.76rem;
    font-weight: 750;
}

.app-form-group input,
.app-form-group select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d9e0ec;
    border-radius: 10px;
    color: var(--app-text);
    outline: none;
    background: #fff;
}

.app-form-group input:focus,
.app-form-group select:focus {
    border-color: #94b3f5;
    box-shadow: 0 0 0 3px rgb(31 95 232 / 12%);
}

.app-form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-check-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--app-muted);
    font-size: 0.72rem;
}

.app-check-label input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--app-blue);
}

.app-inline-link {
    color: var(--app-blue);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.app-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--app-muted);
    font-size: 0.72rem;
    text-align: center;
}

.app-auth-divider::before,
.app-auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--app-border);
    content: "";
}

.app-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.app-social-button {
    min-height: 42px;
    border: 1px solid var(--app-border);
    border-radius: 9px;
    color: var(--app-navy);
    background: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.app-social-button:hover {
    background: #f8faff;
}

.app-auth-switch {
    margin: 22px 0 0;
    color: var(--app-muted);
    font-size: 0.78rem;
    text-align: center;
}

.app-auth-switch a {
    color: var(--app-blue);
    font-weight: 750;
    text-decoration: none;
}

.app-status {
    min-height: 18px;
    margin: 0;
    color: var(--app-green);
    font-size: 0.76rem;
    font-weight: 650;
}

.app-status.error {
    color: #c23d4d;
}

.app-demo-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #4e6287;
    background: #f1f6ff;
    font-size: 0.72rem;
}

.app-mobile-backdrop {
    display: none;
}

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

    .app-topbar,
    .app-content,
    .app-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

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

    .app-stat-card:nth-child(4),
    .app-stat-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 980px) {
    .app-topbar {
        z-index: 40;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 290px);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 180ms ease;
    }

    .app-sidebar[data-open="true"] {
        transform: translateX(0);
    }

    .app-shell {
        display: block;
    }

    .app-menu-toggle {
        position: relative;
        z-index: 50;
        display: inline-flex;
    }

    .app-mobile-backdrop {
        position: fixed;
        z-index: 25;
        inset: 0;
        background: rgb(10 29 65 / 32%);
    }

    body.app-menu-open .app-mobile-backdrop {
        display: block;
    }

    .app-dashboard-grid,
    .app-tool-layout {
        grid-template-columns: 1fr;
    }

    .app-tool-layout .app-panel {
        order: 2;
    }

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

@media (max-width: 680px) {
    .app-topbar {
        min-height: 64px;
        gap: 10px;
        padding: 10px 16px;
    }

    .app-top-actions {
        gap: 2px;
    }

    .app-search {
        max-width: none;
    }

    .app-search input {
        min-height: 40px;
        padding-left: 38px;
        font-size: 0.78rem;
    }

    .app-profile-copy,
    .app-profile::after,
    .app-top-actions .app-icon-button:first-child {
        display: none;
    }

    .app-content {
        padding: 24px 16px 36px;
    }

    .app-footer {
        padding: 20px 16px 28px;
    }

    .app-page-heading,
    .app-tool-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-page-heading .app-button {
        width: 100%;
    }

    .app-welcome {
        grid-template-columns: 1fr;
        padding: 23px 20px 12px;
    }

    .app-welcome-visual {
        min-height: 135px;
    }

    .app-visual-avatar {
        width: 96px;
        height: 96px;
        font-size: 3.2rem;
    }

    .app-visual-orbit {
        height: 132px;
    }

    .app-visual-orbit::before {
        width: 210px;
        height: 105px;
    }

    .app-visual-orbit::after {
        width: 260px;
        height: 120px;
    }

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

    .app-stat-card {
        padding: 14px;
    }

    .app-stat-card:nth-child(5) {
        grid-column: span 2;
    }

    .app-quick-grid,
    .app-tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .app-quick-card {
        min-height: 112px;
    }

    .app-bottom-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .app-bottom-banner .app-button {
        width: 100%;
    }

    .app-auth-page {
        display: block;
        padding: 0;
    }

    .app-auth-shell {
        display: block;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-auth-intro {
        min-height: 0;
        padding: 26px 22px 24px;
    }

    .app-auth-brand {
        width: 160px;
        margin-bottom: 22px;
    }

    .app-auth-intro h1 {
        font-size: 2rem;
    }

    .app-auth-intro > p {
        margin-bottom: 18px;
        font-size: 0.9rem;
    }

    .app-auth-benefits {
        gap: 10px;
    }

    .app-auth-benefit:nth-child(n + 3) {
        display: none;
    }

    .app-auth-card {
        margin: 0;
        padding: 26px 22px 34px;
        border: 0;
        border-radius: 0;
    }
}

@media (max-width: 420px) {
    .app-tool-grid,
    .app-quick-grid {
        grid-template-columns: 1fr;
    }

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

    .app-stat-card:nth-child(5) {
        grid-column: auto;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
