:root {
    --bg: #121212;
    --bg-soft: #1d1d1d;
    --panel: rgba(28, 28, 28, 0.9);
    --panel-strong: rgba(18, 18, 18, 0.94);
    --panel-muted: rgba(255, 255, 255, 0.06);
    --text: #f6f3ea;
    --text-muted: #c9c1b2;
    --text-soft: #9e9789;
    --line: rgba(255, 205, 39, 0.16);
    --line-strong: rgba(255, 205, 39, 0.34);
    --yellow: #ffcb27;
    --yellow-deep: #f2b400;
    --orange: #ff8a1f;
    --red: #ef3d1f;
    --red-deep: #b81712;
    --green: #3dbb69;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable Text", "Trebuchet MS", "Aptos", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(255, 203, 39, 0.12), transparent 32%),
        linear-gradient(180deg, #181818 0%, #111111 55%, #090909 100%);
}

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

::selection {
    background: rgba(255, 203, 39, 0.28);
    color: #fffaf0;
}

.login-page {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    position: relative;
    overflow: hidden;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.7) 46%, rgba(10, 10, 10, 0.92) 100%),
        url("../images/background_logo.jpg") center center / cover no-repeat;
    filter: saturate(0.95) contrast(1.05);
    transform: scale(1.04);
}

.login-shell::after {
    content: "";
    position: absolute;
    inset: auto -12rem -14rem auto;
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, rgba(239, 61, 31, 0.32) 0%, rgba(255, 138, 31, 0.18) 34%, transparent 70%);
    pointer-events: none;
}

.brand-panel,
.login-card-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.brand-panel {
    padding: 4rem 5vw 4rem 6vw;
}

.brand-copy {
    width: min(100%, 44rem);
    display: grid;
    gap: 1.4rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    margin: 0;
}

.brand-logo {
    width: clamp(8rem, 15vw, 11rem);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.32));
}

.eyebrow,
.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 2.25rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 203, 39, 0.12);
    border: 1px solid rgba(255, 203, 39, 0.24);
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-copy h1,
.dashboard-card h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.brand-copy p,
.dashboard-card p,
.card-header p {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.brand-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-highlights li {
    min-height: 7rem;
    padding: 1.1rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-highlights strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #fff3c6;
}

.brand-highlights span {
    display: block;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: 0.94rem;
}

.login-card-wrapper {
    justify-content: center;
    padding: 2rem 2rem 2rem 1rem;
}

.login-card,
.dashboard-card {
    width: min(100%, 32rem);
    padding: 2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(33, 33, 33, 0.96) 0%, rgba(18, 18, 18, 0.98) 100%);
    border: 1px solid rgba(255, 203, 39, 0.14);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.card-header {
    display: grid;
    gap: 0.4rem;
}

.card-header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0;
}

.login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.field {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
}

.field span {
    font-size: 0.93rem;
    color: #f8edd0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #837d73;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(255, 203, 39, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 203, 39, 0.14);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    font-weight: 700;
}

.submit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.35rem;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 68%, var(--red) 100%);
    color: #1a1202;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(239, 61, 31, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover,
.submit-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.table-action:hover,
.table-action:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.submit-button.secondary {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #2b2b2b 0%, #151515 100%);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.alert {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.55;
}

.alert-error {
    background: rgba(239, 61, 31, 0.12);
    color: #ffc5bb;
    border: 1px solid rgba(239, 61, 31, 0.2);
}

.alert-success {
    background: rgba(61, 187, 105, 0.12);
    color: #b8f0ca;
    border: 1px solid rgba(61, 187, 105, 0.2);
}

