

:root {
    --ui-accent: #239a4d;
    --ui-accent-hover: #1f8a44;
    --ui-accent-soft: rgba(35, 154, 77, 0.10);
    --ui-accent-border: rgba(35, 154, 77, 0.30);
    --ui-accent-ring: rgba(43, 208, 89, 0.35);

    --brand-cta-a: #22c39a;
    --brand-cta-b: #35b558;
    --brand-cta-c: #47a83c;

    --text-strong: #17251c;
    --text-body: #34495e;
    --text-muted: #6b7a8f;

    --border-subtle: rgba(0, 0, 0, 0.10);
    --border-input: #e3e8e4;
    --danger: #d93025;
    --danger-soft: rgba(217, 48, 37, 0.06);

    --radius-md: 10px;
    --radius-card: 24px;
    --shadow-card: 0 1px 2px rgba(16, 36, 24, 0.05),
        0 12px 32px -12px rgba(16, 36, 24, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background: #ffffff;
    min-height: 100vh;
}

::selection {
    background: rgba(42, 180, 207, 0.3);
}

body {
    overscroll-behavior-y: none;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    margin: 20px 0 20px 20px;
    border-radius: var(--radius-card);
    box-shadow: inset 0 0 0 1px rgba(28, 40, 51, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 80% at 15% 10%, rgba(255, 255, 255, 0.85), transparent 55%),
        radial-gradient(100% 70% at 85% 95%, rgba(40, 130, 90, 0.30), transparent 60%),
        radial-gradient(90% 60% at 50% 50%, rgba(60, 160, 120, 0.22), transparent 70%),
        linear-gradient(155deg, #d6f1ff 0%, #b3e4f0 20%, #8fd6c8 42%, #6fc9a8 62%, #5ab888 80%, #4aa872 100%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(95% 70% at 12% -8%, rgba(255, 255, 255, 0.90), transparent 58%),
        radial-gradient(ellipse 40% 30% at 22% 60%, rgba(255, 255, 255, 0.40), transparent 70%),
        radial-gradient(ellipse 35% 25% at 78% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
        radial-gradient(ellipse 50% 35% at 60% 80%, rgba(80, 180, 140, 0.22), transparent 70%);
    pointer-events: none;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 140% 100% at 50% 0%, rgba(255, 255, 255, 0.0), transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(20, 80, 40, 0.22), transparent 70%);
    pointer-events: none;
}

.visual-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.visual-stars span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: starTwinkle 4s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50%       { opacity: 0.85; transform: scale(1.15); }
}

.auth-visual .logo {
    position: absolute;
    top: 30px;
    left: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.auth-visual .logo .icon-primary {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.2rem;
}

.auth-visual .logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: #383838;

    margin-bottom: 0.2rem;
}

.brand-headline {
    position: absolute;
    top: 27%;
    left: 6%;
    right: auto;
    z-index: 2;
    margin: 0;
    padding: 0 0 0 34px;
    text-align: left;
    font-size: clamp(2.3rem, 3.5vw, 3.2rem);
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
}

.brand-headline em {
    font-style: normal;
    color: #1f9a3e;
}

.from-you {
    display: block;
    text-align: right;
    max-width: 88%;
    margin-left: auto;

    background: linear-gradient(90deg,
            #7c3aed 0%, #a855f7 20%, #f472b6 40%,
            #a855f7 60%, #7c3aed 80%, #7c3aed 100%);
    background-size: 200% 100%;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: panel-label-sweep 5000ms linear infinite;
}

@keyframes panel-label-sweep {
    0% {
        background-position: 0% 0px;
    }

    100% {
        background-position: -200% 0px;
    }
}

.globe {
    position: absolute;

    width: 130vmin;
    aspect-ratio: 1;
    right: -35vmin;
    bottom: -78vmin;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: auto;
    transform: none;
    z-index: 2;

    background: transparent;

    box-shadow:
        0 0 90px 12px rgba(150, 235, 170, 0.42),
        0 0 210px 60px rgba(110, 210, 140, 0.20);
}

.globe canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;

    transform: none;
    filter: saturate(1.15) hue-rotate(-6deg) brightness(0.96);
}

.globe::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(155deg, #d6f1ff 0%, #4aa872 100%);
    mix-blend-mode: color;
    opacity: 0.55;
    pointer-events: none;
    z-index: 3;
}

.mobile-logo {
    display: none;
}

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 48px 22px;
    margin-right: 34px;
}

