/* The dashboard is a compact workspace. Long editors scroll inside their panel;
   the overview stays within the viewport at normal desktop and phone sizes. */
body.claus-site.dashboard-page{--paper:#f6f7f5;--ink:#202721;--muted:#717871;--line:#e3e7e1;--accent:#de633d;background:var(--paper);color:var(--ink);font:14px/1.5 Claus,system-ui,sans-serif}
.dashboard-page #main{display:grid;grid-template-columns:182px minmax(0,1fr);width:min(1480px,100%);height:calc(100dvh - var(--claus-bar-height));min-height:0;margin:auto;padding:0}
.dashboard-page h1,.dashboard-page h2,.dashboard-page h3,.dashboard-page h4{font-family:Claus,system-ui,sans-serif;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.dashboard-page h1{font-size:28px;line-height:1.2;font-weight:650;margin:3px 0 0}
.dashboard-page h2{font-size:20px;line-height:1.25;font-weight:600;margin:0 0 10px}
.dashboard-page h3{font-size:15px;margin:0 0 8px;letter-spacing:-.02em}
.dashboard-page p{margin:0 0 10px}.dashboard-page a{color:inherit;text-decoration:none}.dashboard-page a:hover{color:var(--accent)}
.dashboard-page [hidden]{display:none!important}
.dashboard-page :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.dashboard-page :is(button,a,select,input){-webkit-tap-highlight-color:transparent}
.dashboard-page button,.dashboard-page .primary-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;border:1px solid var(--ink);border-radius:8px;background:var(--ink);color:#fff;font:600 13px/1.25 Claus,system-ui,sans-serif;padding:10px 15px;cursor:pointer;box-shadow:none}
.dashboard-page button:hover:not(:disabled),.dashboard-page .primary-link:hover{background:#37433a;color:#fff}
.dashboard-page button.secondary{background:#fff;color:var(--ink);border-color:#d9dfd7}
.dashboard-page button.secondary:hover:not(:disabled){background:#edf0eb;color:var(--ink)}
.dashboard-page button:disabled{opacity:.5;cursor:default}
.dashboard-page .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.dashboard-page :is(input,textarea,select){width:100%;min-height:42px;margin:0;border:1px solid #d9dfd7;border-radius:8px;background:#fff;color:var(--ink);font:400 14px/1.4 Claus,system-ui,sans-serif;padding:10px 12px}
.dashboard-page label{display:block;margin:0 0 6px;font-size:12px;font-weight:600;color:#596259}
.dashboard-page .muted{font-size:12px;color:var(--muted)}
.dashboard-page summary{font-size:13px;min-height:42px;padding-block:11px;cursor:pointer;font-weight:600}
.dashboard-page details{margin:14px 0 0}.dashboard-page form{margin:12px 0 0}
.dashboard-sidebar{display:flex;flex-direction:column;gap:20px;min-height:0;padding:30px 14px 20px;border-right:1px solid var(--line)}
.dashboard-page #dashboard-tabs{display:flex;flex-direction:column;gap:5px;flex-wrap:nowrap}
.dashboard-page #dashboard-tabs button{justify-content:flex-start;gap:12px;min-height:43px;width:100%;border:0;border-radius:8px;padding:10px 12px;background:transparent;color:#727971;font-weight:500}
.dashboard-page #dashboard-tabs button:hover{background:#eaede7;color:var(--ink)}
.dashboard-page #dashboard-tabs button[aria-selected=true]{background:#e8ede5;color:#26392a;font-weight:650}
#dashboard-tabs svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.dashboard-workspace{display:flex;flex-direction:column;gap:20px;min-width:0;min-height:0;padding:25px 30px 26px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}
#dashboard-status,#dashboard-error{flex-shrink:0;font-size:12px;margin:0;padding:8px 12px;border-radius:7px;background:#eef2eb;color:#54644e}
#dashboard-error:not(:empty),.field-error:not(:empty){color:#ad3725;background:#fff1ec;border-left:3px solid #d26e50;padding:10px 12px}
#dashboard-status:empty,#dashboard-error:empty,#account-wallet:empty{display:none}
.dashboard-tabpanel{min-height:0;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.overview-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:18px;overflow:auto}
.overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:#fff}
.stat{padding:17px 23px;min-width:0}.stat+.stat{border-left:1px solid var(--line)}
.stat p{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#788071;margin-bottom:8px}
.stat strong{display:block;font-size:clamp(24px,2.8vw,34px);font-weight:550;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stat small{display:block;margin-top:9px;font-size:10px;color:#66725d;line-height:1.3}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(285px,.9fr);gap:18px;min-height:0}
.world-card{display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid #dce4d8;border-radius:12px;background:#e9eee6}
.world-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:19px 21px 0;z-index:1;font-size:9px;font-weight:600;letter-spacing:.09em;color:#5f7157}
.property-badge{padding:4px 7px;border-radius:5px;background:#ffffff80;font-size:9px;letter-spacing:0;color:#6d7f65}
.property-art{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;color:#e4d6bc}
.property-art svg{display:block;width:100%;height:100%;max-height:340px;overflow:visible}
.property-art[data-palette=stone]{color:#c1af8d}.property-art[data-palette=terracotta]{color:#b85134}.property-art[data-palette=forest]{color:#284539}.property-art[data-palette=sage]{color:#7f9783}
.world-card-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:10px 21px 21px}
.world-card-bottom h2{font-size:17px;letter-spacing:-.03em;margin-bottom:5px}.world-card-bottom p{color:#607057;font-size:11px;line-height:1.4;margin:0;max-width:30ch}
.world-card-bottom a{display:inline-flex;align-items:center;gap:12px;min-height:38px;flex-shrink:0;color:#40513b;font-size:11px;font-weight:600;white-space:nowrap}
.dashboard-membership{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:24px 28px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dashboard-membership h2{font-size:22px;letter-spacing:-.04em;line-height:1.15;margin-bottom:10px}
.account-controls{width:100%}.account-controls .actions #connect{width:100%;justify-content:center;padding-inline:14px}
.account-wallet{font-size:11px;color:#76826f;overflow-wrap:anywhere;font-family:ui-monospace,monospace}
#private-dashboard{display:flex;flex-direction:column;min-height:0;flex:1}#account-observed{font-size:10px;margin:0 0 12px;color:#67755c}
.dashboard-account-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:18px;min-height:100%}
.dashboard-panel,.dashboard-block{min-width:0;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}
.dashboard-block+.dashboard-block{margin-top:18px}.dashboard-page .eyebrow{font-size:9px;color:#647657;letter-spacing:.12em;margin-bottom:12px}
.dashboard-panel h2,.dashboard-block h2{font-size:22px;margin-bottom:10px}
#key-state,#inference-state,.dashboard-block>p{font-size:12px;color:#788370;line-height:1.6}
.key-value{display:block;background:#f5f7f2;border:1px solid #e3e8de;border-radius:8px;margin:21px 0 14px;padding:15px;font:12px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;white-space:pre-wrap;color:#63715c;min-height:50px}
.config-list{margin:10px 0 14px}.config-list dt{font-size:10px;color:#647259;margin-top:10px}.config-list dd{margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}
.agent-connection{padding-top:10px;border-top:1px solid var(--line)}.agent-connection>a{font-size:12px;color:#6a7d5e}
.period{border-top:1px solid var(--line);padding-top:17px;margin-top:18px}.period>p{font-size:10px;color:#67765b}.period dl,.usage-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;font-size:12px;font-variant-numeric:tabular-nums;margin:14px 0}.period dt,.usage-overview dt{color:#7f8b77}.period dd,.usage-overview dd{margin:0;text-align:end;font-weight:600;overflow-wrap:anywhere}
.usage-summary{padding-top:17px;border-top:1px solid var(--line);margin-top:18px}.usage-summary>p{font-size:11px;color:#65755b}.usage-summary h4{font-size:11px;margin:18px 0 7px}.usage-list{list-style:none;padding:0;margin:0}.usage-list li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 0;margin:0;font-size:10px;overflow-wrap:anywhere}.usage-list li span{color:#7f8b77;text-align:right}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-top>a{font-size:11px;font-weight:600}
#homes{display:grid;gap:15px;margin-top:20px}.house{padding:20px;border:1px solid var(--line);border-radius:10px;min-width:0;background:#fff}.house-card-header{display:flex;align-items:center;gap:18px}.house-thumbnail{width:100px;height:76px;flex:0 0 100px;border-radius:8px;background:#edf1e9;overflow:hidden;color:#e4d6bc}.house-thumbnail svg{width:100%;height:100%}.house .house-meta{font-size:11px;color:#64755a;margin:5px 0 0}.house a{font-size:11px;color:#5f7453}.house .editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.house fieldset{min-width:0;border:1px solid var(--line);border-radius:9px;padding:15px;margin:18px 0}.house legend{font-size:11px;font-weight:600;padding:0 6px}.house form>p{font-size:11px;color:#647859;margin-top:12px}.house .link-fields{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin-top:10px}.house :is(input,textarea,select){min-width:0;max-width:100%}.dashboard-page .check{display:flex;gap:10px;align-items:flex-start;font-size:12px;margin:10px 0}.dashboard-page .check input{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:0}.house-preview{padding:15px;background:#f4f7f0;border-radius:8px;margin:16px 0}.house-preview p{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.house-preview h4{font-size:15px;margin:7px 0}.terms-text{font:12px/1.7 Claus,system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f9f5;padding:15px;border-radius:8px;max-height:300px}.account-links{display:flex;gap:18px;margin:22px 0;font-size:12px;flex-wrap:wrap}.project-rows{list-style:none;padding:0;margin:14px 0}.project-rows li{border-top:1px solid var(--line);padding:12px 0;margin:0}.project-rows a{display:inline-flex;align-items:center;min-height:38px;font-size:14px}#panel-projects>.primary-link{margin-top:16px}#key-confirmation{padding:14px;border-radius:9px;background:#fff4ed;margin-top:14px;font-size:12px}
.locked-panel{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:#fff;padding:30px;text-align:center}.locked-panel p{font-size:13px;color:#64755a;max-width:36ch;margin:0 0 24px}.locked-panel h2{font-size:22px}
@media(min-width:1000px) and (max-height:770px){.dashboard-workspace{padding:20px 25px;gap:16px}.stat{padding:13px 20px}.stat strong{font-size:29px}.stat small{margin-top:7px}.overview-panel{gap:14px}.overview-grid{gap:14px}.dashboard-membership{padding:18px 24px}.dashboard-membership h2{font-size:20px}.world-card-bottom{padding:8px 18px 16px}}
@media(max-width:1000px){.dashboard-page #main{grid-template-columns:150px minmax(0,1fr)}.dashboard-workspace{padding:22px;gap:17px}.dashboard-sidebar{padding-inline:10px}.overview-grid{grid-template-columns:1fr 1fr;gap:14px}.dashboard-membership{padding:20px}.world-card-heading{padding:16px 16px 0;font-size:8px}.world-card-bottom{padding:10px 16px 17px;flex-direction:column;align-items:flex-start;gap:4px}.world-card-bottom a{min-height:28px}.stat{padding:16px}.stat p{font-size:10px}.dashboard-account-grid{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-page #main{display:flex;flex-direction:column;height:calc(100dvh - var(--claus-bar-height));min-height:0}.dashboard-sidebar{flex-shrink:0;display:block;padding:8px 12px 0;border:0}.dashboard-page #dashboard-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.dashboard-page #dashboard-tabs button{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 2px;font-size:10px;min-height:48px}#dashboard-tabs svg{width:16px;height:16px}.dashboard-workspace{flex:1;padding:14px 14px 16px;gap:13px}.dashboard-page h1{font-size:22px}.overview-panel{gap:12px}.overview-stats{border-radius:10px}.stat{padding:12px 10px}.stat p{font-size:9px;margin-bottom:6px}.stat strong{font-size:24px}.stat small{font-size:8px;margin-top:6px}.overview-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px}.dashboard-membership{padding:16px 13px}.dashboard-membership h2{font-size:17px}.account-controls label{font-size:9px}.account-controls select{font-size:11px;padding:8px 6px;min-height:38px}.account-controls #connect{font-size:11px;min-height:40px;padding-inline:10px}.account-controls .actions{margin-top:8px;gap:5px}.account-controls button.secondary{font-size:10px;padding:8px;min-height:36px}.world-card-heading{flex-direction:column;align-items:flex-start;gap:5px;padding:14px 12px 0;font-size:7px}.property-badge{font-size:8px}.world-card-bottom{padding:8px 12px 14px}.world-card-bottom h2{font-size:14px}.world-card-bottom p{font-size:9px}.world-card-bottom a{font-size:9px}.dashboard-panel,.dashboard-block{padding:20px}.house-card-header{gap:10px}.house-thumbnail{width:75px;height:64px;flex-basis:75px}.house .editor-grid,.house .link-fields{grid-template-columns:1fr}.usage-list li{display:block}.usage-list li span{display:block;text-align:left;margin-top:4px}}
@media(prefers-reduced-motion:reduce){.dashboard-page *{animation:none!important;transition:none!important;scroll-behavior:auto}}
@media(forced-colors:active){.dashboard-page :focus-visible{outline-color:Highlight}.dashboard-page .check input{appearance:auto}}

@media(max-width:700px){.property-badge{font-size:10px}.stat p{font-size:10px}.stat small{font-size:9px}.world-card-bottom p{font-size:10px}.account-controls select{font-size:16px}}

/* Quiet overview: account data appears after sign-in; navigation carries itself. */
.dashboard-sidebar{padding-top:26px}
.overview-panel{grid-template-rows:auto minmax(0,1fr)}
.dashboard-page[data-auth=signed-out] .overview-panel{grid-template-rows:minmax(0,1fr)}
.dashboard-page .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.stat p{font-size:13px}.stat small{font-size:11px}
.world-card-heading:has(.property-badge[hidden]){display:none}
.world-card-bottom{align-items:center}.world-card-bottom h2{font-size:20px;margin:0}
.world-card-bottom a{justify-content:center;min-height:44px;padding:10px 16px;border-radius:8px;background:#ffffffa6;font-size:12px}
.world-card-bottom a:hover{background:#fff;color:#26392a}
.dashboard-membership h2{margin-bottom:24px}
.access-state{font-size:12px;color:#68725e;margin:12px 0 20px!important}
.account-wallet{font-size:12px;line-height:1.7}
.locked-panel h2{margin-bottom:24px}
@media(max-width:700px){
 .dashboard-sidebar{padding:8px 12px 0}
 .stat p{font-size:11px}.stat small{font-size:10px}
 .dashboard-membership h2{font-size:19px;margin-bottom:22px}
 .world-card-bottom{align-items:flex-start;gap:12px}
 .world-card-bottom h2{font-size:17px}
 .world-card-bottom a{font-size:11px;padding:8px 12px;min-height:42px}
 .account-controls #connect{font-size:12px;min-height:44px}
 .account-controls select{font-size:16px;min-height:44px}
 .access-state{font-size:11px}.account-wallet{font-size:10px}
}

/* Text links keep a consistent affordance without decorative glyphs. */
.account-links a,.section-top>a,.agent-connection>a{display:inline-flex;align-items:center;min-height:40px;text-decoration:underline;text-decoration-color:#b8c1b2;text-underline-offset:4px}
@media(max-width:700px){
 .overview-grid{grid-template-columns:1fr;grid-template-rows:minmax(150px,.9fr) minmax(174px,1fr);gap:12px}
 .world-card{min-height:150px}.world-card-bottom{flex-direction:row;align-items:center;padding:8px 16px 12px}
 .world-card-heading{position:absolute;padding:12px 16px}.world-card{position:relative}
 .property-art svg{max-height:180px}.dashboard-membership{padding:20px}
 .dashboard-membership h2{font-size:19px;margin-bottom:16px}.account-wallet{font-size:12px}
 .account-controls .actions{flex-wrap:nowrap}.account-controls button.secondary{min-height:44px;font-size:12px;padding:10px 14px}
}

/* Signed-out dashboard: one deliberate entry point, with no private readout
   or world preview before a wallet has authenticated the account. */
.dashboard-page #main{position:relative;isolation:isolate}
.dashboard-page[data-auth=signed-out] #main{grid-template-columns:1fr;place-items:center}
.dashboard-auth-gate{grid-column:1/-1;grid-row:1;display:flex;flex-direction:column;align-items:center;width:min(100% - 40px,610px);padding:clamp(28px,6vw,64px) clamp(20px,6vw,64px);border:1px solid color-mix(in srgb,var(--line) 85%,#fff);border-radius:24px;background:rgba(255,255,255,.82);box-shadow:0 20px 60px rgba(35,48,37,.08);text-align:center}
.auth-brand{display:flex;align-items:center;gap:9px;margin-bottom:28px;color:#75836f;font-size:10px;font-weight:700;letter-spacing:.18em}
.auth-brand span+span{padding-left:9px;border-left:1px solid #d7ddd4;color:#a0aaa0;font-size:9px}
.dashboard-auth-gate h1{margin:0;font-size:clamp(30px,4vw,44px);font-weight:650;letter-spacing:-.055em}
.dashboard-auth-gate #auth-copy{margin:10px 0 28px;color:#718070;font-size:13px}
.wallet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:10px}
.wallet-option-wrap{min-width:0}
.dashboard-page .wallet-option{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:96px;gap:11px;padding:16px 10px;border:1px solid #e0e6de;border-radius:16px;background:#fff;color:var(--ink);font-size:12px;font-weight:600;box-shadow:0 1px 2px rgba(36,51,38,.03);transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease,transform 140ms ease}
.dashboard-page .wallet-option:hover:not(:disabled){border-color:#c2cfbe;background:#fbfdf9;box-shadow:0 7px 18px rgba(36,51,38,.08);transform:translateY(-1px)}
.dashboard-page .wallet-option:active:not(:disabled){transform:translateY(0) scale(.98)}
.dashboard-page .wallet-option:disabled{opacity:.46;background:#f9faf8;cursor:default}
.wallet-option img{display:block;width:30px;height:30px;object-fit:contain}
.wallet-option-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.wallet-option-copy strong{font-size:12px;font-weight:650;white-space:nowrap}
.wallet-option-copy small{font-size:10px;color:#859084;font-weight:500}
.wallet-help{min-height:18px;margin:16px 0 0!important;color:#7d897d;font-size:11px}
.wallet-fallback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px}
.dashboard-page[data-auth=signed-out] .dashboard-sidebar,.dashboard-page[data-auth=signed-out] .dashboard-workspace{display:none}
.dashboard-page[data-auth=signed-in] .dashboard-auth-gate{display:none}
.dashboard-page[data-auth=signed-in] .dashboard-sidebar,.dashboard-page[data-auth=signed-in] .dashboard-workspace{display:flex}
.dashboard-page[data-auth=signed-in] .dashboard-sidebar{background:rgba(255,255,255,.26)}
.dashboard-page[data-auth=signed-in] .dashboard-workspace{background:rgba(255,255,255,.16)}
.dashboard-page[data-auth=signed-in] .workspace-heading{padding-bottom:4px;border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent)}
.dashboard-page[data-auth=signed-in] .workspace-heading h1{font-size:clamp(26px,3vw,36px)}
.dashboard-page[data-auth=signed-in] .overview-stats,.dashboard-page[data-auth=signed-in] .dashboard-panel,.dashboard-page[data-auth=signed-in] .dashboard-block,.dashboard-page[data-auth=signed-in] .dashboard-membership{box-shadow:0 5px 24px rgba(35,48,37,.035)}
@media(max-width:700px){
 .dashboard-page[data-auth=signed-out] #main{display:flex;align-items:center;justify-content:center}
 .dashboard-auth-gate{width:min(100% - 28px,520px);padding:32px 16px 24px;border-radius:20px}
 .auth-brand{margin-bottom:22px}.dashboard-auth-gate #auth-copy{margin-bottom:22px}
 .wallet-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .dashboard-page .wallet-option{min-height:88px;padding:13px 8px;border-radius:14px}
 .wallet-option-copy strong{font-size:11px}.wallet-option-copy small{font-size:9px}
 .dashboard-page[data-auth=signed-in] .workspace-heading{border-bottom:0;padding-bottom:0}
}
@media(prefers-reduced-motion:reduce){.dashboard-page .wallet-option{transition:none}}
