@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{--ink:#292b2a;--muted:#90938d;--paper:#f7f8f4;--line:#e4e7df;--accent:#d8f29c}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #9a84cd;outline-offset:4px}.topbar{height:100px;padding:0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.brand{font-family:Manrope,sans-serif;font-size:30px;font-weight:800;letter-spacing:-2px;display:flex;align-items:center;gap:10px}.brand-dot{color:#83a751;margin-left:-8px}.brand-icon{font-size:42px;transform:rotate(-12deg);font-weight:500;line-height:1}.header-note{color:var(--muted);font-size:12px;margin-left:70px}.header-actions{display:flex;gap:24px;align-items:center}.button{background:var(--ink);color:white;padding:13px 20px;border:0;border-radius:9px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:20px;transition:background .2s,transform .2s}.button:hover{background:#444a3d;transform:translateY(-1px)}.button span{font-size:20px;line-height:16px}.avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;background:#e9ecdf;font-size:21px;color:#626c50;border:4px solid #f7f8f4}.small-avatar{width:38px;height:38px;font-size:14px;border:1px solid #dce1d1}.workspace{min-height:calc(100vh - 200px);display:grid;grid-template-columns:270px minmax(300px,1fr) 170px;gap:28px;padding:42px 48px 115px;position:relative}.profile-card{align-self:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px 23px 0;box-shadow:0 8px 24px #26301904}.profile-top{display:flex;align-items:center;justify-content:space-between}.available{font-size:8px;letter-spacing:1px;color:#799350;display:flex;align-items:center;gap:5px}.available i,.status-dot{width:5px;height:5px;border-radius:50%;background:#9bb76c;display:inline-block}.profile-card h2{font-family:Manrope,sans-serif;font-size:21px;letter-spacing:-.8px;margin:18px 0 6px}.profile-card p{color:var(--muted);font-size:11px;margin:0}.profile-divider{height:1px;background:var(--line);margin:23px 0 19px}.profile-stats{display:flex;gap:35px}.profile-stats strong{font-family:Manrope,sans-serif;font-weight:600;font-size:25px;display:block}.profile-stats span{display:block;color:var(--muted);font-size:10px;margin-top:3px}.profile-foot{margin:23px -23px 0;padding:14px 23px;background:#fafbf7;border-top:1px solid #eff0e9;border-radius:0 0 16px 16px;font-size:9px;color:#8e9584;display:flex;align-items:center;gap:7px}.stack-area{text-align:center;min-width:0}.section-heading{margin:10px 0 34px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#92978a}h1{font-family:Manrope,sans-serif;font-size:43px;letter-spacing:-2px;font-weight:600;margin:11px 0}h1 span{color:#91ac68}.section-heading p{color:var(--muted);font-size:12px;margin:8px}.legend{align-self:center;padding-bottom:30px}.legend .eyebrow{font-size:9px}#legend-list{margin-top:24px}.legend-row{display:flex;align-items:center;gap:10px;font-size:11px;color:#73796d;margin:16px 0}.legend-dot{width:8px;height:8px;border-radius:3px}.legend p{font-size:11px;line-height:1.8;color:#a4a89d;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.text-button{background:none;border:0;padding:8px 0;color:#7b846e;font-size:10px}.stack-item:hover .tooltip,.stack-item:focus-within .tooltip{opacity:1;visibility:visible;transform:translate(0,-50%)}.tooltip{position:absolute;top:50%;left:calc(100% - 12px);background:#fff;padding:15px;text-align:left;box-shadow:0 8px 35px #242d241a;border:1px solid var(--line);border-radius:10px;width:205px;z-index:20;opacity:0;visibility:hidden;transform:translate(5px,-50%);transition:.15s;pointer-events:none}.tooltip strong{display:block;font-size:12px}.tooltip span{display:block;font-size:10px;color:#8c9585;margin-top:7px;line-height:1.5;overflow-wrap:anywhere}.stack-caption{display:flex;justify-content:center;gap:8px;font-size:9px;letter-spacing:1px;color:#969d8d;margin-top:17px}.stack-caption i{font-style:normal;color:#b2b8a9}.empty-state{margin:48px auto 0;max-width:340px;padding:28px 20px}.empty-state img{width:66px;opacity:.7}.empty-state h2{font-size:18px;font-weight:500;margin:15px 0 10px}.empty-state p{color:var(--muted);font-size:12px;line-height:1.8}.empty-state .button{margin-top:15px;font-size:12px}.dashboard-footer{height:94px;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:0 48px;background:linear-gradient(#f7f8f400,var(--paper) 30%);z-index:30;pointer-events:none}.dashboard-footer>*{pointer-events:auto}.footer-note,.footer-version{font-size:8px;color:#a1a79a;letter-spacing:1px}.bottom-nav{display:flex;gap:5px;background:#fff;padding:7px;border:1px solid var(--line);border-radius:13px;box-shadow:0 4px 18px #29332606}.bottom-nav button{padding:12px 16px;border:0;background:transparent;color:#93988c;border-radius:8px;font-size:11px;white-space:nowrap}.bottom-nav button span{font-size:15px;margin-right:7px}.bottom-nav button.active{background:#edf2e5;color:#536343}.bottom-nav button:hover{background:#f3f5ef}dialog{width:440px;max-width:calc(100% - 32px);border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 25px 100px #1a251d26;color:var(--ink)}dialog::backdrop{background:#26302555;backdrop-filter:blur(4px)}.modal-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.modal-heading h2{font-family:Manrope,sans-serif;letter-spacing:-1px;font-size:26px;margin:8px 0 0}.close-button{background:#f1f3ed;border:0;width:28px;height:28px;border-radius:50%;font-size:20px;color:#858d7b}label{display:block;font-size:11px;font-weight:500;margin:17px 0 8px}input,select,textarea{width:100%;background:#fafbf8;border:1px solid #e0e4d9;border-radius:7px;padding:12px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#9caf80;box-shadow:0 0 0 3px #9caf8017}textarea{height:75px;resize:vertical}.type-picker{display:flex;gap:8px}.type-picker label{display:flex;align-items:center;gap:8px;margin:0;background:#f4f6ef;padding:12px;border-radius:8px;flex:1}.type-picker input{width:auto;accent-color:#7a925e}.optional,.modal-note{color:#929b87;font-size:10px;font-weight:400}.modal-note{line-height:1.7}.modal-note:last-child{text-align:center;margin-bottom:0}dialog .button{width:100%;margin-top:15px}.form-error{color:#b45140;font-size:11px;margin:7px 0}.color-row{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-size:12px}.color-row input{width:45px;height:32px;padding:3px}.friend-card{background:white;border:1px solid var(--line);border-radius:12px;text-align:left;padding:20px;margin:12px auto;max-width:360px;display:flex;align-items:center;gap:15px}.friend-card h3{font-size:14px;margin:0 0 5px}.friend-card p{font-size:11px;color:var(--muted);margin:0}.friend-card button{margin-left:auto;border:0;background:#edf2e5;border-radius:7px;padding:8px;color:#647452;font-size:11px}.compare-select{max-width:300px;margin:0 auto 20px}.compare-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.compare-columns h3{font-size:13px;font-weight:500}.compare-pill{background:white;border:1px solid var(--line);border-left:4px solid var(--color);padding:12px;border-radius:7px;margin:8px 0;text-align:left;font-size:11px}.compare-pill small{display:block;color:#9a9f93;margin-top:4px}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#30392a;color:white;border-radius:9px;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:100}#toast.visible{opacity:1}.login-page{min-height:100vh;padding:40px 7%;position:relative;overflow-x:hidden}.login-brand{width:max-content}.login-card{width:360px;max-width:100%;margin:85px 0 70px 9%}.login-card h1{font-size:48px;line-height:1.18;margin:18px 0}.login-card>p{font-size:13px;color:#8c9482;line-height:1.8}.login-card form{margin-top:28px}.login-card .button{width:100%;justify-content:space-between;margin-top:24px}.login-card small{font-size:10px;display:block;color:#9aA18f;text-align:center;margin-top:16px}.login-footer{font-size:11px;color:#9ba38f}.login-art{position:absolute;top:29%;left:61%;width:300px;transform:rotate(-7deg)}.login-art>span{display:block;text-align:center;color:#9da78f;font-size:11px;margin-top:30px;transform:rotate(7deg)}[hidden]{display:none!important}@media(min-width:1450px){.workspace{padding-top:65px;gap:60px}.stack-scene{padding-top:25px}}@media(max-width:1100px){.topbar{padding:0 25px}.workspace{padding:30px 25px 120px;grid-template-columns:230px 1fr;gap:20px}.profile-card{padding-left:18px;padding-right:18px}.profile-foot{margin-left:-18px;margin-right:-18px;padding-left:18px}.legend{display:none}.header-note{display:none}.footer-note,.footer-version{display:none}.dashboard-footer{justify-content:center}.tooltip{left:auto;right:5%;top:0}}@media(max-width:680px){.topbar{height:80px;padding:0 20px}.brand{font-size:26px}.header-actions{gap:12px}.header-actions .button{font-size:11px;padding:11px 13px;gap:10px}.workspace{display:block;padding:22px 20px 110px}.profile-card{max-width:400px;margin:auto;padding:15px 18px}.profile-top{float:left;margin-right:12px}.available{display:none}.profile-card h2{font-size:17px;margin:4px 0 4px}.profile-card p{font-size:10px}.profile-divider,.profile-foot{display:none}.profile-stats{clear:both;padding-top:16px;gap:25px}.profile-stats>div{display:flex;align-items:center;gap:7px}.profile-stats strong{font-size:17px}.profile-stats span{font-size:9px}.section-heading{margin-top:32px;margin-bottom:25px}h1{font-size:34px}.stack-scene{width:330px}.bottom-nav{gap:0;width:100%;justify-content:space-between}.bottom-nav button{padding:12px 9px;font-size:9px}.bottom-nav button span{display:block;margin:0 0 4px}.dashboard-footer{height:90px;padding:0 14px}.tooltip{width:180px}.login-page{padding:25px}.login-card{margin:60px auto;width:350px}.login-card h1{font-size:43px}.login-art{display:none}.login-footer{text-align:center}.compare-columns{gap:10px}.empty-state{margin-top:20px}}

/* Rounded diamond slabs. Layer order is set in renderStack, never on hover. */
.stack-scene {
    position: relative;
    isolation: isolate;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0 30px;
}
.stack-scene:after {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: 20px;
    left: 12%;
    width: 76%;
    height: 25px;
    background: #34422525;
    filter: blur(12px);
    border-radius: 50%;
}
.stack-item {
    position: relative;
    height: 64px;
}
.stack-scene .stack-item:last-child { height: 150px; }
.stack-block {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: white;
    text-align: left;
    clip-path: polygon(50% 0, 98% 39%, 98% 61%, 50% 100%, 2% 61%, 2% 39%);
    transition: filter .18s;
}
.slab { display: block; width: 100%; height: 100%; }
.slab-base, .slab-top { fill: var(--color); }
.stack-block:hover, .stack-block:focus-visible { filter: brightness(1.12); }
.stack-block:focus-visible .slab-top { stroke: #fff; stroke-width: 2; }
.block-name {
    position: absolute;
    top: 86px;
    left: 30px;
    width: 112px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    transform: skewY(23deg);
    pointer-events: none;
}
.block-detail { display: none; }
.stack-item .tooltip { left: calc(100% + 8px); top: 92px; }
@media (max-width: 1100px) {
    .stack-item .tooltip { left: auto; right: 0; top: 145px; }
}
@media (max-width: 360px) {
    .stack-scene { width: 270px; }
    .stack-block, .stack-scene .stack-item:last-child { height: 135px; }
    .stack-item { height: 58px; }
    .block-name { top: 77px; left: 27px; width: 100px; font-size: 9px; }
}

/* Shared logo and plain-text controls. */
.brand-logo { display: block; width: 132px; height: auto; }
.close-button { width: auto; height: auto; border-radius: 6px; padding: 7px 10px; font-size: 11px; }
.bottom-nav button { padding-top: 14px; padding-bottom: 14px; }
.login-card .button { justify-content: center; }
.login-art { top: 20%; left: 62%; width: 280px; transform: none; }
.login-art > img { display: block; width: 100%; height: auto; }
.login-art > span { margin-top: 12px; transform: none; }
@media (max-width: 900px) and (min-width: 681px) {
    .login-card { margin-left: 0; width: 330px; }
    .login-art { left: auto; right: 4%; width: 230px; top: 28%; }
}
@media (max-width: 680px) {
    .brand-logo { width: 112px; }
    .bottom-nav button { padding: 15px 9px; }
    .login-art { display: block; position: relative; left: auto; top: auto; width: 190px; margin: 0 auto 35px; }
}

.auth-tabs { display: flex; gap: 6px; padding: 5px; margin-top: 25px; border: 1px solid var(--line); border-radius: 9px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px; color: #818a74; font-size: 12px; border-radius: 6px; }
.auth-tabs .selected { background: #eaf0e1; color: #485a36; }
.login-card .auth-tabs + form { margin-top: 20px; }
.admin-main { max-width: 1120px; margin: 40px auto; padding: 0 25px 50px; }
.admin-description { color: #858d7c; font-size: 12px; line-height: 1.7; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 24px; margin-top: 20px; }
.admin-panel h2 { margin-top: 0; font-size: 19px; font-weight: 500; }
.admin-panel .button { margin-top: 15px; font-size: 11px; }
.admin-panel input[type=color] { width: 55px; height: 38px; padding: 4px; flex: 0 0 55px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.checkbox-label input { width: auto; accent-color: #82995e; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-row > input:not([type=hidden]):not([type=color]), .admin-row > select { flex: 1; min-width: 100px; }
.admin-row .button { flex-shrink: 0; margin: 0; }
.layer-owner { flex: 1; overflow-wrap: anywhere; }
.layer-owner small { display: block; margin-top: 5px; color: #858d7c; }
.success-message { font-size: 12px; color: #5f813f; }
button:disabled { cursor: wait; opacity: .5; }
@media(max-width: 800px) { .admin-row { flex-wrap: wrap; } .admin-grid { grid-template-columns: 1fr; } }

/* Keep the landing logo on the same left edge as the login form. */
.login-brand { width: 360px; max-width: 100%; margin-left: 9%; }
@media (max-width: 900px) and (min-width: 681px) {
    .login-brand { width: 330px; margin-left: 0; }
}
@media (max-width: 680px) {
    .login-brand { width: 350px; margin-left: auto; margin-right: auto; }
}

/* Landing FAQ sits alongside the account form on wide screens. */
.landing-faq {
    position: absolute;
    top: 165px;
    left: 49%;
    width: 590px;
    max-width: 44%;
    padding-bottom: 45px;
}
.landing-faq h2 {
    font-family: Manrope, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.4px;
    margin: 0 0 30px;
}
.landing-faq details {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eceee7;
}
.landing-faq summary {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 16px 64px 16px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary:after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
        linear-gradient(#fff, #fff) center / 2px 10px no-repeat,
        #252b1d;
}
.landing-faq details[open] summary:after {
    background: linear-gradient(#fff, #fff) center / 10px 2px no-repeat, #252b1d;
}
.landing-faq summary:hover { background: #fcfdf9; }
.landing-faq summary:focus-visible { outline: 2px solid #9caf80; outline-offset: -2px; }
.landing-faq details p {
    margin: 0;
    padding: 0 64px 18px 24px;
    color: #858d7c;
    font-size: 14px;
    line-height: 1.9;
}
@media (max-width: 1100px) {
    .landing-faq { left: 54%; max-width: 39%; }
    .landing-faq h2 { font-size: 22px; }
}
@media (max-width: 800px) {
    .landing-faq { position: static; width: 420px; max-width: 100%; margin: 0 auto 30px; padding-bottom: 0; }
    .login-page:has(.landing-faq) .login-card { width: 350px; margin: 60px auto; }
    .login-page:has(.landing-faq) .login-brand { width: 350px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 800px) {
    .landing-faq summary { min-height: 56px; padding: 15px 56px 15px 20px; font-size: 14px; }
    .landing-faq summary:after { right: 22px; }
    .landing-faq details p { padding: 0 22px 22px; font-size: 13px; }
}

/* Compact dashboard heading leaves the main space for stack layers. */
.stack-area .section-heading { margin: 0 0 14px; }
.stack-area .section-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.stack-area .section-heading h1 { font-size: 25px; letter-spacing: -.8px; line-height: 1.25; margin: 6px 0; }
.stack-area .section-heading p { font-size: 10px; line-height: 1.5; margin: 4px 0 0; }
@media (max-width: 680px) {
    .stack-area .section-heading { margin: 22px 0 10px; }
    .stack-area .section-heading h1 { font-size: 23px; }
}

/* Slim dashboard navigation keeps more vertical room for growing stacks. */
body[data-developer] .topbar { height: 64px; padding: 0 24px; }
body[data-developer] .topbar .brand-logo { width: 112px; }
body[data-developer] .header-note { font-size: 10px; }
body[data-developer] .header-actions { gap: 18px; }
body[data-developer] .header-actions .button { padding: 9px 14px; font-size: 12px; border-radius: 7px; }
body[data-developer] .workspace { min-height: calc(100vh - 134px); padding-top: 24px; }
body[data-developer] .dashboard-footer { height: 70px; }
body[data-developer] .bottom-nav { padding: 5px; border-radius: 10px; }
body[data-developer] .bottom-nav button { padding: 9px 13px; font-size: 10px; }
@media (max-width: 680px) {
    body[data-developer] .topbar { height: 58px; padding: 0 16px; }
    body[data-developer] .topbar .brand-logo { width: 100px; }
    body[data-developer] .header-actions { gap: 12px; }
    body[data-developer] .header-actions .button { padding: 8px 11px; font-size: 11px; }
    body[data-developer] .workspace { padding-top: 16px; }
    body[data-developer] .bottom-nav { width: auto; }
}

/* Keep the base near the bottom; new layers build upward from it. */
body[data-developer] .workspace {
    min-height: calc(100dvh - 64px);
    padding-bottom: 100px;
}
body[data-developer] .stack-area {
    display: flex;
    flex-direction: column;
}
body[data-developer] #view-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
body[data-developer] .stack-scene { flex-shrink: 0; }
body[data-developer] .stack-caption { flex-shrink: 0; }
body[data-developer] #view-content > .empty-state { margin: auto; }
@media (max-width: 680px) {
    body[data-developer] .workspace { min-height: calc(100dvh - 58px); padding-bottom: 95px; }
    body[data-developer] #view-content { min-height: 350px; }
}

/* Place the view heading in the header, outside the stack canvas. */
body[data-developer] .topbar { position: relative; }
body[data-developer] .topbar .section-heading {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0;
    max-width: 40%;
}
body[data-developer] .topbar .section-heading .eyebrow,
body[data-developer] .topbar .section-heading p { display: none; }
body[data-developer] .topbar .section-heading h1 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.5px;
    margin: 0;
}
@media (max-width: 680px) {
    body[data-developer] .topbar .section-heading { max-width: 28%; }
    body[data-developer] .topbar .section-heading h1 { font-size: 14px; }
}
@media (max-width: 400px) {
    body[data-developer] .topbar .brand-logo { width: 80px; }
    body[data-developer] .header-actions { gap: 8px; }
    body[data-developer] .header-actions .button { padding: 8px; font-size: 10px; }
    body[data-developer] .topbar .section-heading { left: 44%; }
}

/* Profile card spacing after removing the decorative footer. */
body[data-developer] .profile-card { padding-bottom: 22px; }
@media (max-width: 680px) { body[data-developer] .profile-card { padding-bottom: 15px; } }

/* A compact stack, scaled consistently across slab size and layer spacing. */
body[data-developer] .stack-scene { width: 240px; padding: 8px 0 24px; }
body[data-developer] .stack-item { height: 51px; }
body[data-developer] .stack-block,
body[data-developer] .stack-scene .stack-item:last-child { height: 120px; }
body[data-developer] .block-name { top: 69px; left: 24px; width: 90px; font-size: 9px; line-height: 13px; }
body[data-developer] .stack-item .tooltip { top: 74px; }
body[data-developer] .stack-scene:after { bottom: 16px; height: 20px; filter: blur(10px); }
@media (max-width: 1100px) {
    body[data-developer] .stack-item .tooltip { top: 116px; }
}

/* Resize actual layer dimensions so the base and page flow stay in place. */
body[data-developer] .stack-scene { width: calc(240px * var(--stack-zoom, 1)); }
body[data-developer] .stack-item { height: calc(51px * var(--stack-zoom, 1)); }
body[data-developer] .stack-block,
body[data-developer] .stack-scene .stack-item:last-child { height: calc(120px * var(--stack-zoom, 1)); }
body[data-developer] .block-name {
    top: calc(69px * var(--stack-zoom, 1));
    left: calc(24px * var(--stack-zoom, 1));
    width: calc(90px * var(--stack-zoom, 1));
    font-size: calc(9px * var(--stack-zoom, 1));
    line-height: calc(13px * var(--stack-zoom, 1));
}
body[data-developer] .stack-item .tooltip { top: calc(74px * var(--stack-zoom, 1)); }
.zoom-controls {
    position: fixed; right: 24px; bottom: 84px; z-index: 35;
    display: flex; align-items: center; gap: 6px;
    padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 9px;
}
.zoom-controls button {
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px;
    background: #f1f4eb; color: #455339; font: 18px/1 Arial, sans-serif;
    display: grid; place-items: center;
}
.zoom-controls button:hover { background: #e5ecd9; }
.zoom-controls button:disabled { cursor: default; opacity: .35; }
.zoom-controls output { min-width: 42px; text-align: center; font-size: 10px; color: #808975; }
@media (max-width: 1100px) {
    body[data-developer] .stack-item .tooltip { top: calc(116px * var(--stack-zoom, 1)); }
}
@media (max-width: 680px) {
    .zoom-controls { right: 16px; bottom: 78px; }
}

.public-id { display: flex; align-items: center; gap: 7px; margin: 10px 0; }
.public-id > span { font-family: monospace; font-size: 11px; color: #79846c; }
#copy-id { display: grid; place-items: center; padding: 5px; border: 0; border-radius: 4px; color: #647253; background: #f0f4e9; }
.peer-search { width: 100%; max-width: 470px; margin: 0 auto 22px; text-align: left; }
.peer-search label { margin-top: 0; }
.peer-search > div { display: flex; gap: 8px; }
.peer-search input { background: white; text-transform: uppercase; min-width: 0; }
.peer-search .button { font-size: 12px; padding: 10px 17px; }
body[data-developer] .peer-mode #view-content { justify-content: flex-start; }
#peer-comparison { display: flex; flex: 1; overflow-x: auto; padding-bottom: 15px; }
.peer-columns { min-width: calc(480px * var(--stack-zoom,1) + 48px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; width: 100%; }
.peer-column { display: flex; flex-direction: column; min-width: 0; }
.peer-column + .peer-column { border-left: 1px solid var(--line); padding-left: 24px; }
.peer-heading { margin-bottom: 20px; }
.peer-heading h2 { font-size: 15px; font-weight: 500; margin: 0 0 7px; overflow-wrap: anywhere; }
.peer-heading h2 small { color: #98a08e; font-size: 10px; }
.peer-heading p { font-size: 10px; color: #929b86; margin: 0; }
.peer-connection-actions { margin-top:14px; }
.peer-stack { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.peer-stack .empty-state { margin: auto; }
.peer-stack .stack-caption { font-size: 8px; letter-spacing: .4px; }
.peer-stack .stack-scene { max-width: none; }
body[data-developer] .peer-mode { grid-template-columns: 230px minmax(0,1fr); }
.peer-mode .legend { display: none; }
.peer-mode .tooltip { left: auto !important; right: 0; }
@media(max-width: 1100px) {
    body[data-developer] .peer-mode { grid-template-columns: 190px minmax(0,1fr); }
    .peer-columns { gap: 16px; }
    .peer-column + .peer-column { padding-left: 16px; }
}
@media(max-width: 900px) {
    body[data-developer] .peer-mode { display: block; }
    .peer-mode .profile-card { max-width: 350px; margin: 0 auto 24px; }
    #peer-comparison { overflow-x: auto; padding-bottom: 15px; }
    .peer-columns { min-height: 400px; }
}

/* Friends displays one stack; Compare keeps the search on the peer side. */
.peer-result { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.peer-column > .peer-search { flex-shrink: 0; margin: 0 0 20px; }
body[data-developer] .friends-mode #view-content { justify-content: flex-start; }
.friends-mode .peer-result .peer-stack > .empty-state { margin: auto; }
.peer-mode #peer-comparison { width: 100%; }
@media(max-width: 680px) {
    body[data-developer] .bottom-nav button { font-size: 9px; padding: 9px 10px; }
}

/* Compare marks only the skills missing from the opposite stack. */
.unique-layer .slab-base { stroke: #f5d785; stroke-width: 3px; }
.unique-marker {
    position: absolute;
    right: -10px;
    top: calc(82px * var(--stack-zoom, 1));
    padding: 3px 6px;
    background: #fff7df;
    border: 1px solid #e5c66f;
    border-radius: 5px;
    color: #80651f;
    font-size: 8px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}
.tooltip .unique-description { color: #9a7620; font-weight: 600; }
.comparison-key { margin: 12px 0 0; font-size: 9px; color: #8b927f; }
.comparison-key span { display: inline-block; width: 7px; height: 7px; background: #f5d785; border-radius: 2px; margin-right: 4px; }

/* One page-level tooltip stays above all slabs, independent of their z-index. */
.stack-item .tooltip { display: none; }
.tooltip.floating-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: calc(100vw - 24px);
    margin: 0;
    transform: none;
    transition: none;
    pointer-events: none;
}
.tooltip.floating-tooltip.visible { visibility: visible; opacity: 1; }
.unique-layer .slab-base,
.unique-layer .slab-top { stroke: #ffbc24; stroke-width: 4px; stroke-linejoin: round; }
.unique-layer .stack-block { filter: drop-shadow(0 0 3px #ffbc2470); }
.unique-layer .stack-block:hover { filter: brightness(1.1) drop-shadow(0 0 4px #ffbc2490); }
.unique-marker {
    background: #ffca45;
    border: 1px solid #c98a00;
    color: #493000;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 7px;
    box-shadow: 0 2px 5px #65420020;
}
.comparison-key span { background: #ffbc24; }

/* Readable tab labels without a taller navigation bar. */
body[data-developer] .bottom-nav button {
    font-size: 13px;
    font-weight: 500;
    color: #68715f;
    padding: 10px 16px;
}
body[data-developer] .bottom-nav button.active { color: #354b25; font-weight: 600; }
@media (max-width: 680px) {
    body[data-developer] .bottom-nav { max-width: 100%; gap: 0; }
    body[data-developer] .bottom-nav button { font-size: 12px; padding: 10px; }
}
@media (max-width: 380px) {
    body[data-developer] .bottom-nav button { padding: 10px 7px; font-size: 11px; }
}
.google-signin-button { width: 100%; background: #fff; color: #30352c; border: 1px solid #747775; }
.google-signin-button:hover { background: #f3f5ef; }
.login-card .forgot-password-link { font-size: 13px; text-align: right; margin-top: 12px; }
.login-card .google-signin-form { margin-top: 20px; }
.login-card .google-signin-form .button { margin-top: 0; }
.login-card .account-switch { margin-top: 22px; text-align: center; }
.account-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Keep the carousel below both columns, including expanded FAQ answers. */
.landing-account-sections { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8%; align-items: start; }
.landing-account-sections .login-card { margin-left: 18%; }
.landing-account-sections .landing-faq { position: static; width: 100%; max-width: 100%; margin-top: 125px; }
@media (max-width: 1100px) and (min-width: 801px) {
    .landing-account-sections .login-card { margin-left: 0; }
}
@media (max-width: 800px) {
    .landing-account-sections { display: block; }
    .landing-account-sections .login-card { margin: 60px auto; }
    .landing-account-sections .landing-faq { width: 420px; margin: 0 auto 30px; }
}
.logout-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; transition: background .2s; }
.logout-button:hover { background: #edf2e5; }
.logout-button img { display: block; width: 20px; height: 20px; object-fit: contain; }
.faq-contact { margin-top: 24px; }
.faq-contact p { margin: 0 0 14px; color: #858d7c; font-size: 13px; line-height: 1.7; }
.faq-contact .button { font-size: 12px; }
.faq-contact p { font-size: 12px; }
.faq-contact a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.support-email { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.copy-email { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 6px; border: 0; border-radius: 4px; background: transparent; vertical-align: middle; }
.copy-email:hover { background: #eaf0e1; }
.copy-email img { display: block; width: 14px; height: 14px; }
.copy-email-status { display: block; color: #68745f; font-size: 12px; }
.copy-email { position: relative; }
.copy-email.is-copying img { visibility: hidden; }
.copy-email.is-copying::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid #dce3d5; border-top-color: #536343; border-radius: 50%; animation: copy-email-spin .65s linear infinite; }
@keyframes copy-email-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .copy-email.is-copying::after { animation: none; } }
.stack-add-button { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex-shrink: 0; width: 28px; height: 28px; margin: 0 auto 2px; padding: 3px; border: 0; border-radius: 50%; background: transparent; }
.stack-add-button:hover { background: #eaf0e1; }
.stack-add-button img { display: block; width: 22px; height: 22px; }
/* Review outlines follow the actual diamond face of each layer. */
.verification-stack .slab-top { stroke: #36432c; stroke-width: 2; stroke-linejoin: round; }
.verification-stack .layer-unverified { stroke-dasharray: 2 5; }
.verification-stack .layer-verified { stroke: none; stroke-dasharray: none; }
.floating-tooltip.visible { pointer-events: auto; }
.floating-tooltip .request-verification { margin-top: 12px; width: 100%; font-size: 11px; padding: 10px; }
.verification-submission { border-top: 1px solid var(--line); padding: 20px 0; }
.verification-submission h3 { margin: 0 0 10px; }
.verification-submission p { overflow-wrap: anywhere; }
.verification-submission dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 12px; }
.verification-submission dd { margin: 0; overflow-wrap: anywhere; }
.verification-status { font-size: 12px; color: #68745f; }
.verification-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.verification-stack .stack-block.is-unverified { opacity: 1; filter: saturate(.1); }
.verification-stack .stack-block.is-unverified:hover,
.verification-stack .stack-block.is-unverified:focus-visible { filter: saturate(.1) brightness(1.12); }
.verified-layer-badge { position: absolute; left: calc(-27px * var(--stack-zoom, 1)); top: calc(55px * var(--stack-zoom, 1)); width: calc(22px * var(--stack-zoom, 1)); height: calc(22px * var(--stack-zoom, 1)); background: #08b72b; -webkit-mask: url('../img/circletick.svg') center / contain no-repeat; mask: url('../img/circletick.svg') center / contain no-repeat; pointer-events: none; }
.verified-layer-badge-small { width: calc(13px * var(--stack-zoom, 1)); height: calc(13px * var(--stack-zoom, 1)); left: calc(-18px * var(--stack-zoom, 1)); top: calc(60px * var(--stack-zoom, 1)); }
.verified-layer-badge-small { -webkit-mask-image: url('../img/circletick_fill.svg'); mask-image: url('../img/circletick_fill.svg'); }

.stack-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; width:100%; margin-bottom:24px; }
.stack-layout-picker { display:flex; padding:4px; background:#e9ede2; border-radius:12px; }
.stack-layout-picker button { border:0; border-radius:8px; padding:10px 16px; background:transparent; color:#737c67; }
.stack-layout-picker button[aria-pressed="true"] { background:#fff; color:#343d2c; box-shadow:0 2px 6px #2630190c; }
.verification-toggle { position:relative; display:flex; align-items:center; gap:9px; margin:0; cursor:pointer; font-size:12px; }
.verification-toggle input { position:absolute; width:38px; height:24px; opacity:0; margin:0; }
.switch-track { width:38px; height:24px; border-radius:20px; background:#dce1d5; padding:3px; transition:background .2s; }
.switch-track:after { content:''; display:block; width:18px; height:18px; border-radius:50%; background:white; transition:transform .2s; }
.verification-toggle input:checked + .switch-track { background:#73994b; }
.verification-toggle input:checked + .switch-track:after { transform:translateX(14px); }
.verification-toggle input:focus-visible + .switch-track { outline:3px solid #9a84cd; outline-offset:3px; }
.stack-mode-help { color:#7b846e; font-size:12px; line-height:1.7; margin:0 0 20px; }
.company-text { color:#8c9484; font-size:11px; line-height:1.6; overflow-wrap:anywhere; font-weight:400; }
.invite-request-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.invite-code-hint { line-height:1.8; }
.invite-code-hint a, .landing-faq details p a { color:#536343; text-decoration:underline; text-underline-offset:3px; }
.profile-company-row { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin:4px 0 10px; }
.profile-card { position:relative; }
.profile-card h2 { padding-right:20px; }
.profile-edit-button { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:28px; height:28px; padding:5px; border:1px solid currentColor; border-radius:50%; background:transparent; color:#a1aa98; }
.profile-edit-button img { display:none; }
.profile-edit-button::before { content:''; display:block; width:14px; height:14px; background:currentColor; -webkit-mask:url('../img/edit-icon.svg') center / contain no-repeat; mask:url('../img/edit-icon.svg') center / contain no-repeat; }
.profile-edit-button:hover { background:#f3f6ef; color:#78866b; }
#profile-about { white-space:pre-line; overflow-wrap:anywhere; line-height:1.7; }
.company-edit { border:0; background:none; padding:3px 0; color:#7a876b; font-size:10px; text-decoration:underline; text-underline-offset:3px; }
.person-company { margin:3px 0 7px; }
.legend-verification { border-top:1px solid var(--line); margin-top:24px; padding-top:20px; }
.legend-verification .verification-toggle { font-size:11px; gap:8px; }
.legend-verification .exploded-toggle { margin-top:14px; }
.legend-verification .switch-track { width:32px; height:20px; padding:3px; }
.legend-verification .switch-track:after { width:14px; height:14px; }
.legend-verification .verification-toggle input { width:32px; height:20px; }
.legend-verification .verification-toggle input:checked + .switch-track:after { transform:translateX(12px); }
.own-stack-mode .legend { display:block; }
@media(min-width:1101px) { body[data-developer] .own-stack-mode.peer-mode { grid-template-columns:230px minmax(0,1fr) 170px; } }
@media(max-width:1100px) { .own-stack-mode .legend { grid-column:2; padding-bottom:0; } .own-stack-mode .legend > .eyebrow, .own-stack-mode #legend-list { display:none; } .own-stack-mode .legend-verification { border-top:0; margin-top:16px; padding-top:0; } }
.exploded-stacks { display:flex; align-items:flex-end; gap:32px; width:100%; overflow-x:auto; padding:32px 22px 18px; margin-top:auto; }
.exploded-group { flex:1 0 calc(240px * var(--stack-zoom, 1)); min-width:0; padding:0; }
.exploded-group h2 { font-size:12px; font-weight:500; color:#737c67; margin:14px 0 0; text-align:center; }
.exploded-group-stack { display:flex; flex-direction:column; align-items:center; }
body[data-developer] #view-content:has(.exploded-stacks) { justify-content:flex-end; }
.discover-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; text-align:left; margin-bottom:18px; }
.discover-toolbar h2 { font-size:21px; font-weight:500; letter-spacing:-.6px; margin:6px 0; }
.discover-toolbar p { color:#8c9585; font-size:12px; line-height:1.7; }
.discover-toolbar label { min-width:180px; margin:0; }
.discover-toolbar select { margin-top:8px; }
.discover-feed { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:16px; width:100%; }
.discover-card { display:flex; flex-direction:column; min-width:0; background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px; text-align:left; }
.discover-card header { min-height:54px; }
.discover-card h2 { margin:0 0 5px; font-size:15px; font-weight:500; line-height:1.4; overflow-wrap:anywhere; }
.discover-card header p { margin:0; font-size:11px; color:#89917f; line-height:1.7; }
.discover-preview { --stack-zoom:.55; display:flex; flex:1; flex-direction:column; justify-content:flex-end; align-items:center; padding:10px 0 12px; }
.discover-preview .stack-caption { display:none; }
.discover-card-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding-top:12px; }
.discover-card-foot span { font-size:10px; color:#89917f; }
.discover-card-foot .button { font-size:10px; padding:8px 10px; gap:0; }
.discover-more { align-self:center; margin-top:24px; }
.new-stack-welcome { width:100%; max-width:900px; margin:auto; }
.new-stack-welcome > .empty-state { margin:0 auto 32px; padding:20px; }
.starter-inspiration { position:relative; width:100%; max-width:560px; margin:0 auto; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.3); padding:18px 16px; }
.starter-inspiration-close { position:absolute; top:7px; right:7px; display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; border-radius:50%; background:transparent; color:#939c8a; font-size:19px; line-height:1; }
.starter-inspiration-close:hover { background:#eaf0e2; color:#536343; }
.starter-inspiration-heading { padding:0 18px; }
.starter-inspiration-heading { display:grid; grid-template-columns:1fr; justify-items:center; gap:10px; text-align:center; }
.starter-inspiration-heading h2 { font-size:12px; font-weight:500; margin:0 0 8px; }
.starter-inspiration-heading p { color:#909886; font-size:10px; margin:0; }
.starter-discover-button { flex-shrink:0; border:1px solid #dce3d3; background:#edf2e5; border-radius:6px; padding:6px 8px; color:#536343; font-size:10px; }
.starter-discover-footer { display:flex; justify-content:center; margin-top:14px; }
.starter-stacks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding-top:30px; font-size:10px; color:#8b957e; }
.starter-stack { min-width:0; }
.starter-stack-preview { --stack-zoom:.18; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:86px; }
.starter-stack-preview .stack-caption { display:none; }
.starter-stack h3 { color:#5d6852; font-size:10px; font-weight:500; margin:4px 0 0; overflow-wrap:anywhere; }
.starter-stack .person-company { font-size:9px; margin:2px 0 0; }
body[data-developer] #view-content:has(.new-stack-welcome) { justify-content:center; }
@media(max-width:680px) { .new-stack-welcome { margin:24px auto; } .starter-stacks { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .starter-inspiration-heading { flex-wrap:wrap; gap:10px; } }
.discover-view-tabs { display:flex; align-self:flex-start; gap:2px; padding:2px; margin:0 0 8px; background:#e9ede2; border-radius:6px; }
.discover-view-tabs button { border:0; background:transparent; color:#78816e; font-size:10px; line-height:16px; padding:2px 8px; border-radius:4px; }
.discover-view-tabs button[aria-selected="true"] { background:#fff; color:#34432a; box-shadow:0 1px 4px #2630190c; }
.discover-feed.discover-list { display:block; background:#fff; border:1px solid var(--line); border-radius:14px; padding:0 18px; }
.discover-row { display:grid; grid-template-columns:minmax(180px,250px) 54px minmax(0,1fr) auto; align-items:center; gap:20px; padding:15px 0; text-align:left; border-bottom:1px solid #eef0e9; }
.discover-row:last-child { border-bottom:0; }
.discover-person { display:flex; align-items:center; gap:12px; min-width:0; }
.discover-person > div { min-width:0; }
.discover-row h2 { margin:0; font-size:13px; line-height:1.5; font-weight:500; overflow-wrap:anywhere; }
.discover-row .person-company { margin:3px 0 0; font-size:10px; }
.discover-initials { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; flex-shrink:0; font-size:10px; font-weight:500; }
.discover-mini-stack { --stack-zoom:.14; display:flex; justify-content:center; pointer-events:none; }
.discover-mini-stack .stack-caption, .discover-mini-stack .verified-layer-badge { display:none; }
body[data-developer] .discover-mini-stack .stack-scene { padding:0; margin:0; }
body[data-developer] .discover-mini-stack .block-name, body[data-developer] .discover-mini-stack .block-detail { display:none; }
.discover-tech-tags { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.discover-tech-tag { padding:4px 7px; font-size:10px; line-height:1.3; border-radius:4px; }
.tag-colour-0 { background:#eee9fb; color:#635080; }
.tag-colour-1 { background:#e5f0f7; color:#436379; }
.tag-colour-2 { background:#e5f2e8; color:#456b52; }
.tag-colour-3 { background:#fff0dd; color:#896738; }
.tag-colour-4 { background:#f9e6ed; color:#8c5366; }
.tag-colour-5 { background:#e1f1ee; color:#416d65; }
.discover-tag-more { font-size:10px; color:#8a9380; }
.discover-row-details p { margin:7px 0 0; font-size:10px; color:#8a9380; }
.discover-open { display:flex; align-items:center; justify-content:center; gap:12px; padding:10px; border:0; border-radius:7px; background:transparent; color:#737f69; }
.discover-open:hover { background:#f1f5eb; color:#34432a; }
.discover-open > span:last-child { font-size:24px; line-height:20px; }
.discover-open-text { font-size:11px; }
@media(max-width:1100px) { .discover-row { grid-template-columns:minmax(150px,200px) 40px minmax(0,1fr) auto; gap:12px; } .discover-open-text { display:none; } }
@media(max-width:680px) { .discover-feed.discover-list { padding:0 12px; } .discover-row { grid-template-columns:minmax(0,1fr) 40px 32px; gap:10px; padding:14px 0; } .discover-person { gap:8px; } .discover-row-details { grid-row:2; grid-column:1 / -1; } .discover-row .discover-mini-stack { grid-column:2; grid-row:1; } .discover-row .discover-open { grid-column:3; grid-row:1; padding:8px; } }
#discover-status { margin:20px 0; color:#7b846e; font-size:13px; }
body[data-developer] #view-content:has(.stack-toolbar) { justify-content:flex-start; }
body[data-developer] #view-content:has(.stack-toolbar) > .stack-scene { margin-top:auto; }
.workspace:has(.discover-feed) + .zoom-controls { display:none; }
@media(max-width:680px) { .stack-toolbar { margin-top:20px; gap:12px; } .stack-layout-picker button { padding:9px 12px; } .discover-toolbar { flex-direction:column; align-items:stretch; margin-top:24px; } }

.share-button{background:transparent;border:0;padding:0;font:inherit}

/* Friends sidebar and comparison chart */
.left-sidebar{align-self:start;min-width:0;display:flex;flex-direction:column;gap:20px}
.friends-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;min-height:0}
.friends-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.friends-heading h2{font-size:16px;margin:0}.friends-heading button,.notification-button{border:1px solid var(--line);background:#edf2e5;color:#536343;border-radius:8px;padding:8px;font-size:11px}.notification-button span{font-weight:700;margin-left:4px}
.friends-list{max-height:clamp(120px,calc(100dvh - 540px),440px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.friend-row{display:block;text-align:left;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:14px 2px}.friend-row:hover{background:#f7f8f4}.friend-row strong,.friend-row small,.friend-row span{display:block;overflow-wrap:anywhere}.friend-row small{font-size:10px;color:var(--muted);margin:5px 0}.friend-row span{font-size:11px;color:#536343}.friends-empty,#connections-error{font-size:12px;line-height:1.6;color:#73796d}.connection-requests{text-align:left;background:#fff;border:1px solid var(--line);padding:20px;border-radius:14px;margin-bottom:24px}.connection-requests h2{font-size:16px;margin-top:0}.connection-requests p,.connection-requests summary{font-size:12px;color:#73796d}.request-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.request-row small{display:block;margin-top:6px;color:#73796d}.request-row .button,.peer-heading .button{font-size:11px;padding:9px 12px}.secondary{background:#edf2e5;color:#536343}.connection-state{color:#536343!important}.friends-chart{text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}.friends-chart h2{font-size:22px}.friends-chart p{font-size:12px;color:#73796d;line-height:1.7}.chart-scroll{overflow-x:auto;padding:20px 0}.chart-bars{display:flex;gap:24px;align-items:start;min-width:100%;width:max-content}.chart-person{width:110px;text-align:center;flex:none}.chart-person>strong{display:block;font-size:18px;margin-bottom:8px}.chart-track{height:280px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 69px,#e4e7df 70px)}.chart-bar{width:64px;display:flex;flex-direction:column-reverse;overflow:hidden;border-radius:6px 6px 0 0}.chart-segment{min-height:0;border-top:1px solid #ffffff66}.chart-person>span{display:block;font-size:12px;margin-top:12px;overflow-wrap:anywhere}.chart-person small{display:block;font-size:9px;color:#73796d;margin-top:6px}.chart-accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.left-sidebar{grid-column:1/-1}.left-sidebar .profile-card{width:100%}.friends-list{max-height:220px}.request-row{flex-wrap:wrap}.header-actions{gap:8px}.notification-button{font-size:10px}.friends-chart{padding:16px}}
/* Keep the friends list within the Friends / peers tab and its chart view. */
.workspace:not(.friends-mode) .friends-card { display: none; }

.friends-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:4px 0 24px;text-align:left}
.friends-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#73796d;padding:12px 4px;font-weight:500}
.friends-tabs button[aria-selected="true"]{border-bottom-color:#536343;color:#354b25}
.friends-tabs span{font-size:11px;margin-left:4px}
#peer-result[hidden],#connection-requests[hidden]{display:none}
.friends-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;text-align:left}
.friends-grid .friend-row{padding:18px;background:white;border:1px solid var(--line);border-radius:12px;align-self:start}

.friends-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;text-align:left}
.friends-table-toolbar h2{margin:0;font-size:16px}.friends-table-toolbar small{font-size:12px;font-weight:400;color:#73796d}
.friends-table-toolbar .button{font-size:12px;padding:10px 14px}
.friends-table-scroll{max-height:clamp(200px,calc(100dvh - 380px),600px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff;scrollbar-width:thin}
.friends-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:13px}
.friends-table th{position:sticky;top:0;background:#f1f4ed;color:#73796d;font-size:11px;font-weight:500;z-index:1}
.friends-table th,.friends-table td{padding:16px 20px;border-bottom:1px solid var(--line)}
.friends-table td:nth-child(2){font-family:monospace;font-size:11px;color:#73796d}
.friends-table td:last-child{text-align:right}.friends-table tbody tr:last-child td{border-bottom:0}.friends-table tbody tr:hover{background:#f7f8f4}
.friend-stack-button{border:0;background:#edf2e5;color:#536343;padding:9px 12px;border-radius:7px;font-size:12px;white-space:nowrap}
@media(max-width:680px){.friends-table th,.friends-table td{padding:12px 10px}.friends-table{min-width:420px}}
.friends-table-toolbar{justify-content:flex-end}

/* Actual stack layers share the canvas and align along a common base. */
.friends-canvas-scroll{width:100%;overflow-x:auto;padding:20px 12px 24px;scrollbar-width:thin}
.friends-stack-canvas{display:flex;align-items:stretch;gap:32px;min-width:100%;width:max-content}
.friend-canvas-column{display:flex;flex-direction:column;justify-content:flex-end;flex:0 0 calc(240px * var(--stack-zoom,1));width:calc(240px * var(--stack-zoom,1));text-align:center}
.friend-canvas-stack{display:flex;flex:1;flex-direction:column;justify-content:flex-end}
.friend-canvas-label{margin-top:16px;min-height:52px}
.friend-canvas-label h2{font-size:13px;font-weight:500;margin:0;overflow-wrap:anywhere}
.friend-canvas-label h2 small{font-size:11px;color:#73796d}
.friend-canvas-label p{font-size:10px;color:#929b86;margin:7px 0 0}
.friend-canvas-stack .empty-state{margin:auto;padding:16px 8px}
body[data-developer] .all-friends-mode #view-content{justify-content:flex-end}

/* Keep secondary actions readable when hovered or focused. */
.button.secondary:hover,.button.secondary:focus-visible{background:#dfe8d2;color:#354b25}
.friends-stack-canvas{gap:calc(32px * var(--stack-zoom,1))}

/* Reserve room inside the scroll viewport for badges outside the first stack. */
.friends-canvas-scroll{padding-left:calc(12px + 27px * var(--stack-zoom,1));padding-right:calc(12px + 12px * var(--stack-zoom,1))}

/* A movable whiteboard viewport, without nested scrollbars or a card frame. */
.friends-canvas-scroll{position:relative;height:calc(100dvh - 200px);min-height:340px;overflow:hidden;padding:0;cursor:grab;touch-action:none;user-select:none}
.friends-canvas-scroll .friends-stack-canvas{position:absolute;left:40px;bottom:32px;min-width:0;will-change:transform}
.friends-canvas-scroll .stack-block{cursor:grab}
.friends-canvas-scroll.is-panning,.friends-canvas-scroll.is-panning *{cursor:grabbing!important}
.friends-canvas-scroll.is-panning .stack-block{transition:none;filter:none}
.exploded-canvas .exploded-stacks { align-items:flex-end; width:max-content; overflow:visible; padding:24px 0; margin:0; }
.exploded-canvas .exploded-group { flex:0 0 calc(240px * var(--stack-zoom, 1)); }
.exploded-group .category-add-button { display:flex; margin:0 auto 14px; cursor:pointer; }
.canvas-help{position:absolute;top:8px;left:12px;font-size:11px;color:#929b86;pointer-events:none;z-index:2}
.canvas-reset{position:absolute;top:0;right:0;border:1px solid var(--line);background:var(--paper);color:#536343;padding:8px 12px;border-radius:7px;font-size:11px;z-index:2;cursor:pointer}
.canvas-reset:hover{background:#e5ecd9;color:#354b25}
@media(max-width:680px){.friends-canvas-scroll{height:calc(100dvh - 290px);min-height:320px}}

/* Only the all-peers view uses the whole screen as the pan boundary. */
body.all-peers-canvas{overflow:hidden}
body.all-peers-canvas .workspace{position:fixed;inset:0;display:block;min-height:0;padding:0;pointer-events:none}
body.all-peers-canvas .stack-area,body.all-peers-canvas #view-content{position:static;min-height:0}
body.all-peers-canvas .friends-canvas-scroll{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;padding:0;pointer-events:auto;z-index:0}
body.all-peers-canvas .friends-stack-canvas{left:clamp(40px,24vw,340px);bottom:120px}
body.all-peers-canvas .topbar{position:fixed;inset:0 0 auto;z-index:40;background:transparent;border-bottom:0;pointer-events:none}
body.all-peers-canvas .topbar>*{pointer-events:auto}
body.all-peers-canvas .left-sidebar{position:fixed;top:88px;left:24px;width:230px;z-index:20;pointer-events:auto}
body.all-peers-canvas .legend{position:fixed;top:50%;right:24px;transform:translateY(-50%);z-index:20;pointer-events:auto}
body.all-peers-canvas .canvas-help{top:84px;left:50%;transform:translateX(-50%)}
body.all-peers-canvas .canvas-reset{top:80px;right:24px}
body.all-peers-canvas #view-content>p{position:fixed;top:110px;left:50%;transform:translateX(-50%)}
@media(max-width:680px){body.all-peers-canvas .left-sidebar{top:76px;left:16px;width:180px}body.all-peers-canvas .canvas-reset{top:76px;right:16px}body.all-peers-canvas .canvas-help{top:118px;left:auto;right:16px;transform:none}body.all-peers-canvas .friends-stack-canvas{left:40px;bottom:115px}}

.invite-friends-button{border:1px solid var(--line);background:#edf2e5;color:#536343;border-radius:7px;padding:10px 12px;font-size:12px;white-space:nowrap}
.invite-friends-button:hover{background:#dfe8d2;color:#354b25}
.invite-note{font-size:12px;line-height:1.7;color:#73796d}
.invite-result{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f7f8f4;text-align:center}
.invite-result p{font-size:12px;color:#73796d;line-height:1.6;overflow-wrap:anywhere}
#generated-invite-code{display:block;font-family:monospace;font-size:36px;letter-spacing:8px;color:#354b25;margin:12px 0}
@media(max-width:680px){body[data-developer] .header-actions{gap:6px}.invite-friends-button{font-size:10px;padding:9px 7px}body[data-developer] .topbar .section-heading{display:none}}

body[data-developer] .header-actions .header-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
body[data-developer] .header-actions .header-icon-button:hover{background:#edf2e5;color:#354b25}
.header-icon-button svg{display:block;flex:none}
#request-count{position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;background:#536343;color:#fff;border:2px solid var(--paper);border-radius:10px;font-size:9px;font-weight:600;line-height:1;margin:0}

.header-button-group{display:inline-flex;align-items:center;gap:0;padding:3px;background:#fff;border:1px solid var(--line);border-radius:10px}
body[data-developer] .header-button-group .header-icon-button{border:0;border-radius:6px;background:transparent}
body[data-developer] .header-button-group .header-icon-button+.header-icon-button{margin-left:3px}
body[data-developer] .header-button-group .header-icon-button:hover{background:#edf2e5}
.header-button-group .header-icon-button img{display:block;width:20px;height:20px;object-fit:contain}

.login-card .invite-code-hint{margin-bottom:22px;line-height:1.6}
.login-card .invite-code-hint+.form-error{margin-top:0}
/* Compact share actions and a preview of the exact exported canvas. */
.share-menu{position:relative;display:flex;margin-left:3px}
.share-options{position:absolute;right:0;top:100%;padding:6px;width:180px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 28px #292b2a15;z-index:50}
.share-options button{display:block;width:100%;border:0;border-radius:5px;background:transparent;text-align:left;padding:10px 12px;font-size:12px;color:var(--ink);white-space:nowrap}
.share-options button:hover,.share-options button:focus-visible{background:#edf2e5}
#share-image-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px}
#share-image-dialog .modal-heading{align-items:flex-start;margin-bottom:16px}
#share-image-dialog .modal-note{margin:6px 0 0}
#share-image-format{width:100%;margin:8px 0 16px}
.share-image-preview{display:flex;justify-content:center;background:#e9ede3;padding:12px;border-radius:8px}
#share-image-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:48dvh;object-fit:contain;border-radius:3px;box-shadow:0 2px 12px #292b2a12}
#download-stack-image{width:100%;margin-top:12px}
/* The bell artwork has more internal whitespace than the other action icons. */
.header-button-group #connection-notifications img{width:24px;height:24px;flex:none}
.share-options{width:196px}
.share-image-actions{display:flex;gap:8px;margin-top:12px}
#share-image-dialog .share-image-actions .button{flex:1;width:auto;margin-top:0;font-size:12px;padding:12px}
#share-image-dialog .share-image-actions #download-stack-image{background:#edf2e5;color:#354b25}
.share-image-actions .button:disabled{opacity:.6;cursor:wait}
.technology-native-select{display:none}
.technology-picker{position:relative}
.technology-results{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:240px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #292b2a14;z-index:5;padding:5px}
.technology-result-heading{padding:9px 10px 4px;font-size:10px;font-weight:600;color:#73796d}
.technology-results [role="option"]{padding:9px 12px;border-radius:5px;font-size:12px;cursor:pointer;overflow-wrap:anywhere}
.technology-results [role="option"]:hover,.technology-results .is-active{background:#edf2e5}
.technology-results [aria-selected="true"]{font-weight:600;color:#354b25}
.technology-no-results{font-size:12px;color:#73796d;padding:8px 10px;margin:0}
.technology-search-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#copy-stack-image{gap:7px}
#copy-stack-image .copy-success-tick{display:block;flex:none;filter:brightness(0) invert(1)}
