/* Accounts: Ter-AX mark, account menu, sign-in dialog and account centre (/app/account). Same palette as the Market page. */
.signin-head .terrax-mark{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.25);border-radius:12px;background:#1b2430;color:#5fe0a0}
.terrax-word{letter-spacing:-.01em}.terrax-word em{font-style:normal;color:#5fe0a0}

.account-signin{flex:none;padding:8px 16px;border:0;border-radius:18px;background:#5fe0a0;color:#0b0f14;font:600 13px var(--tx-font,Inter,sans-serif);cursor:pointer}
.account-signin:hover{background:#7ae8b2}
.account-menu{position:relative;flex:none}
.account-avatar{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #5fe0a0;border-radius:50%;background:#1b2430;color:#e6edf3;font:600 13px var(--tx-font,Inter,sans-serif);cursor:pointer}
.account-avatar.static{flex:none;width:42px;height:42px;border:1px solid rgba(148,163,184,.25);cursor:default}
.account-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:1300;width:290px;padding:6px;border:1px solid rgba(148,163,184,.2);border-radius:12px;background:#121821;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.account-dropdown .account-who{padding:10px 10px 12px;border-bottom:1px solid rgba(148,163,184,.14);margin-bottom:6px}
.account-dropdown a,.account-dropdown button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#e6edf3;font:500 14px var(--tx-font,Inter,sans-serif);text-decoration:none;text-align:left;cursor:pointer}
.account-dropdown a:hover,.account-dropdown button:hover{background:#1b2430}
.account-dropdown .account-signout{margin-top:6px;border-top:1px solid rgba(148,163,184,.14);border-radius:0 0 8px 8px;color:#f0a07a}
.account-who{display:flex;align-items:center;gap:12px;min-width:0}
.account-who span{display:flex;flex-direction:column;min-width:0}
.account-who strong{font-size:15px;font-weight:600;color:#e6edf3;overflow:hidden;text-overflow:ellipsis}
.account-who small{color:#93a1b1;font-size:12px;overflow:hidden;text-overflow:ellipsis}

.account-overlay{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(5,8,12,.66)}
.account-backdrop{min-height:100vh;background:#0b0f14}
.signin-dialog{position:relative;width:min(420px,100%);box-sizing:border-box;padding:28px;display:flex;flex-direction:column;gap:16px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:#121821;color:#e6edf3;box-shadow:0 24px 60px rgba(0,0,0,.5);font-family:var(--tx-font,Inter,sans-serif);max-height:calc(100vh - 32px);overflow:auto}
.account-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#93a1b1;font-size:22px;cursor:pointer}
.account-close:hover{background:#1b2430;color:#e6edf3}
.signin-head{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.signin-head h2{margin:0;font-size:20px;font-weight:600}
.signin-head p{margin:0;color:#93a1b1;font-size:14px}
.signin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;border:1px solid rgba(148,163,184,.2);border-radius:10px;background:#0b0f14}
.signin-tabs button{height:36px;border:0;border-radius:7px;background:transparent;color:#93a1b1;font:500 14px var(--tx-font,Inter,sans-serif);cursor:pointer}
.signin-tabs button[aria-selected="true"]{background:#1b2430;color:#e6edf3;font-weight:600}

.account-field{display:flex;flex-direction:column;gap:6px;color:#c4ced8;font-size:12px}
.account-field input,.account-field select,.password-input{height:42px;box-sizing:border-box;padding:0 12px;border:1px solid rgba(148,163,184,.25);border-radius:8px;background:#0b0f14;color:#e6edf3;font:14px var(--tx-font,Inter,sans-serif)}
.account-field input:focus,.account-field select:focus{outline:2px solid rgba(95,224,160,.5);outline-offset:1px}
.account-field input[readonly]{border-color:rgba(148,163,184,.14);background:#0e131a;color:#93a1b1}
.password-input{display:flex;align-items:center;padding:0}
.password-input input{flex:1;min-width:0;height:40px;border:0;background:transparent}
.password-input input:focus{outline:none}
.password-input:focus-within{outline:2px solid rgba(95,224,160,.5);outline-offset:1px}
.password-input button{width:40px;height:40px;border:0;background:transparent;color:#93a1b1;cursor:pointer}
.password-meter{display:flex;align-items:center;gap:4px;margin-top:2px}
.password-meter i{flex:0 0 44px;height:5px;border-radius:3px;background:#2a3442}
.password-meter i.on.level-1{background:#f0a07a}.password-meter i.on.level-2{background:#e3b341}.password-meter i.on.level-3,.password-meter i.on.level-4{background:#5fe0a0}
.password-meter em{margin-left:6px;color:#93a1b1;font-style:normal;font-size:12px}
.password-rules{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;color:#93a1b1;font-size:12px}
.password-rules li.met{color:#c4ced8}
.account-field small.match{color:#5fe0a0}.account-field small.mismatch{color:#f0a07a}
.code-input{letter-spacing:.4em;font-size:20px!important;text-align:center}

.account-primary,.account-secondary,.account-danger{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border-radius:8px;font:600 14px var(--tx-font,Inter,sans-serif);text-decoration:none;cursor:pointer}
.account-primary{border:0;background:#5fe0a0;color:#0b0f14}
.account-primary:hover{background:#7ae8b2}
.account-secondary{border:1px solid rgba(148,163,184,.3);background:transparent;color:#e6edf3}
.account-secondary:hover{border-color:rgba(148,163,184,.5)}
.account-secondary.small{height:34px;padding:0 12px;font-size:13px}
.account-danger{border:1px solid #f0a07a;background:transparent;color:#f0a07a}
.account-danger.solid{background:#f0a07a;color:#0b0f14}
.account-primary:disabled,.account-secondary:disabled,.account-danger:disabled{opacity:.45;cursor:not-allowed}
.account-error{margin:0;color:#f0a07a;font-size:13px}
.account-done{color:#5fe0a0;font-size:13px}
.account-done.floating{margin:0}

.account-app{min-height:100vh;height:auto!important;overflow:visible!important;background:#0b0f14;color:#e6edf3;font-variant-numeric:tabular-nums}
body:has(.account-app),body:has(.account-backdrop){overflow:auto;background:#0b0f14}
.terrax-app.account-app .app-topbar{position:sticky;top:0;z-index:20;background:#0e131a;border-bottom:1px solid rgba(148,163,184,.14)}
.account-page-new{max-width:1160px;margin:0 auto;padding:32px 28px 48px;display:flex;gap:32px;align-items:flex-start;flex-wrap:wrap}
.account-nav{flex:0 0 230px;display:flex;flex-direction:column;gap:4px}
.account-nav .account-who{padding:4px 4px 18px}
.account-nav>button{padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#c4ced8;font:500 14px var(--tx-font,Inter,sans-serif);text-align:left;cursor:pointer}
.account-nav>button:hover{background:#121821}
.account-nav>button[aria-current="page"]{background:#1b2430;color:#e6edf3;font-weight:600;box-shadow:inset 2px 0 #5fe0a0}
.account-nav>button.account-signout{color:#f0a07a}
.account-rule{height:1px;margin:10px 0;background:rgba(148,163,184,.14)}
.account-body{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.account-body h1{margin:0 0 4px;font-size:28px;font-weight:700}
.account-card{padding:22px;display:flex;flex-direction:column;gap:14px;border:1px solid rgba(148,163,184,.14);border-radius:12px;background:#121821}
.account-card h2{margin:0;font-size:15px;font-weight:600}
.account-card.danger{flex-direction:row;align-items:center;justify-content:space-between;gap:20px;border-color:rgba(240,160,122,.35)}
.account-card.danger h2{color:#f0a07a}
.account-guest{max-width:640px}
.account-guest p{margin:0;color:#c4ced8;line-height:1.6}
.account-lead{margin:0;color:#93a1b1;font-size:13px}
.account-note{margin:0;color:#93a1b1;font-size:12px;font-style:italic}
.account-note::before{content:'* '}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.account-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.account-save{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.account-inline{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.account-inline .account-field{width:260px}
.two-step-setup{display:flex;gap:24px;flex-wrap:wrap}
.two-step-qr{flex:none;width:196px;height:196px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#ffffff;color:#0b0f14;text-align:center;font-size:12px;padding:8px;box-sizing:border-box}
.two-step-steps{flex:1;min-width:240px;display:flex;flex-direction:column;gap:12px}
.two-step-steps p{margin:0;color:#c4ced8;font-size:13px}
.two-step-steps code{padding:10px 12px;border-radius:8px;background:#0b0f14;color:#e6edf3;font-size:14px;letter-spacing:.06em;word-break:break-all}
.account-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.account-actions{display:flex;gap:10px;flex-wrap:wrap}
.account-search{display:flex;align-items:center;gap:8px;height:40px;width:270px;box-sizing:border-box;padding:0 12px;border:1px solid rgba(148,163,184,.25);border-radius:8px;background:#0e131a;color:#93a1b1}
.account-search input{flex:1;min-width:0;border:0;background:transparent;color:#e6edf3;font:14px var(--tx-font,Inter,sans-serif);outline:none}
.account-table{border:1px solid rgba(148,163,184,.14);border-radius:12px;background:#121821;overflow:hidden}
.account-row{display:grid;grid-template-columns:minmax(0,1.6fr) 120px 150px minmax(0,1fr) 110px 90px;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid rgba(148,163,184,.1);font-size:14px}
.account-row:last-child{border-bottom:0}
.account-row.head{padding:12px 18px;color:#93a1b1;font-size:12px}
.account-row>span:first-child{display:flex;flex-direction:column;gap:2px}
.account-row strong{font-weight:600}.account-row small{color:#93a1b1;font-size:12px}
.account-row>span:last-child{text-align:right}
.account-choices{display:flex;gap:12px;flex-wrap:wrap}
.account-choice{display:flex;flex-direction:column;gap:8px;padding:12px 16px;border:1px solid rgba(148,163,184,.25);border-radius:10px;cursor:pointer}
.account-choice span{display:flex;align-items:center;gap:10px}
.account-choice input{accent-color:#5fe0a0}
.account-choice.selected{border-color:#e6edf3;background:#1b2430}
.basemap-swatch{display:block;width:130px;height:64px;border-radius:6px}
.basemap-swatch.satellite{background:linear-gradient(135deg,#6b6a4f,#8c8a62 40%,#4f5a43 70%,#9a9478)}
.basemap-swatch.map{background:linear-gradient(135deg,#e8ede4,#d5e3d4 50%,#bcd6ea)}
.basemap-swatch.dark{background:linear-gradient(135deg,#131a22,#1d2733 60%,#0f141a)}
@media(max-width:760px){
  .account-page-new{padding:18px 16px 32px;gap:18px}
  .account-nav{flex-basis:100%;flex-direction:row;flex-wrap:wrap}.account-nav .account-who,.account-rule{display:none}
  .account-grid,.account-grid.three{grid-template-columns:minmax(0,1fr)}
  .account-card.danger{flex-direction:column;align-items:flex-start}
  .account-row{grid-template-columns:minmax(0,1fr) auto}.account-row>span:nth-child(n+2):not(:last-child){display:none}.account-row.head{display:none}
  .account-search{width:100%}
}
/* The legacy rule button:hover:not(:disabled){background:#edf2eb} would turn these white on hover. */
button.account-avatar:hover:not(:disabled){background:#26303d}
button.account-signin:hover:not(:disabled),button.account-primary:hover:not(:disabled){background:#7ae8b2}
.account-dropdown button:hover:not(:disabled),.account-nav>button:hover:not(:disabled){background:#1b2430}
.account-nav>button[aria-current="page"]:hover:not(:disabled){background:#1b2430}
.signin-tabs button:hover:not(:disabled){background:rgba(148,163,184,.1)}
.signin-tabs button[aria-selected="true"]:hover:not(:disabled){background:#1b2430}
button.account-close:hover:not(:disabled),.password-input button:hover:not(:disabled){background:#1b2430}
button.account-secondary:hover:not(:disabled){background:rgba(148,163,184,.08)}
button.account-danger:hover:not(:disabled){background:rgba(240,160,122,.12)}
button.account-danger.solid:hover:not(:disabled){background:#f4b394}
.account-choice,.account-choice span{color:#e6edf3}
.account-card.danger .account-danger{flex:none;white-space:nowrap}
/* Compact confirmation before an analysis (auth.js AnalysisConfirmation). */
.analysis-confirm{width:min(440px,100%);box-sizing:border-box;padding:22px 24px 20px;display:flex;flex-direction:column;gap:16px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:#121821;color:#e6edf3;box-shadow:0 24px 60px rgba(0,0,0,.5);font-family:var(--tx-font,Inter,sans-serif)}
.analysis-confirm header{display:flex;align-items:center;justify-content:space-between}
.analysis-confirm header h2{margin:0;font-size:20px;font-weight:600}
.analysis-confirm header .account-close{position:static}
.analysis-confirm-site{display:flex;gap:16px;align-items:center}
.analysis-confirm-site .site-preview{flex:none;width:112px;height:84px;border-radius:10px}
.analysis-confirm-site>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.analysis-confirm-site strong{font-size:16px;font-weight:600}
.analysis-confirm-site span{color:#c4ced8;font-size:14px}
.analysis-confirm-site small{color:#93a1b1;font-size:12px}
.analysis-confirm-includes{margin:0;color:#c4ced8;font-size:13px;line-height:1.5}
.analysis-confirm .analyse-button{width:100%}
.analysis-confirm-time{margin:-6px 0 0;color:#93a1b1;font-size:12px;font-style:italic;text-align:center}
.analysis-confirm-time::before{content:'* '}
.analysis-confirm-usage{margin:0;color:#93a1b1;font-size:12px;text-align:center}
.analysis-confirm .analyse-button{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(100deg,#43d991,#79ebb0);color:#0b0f14;font:600 15px var(--tx-font,Inter,sans-serif);cursor:pointer}
.analysis-confirm button.analyse-button:hover:not(:disabled){background:linear-gradient(100deg,#55e09d,#8af0bd)}
.analysis-confirm .analyse-button:disabled{opacity:.6;cursor:progress}
@media(max-width:760px){.account-signin{padding:6px 10px;font-size:12px}.app-topbar .section-tabs a{padding:6px 8px}}
.analysis-confirm-name{display:block;margin:0;color:#b7c0ca;font-size:12px}.analysis-confirm-name input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border:1px solid rgba(124,140,160,.45);border-radius:6px;background:#0d1116;color:#eef2f5;font:inherit;font-size:13px}.analysis-confirm-name input:focus{outline:none;border-color:#62d99a}.analysis-confirm-name small{display:block;margin-top:5px;color:#7f8a97;font-size:11.5px}
.share-link-dialog{position:relative;width:min(460px,100%);box-sizing:border-box;padding:20px 22px;display:flex;flex-direction:column;gap:12px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:#121821;color:#e6edf3;box-shadow:0 24px 60px rgba(0,0,0,.5);font-family:var(--tx-font,Inter,sans-serif)}.share-link-dialog header{display:flex;align-items:center;justify-content:space-between}.share-link-dialog h2{margin:0;font-size:16px}.share-link-dialog p{margin:0;color:#9aa5b1;font-size:12.5px;line-height:1.55}.share-link-row{display:flex;gap:8px}.share-link-row input{flex:1;min-width:0;padding:9px 10px;border:1px solid rgba(124,140,160,.45);border-radius:7px;background:#0d1116;color:#dfe6ee;font:inherit;font-size:12.5px}.share-link-dialog .share-copy,.share-link-dialog .share-native{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border:0;border-radius:7px;background:linear-gradient(100deg,#43bd7e,#62d99a);color:#08110c;font:600 12.5px var(--tx-font,Inter,sans-serif);cursor:pointer;white-space:nowrap}.share-link-dialog .share-native{background:transparent;border:1px solid rgba(124,140,160,.45);color:#dfe6ee}
.share-link-dialog .share-copy:focus,.share-link-dialog .share-copy:hover{background:linear-gradient(100deg,#4ccb8a,#72e3a8);color:#08110c}.share-link-dialog header .account-close{position:static}