.auth-inner {
    width: 100%;
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 0;
    animation: cardIn 0.45s cubic-bezier(0.22, 0.9, 0.35, 1) both;
    transition: filter 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-inner.is-switching {
    filter: blur(6px);
    opacity: 0;
    pointer-events: none;
}

.auth-inner.is-entering {
    filter: blur(6px);
    opacity: 1;
    pointer-events: none;
}

@keyframes cardIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.panel-top {
    position: absolute;
    top: 55px;
    right: 48px;
    z-index: 2;
    align-self: flex-end;
}

.switch-note {
    margin: 0;
    font-size: 0.87rem;
    color: var(--text-muted);
    text-align: right;
}

.switch-prefix {
    color: var(--text-muted);
}

.switch-note a,
.trouble a {
    color: var(--ui-accent);
    font-weight: 600;
    text-decoration: none;
}

.switch-note a:hover,
.trouble a:hover {
    color: var(--ui-accent-hover);
    text-decoration: underline;
}

.switch-note a svg {
    margin-left: 3px;
    vertical-align: -2px;
}

.form-card {
    width: 100%;
    max-width: 400px;
    animation: cardIn 0.45s cubic-bezier(0.22, 0.9, 0.35, 1) both;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.form-card.is-switching {
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 6px 11px;
    border-radius: 8px;
    background: var(--ui-accent-soft);
    border: 1px solid var(--ui-accent-border);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1a7f43;
}

.brand-badge img {
    border-radius: 4px;
}

.form-card-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.form-card-subtitle {
    margin: 0 0 24px;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.logged-in-state {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 18px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

#logoutBtn {
    width: auto;
    min-width: 130px;
    justify-content: center;
    flex-shrink: 0;
}

.social-buttons {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.btn.social-btn {
    background: #ffffff;
    border-color: var(--border-input);
    color: var(--text-strong);
}

.btn.social-btn:hover {
    background: #f5f9f6;
    border-color: var(--ui-accent-border);
}

.social-logo {
    flex: 0 0 auto;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 20px;
}

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

.divider span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: formFade 0.24s ease;
}

@keyframes formFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-group input,
.input-wrap input {
    width: 100%;
    font: inherit;
    font-size: 0.94rem;
    color: var(--text-strong);
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: 0 0 0 0 transparent;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
        background 0.18s ease;
}

.input-group input::placeholder,
.input-wrap input::placeholder {
    color: #aab4c0;
}

.input-group input:hover,
.input-wrap input:hover {
    border-color: #c6cfc9;
}

.input-group input:focus,
.input-wrap input:focus {
    outline: none;
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 4px var(--ui-accent-ring);
}

.input-group input.invalid,
.input-wrap input.invalid {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.input-group input.invalid:focus,
.input-wrap input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.20);
}

.input-wrap input.match {
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
}

.input-wrap input.match:focus {
    box-shadow: 0 0 0 4px var(--ui-accent-ring);
}

.input-group input::-ms-reveal,
.input-group input::-ms-clear,
.input-wrap input::-ms-reveal,
.input-wrap input::-ms-clear {
    display: none;
}

.input-group input::-webkit-credentials-auto-fill-button,
.input-wrap input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9aa7b5;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.pw-toggle:hover {
    color: var(--text-strong);
    background: rgba(0, 0, 0, 0.045);
}

.pw-toggle .pw-eye-off {
    display: none;
}

.pw-toggle[aria-pressed="true"] .pw-eye {
    display: none;
}

.pw-toggle[aria-pressed="true"] .pw-eye-off {
    display: block;
}

.error-message {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--danger);
    display: none;
}

.error-message.show {
    display: block;
    animation: errorIn 0.18s ease;
}

@keyframes errorIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 20px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
    user-select: none;
}

.remember-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.remember-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c6cfc9;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background 0.16s ease, border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.remember-box svg {
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.remember-input:checked + .remember-box {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
}

.remember-input:checked + .remember-box svg {
    opacity: 1;
    transform: scale(1);
}

.remember-input:focus-visible + .remember-box {
    box-shadow: 0 0 0 3px var(--ui-accent-ring);
}

.remember:hover .remember-box {
    border-color: var(--ui-accent);
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ui-accent);
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--ui-accent-hover);
    text-decoration: underline;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    padding: 13px 16px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease, filter 0.18s ease, transform 0.08s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn.secondary {
    background: #ffffff;
    border-color: var(--border-input);
    color: var(--text-strong);
}

.btn.secondary:hover {
    background: #f5f9f6;
    border-color: var(--ui-accent-border);
}

.btn.primary {
    background: var(--ui-accent);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(35, 150, 90, 0);
}

.btn.primary:hover {
    box-shadow: 0 10px 26px -6px rgba(35, 150, 90, 0.65);
    filter: saturate(1.1);
}

.btn.primary .btn-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.18s ease;
}

.btn.primary:hover .btn-arrow {
    transform: translateY(-50%);
}

.trouble {
    margin: 26px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-body);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-footer a:hover {
    color: var(--text-strong);
}

.auth-footer-row {
    max-width: 400px;
    width: 100%;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-links {
    display: inline-flex;
    gap: 18px;
}

.auth-footer-row a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-footer-row a:hover {
    color: var(--text-strong);
    text-decoration: underline;
}

#register-form .btn.primary {
    margin-top: 24px;
}

.custom-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    white-space: normal;
    word-break: break-word;
    max-width: 80vw;
    text-align: left;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.custom-toast svg {
    color: inherit;
    flex: 0 0 auto;
    vertical-align: middle;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        max-width: 560px;
        margin: 0 auto;
    }

    .auth-visual {
        display: none;
    }

    .mobile-logo {
        display: inline-flex;
        position: absolute;
        top: 18px;
        left: 24px;
        z-index: 2;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0;
        color: #383838;
        font-size: 1.125rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-logo .icon-primary {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 0.2rem;
    }

    .mobile-logo .logo-text {
        display: none;
    }

    .auth-panel {
        padding: 24px 24px 18px;
        margin-right: 0;
    }

    .panel-top {
        top: 23px;
        right: 24px;
    }

    .switch-prefix {
        display: none;
    }

    .auth-inner {
        padding: 14px 0 6px;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        max-width: none;
    }

    .auth-visual .logo-text {
        display: none;
    }

    .auth-visual .logo .icon-primary {
        width: 2rem;
        height: 2rem;
    }

    .auth-panel {
        padding: 22px 18px 16px;
    }

    .form-card-title {
        font-size: 1.4rem;
    }
}

