.account-page { padding: 125px 0 70px; min-height: 100vh; }
.account-header { position: static; }
.account-page h1, .account-page h2, .cookie-banner h2 { font-family: Prata, serif; font-weight: 400; }
.account-panel { max-width: 760px; margin: 0 auto; padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.account-panel + .account-panel { margin-top: 24px; }
.account-panel h1, .account-panel h2 { margin-top: 0; }
.login-panel { display: grid; gap: 16px; }
.login-panel h1, .login-panel h2, .login-panel p { margin: 0; }
.login-panel > div:not(#recaptcha) { display: grid; gap: 16px; }
.login-panel > button, .login-panel > div > button { justify-self: start; max-width: 100%; }
.login-panel #factor-label { display: grid; gap: 5px; font-weight: 700; }
.login-panel #factor-select { width: 100%; padding: 12px; border: 1px solid var(--sage-dark); border-radius: 10px; font: inherit; }
.login-panel #recaptcha { max-width: 100%; overflow-x: auto; }
.login-panel #recaptcha iframe { display: block; }
.login-panel #recaptcha:empty { display: none; }
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 5px; font-weight: 700; }
.account-form input, .account-form select { width: 100%; padding: 12px; border: 1px solid var(--sage-dark); border-radius: 10px; font: inherit; }
.booking-dialog { width: min(600px, calc(100% - 36px)); max-height: calc(100% - 36px); padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--ink); box-shadow: var(--shadow); font: inherit; }
.booking-dialog::backdrop { background: rgba(25, 38, 32, 0.7); }
.booking-dialog h2 { font-size: 30px; padding-right: 40px; margin-bottom: 18px; }
.booking-dialog button { cursor: pointer; }
.booking-dialog button:disabled { cursor: wait; opacity: .6; }
.booking-dialog #booking-login { display: grid; gap: 16px; }
.booking-dialog #booking-login p { margin: 0; }
.booking-dialog #booking-google { justify-self: start; max-width: 100%; }
.account-form .booking-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.account-form .booking-check input { width: auto; margin: 6px 0 0; flex: none; }
.abo-book { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.abo-book span { color: #b77e68; font-size: 18px; margin-left: 6px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.account-page button, .cookie-banner button { cursor: pointer; font: inherit; }
.account-page .button, .cookie-banner .button { line-height: 1.4; }
.account-page button:disabled, .cookie-banner button:disabled { cursor: wait; opacity: .6; }
.site-header #logout { cursor: pointer; }
.account-message { min-height: 1.5em; color: #875342; white-space: pre-line; }
.account-status { color: var(--muted); }
.admin-page { overflow-y: scroll; }
.admin-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 24px; }
.admin-sidebar { display: grid; gap: 8px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.account-page .admin-nav-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; font-size: 13px; font-weight: 700; line-height: 22px; }
.admin-nav-button:hover, .admin-nav-button[aria-pressed="true"] { background: var(--sage); }
.admin-nav-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.admin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #d3a93b; color: #2b2617; font-size: 12px; line-height: 1; }
.admin-content { min-width: 0; }
.admin-content .account-panel { max-width: none; }
.admin-content .account-panel + .account-panel { margin-top: 0; }
.storage-usage { display: flex; align-items: center; gap: 24px; margin: 24px 0 36px; padding: 22px; border-radius: 16px; background: var(--cream); }
.storage-usage-ring { position: relative; display: grid; flex: none; place-items: center; width: 140px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--ink) var(--storage-used, 0%), var(--sage) 0); }
.storage-usage-ring::before { position: absolute; inset: 12px; border-radius: 50%; background: white; content: ""; }
.storage-usage-value { position: relative; max-width: 100px; font-size: 17px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.storage-usage-copy h2 { margin: 0 0 10px; font-size: 30px; }
.storage-usage-copy p { margin: 0; color: var(--muted); }
.storage-usage-copy .storage-usage-total { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.account-panel .account-section-heading { margin-top: 40px; }
.video-slot { border: 2px dashed var(--sage-dark); border-radius: 15px; padding: 16px; overflow-wrap: anywhere; }
.video-slot h3 { font-size: 16px; }
.video-slot p, .video-slot input, .video-slot button { font-size: 13px; }
.video-slot.dragging { background: var(--sage); }
.video-slot h3 { margin: 0 0 8px; }
.video-slot input { max-width: 100%; }
.video-slot input[type="file"] { font-size: 0; }
.video-slot input[type="file"]::file-selector-button { font-size: 13px; }
.video-slot video { width: 100%; background: #222; border-radius: 8px; }
.video-slot progress { max-width: 100%; }
.video-slot p { margin: 8px 0; }
.account-list { display: grid; gap: 12px; }
.account-list article { border: 1px solid var(--line); padding: 14px; border-radius: 12px; overflow-wrap: anywhere; }
.account-list article p { margin-bottom: 8px; }
.cookie-banner { position: fixed; z-index: 100; inset: auto 16px 16px; margin: auto; max-width: 780px; padding: 20px; background: white; border: 1px solid var(--sage-dark); border-radius: 18px; box-shadow: var(--shadow); }
.cookie-banner h2 { font-size: 20px; margin: 0 0 8px; }
.cookie-banner p { margin-bottom: 10px; }
.cookie-settings { display: inline-block; margin: 12px; text-decoration: underline; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; }
.footer-legal-links { display: flex; flex-direction: row; align-items: flex-start; gap: 16px; }
.footer-legal-links .cookie-settings { margin: 0; padding: 0; text-align: left; text-decoration: none; }
.footer-legal-links .cookie-settings:hover { color: #fff; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  .account-list .account-actions { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .footer-links { justify-content: flex-end; }
  .footer-legal-links { flex-direction: column; align-items: flex-end; }
}
@media (max-width: 600px) {
  .account-page { padding-top: 105px; }
  .account-panel { padding: 20px; }
  .login-panel .button { padding-inline: 12px; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .account-page .admin-nav-button { justify-content: center; flex-wrap: wrap; padding: 10px 4px; font-size: 11px; }
  .storage-usage { gap: 16px; padding: 16px; }
  .storage-usage-ring { width: 110px; }
  .storage-usage-copy h2 { font-size: 26px; }
  .booking-dialog { padding: 28px 20px; }
  .cookie-banner { max-height: 80vh; overflow-y: auto; }
}