.security-note {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dashboard-page {
    min-height: 100vh;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 18.5rem minmax(0, 1fr);
    transition: grid-template-columns 0.28s ease;
}

.app-layout[data-sidebar-state="collapsed"] {
    grid-template-columns: 5.5rem minmax(0, 1fr);
}

.sidebar {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.3rem 1rem;
    background:
        linear-gradient(180deg, rgba(28, 28, 28, 0.98) 0%, rgba(16, 16, 16, 0.98) 100%);
    color: var(--text);
    border-right: 1px solid rgba(255, 203, 39, 0.12);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.28);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 4rem;
    padding: 0.8rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-copy,
.topbar-user-copy {
    display: grid;
    gap: 0.2rem;
}

.sidebar-brand-copy strong,
.topbar-user-copy strong {
    font-size: 1rem;
}

.sidebar-brand-copy span {
    font-size: 0.82rem;
    color: var(--text-soft);
}

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

.sidebar-link,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-icon {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.sidebar-label {
    display: inline-flex;
    align-items: center;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-logout:hover,
.sidebar-logout:focus-visible,
.sidebar-link.is-active {
    background: linear-gradient(90deg, rgba(255, 203, 39, 0.14) 0%, rgba(239, 61, 31, 0.1) 100%);
    border-color: rgba(255, 203, 39, 0.14);
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-link.is-active .sidebar-icon {
    color: var(--yellow);
}

.sidebar-logout {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-brand-copy,
.app-layout[data-sidebar-state="collapsed"] .sidebar-link,
.app-layout[data-sidebar-state="collapsed"] .sidebar-logout {
    overflow: hidden;
    white-space: nowrap;
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-brand-copy {
    opacity: 0;
    width: 0;
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-link,
.app-layout[data-sidebar-state="collapsed"] .sidebar-logout {
    justify-content: center;
    padding-inline: 0.5rem;
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-link,
.app-layout[data-sidebar-state="collapsed"] .sidebar-logout {
    position: relative;
}

.app-layout[data-sidebar-state="collapsed"] .sidebar-link:hover::after,
.app-layout[data-sidebar-state="collapsed"] .sidebar-link:focus-visible::after,
.app-layout[data-sidebar-state="collapsed"] .sidebar-logout:hover::after,
.app-layout[data-sidebar-state="collapsed"] .sidebar-logout:focus-visible::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 0.9rem);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.6rem 0.85rem;
    border-radius: 0.8rem;
    background: rgba(25, 25, 25, 0.96);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 203, 39, 0.12);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    pointer-events: none;
}

.app-content {
    position: relative;
    min-width: 0;
    padding: 1.2rem;
    background:
        linear-gradient(rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0.95)),
        url("../images/background_logo.jpg") center center / cover no-repeat;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(25, 25, 25, 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

.page-heading {
    display: grid;
    gap: 0.35rem;
}

.page-heading strong {
    font-size: 1.05rem;
    letter-spacing: 0;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 203, 39, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-toggle span {
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    background: var(--yellow);
    border-radius: 999px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topbar-user-copy {
    text-align: right;
}

.topbar-user-copy span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.user-avatar {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 70%, var(--red) 100%);
    color: #1a1202;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(239, 61, 31, 0.26);
}

.hero-panel {
    min-height: calc(100vh - 7.5rem);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1.5rem;
    padding: 2rem 0.4rem;
}

.dashboard-shell {
    width: min(100%, 70rem);
    display: grid;
    gap: 1.2rem;
    justify-items: center;
    align-items: center;
}

.hero-mark {
    width: min(100%, 14rem);
    padding: 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 203, 39, 0.14);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-copy {
    max-width: 54rem;
    display: grid;
    gap: 1rem;
    text-align: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.7rem, 4.4vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0 auto;
    max-width: 46rem;
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--text-muted);
}

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

.metric-card,
.content-panel,
.user-grid div {
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.metric-card {
    padding: 1.2rem 1.25rem;
}

.metric-card strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff2bd;
    font-size: 1rem;
}

.metric-card span {
    display: block;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.94rem;
}

.content-panel {
    margin-top: 1.2rem;
    padding: 1.4rem;
}

.content-panel-form {
    display: grid;
    gap: 1.4rem;
}

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

.content-panel-head h1,
.content-panel-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.content-panel-head h2 {
    font-size: 1.4rem;
}

.content-panel-head p {
    margin: 0.65rem 0 0;
    max-width: 48rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.singleton-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 203, 39, 0.1);
    border: 1px solid rgba(255, 203, 39, 0.16);
    color: #ffe693;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.entity-form,
.form-grid {
    display: grid;
    gap: 1rem;
}

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

.form-grid-address {
    grid-template-columns: 0.9fr 1.8fr 0.6fr 1fr 1fr 1fr 0.45fr;
}

.field-full,
.field-address-street {
    grid-column: 1 / -1;
}

.section-divider {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-divider strong {
    font-size: 1rem;
}

.section-divider span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions-between {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 203, 39, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
    border-color: rgba(255, 203, 39, 0.26);
    background: rgba(255, 203, 39, 0.08);
}

.management-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.2rem;
}

.management-stack {
    margin-top: 1.2rem;
    display: grid;
    gap: 1.2rem;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1 1 22rem;
    min-width: 16rem;
}

.search-input-group input {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    outline: none;
}

.search-input-group input:focus {
    border-color: rgba(255, 203, 39, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 203, 39, 0.14);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-highlight {
    color: #ff6b5f;
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-dialog {
    width: min(100%, 72rem);
    max-height: calc(100vh - 2.4rem);
    overflow: auto;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.checkbox-field input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--yellow);
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 34rem;
}

.data-table th,
.data-table td {
    padding: 0.95rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 1.4rem 0.85rem;
}

.table-action {
    display: inline-flex;
    min-height: 2.2rem;
    align-items: center;
    color: var(--yellow);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.table-meta {
    margin-top: 0.25rem;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(239, 61, 31, 0.12);
    color: #ffc2b8;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(239, 61, 31, 0.18);
}

.status-pill.is-active {
    background: rgba(61, 187, 105, 0.12);
    color: #b8f0ca;
    border-color: rgba(61, 187, 105, 0.18);
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.8rem 0 0;
}

.user-grid div {
    padding: 1rem 1.1rem;
}

.user-grid dt {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.user-grid dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .brand-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 2rem 1.4rem 0;
    }

    .brand-copy h1,
    .dashboard-card h1 {
        max-width: none;
        font-size: clamp(2.7rem, 12vw, 4.2rem);
    }

    .login-card-wrapper {
        align-items: flex-start;
        padding: 1.4rem 1.4rem 2rem;
    }

    .app-layout,
    .app-layout[data-sidebar-state="collapsed"] {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(18rem, 84vw);
        transform: translateX(0);
        transition: transform 0.28s ease;
    }

    .app-layout[data-sidebar-state="collapsed"] .sidebar {
        transform: translateX(-100%);
    }

    .app-layout[data-sidebar-state="collapsed"] .sidebar-link:hover::after,
    .app-layout[data-sidebar-state="collapsed"] .sidebar-link:focus-visible::after,
    .app-layout[data-sidebar-state="collapsed"] .sidebar-logout:hover::after,
    .app-layout[data-sidebar-state="collapsed"] .sidebar-logout:focus-visible::after {
        display: none;
    }

    .app-content {
        padding: 1rem;
    }

    .topbar {
        padding: 0.9rem;
    }

    .content-panel {
        padding: 1.2rem;
    }

    .content-panel-head,
    .toggle-row {
        flex-direction: column;
        align-items: stretch;
    }

    .list-toolbar,
    .toolbar-actions {
        align-items: stretch;
    }

    .search-form {
        align-items: stretch;
        width: 100%;
    }

    .management-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .form-grid-two,
    .form-grid-address {
        grid-template-columns: 1fr 1fr;
    }

    .hero-panel {
        min-height: calc(100vh - 6rem);
    }
}

@media (max-width: 640px) {
    .login-card,
    .dashboard-card {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .brand-panel {
        padding: 1.4rem 1rem 0;
    }

    .brand-copy,
    .hero-copy {
        gap: 1rem;
    }

    .brand-copy p,
    .dashboard-card p,
    .card-header p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

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

    .topbar-left,
    .topbar-user {
        width: 100%;
    }

    .topbar-user {
        justify-content: space-between;
    }

    .page-heading {
        display: none;
    }

    .hero-panel {
        padding: 1.4rem 0.1rem;
    }

    .hero-mark {
        width: min(100%, 11rem);
        padding: 1rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero-copy p {
        font-size: 0.98rem;
    }

    .user-grid,
    .form-grid-two,
    .form-grid-address {
        grid-template-columns: 1fr;
    }

    .content-panel {
        margin-top: 1rem;
        padding: 1rem;
    }

    .singleton-badge {
        white-space: normal;
    }

    .form-actions-between {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .submit-button,
    .ghost-button,
    .toolbar-actions .submit-button {
        width: 100%;
    }
}
