.portfolio-heading{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.portfolio-heading h1{margin:0 0 10px}.portfolio-heading p{color:var(--muted);max-width:64ch;line-height:1.6}.portfolio-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.portfolio-manager{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;margin-bottom:22px}.portfolio-manager strong,.portfolio-manager small{display:block}.portfolio-manager small{color:var(--muted);margin-bottom:6px}
.portfolio-reader-panel{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fbfbf8;margin-bottom:28px;min-width:0}.portfolio-reader-panel h2{margin:0 0 10px}.portfolio-reader-panel select,.portfolio-dialog select,.portfolio-reader-tools input{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;color:var(--ink);font:inherit;min-height:44px;max-width:100%}.portfolio-revision-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}.portfolio-revision-tools label{display:grid;gap:8px;font-size:12px;flex:1}.portfolio-revision-tools select{min-width:0;width:100%}.portfolio-reader-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0 14px;font-size:12px}.portfolio-reader-tools label{display:flex;align-items:center;gap:7px}.portfolio-reader-tools input{width:75px}.portfolio-pages{display:flex;gap:18px;align-items:flex-start;overflow:auto;padding:18px;background:#e8e6e1;border:1px solid #d8d6d0;border-radius:12px;max-height:78vh;min-height:180px}.portfolio-paper{position:relative;background:white;box-shadow:0 3px 12px #1b1b1b21;flex-shrink:0}.portfolio-paper canvas{display:block}.portfolio-paper .textLayer{position:absolute;inset:0}.portfolio-reader-panel .notice{margin-top:12px}
.portfolio-request-list{display:grid;gap:14px}.portfolio-request-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;min-width:0}.portfolio-request-card button{font:700 16px/1.4 inherit;background:none;border:0;padding:0;text-align:left;overflow-wrap:anywhere}.portfolio-request-card p{color:var(--muted);font-size:12px;line-height:1.7}.portfolio-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.portfolio-response{border-top:1px solid var(--line);padding:18px 0}.portfolio-response h3{font-size:15px}.portfolio-history{margin-top:22px}.portfolio-history summary{font-weight:700;min-height:44px;cursor:pointer;padding:12px 0}.portfolio-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:18px 0}.portfolio-media figure{margin:0;min-width:0}.portfolio-media img,.portfolio-media video{width:100%;max-height:400px;object-fit:contain;border-radius:9px;background:#f1f1ee}.portfolio-media figcaption{font-size:12px;overflow-wrap:anywhere;margin-top:8px}.portfolio-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:16px 0;font-size:12px}.portfolio-pagination>div{display:flex;align-items:center;gap:10px}.portfolio-page :focus-visible,.portfolio-dialog :focus-visible{outline:3px solid #947318;outline-offset:3px}
@media(max-width:600px){.portfolio-heading{gap:10px}.portfolio-heading .portfolio-actions{width:100%}.portfolio-heading .button{width:100%}.portfolio-reader-panel{padding:14px}.portfolio-reader-tools{gap:7px}.portfolio-pages{padding:10px}.portfolio-reader-tools label{flex:1}.portfolio-manager{width:100%}.portfolio-revision-tools .button{width:100%}}

/* Shared manager cards precede the final primary action in the header. */
.portfolio-heading>div:first-child{flex:1 1 280px;min-width:0}
.portfolio-heading>.portfolio-actions{flex:1 1 480px;justify-content:flex-end;min-width:0}
.portfolio-actions>.responsibility-people{flex:1 1 230px;min-width:0}
@media(max-width:600px){.portfolio-heading>.portfolio-actions{justify-content:flex-start}.portfolio-actions>.responsibility-people{flex-basis:100%}}
.portfolio-heading>[data-portfolio-request-new]{align-self:center}
.portfolio-suggestions{margin-top:32px}.portfolio-suggestion-list{display:grid;gap:14px}.portfolio-suggestion-card{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff;min-width:0}.portfolio-suggestion-card h3{margin:10px 0 4px;overflow-wrap:anywhere}.portfolio-suggestion-card .portfolio-actions{margin-top:16px}

/* Keep portfolio controls and cards on the dark workspace palette. PDF paper stays white. */
.main-content .portfolio-manager,.main-content .portfolio-reader-panel,.main-content .portfolio-request-card,.main-content .portfolio-suggestion-card{color:var(--ink);border-color:var(--line);background:var(--paper)}
.main-content .portfolio-reader-panel select,.portfolio-dialog select,.main-content .portfolio-reader-tools input{color:var(--ink);border-color:var(--line);background:var(--soft)}
.portfolio-reader .portfolio-pages{box-sizing:border-box;height:min(72dvh,760px);min-height:120px;max-height:none;align-items:center;justify-content:center;overflow:hidden}.portfolio-reader .portfolio-paper{max-width:100%;max-height:100%}.portfolio-reader-tools{justify-content:center}
.main-content .portfolio-pages{border-color:#3f3f3f;background:#171717}
.main-content .portfolio-media img,.main-content .portfolio-media video{background:#151515}
.main-content .portfolio-request-card button{color:inherit}
.main-content .portfolio-request-card button:hover{color:#ffe16c}
.main-content .portfolio-history summary:hover{color:#ffe16c}

/* Programming documentation and other reference links should not flash white on hover. */
.main-content .quick-link:hover{color:#ffe16c;border-color:#a58f35;background:#252525}
.portfolio-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line,#474747);padding-bottom:8px;margin-bottom:20px}
.portfolio-tabs [role=tab]{border:0;border-radius:10px;background:transparent;color:var(--muted,#d0ccc3);font:inherit;font-weight:700;padding:12px 16px;cursor:pointer}
.portfolio-tabs [role=tab][aria-selected=true]{color:#e3bcff;background:#3a294a;box-shadow:inset 0 -2px #d3a5ee}
.portfolio-tabs [role=tab]:focus-visible{outline:2px solid #d3a5ee;outline-offset:2px}
[data-portfolio-panel][hidden],.portfolio-actions>[hidden]{display:none!important}

/* Put revision controls next to the document, and give the PDF the remaining viewport. */
.portfolio-page>.portfolio-heading{align-items:center;gap:8px 16px;margin-bottom:10px}
.portfolio-page>.portfolio-heading h1{font-size:22px;margin:0 0 3px}
.portfolio-page>.portfolio-heading p{font-size:11px;line-height:1.4;margin:0}
.portfolio-page .portfolio-tabs{margin-bottom:10px;padding-bottom:5px}
.portfolio-reader-panel{display:grid;grid-template-columns:minmax(170px,260px) minmax(0,1fr);gap:8px 16px;padding:12px;margin-bottom:0}
.portfolio-reader-panel>[data-portfolio-document]{display:contents}
.portfolio-revision-tools{grid-column:1;margin:0;min-width:0;align-self:start}
.portfolio-revision-tools label{gap:3px;min-width:0}
.portfolio-revision-tools select{min-height:38px;padding:6px 9px}
.portfolio-document-summary{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:8px 16px;min-width:0;flex-wrap:wrap}
.portfolio-document-title{min-width:0;flex:1 1 200px}
.portfolio-document-title h2{font-size:15px;line-height:1.25;margin:0 0 3px;overflow-wrap:anywhere}
.portfolio-document-title p{margin:0;font-size:11px}
.portfolio-document-summary .portfolio-actions{gap:6px;justify-content:flex-end}
.portfolio-document-summary .button{min-height:34px;padding:6px 9px}
.portfolio-notes{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:0 10px}
.portfolio-notes summary{cursor:pointer;padding:6px 0;font-size:11px;font-weight:700}
.portfolio-notes .portfolio-body{margin:0 0 9px;font-size:11px;line-height:1.5}
.portfolio-reader-panel>[data-portfolio-document]>.notice{grid-column:1/-1}
.portfolio-reader{grid-column:1/-1;min-width:0}
.portfolio-reader-tools{display:flex;justify-content:space-between;gap:7px 16px;position:sticky;top:86px;z-index:2;background:var(--paper);border-bottom:1px solid var(--line);padding:6px 0;margin:0 0 7px;font-size:11px}
.portfolio-page-controls,.portfolio-zoom-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.portfolio-reader-tools label{display:inline-flex;align-items:center;gap:5px;flex:none}
.portfolio-reader-tools input{width:56px;min-height:34px;padding:5px 7px}
.portfolio-reader-tools select{min-height:34px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font:inherit}
.portfolio-reader-tools .button{min-height:34px;padding:5px 8px}
.portfolio-zoom-controls output{min-width:34px;text-align:center;font-weight:700}
.portfolio-reader .portfolio-pages{height:auto;min-height:0;max-height:none;overflow:hidden;align-items:center;justify-content:center}
.portfolio-reader .portfolio-pages.is-scrollable{overflow:auto;align-items:flex-start;justify-content:flex-start}
.portfolio-reader .portfolio-pages.is-scrollable .portfolio-paper{margin:0 auto;max-width:none;max-height:none}
@media(max-width:800px){.portfolio-reader-panel{grid-template-columns:minmax(0,1fr)}.portfolio-revision-tools,.portfolio-document-summary{grid-column:1}.portfolio-document-summary{align-items:flex-start}.portfolio-document-summary .portfolio-actions{justify-content:flex-start}.portfolio-reader-tools{top:64px}}
@media(max-width:600px){.portfolio-page>.portfolio-heading .button{width:auto}.portfolio-reader-panel{padding:9px}.portfolio-reader-tools{position:static;gap:6px}.portfolio-page-controls,.portfolio-zoom-controls{width:100%;justify-content:center}}

.portfolio-reader.is-expanded{position:fixed;inset:0;z-index:10000;box-sizing:border-box;width:100vw;height:100dvh;padding:12px;background:#171717;color:#f0eee8;overflow:hidden;display:flex;flex-direction:column}.portfolio-reader.is-expanded .portfolio-reader-tools{position:static;top:auto;flex:none}.portfolio-reader.is-expanded .portfolio-reader-tools button{background:#262626;color:#f0eee8}.portfolio-reader.is-expanded .portfolio-pages{background:#111;border-color:#414141;flex:1;min-height:0;max-height:none}body>canvas[hidden]{display:none!important}

/* Portfolio contributions and requests read as compact threads with full-page detail. */
.portfolio-request-list,.portfolio-suggestion-list{gap:8px}
.portfolio-request-card,.portfolio-suggestion-card{padding:14px 16px;background:#242424!important;border-color:#49443a!important;color:#f2efe6!important}
.portfolio-request-card p,.portfolio-suggestion-card p{margin:5px 0 0;font-size:12px;color:#c8c3b8}
.portfolio-request-card button,.portfolio-card-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;width:100%;min-height:44px;text-align:left;border:0;background:transparent;color:#f2efe6;font:inherit;cursor:pointer}
.portfolio-request-card button .status{grid-column:1/-1;width:max-content}.portfolio-card-link strong{min-width:0;overflow-wrap:anywhere}.portfolio-card-link span,.portfolio-request-card button small{color:#e5c974;font-size:12px;font-weight:700}
.portfolio-card-link:hover,.portfolio-request-card button:hover{color:#ffe16c}
.portfolio-suggestions .contribution-card,.portfolio-detail-card .contribution-card{background:#2b2925;border-color:#575044;color:#f2efe6}
.portfolio-suggestions .contribution-card h3,.portfolio-detail-card .contribution-card h3{color:#f7f2df}
.portfolio-suggestions .contribution-card p,.portfolio-detail-card .contribution-card p{color:#ddd7ca}
.portfolio-suggestions .contribution-card small,.portfolio-detail-card .contribution-card small{color:#bfb8a9}
.portfolio-detail-page{display:grid;gap:18px;max-width:1000px;margin:auto;color:#f2efe6}.portfolio-detail-page>[data-portfolio-back],.portfolio-detail-page>[data-portfolio-back]+header{justify-self:start}.portfolio-detail-page header h1{margin:2px 0 8px}.portfolio-detail-page header p{max-width:68ch}
.portfolio-detail-card,.portfolio-detail-page form,.portfolio-detail-page [data-portfolio-request-detail]{padding:clamp(16px,3vw,30px);border:1px solid #49443a;border-radius:16px;background:#242424;min-width:0}
.portfolio-detail-card h1,.portfolio-detail-page [data-portfolio-request-detail] h3{margin:8px 0 18px;overflow-wrap:anywhere}.portfolio-detail-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#ccc5b8;font-size:12px}.portfolio-detail-response{margin-top:20px;padding:15px;border-left:3px solid #d3a5ee;background:#302b34}.portfolio-detail-response h2{margin:0 0 7px;font-size:14px}.portfolio-detail-response p{white-space:pre-wrap;overflow-wrap:anywhere}
.portfolio-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portfolio-create-fields>.field,.portfolio-create-fields>label{min-width:0}.portfolio-create-fields textarea,.portfolio-create-fields [name=files],.portfolio-create-fields [name=person_ids]{width:100%;max-width:100%}.portfolio-create-fields [name=person_ids]{min-height:120px}.portfolio-detail-page form .portfolio-actions{justify-content:flex-end;margin-top:18px}
.portfolio-detail-page :focus-visible,.portfolio-request-card :focus-visible,.portfolio-suggestion-card :focus-visible{outline:2px solid #e7cb77;outline-offset:3px}
@media(max-width:640px){.portfolio-create-fields{grid-template-columns:1fr}.portfolio-detail-page form .portfolio-actions{display:grid;grid-template-columns:1fr 1fr}.portfolio-detail-page form .portfolio-actions .button{min-height:44px}.portfolio-request-card,.portfolio-suggestion-card{padding:12px}.portfolio-detail-page{gap:12px}}

/* Requests and suggestions begin with the controls; the page name is already in the top bar. */
.app-shell .portfolio-requests-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;min-width:0}
.app-shell .portfolio-requests-panel>.portfolio-request-list,.app-shell .portfolio-requests-panel>.portfolio-forum-requests{grid-column:1/-1}
.app-shell .portfolio-list-toolbar{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.app-shell .portfolio-list-symbol{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #ffdb1a;border-radius:11px;background:#302912;color:#ffdb1a}
.app-shell .portfolio-list-symbol svg{width:25px;height:25px}
.app-shell .portfolio-list-toolbar>.button{min-height:44px;white-space:nowrap}
.app-shell .portfolio-requests-panel>.portfolio-pagination{justify-self:end;margin:0;color:#d8d8df}
.app-shell .portfolio-suggestions{margin-top:0}
.app-shell .portfolio-suggestions>.portfolio-list-toolbar{margin-bottom:10px}
.app-shell .portfolio-request-card,.app-shell .portfolio-suggestion-card{background:#202024!important;border-color:#52525a!important;color:#f5f5f7!important}
.app-shell .portfolio-request-card:is(:hover,:focus-within),.app-shell .portfolio-suggestion-card:is(:hover,:focus-within){border-color:#ffdb1a!important}
.app-shell .portfolio-request-card p,.app-shell .portfolio-suggestion-card p{color:#d3d3d9}
.app-shell .portfolio-list-empty{grid-column:1/-1;margin:0;padding:16px;border:1px dashed #64646c;border-radius:11px;background:#1c1c20;color:#e7e7eb;line-height:1.5}
@media(max-width:760px){.app-shell .portfolio-requests-panel{grid-template-columns:minmax(0,1fr)}.app-shell .portfolio-requests-panel>.portfolio-pagination{justify-self:stretch;justify-content:space-between}.app-shell .portfolio-pagination>div{flex-wrap:wrap}}
@media(max-width:480px){.app-shell .portfolio-list-symbol{width:44px;height:44px}.app-shell .portfolio-list-symbol svg{width:23px;height:23px}.app-shell .portfolio-list-toolbar>.button{min-width:0;white-space:normal}.app-shell .portfolio-requests-panel>.portfolio-pagination{align-items:flex-start}}

/* Request navigation shares the header only when multiple pages exist. */
.app-shell .portfolio-requests-panel{grid-template-columns:minmax(0,1fr)}
.app-shell .portfolio-list-toolbar>.portfolio-pagination{margin:0 0 0 auto;justify-content:flex-end;min-width:0;color:#d8d8df}
.app-shell .portfolio-list-toolbar>.portfolio-pagination>div{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:480px){.app-shell .portfolio-list-toolbar>.portfolio-pagination{flex-basis:100%;justify-content:space-between}.app-shell .portfolio-list-toolbar>.portfolio-pagination>div{gap:6px}}
