/* Portal layout. Shared controls and account dialogs retain their existing styles. */
html { height:auto; scroll-behavior:smooth; }
body { --home-gutter:clamp(24px,4vw,96px); --home-width:1920px; margin:0; padding:0; height:auto; min-height:100dvh; overflow:visible; display:block; background:var(--ui-bg); color:var(--ui-text); }
[hidden] { display:none !important; }
a { color:inherit; }
.skip-link { position:fixed; top:-80px; left:16px; z-index:1000; padding:12px; background:var(--ui-action); color:var(--ui-on-accent); border-radius:8px; }
.skip-link:focus { top:12px; }
.home-topbar { position:sticky; top:0; z-index:100; min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px max(var(--home-gutter),calc((100vw - var(--home-width))/2)); border-bottom:1px solid var(--ui-border); background:var(--ui-bg); }
.home-brand { min-width:0; display:flex; align-items:center; gap:10px; text-decoration:none; min-height:40px; }
.home-brand img { width:34px; height:34px; object-fit:contain; }
.home-brand-name { font-size:17px; font-weight:650; white-space:nowrap; }
.home-brand-sub { padding-left:12px; border-left:1px solid var(--ui-border); font-size:12px; color:var(--ui-muted); }
.home-topbar-right,.home-nav,.home-account { display:flex; align-items:center; gap:8px; }
.home-topbar-right { gap:20px; }
.home-account { position:relative; flex-shrink:0; }
.home-ghost-btn,.home-ann-bell { min-height:40px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; border:1px solid transparent; border-radius:9px; color:var(--ui-muted); font:inherit; font-size:13px; text-decoration:none; cursor:pointer; }
.home-ghost-btn:hover,.home-ann-bell:hover { color:var(--ui-text); background:var(--ui-control); }
.home-ann-bell { position:relative; width:40px; padding:0; }
.home-theme { position:relative; }
#home-theme-btn { border-color:var(--ui-border); color:var(--ui-text); min-width:78px; white-space:nowrap; }
#home-theme-btn:disabled { opacity:.6; cursor:wait; }
.home-theme-status { position:absolute; top:calc(100% + 8px); left:0; width:max-content; max-width:220px; padding:9px 12px; border:1px solid var(--ui-border); border-radius:8px; background:var(--ui-panel); color:var(--ui-danger); font-size:13px; box-shadow:var(--ui-shadow); }
.home-theme-status:empty { display:none; }
.home-account .platform-coin-display { min-height:40px; cursor:pointer; font-family:inherit; }
.home-account .platform-coin-display:hover { background:var(--ui-hover); }
.home-account .topbar-user-btn { width:40px; height:40px; flex-shrink:0; background:var(--ui-control); color:var(--ui-text); }
.home-account .topbar-user-menu { width:min(310px,calc(100vw - 32px)); max-height:calc(100dvh - 100px); overflow:auto; }
.home-account .topbar-user-menu-head > div:last-child { min-width:0; overflow-wrap:anywhere; }
.home-account .topbar-user-avatar { flex-shrink:0; }

