:root {
    --bg: #f3f8fd;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-strong: #eaf4ff;
    --border: #dbe8f5;
    --border-strong: #bfd5ea;
    --text: #10233d;
    --text-muted: #60748d;
    --text-soft: #7d8ea5;
    --primary: #075cb3;
    --primary-bright: #1cb2f8;
    --teal: #199d9a;
    --green: #63ba1a;
    --lime: #b8ea11;
    --danger: #d83a52;
    --warning: #d98324;
    --success: #1f9d63;
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 80px rgba(7, 92, 179, 0.14);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --content-width: 1480px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(28, 178, 248, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(99, 186, 26, 0.1), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 52%, #eef5fb 100%);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #0d72d6;
}

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

button,
.button-link,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.8rem 1.15rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button-link,
.primary-action {
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(7, 92, 179, 0.18);
}

.button-link:hover,
.primary-action:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.button-link.ghost,
.ghost {
    background: #ffffff;
    color: var(--primary);
    border-color: rgba(7, 92, 179, 0.18);
    box-shadow: none;
}

.button-link.ghost:hover,
.ghost:hover {
    background: #eef6ff;
    color: var(--primary);
}

.app-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    gap: 1.5rem;
    padding: clamp(0.85rem, 2vw, 1.2rem);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: linear-gradient(180deg, rgba(8, 35, 78, 0.98), rgba(7, 92, 179, 0.96));
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.15rem;
    box-shadow: var(--shadow-lg);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.4rem 0.4rem 1.15rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.sidebar-brand p {
    margin: 0.3rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.sidebar .primary-action {
    width: 100%;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1cb2f8, #63ba1a);
    color: #0a1d35;
    box-shadow: 0 18px 28px rgba(4, 17, 36, 0.22);
}

.side-nav {
    display: grid;
    gap: 0.45rem;
}

.side-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(2px);
}

.page-shell {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.topbar {
    margin-bottom: 0.85rem;
    border-radius: 24px;
    padding: 0.68rem 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-main,
.topbar-side {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-main {
    min-width: 0;
    flex: 1 1 520px;
    justify-content: flex-start;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.welcome-block {
    min-width: 0;
}

.welcome-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.02rem;
}

.topbar-brand-wordmark {
    display: grid;
    gap: 0.08rem;
}

.topbar-home-link {
    text-decoration: none;
}

.topbar-home-link:hover strong,
.topbar-home-link:hover span {
    color: #0f65d9;
}

.topbar-brand-wordmark strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
}

.topbar-brand-wordmark span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.topbar-logo-link {
    flex: 0 0 auto;
}

.topbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    border: 0;
}

.eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.topbar h2 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
}

.topbar p {
    margin: 0.08rem 0 0;
    color: var(--text-muted);
    font-size: 0.81rem;
}

.sidebar-toggle {
    width: 2.05rem;
    min-width: 2.05rem;
    height: 2.05rem;
    min-height: 2.05rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(7, 92, 179, 0.12);
    background: #ffffff;
    color: var(--primary);
    line-height: 1;
    font-size: 0.92rem;
}

.text-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.text-action {
    font-weight: 700;
    font-size: 0.9rem;
}

.topbar-side {
    flex: 0 1 auto;
    margin-left: auto;
    justify-content: flex-end;
}

.text-action.blue { color: var(--primary); }
.text-action.red { color: var(--danger); }
.text-action.green { color: var(--success); }
.text-action.teal { color: var(--teal); }
.text-action.orange { color: var(--warning); }
.text-action.slate { color: var(--text-muted); }

.page {
    display: grid;
    gap: 1.3rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
    min-width: 0;
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(7, 92, 179, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.flash.error,
.flash.danger {
    border-color: rgba(216, 58, 82, 0.18);
    background: #fff5f6;
    color: #8a1d32;
}

.flash.success {
    border-color: rgba(31, 157, 99, 0.18);
    background: #f1fbf5;
    color: #176d46;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 1.2rem;
    align-items: stretch;
}

.hero-card,
.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 92, 179, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.hero-card {
    padding: 1.45rem 1.55rem;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -8% -35% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 178, 248, 0.18), transparent 68%);
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(7, 92, 179, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card h1 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-card p {
    max-width: 62ch;
    margin: 0.95rem 0 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.3rem;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.hero-point {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fcff, #eef6ff);
    border: 1px solid rgba(7, 92, 179, 0.08);
}

.hero-point strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.hero-point span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.hero-side-panel {
    padding: 1.3rem;
    display: grid;
    gap: 1rem;
    background:
        linear-gradient(135deg, rgba(7, 92, 179, 0.96), rgba(28, 178, 248, 0.96));
    color: #ffffff;
}

.hero-side-panel h2,
.hero-side-panel h3 {
    margin: 0;
}

.hero-side-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-side-stat {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-side-stat span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero-side-stat strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
}

.hero-side-list {
    display: grid;
    gap: 0.7rem;
}

.hero-side-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.hero-side-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.dashboard-heading p {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    max-width: 64ch;
}

.dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.stat {
    grid-column: span 3;
    padding: 1.15rem 1.2rem;
}

.stat.success {
    background: linear-gradient(180deg, #ffffff, #f3fcf7);
}

.stat.warning {
    background: linear-gradient(180deg, #ffffff, #fff8ef);
}

.stat.emphasis {
    background: linear-gradient(180deg, #ffffff, #eef7ff);
}

.stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat strong {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
}

.stat small {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-soft);
    font-size: 0.87rem;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #f4f8fc;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 700;
}

.stat-trend.up {
    background: rgba(31, 157, 99, 0.1);
    color: #18754b;
}

.stat-trend.down {
    background: rgba(216, 58, 82, 0.1);
    color: #9c223a;
}

.stat-triangle {
    font-size: 0.78rem;
}

.dashboard-grid,
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-bottom > .card,
.dashboard-grid > .card,
.two-col > .card,
.card {
    padding: 1.2rem;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-head h3 {
    margin: 0;
    font-size: 1.08rem;
}

.section-head p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(7, 92, 179, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.focus-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.focus-item {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfeff, #f3f8fd);
    border: 1px solid rgba(7, 92, 179, 0.08);
}

.focus-item strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.focus-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.action-grid {
    display: grid;
    gap: 0.75rem;
}

.action-grid.single-column {
    grid-template-columns: 1fr;
}

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

.action-tile {
    display: block;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f5fbff);
    border: 1px solid rgba(7, 92, 179, 0.09);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.action-tile:hover {
    border-color: rgba(7, 92, 179, 0.2);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.action-tile strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.action-tile span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
    padding: 0.95rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(7, 92, 179, 0.08);
    font-size: 0.94rem;
    vertical-align: top;
}

.responsive-table th {
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.responsive-table tbody tr:hover {
    background: rgba(7, 92, 179, 0.03);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #edf4fb;
    color: var(--text-muted);
}

.status.active,
.status.paid {
    background: rgba(31, 157, 99, 0.12);
    color: #18754b;
}

.status.overdue {
    background: rgba(217, 131, 36, 0.12);
    color: #9d5f18;
}

.status.closed,
.status.completed {
    background: rgba(7, 92, 179, 0.1);
    color: var(--primary);
}

.card table tr:last-child td {
    border-bottom: 0;
}

.public-page {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 2rem 1.2rem 3rem;
}

label {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input,
select,
textarea,
.form-control {
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: #ffffff;
}

.feedback-fab {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.feedback-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    background: rgba(31, 157, 99, 0.1);
    color: #15803d;
    line-height: 0;
}

.feedback-fab-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apps-menu-glyph,
.apps-trigger-badge {
    color: #ffffff;
}

.apps-menu-glyph svg {
    width: 1rem;
    height: 1rem;
    display: block;
    margin: 0 auto;
    stroke: #ffffff;
}

.login-shell {
    display: grid;
    gap: 1.2rem;
}

.login-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(184, 234, 17, 0.22), transparent 20%),
        linear-gradient(135deg, rgba(7, 92, 179, 0.98), rgba(28, 178, 248, 0.92) 62%, rgba(25, 157, 154, 0.9));
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.login-hero-content,
.login-plans {
    display: grid;
    gap: 0.9rem;
}

.login-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-brand-mark,
.login-auth-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.login-eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.login-hero h1 {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.login-hero-copy {
    margin: 0;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.92);
}

.login-auth-wrap {
    display: grid;
}

.login-card {
    padding: 1.4rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 92, 179, 0.1);
    box-shadow: var(--shadow-md);
}

.login-auth-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.login-auth-title {
    margin: 0;
    font-size: 1.45rem;
}

.login-auth-subtitle,
.login-info-box p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.login-plan {
    position: relative;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.login-plan-bar {
    width: 4rem;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #b8ea11, #ffffff);
    margin-bottom: 0.9rem;
}

.login-plan h3,
.login-price strong {
    margin: 0;
    color: #ffffff;
}

.login-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.login-price span,
.login-plan li span:last-child {
    color: rgba(255, 255, 255, 0.88);
}

.login-plan ul {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.login-plan li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.login-plan-dot {
    width: 0.5rem;
    height: 0.5rem;
    min-width: 0.5rem;
    border-radius: 999px;
    margin-top: 0.45rem;
    background: #b8ea11;
}

.login-info-box {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff, #eef6ff);
    border: 1px solid rgba(7, 92, 179, 0.12);
}

.login-submit {
    width: 100%;
}

label.inline-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

label.inline-check input {
    width: auto;
    min-width: auto;
}

.sidebar-collapsed .sidebar {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.sidebar-collapsed .sidebar-brand h1,
.sidebar-collapsed .sidebar-brand p,
.sidebar-collapsed .side-nav a,
.sidebar-collapsed .primary-action {
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .stat {
        grid-column: span 4;
    }

    .login-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .dashboard-hero,
    .dashboard-grid,
    .two-col,
    .hero-points {
        grid-template-columns: 1fr;
    }

    .focus-list {
        grid-template-columns: 1fr;
    }

    .stat {
        grid-column: span 6;
    }

    .topbar-main,
    .topbar-side {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-grid.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .app-shell,
    .sidebar-collapsed.app-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-radius: 24px;
        padding: 1rem;
    }

    .topbar {
        padding: 0.9rem;
        align-items: stretch;
        border-radius: 22px;
    }

    .page-shell,
    .page {
        overflow: visible;
    }

    .topbar-main,
    .topbar-side {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-brand,
    .welcome-row {
        flex-wrap: wrap;
    }

    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .text-actions,
    .row-actions {
        gap: 0.55rem;
    }

    .login-hero h1 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .app-shell {
        padding: 0.6rem;
        gap: 0.75rem;
    }

    .login-hero,
    .login-card {
        padding: 1.05rem;
        border-radius: 22px;
    }

    .hero-card,
    .hero-side-panel,
    .card,
    .stat {
        padding: 0.9rem;
    }

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

    .stat {
        grid-column: auto;
    }

    .hero-side-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 0.85rem;
        border-radius: 20px;
    }

    .sidebar-brand {
        padding: 0.2rem 0.2rem 0.85rem;
        margin-bottom: 0.75rem;
    }

    .topbar {
        padding: 0.78rem;
        gap: 0.6rem;
        border-radius: 18px;
    }

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

    .topbar-brand-wordmark span,
    .topbar-action,
    .text-action {
        font-size: 0.84rem;
    }

    .apps-trigger,
    .feedback-fab {
        width: 100%;
        justify-content: center;
    }

    .apps-menu {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
    }

    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
        width: 100%;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tbody {
        display: grid;
        gap: 0.85rem;
    }

    .responsive-table tr {
        padding: 0.85rem;
        border-radius: 16px;
        border: 1px solid rgba(7, 92, 179, 0.08);
        background: #ffffff;
    }

    .responsive-table td {
        padding: 0.35rem 0;
        border-bottom: 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.12rem;
        color: var(--text-muted);
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .dashboard-grid,
    .two-col,
    .action-grid.compact,
    .focus-list {
        grid-template-columns: 1fr;
    }
}
