/* Functional extensions: explanatory diagrams, owned accounts and Pulse-style community. */
.mechanism{margin:0;min-width:0;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.mechanism figcaption{display:grid;gap:5px}.mechanism figcaption strong{font-size:16px;font-weight:550}.mechanism figcaption span{font-size:12px;color:var(--muted)}
.mechanism svg{display:block;width:100%;height:auto;max-height:280px;margin:14px 0;overflow:visible}
.mechanism text{font:14px Onest,Arial,sans-serif;fill:var(--muted)}
.diagram-grid{stroke:var(--line);stroke-width:1}.diagram-level{stroke:var(--accent);stroke-width:1;opacity:.65}.diagram-price{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linejoin:round}.diagram-average{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:6 4}.diagram-target{stroke:var(--gain);stroke-width:1.5;stroke-dasharray:5 4}.diagram-stop{stroke:var(--loss);stroke-width:1.5;stroke-dasharray:5 4}.diagram-buy{fill:var(--gain)}.diagram-sell{fill:var(--loss)}.diagram-action{stroke:var(--accent);stroke-width:2}.diagram-volume{fill:var(--accent)}.diagram-current{fill:#66717f}.diagram-node{fill:var(--sunken);stroke:var(--line);stroke-width:1}.diagram-payoff{fill:none;stroke:var(--accent);stroke-width:3}
.mechanism dl{display:flex;flex-wrap:wrap;gap:18px;margin:6px 0 12px}.mechanism dl>div{display:grid;gap:3px}.mechanism dt{font-size:12px;color:var(--muted)}.mechanism dd{font-size:15px;font-weight:550;margin:0}.mechanism>p{font-size:12px;color:var(--muted);line-height:1.65;margin:0}
.wizard-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,460px);gap:40px;align-items:start;margin-top:24px}.wizard-controls{min-width:0}.wizard-controls .question{margin-top:0}.wizard-visual{position:sticky;top:86px;min-width:0}
.visual-slider{display:block;border:1px solid var(--line);border-radius:8px;padding:18px;margin-top:12px;background:var(--surface)}.visual-slider>span{display:flex;justify-content:space-between;font-size:13px;gap:10px}.visual-slider output{color:var(--accent);font-weight:550}.visual-slider input{display:block;accent-color:var(--accent);width:100%;margin:18px 0 0;min-height:24px;cursor:pointer}
.template-mechanism{max-width:760px;margin:24px 0}.template-mechanism .mechanism svg{max-height:250px}
.catalog-mechanism{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;align-items:center}.mechanism.mechanism-mini{padding:8px;border:0;border-radius:6px;background:var(--sunken);margin:0;overflow:hidden}.mechanism-mini svg{margin:0;height:68px;width:100%}.mechanism-mini text{display:none}.mechanism-mini .diagram-price{stroke-width:5}.mechanism-mini .diagram-level{stroke-width:2}.mechanism-mini .diagram-node{stroke-width:2}.mechanism-mini .diagram-action{stroke-width:4}.mechanism-mini .diagram-buy,.mechanism-mini .diagram-sell{r:8px}
.account-picker{min-width:0;flex:1}.account-picker select{background:transparent;border:0;color:var(--ink);font-size:14px;font-weight:550;width:100%;padding:4px 20px 4px 0;text-overflow:ellipsis;cursor:pointer}.account-picker option{background:var(--surface);color:var(--ink)}.account-manage{display:flex;align-items:center;color:var(--muted)}.account-manage svg{width:18px;height:18px;stroke:currentColor;fill:none}
.accounts-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.accounts-heading h1{margin:0 0 8px}.accounts-heading p{margin:0;max-width:65ch}.account-limit{font-size:13px;color:var(--muted);white-space:nowrap}.accounts-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);gap:32px;align-items:start}.account-list{display:grid;gap:12px}.account-card{display:flex;gap:16px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:20px;background:var(--surface);min-width:0}.account-card.selected{border-color:var(--accent)}.account-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:8px;background:var(--sunken);flex-shrink:0}.account-card-icon svg{width:23px;height:23px;fill:none;stroke:var(--accent);stroke-width:1.5}.account-card>div:nth-child(2){min-width:0}.account-card h2{font-size:16px;overflow-wrap:anywhere;margin:0 0 5px}.account-card p{font-size:12px;color:var(--muted);margin:0}.selected-word{display:block;color:var(--accent);font-size:12px;margin-top:5px}.account-card-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.account-card-actions .icon-button svg{stroke:currentColor;fill:none;width:18px;height:18px}.account-create-column{display:grid;gap:18px}.account-create-column .panel{margin:0}.account-create-column h2{margin-top:0}.account-create-column .field{display:grid;gap:7px;margin:16px 0}.account-create-column .field input,.account-create-column .field select{width:100%;min-width:0;padding:11px 12px;border:1px solid #474f5b}.account-create-column .btn{width:100%;margin-top:8px}.account-create-column .err:empty{display:none}
.social-page{max-width:1104px;margin:0 auto}.social-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:15px}.social-heading h1{margin:0}.social-heading>span{font-size:13px;color:var(--muted)}
.social-search{display:flex;gap:14px;align-items:center;background:var(--sunken);border:1px solid transparent;border-radius:12px;padding:16px 20px;margin-bottom:28px}.social-search:focus-within{border-color:var(--accent)}.social-search>svg{width:22px;height:22px;stroke:var(--muted);fill:none;flex-shrink:0}.social-search input{flex:1;width:100%;min-width:0;border:0;background:transparent;outline:none;font-size:15px;color:var(--ink)}.social-search button{color:var(--accent);padding:0;font-size:13px}
.social-authors{display:flex;gap:16px;overflow-x:auto;padding:0 0 12px;margin-bottom:24px;scrollbar-width:thin}.social-author-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:124px;min-width:190px;flex:1;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:24px;text-decoration:none;color:var(--ink);text-align:center;font-size:13px}.social-author-tile:hover{color:var(--ink);border-color:#66717f}.social-author-tile .social-avatar{width:58px;height:58px;font-size:21px}
.social-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:650;flex-shrink:0;text-transform:uppercase}.guest-avatar{background:var(--sunken);color:var(--ink);border:1px solid #474f5b}
.social-layout{display:grid;grid-template-columns:minmax(0,720px) minmax(260px,320px);gap:32px;align-items:start}.social-main{min-width:0}.social-sidebar{display:grid;gap:28px;position:sticky;top:88px;min-width:0}
.social-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}.social-tabs button{border-radius:0;white-space:nowrap;color:var(--muted);font-size:14px;padding:12px 0;border-bottom:3px solid transparent;min-height:46px}.social-tabs button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--accent)}
.social-composer{padding:22px;border-radius:24px;background:var(--surface);border:1px solid var(--line);margin-bottom:24px}.social-composer-label{display:flex;align-items:center;gap:12px;font-size:14px;color:var(--ink);margin-bottom:16px}.social-composer textarea,.social-comments textarea{display:block;width:100%;resize:vertical;background:var(--sunken);border:1px solid #474f5b;border-radius:8px;padding:12px;color:var(--ink);font-size:14px;min-height:96px}.social-composer-bottom{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-top:14px}.social-composer-bottom input{background:transparent;border:0;border-bottom:1px solid #474f5b;max-width:200px;width:100%;padding:9px 0;font-size:12px}.social-composer .small{font-size:12px}.social-composer .err:empty{display:none}
.social-feed{display:grid;gap:24px}.social-post{border:1px solid var(--line);background:var(--surface);border-radius:24px;padding:24px;min-width:0}.social-post-header{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px}.social-author{display:flex;gap:12px;align-items:center;min-width:0;text-decoration:none;color:var(--ink)}.social-author:hover{color:var(--ink)}.social-author>span:last-child{min-width:0}.social-author strong{display:block;font-size:14px;font-weight:550;overflow-wrap:anywhere}.social-author small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.social-follow{font-size:12px;color:var(--accent);min-height:36px;white-space:nowrap;padding:5px 0}.social-follow.following,.social-follow[aria-pressed=true]{color:var(--muted)}.social-post h2{font-size:19px;font-weight:550;margin:0 0 14px;line-height:1.4}.social-post-copy{white-space:pre-line;font-size:14px;line-height:1.75;overflow-wrap:anywhere}.social-read-more{font-size:13px;display:inline-block;margin-top:10px;text-decoration:none}.social-post-visual{display:block;margin-top:20px;text-decoration:none;color:var(--ink)}.social-post-visual:hover{color:var(--ink)}.social-post-visual .mechanism{background:var(--sunken);border:0;border-radius:12px}.social-post-visual .mechanism>svg{max-height:220px}.social-post-visual .mechanism>p{display:none}.social-tickers{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}.social-tickers button{font-size:12px;color:var(--accent);background:var(--accent-soft);border-radius:6px;padding:6px 10px}
.social-post-actions{display:flex;align-items:center;gap:24px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.social-post-actions button,.social-post-actions a{display:inline-flex;gap:8px;align-items:center;min-height:36px;font-size:13px;color:var(--muted);text-decoration:none;padding:0;background:transparent}.social-post-actions svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linejoin:round}.social-post-actions [aria-pressed=true]{color:var(--accent)}.social-post-actions [aria-pressed=true] svg{fill:var(--accent);stroke:var(--accent)}.social-post-actions .social-more{margin-left:auto;font-size:12px;gap:5px}.social-more svg{width:16px;height:16px}
.social-profile-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px 24px;text-align:center}.social-profile-mark{width:84px;height:84px;border-radius:24px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;margin:0 auto 24px}.social-profile-mark svg{width:36px;height:36px;stroke:currentColor;stroke-width:1.4;fill:none;stroke-linejoin:round}.social-profile-card h2{font-size:23px;line-height:1.25;margin:0 0 16px}.social-profile-card p{font-size:14px;color:var(--muted);line-height:1.65;margin:0 0 22px}.social-my-profile h2,.social-suggested h2{font-size:17px;margin:0 0 18px}.social-my-profile dl{display:grid;grid-template-columns:1fr auto;gap:9px;font-size:13px;margin:22px 0 14px}.social-my-profile dt{color:var(--muted)}.social-my-profile dd{margin:0}.social-my-profile>p,.social-disclaimer{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.social-suggested>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 12px;align-items:center;margin:20px 0}.social-suggested .social-avatar{width:36px;height:36px;font-size:13px;grid-row:1/3}.social-suggested strong{font-size:13px;font-weight:500}.social-suggested .social-follow{text-align:left;padding:0;min-height:26px}
.social-empty{padding:40px 24px;background:var(--surface);border-radius:24px}.social-empty h2{font-size:18px;margin-top:0}.social-empty p{font-size:14px;color:var(--muted)}.social-load-more{display:block;margin:24px auto}.social-load-more[hidden]{display:none}.social-filter-note{display:flex;justify-content:space-between;margin-bottom:18px;font-size:12px;color:var(--muted)}
.social-discussion{max-width:760px;margin:auto}.social-discussion>h1{font-size:26px;margin-bottom:24px}.social-comments{margin-top:32px}.social-comments h2{font-size:21px}.social-comments h2>span{color:var(--muted);font-size:16px;font-weight:400}.social-comments form{margin:20px 0 28px}.social-comments form>.btn{margin-top:12px}.social-comment{padding:20px 0;border-top:1px solid var(--line)}.social-comment header{display:flex;align-items:center;gap:12px}.social-comment header>div{min-width:0}.social-comment strong{font-size:14px;overflow-wrap:anywhere}.social-comment small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.social-comment header>button{margin-left:auto;font-size:12px}.social-comment>p{padding-left:56px;font-size:14px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}.social-comment-empty{font-size:14px;color:var(--muted);padding:24px 0}.social-profile-edit{max-width:560px;margin:auto}
@media(max-width:1180px) and (min-width:761px){.wizard-layout{grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:24px}.social-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.accounts-layout{grid-template-columns:minmax(0,1fr) 380px;gap:20px}.social-post{padding:20px}.social-post-header{flex-wrap:wrap}}
@media(max-width:760px){
 .wizard-layout{display:flex;flex-direction:column;gap:16px;margin-top:18px}.wizard-controls{display:contents}.wizard-controls .question{order:0;margin-bottom:0;font-size:23px}.wizard-visual{position:static;order:1;width:100%}.wizard-controls #opts{order:2;width:100%}.wizard-controls #custom{order:3;width:100%}.mechanism{padding:16px}.mechanism figcaption strong{font-size:14px}.mechanism svg{max-height:205px;margin:10px 0}.mechanism text{font-size:18px}.mechanism dl{gap:18px;margin-top:0}.mechanism dd{font-size:14px}.mechanism>p{font-size:12px}.visual-slider{padding:14px}.template-mechanism{margin:20px 0}.mechanism-mini svg{height:60px}.catalog-mechanism{grid-template-columns:88px minmax(0,1fr);gap:12px}.catalog-mechanism .mechanism-mini{padding:4px}.catalog-mechanism .template-description{font-size:12px}.account-picker select{font-size:15px;min-height:36px}.account-manage{min-height:36px}.accounts-heading{gap:12px;align-items:flex-start}.accounts-heading h1{font-size:24px}.accounts-heading p{font-size:13px}.accounts-layout{display:flex;flex-direction:column;gap:28px}.accounts-layout>section,.account-create-column{width:100%;min-width:0}.account-card{padding:16px;gap:12px;flex-wrap:wrap}.account-card h2{font-size:15px}.account-card-actions{margin-left:auto}.account-card .btn{min-height:40px;padding:8px 12px}.account-create-column .field input,.account-create-column .field select{font-size:16px}.account-limit{font-size:12px;margin-top:4px}
 .social-heading{display:block;margin-bottom:20px}.social-heading h1{font-size:25px;margin-bottom:6px}.social-heading>span{font-size:12px}.social-search{padding:12px 14px;gap:10px;margin-bottom:20px}.social-search input{font-size:16px}.social-search>svg{width:18px;height:18px}.social-search button{font-size:12px}.social-authors{gap:10px;margin-bottom:14px;padding-bottom:10px}.social-author-tile{min-width:145px;max-width:160px;min-height:112px;border-radius:20px;font-size:12px;padding:12px;gap:10px}.social-author-tile .social-avatar{width:48px;height:48px;font-size:17px}.social-layout{display:block}.social-sidebar{position:static;margin-top:32px;gap:24px}.social-sidebar .social-profile-card,.social-sidebar .social-suggested{display:none}.social-sidebar .social-my-profile{padding:20px;background:var(--surface);border-radius:20px}.social-tabs{gap:24px;margin-bottom:18px}.social-tabs button{font-size:13px;min-height:48px}.social-composer{padding:16px;border-radius:20px;margin-bottom:18px}.social-composer-label{font-size:13px}.social-composer .social-avatar{width:36px;height:36px;font-size:14px}.social-composer textarea,.social-comments textarea{font-size:16px}.social-composer-bottom{gap:12px;align-items:stretch}.social-composer-bottom>label{min-width:0}.social-composer-bottom input{font-size:12px;max-width:145px;min-height:44px}.social-composer-bottom>.btn{padding:8px 12px;font-size:12px;min-height:44px}.social-feed{gap:18px}.social-post{border-radius:20px;padding:16px}.social-post-header{gap:10px;flex-wrap:wrap;margin-bottom:18px}.social-author{gap:10px}.social-author strong{font-size:13px}.social-author small{font-size:12px}.social-post .social-avatar{width:36px;height:36px;font-size:14px}.social-post-header>.social-follow{margin-left:46px;min-height:32px}.social-post h2{font-size:18px}.social-post-copy{font-size:14px;line-height:1.7}.social-post-visual .mechanism{padding:12px}.social-post-visual .mechanism svg{max-height:175px}.social-post-visual .mechanism figcaption strong{font-size:13px}.social-post-actions{gap:18px;flex-wrap:wrap;margin-top:16px;padding-top:10px}.social-post-actions button,.social-post-actions a{min-height:44px}.social-post-actions .social-more{font-size:12px}.social-more svg{width:15px}.social-discussion>h1{font-size:24px}.social-comments{margin-top:24px}.social-comments h2{font-size:20px}.social-comment{padding:16px 0}.social-comment .social-avatar{width:34px;height:34px;font-size:13px}.social-comment header{gap:10px;flex-wrap:wrap}.social-comment strong{font-size:13px}.social-comment>p{padding-left:44px;font-size:14px}.social-comment header>button{min-height:32px}.social-profile-edit h1{font-size:24px}
}

/* Catalog branch nodes remain readable when the textual labels are omitted. */
.mechanism-mini[data-mechanism="rules"] .diagram-node{fill:var(--surface);stroke:var(--muted);stroke-width:4}
.mechanism-mini[data-mechanism="rules"] .diagram-action,.mechanism-mini[data-mechanism="rules"] .diagram-grid{stroke:var(--accent);stroke-width:5}
.social-tickers .social-tag{display:inline-block;font-size:12px;color:var(--muted);background:var(--sunken);border-radius:6px;padding:6px 10px}
