.pw-panel { grid-column:1 / -1; min-width:0; width:100%; box-sizing:border-box; margin:20px 0; border-top:1px solid #dce2e8; border-bottom:1px solid #dce2e8; color:#18212b; background:#fff; }
.pw-panel [hidden] { display:none!important; }
.pw-panel-heading { display:flex; align-items:center; gap:12px; padding:18px 0; cursor:pointer; list-style:none; }
.pw-panel-heading::-webkit-details-marker { display:none; }
.pw-panel-heading strong { font-size:18px; }
.pw-panel-title { display:inline-flex; align-items:center; gap:0; min-width:0; }
.pw-panel-title strong { min-width:0; overflow-wrap:anywhere; }
#pw-info-trigger { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:none; width:30px; height:30px; min-width:30px; min-height:30px; padding:0; margin:0; border:0; background:transparent; color:#2563eb; font:9.36px/1 Georgia,serif; cursor:pointer; }
#pw-info-trigger::before { content:''; position:absolute; inset:0; margin:auto; width:15.6px; height:15.6px; box-sizing:border-box; border:1px solid #bfd3ff; border-radius:50%; }
#pw-info-trigger:focus-visible { outline:none; }
#pw-info-trigger:focus-visible::before { outline:2px solid #2563eb; outline-offset:2px; }
.pw-info-popover { position:fixed; inset:auto; width:min(420px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); box-sizing:border-box; overflow:auto; margin:0; padding:18px 20px; border:1px solid #dce2e8; border-radius:8px; background:#fff; color:#18212b; box-shadow:0 12px 32px #18212b26; }
.pw-info-popover h2 { margin:0 26px 10px 0; font-size:16px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.pw-info-popover p { margin:0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
#pw-info-close { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:28px; height:28px; min-width:28px; min-height:28px; padding:0; border:0; background:transparent; cursor:pointer; }
.pw-panel-heading::after { content:'+'; margin-left:4px; font-size:22px; color:#2563eb; }
.pw-panel[open] .pw-panel-heading::after { content:'-'; }
.pw-status { margin-left:auto; background:#eef1f4; color:#475569; padding:4px 10px; border-radius:4px; font-size:13px; }
.pw-status[data-state=published] { color:#166534; background:#dcfce7; }
#portfolioSection > .section-head { align-items:center; flex-wrap:wrap; gap:12px 18px; padding-bottom:12px; border-bottom:1px solid #e2e8f0; }
#portfolioSection > .section-head .portfolio-heading-copy { display:flex; flex-direction:column; align-items:flex-start; flex-wrap:nowrap; gap:4px; flex:1 1 360px; width:auto; min-width:0; }
body.ptln-page #portfolioSection > .section-head .portfolio-heading-copy .section-title-row h2 { font-weight:400 !important; color:#64748b; }
#portfolioSection > .section-head #portfolioWebsitePanel { flex:0 1 auto; width:auto; max-width:100%; margin:0; border:1px solid #e2e8f0; border-radius:8px; background:#fafbfc; }
#portfolioSection > .section-head .pw-header-link { flex:none; width:44px; height:44px; box-sizing:border-box; margin-left:auto; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#18212b; }
.pw-header-link[aria-disabled=true] { opacity:.45; cursor:default; }
.pw-header-link:focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
#portfolioSection > .section-head .pw-panel-heading { gap:10px; padding:8px 12px; flex-wrap:nowrap; }
#portfolioSection > .section-head .pw-panel-heading strong { font-size:14px; font-weight:600; }
#portfolioSection > .section-head .pw-panel-heading > img { width:20px; height:20px; flex:none; }
#portfolioSection > .section-head .pw-status { margin-left:auto; max-width:130px; padding:3px 8px; border-radius:999px; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
@media(max-width:700px) {
  #portfolioSection > .section-head #portfolioWebsitePanel { flex-basis:100%; width:100%; }
}
.pw-panel-body { padding:4px 0 20px; }
.pw-editor-dialog { position:fixed; inset:0; width:min(1100px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:90dvh; margin:auto; padding:0; border:1px solid #dce2e8; border-radius:8px; background:#fff; color:#18212b; box-sizing:border-box; }
.pw-editor-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; }
.pw-editor-dialog::backdrop { background:rgba(17,24,39,.45); }
.pw-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-bottom:1px solid #e2e8f0; }
.pw-editor-heading h2 { margin:0; font-size:18px; line-height:1.4; overflow-wrap:anywhere; }
.pw-editor-dialog .pw-panel-body { padding:20px; min-height:0; overflow:auto; overscroll-behavior:contain; }
.pw-address-row { display:flex; align-items:flex-end; gap:8px; }
.pw-address { flex:1; min-width:0; }
.pw-panel label:not(.pw-panel-heading) { font-size:14px; }
.pw-address>span:first-child,.pw-profile>label>span { display:block; margin-bottom:7px; color:#475569; }
.pw-url-input { display:flex; align-items:center; gap:3px; border:1px solid #cbd5e1; border-radius:6px; padding:0 12px; min-height:44px; flex-wrap:wrap; }
.pw-url-input input { flex:1; min-width:110px; width:100%; border:0!important; background:transparent; box-shadow:none!important; padding:10px 0!important; }
.pw-url-input input:focus { outline:none; }
.pw-url-input:focus-within { outline:2px solid #2563eb; outline-offset:2px; }
.pw-icon-button { display:inline-flex; flex:none; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid #cbd5e1; background:#fff; border-radius:6px; cursor:pointer; }
.pw-icon-button:disabled { opacity:.4; cursor:default; }
.pw-meta { color:#64748b; font-size:13px; line-height:1.5; margin:8px 0; }
.pw-panel fieldset { border:0; padding:0; margin:22px 0; min-width:0; }
.pw-panel legend { font-weight:600; font-size:15px; margin-bottom:12px; }
.pw-templates { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pw-templates label { border:1px solid #cbd5e1; padding:14px; border-radius:6px; display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.pw-templates label:has(input:checked) { border-color:#2563eb; background:#f0f6ff; }
.pw-templates strong,.pw-templates small { display:block; }
.pw-templates small { margin-top:4px; color:#64748b; font-size:12px; line-height:1.5; }
.pw-profile { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pw-statistics { border-top:1px solid #dce2e8; border-bottom:1px solid #dce2e8; margin:16px 0; }
.pw-statistics>summary { cursor:pointer; padding:14px 0; font-size:14px; font-weight:600; }
.pw-statistics-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pw-statistics-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:12px 0; }
.pw-statistics-metrics strong { display:block; font-size:23px; line-height:1.4; overflow-wrap:anywhere; }
.pw-statistics-metrics span { font-size:12px; color:#63727a; }
.pw-statistics-days { max-height:230px; overflow:auto; margin-bottom:16px; }
.pw-statistics-days table { width:100%; border-collapse:collapse; font-size:13px; }
.pw-statistics-days td,.pw-statistics-days th { padding:8px 0; border-bottom:1px solid #e2e8f0; text-align:left; }
.pw-statistics-days th { position:sticky; top:0; background:#fff; font-size:12px; color:#63727a; }
.pw-statistics-days td:last-child,.pw-statistics-days th:last-child { text-align:right; }
.pw-profile .pw-checks { grid-column:1/-1; }
#portfolioWebsitePanel input[type=checkbox],#portfolioWebsitePanel input[type=radio],.pw-preview-dialog input[type=checkbox] { accent-color:#2563eb; flex:none; width:17px; height:17px; min-height:17px; padding:0!important; margin:2px 0; }
.pw-profile input[type=text],.pw-profile textarea { width:100%; border:1px solid #cbd5e1; border-radius:6px; padding:10px 12px; font:inherit; resize:vertical; box-sizing:border-box; }
.pw-checks { display:flex; flex-wrap:wrap; gap:12px 20px; }
#portfolioWebsitePanel .pw-checks label,#portfolioWebsitePanel .pw-item-fields label,#portfolioWebsitePanel .pw-templates label { display:flex!important; flex-direction:row!important; }
.pw-checks label,.pw-item-fields label { display:flex; align-items:flex-start; gap:8px; }
.pw-selection-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; border-top:1px solid #e2e8f0; padding-top:20px; }
.pw-selection-heading h3 { font-size:16px; margin:0; }
.pw-selection-heading button { margin-left:auto; font-size:13px; }
.pw-category { border-bottom:1px solid #e2e8f0; }
.pw-category>summary { display:flex; gap:10px; padding:14px 0; align-items:center; cursor:pointer; font-size:14px; font-weight:600; }
.pw-item { margin:0 0 0 27px; border-top:1px solid #eef1f4; }
.pw-item>summary { display:flex; gap:10px; padding:12px 0; align-items:flex-start; cursor:pointer; font-size:14px; }
.pw-item-name { min-width:0; overflow-wrap:anywhere; flex:1; }
.pw-item-grade { color:#64748b; font-size:12px; flex:none; padding-top:2px; }
.pw-item-fields { display:flex; flex-wrap:wrap; gap:12px 22px; padding:4px 0 18px 27px!important; margin:0!important; }
.pw-item-fields:disabled { opacity:.45; }
.pw-actions { display:flex; flex-wrap:wrap; gap:10px; padding-top:20px; }
.pw-actions button { min-height:42px; font-size:14px; display:inline-flex; gap:8px; align-items:center; justify-content:center; }
.pw-actions button img { flex:none; }
.pw-message { margin:10px 0 0; font-size:14px; line-height:1.6; color:#475569; overflow-wrap:anywhere; }
.pw-message[data-error=true] { color:#b42318; }
.pw-preview-dialog { width:min(1468px,calc(100vw - 24px)); max-width:calc(100vw - 24px); margin:auto; padding:0; max-height:92dvh; border:1px solid #dce2e8; border-radius:8px; color:#18212b; background:#fff; }
.pw-preview-dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:92dvh; overflow:hidden; }
.pw-preview-dialog::backdrop { background:rgba(17,24,39,.45); }
.pw-preview-dialog header { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid #e2e8f0; }
.pw-preview-dialog h2 { font-size:18px; margin:0; }
.pw-preview-dialog iframe { width:100%; height:100%; min-height:0; display:block; border:0; background:#fff; }
.pw-preview-dialog footer { padding:16px 18px; border-top:1px solid #e2e8f0; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
#pw-preview-dialog footer>label { flex:none; min-width:0; max-width:100%; box-sizing:border-box; position:relative; display:block; padding:0 0 0 28px; margin:0; font-size:13px; line-height:20px; cursor:pointer; }
#pw-preview-dialog #pw-public-consent { position:absolute; left:0; top:1px; box-sizing:border-box; width:18px; height:18px; min-width:18px; min-height:18px; max-width:18px; max-height:18px; padding:0!important; margin:0!important; transform:none; box-shadow:none; }
#pw-public-consent:focus-visible { outline:2px solid #2563eb; outline-offset:2px; box-shadow:none; }
#pw-preview-dialog footer>label>span { display:block; min-width:0; margin:0; padding:0; font-size:inherit; line-height:inherit; overflow-wrap:anywhere; }
.pw-preview-dialog footer button { flex:none; min-height:42px; }
#pw-preview-message { margin:0; max-width:100%; text-align:right; font-size:13px; line-height:20px; overflow-wrap:anywhere; }
#pw-preview-message[hidden],#pw-refresh-preview[hidden] { display:none!important; }
.pw-preview-certificate-dialog { width:min(1040px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:0; border:1px solid #dce2e8; border-radius:8px; background:#fff; color:#17232a; }
.pw-preview-certificate-dialog::backdrop { background:#142031aa; }
.pw-preview-certificate-dialog header { display:flex; align-items:flex-start; gap:18px; padding:18px 22px; border-bottom:1px solid #dce2e8; }
.pw-preview-certificate-dialog h2 { flex:1; font-size:19px; margin:0; overflow-wrap:anywhere; }
.pw-preview-certificate-dialog button { min-width:44px; min-height:44px; border:1px solid #dce2e8; border-radius:4px; background:#fff; color:#17232a; cursor:pointer; }
.pw-preview-certificate-dialog iframe { display:block; width:100%; height:min(65dvh,680px); border:0; background:#f6f8fa; }
.pw-preview-certificate-dialog footer { display:flex; justify-content:flex-end; align-items:center; gap:12px; padding:14px 22px; border-top:1px solid #dce2e8; }
.pw-preview-certificate-dialog footer a { background:#245be8; color:#fff; padding:10px 16px; border-radius:4px; font-size:13px; text-decoration:none; }
.pw-preview-certificate-dialog footer button { padding:0 14px; }
@media(max-width:640px) {
  .pw-statistics-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pw-templates { grid-template-columns:1fr; }
  .pw-profile { grid-template-columns:1fr; }
  .pw-profile .pw-checks { grid-column:auto; }
  .pw-panel-heading strong { font-size:16px; }
  .pw-panel-heading { flex-wrap:wrap; padding-right:44px; }
  .pw-status { margin-left:34px; }
  .pw-item { margin-left:8px; }
  .pw-item-fields { padding-left:0!important; }
  .pw-item-fields label { width:100%; }
  .pw-url-input { font-size:13px; }
  .pw-preview-dialog footer { align-items:stretch; flex-direction:column; }
  .pw-preview-certificate-dialog header,.pw-preview-certificate-dialog footer { padding:12px; }
  .pw-preview-certificate-dialog h2 { font-size:16px; }
  .pw-actions button { flex:1 1 auto; }
}
