/* B14-4 Stage 1 candidate. All selectors stay inside the reports module. */
html.reports-mode,body.reports-mode{min-width:0}
body.reports-mode .topbar{flex-wrap:wrap}
body.reports-mode .top-actions{flex-wrap:wrap;min-width:0}
.b144-module{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;min-height:100%;color:var(--ui-text)}
.b144-module *{min-width:0}
.b144-module button,.b144-module input,.b144-module select,.b144-module textarea{font-family:inherit}
.b144-module .button{white-space:normal;text-align:center}
.b144-work{min-width:0}
.b144-area-nav{position:sticky;top:0;display:flex;flex-direction:column;max-height:calc(100vh - 190px);min-height:480px;background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:5px;overflow:hidden}
.b144-area-heading{padding:14px 12px;border-bottom:1px solid var(--ui-line);background:var(--ui-panel)}
.b144-area-heading strong,.b144-area-heading small{display:block}
.b144-area-heading strong{font-size:16px;color:var(--ui-text)}
.b144-area-heading small{font-size:11px;color:var(--ui-muted);margin-top:4px}
.b144-area-list{padding:7px;display:grid;gap:3px;overflow-y:auto;align-content:start}
.b144-area-list button{border:1px solid transparent;border-left:3px solid transparent;border-radius:3px;background:transparent;color:var(--ui-muted);text-align:left;padding:9px 8px;font-size:12px;line-height:1.35;min-height:37px}
.b144-area-list button:hover{background:var(--ui-selected);color:var(--ui-text)}
.b144-area-list button.active{background:var(--ui-selected);border-color:var(--ui-accent);border-left-color:var(--ui-accent);color:var(--ui-text);font-weight:700}
.b144-area-list small{display:block;color:var(--ui-muted);font-size:10px;margin-top:2px}
.b144-area-foot{padding:10px 9px;border-top:1px solid var(--ui-line);color:var(--ui-muted);font-size:10px;line-height:1.45;margin-top:auto}
.b144-existing>.page{min-height:auto}
.b144-pending{display:grid;gap:12px;align-content:start;padding:11px 2px}
.b144-pending>small,.b144-section-header small,.b144-section-title small{font-size:10px;font-weight:700;color:var(--ui-muted)}
.b144-pending h2{margin:0;font-size:22px}
.b144-pending .b144-panel{max-width:760px}
.b144-pending p{max-width:620px}
.b144-journal{display:flex;flex-direction:column;gap:8px;min-width:0;padding:2px 0 8px}
.b144-header{display:flex;justify-content:space-between;align-items:end;gap:10px;flex-wrap:wrap}
.b144-title small{font-size:11px;color:var(--ui-muted)}
.b144-title h2{font-size:22px;line-height:1.15;margin:3px 0 0;color:var(--ui-text)}
.b144-header-controls{display:flex;gap:6px;align-items:end;flex-wrap:wrap}
.b144-header-controls label,.b144-filterbar label{display:grid;gap:4px;color:var(--ui-muted);font-size:10px;font-weight:700}
.b144-header-controls select,.b144-header-controls input,.b144-filterbar select,.b144-filterbar input{height:33px;border:1px solid var(--ui-border-strong);border-radius:3px;background:var(--ui-panel);color:var(--ui-text);padding:5px 8px;font-size:12px}
.b144-header-controls select{max-width:225px}
.b144-header-controls input[type=date]{width:145px}
.b144-header-controls .button{height:33px;padding:5px 9px;font-size:11px}
.b144-tabs{display:flex;border-bottom:1px solid var(--ui-line);overflow-x:auto;scrollbar-width:thin;gap:2px}
.b144-tabs button{flex:1 0 auto;min-height:39px;padding:8px 12px;border:1px solid var(--ui-border-strong);border-bottom:0;border-radius:4px 4px 0 0;background:var(--ui-panel);color:var(--ui-muted);font-size:12px;font-weight:700}
.b144-tabs button:hover{background:var(--ui-selected);color:var(--ui-text)}
.b144-tabs button.active{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text)}
.b144-scope{display:flex;gap:9px;align-items:center;padding:7px 10px;border:1px solid var(--ui-warning-line);background:var(--ui-warning-bg);border-radius:3px;color:var(--ui-warning);font-size:11px;line-height:1.4}
.b144-scope strong{white-space:nowrap;color:var(--ui-warning)}
.b144-notice{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 11px;background:var(--ui-subtle);border:1px solid var(--ui-line);border-radius:3px;color:var(--ui-text);font-size:12px}
.b144-notice button{border:0;background:transparent;color:var(--ui-text);font-size:19px;line-height:1}
.b144-page-body{min-width:0}
.b144-panel{background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:5px;padding:11px;color:var(--ui-text)}
.b144-panel h3,.b144-section-title h3,.b144-section-header h3{margin:0;color:var(--ui-text);font-size:15px}
.b144-panel p{margin:8px 0 11px;font-size:12px;line-height:1.5;color:var(--ui-muted)}
.b144-panel-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}
.b144-panel-head small{font-size:10px;color:var(--ui-muted)}
.b144-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}
.b144-section-title span{font-size:10px;color:var(--ui-muted)}
.b144-section-header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-panel);margin-bottom:8px}
.b144-section-header h3{font-size:17px;margin-top:2px}
.b144-section-header p{font-size:11px;color:var(--ui-muted);margin:4px 0 0}
.b144-tag{display:inline-block;border:1px solid var(--ui-line);border-radius:3px;background:var(--ui-subtle);color:var(--ui-accent);padding:3px 6px;font-size:10px;font-weight:700;white-space:nowrap}
.b144-tag.waiting{background:var(--ui-warning-bg);color:var(--ui-warning);border-color:var(--ui-warning-line)}
.b144-tag.empty{background:var(--ui-subtle);color:var(--ui-muted);border-color:var(--ui-line)}
.b144-tag.demo{background:var(--ui-subtle);color:var(--ui-accent);border-color:var(--ui-line)}
.b144-help{font-size:10px!important;color:var(--ui-muted)!important;line-height:1.45}
.b144-block-button{width:100%;margin-top:7px}
.b144-button-row{display:flex;gap:6px;flex-wrap:wrap}
.b144-button-row .button{flex:1}
.b144-segment{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--ui-line);background:var(--ui-subtle);border-radius:4px}
.b144-segment button{padding:5px 8px;border:0;border-radius:2px;background:transparent;color:var(--ui-muted);font-size:11px;font-weight:700}
.b144-segment button.active{background:var(--ui-selected);color:var(--ui-text)}
.b144-segment button:hover{color:var(--ui-text)}
.b144-field{display:grid;gap:5px;font-size:11px;color:var(--ui-muted);font-weight:700}
.b144-field textarea{width:100%;min-height:82px;padding:8px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:3px;resize:vertical;font-size:12px;line-height:1.5}
.b144-draft-panel .b144-segment{width:100%;margin-bottom:8px}
.b144-draft-panel .b144-segment button{flex:1}
.b144-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,235px) minmax(175px,205px);gap:9px;align-items:start}
.b144-overview-main,.b144-overview-side,.b144-overview-files,.b144-detail-side,.b144-history-side,.b144-closure-side,.b144-correction-side{display:grid;gap:8px;align-content:start;min-width:0}
.b144-three-days{display:grid;grid-template-columns:repeat(3,minmax(125px,1fr));gap:7px;overflow-x:auto;scrollbar-width:thin}
.b144-day{display:flex;flex-direction:column;min-width:0;min-height:374px;padding:9px;background:var(--ui-panel);border:1px solid var(--ui-line);border-radius:5px}
.b144-day.selected{border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.b144-day-head{display:flex;justify-content:space-between;align-items:start;gap:5px;padding-bottom:7px;border-bottom:1px solid var(--ui-line)}
.b144-day-head strong{display:block;font-size:14px;color:var(--ui-text)}
.b144-day-head small{display:block;font-size:10px;color:var(--ui-muted);margin-top:2px}
.b144-rows{margin:0}
.b144-rows>div{display:grid;grid-template-columns:38% minmax(0,1fr);gap:7px;padding:5px 0;border-bottom:1px solid var(--ui-line);font-size:11px;line-height:1.4}
.b144-rows>div:last-child{border-bottom:0}
.b144-rows dt{color:var(--ui-muted)}
.b144-rows dd{margin:0;color:var(--ui-text);overflow-wrap:anywhere}
.b144-day-open{width:100%;margin-top:auto;padding:6px!important}
.b144-warning-line{display:flex;gap:9px;padding:8px 10px;margin-top:8px;background:var(--ui-warning-bg);border:1px solid var(--ui-warning-line);border-radius:4px;color:var(--ui-warning);font-size:11px}
.b144-warning-line strong{white-space:nowrap}
.b144-overview-form,.b144-journey{margin-top:8px}
.b144-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--ui-line)}
.b144-form-grid>div{padding:8px;border-right:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);min-height:51px}
.b144-form-grid>div:nth-child(4n){border-right:0}
.b144-form-grid small,.b144-form-grid strong{display:block}
.b144-form-grid small{font-size:10px;color:var(--ui-muted)}
.b144-form-grid strong{font-size:11px;color:var(--ui-text);margin-top:3px;overflow-wrap:anywhere}
.b144-journey ol{display:flex;gap:6px;list-style:none;padding:0;margin:5px 0 0}
.b144-journey li{flex:1;padding:7px;border:1px solid var(--ui-line);background:var(--ui-panel);font-size:10px;text-align:center;color:var(--ui-text)}
.b144-compact-list>div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--ui-line);font-size:11px}
.b144-compact-list>div:last-child{border-bottom:0}
.b144-compact-list small{color:var(--ui-warning)}
.b144-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:8px;align-items:start}
.b144-detail-main{min-width:0}
.b144-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.b144-toolbar .b144-section-title{margin:0}
.b144-toolbar-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.b144-toolbar-actions .button{padding:5px 7px;font-size:10px}
.b144-toolbar-actions .b144-square{min-width:26px;height:27px}
.b144-zoom-value{width:36px;text-align:center;font-size:11px;color:var(--ui-muted)}
.b144-inline-check{display:flex;align-items:center;gap:3px;font-size:10px;color:var(--ui-muted)}
.b144-inline-check input{accent-color:var(--ui-accent)}
.b144-sheet-row{display:flex;gap:6px;min-width:0;overflow-x:auto;padding:1px 1px 7px;scrollbar-width:thin}
.b144-sheet{flex:1 0 190px;min-width:190px;max-width:440px;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:4px;overflow:hidden}
.b144-sheet-row.three .b144-sheet{flex:1 1 0;min-width:0}
.b144-sheet.selected{border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.b144-sheet-row.single .b144-sheet{flex:0 0 min(100%,620px);max-width:620px}
.b144-sheet-head,.b144-sheet-foot{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:6px;background:var(--ui-subtle);color:var(--ui-text);font-size:10px}
.b144-sheet-head strong{font-size:11px}
.b144-sheet-head .button{padding:4px 6px;font-size:10px}
.b144-sheet-scroller{height:clamp(180px,calc(100vh - 470px),615px);overflow:auto;background:var(--ui-subtle);text-align:center;scrollbar-width:thin}
.b144-sheet-scroller img{display:block;height:auto;max-width:none;user-select:none}
.b144-sheet-foot{background:var(--ui-subtle);color:var(--ui-muted)}
.b144-detail-bottom{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px;padding:8px;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:4px;font-size:10px}
.b144-detail-bottom strong{color:var(--ui-warning)}
.b144-detail-bottom span{flex:1;color:var(--ui-muted)}
.b144-detail-bottom>div{display:flex;gap:5px;flex-wrap:wrap}
.b144-detail-bottom .button{padding:5px 7px;font-size:10px}
.b144-metrics{display:flex;gap:5px;flex-wrap:wrap}
.b144-filterbar{display:flex;align-items:end;gap:6px;flex-wrap:wrap;padding:7px;margin-bottom:8px;background:var(--ui-panel);border:1px solid var(--ui-border-strong);border-radius:4px}
.b144-filterbar input[type=date]{width:128px}
.b144-filterbar select{min-width:105px}
.b144-filterbar .b144-search{flex:1;min-width:160px}
.b144-filterbar .b144-search input{width:100%}
.b144-correction-grid{display:grid;grid-template-columns:215px minmax(0,1fr) 194px;gap:8px;align-items:start}
.b144-correction-list,.b144-history-years,.b144-history-days,.b144-project-history{display:flex;flex-direction:column;min-height:350px}
.b144-list-scroll{overflow:auto;max-height:clamp(330px,calc(100vh - 300px),700px);min-height:0;scrollbar-width:thin}
.b144-list-scroll>button{display:grid;gap:4px;width:100%;padding:9px 8px;margin-bottom:4px;text-align:left;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-panel);color:var(--ui-text);font-size:11px}
.b144-list-scroll>button:hover,.b144-list-scroll>button.active{border-color:var(--ui-accent);background:var(--ui-selected)}
.b144-list-scroll>button strong{font-size:12px;color:var(--ui-text)}
.b144-list-scroll>button span,.b144-list-scroll>button small{color:var(--ui-muted);font-size:10px}
.b144-correction-detail{display:grid;gap:8px;align-content:start;min-width:0}
.b144-correction-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.b144-correction-title small{font-size:10px;color:var(--ui-muted)}
.b144-correction-title h3{margin-top:4px}
.b144-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.b144-evidence-grid>div{padding:8px;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:3px}
.b144-evidence-grid small{font-size:10px;color:var(--ui-muted)}
.b144-evidence-grid p{font-size:12px;color:var(--ui-text)}
.b144-quote{padding:8px;border-left:3px solid var(--ui-warning-line);background:var(--ui-warning-bg);color:var(--ui-warning)!important}
.b144-table-wrap{overflow-x:auto}
.b144-table{width:100%;min-width:420px;border-collapse:collapse;font-size:11px}
.b144-table th,.b144-table td{padding:8px;border:1px solid var(--ui-line);text-align:left}
.b144-table th{background:var(--ui-subtle);color:var(--ui-text)}
.b144-table td.before{background:var(--ui-danger-bg);color:var(--ui-danger)}
.b144-table td.after{background:var(--ui-success-bg);color:var(--ui-success)}
.b144-timeline{margin:0;padding-left:20px;font-size:11px;color:var(--ui-muted);line-height:1.7}
.b144-empty-panel{min-height:210px}
.b144-history-grid{display:grid;grid-template-columns:180px minmax(0,1fr) 190px;gap:8px;align-items:start}
.b144-history-center{display:grid;gap:8px;min-width:0}
.b144-history-lower{display:grid;grid-template-columns:175px minmax(0,1fr);gap:8px;min-width:0}
.b144-history-years .b144-list-scroll>strong{display:block;margin-bottom:7px}
.b144-history-preview{min-width:0}
.b144-preview-frame{height:clamp(335px,calc(100vh - 350px),620px);overflow:auto;background:var(--ui-subtle);text-align:center}
.b144-preview-frame img{display:block;width:min(100%,480px);height:auto;margin:auto}
.b144-preview-frame.b144-fit-page{height:clamp(220px,calc(100vh - 740px),500px)}
.b144-preview-frame.b144-fit-page img{width:auto;max-width:100%;height:100%;max-height:100%;object-fit:contain}
.b144-preview-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;padding-top:7px;font-size:10px;color:var(--ui-muted)}
.b144-history-side .button{margin-top:5px}
.b144-closure-grid{display:grid;grid-template-columns:190px minmax(0,1fr) 190px;gap:8px;align-items:start}
.b144-closure-main{display:grid;gap:8px;min-width:0}
.b144-closure-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.b144-history-tree{display:grid;gap:5px;margin-top:9px}
.b144-history-tree>span{font-size:11px;color:var(--ui-muted)}
.b144-history-tree>button{padding:6px;border:0;border-left:2px solid var(--ui-border-strong);background:var(--ui-panel);color:var(--ui-text);text-align:left;font-size:10px}
.b144-history-links{display:grid;gap:5px;margin-top:auto}
.b144-part-list{display:grid;gap:6px;margin:10px 0}
.b144-part-list label{display:flex;gap:6px;align-items:center;color:var(--ui-muted);font-size:11px}
.b144-part-list input{accent-color:var(--ui-accent)}
.b144-milestones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.b144-milestones>div{padding:8px;border:1px solid var(--ui-line);background:var(--ui-panel);font-size:11px}
.b144-milestones b{display:block;color:var(--ui-accent);margin-bottom:3px}
.b144-checklist{margin:0 0 8px;padding-left:17px;color:var(--ui-muted);font-size:11px;line-height:1.8}
@media(max-width:1250px){
  .b144-correction-grid{grid-template-columns:200px minmax(0,1fr)}
  .b144-correction-side{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .b144-history-grid{grid-template-columns:170px minmax(0,1fr)}
  .b144-history-side{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .b144-closure-grid{grid-template-columns:180px minmax(0,1fr)}
  .b144-closure-side{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1300px){
  .b144-module{grid-template-columns:145px minmax(0,1fr);gap:8px}
  .b144-overview-grid{grid-template-columns:minmax(0,1fr) 205px}
  .b144-overview-files{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr))}
  .b144-detail-grid{grid-template-columns:minmax(0,1fr) 205px}
  .b144-day{min-height:350px}
  .b144-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .b144-form-grid>div:nth-child(4n){border-right:1px solid var(--ui-line)}
  .b144-form-grid>div:nth-child(2n){border-right:0}
}
@media(max-width:1150px){
  .b144-module{grid-template-columns:132px minmax(0,1fr)}
  .b144-area-list button{padding:8px 5px;font-size:11px}
  .b144-three-days{overflow-x:auto;grid-template-columns:repeat(3,minmax(125px,1fr))}
  .b144-closure-cards{grid-template-columns:1fr}
}
.b144-report-entry{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px;margin-bottom:10px;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:4px;font-size:12px}
.b144-report-entry strong{color:var(--ui-text);font-size:15px}
.b144-report-entry span{flex:1;min-width:150px;color:var(--ui-muted)}
.b144-required-archive label{align-items:flex-start;line-height:1.4}
.b144-required-archive input:disabled{opacity:1;flex:none;margin-top:2px}
.b144-required-archive small{margin-left:auto;flex:none;color:var(--ui-accent)}
.b144-overview-side,.b144-overview-files,.b144-detail-side{max-height:calc(100vh - 285px);overflow-y:auto;padding-right:2px;scrollbar-width:thin}
.b144-scope{flex-wrap:wrap}
.b144-journey ol{flex-wrap:wrap}
.b144-journey li{flex:1 0 80px}
.b144-header input[type=date],.b144-filterbar input[type=date]{color-scheme:light}
@media(max-width:950px){
  .b144-overview-grid,.b144-detail-grid{grid-template-columns:minmax(0,1fr)}
  .b144-overview-side,.b144-detail-side{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}
  .b144-overview-files{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}
  .b144-area-nav{min-height:350px}
}
.b14t-root{display:grid;gap:8px;min-width:0}
.b14t-panel{min-width:0}
.b14t-panel .b144-button-row{margin-top:7px}
.b14t-select,.b14t-form label,.b14t-fields label{display:grid;gap:4px;color:var(--ui-muted);font-size:10px;font-weight:700}
.b14t-select{margin-top:9px}
.b14t-select select,.b14t-form input,.b14t-form select,.b14t-fields input{
  width:100%;height:31px;border:1px solid var(--ui-border-strong);border-radius:3px;background:var(--ui-panel);color:var(--ui-text);padding:5px 7px;font-size:11px
}
.b14t-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}
.b14t-form{display:grid;gap:8px;margin:9px 0}
.b14t-saved-text{max-height:150px;overflow:auto;overflow-wrap:anywhere;padding:7px;border:1px solid var(--ui-line);background:var(--ui-panel);color:var(--ui-text)!important}
.b14t-saved-text strong{display:block;margin-bottom:4px;font-size:11px}
.b14t-root .b14t-panel .button,.b14t-root .b144-detail-bottom .button{min-height:32px;font-size:11px}
.b14t-version{display:grid;gap:5px;padding:8px;margin-top:7px;border:1px solid var(--ui-line);background:var(--ui-panel);color:var(--ui-text);font-size:11px}
.b14t-version span,.b14t-version small{color:var(--ui-muted);overflow-wrap:anywhere}
.b14t-raw{margin-top:8px;font-size:11px;color:var(--ui-muted)}
.b14t-raw summary{cursor:pointer}
.b14t-raw pre{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:7px;background:var(--ui-subtle);border:1px solid var(--ui-line);color:var(--ui-text);font-size:10px}
.b14t-root button:disabled{opacity:.55;cursor:not-allowed}