.rightclick-menu {
    position: fixed;
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 240px;
    z-index: 10000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    padding: 8px 0;
    animation: ctxFadeIn 0.2s ease-out;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.context-section {
    padding: 0;
}

.context-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #444;
    padding: 6px 16px 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.context-text {
    padding: 0 16px 8px;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    white-space: pre-wrap;
}

.rightclick-menu a {
    display: block;
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

.rightclick-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.rightclick-menu a svg {
    color: #333;
}

.rightclick-menu a.ctx-danger,
.rightclick-menu a.ctx-danger svg {
    color: #d93025;
}

.rightclick-menu a.ctx-danger:hover {
    background: rgba(217, 48, 37, 0.06);
}

.ctx-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

@keyframes ctxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .from-you,
    .auth-form.active,
    .auth-inner,
    .auth-inner.is-switching,
    .auth-inner.is-entering,
    .error-message.show {
        animation: none;
        transition: none;
    }
}

.account-dashboard {
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 10% -10%, rgba(35, 154, 77, 0.08), transparent 60%),
        radial-gradient(100% 50% at 90% 0%, rgba(34, 195, 154, 0.07), transparent 55%),
        #f4f7f5;
    color: var(--text-body);
    padding-bottom: 48px;
}

.dash-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 62px;
    padding: 0 24px 0 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: var(--text-strong);
    border: 0;
    box-shadow: none;
    overflow: visible;
}

.dash-header::before,
.dash-header::after {
    content: none !important;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 3px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    flex: none;
}

.dash-logo img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: block;
}

.dash-logo:hover {
    opacity: .82;
}

.dash-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, 46vw);
    max-width: 560px;
    display: flex;
    align-items: center;
    height: 34px;
    box-sizing: border-box;
    gap: 8px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #d3d3d3;
    padding: 0 12px;
    color: #605e5c;
    z-index: 2;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dash-search:focus-within {
    background: #ffffff;
    border-color: var(--ui-accent-border);
    box-shadow: 0 0 0 3px var(--ui-accent-soft);
}

.dash-search svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: #8a8886;
}

.dash-search input {
    flex: 1;
    min-width: 0;
    height: 20px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 20px;
    padding: 0;
    margin: 0;
    color: #201f1e;
}

.dash-search input::placeholder {
    color: #8a8886;
}

.dash-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.dash-search input::-webkit-search-decoration,
.dash-search input::-webkit-search-results-button {
    -webkit-appearance: none;
    display: none;
}

.dash-search-clear {
    flex: none;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    color: #8a8886;
    background: #ffffff;
    border: 1px solid #edebe9;
    border-radius: 50%;
    cursor: pointer;
}

.dash-search-clear:hover {
    color: #201f1e;
}

.dash-search input:not(:placeholder-shown) ~ .dash-search-clear {
    display: flex;
}

.dash-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    box-shadow: none;
    -webkit-box-shadow: none;
    padding: 6px;
    z-index: 70;
    display: none;
}

.dash-search-results.show {
    display: block;
}

.dash-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    color: #201f1e;
    cursor: pointer;
}

.dash-search-result .dsr-icon {
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f2f1;
    color: #605e5c;
}

.dash-search-result .dsr-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.dash-search-result .dsr-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-search-result .dsr-label {
    font-weight: 600;
    line-height: 1.25;
}

.dash-search-result .dsr-hint {
    font-size: 11.5px;
    color: #8a8886;
    line-height: 1.25;
}

.dash-search-result kbd {
    flex: none;
    color: #8a8886;
    border: 1px solid #edebe9;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.6;
    background: #ffffff;
    opacity: 0;
    transition: opacity .15s ease;
}

.dash-search-result:hover kbd,
.dash-search-result.active kbd {
    opacity: 1;
}

.dash-search-result:hover,
.dash-search-result.active {
    background: #f3f2f1;
}

.dash-search-empty {
    padding: 8px 10px;
    font-size: 13.5px;
    color: #8a8886;
}

.dash-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
    margin-left: auto;
    z-index: 2;
}

.dash-avatar-btn,
.dash-signout,
.dash-avatar-btn:hover,
.dash-signout:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    color: #8a8886;
    cursor: pointer;
}

.dash-avatar-btn:hover,
.dash-signout:hover {
    color: var(--ui-accent);
}

.dash-avatar-btn:focus-visible,
.dash-signout:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

.dash-avatar {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin: 0;
    border: none;
    background: var(--ui-accent-soft);
}

.dash-avatar[hidden] {
    display: none;
}

.dash-avatar-initials {
    font-size: 0.85rem;
    font-weight: 700;
    color: #8a8886;
    line-height: 1;
}

.dash-avatar-initials[hidden] {
    display: none;
}

.dash-signout svg {
    display: block;
    width: 18px;
    height: 18px;
}

.dash-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 26px auto 0;
    padding: 0 24px;
}

.dash-sidebar {
    position: fixed;
    top: 88px;
    left: max(24px, calc((100vw - 1140px) / 2 + 24px));
    z-index: 55;
    width: 250px;
}

