.profile-intro { padding: 54px 0 34px; }
.profile-intro h1 { margin: 0 0 14px; color: var(--brand-forest); font-size: clamp(36px, 4vw, 54px); line-height: 1.15; letter-spacing: -.045em; }
.profile-intro p { margin: 0; color: #526056; line-height: 1.8; }
.profile-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 28px; align-items: start; padding-bottom: 65px; }
.profile-workspace[hidden] { display: none; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.profile-section-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.profile-edit { color: var(--brand-forest); font-size: 13px; font-weight: 750; text-decoration: none; }
.profile-edit:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-order-list { display: grid; gap: 14px; }
.profile-order-tabs { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 100%; padding: 5px; margin-bottom: 23px; border: 1px solid var(--line); border-radius: 999px; background: #0f3d2e05; }
.profile-tab-indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 2); border-radius: 999px; background: var(--brand-forest); pointer-events: none; transform: translateX(0); transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.profile-order-tabs[data-view="past"] .profile-tab-indicator { transform: translateX(100%); }
.profile-order-tabs button { position: relative; z-index: 1; min-width: 0; padding: 10px 19px; border: 0; border-radius: 999px; background: transparent; color: #526056; font: inherit; font-size: 13px; font-weight: 750; transition: color .2s ease; }
.profile-order-tabs button[aria-selected="true"] { color: #fff; }
.profile-order { box-sizing: border-box; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface, #fff); }
.profile-order-summary { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(140px) auto 192px; align-items: center; gap: 16px; padding: 23px 25px; cursor: pointer; list-style: none; }
.profile-order-summary::-webkit-details-marker { display: none; }
.profile-order-summary:hover { background: #0f3d2e04; }
.profile-order-summary:focus-visible { outline: 2px solid var(--brand-green); outline-offset: -4px; border-radius: 20px; }
.profile-order-identity { grid-column: 1; grid-row: 1; min-width: 0; }
.profile-order-number { display: flex; gap: 6px; margin-bottom: 7px; color: var(--brand-forest); font-size: 19px; font-weight: 800; }
.profile-order-identity time { display: block; color: #617067; font-size: 12px; }
.profile-order-reference { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; color: #617067; font-size: 11px; }
.profile-order-summary-status { grid-column: 2; grid-row: 1; justify-self: end; box-sizing: border-box; min-width: 0; max-width: 140px; text-align: center; overflow-wrap: anywhere; font-weight: 750; line-height: 1.4; }
.profile-order-total { display: inline-flex; grid-column: 3; grid-row: 1; align-items: center; justify-content: center; justify-self: end; box-sizing: border-box; min-width: 84px; height: 48px; margin: 0; padding: 0 12px; border: 1px solid #0f3d2e50; border-radius: 12px; background: var(--surface, #fff); white-space: nowrap; color: var(--brand-forest); font-size: 20px; font-variant-numeric: tabular-nums; }
.profile-order-toggle { display: inline-flex; grid-column: 4; grid-row: 1; align-items: center; justify-content: space-between; justify-self: end; box-sizing: border-box; width: 192px; height: 48px; padding: 0 14px; gap: 12px; border: 1px solid var(--brand-forest); border-radius: 12px; background: var(--brand-forest); color: #fff; font-size: 14px; font-weight: 750; }
.profile-order-toggle-label { white-space: nowrap; }
.profile-order-summary:hover .profile-order-toggle { background: #0b3024; border-color: #0b3024; }
.profile-order-chevron { display: block; flex: 0 0 18px; width: 18px; height: 18px; transform: rotate(0deg); transform-origin: center; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.profile-order[open]:not(.is-closing) .profile-order-chevron { transform: rotate(180deg); }
.profile-order-content { padding: 0 25px 26px; border-top: 1px solid var(--line); transition: opacity .18s ease; }
.profile-order.is-closing .profile-order-content { opacity: 0; }
.profile-order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 24px 0; }
.profile-order-meta > div { display: grid; justify-items: start; gap: 8px; }
.profile-order-label { color: #617067; font-size: 12px; }
.profile-order-meta time { font-size: 13px; }
.profile-order-status { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #e8f0e8; color: var(--brand-forest); font-size: 12px; }
.profile-order-status-failed, .profile-order-status-cancelled { background: #f8e8e4; color: #933c29; }
.profile-order-status-sending { background: #f2eddd; color: #75602b; }
.profile-order-status-reviewing { background: #f2eddd; color: #75602b; }
.profile-order-status-delivered { background: #d9eee0; color: #194b31; }
.profile-order-content h3 { margin: 0 0 10px; font-size: 15px; }
.profile-order-items { margin: 0; padding: 0; list-style: none; }
.profile-order-items li { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-item-picture { display: grid; place-items: center; flex: 0 0 62px; width: 62px; height: 62px; overflow: hidden; border-radius: 12px; color: var(--brand-forest); background: #edf1eb; font-size: 12px; font-weight: 800; }
.profile-item-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-item-copy { flex: 1; min-width: 0; }
.profile-item-copy h4 { margin: 0 0 6px; overflow-wrap: anywhere; font-size: 14px; }
.profile-item-copy p { margin: 0; color: #617067; font-size: 11px; line-height: 1.7; }
.profile-item-quantity { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-order-items li > strong { white-space: nowrap; font-size: 15px; }
.profile-order-details { margin: 20px 0 0; font-size: 12px; }
.profile-order-details > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 15px; padding: 7px 0; }
.profile-order-details dt { color: #617067; }
.profile-order-details dd { margin: 0; overflow-wrap: anywhere; }
.profile-order-details a { color: var(--brand-forest); text-underline-offset: 3px; }
.profile-order-details .profile-order-grand-total { margin-top: 17px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.profile-order-grand-total dt { color: var(--brand-forest); }
.profile-order-grand-total dd { text-align: right; }
.profile-information { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #edf1eb; }
.profile-avatar { display: block; width: 54px; height: 54px; margin-bottom: 22px; background: var(--brand-forest); -webkit-mask: url('assets/profile-icon.png') center / contain no-repeat; mask: url('assets/profile-icon.png') center / contain no-repeat; }
.profile-information h2 { margin: 0 0 13px; font-size: 21px; letter-spacing: -.025em; }
.profile-full-name { margin: 0 0 22px; color: var(--brand-forest); font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.profile-details { margin: 0 0 23px; }
.profile-details > div { padding: 13px 0; border-top: 1px solid var(--line); }
.profile-details > div[hidden] { display: none; }
.profile-details dt { margin-bottom: 6px; color: #617067; font-size: 11px; }
.profile-details dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.profile-edit { display: flex; justify-content: space-between; padding: 0 0 24px; }
.profile-text-button { padding: 7px 0; border: 0; background: transparent; color: var(--brand-forest); font: inherit; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.profile-more { display: block; margin: 24px auto 0; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--brand-forest); font: inherit; font-size: 13px; font-weight: 750; }
.profile-more[hidden] { display: none; }
.profile-feedback { color: #617067; font-size: 13px; line-height: 1.7; }
.profile-feedback:empty { display: none; }
.profile-orders-empty { padding: 45px 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface, #fff); text-align: center; }
.profile-orders-empty > span { color: var(--brand-green); font-size: 36px; }
.profile-orders-empty h3 { margin: 16px 0 12px; font-size: 23px; letter-spacing: -.035em; }
.profile-orders-empty p { margin: 0 0 23px; color: #617067; font-size: 13px; line-height: 1.8; }
.profile-history-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-delete-button { min-height: 44px; padding: 10px 15px; border: 1px solid #0f3d2e50; border-radius: 10px; background: transparent; color: #9d352d; font: inherit; font-size: 12px; font-weight: 750; }
.profile-delete-button:hover { background: #f8ece8; }
.profile-delete-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 48px 28px 28px; border: 1px solid var(--line); border-radius: 24px; background: #fffefd; color: var(--brand-forest); }
.profile-delete-dialog::backdrop { background: #0f231b80; }
.profile-delete-dialog h2 { margin: 0 0 18px; font-size: 25px; line-height: 1.4; }
.profile-delete-dialog p { font-size: 13px; line-height: 1.8; }
.profile-delete-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-forest); font-size: 28px; }
.profile-delete-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; }
.profile-delete-error { color: #a1342b; }
.profile-delete-error:empty { display: none; }
.profile-delete-dialog button:disabled, .profile-delete-button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 800px) { .profile-workspace { grid-template-columns: minmax(0, 1fr); } .profile-information { max-width: none; } .profile-intro { padding-top: 38px; } }
@media (max-width: 1100px) { .profile-order-summary { grid-template-columns: minmax(0, 1fr) fit-content(140px) auto; } .profile-order-toggle { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 480px) { .profile-order-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px 17px; } .profile-order-identity { grid-column: 1 / -1; } .profile-order-summary-status { grid-column: 1; grid-row: 2; justify-self: start; } .profile-order-total { grid-column: 2; grid-row: 2; } .profile-order-toggle { grid-row: 3; width: 100%; } .profile-order-content { padding-inline: 17px; } .profile-section-heading { gap: 12px; align-items: flex-start; } .profile-order-details > div { grid-template-columns: 90px minmax(0,1fr); } .profile-order-meta { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .profile-order-chevron, .profile-order-content, .profile-tab-indicator, .profile-order-tabs button { transition: none; } }
