:root {
    --cream: #F7F4EC;
    --surface: #F0EADF;
    --white: #FFFEFA;
    --dark: #17262D;
    --black: #151515;
    --muted: #68645F;
    --terracotta: #BF5B40;
    --border: #D8D0C4;
    --success: #28764B;
    --danger: #B33B32;
    --shadow: 0 12px 35px rgba(23, 38, 45, 0.06);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--dark);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(191, 91, 64, 0.45);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

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

.sidebar {
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow-y: auto;
    padding: 34px 22px 24px;
    position: fixed;
    top: 0;
    width: 258px;
    z-index: 100;
}

.brand {
    align-items: center;
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin: 0 0 55px 10px;
}

.brand > span,
.footer-brand > span {
    color: var(--terracotta);
}

.brand small {
    color: #C6C7C1;
    display: block;
    flex-basis: 100%;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-top: 7px;
}

.sidebar-label,
.eyebrow {
    color: var(--muted);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.sidebar-label {
    color: #9DA6A7;
    margin: 0 0 15px 12px;
}

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

.nav-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #BEC6C6;
    display: flex;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.nav-item i {
    font-size: 15px;
    text-align: center;
    width: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.nav-item.active {
    background: var(--terracotta);
    color: white;
    font-weight: 600;
}

.sidebar-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding-top: 20px;
}

.back-to-store,
.logout-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #C3CBCB;
    display: flex;
    gap: 13px;
    min-height: 44px;
    padding: 11px 13px;
    text-align: left;
    transition: color 0.2s, background 0.2s;
}

.back-to-store:hover,
.logout-button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.logout-button {
    color: #F1A79A;
    width: 100%;
}

.dashboard-main {
    margin-left: 258px;
    min-width: 0;
    min-height: 100vh;
}

.dashboard-header {
    align-items: center;
    background: rgba(255, 254, 250, 0.88);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 104px;
    padding: 22px 5%;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-title .eyebrow {
    margin-bottom: 3px;
}

.header-title h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(24px, 3vw, 31px);
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.header-store-link {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 10px;
    padding: 11px 15px;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.header-store-link:hover {
    background: var(--surface);
    border-color: var(--terracotta);
}

.header-store-link i {
    color: var(--terracotta);
}

.menu-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--dark);
    display: none;
    font-size: 17px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.dashboard-content {
    margin: 0 auto;
    max-width: 1440px;
    padding: 36px 5% 24px;
}

.dashboard-section {
    display: none;
    animation: sectionEnter 0.25s ease both;
}

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

@keyframes sectionEnter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice {
    background: #F8E8E2;
    border: 1px solid #E7C5B9;
    border-radius: 10px;
    color: #843B29;
    margin-bottom: 22px;
    padding: 13px 16px;
}

.notice.is-success {
    background: #E6F3E9;
    border-color: #C1DFC8;
    color: var(--success);
}

.notice.is-error {
    background: #F8E8E2;
    border-color: #E7C5B9;
    color: #843B29;
}

.welcome-panel {
    align-items: center;
    background: var(--dark);
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    margin-bottom: 38px;
    min-height: 205px;
    overflow: hidden;
    padding: 35px 40px;
    position: relative;
}

.welcome-panel::after {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
    height: 300px;
    position: absolute;
    right: -75px;
    top: -105px;
    width: 300px;
}

.welcome-panel .eyebrow {
    color: #D6A18E;
    margin-bottom: 10px;
}

.welcome-panel h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.welcome-panel h2 span {
    color: #D9947E;
}

.welcome-panel p {
    color: #C5CDCC;
    margin-top: 12px;
}

.welcome-icon {
    align-items: center;
    background: rgba(191, 91, 64, 0.18);
    border: 1px solid rgba(217, 148, 126, 0.35);
    border-radius: 50%;
    color: #D9947E;
    display: flex;
    flex-shrink: 0;
    font-size: 37px;
    height: 100px;
    justify-content: center;
    margin-left: 20px;
    position: relative;
    width: 100px;
    z-index: 1;
}

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

.section-heading .eyebrow,
.panel-heading .eyebrow {
    margin-bottom: 5px;
}

.section-heading h2,
.panel-heading h2,
.section-intro h2 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.overview-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 30px;
}

.overview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.overview-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card-icon {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: 17px;
    height: 43px;
    justify-content: center;
    margin-bottom: 19px;
    width: 43px;
}

.card-icon.terracotta {
    background: #F6E8E2;
    color: var(--terracotta);
}

.card-icon.navy {
    background: #E6EBED;
    color: var(--dark);
}

.card-icon.sand {
    background: #F1EADD;
    color: #8A704B;
}

.card-label {
    color: var(--muted);
    font-size: 12px;
}

.card-value {
    color: var(--dark);
    font-family: "Playfair Display", serif;
    font-size: 33px;
    font-weight: 600;
    line-height: 1.3;
    margin: 4px 0;
}

