/* Account: the sign-in sheet (same look as the designer's Save sheet; copied here so every page has it),
   the account button + menu in the top nav, and the Saved designs / Order history pages. See js/account.js. */
.bd-sheet { width: min(440px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); margin: auto; padding: 0; border: 1px solid rgba(14,57,86,.12); border-radius: 18px; background: #f7f8f9; color: var(--brand); font-family: "Inter Tight", system-ui, sans-serif; box-shadow: 0 30px 80px -30px rgba(10,40,57,.55); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1); overflow: auto; }
.bd-sheet.is-open { opacity: 1; transform: none; }
.bd-sheet::backdrop { background: rgba(6,30,44,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.bd-sheet.is-open::backdrop { opacity: 1; }
.bd-sheet.is-phone { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); }
.bd-sheet.is-phone.is-open { transform: none; }
.bd-grab { display: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: rgba(14,57,86,.2); }
.bd-sheet.is-phone .bd-grab { display: block; }
.bd-x { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand); cursor: pointer; }
.bd-x:hover { background: rgba(14,57,86,.06); }
.bd-body { display: flex; flex-direction: column; gap: 14px; padding: 34px 32px 30px; }
.bd-sheet.is-phone .bd-body { padding: 18px 22px 26px; }
.bd-mark { display: inline-flex; align-items: flex-start; gap: 2px; }
.bd-mark b { font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: -0.045em; }
.bd-mark i { display: inline-flex; align-items: center; justify-content: center; width: 10px; height: 10px; border: 1.1px solid currentColor; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 3.6px; }
.bd-h { margin: 8px 0 0; font-family: inherit; font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; text-transform: none; }
.bd-sub { margin: 0 0 6px; font-weight: 300; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 0; padding: 0 20px; border: 1px solid rgba(14,57,86,.25); border-radius: 999px; background: #ffffff; color: var(--brand); font: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.bd-btn:hover { border-color: var(--brand); }
.bd-btn--primary { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.bd-btn--primary:hover { background: var(--ink); }
.bd-btn--line { background: transparent; }
.bd-btn:focus-visible, .bd-opt:focus-visible, .bd-link:focus-visible, .bd-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.bd-hint { margin: -6px 0 4px; text-align: center; font-size: 11px; color: #5b6774; }
.bd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6774; }
.bd-or::before, .bd-or::after { content: ""; flex: 1; height: 1px; background: rgba(14,57,86,.14); }
.bd-email { display: flex; flex-direction: column; gap: 10px; }
.bd-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6774; }
.bd-field { width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 16px; border: 1px solid rgba(14,57,86,.25); border-radius: 12px; background: #ffffff; color: var(--brand); font: inherit; font-size: 16px; }
.bd-field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,57,86,.1); }
.bd-field.bad { border-color: #a3122f; }
.bd-fine { margin: 4px 0 0; font-size: 11px; line-height: 1.6; color: #5b6774; }
.bd-fine a { color: var(--brand); }
.bd-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 6px; }
.bd-digit { width: 100%; height: 54px; box-sizing: border-box; border: 1px solid rgba(14,57,86,.25); border-radius: 12px; background: #ffffff; color: var(--brand); text-align: center; font: inherit; font-size: 22px; font-weight: 300; }
.bd-digit:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,57,86,.1); }
.bd-link { align-self: center; margin: 2px 0 0; padding: 10px; border: 0; background: none; color: var(--brand); font: inherit; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bd-busy { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0 34px; font-size: 13px; color: var(--ink-soft); }
.bd-busy p { margin: 0; }
.bd-spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(14,57,86,.15); border-top-color: var(--brand); animation: bd-spin .8s linear infinite; }
@keyframes bd-spin { to { transform: rotate(360deg); } }
.bd-tick { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: var(--cream); animation: bd-heart .55s cubic-bezier(.2,.7,.2,1); }
.bd-done p { color: var(--brand); font-size: 15px; }
.bd-copyrow { display: flex; gap: 8px; margin-top: 8px; }
.bd-copyrow .bd-field { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-soft); }
.bd-copybtn { width: auto; flex: none; min-width: 124px; }
.bd-copybtn.is-done { background: #ffffff; color: var(--brand); }
.bd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.bd-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border: 1px solid rgba(14,57,86,.12); border-radius: 14px; background: #ffffff; color: var(--brand); text-decoration: none; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s, transform .15s; }
.bd-opt:hover { border-color: var(--brand); transform: translateY(-1px); }
.bd-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(14,57,86,.06); }
.bd-toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--brand); color: var(--cream); font-family: "Inter Tight", system-ui, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 18px 40px -18px rgba(10,40,57,.6); opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.bd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bd-item { display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.bd-thumb { flex: none; width: 72px; height: 72px; box-sizing: border-box; padding: 6px; object-fit: contain; border: 1px solid rgba(14,57,86,.12); border-radius: 14px; background: #ffffff; }
.bd-item .bd-sub { margin: 0; color: var(--brand); }
.bd-item .bd-sub span { color: var(--ink-soft); }

/* ---- nav: Sign in / signed-in account button and its menu ---- */
.acct { position: relative; display: inline-flex; align-items: center; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 13px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.acct-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.acct-ic { display: none; }
.acct-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: currentColor; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.acct-av span { color: #f2f3f5; mix-blend-mode: normal; }
.bn.dark .acct-av span, .acct-dark .acct-av span { color: #0e3956; }
.acct-btn--in::after { content: ""; width: 5px; height: 5px; margin: -3px 0 0 1px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.acct-menu { position: absolute; right: -12px; top: calc(100% + 4px); z-index: 70; min-width: 230px; padding: 8px 18px 10px; border: 1px solid rgba(14,57,86,.12); border-radius: 16px; background: #f7f8f9; color: var(--brand); box-shadow: 0 24px 60px -30px rgba(10,40,57,.5); text-transform: none; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s .25s; }
.acct.open .acct-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.acct-who { padding: 10px 0 12px; border-bottom: 1px solid rgba(14,57,86,.12); font-size: 12px; line-height: 1.5; color: #5b6774; }
.acct-who b { display: block; font-weight: 500; font-size: 13px; color: var(--brand); }
.acct-menu a, .acct-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(14,57,86,.12); background: none; color: var(--brand); font: inherit; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu > :last-child { border-bottom: 0; }
.acct-menu a:hover, .acct-menu button:hover { color: var(--ink-soft, #2a4a60); }
.acct-n { font-size: 10px; letter-spacing: .06em; color: #5b6774; }
@media (max-width: 899px) {
  .acct-btn .acct-l, .acct-btn--in .acct-name, .acct-btn--in::after { display: none; }
  .acct-btn:not(.acct-btn--in) .acct-ic { display: inline-flex; }
  .acct-menu { right: -60px; }
}
@media (prefers-reduced-motion: reduce) { .acct-menu { transition: none; } }

/* ---- account pages ---- */
.acct-page { font-family: "Inter Tight", system-ui, sans-serif; background: var(--cream); min-height: 70vh; padding: clamp(56px, 8vw, 120px) clamp(20px, 3.4vw, 48px) clamp(80px, 10vw, 140px); color: var(--brand); }
.acct-page h1, .acct-page h2 { font-family: inherit; text-transform: none; }
.acct-page h1 em { font-style: italic; font-weight: 400; }
.acct-page h1 { margin: 0; font-weight: 300; font-size: clamp(40px, 5.6vw, 84px); line-height: .96; letter-spacing: -0.045em; }
.acct-page h1 em { font-family: "Instrument Serif", Georgia, serif; font-size: 1.06em; letter-spacing: -0.02em; }
.acct-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.acct-tabs { display: flex; gap: 6px; }
.acct-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid rgba(14,57,86,.25); border-radius: 999px; color: var(--brand); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.acct-tab[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #f0e6cd; }
.acct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.acct-item { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: 18px; background: #f7f8f9; border: 1px solid rgba(14,57,86,.08); }
.acct-item h2 { margin: 0; font-weight: 300; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; }
.acct-item p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #5b6774; }
.acct-item .acct-price { font-size: 18px; font-weight: 300; color: var(--brand); }
/* order history: picture + name, then the labelled details */
.acct-order { gap: 16px; }
.acct-head { display: flex; align-items: center; gap: 16px; }
.acct-head + .acct-price { margin-top: 10px; }
.acct-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acct-thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; background: #fff; border: 1px solid rgba(14,57,86,.08); overflow: hidden; display: grid; place-items: center; }
.acct-thumb img { width: 88%; height: 88%; object-fit: contain; }
.acct-facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(14,57,86,.1); }
.acct-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid rgba(14,57,86,.1); }
.acct-facts > div:last-child { border-bottom: 0; }
.acct-facts dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6774; }
.acct-facts dd { margin: 0; font-size: 13px; color: var(--brand); text-align: right; }
.acct-facts .acct-total { font-size: 18px; font-weight: 300; }
.acct-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f0e6cd; font-size: 12px; }
.acct-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b08a3e; }
.acct-status.is-done { background: #e3ede6; }
.acct-status.is-done::before { background: #3f7a55; }
.acct-item .acct-acts {display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acct-item .acct-acts a, .acct-item .acct-acts button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(14,57,86,.25); background: #fff; color: var(--brand); font: inherit; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.acct-item .acct-acts a { background: var(--brand); border-color: var(--brand); color: #f0e6cd; }
.acct-empty { max-width: 520px; padding: 34px 32px; border-radius: 20px; background: #f7f8f9; border: 1px solid rgba(14,57,86,.08); }
.acct-empty h2 { margin: 0 0 8px; font-weight: 300; font-size: 26px; letter-spacing: -0.03em; }
.acct-empty p { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: #5b6774; }
.acct-empty .acct-go { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--brand); color: #f0e6cd; font: inherit; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.acct-note { margin-top: 28px; font-size: 11px; color: #8a95a1; }

/* sign-in sheet: an inline message (wrong code, wait a minute…) and the two small links under the code */
.bd-msg { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: #a3402f; }
.bd-msg[hidden] { display: none; }
.bd-body .bd-row:has(> .bd-link) { display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; }
.bd-body .bd-row > .bd-link { flex: 0 0 auto; }
.bd-btn:disabled { opacity: .6; cursor: progress; }