.home-page {margin:auto;box-sizing:border-box;}
.home-page :is(h1,h2,h3,p) {margin:0;}
.home-page a {text-decoration:none;color:inherit;}
.home-page button {font:inherit;border:0;background:transparent;cursor:pointer;}
.home-page .btn {display:inline-flex;align-items:center;justify-content:center;color:var(--ui-on-accent);}
.home-page .text-btn {font-size:11px;color:var(--ui-muted);}
.home-page .search {display:flex;align-items:center;gap:8px;}
.home-page .search input {width:100%;min-width:0;border:0;background:transparent;color:var(--ui-text);outline:none;}
.home-page .search:focus-within {border-color:var(--ui-focus-border);}
.home-hello {font-size:12px;color:var(--ui-muted);}
.home-hello b {font-weight:500;}
.home-footer-brand {margin-left:auto;}
.home-footer-brand img {width:100px;height:42px;object-fit:contain;}
.app-board {scroll-margin-top:100px;}
.app-empty {padding:40px;text-align:center;color:var(--ui-muted);}
.home-project-placeholder {grid-column:1/-1;}
.home-project-thumb > i {font-size:22px;}
.home-page {
  width: 100%;
  max-width: 1720px;
  padding: 26px clamp(24px, 3.2vw, 66px) 24px;
  color: var(--ui-text);
}
.home-page :is(h1,h2,h3) { letter-spacing: -.045em; }
.home-hero { position: relative; isolation: isolate; min-height: 475px; padding: 30px 38px 26px; background: var(--home-hero-bg); box-shadow:inset 0 0 0 1px var(--home-hero-border); border-radius: 16px; overflow: hidden; }
.home-hero-top, .home-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 2; font-size: 10px; color: var(--ui-muted); }
.home-hero-top > span:first-child { display: flex; align-items: center; gap: 8px; letter-spacing: .08em; }
.home-hero-top > span > img { width: 15px; height: 16px; object-fit: contain; }
.home-hero-top > span:last-child { font-size: 9px; letter-spacing: .19em; }
.home-hero-copy { position: relative; z-index: 2; padding-top: 34px; width: 58%; pointer-events: none; }
.home-hero h1 { margin:0;font-size: clamp(54px, 5.25vw, 92px); font-weight: 570; line-height: 1.19; letter-spacing: -.065em; }
.home-hero h1 span { color: var(--brand-accent); }
.home-hero-copy > p { font-size: 12px; line-height: 1.95; margin-top: 21px; color: var(--ui-muted); }
.home-hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 25px; pointer-events: auto; }
.home-hero-actions .btn { min-height: 43px; border-radius: 7px; padding: 0 18px; font-size: 12px; gap: 28px; background: var(--brand-action); border-color: var(--brand-action); }
.home-hero-actions .btn:hover { background: var(--brand-action-hover); }
.home-explore { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ui-muted); padding: 10px 0; }
.home-explore span { font-size: 16px; transition: transform .2s; }
.home-explore:hover span { transform: translateY(3px); }
.home-hero-bottom { padding-top: 30px; margin-top: 1px; font-size: 9px; letter-spacing: .05em; }
.home-hero-bottom > span:last-child { font-size: 8px; letter-spacing: .12em; }
.home-hero-bottom i { font-style: normal; padding: 0 9px; color: var(--ui-muted); }
.home-hero-art { position: absolute; z-index: 1; width: 55%; height: 92%; right: -1%; top: 6%; }
.home-hero-art::before { content: ''; position: absolute; width: 95%; height: 95%; top: 0; right: 0; background: var(--home-hero-glow); }
.home-brand-sculpture { position: absolute; width: 85%; height: 81%; left: 9%; top: 4%; object-fit: contain; filter:var(--home-logo-filter); }
.home-art-shadow { position: absolute; bottom: 10%; left: 25%; width: 55%; height: 8%; border-radius: 50%; background:var(--home-hero-shadow); opacity:var(--home-hero-shadow-opacity); filter: blur(17px); }
.home-art-orbit { position: absolute; left: 4%; top: 17%; width: 93%; height: 62%; border: 1px solid var(--home-hero-orbit); border-radius: 50%; transform: rotate(-32deg); opacity: .65; }
.home-art-coordinate { position: absolute; top: 12%; left: 19%; font-size: 8px; color: var(--ui-muted); letter-spacing: .12em; }
.home-art-caption { position: absolute; right: 9%; bottom: 16%; font-size: 8px; line-height: 1.65; letter-spacing: .12em; color: var(--ui-muted); }
.home-art-cross { position: absolute; left: 15%; bottom: 18%; font-size: 22px; color: var(--ui-muted); font-weight: 300; }


