/* Shared, production-connected operations surfaces. */
.product-center{width:min(1180px,calc(100vw - 32px));height:min(880px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #d5e1da;border-radius:18px;background:#f7faf8;color:#20382e;box-shadow:0 24px 90px #102f2940;overflow:hidden}
.product-center[open]{display:flex;flex-direction:column}.product-center::backdrop,.pc-form-dialog::backdrop{background:#12372c66}
.product-center>header{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 26px;background:white;border-bottom:1px solid #d9e3dd;gap:12px}.product-center h2{margin:3px 0;font-size:24px}.product-center header small{font-size:10px;letter-spacing:.15em;color:#39785f}.product-center header p{margin:6px 0 0;color:#687a70;font-size:13px}.product-center>header>button{border:0;background:none;font-size:28px;cursor:pointer}
.product-center>nav{display:flex;flex-wrap:wrap;gap:5px;padding:10px 20px;background:#fff;border-bottom:1px solid #d9e3dd}.product-center>nav button{padding:8px 12px;border:0;border-radius:8px;background:none;color:#536b60;font-size:13px;cursor:pointer}.product-center>nav button.active{background:#dfeee5;color:#145b44;font-weight:700}
.product-center>main{flex:1;min-height:0;overflow:auto;padding:20px 24px;scrollbar-gutter:stable}.product-center>footer{display:flex;align-items:center;justify-content:space-between;padding:10px 24px;background:white;border-top:1px solid #d9e3dd;font-size:12px}.product-center>footer:empty{display:none}
.pc-toolbar{display:flex;gap:12px;align-items:end;padding:12px 24px;border-bottom:1px solid #e4ece7}.pc-toolbar label{margin:0;display:flex;align-items:center;gap:8px;font-size:12px}.pc-toolbar input{max-width:300px;height:36px}
.product-center button:not([data-pc-tab]),.pc-button,.pc-form-dialog button{border:1px solid #c9dad0;border-radius:8px;background:white;color:#195940;padding:7px 11px;min-height:34px;cursor:pointer;font:inherit;font-size:13px}.product-center button.primary,.pc-form-dialog button.primary{background:#155b45;color:white;border-color:#155b45}.product-center button.danger-text{color:#ab332b}.product-center button:disabled,.pc-form-dialog button:disabled{opacity:.45;cursor:default}
.pc-section-heading,.pc-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 16px}.pc-section-heading{justify-content:space-between}.pc-section-heading h3{margin:0 0 5px}.pc-section-heading p{margin:0;color:#617b6e}.pc-actions a{padding:7px 10px;font-size:13px;color:#155b45}
.pc-empty{padding:35px 18px;text-align:center;color:#637d6d;font-size:14px;line-height:1.8}.pc-notice{padding:12px 14px;background:#eaf3ee;border:1px solid #d6e6db;border-radius:9px;color:#466553;font-size:13px;line-height:1.65;margin:0 0 16px}.pc-error{color:#a52a25;background:#fff0ed;padding:10px 14px;margin:10px 24px;border-radius:8px;font-size:13px}.pc-error:empty{display:none}
.pc-table-scroll{overflow:auto;background:#fff;border:1px solid #dce6df;border-radius:12px}.pc-table-scroll table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.5}.pc-table-scroll th{text-align:left;background:#f0f5f1;color:#496958;font-size:12px;font-weight:600;white-space:nowrap}.pc-table-scroll td,.pc-table-scroll th{padding:12px 14px;border-bottom:1px solid #e5ece8;vertical-align:top}.pc-table-scroll td{max-width:380px;overflow-wrap:anywhere}.pc-row-actions{min-width:120px}.pc-row-actions button{margin:0 4px 5px 0;white-space:nowrap}
.pc-badge{display:inline-flex;padding:3px 9px;border-radius:6px;background:#e4efe8;color:#2a6045;font-size:12px;white-space:nowrap}.pc-preview{padding:18px;border:1px solid #dce6df;border-radius:10px;background:white;white-space:pre-wrap;overflow-wrap:anywhere;max-height:52vh;overflow:auto;font:13px/1.8 ui-monospace,Consolas,monospace}
.pc-note-list{display:grid;gap:10px;margin:15px 0}.pc-note-list>label{display:flex;align-items:start;gap:12px;background:white;border:1px solid #dde7e0;border-radius:10px;padding:15px}.pc-note-list input,.pc-todo input{width:18px;height:18px;flex:none}.pc-note-list blockquote{margin:8px 0;padding:5px 12px;border-left:1px solid var(--line-strong,#bdccc4);color:#687e70}.pc-note-list p{margin:5px 0;white-space:pre-wrap}.pc-todo{display:flex;align-items:center;gap:10px;padding:10px;background:white;border-bottom:1px solid #dce6df}
.pc-form-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;padding:20px;overflow:auto;border:1px solid #d5e1da;border-radius:14px;background:#fff;color:#20382e;box-shadow:0 24px 70px #143a2b30}.pc-form-dialog>form{padding:0}.pc-form-dialog header,.pc-form-dialog footer{display:flex;gap:10px;justify-content:space-between;align-items:center}.pc-form-dialog header h3{margin:0 0 15px}.pc-form-dialog header button{align-self:flex-start}.pc-form-dialog label{display:grid;gap:6px;margin:12px 0;font-size:13px}.pc-form-dialog textarea{resize:vertical;min-height:110px;line-height:1.6}.pc-form-dialog footer{justify-content:flex-end;margin-top:20px}.pc-form-dialog .pc-error{margin:10px 0}
.pc-task-result{padding:20px;width:min(760px,calc(100vw - 24px))}.pc-result-markdown{max-height:56dvh;overflow:auto;font-size:15px;line-height:1.8;overflow-wrap:anywhere}.pc-result-markdown table{border-collapse:collapse}.pc-result-markdown th,.pc-result-markdown td{padding:7px;border:1px solid #d4e0d9}
@media(max-width:680px){.product-center{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.product-center>header{padding:15px 14px}.product-center>nav{padding:8px 10px;gap:2px}.product-center>nav button{padding:7px 8px;font-size:12px}.product-center>main{padding:14px 10px}.pc-toolbar{padding:10px;align-items:center}.pc-toolbar input{width:min(58vw,280px)}.pc-table-scroll td,.pc-table-scroll th{padding:10px}.product-center button{min-height:40px}.pc-error{margin:8px 10px}.pc-preview{font-size:12px}.product-center>footer{padding:10px}}

/* Research tasks share one compact structure across reading and writing. */
.product-center [hidden],.pc-form-dialog [hidden]{display:none!important}
.pc-subnav{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 14px;margin:0 0 20px;border-bottom:1px solid #dce6df}
.pc-subnav button[aria-current="page"]{background:#e1eee6;color:#155b45;border-color:#aacbb9;font-weight:650}
.pc-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.pc-summary>div{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid #dce6df;border-radius:12px;background:#fff}
.pc-summary strong{font-size:24px;font-weight:650}.pc-summary span,.pc-muted{font-size:13px;color:#63786b;line-height:1.7}.pc-muted{display:block}
.pc-picker-row{display:flex!important;align-items:center;gap:12px!important;padding:12px;border:1px solid #dce6df;border-radius:10px}
.pc-picker-row input{width:18px;height:18px;flex:none}.pc-picker-row span{min-width:0;overflow-wrap:anywhere}.pc-picker-row small{display:block;color:#657a6c;margin-top:6px}
.pc-form-dialog [data-rows]{max-height:42dvh;overflow:auto}.pc-form-dialog input[type="file"]{max-width:100%}.pc-form-dialog [data-project-notes]{max-height:54dvh;overflow:auto}
.pc-form-dialog select,.pc-form-dialog input:not([type="checkbox"]),.pc-form-dialog textarea{width:100%;max-width:100%;box-sizing:border-box}
.pc-form-dialog [data-status],.pc-form-dialog [data-target-status]{font-size:13px;line-height:1.7;color:#587061}
.pc-recovery-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.pc-recovery-options section{padding:18px;background:white;border:1px solid #dce6df;border-radius:12px}.pc-recovery-options h3{margin:0 0 10px}.pc-recovery-options p{font-size:13px;line-height:1.8;color:#5a7063}
.pc-export-issues{display:grid;gap:12px;margin:18px 0}.pc-export-issues article{padding:16px;border:1px solid #e1dfce;background:#fffdf4;border-radius:10px}.pc-export-issues p{margin:8px 0;font-size:14px}.pc-export-issues small{color:#667767;line-height:1.7}
.pc-project-settings{margin-top:28px;border-top:1px solid #dce6df;padding-top:14px;font-size:13px;color:#657969}.pc-project-settings summary{cursor:pointer}.pc-account-summary{margin-bottom:30px}.pc-actions label{font-size:13px;display:flex;gap:12px;align-items:center}
@media(max-width:680px){.pc-summary{gap:7px}.pc-summary>div{padding:13px 10px}.pc-summary strong{font-size:21px}.pc-summary span{font-size:12px}.pc-recovery-options{grid-template-columns:1fr}.pc-subnav{gap:4px}.pc-form-dialog footer{flex-wrap:wrap}.pc-form-dialog [data-rows]{max-height:35dvh}.pc-table-scroll th:nth-child(3),.pc-table-scroll td:nth-child(3){min-width:84px}.pc-account-summary .pc-section-heading{align-items:flex-start}}

.pc-sessions{display:grid;gap:12px;margin-bottom:22px}.pc-sessions article{padding:16px;background:white;border:1px solid #dce6df;border-radius:12px}.pc-sessions .pc-section-heading{margin-bottom:12px}.pc-sessions dl{display:flex;gap:28px;flex-wrap:wrap;margin:0;font-size:13px}.pc-sessions dl div{display:flex;gap:10px}.pc-sessions dt{color:#687b6d}.pc-sessions dd{margin:0;color:#34533f}@media(max-width:680px){.pc-sessions dl{display:grid;gap:10px}.pc-sessions .pc-section-heading{gap:10px}.pc-sessions article{padding:14px}}

.pc-note-selection{display:flex;gap:8px;align-items:center;font-size:13px;color:#687c6c}.pc-note-selection span{margin-right:auto}.pc-note-selection button{padding:5px 10px}

.pc-account-actions{display:flex;gap:8px;flex-wrap:wrap}.product-center .pc-account-actions .pc-logout{display:inline-flex;align-items:center;gap:6px;color:var(--danger,#a33c32)}
@media(max-width:680px){.pc-account-summary .pc-section-heading{flex-wrap:wrap;gap:12px}.pc-account-actions{width:100%}.product-center .pc-account-actions button{min-height:44px}}
.pc-account-summary .pc-section-heading h3{font-size:20px}
.pc-account-summary .pc-section-heading p{overflow-wrap:anywhere}
.pc-account-usage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pc-account-usage>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.pc-account-usage span,.pc-account-usage small{font-size:13px;color:var(--muted)}
.pc-account-usage strong{font-size:26px}
.pc-account-usage progress{width:100%;height:6px;accent-color:var(--green);border:0;appearance:none;background:var(--line);border-radius:4px}
.pc-token-summary dl{display:grid;gap:8px;margin:4px 0 0}.pc-token-summary dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pc-token-summary dt{font-size:12px;color:var(--muted)}.pc-token-summary dd{margin:0;font-size:20px;font-weight:650}
.pc-account-companion{margin:0 0 28px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.pc-account-companion .pc-section-heading{margin-bottom:12px}.pc-account-companion h3{font-size:16px;margin:0}
#accountCompanionSummary{display:flex;align-items:center;gap:14px;min-width:0;font-size:14px}
#accountCompanionSummary img{object-fit:contain;flex-shrink:0}
#accountCompanionSummary p{margin:6px 0;color:var(--muted);line-height:1.5}#accountCompanionSummary small{color:var(--muted);font-size:12px}
@media(max-width:900px){.pc-account-usage{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pc-account-companion{padding:14px}.product-center .pc-account-companion button{min-height:44px}.pc-account-usage>div{padding:14px 12px}.pc-account-companion .pc-section-heading{gap:8px}}

.pc-account-usage progress::-webkit-progress-bar{background:var(--line);border-radius:4px}.pc-account-usage progress::-webkit-progress-value{background:var(--green);border-radius:4px}.pc-account-usage progress::-moz-progress-bar{background:var(--green);border-radius:4px}
.pc-project-description{margin:0 0 20px}.pc-project-description p{margin:8px 0;line-height:1.7;overflow-wrap:anywhere}.pc-project-added{outline:2px solid var(--green);outline-offset:-2px;background:var(--surface-soft)}
.product-center.embedded:has(.pc-project-header-actions)>header>[data-pc-action=close]{display:none}.product-center .pc-subnav [data-pc-action=project-section]{min-height:44px}.product-center .pc-project-header-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:680px){.product-center:has(.pc-project-header-actions) button:not([data-pc-tab]){min-width:44px;min-height:44px}.product-center:has(.pc-project-header-actions)>header{align-items:flex-start;gap:12px}.product-center:has(.pc-project-header-actions)>header h2{font-size:20px;margin:0}.product-center .pc-project-header-actions{gap:4px}.product-center .pc-project-header-actions button{min-height:44px}.product-center .pc-subnav{margin-bottom:12px;padding-bottom:8px;gap:4px}}
