.account-page{background:#ffffff;color:#302e28;min-height:100vh}.account-main{max-width:700px;margin:auto;padding:48px 28px 80px}.account-main h1{font-size:clamp(32px,6vw,48px);margin:16px 0}.account-main h2{font-size:24px;margin:0 0 16px}.account-main p{line-height:1.7}.account-author,.material-label{font:600 11px 'DM Sans',sans-serif;letter-spacing:.14em;color:#77664e}.account-author{margin-top:52px}.account-intro{font:italic 19px/1.6 Georgia,serif}.account-back,.quiet-button{font:14px 'DM Sans',sans-serif;color:inherit}.account-main section{padding:32px 0;border-top:1px solid #cfc4b2;margin-top:24px}.account-note{font-size:14px;color:#716958}.account-main form{display:grid;gap:10px;margin:24px 0;max-width:440px}.account-main input{font:18px 'DM Sans',sans-serif;min-width:0;padding:13px;border:1px solid #a69883;border-radius:3px;background:#ffffff;color:#302e28}.account-main button,.account-link{font:500 14px 'DM Sans',sans-serif;cursor:pointer}.account-main form button,.material-action{border:0;border-radius:3px;background:#35403a;color:#faf7ef;padding:14px 20px;text-decoration:none;display:inline-block}.account-main button:disabled{opacity:.5;cursor:wait}.account-identity{display:flex;gap:20px;justify-content:space-between;align-items:center}.account-identity p{overflow-wrap:anywhere}.quiet-button{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;padding:10px 0}.account-link{color:#816237;text-underline-offset:5px}.home-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.home-account{color:#e4d4b6;text-decoration:none;font:14px 'DM Sans',sans-serif;white-space:nowrap}.free-chapter-link{display:block;width:fit-content;margin-top:20px;color:#ded0b8;font:14px 'DM Sans',sans-serif;text-underline-offset:5px}.book-account{color:inherit;font:13px 'DM Sans',sans-serif;text-decoration:none;white-space:nowrap}.cloud-status{font:11px 'DM Sans',sans-serif;color:#77664e;margin:12px 0 20px}.chapter[data-free] .chapter-name::after{content:' · BREZPLAČNO';font:9px 'DM Sans',sans-serif;letter-spacing:.06em;color:#d2b788}.locked-chapter{margin-top:30px}.account-main :focus-visible,.home-account:focus-visible,.book-account:focus-visible{outline:2px solid #a9814c;outline-offset:5px}.material-item{padding:24px 0}.material-item+.material-item{border-top:1px solid #cfc4b2}.material-item h3{font:20px/1.5 'Libre Baskerville',Georgia,serif;margin-top:0}.progress-conflict{font:13px/1.5 'DM Sans',sans-serif;margin:12px 0}.progress-conflict button{display:block;background:transparent;color:inherit;border:1px solid currentColor;padding:8px;margin-top:8px;cursor:pointer}@media(max-width:700px){.account-main{padding:28px 22px 60px}.account-author{margin-top:36px}.home-topbar{align-items:flex-start}.home-account{font-size:12px}.book-account{font-size:11px}.book-header-actions{gap:10px}.cloud-status{margin:10px 0}.account-main h2{font-size:22px}}

.chapter-access{display:inline-flex;align-self:center;flex:0 0 16px;color:inherit;opacity:.55}.chapter-access:empty{display:none}.chapter-access svg{width:16px;height:16px}.chapter[data-free] .chapter-access{color:#d2b788;opacity:1}

.account-main{max-width:700px;padding-top:42px}.account-heading{margin:76px 0 42px}.account-author{margin:0;color:#906f45}.account-main h1{font-size:clamp(38px,7vw,56px);font-weight:400;letter-spacing:-.035em;margin:16px 0 12px}.account-intro{max-width:none;margin:0;color:#5d574c;white-space:nowrap}.account-main section{margin-top:0;border-top:1px solid #c9bda9;padding:30px 0 0}.account-main section h2{font-size:25px;font-weight:400}.account-main section>p{max-width:530px}.account-main form{max-width:none;grid-template-columns:1fr auto;gap:10px 12px}.account-main form label{grid-column:1/-1;font:600 13px 'DM Sans',sans-serif}.account-main input{font-size:16px;border-radius:5px}.account-main form button{white-space:nowrap;border-radius:5px;padding-inline:22px}.account-main form button:hover,.material-action:hover{background:#506056}.account-main #code-form{margin-top:10px}.account-main #account-status:not(:empty){border-left:2px solid #a9814c;padding:6px 0 6px 16px;margin:0 0 24px;font:14px/1.5 'DM Sans',sans-serif;color:#65563e}.account-note{margin-top:24px}.account-identity{margin-bottom:16px}.account-main :focus-visible{outline-offset:3px}
@media(max-width:700px){.account-intro{white-space:normal}.account-main{padding-top:28px}.account-heading{margin:48px 0 34px}.account-main form{grid-template-columns:1fr}.account-main form label{grid-column:auto}.account-main form button{white-space:normal}.account-main section{padding-top:26px}}

.book-header .level-switch{border-left:0;padding-left:0}
.book-header-actions .book-account{display:inline-flex;align-items:center;min-height:44px;border-left:1px solid var(--line);padding:6px 0 6px 23px;font:600 .75rem/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.035em;color:var(--muted)}
.book-header-actions .book-account:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){.book-header-actions .book-account{padding-left:16px}}

.book-header-actions .book-account{text-transform:uppercase;letter-spacing:.06em}
@media(min-width:701px){.book-header-inner{padding-left:0;padding-right:64px}}

/* Account page: one clear heading, identity, library, and quiet utility row. */
.account-main{padding-top:52px}
.account-heading{margin:0 0 39px}
.account-main h1{margin:12px 0 10px}
.account-intro{font-size:18px;line-height:1.65;max-width:490px}
.account-main #my-account{border:0;padding:0}
.account-identity{border-top:1px solid #c9bda9;border-bottom:1px solid #c9bda9;padding:17px 0;margin:0;align-items:center}
.account-section-label{font:600 10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.15em;color:#906f45;margin:0 0 5px}
.account-identity #account-email{font:15px/1.5 'DM Sans',Arial,sans-serif;margin:0}
.account-library{margin-top:38px}
.account-main .account-library h2{font:400 24px/1.3 'Libre Baskerville',Georgia,serif;margin:0 0 12px}
.account-library .material-item{padding:16px 0 0}
.account-library .material-item+.material-item{border-top:1px solid #c9bda9;margin-top:25px;padding-top:25px}
.account-library .material-item h3{font-size:21px;line-height:1.45;margin:0 0 11px;max-width:490px}
.account-library .material-label{margin:0 0 17px}
.account-library .material-action{font-size:14px}
.account-refresh{margin-top:38px;border-top:1px solid #c9bda9;padding-top:15px}
.account-refresh .account-note{margin:0 0 6px}
.account-refresh .quiet-button{color:#655c4f}
@media(max-width:700px){.account-main{padding-top:32px}.account-heading{margin-bottom:30px}.account-intro{font-size:17px}.account-library{margin-top:32px}.account-refresh{margin-top:32px}}

/* A small book cover gives the library a tangible focal point. */
.account-main{max-width:780px;padding-top:60px}
.account-library .book-material{display:grid;grid-template-columns:132px minmax(0,1fr);gap:28px;align-items:center;padding:24px;background:#ffffff;border:1px solid #d4c8b4;border-radius:6px}
.account-library .book-material+.material-item{padding-top:24px}
.material-details{min-width:0}
.material-cover{min-height:190px;display:flex;flex-direction:column;padding:19px 14px 17px;border-radius:2px;color:#f3ecde;background:linear-gradient(180deg,#18211bc9,#18211bf2),url('/assets/naslovnica-ozadje.png') center/cover;box-shadow:3px 4px 10px #28261e20;border-left:3px solid #746247}
.material-cover-author{font:500 7px/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.13em;color:#cfb58a}
.material-cover-title{font:400 16px/1.45 'Libre Baskerville',Georgia,serif;display:block;margin:22px 0 16px}
.material-cover-subtitle{font:italic 9px/1.5 Georgia,serif;margin-top:auto;color:#d8c9ae}
.account-library .book-material h3{font-size:22px;margin-bottom:15px}
.material-item[data-owned=true] .material-label::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#657a63;margin-right:8px;vertical-align:2px}
.account-library .book-material .material-action{margin-top:3px}
.account-refresh{border-top:0;margin-top:16px;padding-top:0;text-align:right}
.account-refresh .account-note{text-align:left}
@media(max-width:700px){.account-main{padding-top:34px}.account-library .book-material{grid-template-columns:104px minmax(0,1fr);gap:20px;padding:20px}.material-cover{min-height:160px;padding:14px 10px}.material-cover-title{font-size:13px;margin-top:18px}.material-cover-subtitle{font-size:8px}.account-library .book-material h3{font-size:18px}.account-library .book-material .material-action{padding:12px 14px}}
@media(max-width:430px){.account-library .book-material{grid-template-columns:78px minmax(0,1fr);gap:15px;padding:17px 14px;align-items:start}.material-cover{min-height:126px;padding:11px 7px}.material-cover-author{font-size:5px}.material-cover-title{font-size:10px;line-height:1.5;margin:13px 0 10px}.material-cover-subtitle{font-size:6px}.account-library .book-material h3{font-size:17px}.account-library .book-material .material-action{padding:11px 10px;font-size:12px}.account-library .material-label{font-size:9px;letter-spacing:.1em}}

/* Gentle activity feedback without moving the account layout. */
.access-checking{animation:access-checking-pulse 1.6s ease-in-out infinite}
@keyframes access-checking-pulse{0%,100%{opacity:1}50%{opacity:.5}}
@media(prefers-reduced-motion:reduce){.access-checking{animation:none}}

/* Keep the reading and tour actions visually separate, including when they wrap. */
.material-details .material-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:12px}
.account-library .book-material .material-actions .material-action{margin:0}

/* Registered-user support form. */
.account-support{margin-top:38px;border-top:1px solid #c9bda9;padding-top:30px}.account-main .account-support h2{font:400 24px/1.3 'Libre Baskerville',Georgia,serif;margin:0 0 10px}.account-support>p{margin:0 0 18px;max-width:560px}.account-support form{display:grid;grid-template-columns:1fr;max-width:560px;margin:0;gap:9px}.account-support label{font:600 12px 'DM Sans',Arial,sans-serif;letter-spacing:.04em}.account-support select,.account-support textarea{width:100%;box-sizing:border-box;border:1px solid #a69883;border-radius:5px;background:#ffffff;color:#302e28;padding:12px;font:15px/1.5 'DM Sans',Arial,sans-serif}.account-support textarea{resize:vertical;min-height:130px}.account-support form button{justify-self:start;margin-top:4px}.account-support #support-status{margin:4px 0 0}

/* Legal information and links. */
.account-legal-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #c9bda9;margin-top:38px;padding-top:18px;font:13px/1.5 'DM Sans',Arial,sans-serif;color:#6f675b}.account-legal-links a,.account-legal-note a,.purchase-legal a,.legal-nav a,.legal-footer a{color:#725c3c;text-underline-offset:4px}.account-legal-note,.purchase-legal{font:13px/1.6 'DM Sans',Arial,sans-serif;color:#716958}.purchase-legal{margin:0 0 13px!important}.legal-main{max-width:820px}.legal-nav{display:flex;flex-wrap:wrap;gap:10px 22px;border-top:1px solid #c9bda9;border-bottom:1px solid #c9bda9;padding:17px 0;margin-bottom:4px;font:14px 'DM Sans',Arial,sans-serif}.legal-main section{padding-top:34px}.legal-main section h2{font-size:28px}.legal-main section h3{font:400 18px/1.5 'Libre Baskerville',Georgia,serif;margin:25px 0 7px}.legal-main section p{max-width:700px;margin:0 0 13px}.legal-footer{display:flex;gap:22px;border-top:1px solid #c9bda9;margin-top:42px;padding:20px 0 40px;font:14px 'DM Sans',Arial,sans-serif}


/* Support form follows the full account content measure. */
.account-support form{max-width:none!important;width:100%}
.account-support select,.account-support textarea{width:100%}
.account-support>p{max-width:none}
.account-support #support-status[data-state="error"]{color:#a32828}
.account-support #support-status[data-state="success"]{color:#24633c}
.account-support #support-status[data-state="sending"]{color:#716958}
.account-support textarea[aria-invalid="true"]{border-color:#a32828}
.account-support button:disabled{opacity:.65;cursor:wait}

.email-purchase-hint{font-weight:400;letter-spacing:0;color:#776f61;text-transform:none}


/* Mobile header alignment refined from phone screenshot */
@media(max-width:700px){
  .book-header .book-header-inner{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px 18px}
  .book-header .menu-toggle{grid-column:1;grid-row:1;margin:0;width:44px;height:44px;padding:0;justify-self:center}
  .book-header .brand-home{grid-column:2;grid-row:1;min-width:0;margin:0;padding:0;text-align:left}
  .book-header .brand-home .brand-small{margin-bottom:2px}
  .book-header .brand-home strong{font-size:clamp(.94rem,3.7vw,1.15rem);line-height:1.35}
  .book-header .book-header-actions{
    grid-column:1/-1;grid-row:2;display:grid;
    grid-template-columns:minmax(0,1fr) auto 40px auto;
    gap:8px;align-items:center;justify-content:initial;
    width:100%;padding:10px 0 0;margin:0;border-top:1px solid var(--line);
  }
  .book-header .book-header-actions .level-switch{min-width:0;width:100%;padding:0;border:0;text-align:left;display:flex;align-items:center;justify-content:flex-start;gap:4px}
  .book-header .book-header-actions .level-switch-label{font-size:0;line-height:1.3}
  .book-header .book-header-actions .level-switch-label::before{content:"Raven znanja";font-size:11px;line-height:1.3;letter-spacing:0;text-transform:uppercase}
  .book-header .book-header-actions .level-switch-value{flex:0 0 auto;font-size:11px}
  .book-header .book-header-actions .book-buy{min-height:40px;white-space:nowrap;padding:8px 10px;font-size:12px}
  .book-header .book-header-actions .bookmarks-open{width:40px;min-width:40px;min-height:44px;padding:5px;justify-content:center;border-left:1px solid var(--line)}
  .book-header .book-header-actions .book-account{min-height:44px;padding:5px 0 5px 8px;border-left:1px solid var(--line);font-size:11px;white-space:nowrap}
}
@media(max-width:370px){
  .book-header .book-header-inner{padding-inline:12px}
  .book-header .book-header-actions{gap:5px}
  .book-header .book-header-actions .book-buy{padding-inline:7px;font-size:11px}
  .book-header .book-header-actions .book-account{font-size:10px;padding-left:5px}
}

/* Distribute all four reading controls evenly on small screens. */
@media(max-width:700px){
 .book-header .book-header-actions{
   grid-template-columns:minmax(0,1.2fr) minmax(0,1.15fr) 40px minmax(0,.73fr);
   gap:4px;
   justify-content:stretch;
 }
 .book-header .book-header-actions .level-switch{justify-self:start;justify-content:flex-start;gap:3px}
 .book-header .book-header-actions .book-buy{justify-self:center;width:fit-content;max-width:100%;padding-inline:8px}
 .book-header .book-header-actions .bookmarks-open{justify-self:center;border-left:0}
 .book-header .book-header-actions .book-account{justify-self:end;padding-left:0;border-left:0}
}

/* Subtle separators between mobile header action controls. */
@media(max-width:700px){
 .book-header .book-header-actions .book-buy{
   position:relative;
 }
 .book-header .book-header-actions .book-buy::before{
   content:"";position:absolute;left:-9px;top:4px;bottom:4px;width:1px;background:var(--line);pointer-events:none;
 }
 .book-header .book-header-actions .bookmarks-open{
   border-left:1px solid var(--line);border-radius:0;
 }
 .book-header .book-header-actions .book-account{
   border-left:1px solid var(--line);padding-left:9px;
 }
}

/* Phone: keep both book actions aligned, equal width and stacked. */
@media(max-width:700px){
  .account-library .book-material .material-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;margin-top:14px}
  .account-library .book-material .material-actions .material-action{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;text-align:center;white-space:normal;line-height:1.35;padding:11px 8px}
}

/* Actual tablet image replaces the CSS-drawn miniature cover. */
.account-library .book-material img.material-tablet{display:block;box-sizing:border-box;width:100%;height:auto;min-height:0;max-width:100%;object-fit:contain;padding:0;border:0;border-radius:0;background:none;box-shadow:none;align-self:center}

/* Larger tablet thumbnail in My Materials, including narrow phones. */
.account-library .book-material{grid-template-columns:clamp(150px,28%,205px) minmax(0,1fr);gap:22px}
@media(max-width:700px){.account-library .book-material{grid-template-columns:minmax(125px,38%) minmax(0,1fr);gap:14px;padding:16px}}
@media(max-width:430px){.account-library .book-material{grid-template-columns:minmax(125px,40%) minmax(0,1fr);gap:12px;padding:14px 10px}.account-library .book-material h3{font-size:16px;line-height:1.3}}
/* PDF delivery is handled by Payhip rather than duplicated in the user account. */
.account-library .book-material .material-pdf-note{
  margin:13px 0 0;
  font:400 13px/1.55 'DM Sans',Arial,sans-serif;
  color:#716958;
}

/* Identical tablet artwork and reversible title treatment as landing page. */
.account-library .book-material .account-tablet-art{position:relative;display:block;min-width:0;width:100%;line-height:0}
.account-library .book-material .account-tablet-art>img.material-tablet{width:100%;height:auto}
.account-library .book-material .account-tablet-title-recolor{
  position:absolute;inset:0;width:100%;height:100%;object-fit:fill;
  pointer-events:none;clip-path:polygon(27% 16%,77% 16%,77% 24%,27% 24%);
  filter:grayscale(1) brightness(1.17)
}

/* Align email and verification inputs with equal action columns. */
@media(min-width:701px){
  .account-main #email-form,.account-main #code-form{grid-template-columns:minmax(0,1fr) 190px}
}

