:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #142033; background: #f4f1e9; }
* { box-sizing: border-box; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.account-header { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #d9d4c8; padding: 14px max(22px, calc((100vw - 1100px) / 2)); background: #fcfbf7; }
.account-logo { display: flex; align-items: center; gap: 12px; font-family: Georgia, serif; font-size: 20px; letter-spacing: .06em; }
.account-logo img { width: 42px; height: 42px; object-fit: contain; filter: saturate(.7); }
.account-logo span { display: grid; }
.account-logo small { color: #777a73; font-family: Inter, sans-serif; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.account-header nav { display: flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-header button { min-width: 42px; min-height: 34px; border: 1px solid #bdb6a8; background: transparent; color: #142033; }
.account-page { width: min(calc(100% - 40px), 1100px); flex: 1; margin: 0 auto; padding: 70px 0 110px; }
.account-intro { margin-bottom: 30px; }
.account-intro p { margin: 0 0 12px; color: #8b7650; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.account-intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 7vw, 72px); font-weight: 400; line-height: 1; }
.account-intro span { display: block; max-width: 650px; margin-top: 18px; color: #616a65; line-height: 1.6; }
.login-card, .orders-card { width: min(100%, 760px); border: 1px solid #d5cec0; padding: clamp(24px, 5vw, 50px); background: #fcfbf7; }
.login-card[hidden], .orders-card[hidden] { display: none; }
.login-copy h2, .orders-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; }
.login-copy p { max-width: 560px; color: #667064; line-height: 1.6; }
.google-button { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; margin-top: 25px; border: 1px solid #aaa59a; background: #fff; }
.google-button span { font: 900 21px Arial, sans-serif; }
.error { color: #a33b32; }
.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #ded8cc; padding-bottom: 22px; }
.orders-head p { margin: 0 0 6px; color: #7a7f78; font-size: 13px; }
#logoutButton { min-height: 40px; border: 1px solid #aaa59a; padding: 0 17px; background: transparent; color: #142033; }
.orders { display: grid; gap: 12px; margin-top: 22px; }
.order { display: grid; gap: 8px; border: 1px solid #d8d4ca; padding: 17px; background: #fff; }
.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.order-head > div { display: grid; gap: 3px; }
.order-head small { color: #7a7f78; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.order-head span { border-radius: 99px; padding: 6px 10px; background: #e5eee8; color: #506558; font-size: 11px; font-weight: 800; }
.order-guidance { margin-top: 10px; border-left: 3px solid #d9b56d; padding: 11px 13px; background: #fff8e9; color: #4f5b6a; font-size: 12px; line-height: 1.5; }
.order p { margin: 0; color: #606963; font-size: 13px; line-height: 1.55; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-block: 1px solid #e4dfd5; margin-top: 8px; padding: 13px 0; color: #626b65; font-size: 12px; }
.order-meta span { display: grid; gap: 4px; }
.order-meta b { color: #142033; }
.payment-state { width: max-content; border-radius: 99px; padding: 4px 8px; font-style: normal; font-weight: 800; }
.payment-state.is-paid { background: #e5eee8; color: #42614e; }
.payment-state.is-unpaid { background: #f4ead5; color: #85682f; }
.order-items { display: grid; gap: 10px; margin-top: 5px; }
.order-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 13px; align-items: center; }
.order-item img, .order-image-placeholder { width: 72px; height: 88px; border: 1px solid #ddd7cc; object-fit: cover; object-position: center top; background: #f4f1e9; }
.order-image-placeholder { display: grid; place-items: center; font: 700 18px Georgia, serif; }
.order-item > div:last-child { display: grid; gap: 5px; }
.order-item span { color: #142033; font-size: 12px; font-weight: 700; }
.order-total { display: flex; align-items: end; justify-content: space-between; border-top: 1px solid #e4dfd5; margin-top: 5px; padding-top: 13px; }
.order-total span { color: #68706b; font-size: 12px; }
.order-total strong { font: 400 24px Georgia, serif; }
.pay-order-button { display: flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 8px; border-radius: 4px; background: #1d3854; color: #fff; font-size: 13px; font-weight: 800; }
.pay-order-button:hover { background: #285173; }
.empty { color: #68706b; }
.account-footer { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 42px; border-top: 1px solid #d5cec0; padding: 48px max(22px, calc((100vw - 1100px) / 2)) 22px; background: #142033; color: #f4f1e9; }
.account-footer > div { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.account-footer strong { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.account-footer a, .account-footer p, .account-footer span, .account-footer small { margin: 0; color: #c9c8c1; font-size: 12px; line-height: 1.55; }
.account-footer a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between; border-top: 1px solid #344056; margin-top: 12px; padding-top: 20px; }
@media (max-width: 600px) { .account-header { min-height: 70px; } .account-page { padding-top: 42px; } .orders-head { align-items: flex-start; flex-direction: column; } #logoutButton { width: 100%; } .order-meta { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .account-footer { grid-template-columns: 1fr 1fr; } .footer-bottom { grid-column: 1 / -1; } }
@media (max-width: 520px) { .account-footer { grid-template-columns: 1fr; } .footer-bottom { grid-column: 1; flex-direction: column !important; } }

/* Cool powder-blue account palette. */
:root { color: #17233a; background: #f7fbff; }
body { background: linear-gradient(180deg, #fff 0%, #f3f9ff 42%, #e8f4ff 70%, #fff 100%) fixed; }
.account-header, .login-card, .orders-card { border-color: #dbe7f3; background: #fff; }
.account-intro p { color: #5799dc; }
.account-main button, .google-button { border-color: #a9cdee; }
.order-item img, .order-image-placeholder { border-color: #dbe7f3; background: #edf6ff; }
.account-footer { border-color: #dbe7f3; background: #172b43; color: #f7fbff; }

/* Unified BIZDIN FORMA application shell. */
.account-header {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 96px;
  border-color: #2b3d57;
  background: #14233d;
  color: #fff;
  box-shadow: 0 6px 20px rgb(20 35 61 / 14%);
}
.account-logo { color: #fff; font-family: Baskerville, "Iowan Old Style", Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.account-logo img { width: 68px; height: 68px; filter: none; }
.account-logo small { color: #d9b56d; font-family: Optima, "Gill Sans", sans-serif; font-weight: 500; letter-spacing: .2em; }
.account-header button { border-color: #7f8ca0; color: #fff; }
.account-page { padding-top: 54px; }
.account-intro p { color: #8f6f32; }
.login-card, .orders-card { border-radius: 14px; box-shadow: 0 14px 38px rgb(20 35 61 / 8%); }
.mobile-back, .account-tabbar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); background: #f5f9fd; }
  .account-header {
    min-height: 74px;
    padding: max(7px, env(safe-area-inset-top)) 12px 7px;
  }
  .account-logo { gap: 8px; font-size: 16px; letter-spacing: .08em; }
  .account-logo img { width: 52px; height: 52px; }
  .account-logo small { display: block; font-size: 6px; }
  .account-header nav { gap: 8px; }
  .account-header nav #shopLink { display: none; }
  .account-header button { min-width: 42px; min-height: 38px; border-radius: 8px; }

  .account-page { width: 100%; padding: 14px 12px calc(88px + env(safe-area-inset-bottom)); }
  .mobile-back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-bottom: 10px;
    color: #48627f;
    font-size: 13px;
    font-weight: 700;
  }
  .account-intro { margin-bottom: 18px; }
  .account-intro p { margin-bottom: 8px; font-size: 9px; }
  .account-intro h1 { font-size: 36px; line-height: 1.02; }
  .account-intro span { margin-top: 10px; font-size: 14px; line-height: 1.45; }

  .login-card, .orders-card { width: 100%; border-radius: 12px; padding: 16px; }
  .login-copy h2, .orders-head h2 { font-size: 25px; }
  .login-copy p { font-size: 14px; line-height: 1.5; }
  .google-button { min-height: 50px; margin-top: 16px; border-radius: 8px; }
  .orders-head { align-items: center; flex-direction: row; gap: 10px; padding-bottom: 14px; }
  .orders-head > div { min-width: 0; }
  .orders-head p { overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; }
  #logoutButton { width: auto; min-width: 72px; min-height: 38px; padding: 0 12px; }
  .orders { margin-top: 14px; }
  .order { border-radius: 10px; padding: 13px; }
  .order-meta { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .order-item img, .order-image-placeholder { width: 62px; height: 76px; }

  .account-footer { display: none; }
  .account-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    border-top: 1px solid #d6e0eb;
    padding: 5px 4px env(safe-area-inset-bottom);
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 -8px 24px rgb(20 35 61 / 10%);
  }
  .account-tabbar a {
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    gap: 1px;
    padding: 4px 2px;
    color: #526175;
  }
  .account-tabbar a.active { color: #14233d; }
  .account-tabbar a.active::after { position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: #d9b56d; content: ""; }
  .account-tabbar a { position: relative; }
  .account-tabbar span { color: #14233d; font-size: 23px; line-height: 1; }
  .account-tabbar span svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
  .account-tabbar small { overflow: hidden; max-width: 100%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
}