/* Production original-form editor uses the existing report cards. */
.b14l-editor summary{cursor:pointer;font-weight:700;padding:8px 0}.b14l-editor section{margin:16px 0}.b14l-editor table input{min-width:72px;width:100%;box-sizing:border-box}.b14l-editor textarea{min-height:80px}.b14l-editor .b14t-fields{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:10px}.b14l-editor input,.b14l-editor select,.b14l-editor textarea{background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:4px;padding:8px;box-sizing:border-box}.b14l-editor .b144-table-wrap{overflow:auto}.b14l-editor table{min-width:600px}@media(max-width:1100px){.b14l-editor .b14t-fields{grid-template-columns:repeat(2,minmax(120px,1fr))}}

body.b144-journal-active .demo-banner,body.b144-journal-active .demo-pill{display:none}

/* Report history controls. */
.b144-month-list button{min-height:31px;padding:5px 7px;border:1px solid var(--ui-border-strong);border-radius:3px;background:var(--ui-panel);color:var(--ui-muted);font-size:11px;font-weight:700}
.b144-month-list button:hover{background:var(--ui-selected);color:var(--ui-text)}
.b144-month-list button.active{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text)}
.b144-month-nav input[data-b14l-change="year"]{max-width:100%;height:33px;box-sizing:border-box;border:1px solid var(--ui-border-strong);border-radius:3px;background:var(--ui-panel);color:var(--ui-text);padding:5px 8px;font-size:12px;color-scheme:light}
.b14l-month-completeness dd{min-width:0;white-space:normal;overflow-wrap:anywhere}
.b144-analysis .b144-panel{max-width:none}.b144-analysis .b144-table-wrap{max-height:calc(100vh - 410px);overflow:auto}.b144-analysis .b144-header-controls input[type=date]{width:135px}.b144-analysis .b144-table td{overflow-wrap:anywhere}
body:has(.b144-analysis) .demo-banner,body:has(.b144-analysis) .demo-pill{display:none}