.dash-nav {
    --dash-nav-pad-x: 1.2rem;
    --dash-nav-row-py: 0.44rem;

    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 0 0.9rem 4rem var(--dash-nav-pad-x);
    border-right: 1px solid #e4e6e8;
}

.dash-nav-pill {
    position: absolute;
    left: var(--dash-nav-pad-x);
    top: 0;
    width: 3px;
    height: 0;
    border-radius: 99px;
    background: var(--ui-accent);
    opacity: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;

    z-index: 2;
    will-change: transform;
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1),
        height 0.2s ease,
        opacity 0.18s ease,
        background-color 0.25s ease;
}

.dash-nav-pill.is-on {
    opacity: 1;
}

.dash-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-align: left;
    border: 0;
    background: transparent;
    padding: var(--dash-nav-row-py) 0.65rem var(--dash-nav-row-py) 0.9rem;
    border-radius: 7px;
    font: inherit;
    font-size: 0.865rem;
    font-weight: 600;
    color: #5d6165;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-nav-item:hover {
    background: #eef0f2;
    color: #2b2b2b;
}

.dash-nav-item.active {
    background: transparent;
    color: #157a38;
    font-weight: 700;
}

.dash-nav-item.active:hover {
    background: #eef0f2;
}

.connection-group {
    margin: 1.75rem 0 2rem;
}

.connection-card {
    overflow: hidden;
    padding: 6px 1.25rem 0;
}

.connection-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
    padding: 1rem 0;
    cursor: pointer;
}

.connection-setting + .connection-setting {
    border-top: 1px solid #edf0ed;
}

.connection-setting-copy {
    display: grid;
    gap: 0.3rem;
    max-width: 620px;
}

.connection-setting-copy strong {
    color: #252b27;
    font-size: 0.91rem;
    font-weight: 700;
}

.connection-setting-copy > span {
    color: #707873;
    font-size: 0.82rem;
    line-height: 1.55;
}

.connection-toggle {
    appearance: none;
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    margin: 0;
    border: 0;
    border-radius: 99px;
    background: #d7dcd8;
    cursor: pointer;
    transition: background 0.18s ease;
}

.connection-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px #0002;
    transition: transform 0.18s ease;
}

.connection-toggle:checked {
    background: #168447;
}

.connection-toggle:checked::after {
    transform: translateX(18px);
}

.connection-toggle:focus-visible {
    outline: 3px solid #16844755;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .connection-card {
        padding: 6px 0.95rem 0;
    }

    .connection-setting {
        gap: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-main.is-switching {
        filter: none;
        opacity: 0;
    }
}

.dash-main {
    grid-column: 2;
    min-width: 0;
    padding-top: 4px;

    transition: filter 0.3s ease-out,
        opacity 0.3s ease-out;
}

.dash-main.is-switching {
    filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: filter 0.18s ease-in,
        opacity 0.18s ease-in;
}

.dash-section {
    display: none;
}

.dash-section.active {
    display: block;
}

#section-security {
    max-width: 880px;
}

#section-security > .dash-title {
    margin-bottom: 6px;
}

#section-security > .dash-sub {
    margin-bottom: 26px;
    line-height: 1.5;
}

#section-security > .dash-card {
    padding: 26px 28px;
    margin-bottom: 18px;
}

#section-security > .dash-card:last-child {
    margin-bottom: 0;
}

#section-security > .dash-card:first-of-type > p {
    margin-bottom: 0;
}

#section-security #passwordCard > p {
    margin-bottom: 22px;
}

#section-security #googleProviderCard > p {
    margin-bottom: 0;
}

#section-security #passwordForm {
    display: grid;
    gap: 14px;
}

#section-security #passwordForm .field {
    margin-bottom: 0;
}

#section-security #passwordForm .field input.invalid {
    border-color: var(--danger);
    background: var(--danger-soft);
}

#section-security #passwordForm .field input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.20);
}

#section-security #passwordForm .error-message {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.35;
}

#section-security #passwordForm .btn.primary {
    justify-self: end;
    margin: 0;
}

#section-security .password-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#section-security #passwordMsg {
    margin: 0;
}

@media (max-width: 520px) {
    #section-security .password-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    #section-security #passwordForm .btn.primary {
        width: 100%;
    }
}

.dash-title {
    margin: 4px 0 4px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.dash-sub {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dash-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(16, 36, 24, 0.05);
}

.dash-card h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-strong);
}

.dash-card h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-strong);
}

.dash-card p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dash-card.danger {
    border-color: rgba(217, 48, 37, 0.22);
    background: linear-gradient(180deg, rgba(217, 48, 37, 0.02), #ffffff);
}

#section-data .dash-card h2 {
    margin-bottom: 2px;
}

.history-card .history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.history-card .history-head p {
    margin-bottom: 0;
}

.history-card .history-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.history-card .history-head .btn {
    flex: 0 0 auto;
}

.history-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    max-height: 620px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.history-day {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 0 5px;
    background: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.history-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.history-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.history-item:first-of-type,
.history-day + .history-item {
    border-top: 0;
}

.history-item:first-of-type::before,
.history-day + .history-item::before {
    display: none;
}

.history-list.is-scrollable .history-day {
    padding-right: 18px;
}

.history-list.is-scrollable .history-item {
    padding-right: 18px;
}

.history-list.is-scrollable .history-item::before {
    right: 18px;
}

.history-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--ui-accent);
}

