.account-app{min-height:60vh;background:radial-gradient(circle at 92% 0%,rgba(184,138,60,.11),transparent 28rem),#f5eedf}
.account-page-hero{padding:4.5rem 0 3.2rem;background:#0d3029;color:#fffdf8;border-bottom:1px solid rgba(184,138,60,.45)}
.account-page-hero .lead{color:rgba(255,255,255,.76)}
.account-page-grid{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:2rem;align-items:start}
.account-panel{background:#fffdf8;color:#17201d;border:1px solid rgba(23,32,29,.16);box-shadow:0 18px 45px rgba(12,39,34,.1);border-radius:.6rem;padding:1.5rem}
.account-panel p{color:#5e655f}
.account-form{display:grid;gap:1rem}.account-field{display:grid;gap:.35rem}
.account-field label{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#33433d}
.account-field input{min-height:48px;border:1px solid rgba(23,32,29,.28);border-radius:.35rem;background:white;padding:.7rem .8rem;color:#17201d}
.account-field input:focus{outline:3px solid rgba(184,138,60,.35);outline-offset:2px}
.account-field small{color:#6b706d;line-height:1.4}
.account-status{margin:1rem 0;padding:.8rem 1rem;border-radius:.35rem;border:1px solid rgba(23,32,29,.16);background:#fffdf8;color:#33433d}
.account-status[data-kind="error"]{border-color:#9b4a3d;background:#fff0ec;color:#6f281e}
.account-status[data-kind="success"]{border-color:#4e765d;background:#edf6ef;color:#224b31}
.account-status[data-kind="setup"]{border-color:#b88a3c;background:#fff8e8;color:#674719}
.account-library-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.account-library-card{border:1px solid rgba(23,32,29,.14);background:#f7f0e2;padding:1.1rem;border-radius:.45rem}
.account-library-card>span,.account-library-card small{display:block;font-size:.67rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8b632c}
.account-note{border-left:4px solid #b88a3c;background:rgba(255,253,248,.6);padding:1rem 1.1rem;color:#5e655f;font-size:.84rem}
.account-divider{height:1px;background:rgba(23,32,29,.13);margin:1.3rem 0}
.account-tool-nav{display:flex;flex-wrap:wrap;gap:.48rem;margin-top:1.35rem}
.account-tool-nav a{color:#f2dfb9;text-decoration:none;border:1px solid rgba(220,195,152,.32);border-radius:999px;padding:.46rem .68rem;font-size:.68rem;font-weight:900;letter-spacing:.035em;background:rgba(255,255,255,.025)}
.account-tool-nav a:hover,.account-tool-nav a:focus-visible{background:rgba(184,138,60,.18);border-color:rgba(220,195,152,.58)}
.account-tool-nav a[aria-current="page"]{background:#f3dfb3;color:#17352f;border-color:#f3dfb3}
.account-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem}
.account-tool-card{display:block;text-decoration:none;color:#17201d;border:1px solid rgba(23,32,29,.14);border-radius:.45rem;background:#f7f0e2;padding:1rem;min-height:118px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.account-tool-card:hover,.account-tool-card:focus-visible{transform:translateY(-2px);border-color:rgba(184,138,60,.6);box-shadow:0 10px 24px rgba(12,39,34,.08)}
.account-tool-card span{display:block;color:#8b632c;font-size:.64rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase;margin-bottom:.3rem}
.account-tool-card strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;margin-bottom:.3rem}
.account-tool-card small{display:block;color:#66706a;line-height:1.35}
.account-tool-card.arcana{background:linear-gradient(145deg,#f4ead7,#ece0c7);border-color:rgba(125,91,39,.24)}
.account-tool-card.arcana span{color:#75531f}
.account-settings-stack{display:grid;gap:1rem}
.account-settings-stack[hidden],#connected-applications button[hidden]{display:none}
#reserve-disconnection{box-sizing:border-box;width:min(32rem,calc(100% - 2rem));margin:auto;padding:1.5rem;border:1px solid #665a4d;border-radius:.55rem;background:#fffdf8;color:#17201d}
#reserve-disconnection::backdrop{background:rgba(23,32,29,.60)}
.account-settings-card{background:#fffdf8;border:1px solid rgba(23,32,29,.16);border-radius:.55rem;padding:1.35rem}
.account-settings-card h2{margin-bottom:.4rem}.account-settings-card .eyebrow{margin-bottom:.35rem}
.account-danger{border-color:rgba(145,54,42,.35);background:#fff8f5}
.account-danger .eyebrow{color:#8e352a}.account-danger .account-field label{color:#773229}
.account-danger-list{padding-left:1.15rem;color:#66504b;font-size:.86rem}
.account-danger-list li{margin:.35rem 0}
.btn-danger{background:#7d2e25;color:white;border-color:#7d2e25}
.btn-danger:hover,.btn-danger:focus-visible{background:#65251e;border-color:#65251e}
.btn-danger:disabled{opacity:.42;cursor:not-allowed}
.account-inline-links{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}
.account-inline-links a{font-weight:800}
.account-data-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:1rem}
.account-data-summary div{background:#f6efdf;border:1px solid rgba(23,32,29,.12);padding:.8rem;border-radius:.35rem}
.account-data-summary strong{display:block;font-family:Georgia,serif;margin-bottom:.2rem}
.account-data-summary span{font-size:.75rem;color:#68706b}
@media(max-width:820px){.account-page-grid{grid-template-columns:1fr}}
@media(max-width:560px){
  .account-page-hero{padding:3rem 0 2.4rem}
  .account-library-list,.account-tool-grid,.account-data-summary{grid-template-columns:1fr}
  .account-panel,.account-settings-card{padding:1.15rem}
  .account-tool-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem}
  .account-tool-nav a{text-align:center;padding:.52rem .4rem}
}
/* VENI ACCOUNT POLISH V1 START */

/* Tighter page rhythm */
.account-page-hero{
  padding:3.15rem 0 2.15rem;
  text-align:center;
}
.account-page-hero .container{
  max-width:920px;
}
.account-page-hero .eyebrow{
  margin-bottom:.45rem;
}
.account-page-hero h1{
  margin-top:0;
  margin-bottom:.55rem;
}
.account-page-hero .lead{
  max-width:720px;
  margin:.45rem auto 0;
}
.account-tool-nav{
  justify-content:center;
  margin-top:1rem;
}
.account-app>.section{
  padding-top:2.35rem;
  padding-bottom:2.75rem;
}

/* Home / hub composition */
.account-page-grid{
  gap:1.25rem;
}
.account-page-grid>.account-panel{
  text-align:center;
}
.account-page-grid>.account-panel .actions,
.account-page-grid>.account-panel .account-inline-links{
  justify-content:center;
}
.account-page-grid .account-tool-grid{
  margin-top:.75rem;
}
.account-page-grid .account-tool-card{
  min-height:104px;
  padding:.9rem;
  text-align:center;
}
.account-page-grid .account-note{
  margin-top:.8rem !important;
  text-align:left;
}

/* General card rhythm */
.account-panel{
  padding:1.3rem;
}
.account-panel h2{
  margin-top:0;
  margin-bottom:.45rem;
}
.account-panel p{
  margin-top:.35rem;
}
.account-divider{
  margin:1rem 0;
}
.account-inline-links{
  justify-content:center;
  margin-top:.8rem;
}

/* Auth pages: center the surrounding message, keep forms readable */
.narrow>.account-panel{
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
}
.narrow>.account-panel>h2,
.narrow>.account-panel>p{
  text-align:center;
}
.narrow>.account-panel>.account-inline-links{
  justify-content:center;
}
.narrow>.account-panel>.account-form{
  text-align:left;
}
.narrow>.account-panel>.account-form>.btn{
  justify-self:center;
  margin-top:.15rem;
}

/* Library: keep content compact and centered when empty */
.account-library-list{
  gap:.8rem;
  margin-top:.8rem;
}
.account-library-card{
  padding:.95rem;
}
[data-library-empty]{
  max-width:680px;
  margin:.9rem auto 0;
  text-align:center;
  border-left:0;
  border-top:3px solid #b88a3c;
}

/* Settings stays editorial / left aligned, just tighter */
.account-settings-stack{
  gap:.8rem;
}
.account-settings-card{
  padding:1.15rem 1.25rem;
}
.account-settings-card h2{
  margin-top:0;
  margin-bottom:.3rem;
}
.account-settings-card .eyebrow{
  margin-bottom:.25rem;
}
.account-settings-card p{
  margin-top:.35rem;
  margin-bottom:.75rem;
}
.account-data-summary{
  gap:.55rem;
  margin-top:.75rem;
}
.account-data-summary div{
  padding:.7rem;
}
.account-danger-list{
  margin-top:.55rem;
  margin-bottom:.8rem;
}

/* Compact status messaging */
.account-status{
  max-width:760px;
  margin:.75rem auto 1rem;
  text-align:center;
}

/* Mobile rhythm */
@media(max-width:560px){
  .account-page-hero{
    padding:2.35rem 0 1.75rem;
  }
  .account-tool-nav{
    margin-top:.8rem;
  }
  .account-app>.section{
    padding-top:1.75rem;
    padding-bottom:2.15rem;
  }
  .account-panel,
  .account-settings-card{
    padding:1rem;
  }
}

/* VENI ACCOUNT POLISH V1 END */
/* VENI ACCOUNT AUTH LINKS V1 START */
.account-inline-links{
  align-items:center;
  justify-content:center;
}
.account-inline-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:.5rem .72rem;
  border:1px solid rgba(23,32,29,.2);
  border-radius:999px;
  background:#f7f0e2;
  color:#17352f;
  text-decoration:none;
  font-size:.78rem;
  font-weight:900;
}
.account-inline-links a:hover,
.account-inline-links a:focus-visible{
  border-color:rgba(184,138,60,.72);
  background:#f1e3c9;
}
.account-inline-links-single{
  justify-content:center;
  margin-top:1rem;
}
/* VENI ACCOUNT AUTH LINKS V1 END */