.home-discover { margin-top: 44px; padding-top: 29px; border-top: 1px solid var(--ui-border); }
.home-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.home-section-index { display: block; font-size: 8px; letter-spacing: .18em; color: var(--ui-muted); margin-bottom: 10px; }
.home-section-head h2 { margin:0;font-size: 25px; font-weight: 530; line-height: 1.45; }
.home-section-head h2 > span { color: var(--ui-accent); }
.home-section-head .text-btn { font-size: 11px; color: var(--ui-muted); margin-bottom: 3px; }
.home-section-head .text-btn svg { width: 14px; height: 14px; }
.home-page .tool-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.home-page .filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.home-page .filter-chips button { color: var(--ui-muted); font-size: 11px; padding: 7px 12px; border-radius: 5px; transition: color .2s,background .2s; }
.home-page .filter-chips button:hover { color: var(--ui-accent-text); }
.home-page .filter-chips button.is-active { color: var(--ui-accent-text); background: var(--ui-accent-soft); font-weight: 500; }
.home-page .tool-filters .search { margin: 0; width: 184px; max-width: none; height: 32px; border: 0; border-bottom: 1px solid var(--ui-border); border-radius: 0; font-size: 11px; padding-inline: 4px; }
.home-page .tool-filters .search svg { width: 13px; height: 13px; }
.home-page .tool-filters .search input { font-size: 10px; }
.home-page .tools-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
.home-page .tool-card { min-width: 0; display: flex; flex-direction: column; position: relative; border: 0; background: transparent; }
.home-tool-cover { position: relative; aspect-ratio: 600/314; overflow: hidden; background: var(--ui-control); border-radius: 8px; }
.home-tool-cover > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.home-tool-cover > .home-tool-status { position: absolute; top: 12px; left: 12px; padding: 4px 7px; border-radius: 4px; font-size: 9px; color: var(--ui-muted); background: var(--ui-panel); }
.home-tool-copy { padding: 13px 1px 0; }
.home-tool-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-page .tool-card h3 { margin:0;font-size: 14px; font-weight: 520; letter-spacing: -.025em; }
.home-tool-enter { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ui-border); border-radius: 50%; color: var(--ui-muted); transition: background .2s,color .2s,transform .2s; }
.home-tool-enter svg { width: 12px; height: 12px; transform: rotate(-40deg); }
.home-page .tool-card:hover .home-tool-enter { background: var(--ui-accent-soft); color: var(--ui-accent-text); transform: rotate(40deg); border-color: var(--ui-accent-soft); }
.home-page .tool-card p { margin-top: 3px; font-size: 10px; line-height: 1.8; color: var(--ui-muted); }
.home-page .tools-grid > .empty { grid-column: 1/-1; min-height: 250px; }

