/* Approved PPI V1.0.5 content styles, isolated from CCI chrome and Tally. */
:where(.ppi-ui) button,:where(.ppi-ui) input,:where(.ppi-ui) select,:where(.ppi-ui) textarea{font:inherit}
:where(.ppi-ui) button{cursor:pointer;color:inherit}
:where(.ppi-ui) button:disabled{cursor:not-allowed;opacity:.5}
:where(.ppi-ui) button,:where(.ppi-ui) input,:where(.ppi-ui) select,:where(.ppi-ui) textarea,:where(.ppi-ui) a{-webkit-tap-highlight-color:transparent}
:where(.ppi-ui) button:focus-visible,:where(.ppi-ui) a:focus-visible,:where(.ppi-ui) input:focus-visible,:where(.ppi-ui) select:focus-visible,:where(.ppi-ui) textarea:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
:where(.ppi-ui) button{transition:background .18s,box-shadow .18s,transform .18s}
:where(.ppi-ui) button:hover:not(:disabled){filter:brightness(.985)}
:where(.ppi-ui) button:active:not(:disabled){transform:translateY(1px)}
:where(.ppi-ui) h1,:where(.ppi-ui) h2,:where(.ppi-ui) h3,:where(.ppi-ui) p{margin:0}
:where(.ppi-ui) h2{font-size:20px;font-weight:750;letter-spacing:-.025em}
:where(.ppi-ui) h3{font-size:16px;font-weight:730}
:where(.ppi-ui) svg.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
:where(.ppi-ui) span[data-icon]{display:inline-flex;align-items:center}
:where(.ppi-ui) a{color:var(--purple)}
:where(.ppi-ui) .dark-asset{display:none!important}
:where(.ppi-ui) .badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;line-height:1.5;font-size:14px;font-weight:750;white-space:nowrap}
:where(.ppi-ui) .badge.purple{color:var(--purple);background:var(--purple-soft)}
:where(.ppi-ui) .badge.amber{color:var(--amber);background:var(--amber-soft)}
:where(.ppi-ui) .badge.green{color:var(--green);background:var(--green-soft)}
:where(.ppi-ui) .badge.neutral{color:var(--muted);background:var(--surface-3)}
:where(.ppi-ui) .dot{width:6px;height:6px;background:var(--green);border-radius:50%}
:where(.ppi-ui) .icon-button{width:36px;height:36px;border:1px solid var(--line);background:var(--surface);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
:where(.ppi-ui) .avatar-button{border:1px solid var(--line);background:var(--purple-soft);color:var(--purple);font-size:13px;font-weight:800;border-radius:50%;width:34px;height:34px}
:where(.ppi-ui) .eyebrow{font-size:13px;letter-spacing:.14em;font-weight:800;color:var(--purple);display:flex;align-items:center;gap:8px}
:where(.ppi-ui) .eyebrow-line{width:18px;height:2px;background:var(--purple)}
:where(.ppi-ui) .button{border:1px solid transparent;border-radius:9px;min-height:41px;padding:10px 14px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
:where(.ppi-ui) .button.primary{background:var(--primary);color:var(--primary-text);box-shadow:var(--shadow)}
:where(.ppi-ui) .button.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}
:where(.ppi-ui) .button.small{min-height:34px;padding:7px 11px;font-size:14px}
:where(.ppi-ui) .button.danger{background:var(--surface);border-color:var(--danger);color:var(--danger)}
:where(.ppi-ui) .button.wide{width:100%}
:where(.ppi-ui) .preview-banner{display:flex;align-items:center;gap:10px;padding:11px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:14px;color:var(--muted);margin-bottom:18px}
:where(.ppi-ui) .preview-banner strong{color:var(--ink);font-weight:650}
:where(.ppi-ui) .banner-icon{color:var(--purple)}
:where(.ppi-ui) .preview-banner .text-button{margin-left:auto;white-space:nowrap;font-size:13px}
:where(.ppi-ui) .text-button{background:none;border:0;padding:0;color:var(--purple);font-size:15px;display:inline-flex;align-items:center;gap:5px;font-weight:700;text-align:left}
:where(.ppi-ui) .text-button .icon{width:14px;height:14px}
:where(.ppi-ui) .eyebrow{font-size:12px}
:where(.ppi-ui) .button{min-height:42px}
:where(.ppi-ui) .button.small{min-height:35px;font-size:14px;padding:7px 11px}
:where(.ppi-ui) .button.secondary{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
:where(.ppi-ui) .button.danger{background:var(--surface);color:var(--danger);border-color:var(--danger)}
:where(.ppi-ui) .button.wide{width:100%}
:where(.ppi-ui) .button.ghost{background:var(--surface-2);border-color:var(--line)}
:where(.ppi-ui) .icon-button:hover,:where(.ppi-ui) .button.secondary:hover{background:var(--surface-2)}
:where(.ppi-ui) .button:disabled{filter:none!important}
:where(.ppi-ui) .badge.neutral{background:var(--surface-3);color:var(--muted)}
:where(.ppi-ui) .badge.green{background:var(--green-soft);color:var(--green)}
:where(.ppi-ui) .badge.amber{background:var(--amber-soft);color:var(--amber)}
:where(.ppi-ui) .badge{font-size:12px;padding:4px 7px}
:where(.ppi-ui) .preview-banner{font-size:14px;margin-bottom:8px}
:where(.ppi-ui) .preview-banner .text-button{font-size:13px}
:where(.ppi-ui) .export-animated{min-width:167px;color:#fff;background:linear-gradient(105deg,#db46a7,#955bd7,#39bce2,#db46a7);background-size:280% 100%;animation:neon-shift 9s ease-in-out infinite;box-shadow:0 6px 21px rgba(143,76,214,.20);position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.2)}
:where(.ppi-ui) .export-animated::after{content:"";position:absolute;inset:-90% auto -90% -80%;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);transform:skewX(-23deg);animation:shimmer 5.8s ease-in-out infinite;pointer-events:none}
:where(.ppi-ui) .card{background:var(--surface);border:1px solid color-mix(in srgb,var(--line) 82%,var(--purple) 18%);border-radius:15px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
:where(.ppi-ui) .card-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 24px 17px}
:where(.ppi-ui) .card-header h2{font-size:19px}
:where(.ppi-ui) .card-body{padding:0 24px 24px}
:where(.ppi-ui) .card-subtitle{font-size:14px;color:var(--muted);margin-top:5px}
:where(.ppi-ui) .stack{display:grid;gap:20px;min-width:0}
:where(.ppi-ui) .dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:22px;align-items:start}
:where(.ppi-ui) .profile-overview{padding:26px;background:linear-gradient(130deg,var(--surface) 45%,color-mix(in srgb,var(--purple-soft) 56%,var(--surface)))}
:where(.ppi-ui) .identity{display:flex;align-items:center;gap:17px;min-width:0}
:where(.ppi-ui) .initials{display:flex;align-items:center;justify-content:center;flex:0 0 64px;height:64px;border-radius:17px;background:var(--purple-soft);color:var(--purple);font-size:24px;font-weight:780;border:1px solid color-mix(in srgb,var(--purple) 20%,var(--line))}
:where(.ppi-ui) .identity h2{font-size:25px;line-height:1.3;overflow-wrap:anywhere}
:where(.ppi-ui) .identity p{color:var(--muted);font-size:14px;margin-top:4px}
:where(.ppi-ui) .identity .badge{margin-left:auto;align-self:flex-start}
:where(.ppi-ui) .identity-name{min-width:0}
:where(.ppi-ui) .profile-bio{font-size:15px;line-height:1.8;color:var(--muted);margin:21px 0 20px;white-space:pre-wrap;overflow-wrap:anywhere}
:where(.ppi-ui) .tag-row{display:flex;gap:7px;flex-wrap:wrap}
:where(.ppi-ui) .tag{font-size:12px;color:var(--purple);background:var(--purple-soft);border:1px solid color-mix(in srgb,var(--purple) 12%,transparent);padding:5px 10px;border-radius:7px}
:where(.ppi-ui) .profile-bottom{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}
:where(.ppi-ui) .profile-bottom p{color:var(--muted);font-size:12px}
:where(.ppi-ui) .profile-bottom strong{color:var(--ink);font-weight:650}
:where(.ppi-ui) .mini-records{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding:21px 0 0;margin-top:23px}
:where(.ppi-ui) .mini-records button{background:none;border:0;text-align:left;padding:0 12px 0 0}
:where(.ppi-ui) .mini-records button+button{border-left:1px solid var(--line);padding-left:22px}
:where(.ppi-ui) .mini-records strong{font-size:25px;letter-spacing:-.04em;display:block;line-height:1.2}
:where(.ppi-ui) .mini-records span{font-size:12px;color:var(--muted);display:block;margin-top:6px}
:where(.ppi-ui) .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 20px}
:where(.ppi-ui) .section-heading h2{font-size:24px}
:where(.ppi-ui) .section-heading p{color:var(--muted);font-size:15px;margin-top:5px}
:where(.ppi-ui) .section-heading .button{flex-shrink:0}
:where(.ppi-ui) .section-actions{display:flex;gap:8px;flex-wrap:wrap}
:where(.ppi-ui) .studio-heading{align-items:center}
:where(.ppi-ui) .studio-heading-main{display:flex;align-items:center;gap:18px;min-width:0}
:where(.ppi-ui) .studio-title-art{width:96px;height:92px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:18px;background:linear-gradient(180deg,rgba(128,86,223,.08),rgba(35,185,232,.05));border:1px solid color-mix(in srgb,var(--line) 82%,var(--purple) 18%);box-shadow:var(--shadow);padding:8px}
:where(.ppi-ui) .studio-title-art img{display:block;max-width:100%;max-height:100%;object-fit:contain}
:where(.ppi-ui) .section-eyebrow{font-size:11px;letter-spacing:.11em;text-transform:uppercase;font-weight:750;color:var(--purple);margin-bottom:9px}
:where(.ppi-ui) .tally-card{background:linear-gradient(135deg,var(--surface),color-mix(in srgb,var(--purple-soft) 57%,var(--surface)));padding:21px 23px}
:where(.ppi-ui) .tally-card-top{display:flex;gap:12px;align-items:center;margin-bottom:13px}
:where(.ppi-ui) .tally-card-top img{width:85px;height:83px;object-fit:contain}
:where(.ppi-ui) .tally-card h2{font-size:20px;line-height:1.4}
:where(.ppi-ui) .tally-card p{font-size:14px;color:var(--muted);line-height:1.7}
:where(.ppi-ui) .writing-shortcuts{display:grid;gap:9px;margin:20px 0 16px}
:where(.ppi-ui) .shortcut{display:flex;align-items:center;gap:11px;text-align:left;background:var(--surface);border:1px solid var(--line);padding:13px 14px;border-radius:9px;font-size:15px;font-weight:650}
:where(.ppi-ui) .shortcut>svg:first-child{color:var(--purple);width:17px}
:where(.ppi-ui) .shortcut>svg:last-child{margin-left:auto;width:15px;color:var(--muted)}
:where(.ppi-ui) .shortcut:hover{border-color:var(--purple)}
:where(.ppi-ui) .tally-smallprint{display:flex;align-items:center;gap:6px;font-size:11px!important;border-top:1px solid var(--line);padding-top:13px;margin-top:15px}
:where(.ppi-ui) .tally-smallprint .icon{width:13px}
:where(.ppi-ui) .action-strip{display:flex;align-items:center;gap:14px;margin-top:21px}
:where(.ppi-ui) .action-strip .text-button{font-size:13px}
:where(.ppi-ui) .export-card{padding:23px;display:flex;gap:19px;align-items:center}
:where(.ppi-ui) .paper-mini{flex:0 0 68px;height:86px;background:#fff;border:1px solid #dfe3ed;border-radius:4px;padding:13px 10px;transform:rotate(-5deg);box-shadow:3px 6px 12px rgba(24,33,69,.08)}
:where(.ppi-ui) .paper-mini b{display:block;width:26px;height:5px;background:#9c8bd0;border-radius:2px;margin-bottom:10px}
:where(.ppi-ui) .paper-mini i{display:block;height:3px;background:#d7dce9;margin:5px 0;border-radius:1px}
:where(.ppi-ui) .paper-mini i:last-child{width:65%}
:where(.ppi-ui) .export-card h3{font-size:16px}
:where(.ppi-ui) .export-card p{font-size:13px;color:var(--muted);margin:6px 0 12px;line-height:1.6}
:where(.ppi-ui) .export-card .text-button{font-size:13px}
:where(.ppi-ui) .next-step{display:flex;gap:13px;padding:16px 24px;border-top:1px solid var(--line);align-items:flex-start}
:where(.ppi-ui) .step-icon{background:var(--purple-soft);color:var(--purple);border-radius:9px;padding:9px;display:flex;flex-shrink:0}
:where(.ppi-ui) .step-icon.amber{color:var(--amber);background:var(--amber-soft)}
:where(.ppi-ui) .next-step h3{font-size:14px}
:where(.ppi-ui) .next-step p{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.7}
:where(.ppi-ui) .next-step .text-button{font-size:12px;margin-top:8px}
:where(.ppi-ui) .list-item{display:flex;gap:14px;align-items:flex-start;padding:18px 24px;border-top:1px solid var(--line)}
:where(.ppi-ui) .date-tile{flex:0 0 48px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;text-align:center;padding:7px 2px;line-height:1.2}
:where(.ppi-ui) .date-tile small{font-size:10px;text-transform:uppercase;color:var(--muted)}
:where(.ppi-ui) .date-tile strong{display:block;font-size:19px;margin-top:3px}
:where(.ppi-ui) .list-item-content{flex:1;min-width:0}
:where(.ppi-ui) .list-item-content h3{font-size:15px;overflow-wrap:anywhere}
:where(.ppi-ui) .list-item-content p{font-size:14px;line-height:1.65;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
:where(.ppi-ui) .row-actions{display:flex;gap:6px;flex-shrink:0}
:where(.ppi-ui) .row-actions .icon-button{width:32px;height:32px;background:transparent}
:where(.ppi-ui) .row-actions .icon-button .icon{width:15px;height:15px}
:where(.ppi-ui) .muted{color:var(--muted)}
:where(.ppi-ui) .caption{font-size:13px;line-height:1.65;color:var(--muted)}
:where(.ppi-ui) .prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
:where(.ppi-ui) .private-notice{display:flex;align-items:flex-start;gap:10px;padding:14px 17px;background:var(--surface-2);border:1px solid color-mix(in srgb,var(--line) 84%,var(--purple) 16%);border-radius:10px;font-size:14px;color:var(--muted);line-height:1.6}
:where(.ppi-ui) .private-notice .icon{flex-shrink:0;color:var(--purple);margin-top:2px}
:where(.ppi-ui) .private-notice strong{color:var(--ink)}
:where(.ppi-ui) .portfolio-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px;align-items:start}
:where(.ppi-ui) .portfolio-sidebar{display:grid;gap:6px;padding:10px;border:1px solid color-mix(in srgb,var(--line) 82%,var(--purple) 18%);border-radius:12px;background:var(--surface);position:sticky;top:20px}
:where(.ppi-ui) .portfolio-tab{display:flex;align-items:center;gap:10px;background:none;border:1px solid transparent;border-radius:8px;padding:11px 12px;text-align:left;font-weight:650;color:var(--muted);font-size:14px}
:where(.ppi-ui) .portfolio-tab .icon{width:17px}
:where(.ppi-ui) .portfolio-tab.active{position:relative;color:var(--purple);background:var(--purple-soft);border-color:color-mix(in srgb,var(--purple) 34%,var(--line))}
:where(.ppi-ui) .portfolio-tab.active::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(95deg,var(--cyan),var(--purple),var(--pink),var(--cyan));background-size:230% 100%;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:neon-shift 8s linear infinite;pointer-events:none}
:where(.ppi-ui) .portfolio-tab small{margin-left:auto;font-size:11px}
:where(.ppi-ui) .sidebar-note{padding:16px 12px 7px;border-top:1px solid var(--line);margin-top:8px;font-size:12px;color:var(--muted);line-height:1.7}
:where(.ppi-ui) .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 28px}
:where(.ppi-ui) .detail-label{font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
:where(.ppi-ui) .detail-value{font-size:15px;overflow-wrap:anywhere}
:where(.ppi-ui) .span-2{grid-column:1/-1}
:where(.ppi-ui) .details-separator{height:1px;background:var(--line);margin:22px 0}
:where(.ppi-ui) .record{padding:23px 25px;border-top:1px solid var(--line)}
:where(.ppi-ui) .record:first-child{border-top:0}
:where(.ppi-ui) .record-top{display:flex;gap:15px;justify-content:space-between;align-items:flex-start}
:where(.ppi-ui) .record h3{font-size:17px;overflow-wrap:anywhere}
:where(.ppi-ui) .record .organization{font-size:14px;color:var(--muted);margin-top:4px}
:where(.ppi-ui) .record .record-dates{font-size:12px;color:var(--purple);margin-top:8px}
:where(.ppi-ui) .record .record-text{font-size:14px;color:var(--muted);margin-top:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
:where(.ppi-ui) .record-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
:where(.ppi-ui) .record-footer{margin-top:15px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:where(.ppi-ui) .record-footer .text-button{font-size:13px}
:where(.ppi-ui) .empty{padding:36px 24px;text-align:center}
:where(.ppi-ui) .empty>.icon{width:34px;height:34px;color:var(--purple);margin-bottom:12px}
:where(.ppi-ui) .empty h3{font-size:18px}
:where(.ppi-ui) .empty p{font-size:14px;color:var(--muted);margin:9px auto 20px;max-width:410px;line-height:1.7}
:where(.ppi-ui) .toolbar{padding:15px 18px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);background:var(--surface-2);flex-wrap:wrap}
:where(.ppi-ui) .searchbox{position:relative;flex:1;min-width:180px}
:where(.ppi-ui) .searchbox>.icon{position:absolute;top:13px;left:12px;color:var(--muted);width:16px;height:16px}
:where(.ppi-ui) .searchbox input{padding-left:36px!important}
:where(.ppi-ui) .toolbar select{width:auto;min-width:155px}
:where(.ppi-ui) .toolbar-count{font-size:12px;color:var(--muted);white-space:nowrap}
:where(.ppi-ui) .highlights-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:22px;align-items:start}
:where(.ppi-ui) .highlight-card{padding:23px 25px;border-top:1px solid var(--line)}
:where(.ppi-ui) .highlight-card:first-child{border-top:0}
:where(.ppi-ui) .highlight-title{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}
:where(.ppi-ui) .highlight-title h3{font-size:17px;overflow-wrap:anywhere}
:where(.ppi-ui) .highlight-card .record-text{font-size:14px;color:var(--muted);margin-top:11px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
:where(.ppi-ui) .highlight-meta{display:flex;gap:9px;align-items:center;margin-top:8px;font-size:12px;color:var(--muted);flex-wrap:wrap}
:where(.ppi-ui) .idea-card{padding:23px}
:where(.ppi-ui) .idea-card h3{font-size:17px}
:where(.ppi-ui) .idea-card p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:12px}
:where(.ppi-ui) .idea-card .button{margin-top:21px}
:where(.ppi-ui) .idea-example{border-left:2px solid var(--purple);padding-left:13px;margin-top:18px;font-size:14px;color:var(--muted);font-style:italic;line-height:1.8}
:where(.ppi-ui) input,:where(.ppi-ui) textarea,:where(.ppi-ui) select{width:100%;background:var(--surface-2);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14px;min-height:42px}
:where(.ppi-ui) select{cursor:pointer}
:where(.ppi-ui) textarea{resize:vertical;min-height:105px;line-height:1.65}
:where(.ppi-ui) input::placeholder,:where(.ppi-ui) textarea::placeholder{color:var(--muted);opacity:.75}
:where(.ppi-ui) input[type=checkbox]{width:17px;height:17px;min-height:17px;accent-color:var(--purple);flex:0 0 17px;margin:2px 0 0}
:where(.ppi-ui) input[type=file]{font-size:13px}
:where(.ppi-ui) .field{display:flex;flex-direction:column;gap:7px;min-width:0}
:where(.ppi-ui) .field>label{font-weight:700;font-size:14px}
:where(.ppi-ui) .field small,:where(.ppi-ui) .field-hint{font-size:13px;color:var(--muted);line-height:1.65}
:where(.ppi-ui) .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
:where(.ppi-ui) .form-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);margin-top:24px;padding-top:18px;flex-wrap:wrap}
:where(.ppi-ui) .form-actions .form-note{margin-right:auto;font-size:12px;color:var(--muted)}
:where(.ppi-ui) .check-label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.65;cursor:pointer}
:where(.ppi-ui) .checkbox-panel{padding:15px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);display:grid;gap:12px}
:where(.ppi-ui) .form-info{font-size:13px;color:var(--muted);line-height:1.75;margin-bottom:21px}
:where(.ppi-ui) .field-required{color:var(--purple)}
:where(.ppi-ui) .form-error{padding:10px 13px;border-radius:8px;background:color-mix(in srgb,var(--danger) 10%,var(--surface));color:var(--danger);font-size:13px;margin-bottom:15px;white-space:pre-wrap}
:is(#editorDialog,#exportDialog){border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--heavy-shadow);padding:25px;width:640px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto}
:is(#editorDialog,#exportDialog)::backdrop{background:rgba(12,16,33,.55);backdrop-filter:blur(5px)}
:where(.ppi-ui) .modal-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}
:where(.ppi-ui) .modal-top h2{font-size:23px;margin-top:5px}
:is(#editorDialog,#exportDialog) .eyebrow{font-size:10px}
:where(.ppi-ui) .optional-section{border:1px solid var(--line);border-radius:9px;margin-top:19px;overflow:hidden}
:where(.ppi-ui) .optional-section summary{cursor:pointer;padding:12px 15px;font-size:14px;font-weight:700;background:var(--surface-2)}
:where(.ppi-ui) .optional-section>div{padding:17px}
:where(.ppi-ui) .danger-box{border:1px solid color-mix(in srgb,var(--danger) 40%,var(--line));border-radius:10px;padding:16px;font-size:14px;line-height:1.75;margin-bottom:20px}
:where(.ppi-ui) .danger-box strong{color:var(--danger)}
:where(.ppi-ui) .menu-list{display:grid;gap:8px}
:where(.ppi-ui) .menu-item{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);background:var(--surface-2);border-radius:9px;text-align:left}
:where(.ppi-ui) .menu-item .icon{color:var(--purple)}
:where(.ppi-ui) .menu-item strong{display:block;font-size:14px}
:where(.ppi-ui) .menu-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
:where(.ppi-ui) .about-copy p{font-size:14px;color:var(--muted);line-height:1.8;margin:0 0 15px}
:where(.ppi-ui) .about-copy h3{margin:18px 0 7px;font-size:16px}
:where(.ppi-ui) .about-copy strong{color:var(--ink)}
:where(.ppi-ui) .about-copy .private-notice{margin-top:20px}
:where(.ppi-ui) .studio-layout{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.35fr);gap:22px;align-items:start}
:where(.ppi-ui) .studio-settings{padding:22px;display:grid;gap:19px}
:where(.ppi-ui) .studio-settings h3{font-size:17px}
:where(.ppi-ui) .task-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
:where(.ppi-ui) .task-button{min-height:70px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:13px;font-weight:700;text-align:left}
:where(.ppi-ui) .task-button .icon{width:17px;height:17px;color:var(--purple)}
:where(.ppi-ui) .task-button.active{color:var(--purple);background:var(--purple-soft);border-color:var(--purple)}
:where(.ppi-ui) .studio-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:where(.ppi-ui) .context-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-top:13px}
:where(.ppi-ui) .context-options .check-label{font-size:13px}
:where(.ppi-ui) .studio-settings .optional-section{margin:0}
:where(.ppi-ui) .draft-editor-shell{position:relative;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface);overflow:hidden}
:where(.ppi-ui) .draft-watermark{position:absolute;right:20px;bottom:18px;width:162px;max-width:38%;pointer-events:none;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s}
:where(.ppi-ui) .draft-watermark img{display:block;width:100%;height:auto;object-fit:contain;filter:grayscale(.02) saturate(.95)}
:where(.ppi-ui) .draft-editor-shell:has(.draft-area:placeholder-shown) .draft-watermark{opacity:.085;transform:none}
:where(.ppi-ui) .draft-area{min-height:460px;border:0;background:transparent;border-radius:0;padding:24px;font-size:16px;line-height:1.9;resize:vertical;display:block;position:relative;z-index:1}
:where(.ppi-ui) .draft-area::placeholder{color:var(--muted);opacity:.65}
:where(.ppi-ui) .draft-header{padding:20px 23px;display:flex;gap:13px;align-items:center;justify-content:space-between}
:where(.ppi-ui) .draft-header h3{font-size:18px}
:where(.ppi-ui) .draft-header small{font-size:13px;color:var(--muted);display:block;margin-top:5px}
:where(.ppi-ui) .draft-controls{padding:18px 22px;display:flex;flex-wrap:wrap;gap:9px;align-items:center}
:where(.ppi-ui) .draft-controls .button{font-size:14px}
:where(.ppi-ui) .draft-source-note{font-size:13px;color:var(--muted);padding:0 23px 19px;line-height:1.7}
:where(.ppi-ui) .draft-row{display:flex;gap:12px;align-items:center;padding:15px 23px;border-top:1px solid var(--line)}
:where(.ppi-ui) .draft-row>div:first-child{min-width:0;flex:1}
:where(.ppi-ui) .draft-row h3{font-size:15px;overflow-wrap:anywhere}
:where(.ppi-ui) .draft-row p{font-size:13px;color:var(--muted);margin-top:5px}
:where(.ppi-ui) .studio-preview-note{font-size:13px;color:var(--muted);line-height:1.7;padding:14px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px}
:where(.ppi-ui) .studio-preview-note strong{color:var(--purple)}
:where(.ppi-ui) .export-modal{width:1100px}
:where(.ppi-ui) .export-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}
:where(.ppi-ui) .export-options{display:grid;gap:17px}
:where(.ppi-ui) .export-options .field>label{font-size:13px}
:where(.ppi-ui) .export-options .check-label{font-size:12px}
:where(.ppi-ui) .export-section-list{display:grid;gap:11px;padding:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px}
:where(.ppi-ui) .export-options h3{font-size:14px}
:where(.ppi-ui) .export-options .optional-section{margin-top:0}
:where(.ppi-ui) .export-options .optional-section>div{padding:13px}
:where(.ppi-ui) .export-actions{display:grid;gap:9px;margin-top:5px}
:where(.ppi-ui) .document-preview-wrap{background:var(--surface-3);border:1px solid color-mix(in srgb,var(--line) 84%,var(--purple) 16%);border-radius:12px;padding:21px;max-height:640px;overflow:auto}
:where(.ppi-ui) .document-preview-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:13px;font-size:12px;color:var(--muted)}
:where(.ppi-ui) .paper-document{background:#fff;color:#243047;min-height:600px;padding:33px 31px;box-shadow:0 6px 20px rgba(30,38,69,.1);font-family:Arial,Helvetica,sans-serif;border-radius:2px;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
:where(.ppi-ui) .paper-document.classic{font-family:Georgia,"Times New Roman",serif;color:#20242c}
:where(.ppi-ui) .paper-document h1{font-size:25px;line-height:1.2;letter-spacing:-.025em;color:#222c43}
:where(.ppi-ui) .paper-document .doc-subtitle{font-size:11px;color:#53617b;margin:7px 0}
:where(.ppi-ui) .paper-document .doc-contact{font-size:9px;color:#5c6880;margin-top:7px;line-height:1.7}
:where(.ppi-ui) .doc-rule{height:2px;background:#8b6fca;margin:18px 0}
:where(.ppi-ui) .classic .doc-rule{background:#283042;height:1px}
:where(.ppi-ui) .paper-document h2{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#6c4bad;border-bottom:1px solid #e6e2ee;padding-bottom:5px;margin:19px 0 10px;font-weight:bold}
:where(.ppi-ui) .paper-document.classic h2{color:#20242c;letter-spacing:.08em}
:where(.ppi-ui) .paper-document h3{font-size:11px;font-weight:bold;margin:11px 0 3px}
:where(.ppi-ui) .paper-document p{margin:4px 0;white-space:pre-wrap;color:inherit}
:where(.ppi-ui) .paper-document .doc-meta{font-size:9px;color:#59657b}
:where(.ppi-ui) .paper-document .doc-entry{margin-bottom:12px;break-inside:avoid}
:where(.ppi-ui) .paper-document .doc-footnote{border-top:1px solid #e4e7ec;padding-top:10px;margin-top:26px;color:#69758a;font-size:8px}
:where(.ppi-ui) .export-warning{font-size:13px;color:var(--amber);background:var(--amber-soft);padding:12px;border-radius:9px;line-height:1.7}
:where(.ppi-ui) .export-summary{font-size:13px;color:var(--muted);line-height:1.7;margin-top:12px}
:where(.ppi-ui) .export-doc-list{display:grid;gap:11px;max-height:200px;overflow:auto}
:where(.ppi-ui) .export-doc-list small{font-size:11px;color:var(--muted);display:block}
:where(.ppi-ui) .toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%) translateY(20px);max-width:min(560px,calc(100% - 36px));z-index:1000;background:var(--ink);color:var(--surface);padding:13px 18px;border-radius:10px;box-shadow:var(--heavy-shadow);font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
:where(.ppi-ui) .toast.visible{opacity:1;transform:translateX(-50%)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:15px;top:-70px;background:var(--surface);padding:12px;z-index:2000;border-radius:8px}
.skip-link:focus{top:12px}
:where(.ppi-ui) .noscript{position:fixed;inset:20px;background:var(--surface);padding:40px;z-index:1000}
#view{outline:none;min-width:0}
#view:focus-visible{outline:none}
@media (max-width:1150px){
:where(.ppi-ui) .dashboard-grid{grid-template-columns:minmax(0,1.45fr) minmax(295px,1fr)}
:where(.ppi-ui) .profile-overview{padding:23px}
:where(.ppi-ui) .identity{gap:12px}
:where(.ppi-ui) .identity h2{font-size:22px}
:where(.ppi-ui) .identity .badge{display:none}
:where(.ppi-ui) .highlights-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}
:where(.ppi-ui) .studio-layout{grid-template-columns:320px minmax(0,1fr)}
:where(.ppi-ui) .export-layout{grid-template-columns:270px minmax(0,1fr)}
:where(.ppi-ui) .paper-document{padding:26px 23px}
}
@media (max-width:900px){
:where(.ppi-ui) .dashboard-grid{grid-template-columns:1fr 310px;gap:17px}
:where(.ppi-ui) .identity .initials{flex-basis:51px;height:51px;font-size:20px}
:where(.ppi-ui) .profile-overview{padding:20px}
:where(.ppi-ui) .profile-bio{font-size:14px}
:where(.ppi-ui) .card-header,:where(.ppi-ui) .card-body{padding-left:20px;padding-right:20px}
:where(.ppi-ui) .profile-bottom{flex-wrap:wrap}
:where(.ppi-ui) .portfolio-layout{grid-template-columns:175px minmax(0,1fr);gap:17px}
:where(.ppi-ui) .portfolio-tab{font-size:13px;padding:11px 9px}
:where(.ppi-ui) .studio-layout{grid-template-columns:1fr}
:where(.ppi-ui) .studio-settings{grid-template-columns:1fr 1fr;gap:20px}
:where(.ppi-ui) .studio-settings>.task-group,:where(.ppi-ui) .studio-settings>.generate-group{grid-column:1/-1}
:where(.ppi-ui) .studio-settings .task-grid{grid-template-columns:repeat(3,1fr)}
:where(.ppi-ui) .studio-settings>.optional-section{align-self:start}
:where(.ppi-ui) .draft-area{min-height:340px}
:where(.ppi-ui) .highlights-layout{grid-template-columns:1fr}
:where(.ppi-ui) .highlights-layout>.stack{grid-template-columns:1fr 1fr}
:where(.ppi-ui) .export-layout{grid-template-columns:240px minmax(0,1fr);gap:17px}
:where(.ppi-ui) .document-preview-wrap{padding:14px}
}
@media (max-width:720px){
:where(.ppi-ui) .eyebrow{font-size:10px;letter-spacing:.12em}
:where(.ppi-ui) .preview-banner{padding:11px 12px;align-items:flex-start;font-size:12px}
:where(.ppi-ui) .preview-banner .text-button{display:none}
:where(.ppi-ui) .dashboard-grid{grid-template-columns:1fr}
:where(.ppi-ui) .dashboard-grid>.stack{gap:17px}
:where(.ppi-ui) .profile-overview{padding:22px}
:where(.ppi-ui) .identity h2{font-size:23px}
:where(.ppi-ui) .identity .badge{display:inline-flex}
:where(.ppi-ui) .profile-bottom{flex-wrap:nowrap}
:where(.ppi-ui) .tally-card{padding:20px}
:where(.ppi-ui) .tally-card-top img{width:73px;height:72px}
:where(.ppi-ui) .writing-shortcuts{grid-template-columns:1fr;gap:8px;margin-top:15px}
:where(.ppi-ui) .export-card{padding:22px}
:where(.ppi-ui) .section-heading h2{font-size:23px}
:where(.ppi-ui) .section-heading p{font-size:14px}
:where(.ppi-ui) .section-heading{gap:12px;flex-wrap:wrap}
:where(.ppi-ui) .studio-heading-main{width:100%;justify-content:space-between}
:where(.ppi-ui) .studio-title-art{width:82px;height:78px;border-radius:16px}
:where(.ppi-ui) .portfolio-layout{grid-template-columns:1fr;gap:18px}
:where(.ppi-ui) .portfolio-sidebar{position:static;display:flex;flex-wrap:wrap;padding:7px;gap:5px}
:where(.ppi-ui) .portfolio-tab{flex:1 1 calc(33.333% - 6px);font-size:12px;padding:10px 8px;white-space:nowrap}
:where(.ppi-ui) .portfolio-tab small{display:none}
:where(.ppi-ui) .portfolio-tab .icon{width:15px}
:where(.ppi-ui) .sidebar-note{display:none}
:where(.ppi-ui) .detail-grid{gap:20px}
:where(.ppi-ui) .detail-value{font-size:15px}
:where(.ppi-ui) .card-header h2{font-size:17px}
:where(.ppi-ui) .card-header{padding:19px 20px 16px}
:where(.ppi-ui) .card-body{padding:0 20px 21px}
:where(.ppi-ui) .record{padding:20px}
:where(.ppi-ui) .record h3{font-size:16px}
:where(.ppi-ui) .record-top{gap:10px}
:where(.ppi-ui) .record .record-text{font-size:14px}
:where(.ppi-ui) .highlights-layout>.stack{grid-template-columns:1fr}
:where(.ppi-ui) .highlight-card{padding:20px}
:where(.ppi-ui) .studio-settings{grid-template-columns:1fr}
:where(.ppi-ui) .studio-settings>.task-group,:where(.ppi-ui) .studio-settings>.generate-group{grid-column:auto}
:where(.ppi-ui) .studio-settings .task-grid{grid-template-columns:repeat(3,1fr)}
:where(.ppi-ui) .studio-settings{padding:18px}
:where(.ppi-ui) .task-button{font-size:12px;padding:11px}
:where(.ppi-ui) .draft-header{padding:19px}
:where(.ppi-ui) .draft-watermark{right:16px;bottom:16px;width:136px;max-width:44%}
:where(.ppi-ui) .draft-area{padding:19px;min-height:370px;font-size:15px}
:where(.ppi-ui) .draft-controls{padding:17px;gap:8px}
:where(.ppi-ui) .draft-source-note{padding-inline:19px}
:where(.ppi-ui) .draft-row{padding:16px 19px}
:where(.ppi-ui) .studio-layout{gap:17px}
:where(.ppi-ui) .form-grid{gap:15px}
:is(#editorDialog,#exportDialog){padding:21px;max-width:calc(100% - 24px);max-height:calc(100dvh - 28px);border-radius:15px}
:where(.ppi-ui) .modal-top h2{font-size:22px}
:where(.ppi-ui) .export-layout{grid-template-columns:1fr}
:where(.ppi-ui) .export-options{grid-template-columns:1fr 1fr;gap:15px}
:where(.ppi-ui) .export-options>.export-section-group,:where(.ppi-ui) .export-options>.optional-section,:where(.ppi-ui) .export-options>.export-actions,:where(.ppi-ui) .export-options>.export-warning{grid-column:1/-1}
:where(.ppi-ui) .export-section-list{grid-template-columns:1fr 1fr}
:where(.ppi-ui) .document-preview-wrap{max-height:440px}
:where(.ppi-ui) .paper-document{padding:26px;min-height:440px}
:where(.ppi-ui) .toast{bottom:114px}
:where(.ppi-ui) .toolbar select{min-width:140px}
:where(.ppi-ui) .toolbar-count{margin-left:auto}
}
@media (max-width:430px){
:where(.ppi-ui) .identity .badge{display:none}
:where(.ppi-ui) .profile-overview{padding:20px}
:where(.ppi-ui) .profile-bio{font-size:14px}
:where(.ppi-ui) .mini-records button+button{padding-left:16px}
:where(.ppi-ui) .mini-records span{font-size:11px}
:where(.ppi-ui) .profile-bottom{flex-wrap:wrap}
:where(.ppi-ui) .profile-bottom .button{width:100%}
:where(.ppi-ui) .profile-bottom p{font-size:12px}
:where(.ppi-ui) .section-actions{width:100%}
:where(.ppi-ui) .section-actions .button{flex:1}
:where(.ppi-ui) .detail-grid{grid-template-columns:1fr}
:where(.ppi-ui) .form-grid{grid-template-columns:1fr}
:where(.ppi-ui) .form-grid .span-2{grid-column:auto}
:where(.ppi-ui) .portfolio-tab{font-size:11px;gap:6px}
:where(.ppi-ui) .portfolio-tab .icon{width:14px}
:where(.ppi-ui) .row-actions{gap:4px}
:where(.ppi-ui) .row-actions .icon-button{width:30px}
:where(.ppi-ui) .highlight-title h3{font-size:15px}
:where(.ppi-ui) .record h3{font-size:15px}
:where(.ppi-ui) .form-actions{gap:8px}
:where(.ppi-ui) .form-actions .form-note{flex-basis:100%}
:where(.ppi-ui) .form-actions .button{flex:1}
:where(.ppi-ui) .export-options{grid-template-columns:1fr}
:where(.ppi-ui) .export-options>*{grid-column:auto!important}
:where(.ppi-ui) .export-section-list{grid-template-columns:1fr 1fr}
:where(.ppi-ui) .task-grid{gap:6px}
:where(.ppi-ui) .studio-settings .task-grid{grid-template-columns:1fr 1fr}
:where(.ppi-ui) .draft-watermark{right:14px;bottom:14px;width:112px;max-width:46%}
:where(.ppi-ui) .draft-controls .button{flex:1}
:where(.ppi-ui) .section-heading>.button{width:100%}
:where(.ppi-ui) .studio-heading-main{gap:12px}
:where(.ppi-ui) .studio-title-art{width:70px;height:66px;border-radius:14px;padding:6px}
:where(.ppi-ui) .record-top{flex-wrap:wrap}
:where(.ppi-ui) .record-top>.row-actions{margin-left:auto}
:where(.ppi-ui) .toolbar select{width:100%}
:where(.ppi-ui) .toolbar-count{margin-left:0}
:where(.ppi-ui) .paper-document{padding:21px 18px}
:where(.ppi-ui) .paper-document h1{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
:where(.ppi-ui) *::before,:where(.ppi-ui) *::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}
}
:is(#editorDialog,#exportDialog){overflow-x:hidden}
:is(#editorDialog,#exportDialog) .field,:is(#editorDialog,#exportDialog) .form-grid>*{min-width:0}
:where(.ppi-ui) .preview-banner .banner-backup{white-space:nowrap;flex-shrink:0;gap:7px}
:where(.ppi-ui) .discard-notice{border:1px solid var(--line);background:var(--surface);padding:16px;border-radius:12px;margin-bottom:18px;color:var(--ink)}
:where(.ppi-ui) .discard-notice p{margin:7px 0 12px;font-size:14px;line-height:1.6}
:where(.ppi-ui) .discard-notice>div{display:flex;gap:10px;flex-wrap:wrap}
:where(.ppi-ui) .draft-count{font-size:13px;color:var(--muted);text-align:right;padding:0 25px;margin:2px 0 13px}
:where(.ppi-ui) #studioError{margin-bottom:14px}
@media (max-width:540px){
:where(.ppi-ui) .preview-banner{flex-wrap:wrap}
:where(.ppi-ui) .preview-banner>div{flex:1 1 calc(100% - 44px)}
:where(.ppi-ui) .preview-banner .banner-backup{margin-left:28px}
:where(.ppi-ui) .draft-count{padding:0 18px}
}
@media (max-width:720px){
:where(.ppi-ui) .preview-banner .banner-backup{display:inline-flex}
}
