/* Preserve B14-4 field colors and report navigation; constrain new form content. */
.p3-daily{min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
.p3-daily h2{font-size:22px;margin:8px 0}
.p3-daily h3{font-size:15px;margin:0 0 10px}
.p3-daily h4{font-size:13px;margin:16px 0 6px}
.p3-daily input,.p3-daily select,.p3-daily textarea{box-sizing:border-box;max-width:100%;min-width:0;letter-spacing:0}
.p3-daily input,.p3-daily select{border:1px solid var(--ui-border-strong);border-radius:3px;background:var(--ui-panel);color:var(--ui-text);padding:7px;font-size:13px}
.p3-daily button:focus-visible,.p3-daily input:focus-visible,.p3-daily select:focus-visible,.p3-daily textarea:focus-visible,.p3-table-scroll:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
.p3-daily ::selection{color:var(--ui-text);background:var(--ui-panel)}
.p3-daily :disabled{opacity:.6;cursor:not-allowed}
.p3-daily .b144-header-controls select{max-width:260px}
.p3-scope{margin:9px 0;color:var(--ui-muted);font-size:12px;overflow-wrap:anywhere}
.p3-section{padding:16px 0;border-bottom:1px solid var(--ui-line);min-width:0}
.p3-section p{font-size:13px;line-height:1.55;color:var(--ui-muted)}
.p3-unavailable{padding:12px 0;margin-top:12px;color:var(--ui-warning);font-size:12px;line-height:1.6;border-top:1px solid var(--ui-line)}
.p3-three-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.p3-three-days .b144-day{min-height:220px}
.p3-three-days .b144-day>.button{margin-top:auto}
.p3-comparison{min-width:0}
.p3-compare-toolbar{display:flex;align-items:end;gap:10px 16px;flex-wrap:wrap;margin:12px 0}
.p3-compare-toolbar .button,.p3-compare-day-tabs .button{min-height:36px;padding:6px 9px;font-size:12px}
.p3-compare-toolbar .b144-segment{align-self:end}
.p3-compare-toolbar .b144-segment [aria-pressed=true]{background:var(--ui-subtle);color:var(--ui-text)}
.p3-compare-dates,.p3-compare-zoom{display:flex;align-items:end;gap:5px}
.p3-compare-dates input{height:36px;width:145px}
.p3-compare-zoom label{display:flex;align-items:center;gap:3px;font-size:12px;color:var(--ui-muted)}
.p3-compare-zoom input{width:72px;height:36px;text-align:center}
.p3-compare-zoom .button{min-width:36px}
.p3-compare-sync{min-height:36px;font-size:12px;gap:6px}
.p3-compare-sync input{width:17px;height:17px;accent-color:var(--ui-accent)}
.p3-compare-day-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.p3-compare-day-tabs [aria-pressed=true]{border-color:var(--ui-line);background:var(--ui-panel);color:var(--ui-text)}
.p3-compare-viewport{max-width:100%;overflow-x:auto;padding-bottom:7px;scrollbar-color:var(--ui-border-strong) var(--ui-subtle)}
.p3-compare-columns{display:grid;grid-template-columns:repeat(3,minmax(280px,1fr));gap:9px;min-width:858px}
.p3-compare-columns.is-single{grid-template-columns:minmax(0,1fr);min-width:0}
.p3-compare-pane{min-width:0;border:1px solid var(--ui-line);border-radius:5px;overflow:hidden;background:var(--ui-panel)}
.p3-compare-pane-head{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px;background:var(--ui-subtle);min-height:70px;box-sizing:border-box}
.p3-compare-pane-head h3{margin:0 0 4px;font-size:14px}
.p3-compare-pane-head span{font-size:11px;color:var(--ui-muted);overflow-wrap:anywhere}
.p3-compare-pane-head>div:last-child{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end}
.p3-compare-pane-head .button{font-size:11px;min-height:32px;padding:5px 7px}
.p3-compare-scroller{height:clamp(300px,58vh,720px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:var(--ui-border-strong) var(--ui-subtle)}
.p3-compare-scroller:focus-visible{outline:2px solid var(--ui-focus);outline-offset:-2px}
.p3-compare-document{box-sizing:border-box;width:660px;min-width:100%;padding:18px;font-size:12px;line-height:1.55;color:var(--ui-text);letter-spacing:0}
.p3-compare-document-head{padding-bottom:12px;border-bottom:1px solid var(--ui-line)}
.p3-compare-document-head h3{font-size:18px;margin:0 0 8px}
.p3-compare-document p{margin:4px 0}
.p3-compare-document small{font-size:11px}
.p3-compare-fields{margin:0}
.p3-compare-fields>div{display:grid;grid-template-columns:145px minmax(0,1fr);border-bottom:1px solid var(--ui-line)}
.p3-compare-fields dt,.p3-compare-fields dd{padding:7px 8px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.p3-compare-fields dt{color:var(--ui-muted);background:var(--ui-panel)}
.p3-compare-fields dd{border-left:1px solid var(--ui-line)}
.p3-compare-section{margin:14px 0}
.p3-compare-document h4{margin:0 0 7px;font-size:13px}
.p3-compare-document h4 small{font-weight:400;color:var(--ui-muted);margin-left:5px}
.p3-compare-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px}
.p3-compare-table th,.p3-compare-table td{border:1px solid var(--ui-line);padding:7px 5px;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}
.p3-compare-table th{color:var(--ui-text);background:var(--ui-subtle)}
.p3-compare-document pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.p3-compare-document-foot{padding-top:12px;border-top:1px solid var(--ui-line);color:var(--ui-muted)}
.p3-compare-message{padding:20px;color:var(--ui-muted);font-size:13px;line-height:1.6}
.p3-compare-message p{overflow-wrap:anywhere}
.p3-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.p3-fields label,.p3-editor label{font-size:12px;color:var(--ui-muted)}
.p3-editor textarea{min-height:110px;max-width:100%;box-sizing:border-box}
.p3-editor [data-daily-raw]{min-height:170px}
.p3-editor [data-daily-reason]{min-height:65px}
.p3-table-scroll{max-width:100%;overflow:auto;scrollbar-color:var(--ui-border-strong) var(--ui-subtle)}
.p3-table{min-width:660px;table-layout:fixed;width:100%}
.p3-table td,.p3-table th{vertical-align:top}
.p3-table input,.p3-table select{width:100%;min-width:74px;font-size:12px}
.p3-table .button{padding:7px;font-size:12px}
.p3-hash{display:block;overflow-wrap:anywhere;color:var(--ui-muted);font-size:11px;line-height:1.6;margin:8px 0}
.p3-import-provenance a{color:var(--ui-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.p3-version{padding:12px 0;border-bottom:1px solid var(--ui-line)}
.p3-version summary{cursor:pointer;font-size:13px;line-height:1.6}
.p3-version pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ui-subtle);padding:10px;max-height:350px;overflow:auto}
.p3-log-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--ui-line)}
.p3-log-row>div{min-width:0;overflow-wrap:anywhere}
.p3-log-row .button{margin:3px}
.p3-month{max-width:220px;display:inline-grid;margin-right:10px}
.p3-actions{align-items:center;flex-wrap:wrap}
.p3-actions>span{font-size:12px;color:var(--ui-muted)}
.p3-daily .notice{overflow-wrap:anywhere}
.p3-daily progress{max-width:100%}
.p3-progress-source{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
/* A wrapped account toolbar must remain inside the header, above the banner. */
body:has(#p3-daily) .topbar{height:auto;min-height:82px;flex-wrap:wrap;padding-block:10px;gap:8px 20px}
body:has(#p3-daily) .topbar>div:first-child{min-width:0}
body:has(#p3-daily) .top-actions{min-width:0!important;max-width:100%;flex-wrap:wrap}
body:has(#p3-daily) .user-pill{max-width:100%;min-width:0}
body:has(#p3-daily) .user-pill b{min-width:0;overflow-wrap:anywhere;white-space:normal}
@media(max-width:1050px){
  .p3-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p3-daily .b144-area-nav{min-height:0}
}
@media(max-width:700px){
  body:has(#p3-daily) .app-shell{display:flex;flex-direction:column;height:100vh;height:100dvh;min-width:0}
  body:has(#p3-daily) .sidebar{height:auto;min-height:0;max-height:none;flex:none;padding:6px 8px;overflow:hidden}
  body:has(#p3-daily) .brand{padding:0 0 5px;border:0;gap:6px;min-width:0}
  body:has(#p3-daily) .brand-logo{width:22px;height:22px;flex:0 0 22px}
  body:has(#p3-daily) .brand-copy strong{font-size:12px;white-space:normal}
  body:has(#p3-daily) .brand-copy span,body:has(#p3-daily) .brand-copy small,
  body:has(#p3-daily) .local-badge,body:has(#p3-daily) .side-section-label,
  body:has(#p3-daily) .sidebar .service-list,body:has(#p3-daily) .sidebar .backup-label,
  body:has(#p3-daily) .sidebar-foot{display:none}
  body:has(#p3-daily) .sidebar-scroll-region{display:flex;flex:none;gap:6px;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto;padding:0 0 4px}
  body:has(#p3-daily) .nav-list{display:flex;flex:none;gap:4px}
  body:has(#p3-daily) .nav-item{flex:0 0 auto;white-space:nowrap;min-height:44px;font-size:12px;padding:8px;gap:5px}
  body:has(#p3-daily) .nav-item>span{flex:none}
  body:has(#p3-daily) .main-area{height:auto;min-height:0;flex:1;width:100%;padding:0 10px 5px}
  body:has(#p3-daily) .topbar{height:auto;min-height:0;flex-direction:column;align-items:stretch;gap:8px;padding:10px 0}
  body:has(#p3-daily) .topbar>div:first-child{min-width:0;width:100%;overflow-wrap:anywhere}
  body:has(#p3-daily) .topbar h1{font-size:20px;line-height:1.3}
  body:has(#p3-daily) .topbar p{white-space:normal!important;line-height:1.5}
  body:has(#p3-daily) .top-actions{display:flex!important;min-width:0!important;max-width:100%;flex-wrap:wrap;gap:6px;justify-content:flex-start}
  body:has(#p3-daily) .top-actions .date-time,body:has(#p3-daily) .status-pills{display:none!important}
  body:has(#p3-daily) .user-pill{max-width:100%;min-width:0}
  body:has(#p3-daily) .user-pill b{min-width:0;overflow-wrap:anywhere;white-space:normal}
  body:has(#p3-daily) .demo-banner{height:auto;min-height:32px;flex-wrap:wrap;padding:7px;line-height:1.5}
  body:has(#p3-daily) .status-bar{height:auto;min-height:24px;flex-wrap:wrap;gap:3px 6px;padding:4px 7px}
  body:has(#p3-daily) .status-bar span:first-child{display:none}
  body:has(#p3-daily) .status-bar span:last-child{margin-left:0}
  body:has(#p3-daily) #page-content{width:100%;min-width:0;min-height:0;overflow:auto!important}
  .b144-module.p3-daily{display:block}
  .p3-daily .b144-area-nav{position:static;max-height:none;min-height:0;margin-bottom:12px}
  .p3-daily .b144-area-heading{padding:9px}
  .p3-daily .b144-area-list{display:flex;overflow-x:auto;max-width:100%;padding:5px}
  .p3-daily .b144-area-list button{flex:0 0 auto;white-space:nowrap}
  .p3-daily .b144-header{display:block}
  .p3-daily .b144-header-controls{display:grid;grid-template-columns:1fr 1fr;margin-bottom:10px}
  .p3-daily .b144-header-controls label:first-child{grid-column:1/-1}
  .p3-daily .b144-header-controls input,.p3-daily .b144-header-controls select{width:100%;max-width:none;height:40px}
  .p3-daily .b144-header-controls .button{grid-column:1/-1;height:40px}
  .p3-three-days,.p3-fields{grid-template-columns:1fr}
  .p3-three-days .b144-day{min-height:0}
  .p3-compare-toolbar{gap:10px;align-items:center}
  .p3-compare-toolbar>.b144-segment{width:100%;display:flex}
  .p3-compare-toolbar>.b144-segment .button{flex:1}
  .p3-compare-toolbar .button,.p3-compare-day-tabs .button{min-height:44px}
  .p3-compare-dates{width:100%;align-items:end}
  .p3-compare-dates .b144-field{flex:1}
  .p3-compare-dates input{width:100%;height:44px}
  .p3-compare-zoom input{height:44px;font-size:16px}
  .p3-compare-sync{min-height:44px}
  .p3-compare-scroller{height:460px}
  .p3-daily input,.p3-daily select,.p3-daily textarea{font-size:16px}
  .p3-log-row{display:block}
  .p3-log-row>div+div{margin-top:8px;display:flex;flex-wrap:wrap}
  .p3-daily .b144-tabs button{min-height:44px}
  .p3-actions .button{flex:1 1 100%;min-height:44px}
}