.home-recents { margin-top: 38px; }
.home-recents .home-section-head h2 { font-size: 22px; }
.home-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.home-project { display: flex; align-items: center; gap: 13px; min-width: 0; width: 100%; padding: 13px; border: 1px solid var(--ui-border); border-radius: 7px; background: var(--ui-panel); text-align: left; transition: background .15s,border-color .15s; }
.home-project:hover { background: var(--ui-control); border-color: var(--ui-border); }
.home-project-thumb { width: 59px; height: 51px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: var(--ui-control); border-radius: 4px; color: var(--ui-muted); }
.home-project-thumb > svg { width: 100%; height: 100%; }
.home-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-project-meta { min-width: 0; flex: 1; }
.home-project-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; }
.home-project-meta p { color: var(--ui-muted); font-size: 10px; margin-top: 6px; }
.home-project > svg { width: 14px; height: 14px; color: var(--ui-muted); }
.home-document-thumb { width: 32px; height: 40px; padding: 8px 6px; background: var(--ui-panel); border: 1px solid var(--ui-border); border-radius: 2px; }
.home-document-thumb i { display: block; height: 2px; background: var(--ui-muted); margin-top: 4px; }
.home-document-thumb i:first-child { width: 65%; height: 3px; margin-top: 0; background: var(--ui-muted); }
.home-project-placeholder { min-height: 80px; font-size: 11px; color: var(--ui-muted); padding: 28px 0; }
.home-foot { display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--ui-border); margin-top: 36px; padding-top: 22px; font-size: 10px; color: var(--ui-muted); }
.home-foot .row { gap: 18px; margin-left: auto; }
.home-foot .text-btn { font-size: 10px; color: var(--ui-muted); }
.home-footer-brand { letter-spacing: .1em; font-size: 9px; color: var(--ui-muted); }
.home-new-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.home-new-options button { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.home-new-options button:hover { background: var(--ui-control); border-color: var(--ui-border); }
.home-new-options button svg { color: var(--ui-muted); }
.home-new-options strong { font-size: 13px; font-weight: 500; }
.home-new-options small { color: var(--muted); font-size: 11px; line-height: 1.7; }

@media(min-width:1800px) {
  .home-page { padding-top: 32px; }
  .home-hero { min-height: 565px; padding: 34px 48px 28px; }
  .home-hero-copy { padding-top: 44px; }
  .home-hero-copy > p { font-size: 13px; margin-top: 25px; }
  .home-hero-actions { margin-top: 30px; }
  .home-hero-bottom { padding-top: 35px; }
  .home-recents { margin-top: 48px; }
  .home-section-head h2 { font-size: 29px; }
}
@media(max-width:1200px) {
  .home-page { padding: 23px 26px; }
  .home-hero { padding: 26px 28px 24px; min-height: 435px; }
  .home-hero h1 { font-size: 61px; }
  .home-hero-art { width: 57%; right: -5%; }
  .home-hero-copy { padding-top: 35px; width: 65%; }
  .home-hero-copy > p { font-size: 11px; }
  .home-page .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
  .home-project { padding: 10px; gap: 9px; }
  .home-project-thumb { width: 45px; height: 45px; }
  .home-project > svg { display: none; }
}
@media(max-width:1000px) {
  .home-hero h1 { font-size: 50px; }
  .home-hero { min-height: 405px; padding-inline: 24px; }
  .home-hero-art { width: 58%; right: -9%; height: 80%; top: 13%; }
  .home-brand-sculpture { width: 81%; left: 10%; }
  .home-art-caption { right: 17%; }
  .home-hero-actions { gap: 18px; }
  .home-hero-top > span:last-child { font-size: 7px; }
  .home-page .tool-filters { align-items: flex-start; }
  .home-page .filter-chips { gap: 0; }
  .home-page .filter-chips button { padding: 7px 9px; font-size: 10px; }
  .home-page .tool-filters .search { width: 150px; flex-shrink: 0; }
  .home-page .tools-grid { gap: 22px 16px; }
  .home-page .tool-card h3 { font-size: 12px; }
  .home-page .tool-card p { font-size: 9px; }
  .home-project-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-project { padding: 11px 14px; gap: 13px; }
  .home-project > svg { display: block; }
  .home-project-thumb { width: 58px; height: 47px; }
  .home-footer-brand { display: none; }
}
@media(max-width:760px) {
  :root[data-theme="light"] .home-hero { background: linear-gradient(165deg, var(--ui-panel) 0%, var(--ui-control) 50%, var(--ui-control) 100%); }
  .home-page { padding: 16px 18px 22px; }
  .home-hero { min-height: 640px; padding: 22px 22px 20px; border-radius: 12px; }
  .home-hero-top > span:first-child { font-size: 9px; }
  .home-hero-top > span:last-child { font-size: 6px; letter-spacing: .08em; }
  .home-hero-copy { width: 100%; padding-top: 30px; }
  .home-hero h1 { font-size: clamp(43px,8.6vw,66px); line-height: 1.2; }
  .home-hero-copy > p { font-size: 10px; margin-top: 18px; }
  .home-hero-actions { gap: 20px; margin-top: 20px; }
  .home-hero-actions .btn { min-height: 39px; font-size: 11px; gap: 24px; padding-inline: 15px; }
  .home-explore { font-size: 10px; gap: 9px; }
  .home-hero-art { width: 105%; height: 320px; top: 300px; right: -3%; }
  .home-brand-sculpture { width: 88%; height: 82%; left: 7%; top: 1%; }
  .home-art-coordinate { top: 0; left: 14%; }
  .home-art-caption { font-size: 6px; right: 13%; bottom: 13%; }
  .home-art-cross { left: 17%; bottom: 19%; font-size: 20px; }
  .home-hero-bottom { position: absolute; bottom: 20px; left: 22px; right: 22px; padding: 0; font-size: 8px; }
  .home-hero-bottom > span:last-child { font-size: 6px; letter-spacing: .04em; }
  .home-hero-bottom i { padding: 0 4px; }
  .home-discover { margin-top: 30px; padding-top: 24px; }
  .home-section-head { margin-bottom: 18px; gap: 10px; align-items: center; }
  .home-section-head h2 { font-size: 21px; }
  .home-section-index { font-size: 7px; margin-bottom: 7px; }
  .home-section-head .text-btn { font-size: 9px; white-space: nowrap; gap: 3px; margin-top: 16px; }
  .home-section-head .text-btn svg { width: 12px; height: 12px; }
  .home-page .tool-filters { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 17px; }
  .home-page .filter-chips { gap: 1px; }
  .home-page .filter-chips button { font-size: 10px; padding: 6px 9px; }
  .home-page .tool-filters .search { width: 100%; height: 33px; }
  .home-page .tool-filters .search input { font-size: 11px; }
  .home-page .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .home-tool-copy { padding-top: 9px; }
  .home-page .tool-card h3 { font-size: 12px; }
  .home-page .tool-card p { font-size: 9px; }
  .home-tool-enter { width: 21px; height: 21px; }
  .home-tool-cover > .home-tool-status { left: 9px; top: 9px; font-size: 8px; }
  .home-recents { margin-top: 30px; }
  .home-recents .home-section-head h2 { font-size: 20px; }
  .home-foot { flex-wrap: wrap; margin-top: 28px; gap: 16px; padding-top: 20px; font-size: 9px; }
  .home-foot .row { margin: 0; gap: 20px; width: 100%; }
  .home-foot .text-btn { font-size: 9px; }
  .home-new-options { grid-template-columns: 1fr; gap: 10px; }
  .home-new-options button { padding: 18px; gap: 9px; }
}
@media(max-width:380px) {
  .home-page { padding-inline: 12px; }
  .home-hero { padding-inline: 18px; min-height: 613px; }
  .home-hero h1 { font-size: 41px; }
  .home-hero-copy { padding-top: 27px; }
  .home-hero-top > span:last-child { display: none; }
  .home-hero-copy > p { font-size: 9px; }
  .home-hero-actions { gap: 17px; }
  .home-hero-actions .btn { gap: 14px; padding-inline: 13px; }
  .home-explore { font-size: 9px; }
  .home-hero-art { top: 291px; height: 292px; }
  .home-hero-bottom { left: 18px; right: 18px; font-size: 7px; }
  .home-hero-bottom > span:last-child { font-size: 5px; }
  .home-section-head h2 { font-size: 18px; }
  .home-section-head .text-btn { font-size: 8px; }
  .home-page .tool-card h3 { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .home-page *, .home-page *::before, .home-page *::after { transition: none !important; scroll-behavior: auto !important; } }
@media(max-width:760px) {
  body { --home-gutter:4%; }
  .home-topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:12px 4%; }
  .home-topbar-right { display:contents; }
  .home-section-head .home-hello {display:none;}
  .home-brand { grid-row:1; grid-column:1; }
  .home-account { grid-row:1; grid-column:2; }
  .home-nav { grid-row:2; grid-column:1/-1; justify-content:flex-end; flex-wrap:wrap; }
  .home-brand-name { font-size:15px; }
}
@media(max-width:380px) {
  .home-brand-name { font-size:13px; }
  .home-brand img { width:26px; height:26px; }
  .home-nav { gap:2px; }
  .home-ghost-btn { padding:0 5px; font-size:12px; gap:4px; }
  .home-account { gap:5px; }
  .home-account .platform-coin-display { padding:5px 7px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none !important; transition:none !important; } }