/* 2026-10-14 reference: one shared entry, compact comparison, ordered tools. */
.b144-reference-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.b144-reference-toolbar .b144-tabs{flex:1 1 520px;margin:0;border-bottom:0;gap:3px}
.b144-reference-toolbar .b144-tabs button{min-height:41px;padding:9px 10px;font-size:12px;border-bottom:1px solid var(--ui-border-strong);border-radius:4px;flex:1 0 auto}
.b144-reference-context{display:flex;gap:8px;align-items:center;flex:0 1 auto;flex-wrap:wrap}
.b144-reference-context>label:not(.b144-calendar-control){display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ui-muted);white-space:nowrap}
.b144-reference-context select{height:41px;min-width:155px;max-width:225px;padding:7px 10px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:4px;font-size:12px}
.b144-reference-context>.button{height:41px;min-width:128px;padding:8px 12px;font-size:13px;background:var(--ui-panel);border-color:var(--ui-border-strong)}
.b144-calendar-control{position:relative;display:flex;align-items:center;justify-content:center;width:41px;height:41px;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-panel);overflow:hidden;color:var(--ui-text);font-size:25px}
.b144-calendar-control input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;color-scheme:light}
.b144-calendar-control input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.b144-reference-layout{display:grid;grid-template-columns:minmax(0,1fr) 238px;gap:12px;align-items:start}
.b144-reference-main{display:grid;gap:12px;min-width:0;align-content:start}
.b144-reference-top{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(230px,1fr);gap:10px;align-items:stretch}
.b144-reference-tools{display:grid;gap:12px;align-content:start;min-width:0}
.b144-reference-layout .b144-panel{background:var(--ui-panel);border-color:var(--ui-line);border-radius:6px;padding:12px}
.b144-reference-layout .b144-panel h3{font-size:18px;line-height:1.4}
.b144-reference-layout .b144-panel p{font-size:13px;line-height:1.6}
.b144-reference-layout .b144-help{font-size:12px!important;line-height:1.55;color:var(--ui-muted)!important}
.b144-reference-layout .b144-tag{font-size:12px;padding:4px 8px}
.b144-reference-layout .button{min-height:36px;font-size:13px;padding:7px 11px;line-height:1.35}
.b144-reference-tools .b144-panel{border-color:var(--ui-line);padding:14px 12px}
.b144-reference-tools .b144-panel h3{display:flex;align-items:center;gap:9px;font-size:18px}
.b144-reference-tools .b144-panel h3::before{content:'▤';font-size:29px;line-height:1.1;color:var(--ui-accent)}
.b144-reference-tools .b144-panel:nth-child(2) h3::before{content:'▱'}
.b144-reference-tools .b144-panel:nth-child(3) h3::before{content:'☷'}
.b144-reference-tools .b144-panel:nth-child(4) h3::before{content:'↶'}
.b144-reference-tools .b144-panel p{min-height:44px;margin:10px 0 12px;color:var(--ui-text)}
.b144-reference-tools .b144-panel .button{width:100%;border-color:var(--ui-border-strong)}
.b144-reference-tools .b144-panel .button::after{content:' ›';font-size:20px;margin-left:8px}
.b144-compare-panel .b144-panel-head,.b144-selected-summary .b144-panel-head{margin-bottom:5px}
.b144-compare-panel .b144-table-wrap{overflow:auto}
.b144-compare-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.45}
.b144-compare-table th,.b144-compare-table td{padding:6px 7px;border:1px solid var(--ui-line);text-align:left;vertical-align:top}
.b144-compare-table th{background:var(--ui-subtle);font-weight:700;color:var(--ui-text);white-space:nowrap}
.b144-compare-table td{color:var(--ui-text)}
.b144-compare-table td:nth-child(1),.b144-compare-table td:nth-child(2){white-space:nowrap}
.b144-compare-table td:nth-child(5){max-width:220px;overflow-wrap:anywhere}
.b144-compare-panel .b144-block-button{margin-top:10px}
.b144-reference-layout .b144-rows>div{font-size:12px;padding:5px 0;grid-template-columns:33% minmax(0,1fr)}
.b144-reference-layout .b144-rows dt{color:var(--ui-muted)}
.b144-selected-summary .b144-button-row,.b144-selected-summary>.button{margin-top:6px}
.b144-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.b144-entry-heading>div:first-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.b144-entry-heading p{margin:0!important;font-size:12px!important;color:var(--ui-muted)}
.b144-entry-modes button{font-size:12px;padding:6px 10px;min-height:32px}
.b144-entry-panel .b144-field{color:var(--ui-text);font-size:13px;font-weight:600}
.b144-entry-basics{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:16px;align-items:center;margin-bottom:12px}
.b144-entry-name,.b144-entry-date{display:grid!important;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:10px!important}
.b144-entry-panel input,.b144-entry-panel select{box-sizing:border-box;width:100%;min-height:38px;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-panel);color:var(--ui-text);padding:7px 10px;font-size:13px;color-scheme:light}
.b144-entry-report-mode{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.b144-entry-report-mode>strong{width:80px;font-size:13px;color:var(--ui-text)}
.b144-entry-report-mode .b144-segment{padding:0;border:0;gap:4px}
.b144-entry-report-mode .b144-segment button{min-width:130px;min-height:39px;padding:7px 12px;border:1px solid var(--ui-border-strong);background:var(--ui-subtle);color:var(--ui-text);font-size:13px;border-radius:4px}
.b144-entry-report-mode .b144-segment button.active{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text)}
.b144-entry-voice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto;font-size:12px;color:var(--ui-muted)}
.b144-entry-voice>.button{min-height:39px;min-width:175px}
.b144-entry-text{position:relative;display:grid!important;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:10px!important;margin-bottom:12px}
.b144-entry-text textarea{box-sizing:border-box;width:100%;min-height:125px;padding:10px 12px 30px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:4px;font-size:14px;line-height:1.65;resize:vertical;overflow-wrap:anywhere}
.b144-entry-count{position:absolute;right:10px;bottom:8px;color:var(--ui-text);font-size:12px;font-weight:400;pointer-events:none}
.b144-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.b144-entry-source-link{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:5px;color:var(--ui-accent);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.b144-entry-save-buttons{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-left:auto}
.b144-entry-save-buttons>.button.primary{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent);font-size:13px}
.b144-entry-save-buttons>.button.secondary{border-color:var(--ui-border-strong);background:var(--ui-panel);color:var(--ui-text)}
.b144-entry-save-buttons>.button:disabled{opacity:.55;cursor:not-allowed}
.b144-entry-state{margin-top:8px;line-height:1.5;color:var(--ui-muted);font-size:12px}
.b144-entry-state strong{color:var(--ui-text)}
.b144-reference-context .b144-resume-entry{min-height:34px;padding:5px 8px;font-size:12px;white-space:normal}
.b144-flow-warning{color:var(--ui-warning)!important}
.b144-confirmation-check .b144-field{margin:8px 0}
.b144-confirmation-check select,.b144-confirmation-check input{box-sizing:border-box;width:100%;min-height:36px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:4px;padding:7px;font-size:13px}
.b144-supersession{margin-top:12px;border-top:1px solid var(--ui-line);padding-top:10px}
.b144-supersession summary{cursor:pointer;color:var(--ui-accent);font-weight:600}
.b144-supersede-choice{display:flex;align-items:flex-start;gap:8px;margin:10px 0;padding:8px;border:1px solid var(--ui-line);border-radius:4px}
.b144-confirmation-check .b144-supersede-choice input{width:18px;min-height:18px;margin:2px 0;flex:0 0 18px}
.b144-supersede-choice span{min-width:0;overflow-wrap:anywhere}.b144-supersede-choice small{display:block;margin-top:5px;color:var(--ui-muted)}
.b14l-pdf-sources{margin-top:8px;min-width:0}.b14l-pdf-sources summary{cursor:pointer;color:var(--ui-accent)}.b14l-pdf-sources>div{margin-top:8px;padding:8px;border:1px solid var(--ui-line);border-radius:4px;overflow-wrap:anywhere}.b14l-pdf-sources p{margin:0 0 6px}
.b144-entry-source{padding:10px;margin-top:10px;border:1px solid var(--ui-line);background:var(--ui-panel);border-radius:4px}
.b144-entry-error,.b144-entry-limit{margin:8px 0!important;padding:8px;background:var(--ui-danger-bg);border:1px solid var(--ui-danger-line);border-radius:4px;color:var(--ui-danger)!important;font-size:13px!important}
.b144-entry-limit[hidden]{display:none}
.b144-duplicate-hint{display:grid;gap:7px;padding:9px;margin:0 0 10px;border:1px solid var(--ui-warning-line);border-radius:4px;background:var(--ui-panel);color:var(--ui-warning);font-size:12px}
.b144-duplicate-hint>div{display:flex;gap:7px;flex-wrap:wrap}
.b144-reference-ai .b144-panel-head{flex-wrap:wrap}
.b144-reference-ai .b144-button-row{margin-left:auto}
.b144-reference-ai textarea{min-height:72px;font-size:13px!important;line-height:1.6}
.b144-reference-ai .b14t-raw summary{font-size:12px;color:var(--ui-accent)}
.b144-reference-main .b144-signature-panel{min-width:0}
.b144-reference-layout details .b144-three-days{grid-template-columns:repeat(3,minmax(180px,1fr));overflow:auto}
.b144-reference-layout details .b144-day{min-height:0}
.b144-three-day-expand{margin-top:9px}
.b144-three-day-expand>summary{padding:8px;border:1px solid var(--ui-line);border-radius:4px;background:var(--ui-panel);color:var(--ui-accent);text-align:center;cursor:pointer;font-size:12px;font-weight:600}
.b144-three-day-expand[open]>.b144-three-days{margin-top:9px}
.b144-selected-summary>.button{width:100%}
.b144-review-fields{margin:10px 0;border-top:1px solid var(--ui-line);padding-top:8px}
.b144-review-fields summary{font-size:13px;color:var(--ui-accent);cursor:pointer}
.b144-review-fields input{width:100%;box-sizing:border-box;min-height:35px;border:1px solid var(--ui-border-strong);border-radius:4px;background:var(--ui-panel);color:var(--ui-text);padding:7px;font-size:13px}
.b144-review-fields .b14t-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.b144-reference-layout .b14l-signature-panel{display:grid;grid-template-columns:minmax(205px,.9fr) minmax(0,1.6fr);gap:8px 15px;align-items:start}
.b144-reference-layout .b14l-signature-panel>.b144-panel-head{grid-column:1/-1}
.b144-reference-layout .b14l-signature-panel>.b144-field{grid-column:1;font-size:13px;color:var(--ui-text)}
.b144-reference-layout .b14l-signature-panel>.b144-field:nth-of-type(1){grid-row:2}
.b144-reference-layout .b14l-signature-panel>.b144-field:nth-of-type(2){grid-row:3}
.b144-reference-layout .b14l-signature-panel>.b144-field input{width:100%;box-sizing:border-box;min-height:37px;padding:8px;background:var(--ui-panel);color:var(--ui-text);border:1px solid var(--ui-border-strong);border-radius:4px;font-size:14px}
.b144-reference-layout .b14l-signature-panel>.b144-help{grid-column:1;grid-row:4;margin:0}
.b144-reference-layout .b14l-signature-panel>.button{grid-column:1;grid-row:5}
.b144-reference-layout .b14l-signature-panel>.b14s-panel{grid-column:2;grid-row:2/6;border:0;border-left:1px solid var(--ui-line);border-radius:0;padding:0 0 0 15px;background:transparent}
.b144-reference-layout .b14l-signature-panel>.b14s-panel h3{font-size:15px}
.b144-reference-layout .b14s-entry-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.b144-reference-layout .b14s-entry-buttons .button{flex:1 1 100px;margin:0}
.b144-reference-layout .b14s-selected-preview{min-height:60px;font-size:12px;color:var(--ui-muted)}
@media(max-width:1450px){
  .b144-reference-toolbar{gap:7px}
  .b144-reference-toolbar .b144-tabs{flex:1 1 460px}
  .b144-reference-toolbar .b144-tabs button{font-size:11px;padding:8px 7px}
  .b144-reference-context{gap:6px}
  .b144-reference-context>label:not(.b144-calendar-control){font-size:11px;gap:6px}
  .b144-reference-context select{min-width:140px;max-width:175px}
  .b144-reference-context>.button{min-width:115px;font-size:12px;padding:8px}
  .b144-reference-layout{grid-template-columns:minmax(0,1fr) 215px;gap:10px}
  .b144-reference-top{grid-template-columns:minmax(0,1.65fr) minmax(210px,1fr);gap:8px}
  .b144-entry-basics{grid-template-columns:minmax(0,1fr) 215px;gap:10px}
  .b144-entry-heading>div:first-child{display:block}
  .b144-entry-heading p{margin-top:2px!important}
  .b144-entry-report-mode .b144-segment button{min-width:115px}
  .b144-entry-voice{margin-left:90px}
}
@media(max-width:1200px){
  .b144-reference-toolbar .b144-tabs{flex-basis:100%}
  .b144-reference-context{width:100%;min-width:0;flex:1 1 100%;flex-wrap:wrap;justify-content:flex-end}
  .b144-reference-context>label:not(.b144-calendar-control){flex:0 0 auto;max-width:100%;flex-wrap:wrap;white-space:nowrap}
  .b144-reference-context select{flex:0 0 200px;width:200px;min-width:180px;max-width:100%;box-sizing:border-box}
  .b144-reference-context>.b144-calendar-control{flex:0 0 41px;box-sizing:border-box}
  .b144-reference-context>.button{flex:0 0 auto}
  .b144-reference-top{grid-template-columns:minmax(0,1fr)}
  .b144-entry-basics{grid-template-columns:minmax(0,1fr)}
  .b144-entry-text{grid-template-columns:minmax(0,1fr)}
  .b144-entry-text textarea{min-height:145px}
  .b144-entry-voice{margin-left:0;width:100%}
  .b144-reference-layout .b144-panel h3{font-size:17px}
  .b144-reference-layout .b14l-signature-panel{grid-template-columns:minmax(0,1fr)}
  .b144-reference-layout .b14l-signature-panel>.b14s-panel{grid-column:1;grid-row:6;border-left:0;border-top:1px solid var(--ui-line);padding:10px 0 0}
  .b144-reference-toolbar .b144-tabs{overflow-x:auto}
}
@media(max-width:1100px){
  .b144-reference-layout{grid-template-columns:minmax(0,1fr)}
  .b144-reference-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .b144-reference-context{justify-content:flex-start}
  .b144-reference-toolbar .b144-tabs button{font-size:12px;padding:9px}
  .b144-entry-name,.b144-entry-date{grid-template-columns:80px minmax(0,1fr)}
  .b144-entry-save-buttons{margin-left:0;width:100%}
  .b144-entry-save-buttons>.button{flex:1 1 130px}
}
@media(max-width:760px){
  .b144-reference-tools{grid-template-columns:minmax(0,1fr)}
  .b144-reference-context>label:not(.b144-calendar-control){flex-basis:100%;display:grid}
  .b144-entry-name,.b144-entry-date{grid-template-columns:minmax(0,1fr)}
  .b144-entry-report-mode>strong{width:100%}
  .b144-entry-modes{width:100%}
  .b144-entry-modes button{flex:1}
}

