.remember-login { margin: 4px 0 16px; align-items: flex-start; }
.remember-login small { display: block; color: #777; font-size: 11px; line-height: 1.6; margin-top: 4px; }
.login-options { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.login-options > .text-link { font-size: 12px; padding-top: 6px; }
.auth-notice { padding: 14px 16px; margin-bottom: 22px; border: 1px solid #ddd; border-radius: 14px; font-size: 13px; line-height: 1.6; }
.profile-modal-open, .profile-modal-open body { overflow: hidden; overscroll-behavior: none; }
#profile-dialog { width: 470px; max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e5e5e5; border-radius: 24px; background: white; box-shadow: 0 24px 90px rgb(0 0 0 / .14); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#profile-dialog::backdrop { background: rgb(0 0 0 / .15); backdrop-filter: blur(5px); }
#profile-dialog.is-account { width: 880px; }
#profile-dialog .auth-form { margin: 0; padding: 12px 32px 20px; border: 0; box-shadow: none; max-width: none; }
#profile-dialog .auth-form h2 { margin-top: 12px; }
#profile-dialog > .container { width: 100%; padding: 0 32px 20px; }
#profile-dialog .page-heading { margin: 10px 0 28px; }
#profile-dialog .page-heading h1 { font-size: clamp(26px, 4vw, 38px); overflow-wrap: anywhere; }
#profile-dialog .account-shortcuts { display: flex; }
#profile-dialog .account-tile { flex: 1 1 190px; }
#profile-dialog .empty-state { margin-block: 24px; }
#profile-modal-feedback { padding: 0 32px 16px; font-size: 12px; line-height: 1.5; }
#profile-modal-feedback:empty { padding-bottom: 0; }
@media (max-width: 560px) {
  #profile-dialog { max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  #profile-dialog .auth-form { padding: 10px 22px 22px; }
  #profile-dialog > .container { padding: 0 22px 20px; }
  #profile-dialog .account-tile { flex-basis: 100%; }
  #profile-modal-feedback { padding-inline: 22px; }
}
.account-email, .auth-form strong, .admin-customer, .order-page h1 { overflow-wrap: anywhere; }
.auth-form .form-field { margin-bottom: 20px; }
.auth-form .form-field > .muted { font-size: 12px; }
.auth-form .code-input { font-size: 27px; letter-spacing: .35em; padding-left: 22px; }
.local-mail-note { font-size: 12px; line-height: 1.7; padding: 15px 18px; border: 1px dashed #999; border-radius: 16px; margin: 20px 0; color: #555; }
.auth-secondary { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-top: 22px; font-size: 12px; }
button:disabled { cursor: default; opacity: .45; }
.account-error { min-height: 18px; }
.account-shortcuts { flex-wrap: wrap; }
.owner-tile { border-color: #111; }
.order-timeline { list-style: none; padding: 0 0 12px; margin: 28px 0; }
.order-timeline li { display: flex; justify-content: space-between; gap: 20px; position: relative; padding: 0 0 24px 26px; border-left: 1px solid #ddd; margin-left: 6px; line-height: 1.5; }
.order-timeline li::before { content: ''; position: absolute; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #b8b8b8; left: -7px; top: 3px; }
.order-timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.order-timeline li:last-child::before { background: #111; }
.order-timeline time { color: #777; font-size: 12px; }
.tracking-number { padding: 16px 20px; border-radius: 16px; background: #f6f6f6; overflow-wrap: anywhere; }
.delivery-summary { margin: 32px 0 20px; overflow-wrap: anywhere; }
.delivery-summary p { color: #555; line-height: 1.7; }
.order-details { max-width: 850px; margin-inline: auto; }
.order-page .page-heading h1 { font-size: clamp(24px, 3.5vw, 48px); }
.status-label { white-space: nowrap; }
.status-label[data-status="cancelled"] { color: #888; text-decoration: line-through; }
.status-label[data-status="delivered"] { background: #111; color: white; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 36px; }
.admin-stats > div { border: 1px solid #e6e6e6; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.admin-stats span, .admin-stats small { font-size: 12px; color: #777; }
.admin-stats strong { font-size: 30px; font-weight: 500; }
.admin-order { border: 1px solid #e4e4e4; border-radius: 24px; padding: 28px; margin-bottom: 20px; }
.admin-order-heading { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin-order-heading > div { flex: 1; min-width: 170px; }
.admin-order-heading h2 { font-size: 18px; overflow-wrap: anywhere; }
.admin-order-heading p { font-size: 12px; margin: 10px 0; }
.admin-order summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 22px 0; font-size: 13px; }
.admin-customer { line-height: 1.8; padding: 0 0 12px; font-size: 14px; }
.admin-status-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; padding-top: 20px; border-top: 1px solid #eee; }
.admin-status-form .form-field { min-width: 0; margin: 0; }
.admin-status-form select { width: 100%; border: 1px solid #e2e2e2; border-radius: 14px; padding: 14px; background: white; font: inherit; height: 50px; }
.admin-status-form .account-error { grid-column: 1 / -1; min-height: 0; margin: 0; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; font-size: 13px; }
.admin-page .order-item img { width: 90px; height: 90px; object-fit: contain; }
@media (max-width: 800px) {
  .admin-stats { gap: 10px; }
  .admin-stats > div { padding: 18px 12px; border-radius: 18px; }
  .admin-stats strong { font-size: 23px; }
  .admin-status-form { grid-template-columns: 1fr 1fr; }
  .admin-status-form > button { grid-column: 1 / -1; }
  .admin-order { padding: 20px; }
  .order-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats > div { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; }
  .admin-stats small { width: 100%; }
  .admin-status-form { grid-template-columns: 1fr; }
  .admin-order-heading { gap: 12px; }
  .order-timeline li { flex-direction: column; gap: 3px; }
  .admin-page .order-item { grid-template-columns: 60px 1fr; }
  .admin-page .order-item img { width: 60px; height: 60px; }
  .admin-page .order-item > strong { grid-column: 2; }
  .admin-pagination { gap: 10px; }
  .admin-pagination .button { padding: 12px 20px; }
}