.history-item[data-kind="action"] .history-dot {
    background: #d99b00;
}

.history-item[data-kind="auth"] .history-dot {
    background: #2f7de1;
}

.history-main {
    flex: 1 1 auto;
    min-width: 0;
}

.history-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-path {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.history-time {
    flex: 0 0 auto;
    padding-top: 2px;
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.history-empty {
    margin: 10px 0 0;
}

@media (max-width: 520px) {
    .history-card .history-head {
        flex-direction: column;
        align-items: stretch;
    }

    .history-card .history-head .btn {
        align-self: flex-start;
    }
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 18px;
    align-items: start;
}

.bento-grid > .dash-card,
.bento-side > .dash-card {
    margin-bottom: 0;
}

.bento-grid .bento-devices {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.bento-grid .bento-devices .ms-device-list {
    flex: 0 0 auto;
}

.bento-devices > .btn {
    align-self: flex-start;
    width: auto;
}

.bento-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.bento-side > .dash-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.bento-side > .stat-card:not(.storage-overview) .stat-head {
    margin-bottom: 8px;
}

.bento-side > .stat-card:not(.storage-overview) .stat-value {
    margin-bottom: 2px;
}

.bento-side > .stat-card:not(.storage-overview) .stat-hint {
    margin: 0 0 10px;
}

.bento-grid .storage-pie-side {
    width: 100%;
    align-self: auto;
    justify-content: space-between;
}

.bento-side .storage-overview {
    align-items: stretch;
    gap: 10px;
}

.bento-side .storage-overview .stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.bento-side .storage-overview .stat-head h3 {
    margin: 0;
}

.bento-side .storage-overview > .stat-value {
    margin: 0;
}

.bento-side .storage-facts {
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 10px;
}

.bento-side .storage-facts .stat-value {
    margin: 0 0 8px;
}

.bento-side .storage-facts {
    margin-top: 0;
    padding-top: 2px;
}

.storage-pie-side .storage-legend {
    flex: 0 0 auto;
    min-width: 0;
    gap: 10px;
    align-items: flex-end;
    margin-left: auto;
    padding-left: 12px;
}

.storage-pie-side .storage-legend .legend-row {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

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

.stat-card .stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stat-card .stat-head h3 {
    margin: 0;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--ui-accent-soft);
    border: 1px solid var(--ui-accent-border);
    color: var(--ui-accent);
}

.stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-value {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-strong);
}

.stat-hint {
    margin: -8px 0 14px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.ms-device-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 16px;
    background: var(--ui-accent-soft);
    border: 1px solid var(--ui-accent-border);
    border-radius: 12px;
    padding: 12px 16px;
}

.ms-device-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ms-device-row + .ms-device-row {
    border-top: 1px solid var(--ui-accent-border);
    padding-top: 12px;
}

.ms-device-art {
    flex: 0 0 auto;
    width: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ms-device-art svg {
    height: 72px;
    width: auto;
    display: block;
    filter: drop-shadow(0 3px 4px rgba(20, 80, 45, 0.15)) drop-shadow(0 0 7px rgba(35, 154, 77, 0.10));
}

.ms-device-art svg.device-art-phone {
    filter: none;
}

.ms-device-art svg.device-art-laptop {
    filter: none;
}

.ms-device-info {
    min-width: 0;
    padding: 6px 0;
}

.ms-device-info h4 {
    margin: 0 0 3px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ms-chip {
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--ui-accent);
    background: #ffffff;
    border: 1px solid var(--ui-accent-border);
    border-radius: 999px;
    padding: 2px 8px;
}

.ms-device-model {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ms-device-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ms-device-more {
    padding: 10px 0 2px;
    border-top: 1px solid var(--ui-accent-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.storage-overview {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.storage-pie-side {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.pie-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
}

.storage-pie {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#e9edeb 0% 100%);
}

.storage-pie-center {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64%;
    height: 64%;
    background: #ffffff;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.storage-pie-center strong {
    font-size: 1rem;
    color: var(--text-strong);
}

.storage-pie-center span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.pie-free {
    margin: -4px 0 10px;
}

.pie-free strong {
    color: var(--text-strong);
}

.storage-facts {
    min-width: 200px;
    flex: 1 1 200px;
}

.storage-facts .stat-value {
    margin-bottom: 2px;
}

.storage-facts .stat-hint {
    margin: 0 0 12px;
}

.storage-legend {
    flex: 1 1 240px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-strong);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.legend-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-val {
    font-weight: 600;
}

.legend-pct {
    color: var(--text-muted);
    min-width: 2.6rem;
    text-align: right;
}

.legend-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.storage-summary {
    display: grid;
    grid-template-columns: minmax(180px, 0.55fr) minmax(320px, 1fr);
    gap: 40px;
    align-items: start;
}

.storage-total-label {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-strong);
}

.storage-total-value {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.storage-total-value strong {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

.storage-total-quota {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.storage-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.storage-use-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-strong);
    align-self: flex-start;
}

.storage-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    background: #eef2f0;
    overflow: hidden;
}

.storage-bar-seg,
.storage-bar-rest {
    height: 100%;
    flex: 0 0 auto;
}

.storage-bar-seg:first-child { border-radius: 999px 0 0 999px; }
.storage-bar-seg:last-of-type,
.storage-bar-rest { border-radius: 0 999px 999px 0; }

.storage-section-card .storage-legend {
    flex: 0 0 auto;
    min-width: 0;
    margin-top: 4px;
}

.storage-section-card .legend-row {
    gap: 12px;
    padding: 3px 0;
    font-size: 0.86rem;
}

.storage-section-card .legend-val {
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 760px) {
    .storage-summary {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.setup-card .setup-head {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0;
    border-radius: 8px;
}

.setup-card .setup-head h2 {
    margin: 0 0 2px;
}

.setup-card .setup-head p {
    margin: 0;
}

.setup-chev {
    margin-left: auto;
    color: var(--text-muted);
    display: inline-flex;
    flex: 0 0 auto;
    transition: transform .18s ease;
}

.setup-chev svg {
    width: 16px;
    height: 16px;
}

.setup-head.closed .setup-chev {
    transform: rotate(0deg);
}

.setup-head:not(.closed) .setup-chev {
    transform: rotate(180deg);
}

.setup-list {
    overflow: hidden;
    opacity: 1;
    transition: max-height .34s cubic-bezier(.22, .9, .35, 1), opacity .26s ease, visibility .34s;
}

.setup-list::before {
    content: "";
    display: block;
    height: 14px;
}

.setup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-strong);
    padding: 12px 10px;
    border-radius: 0;
    cursor: pointer;
    transition: color .14s ease;
}

.setup-row:hover {
    color: var(--ui-accent);
    background: transparent;
}

.setup-row.done {
    color: var(--text-muted);
}

.setup-row.done .setup-text {
    text-decoration: line-through;
}

.setup-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.18);
    color: transparent;
    font-size: 0;
}

.setup-row.done .setup-mark {
    border-color: var(--ui-accent);
    background: var(--ui-accent);
    color: #ffffff;
    font-size: 0.7rem;
}

.reco-block {
    margin: 30px 0 16px;
}

.reco-block > h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-strong);
}

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

.reco-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 156px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 36, 24, 0.05);
    font: inherit;
    padding: 18px 20px;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease;
}