.card-note {
    color: #89847D;
    font-size: 11px;
}

.content-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 25px;
    min-width: 0;
    padding: 25px;
}

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

.panel-heading h2 {
    font-size: 22px;
}

.text-link {
    background: transparent;
    border: 0;
    color: var(--terracotta);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.text-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.text-link:hover i {
    transform: translateX(3px);
}

.loading-state,
.empty-state {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 20px;
    text-align: center;
}

.loader {
    animation: spin 0.8s linear infinite;
    border: 3px solid var(--surface);
    border-radius: 50%;
    border-top-color: var(--terracotta);
    height: 28px;
    width: 28px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-size: 12px;
    margin-top: 12px;
}

.empty-icon {
    align-items: center;
    background: var(--surface);
    border-radius: 50%;
    color: var(--terracotta);
    display: flex;
    font-size: 24px;
    height: 66px;
    justify-content: center;
    margin-bottom: 18px;
    width: 66px;
}

.empty-state h3 {
    color: var(--dark);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    max-width: 420px;
}

.primary-button {
    align-items: center;
    background: var(--terracotta);
    border: 1px solid var(--terracotta);
    border-radius: 9px;
    color: white;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
    padding: 13px 18px;
    transition: background 0.2s, transform 0.2s;
}

.primary-button:hover {
    background: #A74931;
    transform: translateY(-1px);
}

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

.profile-summary-grid > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.profile-summary-grid span {
    color: var(--muted);
    font-size: 11px;
}

.profile-summary-grid strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.section-intro {
    margin: 0 0 27px;
}

.section-intro .eyebrow {
    margin-bottom: 7px;
}

.section-intro h2 {
    font-size: 31px;
}

.section-intro p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 7px;
}

.profile-form {
    display: grid;
    gap: 22px;
    max-width: 580px;
}

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

.form-field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.form-field input {
    background: #F7F4EC;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
    min-height: 47px;
    outline-offset: 2px;
    padding: 12px 14px;
    width: 100%;
}

.form-field input:read-only {
    cursor: default;
}

.form-help {
    color: var(--muted);
    font-size: 12px;
}