/* 2026-10-15: one-screen workflow for wide desktop work areas. */
@media (min-width:1800px) and (min-height:940px){
  .b144-reference-main{
    grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
    grid-template-areas:"overview overview" "entry review" "signature signature";
    gap:8px;
  }
  .b144-reference-main>.b144-reference-top{grid-area:overview;gap:8px}
  .b144-reference-top .b144-rows>div{padding:3px 0}
  .b144-reference-main>.b144-entry-panel{grid-area:entry;padding:10px}
  .b144-reference-main>.b144-reference-ai{grid-area:review;padding:10px}
  .b144-reference-main>.b14l-signature-panel{grid-area:signature;padding:9px 12px}
  .b144-reference-layout .b144-panel{padding:10px}
  .b144-reference-tools{gap:8px}
  .b144-reference-tools .b144-panel{padding:10px}
  .b144-reference-tools .b144-panel p{min-height:32px;margin:6px 0 8px}
  .b144-entry-heading{margin-bottom:6px}
  .b144-entry-basics{gap:10px;margin-bottom:7px}
  .b144-entry-report-mode{margin-bottom:6px}
  .b144-entry-text{margin-bottom:8px}
  .b144-entry-text textarea{min-height:96px;height:104px}
  .b144-entry-source-link{font-size:12px}
  .b144-entry-save-buttons{gap:5px}
  .b144-reference-ai .b144-panel-head{margin-bottom:4px}
  .b144-reference-ai .b144-panel-head h3{font-size:16px}
  .b144-reference-ai .b144-panel-head .b144-button-row{gap:5px}
  .b144-reference-ai .button{min-height:32px;font-size:12px;padding:5px 8px}
  .b144-reference-ai>p{margin:5px 0 7px}
  .b144-reference-ai>.b144-field{gap:4px}
  .b144-reference-ai textarea{min-height:64px;height:72px}
  .b144-reference-ai .b144-review-fields,.b144-reference-ai .b14t-raw{margin-top:6px}
  .b144-reference-ai [data-b144-tab="corrections"]{margin-top:7px}
  .b144-reference-layout .b14l-signature-panel{
    grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);
    gap:4px 14px;
  }
  .b144-reference-layout .b14l-signature-panel>.b144-panel-head{grid-column:1/-1;margin-bottom:0}
  .b144-reference-layout .b14l-signature-panel>.b144-field{gap:2px!important;font-size:12px}
  .b144-reference-layout .b14l-signature-panel>.b144-field:nth-of-type(1){grid-column:1;grid-row:2}
  .b144-reference-layout .b14l-signature-panel>.b144-field:nth-of-type(2){grid-column:1;grid-row:3}
  .b144-reference-layout .b14l-signature-panel>.b144-field input{min-height:32px;padding:5px 8px}
  .b144-reference-layout .b14l-signature-panel>.b144-help{grid-column:1;grid-row:4;font-size:10px;line-height:1.3;margin:0}
  .b144-reference-layout .b14l-signature-panel>.button{grid-column:1;grid-row:5;align-self:start}
  .b144-reference-layout .b14l-signature-panel>.button{min-height:32px;padding:5px 8px;font-size:12px}
  .b144-reference-layout .b14l-signature-panel>.b14s-panel{grid-column:2;grid-row:2/6}
  .b144-reference-layout .b14s-panel h3{font-size:14px}
  .b144-reference-layout .b14s-selected-preview{min-height:34px;padding:6px;margin:5px 0;font-size:11px}
  .b144-reference-layout .b14s-entry-buttons{margin-top:5px}
  .b144-reference-layout .b14s-entry-buttons .button{min-height:32px;padding:5px 8px;font-size:12px}
  /* Expanded evidence and review fields open above the overview instead of pushing it down. */
  .b144-reference-main .b144-three-day-expand[open],
  .b144-reference-ai .b144-review-fields[open],
  .b144-reference-ai .b14t-raw[open]{
    position:fixed;z-index:40;inset:12vh 15vw auto;
    max-height:76vh;overflow:auto;padding:16px;
    border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-panel);
    box-shadow:0 18px 54px rgba(0,0,0,.6);
  }
  body.b144-journal-active:has(.b144-reference-layout .b144-reference-main .b144-three-day-expand[open])::after,
  body.b144-journal-active:has(.b144-reference-layout .b144-reference-ai .b144-review-fields[open])::after,
  body.b144-journal-active:has(.b144-reference-layout .b144-reference-ai .b14t-raw[open])::after{
    content:"";position:fixed;inset:0;z-index:39;
    background:var(--ui-panel);pointer-events:auto;
  }
  .b144-reference-main .b144-three-day-expand[open]>summary,
  .b144-reference-ai .b144-review-fields[open]>summary,
  .b144-reference-ai .b14t-raw[open]>summary{
    position:sticky;top:-16px;z-index:1;background:var(--ui-panel);padding:10px 0;
  }
  .b144-reference-main .b144-three-day-expand[open]>summary::after,
  .b144-reference-ai .b144-review-fields[open]>summary::after,
  .b144-reference-ai .b14t-raw[open]>summary::after{
    content:'　收合 ×';float:right;font-size:13px;color:var(--ui-accent);
  }
}
