:root{--paper:#f5f4ef;--white:#fffefb;--ink:#263c35;--muted:#768078;--green:#184b40;--light:#eaf0e8;--line:#e1e4da;--gold:#956a33;--warm:#f5edde;--danger:#9c433c;--shadow:0 12px 35px #263c350a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--green)}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7da89b;outline-offset:3px}button{border:0;background:none}a{text-decoration:none}a:hover{text-decoration:underline}.masthead{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--white);gap:20px}.brand{display:flex;align-items:center;gap:15px;font:25px Georgia,serif;letter-spacing:-.5px;color:var(--green)}.brand:hover{text-decoration:none}.brand-symbol{display:grid;place-items:center;width:40px;height:40px;border:1px solid #b6c5b4;border-radius:50%;font-size:34px;padding-bottom:5px}.brand small{display:block;font:11px ui-sans-serif,system-ui;letter-spacing:.7px;margin-top:5px;color:var(--muted)}.masthead-right{display:flex;align-items:center;gap:26px;font-size:12px}.masthead-right #stats{color:var(--muted)}.quiet-link{font-weight:600}.quiet-button{border:1px solid var(--line);border-radius:6px;padding:8px 12px;background:var(--white)}.quiet-button:hover{background:var(--light)}.app-shell{display:grid;grid-template-columns:280px minmax(0,1fr);height:calc(100dvh - 84px)}.sidebar{display:flex;flex-direction:column;border-right:1px solid var(--line);padding:24px 17px 0;background:#f9f9f3;min-height:0}.nav-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);margin:0 6px 22px}.nav-tabs button{padding:4px 0 14px;color:var(--muted);border-bottom:2px solid transparent}.nav-tabs button[aria-selected=true]{color:var(--green);border-bottom-color:var(--green);font-weight:600}.search-wrap{display:flex;gap:8px;align-items:center;background:var(--white);border:1px solid var(--line);padding:9px 11px;border-radius:7px}.search-wrap>span{font-size:20px;line-height:16px;color:var(--muted)}.search-wrap input{width:100%;min-width:0;border:none;background:none;font-size:12px;padding:2px 0;outline:none}.search-wrap kbd{font-size:10px;border:1px solid var(--line);border-radius:3px;padding:1px 4px;color:var(--muted)}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 6px 10px;font-size:10px;letter-spacing:.8px;color:var(--muted);text-transform:uppercase}.text-button{padding:3px 0;color:var(--green);font-size:11px;letter-spacing:0;text-transform:none;font-weight:600}.text-button:hover{text-decoration:underline}.record-list{overflow-y:auto;flex:1;scrollbar-width:thin;padding:3px 0 14px}.record-item{display:block;text-align:left;width:100%;padding:12px 12px;border:1px solid transparent;border-radius:7px;margin-bottom:3px;position:relative}.record-item:hover{background:#eff1e9}.record-item.selected{background:#e5ede3;border-color:#d2dfcd}.record-item.selected:before{position:absolute;content:"";top:15px;bottom:15px;left:-1px;width:3px;background:var(--green);border-radius:2px}.record-item strong{display:block;font-size:12px;line-height:1.5;font-weight:500}.record-item small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.sidebar-footer{padding:17px 5px;border-top:1px solid var(--line);display:flex;gap:8px;font-size:10px;color:var(--muted);align-items:center}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#658a66}.muted{color:var(--muted)}main{overflow:auto;padding:29px 34px 48px;scrollbar-width:thin}.page-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:10px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:var(--muted);font-weight:600}.breadcrumbs{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center}.breadcrumbs button{padding:0;font-size:11px;color:var(--green)}.title-row{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin-bottom:18px}h1{font:35px/1.18 Georgia,"Times New Roman",serif;font-weight:normal;letter-spacing:-.65px;margin:0 0 10px;color:var(--green)}.subtitle{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.heading-actions{display:flex;gap:8px;flex-shrink:0}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:500;background:var(--light);color:var(--green);line-height:1.3}.pill.pending{background:var(--warm);color:var(--gold)}.pill.neutral{background:#efeee8;color:#77796d}.pill.no{color:#666e67;background:#eff0eb}.pill.dot:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%}.concept-layout{display:grid;grid-template-columns:minmax(0,1fr) 244px;gap:24px;align-items:start}.graph-panel{background:var(--white);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.panel-topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.panel-topbar strong{color:var(--ink);font-size:12px;font-weight:500}.graph{position:relative;padding:24px 22px 27px;background-image:radial-gradient(#c4cec151 .8px,transparent .8px);background-size:17px 17px}.connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}.graph-section{position:relative;z-index:1}.section-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:1.25px;text-transform:uppercase;color:var(--muted);margin-bottom:13px}.section-label .counter{font-size:9px;border:1px solid var(--line);border-radius:10px;padding:1px 6px;letter-spacing:0;margin-left:5px}.node-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.graph-node{background:var(--white);border:1px solid #d9dfd2;border-radius:7px;position:relative;min-width:0;box-shadow:0 2px 5px #142b1703;transition:background .1s,border-color .1s}.graph-node:hover{background:#f3f6ee;border-color:#9fb69c}.node-main{display:block;width:100%;text-align:left;padding:13px 16px 12px}.node-main strong{font-size:12px;line-height:1.45;display:block;font-weight:500;padding-right:4px}.node-main small{font-size:9px;color:var(--muted);display:block;margin-top:6px;text-transform:capitalize}.remove-link{position:absolute;top:4px;right:4px;width:20px;height:20px;color:#969e91;font-size:14px;opacity:0;z-index:2}.graph-node:hover .remove-link,.remove-link:focus-visible{opacity:1}.remove-link:hover{color:var(--danger)}.focus-wrap{position:relative;z-index:1;padding:42px 0;max-width:540px;margin:0 auto}.focus-node{background:var(--green);border:1px solid var(--green);border-radius:9px;padding:23px 26px;color:#fbfcf8;box-shadow:0 8px 18px #193d2812}.focus-node .eyebrow{color:#a9c5b7;font-size:9px;letter-spacing:1.6px}.focus-node h2{font:25px/1.2 Georgia,serif;margin:10px 0 12px;font-weight:normal}.focus-node p{font-size:12px;line-height:1.8;margin:0;color:#e2ece3}.focus-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:18px;padding-top:12px;border-top:1px solid #ffffff25;font-size:10px;color:#c2d4c7}.focus-foot button{color:#e5eee6;font-size:10px;text-decoration:underline;padding:0}.graph-empty{font-size:11px;line-height:1.7;color:var(--muted);padding:12px 0;max-width:340px}.graph-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;padding:14px 20px;font-size:10px;color:var(--muted)}.graph-footer .legend-arrow{color:var(--green);font-weight:bold;margin-right:5px}.more-button{display:block;margin:12px auto 0;color:var(--green);font-size:11px;background:var(--white);border:1px solid var(--line);border-radius:5px;padding:5px 10px}.context-block{border-top:1px solid var(--line);padding-top:15px;margin-top:22px}.context-block:first-child{margin-top:0}.context-title{font-size:10px;text-transform:uppercase;letter-spacing:1.25px;font-weight:600;margin:0 0 13px;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.source-card{border:1px solid var(--line);border-radius:7px;background:#fafbf6;padding:13px 14px;margin:0 0 9px;display:block;width:100%;text-align:left}.source-card:hover{border-color:#a9bca3;background:#f1f5eb}.source-card strong{font-size:12px;line-height:1.55;font-weight:500;display:block}.source-card small{font-size:10px;color:var(--muted);display:block;margin-top:8px;line-height:1.5}.context-empty{font-size:11px;line-height:1.75;color:var(--muted);margin:0}.context-link{display:block;padding:7px 0;font-size:12px;line-height:1.5;text-align:left;color:var(--green);width:100%}.context-link span{font-size:10px;display:block;color:var(--muted);margin-top:4px}.context-link:hover{text-decoration:underline}.source-intro{max-width:850px;font-size:13px;line-height:1.8;margin-bottom:20px}.source-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.source-links a{font-size:10px;border:1px solid var(--line);background:var(--white);border-radius:4px;padding:5px 8px;overflow-wrap:anywhere}.review-strip{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:14px 17px;border:1px solid var(--line);border-radius:8px;background:var(--white);margin-bottom:25px}.review-strip .text-button{margin-left:auto}.coverage-note{margin:0 0 20px;color:var(--muted);font-size:11px;line-height:1.7}.concept-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:30px}.list-panel{background:var(--white);border:1px solid var(--line);border-radius:9px;overflow:hidden}.list-panel-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);gap:8px}.list-panel-head h2{font:20px Georgia,serif;font-weight:normal;margin:0}.list-panel-head h2 small{font:11px system-ui;color:var(--muted);margin-left:7px}.concept-row{position:relative;border-bottom:1px solid #e9ece3;padding:0 20px;display:flex;gap:10px;align-items:start}.concept-row:last-child{border-bottom:0}.concept-row>button:first-child{display:block;text-align:left;padding:14px 0;flex:1;min-width:0}.concept-row strong{font-size:12px;font-weight:500;line-height:1.5;display:block}.concept-row p{font-size:11px;color:var(--muted);line-height:1.7;margin:6px 0 0}.concept-row small{font-size:10px;display:block;color:var(--gold);margin-top:6px}.row-actions{display:flex;gap:5px;align-self:center}.row-actions button{font-size:10px;color:var(--muted);padding:5px 0}.row-actions button:hover{color:var(--green);text-decoration:underline}.list-empty{font-size:12px;line-height:1.7;color:var(--muted);padding:20px}.citation-section{border-top:1px solid var(--line);padding-top:25px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.section-heading h2{font:25px Georgia,serif;margin:0;font-weight:normal}.section-heading .actions{display:flex;gap:16px}.citation-row{display:grid;grid-template-columns:38px 1fr 34px;gap:10px;padding:20px 0;border-bottom:1px solid var(--line)}.citation-number{font:18px Georgia,serif;color:#a3aa9c;padding-top:2px}.citation-text{font-size:12px;line-height:1.85;white-space:pre-line;margin:0 0 10px}.citation-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:10px}.citation-meta a{overflow-wrap:anywhere}.citation-needed{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 0}.citation-label{font-size:10px;color:var(--gold);margin-bottom:6px}.citation-edit{font-size:10px;color:var(--muted);height:26px;padding:0}.loading,.error-page{padding:80px 20px;text-align:center;color:var(--muted)}.error-page h1{font-size:27px}.error-page button{margin-top:15px}.primary-button{background:var(--green);border:1px solid var(--green);color:var(--white);padding:10px 18px;border-radius:6px;font-size:12px}.primary-button:hover{background:#23614f}.secondary-button{border:1px solid var(--line);background:var(--white);padding:10px 15px;border-radius:6px;font-size:12px}.secondary-button:hover{background:var(--light)}dialog{padding:0;width:min(590px,calc(100vw - 32px));max-height:90dvh;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 20px 100px #102c3030}dialog::backdrop{background:#10241d60;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-bottom:1px solid var(--line)}.dialog-header h2{font:25px Georgia,serif;font-weight:normal;margin:0}.icon-button{width:28px;height:28px;font-size:20px;color:var(--muted)}.editor-form,.dialog-body{padding:23px 27px}.form-field{display:block;margin-bottom:15px}.form-field>span{display:block;font-size:11px;font-weight:600;margin-bottom:7px}.form-field input:not([type=checkbox]),.form-field textarea,.form-field select{display:block;width:100%;padding:10px 11px;border:1px solid #d2d9cd;border-radius:5px;background:white;color:var(--ink);font-size:12px;line-height:1.6}.form-field textarea{resize:vertical;min-height:80px}.form-field .help{font-size:10px;font-weight:normal;color:var(--muted);line-height:1.6;margin-top:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-check{display:flex;align-items:center;gap:10px;font-size:12px;margin-bottom:18px;line-height:1.7}.form-check input{accent-color:var(--green);width:15px;height:15px}.form-error{padding:12px;border-radius:5px;background:#f8e9e2;color:var(--danger);font-size:12px;line-height:1.6;margin:8px 0 16px}.form-note{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 20px}.form-footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.history-event{padding:13px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.history-event small{font-size:10px;color:var(--muted);display:block;margin:5px 0}.history-event a{font-size:10px}.mobile-nav{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100vw - 32px);padding:12px 20px;background:var(--green);color:white;box-shadow:var(--shadow);border-radius:6px;font-size:12px}.empty-search{padding:18px 12px;color:var(--muted);font-size:12px;line-height:1.7}.small-count{font:12px system-ui;color:var(--muted);margin-left:8px}.source-summary-footer{margin-top:25px;color:var(--muted);font-size:11px;line-height:1.8}.source-summary-footer h3{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:500}.overflow-wrap{overflow-wrap:anywhere}
@media(min-width:1550px){main{padding:34px 46px 48px}.concept-layout{grid-template-columns:minmax(0,1fr) 280px;gap:30px}.node-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.graph{padding:26px 27px}.focus-wrap{padding:48px 0}.source-card{padding:16px}}
@media(max-width:1150px){.app-shell{grid-template-columns:235px minmax(0,1fr)}main{padding:24px}.concept-layout{grid-template-columns:minmax(0,1fr)}.context-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}.context-block,.context-block:first-child{margin-top:0}.context-block:last-child{grid-column:1/-1}.context-sidebar .context-block:last-child .context-link{display:inline-block;width:auto;margin-right:20px}.masthead{padding:0 23px}.masthead-right{gap:17px}.masthead-right #stats{display:none}}
@media(max-width:720px){.masthead{height:71px;padding:0 16px;gap:10px}.brand{font-size:21px;gap:10px}.brand-symbol{width:31px;height:31px;font-size:27px}.brand small{font-size:8px;letter-spacing:.3px}.masthead-right{gap:10px}.masthead-right .quiet-button{display:none}.mobile-nav{display:block;flex-shrink:0}.app-shell{height:calc(100dvh - 71px);grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;z-index:5;top:71px;bottom:0;left:0;width:285px;box-shadow:15px 0 40px #1c37282a}main{padding:22px 16px 40px}.title-row{gap:10px}h1{font-size:29px}.heading-actions .quiet-button{padding:7px 9px;font-size:11px}.panel-topbar{padding:14px}.panel-topbar>span{display:none}.graph{padding:20px 13px}.node-main{padding:12px}.node-main strong{font-size:11px}.focus-node{padding:20px}.focus-node h2{font-size:23px}.focus-node p{font-size:12px}.focus-wrap{padding:36px 0}.concept-layout{gap:20px}.context-sidebar{grid-template-columns:1fr}.context-block:last-child{grid-column:auto}.concept-columns{grid-template-columns:1fr}.review-strip{gap:9px}.review-strip .text-button{margin-left:0}.source-intro{font-size:12px}.page-topline{margin-bottom:18px}.dialog-header{padding:20px}.editor-form,.dialog-body{padding:20px}.form-row{grid-template-columns:1fr;gap:0}.citation-row{grid-template-columns:23px 1fr 28px;gap:7px}.citation-text{font-size:11px}.graph-footer{padding:13px;font-size:9px}.section-label{font-size:9px;letter-spacing:1px}.remove-link{opacity:1}.section-heading h2{font-size:23px}.section-heading .actions{gap:10px}.breadcrumbs{font-size:10px}}

.search-icon{display:block;position:relative;width:12px;height:12px;min-width:12px;border:1.3px solid var(--muted);border-radius:50%;margin:0 3px 2px 0}.search-icon:after{content:"";position:absolute;width:5px;height:1.3px;right:-4px;bottom:-2px;background:var(--muted);transform:rotate(45deg)}
.form-field>label{display:block;font-size:11px;font-weight:600;margin-bottom:7px}
.view-switch{display:flex;align-items:center;gap:2px;border:1px solid var(--line);padding:3px;background:#eeeee6;border-radius:7px;white-space:nowrap}.view-switch button{font-size:11px;padding:6px 9px;border-radius:4px;color:var(--muted)}.view-switch button[aria-pressed=true]{background:var(--white);color:var(--green);box-shadow:0 1px 3px #183a2012}.concept-layout.cone-layout{grid-template-columns:minmax(0,1fr)}.cone-layout .context-sidebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.cone-layout .context-block{margin-top:0}.cone-layout .context-block:last-child{grid-column:auto}.cone-panel .panel-topbar{flex-wrap:wrap}.cone-stats{font-size:10px;color:var(--muted);margin-left:15px}.cone-controls{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.cone-controls .quiet-button{font-size:10px;padding:6px 8px;min-width:27px}.cone-controls #cone-zoom{font-size:10px;min-width:35px;text-align:center}.cone-description{font-size:12px;line-height:1.8;padding:15px 20px;margin:0;border-bottom:1px solid var(--line);color:var(--muted)}.cone-viewport{height:clamp(420px,64vh,800px);position:relative;background:#fafbf5;background-image:radial-gradient(#c4cec170 .8px,transparent .8px);background-size:18px 18px;overflow:hidden;cursor:grab;touch-action:none}.cone-viewport.dragging{cursor:grabbing}.cone-svg{width:100%;height:100%;display:block;user-select:none}.cone-node{cursor:pointer}.cone-node:hover rect,.cone-node:focus-visible rect{stroke:#5f8566;stroke-width:2.6}.cone-node:focus-visible{outline:none}.cone-node:hover text{font-weight:600}.cone-review-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;border-top:1px solid var(--line)}.cone-review-summary .pill{font-size:10px}.reduction-paths{font-size:11px;line-height:1.8;color:var(--muted);padding-left:18px;max-height:170px;overflow:auto}.reduction-paths li{margin-bottom:10px}
@media(max-width:1100px){.title-row{flex-wrap:wrap}.title-row .heading-actions{flex-wrap:wrap}.cone-layout .context-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.cone-layout .context-block:last-child{grid-column:1/-1}}
@media(max-width:720px){.view-switch button{padding:6px;font-size:10px}.heading-actions{width:100%;justify-content:space-between}.cone-controls{gap:4px}.cone-controls .quiet-button{padding:5px 6px}.cone-stats{display:block;margin:5px 0 0}.cone-panel .panel-topbar{gap:12px}.cone-viewport{height:540px}.cone-description{padding:13px;font-size:11px}.cone-review-summary{padding:13px;flex-wrap:wrap}.cone-review-summary .pill{font-size:9px}.cone-panel .graph-footer{flex-wrap:wrap}.cone-layout .context-sidebar{grid-template-columns:1fr}.cone-layout .context-block:last-child{grid-column:auto}}
.source-detail-block{border:1px solid var(--line);border-radius:8px;background:var(--white);padding:15px 18px;margin:0 0 20px}.source-detail-block>summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--green);line-height:1.7}.source-detail-block[open]>summary{margin-bottom:14px}.source-detail-block .form-note{font-size:11px}.source-detail-block .list-panel{border:0}.origin-evidence{border-left:2px solid #abc29f;padding-left:9px;font-size:10px!important;color:var(--green)!important}.form-field[hidden]{display:none}
.report-page main{max-width:1100px;margin:0 auto;padding:32px 24px;line-height:1.65}.report-page section{margin-top:32px}.report-page h2 small{font-size:13px;color:var(--muted);font-weight:400;margin-left:10px}.report-links{display:flex;flex-wrap:wrap;gap:24px}.report-table{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--white)}.report-table table{width:100%;border-collapse:collapse}.report-table th,.report-table td{text-align:left;padding:12px 15px;vertical-align:top;border-bottom:1px solid var(--line)}.report-table th:first-child,.report-table td:first-child{white-space:nowrap}.report-table td:nth-child(2){min-width:200px}.report-table td:last-child{min-width:150px}.report-table small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.report-page li{margin:12px 0}.report-page .masthead>a:last-child{font-size:12px}.report-page .masthead{height:auto;min-height:84px;flex-wrap:wrap;padding-top:15px;padding-bottom:15px}

.formalization-review { border-top: 1px solid var(--line, #ddd); padding: 14px 0; }
.formalization-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.formalization-status { font-size: 13px; margin: 8px 0; }
.loc-estimate { font-size: 15px; font-weight: 600; margin: 10px 0; }
.loc-estimate small, .formalization-files small { display: block; font-size: 11px; font-weight: 400; margin: 4px 0; overflow-wrap: anywhere; }
.formalization-evidence { font-size: 12px; margin: 10px 0; }
.formalization-evidence p { white-space: pre-wrap; }
.formalization-files { list-style: none; margin: 10px 0 0; padding: 0; }
.formalization-files li { margin: 14px 0; overflow-wrap: anywhere; font-size: 12px; }
.formalization-files p { margin: 5px 0; }
.formalization-file-fields { margin: 16px 0; padding: 14px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.formalization-file-fields legend { font-size: 13px; padding: 0 6px; }

.formalization-file-evidence { margin: 7px 0; font-size: 11px; }
.formalization-file-evidence summary { cursor: pointer; color: var(--green); }
.formalization-file-evidence[open] { padding-bottom: 5px; }

/* Keep the application below a header whose height can grow on small screens. */
body:not(.report-page) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
.masthead { flex-shrink: 0; }
.brand { min-width: 0; }
.brand-symbol { flex-shrink: 0; }
.quiet-link { white-space: nowrap; }
.app-shell { position: relative; flex: 1; height: auto; min-height: 0; }

/* Give every column of cards a clear gutter for its connector rail. */
.node-grid { column-gap: 28px; row-gap: 12px; }
.graph-node { display: flex; flex-direction: column; }
.node-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; flex: 1; padding: 14px 14px 6px; }
.node-main strong { padding-right: 0; overflow-wrap: anywhere; }
.node-main small { font-size: 10px; line-height: 1.5; }
.node-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 8px 14px;
}
.node-actions .text-button { text-align: left; min-height: 32px; }
.node-actions .remove-link {
  position: static;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  opacity: 1;
  border-radius: 5px;
}
.node-actions .remove-link:hover { background: #f8e9e2; }
.graph-section .section-label { align-items: baseline; line-height: 1.6; }
.section-label > .text-button { flex-shrink: 0; }

/* File names stay together; repository directories wrap at their separators. */
.concept-layout { grid-template-columns: minmax(0, 1fr) 280px; }
.context-sidebar, .formalization-review { min-width: 0; }
.formalization-heading { flex-wrap: wrap; }
.formalization-file-link { display: block; line-height: 1.6; }
.formalization-file-link:hover { text-decoration: none; }
.formalization-file-link:hover .file-name { text-decoration: underline; }
.file-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.file-directory {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.formalization-files li { margin: 16px 0; }
.formalization-files small { line-height: 1.6; }
.formalization-evidence p { overflow-wrap: anywhere; line-height: 1.7; }

/* Source lists have independent heights, even when their lengths differ. */
.concept-columns { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cone-hint {
  margin: 0;
  padding: 10px 20px;
  background: #eef3e9;
  color: var(--green);
  font-size: 11px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1150px) {
  .concept-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body:not(.report-page) > .masthead {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px 12px;
    height: auto;
    padding: 12px 16px;
  }
  .masthead .brand { font-size: clamp(18px, 5vw, 21px); gap: 10px; }
  .masthead .brand-symbol { width: 32px; height: 32px; }
  body:not(.report-page) .brand { grid-column: 2; grid-row: 1; white-space: nowrap; }
  body:not(.report-page) .brand small { display: none; }
  .mobile-nav { grid-column: 1; grid-row: 1; }
  .masthead-right {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 11px;
  }
  .masthead-right .quiet-button { display: block; padding: 6px 10px; font-size: 11px; }
  .sidebar.open { position: absolute; top: 0; width: min(285px, 100%); }
  .page-topline { align-items: start; }
  .page-topline .eyebrow { text-align: right; max-width: 60%; line-height: 1.5; }
  .breadcrumbs { white-space: nowrap; }
  .heading-actions { justify-content: flex-start; gap: 8px; }
  .graph { padding: 20px 18px; }
  .node-grid { column-gap: 26px; }
  .node-main { padding: 12px 12px 4px; }
  .node-main strong { font-size: 12px; }
  .node-actions { padding-left: 12px; padding-right: 4px; gap: 2px; }
  .node-actions .text-button { font-size: 10px; }
  .section-label { font-size: 9px; letter-spacing: .7px; }
  .focus-foot { flex-wrap: wrap; }
  .concept-columns { grid-template-columns: minmax(0, 1fr); }
  .cone-hint { padding: 10px 13px; }

  /* Each paper becomes one complete card: ID, title, authors, then status. */
  .report-page main { padding: 26px 16px; }
  .report-table { overflow: visible; border: 0; border-radius: 0; background: none; }
  .report-table table, .report-table tbody { display: block; }
  .report-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .report-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
    margin: 12px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .report-table td, .report-table td:nth-child(2), .report-table td:last-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .report-table td:first-child { font-size: 11px; }
  .report-table td:nth-child(2) { font-size: 15px; line-height: 1.6; }
  .report-table td:last-child { border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
  .report-table small { line-height: 1.6; }
}

@media (max-width: 380px) {
  .node-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Titles use the full reading width; controls have their own row. */
.title-row { display: block; }
.title-row h1 { max-width: 38ch; text-wrap: pretty; }
.title-row .heading-actions { margin-top: 16px; flex-wrap: wrap; }
.concept-summary {
  background: var(--light);
  border-left: 3px solid #749581;
  padding: 15px 20px;
  margin: 0 0 24px;
  border-radius: 0 7px 7px 0;
}
.concept-summary p { margin: 7px 0; font-size: 14px; line-height: 1.9; }
.concept-summary .eyebrow { color: var(--green); }
.concept-summary p, .concept-row p, .source-intro, .focus-node p,
.cone-description, .cone-list-node p, .citation-text {
  overflow-wrap: anywhere;
}
.concept-row strong { overflow-wrap: anywhere; }
.math-script { font-size: .75em; line-height: 0; position: relative; vertical-align: baseline; }
sup.math-script { top: -.5em; }
sub.math-script { top: .25em; }

.cone-diagram-controls { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.cone-controls { justify-content: flex-end; }
.cone-list { display: none; padding: 20px; }
.cone-list-level + .cone-list-level { margin-top: 28px; }
.cone-list-level h3 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.cone-list-node { padding: 16px; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; background: #fafbf6; }
.cone-list-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.cone-list-node p { font-size: 12px; line-height: 1.8; margin: 10px 0; }
.cone-list-node details { margin-top: 12px; font-size: 12px; }
.cone-list-node summary { cursor: pointer; color: var(--green); }
.cone-list-node ul { margin: 10px 0 0; padding-left: 18px; }
.cone-list-node li { margin: 10px 0; line-height: 1.7; }
.cone-list-node li small { color: var(--muted); }
.cone-panel[data-display="list"] .cone-list { display: block; }
.cone-panel[data-display="list"] .cone-diagram-controls,
.cone-panel[data-display="list"] .cone-description,
.cone-panel[data-display="list"] .cone-viewport,
.cone-panel[data-display="list"] .cone-hint,
.cone-panel[data-display="list"] .graph-footer { display: none; }

/* Stack source panels based on their available width, before they get cramped. */
.concept-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.list-panel-head { flex-wrap: wrap; }
.list-panel-head h2 { line-height: 1.4; }
.list-panel-head > .text-button { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1000px) {
  .context-sidebar { grid-template-columns: minmax(0, 1fr); }
  .context-sidebar .context-block:last-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .concept-summary { padding: 12px 16px; margin-bottom: 20px; }
  .concept-summary p { font-size: 13px; }
  .cone-controls { justify-content: flex-start; }
  .cone-list { padding: 14px; }
}

/* The form body scrolls independently of its Close, Cancel and Save controls. */
dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.dialog-header { flex: 0 0 auto; background: var(--white); }
.dialog-header .icon-button { flex-shrink: 0; }
.editor-form { display: flex; flex-direction: column; overflow: hidden; min-height: 0; padding: 0; }
.form-body { overflow-y: auto; padding: 23px 27px; min-height: 0; scroll-padding-block: 16px; }
.form-footer { flex: 0 0 auto; flex-wrap: wrap; margin: 0; padding: 16px 27px; background: var(--white); }
.dialog-body { overflow-y: auto; min-height: 0; }
.concept-summary p, .cone-list-node p { max-width: 76ch; }
.nav-backdrop { display: none; }
.nav-backdrop[hidden] { display: none; }
@media (max-width: 720px) {
  .form-body { padding: 20px; }
  .form-footer { padding: 14px 20px; }
  .nav-backdrop { display: block; position: absolute; inset: 0; z-index: 4; background: #10241d40; }
}

.cone-panel[data-display="list"] { overflow: clip; }
.cone-outline-nav {
  position: sticky;
  top: calc(0px - var(--outline-main-padding, 0px));
  z-index: 2;
  margin: -1px 0 18px;
  padding: 12px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.cone-outline-nav label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 11px; color: var(--muted); }
.cone-outline-select { max-width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--green); font-size: 12px; }
.cone-outline-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cone-outline-actions .text-button { min-height: 28px; }
.cone-list-level { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--outline-nav-height, 110px) + 12px); }
.cone-list-level + .cone-list-level { margin-top: 0; }
.cone-list-level > summary { cursor: pointer; padding: 15px 0; color: var(--green); font-size: 12px; line-height: 1.5; }
.cone-list-level > summary span { font-weight: 600; }
.cone-list-level > summary small { color: var(--muted); margin-left: 10px; white-space: nowrap; }
.cone-list-level[open] > summary { padding-bottom: 4px; }
.cone-level-content { padding-bottom: 12px; }
summary:focus-visible { outline: 3px solid #7da89b; outline-offset: 3px; border-radius: 4px; }

/* Public site: a read-only view of the collection without local-server tools. */
.public-site :is([data-action^="edit-"],[data-action^="add-"],[data-action^="remove-"],[data-action="review"],[data-action="measure-file"],[data-action="resolve-citations"],[data-action="reduce-cone"],#add-record,#refresh-button,#history-button,.local-only){display:none!important}