.settings-panel {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.settings-panel h3 {
    font-family: "Playfair Display", serif;
    font-size: 19px;
    margin-bottom: 4px;
}

.settings-panel p {
    color: var(--muted);
    font-size: 12px;
}

.danger-button {
    align-items: center;
    background: #FFF3F0;
    border: 1px solid #EBC6BD;
    border-radius: 8px;
    color: var(--danger);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    gap: 9px;
    padding: 12px 15px;
}

.danger-button:hover {
    background: #FBE4DF;
}

.dashboard-footer {
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 10px 20px;
    justify-content: space-between;
    margin-top: 42px;
    padding: 23px 0 5px;
}

.footer-brand {
    color: var(--dark);
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-overlay {
    background: rgba(12, 20, 24, 0.45);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.25s;
    z-index: 90;
}

/* Orders will be rendered by customer-dashboard.js. */

.orders-container {
    min-width: 0;
    overflow-x: auto;
}

.orders-table {
    border-collapse: collapse;
    min-width: 520px;
    text-align: left;
    width: 100%;
}

.orders-table th {
    background: var(--surface);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.orders-table th,
.orders-table td {
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
}

.orders-table td {
    font-size: 12px;
}

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

.order-status {
    border-radius: 30px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 9px;
    text-transform: capitalize;
}

.order-status.pending {
    background: #FFF0D8;
    color: #8C5A0A;
}

.order-status.processing {
    background: #E6EBF7;
    color: #34518A;
}

.order-status.shipped,
.order-status.completed,
.order-status.delivered {
    background: #E3F2E7;
    color: #28764B;
}

.order-status.cancelled,
.order-status.failed {
    background: #F8E4E0;
    color: #A33C30;
}

@media (min-width: 1500px) {
    .dashboard-content {
        padding-left: 65px;
        padding-right: 65px;
    }
}

@media (max-width: 1100px) {
    .sidebar {
        width: 230px;
    }

    .dashboard-main {
        margin-left: 230px;
    }

    .dashboard-content {
        padding-left: 4%;
        padding-right: 4%;
    }

    .overview-grid {
        gap: 12px;
    }

    .overview-card {
        padding: 18px;
    }
}

@media (max-width: 820px) {
    .sidebar {
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.12);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        width: 270px;
        z-index: 101;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .dashboard-header {
        gap: 13px;
        min-height: 88px;
        padding: 17px 4%;
    }

    .header-title {
        flex: 1;
        min-width: 0;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .header-title .eyebrow {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .header-store-link {
        font-size: 11px;
        padding: 10px;
    }

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

    .overview-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .dashboard-header {
        gap: 10px;
        min-height: 78px;
        padding: 14px 16px;
    }

    .menu-toggle {
        height: 39px;
        width: 39px;
    }

    .header-title h1 {
        font-size: 21px;
    }

    .header-store-link {
        border: 0;
        font-size: 0;
        gap: 0;
        padding: 10px;
    }

    .header-store-link i {
        font-size: 15px;
    }

    .dashboard-content {
        padding: 22px 16px;
    }

    .welcome-panel {
        align-items: flex-start;
        margin-bottom: 30px;
        min-height: 180px;
        padding: 27px 22px;
    }

    .welcome-panel h2 {
        font-size: 27px;
    }

    .welcome-panel p {
        font-size: 12px;
        max-width: 230px;
    }

    .welcome-icon {
        font-size: 23px;
        height: 53px;
        margin-left: 8px;
        width: 53px;
    }

    .welcome-panel::after {
        height: 180px;
        right: -80px;
        top: -70px;
        width: 180px;
    }

    .section-heading h2,
    .panel-heading h2 {
        font-size: 21px;
    }

    .overview-grid {
        gap: 11px;
    }

    .overview-card {
        padding: 16px;
    }

    .card-icon {
        height: 38px;
        margin-bottom: 14px;
        width: 38px;
    }

    .card-value {
        font-size: 29px;
    }

    .card-label {
        font-size: 11px;
    }

    .card-note {
        font-size: 10px;
    }

    .content-panel {
        padding: 18px 15px;
    }

    .panel-heading {
        align-items: flex-start;
        gap: 8px;
    }

    .panel-heading .eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .text-link {
        font-size: 11px;
        padding-top: 5px;
    }

    .profile-summary-grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .section-intro h2 {
        font-size: 27px;
    }

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

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

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

/* =========================================
   CUSTOMER PROFILE AND DELIVERY ADDRESSES
========================================= */

.address-empty-state {
    padding: 32px 24px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--dark);
    text-align: center;
}

.address-empty-state::before {
    content: "\f2bb";
    display: block;
    margin-bottom: 14px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 30px;
    color: var(--muted);
}

.address-empty-state p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

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

.address-card {
    display: flex;
    flex-direction: column;
    gap: 17px;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-card:hover {
    border-color: var(--muted);
    box-shadow: 0 8px 24px rgba(23, 38, 45, 0.06);
}

.address-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.address-card-title {
    margin: 0;
    color: var(--dark);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.address-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 20px;
    background: #E4EFE6;
    color: #285C3A;
    font-size: 10px;
    font-weight: 700;
}

.address-default-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #39834F;
}

.address-card-details {
    display: grid;
    gap: 7px;
}

.address-card-details p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.address-card-details p:first-child {
    color: var(--dark);
    font-weight: 600;
}

.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.address-action-button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--dark);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.address-action-button:hover {
    border-color: var(--dark);
    background: var(--surface);
}

.address-action-button:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 3px;
}

.address-action-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.address-delete-button {
    color: #A33A32;
}

.address-delete-button:hover {
    border-color: #A33A32;
    background: #FFF0EE;
}

.profile-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.profile-form input[type="checkbox"] {
    width: 17px;
    min-height: 17px;
    accent-color: var(--dark);
    cursor: pointer;
}

@media (max-width: 760px) {
    .address-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .address-card {
        padding: 18px;
    }

    .address-card-actions {
        gap: 7px;
    }

    .address-action-button {
        min-height: 40px;
        padding: 9px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .address-card,
    .address-action-button {
        transition: none;
    }
}


/* Dashboard section back navigation */
.dashboard-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-back-button:hover {
    background: var(--surface);
    border-color: var(--dark);
}

.dashboard-back-button:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 3px;
}

/* Customer profile photo */
.profile-photo-panel {
    margin-bottom: 22px;
}

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

.profile-photo-frame {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
}

.profile-photo-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo-preview[hidden],
.profile-photo-placeholder[hidden] {
    display: none;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 38px;
}

.profile-photo-details {
    flex: 1 1 240px;
    min-width: 0;
}

.profile-photo-details h3 {
    margin: 0 0 8px;
    color: var(--dark);
}

.profile-photo-details p {
    margin: 6px 0;
}

.profile-photo-help {
    color: var(--muted);
    font-size: 12px;
}

.profile-photo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.profile-photo-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.profile-photo-status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .profile-photo-card {
        align-items: flex-start;
        gap: 16px;
    }

    .profile-photo-frame {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
    }

    .profile-photo-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Dashboard header profile photo */
.dashboard-header-account {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 12px;
}

.dashboard-header-photo,
.dashboard-header-photo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--terracotta, #BF5B40);
    box-sizing: border-box;
}

.dashboard-header-photo {
    object-fit: cover;
}

.dashboard-header-photo[hidden],
.dashboard-header-photo-placeholder[hidden] {
    display: none;
}

.dashboard-header-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface, #F0EADF);
    color: var(--dark, #17262D);
    font-size: 18px;
}

@media (max-width: 480px) {
    .dashboard-header-photo,
    .dashboard-header-photo-placeholder {
        width: 36px;
        height: 36px;
    }
}
