/* Duck: 224 + flexible 640 + 272, 2×24 gutters. Collapse rails before text narrows. */
.duck-page .skip-link{background:var(--text);color:var(--surface)}
.duck-profile-links:empty{display:none}
.duck-center{overflow-wrap:anywhere}
.duck-profile-identity>div,.duck-page-heading>div{min-width:0}.duck-profile-identity small,.duck-person-card strong,.duck-post header strong,.duck-side-panel h2,.duck-page-heading h1,.duck-experience :is(h4,p){overflow-wrap:anywhere}.duck-profile-links>*{max-width:100%;min-width:0;overflow-wrap:anywhere}.duck-post-actions{flex-wrap:wrap}
.duck-page{--bg:#f7f7f7;--surface:#fff;--surface2:#ededed;--text:#191919;--muted:#626262;--line:#e3e3e3;--red:#A51C30;--red-soft:#f6e8eb;--shadow:none;background:var(--bg);font:15px/1.85 var(--font,Vazir,system-ui,sans-serif);color:var(--text)}
[data-theme=dark] .duck-page{--bg:#0d0d0d;--surface:#171717;--surface2:#262626;--text:#f5f5f5;--muted:#b4b4b4;--line:#303030;--red-soft:#34232a;color-scheme:dark}
.duck-page *{box-sizing:border-box}.duck-page a{color:inherit;text-decoration:none}.duck-page button,.duck-page input,.duck-page textarea,.duck-page select{font-family:inherit}.duck-page button{cursor:pointer}.duck-page .button{background:var(--text);color:var(--surface);border:0;box-shadow:none;border-radius:999px;min-height:44px;font-size:14px;padding:10px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:opacity 180ms,transform 180ms}.duck-page .button.secondary,.duck-page .button.ghost{background:var(--surface2);color:var(--text)}.duck-page .button:hover{opacity:.82}.duck-page .button:active{transform:scale(.98)}.duck-page button:disabled{opacity:.65;cursor:not-allowed}.duck-page svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.duck-page .icon-button{min-width:44px;min-height:44px;background:transparent;color:var(--text);border:0;box-shadow:none}.duck-page :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--text);outline-offset:4px}.duck-page [hidden]{display:none!important}.duck-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-inline:max(28px,calc((100vw - 1320px)/2));background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.duck-school{display:flex;align-items:center;gap:12px;font-size:14px}.duck-school img{width:36px;height:36px;object-fit:contain}.duck-app-name{display:flex;align-items:center;gap:16px}.duck-app-name strong{font-size:24px;font-weight:700;letter-spacing:-.5px}.duck-app-name span{font-size:13px;color:var(--muted)}.duck-top-actions{display:flex;align-items:center;gap:12px}.duck-shell{width:min(1320px,100%);margin-inline:auto;padding:28px;display:grid;grid-template-columns:208px minmax(0,1fr) 248px;gap:24px;align-items:start;min-height:calc(100dvh - 72px)}.duck-rail{position:sticky;top:100px;display:flex;flex-direction:column;min-height:calc(100dvh - 130px);padding-inline-end:16px}.duck-rail nav{display:grid;gap:4px}.duck-rail nav>a{display:flex;align-items:center;gap:14px;min-height:48px;font-size:15px;color:var(--muted);padding:10px 14px;border-radius:8px;transition:color 180ms,background-color 180ms}.duck-rail nav>a:hover{background:var(--surface2);color:var(--text)}.duck-rail nav>a[aria-current=page]{color:var(--text);font-weight:700;background:var(--surface2)}.duck-rail-bottom{margin-top:auto;padding:36px 14px 12px;display:grid;gap:12px}.duck-rail-bottom p{font-size:13px;color:var(--muted)}.duck-rail-bottom a{font-size:13px;min-height:32px;align-content:center}.duck-rail-bottom small{font-size:11px;color:var(--muted);margin-top:16px;text-align:right}.duck-center{min-width:0}.duck-page-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin:0 0 24px}.duck-page-heading h1{font-size:26px;font-weight:700;line-height:1.65;margin:0}.duck-page-heading p{font-size:14px;color:var(--muted);line-height:1.9;margin-top:8px}.duck-compose-shortcut{display:grid;place-items:center;width:44px;height:44px;background:var(--surface2);border-radius:50%;flex:none}.duck-feed-tabs{display:flex;gap:24px;margin-bottom:20px;border-bottom:1px solid var(--line)}.duck-feed-tabs>a{font-size:14px;min-height:48px;align-content:center;position:relative;color:var(--muted)}.duck-feed-tabs>a[aria-current=page]{color:var(--text);font-weight:700}.duck-feed-tabs>a[aria-current=page]:after{content:'';height:2px;position:absolute;inset:auto 0 0;background:var(--text)}.duck-composer{padding:24px;background:var(--surface);border-radius:8px;margin-bottom:20px}.duck-composer>label{display:block;font-size:16px;font-weight:700;margin-bottom:12px}.duck-composer textarea{width:100%;min-height:116px;padding:12px 0;font:16px/1.9 var(--font);resize:vertical;background:transparent;border:0;color:var(--text);display:block;outline-offset:4px}.duck-composer textarea::placeholder{color:var(--muted)}.duck-composer-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:var(--muted);padding-block:8px}.duck-composer-meta>span{font-variant-numeric:tabular-nums;white-space:nowrap}.duck-composer-meta>small{font-size:12px}.duck-composer-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px}.duck-composer-footer>a{font-size:13px;min-height:44px;align-content:center}.duck-composer #dock-compose-feedback{font-size:13px;line-height:1.9}.duck-post{background:var(--surface);padding:24px;border-radius:8px;margin-bottom:12px;min-width:0;border:0}.duck-post>header{display:flex;align-items:center;gap:12px}.duck-avatar-link{flex:none}.duck-avatar,.duck-avatar-link>img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--surface2);display:grid;place-items:center;font-size:18px;font-weight:700}.duck-post>header>div{min-width:0;flex:1}.duck-post>header strong{font-size:14px;display:block}.duck-post>header small{font-size:12px;color:var(--muted);display:block;overflow-wrap:anywhere}.duck-post>header>time{font-size:11px;color:var(--muted);white-space:nowrap}.duck-post-body{font-size:16px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere;margin:20px 0}.duck-post blockquote{margin:16px 0;padding:16px;background:var(--surface2);border:0;border-radius:6px;font-size:14px;line-height:1.9}.duck-post blockquote p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.duck-post blockquote a{display:inline-block;min-height:28px;font-size:13px}.duck-post-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}.duck-post-actions>button,.duck-post-actions>a{display:flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:0;color:var(--muted);font-size:13px;min-height:44px;min-width:44px;padding:8px;border-radius:6px;transition:color 180ms,background-color 180ms}.duck-post-actions>button:hover{background:var(--surface2);color:var(--text)}.duck-post-actions>button[aria-pressed=true]{color:#A51C30}.duck-post-actions svg{width:18px;height:18px}.duck-post-actions [aria-pressed=true] svg{fill:currentColor;fill-opacity:.12}.duck-post-actions>button:disabled{opacity:1;color:var(--muted)}.duck-action-count{font-variant-numeric:tabular-nums}.duck-post-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}.duck-post-status .button{font-size:12px;padding:8px 12px}.duck-status-note{font-size:13px;white-space:pre-wrap;margin-top:12px;color:var(--muted)}.duck-post-type{color:var(--muted);font-size:12px;margin-bottom:12px}.duck-text-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;text-decoration:underline!important;text-underline-offset:4px}.duck-context{display:grid;gap:20px;position:sticky;top:100px}.duck-side-panel{background:var(--surface);padding:20px;border-radius:8px}.duck-side-panel h2{font-size:16px;font-weight:700;margin-bottom:12px}.duck-side-panel p,.duck-side-panel #dock-rules{font-size:13px;color:var(--muted);line-height:1.95;overflow-wrap:anywhere;margin-top:12px}.duck-community-note{font-size:13px;color:var(--muted);padding-inline:8px;line-height:1.95}.duck-join-note,.duck-notice{padding:20px;background:var(--surface2);border-radius:8px;margin-bottom:20px;font-size:14px}.duck-join-note{display:flex;align-items:center;justify-content:space-between;gap:12px}.duck-empty{background:var(--surface);padding:32px 24px;border-radius:8px}.duck-empty h2{font-size:20px;margin-bottom:12px}.duck-empty p{font-size:14px;color:var(--muted);line-height:1.95}.duck-pagination{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-block:24px;font-size:13px;color:var(--muted)}.duck-comments{margin-top:24px}.duck-comments h2{font-size:20px;margin-bottom:20px}.duck-profile-overview{padding:28px;background:var(--surface);border-radius:8px;margin-bottom:24px}.duck-profile-identity{display:flex;gap:20px;align-items:center;margin-bottom:20px}.duck-profile-photo,.duck-profile-initial{width:80px;height:80px;object-fit:cover;border-radius:50%;background:var(--surface2);flex:none;display:grid;place-items:center;font-size:30px}.duck-profile-identity h2{font-size:22px}.duck-profile-identity p{font-size:14px;color:var(--muted);margin-top:4px}.duck-profile-identity small{font-size:13px;color:var(--muted);display:block;direction:ltr;text-align:right}.duck-profile-bio{white-space:pre-wrap;font-size:15px;line-height:1.95;margin-block:16px;overflow-wrap:anywhere}.duck-profile-links{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--muted);margin-block:16px}.duck-profile-links a{overflow-wrap:anywhere}.duck-profile-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-block:16px;margin-top:16px;border-block:1px solid var(--line)}.duck-profile-counts a{font-size:13px;color:var(--muted);display:grid;gap:4px;text-align:center;min-height:52px}.duck-profile-counts strong{font-size:22px;font-weight:400;color:var(--text);font-variant-numeric:tabular-nums}.duck-profile-controls{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.duck-skills{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.duck-skills>span{background:var(--surface2);font-size:13px;padding:6px 12px;border-radius:4px;overflow-wrap:anywhere}.duck-profile-section{margin-top:24px}.duck-profile-section h3{font-size:16px;margin-bottom:12px}.duck-profile-section>p{font-size:14px;color:var(--muted)}.duck-experience{padding-block:16px;border-top:1px solid var(--line)}.duck-experience h4{font-size:15px}.duck-experience p{font-size:14px;white-space:pre-wrap;margin-top:8px}.duck-experience small{font-size:12px;color:var(--muted);display:block;margin-top:6px}.duck-badge{display:flex;gap:12px;align-items:start;margin-top:16px}.duck-badge>svg{width:24px;height:24px;color:#A51C30;margin-top:4px}.duck-badge strong{font-size:14px}.duck-badge p{font-size:13px;color:var(--muted);margin-top:4px}.duck-badge small{font-size:12px;color:var(--muted)}.duck-person-card{display:flex;gap:14px;align-items:center;background:var(--surface);border-radius:8px;padding:20px;margin-bottom:12px}.duck-person-card>div{flex:1;min-width:0}.duck-person-card strong{font-size:15px}.duck-person-card p{font-size:13px;color:var(--muted);overflow-wrap:anywhere;margin-top:4px}.duck-person-card .button{font-size:13px;padding:8px 14px}.duck-person-card>img{border-radius:50%;object-fit:cover;width:48px;height:48px}.duck-person-card .duck-skills{margin-top:8px}.duck-search{display:flex;gap:8px;margin-bottom:20px}.duck-search input{flex:1;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px}.duck-network-tabs{display:flex;gap:12px;margin-bottom:20px}.duck-network-tabs button{min-height:44px;font-size:14px;background:transparent;border:0;color:var(--muted);padding:8px 12px;border-radius:6px}.duck-network-tabs button[aria-pressed=true]{background:var(--surface2);color:var(--text)}.duck-connection{padding:20px;background:var(--surface);border-radius:8px;margin-bottom:12px}.duck-connection .duck-person-card{padding:0;margin:0}.duck-connection>p{font-size:13px;color:var(--muted);margin-block:12px}.duck-connection-actions{display:flex;gap:8px;flex-wrap:wrap}.duck-connection-actions .button{font-size:13px}.duck-skeleton{display:grid;gap:16px}.duck-skeleton span{display:block;height:136px;background:var(--surface2);border-radius:8px}.duck-bottom-tabs{display:none}.duck-error{background:var(--surface);padding:24px;border-radius:8px}.duck-error p{font-size:14px;margin-bottom:12px}.duck-page .duck-settings-section{grid-template-columns:1fr;gap:16px;padding:24px;background:var(--surface);border:0;border-radius:8px}.duck-page .duck-settings-section h2{font-size:18px}.duck-page .field input,.duck-page .field textarea{border-radius:6px;box-shadow:none;min-height:44px;font-size:14px;background:var(--bg);border-color:var(--line)}.duck-page .field input[type=checkbox]{min-height:24px;width:24px}.duck-page .field:has(input[type=checkbox]){min-height:44px}.duck-page dialog{box-shadow:0 20px 60px #0003;border:0;background:var(--surface);border-radius:12px}.duck-page dialog::backdrop{backdrop-filter:none;background:#0008}.duck-page .toast{box-shadow:none;background:var(--text);color:var(--surface)}
[data-theme=dark] .duck-post-actions>button[aria-pressed=true],[data-theme=dark] .duck-badge>svg{color:#e89aaa}[data-theme=dark] .duck-rail nav>a[aria-current=page]{background:transparent;color:#fff}
@media(max-width:1150px){.duck-shell{grid-template-columns:184px minmax(0,1fr);max-width:980px}.duck-context{display:none}.duck-rail{padding-inline-end:8px}.duck-topbar{padding-inline:28px}.duck-app-name span{display:none}}
@media(max-width:760px){.duck-topbar{height:60px;padding-inline:20px;gap:12px}.duck-school span{display:none}.duck-school img{width:32px;height:32px}.duck-app-name{margin-inline-end:auto}.duck-app-name strong{font-size:23px}.duck-top-actions{gap:4px}.duck-top-actions .button{font-size:12px;padding:8px 12px}.duck-shell{display:block;padding:24px 20px 110px}.duck-rail{display:none}.duck-page-heading{margin-bottom:20px}.duck-page-heading h1{font-size:24px}.duck-page-heading p{font-size:14px;max-width:36ch}.duck-feed-tabs{gap:20px;margin-bottom:16px}.duck-feed-tabs a{font-size:13px}.duck-composer{padding:20px}.duck-composer textarea{min-height:90px;font-size:16px}.duck-composer-meta{align-items:start}.duck-composer-meta small{max-width:24ch;text-align:end}.duck-post{padding:20px}.duck-post-body{margin-block:16px;font-size:15px;line-height:2}.duck-post>header>time{display:none}.duck-post-actions{gap:2px}.duck-post-actions>button,.duck-post-actions>a{font-size:12px;padding:6px;gap:4px}.duck-post-actions svg{width:17px;height:17px}.duck-bottom-tabs{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,1fr);z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:8px 12px max(8px,env(safe-area-inset-bottom))}.duck-bottom-tabs>a{display:flex;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:12px;border-radius:8px}.duck-bottom-tabs>a[aria-current=page]{color:var(--text);background:var(--surface2);font-weight:700}.duck-profile-overview{padding:20px}.duck-profile-identity{gap:16px}.duck-profile-photo,.duck-profile-initial{width:64px;height:64px;font-size:25px}.duck-profile-identity h2{font-size:20px}.duck-profile-counts{gap:8px}.duck-profile-counts strong{font-size:20px}.duck-profile-controls .button{flex:1}.duck-person-card{padding:16px;gap:12px;flex-wrap:wrap}.duck-person-card>div{min-width:150px}.duck-person-card>.button{margin-inline-start:60px}.duck-join-note{display:block}.duck-join-note .button{margin-top:12px}.duck-network-tabs{gap:4px;flex-wrap:wrap}.duck-network-tabs button{padding-inline:8px;font-size:13px}.duck-page .duck-settings-section{padding:20px}.duck-page .form-grid{grid-template-columns:1fr}.duck-page .duck-save-row{align-items:start;flex-direction:column}.duck-page dialog{padding:24px}.duck-post-status{align-items:start}}
@media(prefers-reduced-motion:reduce){.duck-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:761px){.duck-profile-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}.duck-profile-overview> :not(section){grid-column:1/-1}.duck-profile-section:has(.duck-experience){grid-column:1/-1}.duck-profile-section{min-width:0}.duck-profile-controls{justify-content:start}.duck-profile-bio{max-width:74ch}}
