:root {
  --ink:#17202b;--muted:#64707d;--line:#dfe3e6;--surface:#fffefa;--canvas:#f4f2ed;
  --blue:#245bdb;--blue-dark:#1946b3;--blue-soft:#eaf0ff;--danger:#a63333;--danger-soft:#fff2f0;
  --shadow:0 18px 50px rgba(25,34,45,.07);
  font-family:"Avenir Next",Avenir,"Helvetica Neue",Helvetica,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none
}
*{box-sizing:border-box}html{min-width:320px}
body{min-height:100vh;margin:0;display:flex;flex-direction:column;background:radial-gradient(circle at 12% 8%,rgba(255,255,255,.9) 0 12rem,transparent 28rem),var(--canvas);line-height:1.55}
a{color:var(--blue)}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid rgba(36,91,219,.28);outline-offset:3px}
.site-header{width:min(1180px,calc(100% - 40px));min-height:76px;margin:16px auto 0;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--ink);background:rgba(255,254,250,.82);border:1px solid rgba(216,216,210,.8);border-radius:18px;box-shadow:0 8px 30px rgba(25,34,45,.04);backdrop-filter:blur(16px)}
.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);font-size:.95rem;font-weight:500;letter-spacing:-.01em;text-decoration:none}.brand strong{font-weight:700}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:var(--ink);border-radius:10px;font-size:.7rem;font-weight:800;letter-spacing:.08em}
.site-header nav,.site-footer nav{display:flex;align-items:center;gap:8px}.site-header form{margin:0}
.nav-link,.nav-button{min-height:42px;padding:0 14px;display:inline-flex;align-items:center;border:0;border-radius:10px;color:#4c5662;background:transparent;font-size:.875rem;font-weight:650;text-decoration:none;cursor:pointer;transition:color 180ms ease,background-color 180ms ease}
.nav-link:hover,.nav-button:hover{color:var(--ink);background:#efeee9}.nav-link-primary{color:#fff;background:var(--ink)}.nav-link-primary:hover{color:#fff;background:#303945}
.container{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:72px 0 88px;flex:1}
.site-footer{width:min(1080px,calc(100% - 40px));margin:0 auto;padding:22px 0 28px;display:flex;justify-content:space-between;gap:24px;border-top:1px solid #dcdcd7;color:var(--muted);font-size:.82rem}
.site-footer a{color:inherit;text-decoration:none}.site-footer a:hover{color:var(--ink)}
.messages{margin-bottom:24px}.message{margin:0;padding:14px 18px;border:1px solid #b9dfcb;border-radius:12px;color:#18583e;background:#eaf8f0}
h1,h2,p{margin-top:0}h1,h2{letter-spacing:-.035em}h1{margin-bottom:12px;font-size:clamp(2.35rem,5vw,4rem);line-height:1.02}h2{line-height:1.15}
.account-page{animation:page-in 480ms cubic-bezier(.2,.75,.25,1) both}
.account-heading{margin-bottom:42px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.eyebrow,.panel-label{margin-bottom:8px;color:var(--blue);font-size:.7rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.heading-copy{margin:0;color:var(--muted);font-size:1.02rem}
.settings-link{min-height:44px;padding:0 15px;display:inline-flex;align-items:center;gap:8px;border:1px solid #d7dadc;border-radius:11px;color:var(--ink);background:rgba(255,255,255,.55);font-size:.86rem;font-weight:700;text-decoration:none;transition:border-color 180ms ease,background-color 180ms ease}
.settings-link:hover{border-color:#aeb4ba;background:#fff}
.account-overview{margin:0 0 72px;display:grid;grid-template-columns:1.2fr .8fr;overflow:hidden;border:1px solid #dedfdc;border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}
.profile-panel,.quota-panel{min-width:0;padding:32px}.profile-panel{position:relative;display:flex;align-items:center;gap:20px}
.avatar{width:64px;height:64px;flex:0 0 auto;display:grid;place-items:center;border-radius:19px;color:#fff;background:var(--ink);font-size:1.35rem;font-weight:750}
.profile-copy{min-width:0}.profile-copy .panel-label{color:var(--muted)}.profile-copy h2{margin-bottom:3px;font-size:1.45rem;overflow-wrap:anywhere}.profile-copy>p:last-child{margin:0;color:var(--muted);overflow-wrap:anywhere}
.plan-badge{align-self:flex-start;margin-left:auto;padding:6px 10px;border-radius:999px;color:var(--blue-dark);background:var(--blue-soft);font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.quota-panel{color:#fff;background:var(--ink)}.quota-panel .panel-label{color:#9eb8ff}.quota-header{display:flex;justify-content:space-between;gap:20px}.quota-icon{color:#7699f6}
.quota-number{margin-bottom:20px}.quota-number strong{font-size:2.2rem;line-height:1}.quota-number span{color:#bac2cc;font-size:.85rem}
.quota-progress{width:100%;height:7px;display:block;overflow:hidden;border:0;border-radius:99px;color:#7da1ff;background:#38424f}
.quota-progress::-webkit-progress-bar{background:#38424f;border-radius:99px}.quota-progress::-webkit-progress-value{background:#7da1ff;border-radius:99px}.quota-progress::-moz-progress-bar{background:#7da1ff;border-radius:99px}
.quota-meta{margin-top:10px;display:flex;justify-content:space-between;gap:16px;color:#aeb7c2;font-size:.73rem}.quota-meta strong{color:#fff}
.content-section{margin:0 0 68px}.section-heading{margin-bottom:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.section-heading h2{margin:0;font-size:clamp(1.65rem,3vw,2rem)}.section-count{color:var(--muted);font-size:.78rem}
.app-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.app-card{min-width:0;min-height:92px;padding:18px;display:flex;align-items:center;gap:14px;border:1px solid #dcdfdf;border-radius:15px;color:var(--ink);background:rgba(255,254,250,.72);text-decoration:none;cursor:pointer;transition:border-color 180ms ease,background-color 180ms ease,transform 180ms ease}
.app-card:hover{border-color:#aeb7c2;background:#fff;transform:translateY(-2px)}
.app-monogram{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;color:var(--blue-dark);background:var(--blue-soft);font-size:.9rem;font-weight:800}
.app-copy{min-width:0;display:flex;flex-direction:column}.app-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.96rem}.app-copy span{color:var(--muted);font-size:.74rem}
.app-arrow{margin-left:auto;flex:0 0 auto;color:#87909a;transition:color 180ms ease,transform 180ms ease}.app-card:hover .app-arrow{color:var(--blue);transform:translateX(3px)}
.empty-card{grid-column:1/-1;margin:0;padding:24px;border:1px dashed #cfd3d4;border-radius:15px;color:var(--muted)}
.activity-card{overflow:hidden;border:1px solid #dcdfdf;border-radius:16px;background:var(--surface)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}
th,td{padding:16px 18px;border-bottom:1px solid #e6e7e5;text-align:left}th{color:var(--muted);background:#f8f7f3;font-size:.67rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}td{color:#4f5965;font-size:.84rem}tbody tr:last-child td{border-bottom:0}td time{white-space:nowrap}
.status{display:inline-flex;padding:4px 8px;border-radius:999px;color:#4f5965;background:#eceeec;font-size:.68rem;font-weight:750;white-space:nowrap}.status-completed,.status-authorized{color:#1d684a;background:#e5f5ec}.status-processing{color:#725a19;background:#faf2d8}.status-failed,.status-rejected_quota,.status-rejected_auth,.status-cancelled{color:#903030;background:#fae9e7}
.empty-row td{height:180px;text-align:center}.empty-row td>*{display:block;margin-inline:auto}.empty-row strong{margin:10px auto 2px;color:var(--ink);font-size:.95rem}.empty-row td>span:last-child{color:var(--muted);font-size:.78rem}.empty-icon{width:44px;height:44px;padding:10px;border-radius:12px;color:var(--blue);background:var(--blue-soft)}
.danger-zone{margin:16px 0 0;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #dadbd9}.danger-zone h2{margin-bottom:4px;font-size:1rem;letter-spacing:-.01em}.danger-zone p{margin:0;color:var(--muted);font-size:.78rem}.danger-zone form{flex:0 0 auto}
.danger-button{min-height:44px;padding:0 14px;border:1px solid #dfb9b3;border-radius:10px;color:var(--danger);background:transparent;font-size:.78rem;font-weight:750;cursor:pointer;transition:border-color 180ms ease,background-color 180ms ease}.danger-button:hover{border-color:#c9837a;background:var(--danger-soft)}
.container>h1{font-size:clamp(2.25rem,5vw,3.5rem)}.container>form{max-width:560px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.container>form p{display:grid;gap:6px}
label{font-size:.82rem;font-weight:700}input,select,textarea{width:100%;min-height:44px;padding:9px 11px;border:1px solid #cbd0d4;border-radius:9px;color:var(--ink);background:#fff}.container>form>button{min-height:44px;padding:0 18px;border:0;border-radius:9px;color:#fff;background:var(--blue);font-weight:750;cursor:pointer}.container>form>button:hover{background:var(--blue-dark)}.helptext{color:var(--muted);font-size:.75rem}.errorlist{padding-left:20px;color:var(--danger)}
@keyframes page-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.site-header{width:calc(100% - 24px);min-height:68px;margin-top:12px;padding-inline:12px}.brand>span:last-child{display:none}.nav-link,.nav-button{padding-inline:10px}.container{width:calc(100% - 32px);padding:48px 0 64px}.site-footer{width:calc(100% - 32px)}.account-heading{margin-bottom:28px;align-items:flex-start}.account-overview{margin-bottom:54px;grid-template-columns:1fr}.quota-panel{border-top:1px solid #38424f}.app-grid{grid-template-columns:1fr}.content-section{margin-bottom:54px}}
@media(max-width:520px){.site-header nav{gap:2px}.site-header .nav-link:not(.nav-link-primary){display:none}h1{font-size:2.65rem}.account-heading{display:block}.settings-link{margin-top:20px}.profile-panel,.quota-panel{padding:24px 20px}.profile-panel{align-items:flex-start;flex-wrap:wrap}.avatar{width:54px;height:54px;border-radius:16px}.profile-copy{width:calc(100% - 74px)}.plan-badge{margin:0}.section-count{display:none}th,td{padding:14px}.danger-zone{padding:22px 0 0;align-items:flex-start;flex-direction:column}.danger-button,.danger-zone form{width:100%}.site-footer{align-items:flex-start;flex-direction:column;gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