.reco-card:hover {
    background: #fafcfb;
    border-color: var(--ui-accent-border);
}

.reco-card::after {
    content: "";
    position: absolute;
    width: 118px;
    height: 118px;
    top: -42px;
    right: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 181, 105, 0.10), rgba(71, 181, 105, 0));
    pointer-events: none;
}

.reco-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-strong);
}

.reco-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.reco-icon {
    display: none;
}

.reco-arrow {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.9rem;
    color: var(--ui-accent);
}

.reco-art {
    position: absolute;
    z-index: 1;
    top: 34px;
    right: 18px;
    width: 104px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 7px 7px rgba(20, 80, 45, 0.14));
    transition: transform .2s ease;
}

.reco-art svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.reco-card:hover .reco-art {
    transform: translateY(-3px) rotate(-2deg);
}

.reco-card h4,
.reco-card p {
    position: relative;
    z-index: 2;
    max-width: 62%;
}

@media (max-width: 620px) {
    .reco-grid {
        grid-template-columns: 1fr;
    }
}

.dash-grid .dash-card {
    margin-bottom: 0;
}

.account-dashboard {
    width: 100%;
    overflow-x: clip;
}

.personal-head {
    margin-bottom: 18px;
}

.personal-head .dash-sub {
    margin-bottom: 0;
}

.personal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.28fr);
    align-items: start;
    gap: 16px;
}

.personal-layout .dash-card {
    margin-bottom: 0;
}

.personal-photo-card,
.personal-info-card {
    border-radius: 8px;
}

    .card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 18px;
}

.card-heading h2 {
    margin: 0;
    line-height: 34px;
}

.card-heading p {
    margin: 0 !important;
}

.card-heading-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
    border: 1px solid var(--ui-accent-border);
}

.card-heading-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.personal-photo-card .photo-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0 3px;
}

.personal-photo-card .profile-photo {
    width: 112px;
    height: 112px;
}

.photo-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-actions .muted {
    flex-basis: 100%;
    margin: 4px 0 0;
}

.remove-photo-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background: #edf1ee;
    border-color: #dfe6e1;
    color: #8a9a90 !important;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

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

.location-grid .field-full {
    grid-column: 1 / -1;
}

.form-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-input);
}

.form-group-heading > span {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-strong);
}

.form-group-heading p {
    margin: 0 !important;
}

.profile-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border-input);
}

.profile-form-footer .muted {
    margin-left: auto;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-card .btn {
    margin-left: auto;
}

.provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ui-accent);
    background: var(--ui-accent-soft);
    border: 1px solid var(--ui-accent-border);
    border-radius: 999px;
    padding: 3px 10px;
    width: fit-content;
}

.profile-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ui-accent-soft);
    border: 2px solid rgba(35, 154, 77, 0.35);
    box-shadow: 0 6px 18px rgba(35, 154, 77, 0.22);
    flex: 0 0 auto;
}

.profile-meta {
    flex: 1 1 200px;
    min-width: 0;
}

.profile-meta h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.profile-meta p {
    margin: 0 0 2px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.photo-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-row .btn {
    width: auto;
    min-width: 0;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    font: inherit;
    font-size: 0.94rem;
    color: var(--text-strong);
    background: #fbfdfc;
    border: 1px solid var(--border-input);
    border-radius: 12px;
    padding: 11px 13px;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.birth-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.birth-row #profileBirthDay {
    width: 84px;
    flex: 0 0 auto;
    text-align: center;
}

.birth-row #profileBirthYear {
    width: 96px;
    flex: 0 0 auto;
    text-align: center;
}

.month-select {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.month-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 0.94rem;
    color: var(--text-strong);
    background: #fbfdfc;
    border: 1px solid var(--border-input);
    border-radius: 12px;
    padding: 11px 13px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.month-select-btn svg {
    flex: none;
    margin-left: auto;
}

.month-select-btn:hover {
    border-color: #c6cfc9;
}

.month-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-btn-label.b-empty {
    color: var(--text-muted);
}

.month-select.open .month-select-btn {
    border-color: var(--ui-accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--ui-accent-ring);
}

.month-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: 12px;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 70;
    display: none;
}

.month-select.open .month-select-menu {
    display: block;
}

.month-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    color: var(--text-strong);
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.month-option:hover {
    background: #f3f8f4;
}

.month-option.selected {
    background: var(--ui-accent-soft);
    color: var(--ui-accent);
    font-weight: 600;
}

.field input:hover,
.field select:hover {
    border-color: #c6cfc9;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--ui-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--ui-accent-ring);
}

.profile-form .btn.primary {
    width: auto;
    min-width: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    gap: 8px;
}

.profile-form .btn.primary:disabled {
    background: #dfe6e1;
    border-color: #dfe6e1;
    color: #8a9a90;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

.profile-form .btn.primary:disabled:hover {
    background: #dfe6e1;
    border-color: #dfe6e1;
    color: #8a9a90;
    transform: none;
    filter: none;
}

.muted {
    color: var(--text-muted);
}

.muted.small,
.small {
    font-size: 0.78rem;
}

.btn.small {
    width: auto;
    min-width: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.btn.danger {
    background: var(--danger);
    border-color: transparent;
    color: #fff;
    width: auto;
    min-width: 0;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
}

#deleteDataBtn {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.btn.danger:hover {
    filter: saturate(1.15);
    box-shadow: 0 8px 20px -8px rgba(217, 48, 37, 0.6);
}

.device-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.device-section-head .muted { margin: 0; }

.device-section-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.emerald-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 36, 24, 0.40);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1300;
    animation: em-overlay-in 0.16s ease-out;
}
.emerald-modal {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-card), 0 20px 60px rgba(16, 36, 24, 0.3);
    overflow: hidden;
    animation: em-modal-in 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.emerald-modal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 24px 24px 0;
    text-align: center;
}
.emerald-modal-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ui-accent);
    color: #ffffff;
    margin-bottom: 12px;
}
.emerald-modal-icon svg { width: 24px; height: 24px; }
.emerald-modal.danger .emerald-modal-icon { background: #ee5a52; color: #ffffff; }
.emerald-modal-copy { min-width: 0; }
.emerald-modal-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.3;
}
.emerald-modal-sub {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.emerald-modal-body {
    padding: 0 24px;
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}
.emerald-modal-body p { margin: 0 0 6px; }
.emerald-modal-body p:last-child { margin-bottom: 0; }
.emerald-modal-foot {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 22px 24px 24px;
}
.emerald-modal-btn {
    appearance: none;
    font-family: inherit;
    border: 1px solid rgba(108, 117, 125, 0.2);
    background: rgba(108, 117, 125, 0.1);
    color: #52635a;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 10px 24px;
    min-width: 100px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.emerald-modal-btn:hover { background: rgba(108, 117, 125, 0.14); color: #34453b; }
.emerald-modal-btn:active { transform: translateY(1px); }
.emerald-modal-btn.primary,
.emerald-modal-btn.danger {
    color: #ffffff;
    border-color: rgba(238, 90, 82, 0.3);
}
.emerald-modal-btn.primary { background: var(--ui-accent); border-color: transparent; }
.emerald-modal-btn.primary:hover { background: var(--ui-accent-hover); }
.emerald-modal-btn.danger { background: #ee5a52; }
.emerald-modal-btn.danger:hover { background: #e53935; }
.emerald-modal-btn:focus-visible { outline: 2px solid var(--ui-accent-ring); outline-offset: 2px; }

.photo-crop-dialog {
    max-width: 380px;
    max-height: calc(100vh - 32px);
    padding: 22px 20px 0;
    overflow-y: auto;
}
@supports (height: 100dvh) {
    .photo-crop-dialog { max-height: calc(100dvh - 32px); }
}
.photo-crop-head { text-align: center; }
.photo-crop-head .emerald-modal-title { margin-bottom: 5px; }
.photo-crop-help {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.photo-crop-stage {
    position: relative;
    width: min(280px, calc(100vw - 72px));
    aspect-ratio: 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #e8eeea;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.photo-crop-stage.is-dragging { cursor: grabbing; }
.photo-crop-stage::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(22, 131, 71, 0.13);
    content: '';
    pointer-events: none;
}
.photo-crop-stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}
.photo-crop-zoom-label {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 280px;
    margin: 18px auto 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.photo-crop-zoom-label input {
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}
.photo-crop-zoom-label input::-webkit-slider-runnable-track {
    height: 5px;
    border: 1px solid #dce7df;
    border-radius: 999px;
    background: linear-gradient(90deg, #168347, #79c993);
}
.photo-crop-zoom-label input::-moz-range-track {
    height: 5px;
    border: 1px solid #dce7df;
    border-radius: 999px;
    background: linear-gradient(90deg, #168347, #79c993);
}
.photo-crop-zoom-label input::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    margin-top: -7px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #168347;
    box-shadow: 0 1px 5px rgba(19, 70, 39, 0.28), 0 0 0 1px rgba(22, 131, 71, 0.35);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.photo-crop-zoom-label input::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #168347;
    box-shadow: 0 1px 5px rgba(19, 70, 39, 0.28), 0 0 0 1px rgba(22, 131, 71, 0.35);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.photo-crop-zoom-label input:hover::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow: 0 1px 6px rgba(19, 70, 39, 0.34), 0 0 0 3px rgba(22, 131, 71, 0.12);
}
.photo-crop-zoom-label input:hover::-moz-range-thumb {
    transform: scale(1.08);
    box-shadow: 0 1px 6px rgba(19, 70, 39, 0.34), 0 0 0 3px rgba(22, 131, 71, 0.12);
}
.photo-crop-zoom-label input:focus-visible {
    outline: 2px solid rgba(22, 131, 71, 0.45);
    outline-offset: 4px;
    border-radius: 999px;
}
.photo-crop-foot { padding: 18px 0 20px; }
.photo-crop-foot .emerald-modal-btn { min-width: 112px; }

@keyframes em-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes em-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .emerald-modal-overlay,
    .emerald-modal { animation: none; }
}

.device-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.device-item {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #fbfdfc;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.device-item:hover {
    background: #f3f8f4;
    border-color: rgba(35, 154, 77, 0.25);
}

.device-item .device-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.device-item .device-art {
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.device-item .device-art svg {
    display: block;
    width: 112px;
    height: 104px;
    filter: drop-shadow(0 3px 5px rgba(20, 80, 45, 0.14)) drop-shadow(0 0 8px rgba(35, 154, 77, 0.10));
}

.device-item .device-art svg.device-art-phone {
    filter: none;
}

.device-item .device-art svg.device-art-laptop {
    filter: none;
}

.device-item .device-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.device-item .device-name {
    font-weight: 700;
    color: var(--text-strong);
    font-size: 0.9rem;
}

.device-item .device-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.device-item button {
    width: auto;
    min-width: 0;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .dash-layout {
        grid-template-columns: 1fr;
        padding: 42px 14px 0;
        margin-top: 18px;
    }

    .dash-main {
        grid-column: 1;
    }

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

    .dash-sidebar {
        position: fixed;
        top: 80px;
        left: 14px;
        right: 14px;
        z-index: 55;
        width: auto;
    }

    .dash-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        border-radius: 999px;
        padding: 6px;
        gap: 4px;
        border-right: 0;
        border: 1px solid rgba(0, 0, 0, 0.06);
        background: rgba(255, 255, 255, 0.7);
    }

    .dash-nav::-webkit-scrollbar {
        display: none;
    }

    .dash-nav-item {
        flex: 1 0 auto;
        text-align: center;
        font-size: 0.78rem;
        padding: 8px 12px;
        border-radius: 999px;
    }

    .dash-nav-item.active {
        background: var(--ui-accent-soft);
        color: var(--ui-accent);
    }

    .dash-nav-pill {
        display: none;
    }

    .dash-hello-wrap,
    .dash-hello {
        display: none;
    }

    .dash-title {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-nav-pill,
    .dash-card,
    .device-item {
        transition: none;
    }

    .setup-list {
        transition: none;
    }
}

.account-dashboard .btn {
    width: auto;
    min-width: 0;
}

.dash-search-result kbd {
    width: auto;
    height: auto;
    min-height: 0;
    font-weight: 400;
    letter-spacing: 0;
}

.dash-header {
    box-shadow: none !important;
    text-shadow: none !important;
}

@media (max-width: 900px) {
    .personal-layout,
    .personal-info-card,
    .personal-photo-card,
    .profile-form,
    .profile-info-grid,
    .location-grid {
        min-width: 0;
        max-width: 100%;
    }

    .dash-header {
        gap: 10px;
        padding: 0 12px 0 14px;
    }
    .dash-search {
        width: min(340px, 52vw);
    }
    .dash-hello-wrap {
        display: none;
    }
    .dash-logo span {
        display: none;
    }
}

@media (max-width: 1050px) {
    .personal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .personal-photo-card .photo-row {
        flex-direction: row;
        align-items: center;
        text-align: left;
        justify-content: flex-start;
    }

    .personal-photo-card .photo-actions {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .personal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dash-layout {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .dash-sidebar,
    .dash-main,
    .personal-layout {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .personal-layout {
        display: block;
    }

    .personal-layout .personal-photo-card {
        margin-bottom: 12px;
    }

    .personal-photo-card .profile-photo {
        width: 96px;
        height: 96px;
    }

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

    .birth-row {
        gap: 6px;
    }

    .birth-row #profileBirthDay {
        width: 64px;
    }

    .birth-row #profileBirthYear {
        width: 74px;
    }

    .form-group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .profile-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .profile-form-footer .muted {
        margin: 0;
        text-align: center;
    }

    .profile-form-footer .btn.primary {
        width: 100%;
    }

    .dash-search {
        display: none;
    }
    .dash-top-right {
        gap: 8px;
    }
}
