/* Fuentes SIL Open Font License: /fonts/instrumentsans-OFL.txt, /fonts/newsreader-OFL.txt, /fonts/jetbrainsmono-OFL.txt */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/instrument-sans-400-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/instrument-sans-500-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/fonts/instrument-sans-600-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-400-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-500-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400-italic.ttf) format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400-normal.ttf) format('truetype');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-500-normal.ttf) format('truetype');
}

:root{
  --bf-bg:#F6F3EE;
  --bf-surface:#FFFFFF;
  --bf-surface-2:#FAF7F2;
  --bf-line:#ECE6DC;
  --bf-line-2:#F1ECE4;
  --bf-ink:#1B2A47;
  --bf-ink-2:#5A6782;
  --bf-ink-3:#8A94A8;
  --bf-navy:#1B2A47;
  --bf-navy-ink:#C9D2E2;
  --bf-navy-mute:#7F91B1;
  --bf-blue:#2D4A7A;
  --bf-blue-soft:#E6ECF5;
  --bf-blue-line:#CBD5E6;
  --bf-red:#B83A35;
  --bf-red-deep:#8E2C28;
  --bf-red-soft:#F6E6E4;
  --bf-green:#7FB89A;
  --bf-amber:#9A6A1E;
  --bf-amber-soft:#F6EBD8;
  --bf-serif:'Newsreader',Georgia,serif;
  --bf-sans:'Instrument Sans',system-ui,sans-serif;
  --bf-mono:'JetBrains Mono',ui-monospace,monospace;
  --bf-radius:16px;
  --bf-shadow:0 1px 0 rgba(27,42,71,.04),0 20px 50px -30px rgba(27,42,71,.25);
}
/* Adaptación del diseño suministrado a las pantallas y controles del DataRoom. */
:root{--ink:var(--bf-ink);--muted:var(--bf-ink-2);--green:var(--bf-blue);--line:var(--bf-line);--paper:var(--bf-bg);--white:var(--bf-surface);--sidebar:var(--bf-navy);--accent:var(--bf-red);--danger:var(--bf-red-deep);font-family:var(--bf-sans);color:var(--ink);font-size:14px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer;border:0}
button:disabled{cursor:not-allowed;opacity:.55}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--bf-blue);outline-offset:4px}
:where(.sidebar a):focus-visible{outline-color:#e8857f}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--bf-serif);font-weight:400;text-wrap:pretty}
h1{font-size:clamp(36px,3.6vw,54px);line-height:1.06;letter-spacing:-.02em}
h1 em{color:var(--bf-red)}
h2{font-size:32px;line-height:1.15;letter-spacing:-.01em}
h3{font-size:23px;line-height:1.2}
p{color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:268px;background:var(--sidebar);color:var(--bf-navy-ink);padding:28px 14px 22px;overflow-y:auto;z-index:20;display:flex;flex-direction:column}
.brand{display:flex;gap:12px;align-items:center;font:400 20px/1 var(--bf-serif);color:white;margin:0 -14px 4px;padding:0 24px 28px;border-bottom:1px solid #ffffff14}
.brand small{display:block;font:400 10px var(--bf-sans);letter-spacing:.22em;color:#9fb0cc;margin-top:6px}
.brand-mark{background:#c8443e;color:white;border-radius:11px;width:42px;height:42px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font:500 26px/1 var(--bf-serif);letter-spacing:-2px;box-shadow:inset 0 -2px 0 #0002}
.brand-mark span{font-size:21px;margin:0 0 4px 2px}
.nav-label{font-size:10px;letter-spacing:.2em;color:#9fb0cc;margin:26px 10px 10px;text-transform:uppercase}
nav a{display:flex;gap:12px;align-items:center;padding:10px;margin:2px 0;border-radius:8px;font-size:13px;color:var(--bf-navy-ink);transition:background .15s,color .15s}
nav a:hover{background:#ffffff0a;color:white}
nav a.active{background:#ffffff14;color:white}
.nav-dot{width:6px;height:6px;border:1px solid #9fb0cc;border-radius:50%;flex-shrink:0}
nav a.active .nav-dot{background:#e8857f;border-color:#e8857f}
nav a b{margin-left:auto;font-size:11px;font-weight:400;color:#9fb0cc;background:#ffffff0f;padding:2px 7px;border-radius:10px}
.section-nav a{font-size:12px;padding:7px 10px;gap:14px;border-radius:6px}
.section-nav a.active{box-shadow:inset 2px 0 #e8857f}
.section-nav .code{font-family:var(--bf-serif);color:#9fb0cc;font-size:14px;min-width:16px}
.sidebar-bottom{margin-top:auto;padding:24px 10px 0}
.sidebar-bottom>a{display:block;font-size:12px;padding:6px 0;color:#9fb0cc}
.sidebar-bottom>a:hover,.sidebar-bottom>a.active{color:white}
.privacy{border-top:1px solid #ffffff14;font-size:11px;color:var(--bf-navy-ink);padding:20px 0 0;margin-top:14px;display:flex;align-items:center;gap:8px}
.privacy::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--bf-green);box-shadow:0 0 0 3px #7fb89a2e}
.workspace{margin-left:268px;min-width:0}
.topbar{min-height:73px;display:flex;gap:20px;align-items:center;padding:16px clamp(24px,4vw,64px);border-bottom:1px solid var(--line);background:#f6f3eef2;backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}
.breadcrumb{font-size:13px;color:var(--muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumb span{padding:0 10px;color:var(--bf-ink-3)}
.breadcrumb strong{font-weight:500;color:var(--ink)}
.search-trigger{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:white;color:var(--muted);border-radius:999px;padding:9px 12px;font-size:12px}
.search-trigger>span{margin-right:20px}
kbd{border:1px solid var(--line);padding:2px 6px;border-radius:5px;font:10px var(--bf-mono);background:var(--bf-surface-2)}
.avatar{background:var(--bf-blue-soft);color:var(--bf-blue);border:1px solid var(--bf-blue-line);width:36px;height:36px;flex-shrink:0;border-radius:50%;font-size:12px;font-weight:600}
main{padding:44px clamp(24px,4vw,64px) 64px;min-height:calc(100vh - 130px);max-width:1760px;margin:auto}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.2em;color:var(--bf-red);text-transform:uppercase;margin-bottom:14px}
.eyebrow::before{content:"";width:24px;height:1px;flex-shrink:0;background:var(--bf-red)}
.page-head{display:flex;justify-content:space-between;gap:26px;align-items:flex-end;flex-wrap:wrap;margin-bottom:34px}
.page-head>div:first-child{max-width:820px;min-width:0}
.page-head p{margin-top:14px;max-width:710px;font-size:14px;line-height:1.65}
.home-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,310px);gap:18px 32px}
.home-head h1{font-size:clamp(38px,4vw,56px)}
.home-head>.home-intro{font-size:14px;line-height:1.7;padding-bottom:3px}
.home-head .head-actions{grid-column:1/-1;justify-content:flex-end}
.head-actions{display:flex;gap:10px;flex-wrap:wrap}
.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--bf-blue-line);background:white;border-radius:999px;padding:10px 19px;font-size:13px;font-weight:500;color:var(--bf-blue);transition:background .15s,border-color .15s}
.button:hover{border-color:var(--bf-blue);background:var(--bf-surface-2)}
.button:active{background:var(--bf-blue-soft)}
.button.primary{background:var(--bf-blue);color:white;border-color:var(--bf-blue)}
.button.primary:hover{background:var(--bf-navy)}
.button.accent{background:var(--bf-red);border-color:var(--bf-red);color:white}
.button.accent:hover{background:var(--bf-red-deep)}
.button.quiet{background:transparent;border-color:transparent;color:var(--bf-blue);padding:6px 0}
.overview-band{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;border:1px solid var(--line);background:white;border-radius:18px;margin-bottom:40px;overflow:hidden;box-shadow:var(--bf-shadow)}
.metric{padding:30px 25px;border-right:1px solid #efeae2;display:flex;flex-direction:column}
.metric:last-child{border-right:0}
.metric:first-child{background:linear-gradient(160deg,#f3e2df,#f8eeec)}
.metric .label{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;gap:10px}
.metric .label>span{display:none}
.metric strong{font:400 56px/.95 var(--bf-serif);display:block;margin:22px 0 20px}
.metric:first-child strong{font-size:68px;color:var(--bf-red-deep)}
.metric strong small{font-size:28px;color:#aa514b}
.metric:first-child .label,.metric:first-child p{color:#8e5450}
.metric p{font-size:12px;margin-top:auto}
.mini-progress{height:4px;background:#eee9e1;border-radius:4px;margin:0 0 10px;overflow:hidden}
.mini-progress progress{display:block;width:100%;height:4px;appearance:none;border:0;background:#eee9e1;color:var(--bf-blue)}
.mini-progress progress::-webkit-progress-bar{background:#eee9e1}
.mini-progress progress::-webkit-progress-value{background:var(--a,var(--bf-blue))}
.mini-progress progress::-moz-progress-bar{background:var(--a,var(--bf-blue))}
.metric:first-child{--a:var(--bf-red)}
.metric:first-child .mini-progress progress::-webkit-progress-bar{background:#b83a3524}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:36px 0 20px;padding-bottom:18px;border-bottom:1px solid #e4ddd1}
.section-heading p{font-size:13px;margin-top:7px}
.section-heading a{font-size:12px;color:var(--bf-blue)}
.section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.section-card{--a:var(--bf-red);--t:var(--bf-red-soft);position:relative;background:white;border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:20px;overflow:hidden;transition:border-color .18s,box-shadow .18s}
.section-card:nth-child(even){--a:var(--bf-blue);--t:var(--bf-blue-soft)}
.section-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--a);opacity:.75}
@media(hover:hover) and (pointer:fine){.section-card:hover{box-shadow:0 24px 40px -28px #1b2a4759;border-color:#c9d3e4}}
.card-top{display:flex;justify-content:space-between;align-items:flex-start}
.section-number{font:italic 400 40px/1 var(--bf-serif);color:var(--a)}
.card-top .arrow{width:32px;height:32px;border-radius:50%;background:var(--t);color:var(--a);display:grid;place-items:center;font-size:14px}
.section-card h3{font-size:23px}
.card-meta{font-size:12px;color:var(--muted);margin-top:7px}
.card-progress{margin-top:auto}
.card-bottom{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-top:8px}
.card-bottom b{color:var(--a);font-weight:500}
.section-card .mini-progress{height:3px;margin:0}
.section-card .mini-progress progress{height:3px}
.split{display:grid;grid-template-columns:1.65fr 1fr;gap:24px;margin-top:40px}
.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:28px 32px;box-shadow:var(--bf-shadow);min-width:0}
.panel h2{font-size:27px}
.workbook-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--bf-line-2);padding:20px 0}
.workbook-row:last-child{border:0;padding-bottom:0}
.workbook-symbol{font:12px var(--bf-mono);background:var(--bf-blue-soft);border-radius:10px;width:46px;height:46px;display:grid;place-items:center;color:var(--bf-blue)}
.workbook-row>div{flex:1}
.workbook-row strong{font:400 23px var(--bf-serif)}
.workbook-row p{font-size:12px;margin-top:4px}
.note-panel{background:linear-gradient(160deg,#eef2f8,#f7f9fc);border-color:#dee5f0;display:flex;flex-direction:column;gap:17px}
.note-panel .eyebrow{margin:0}
.note-panel p{font-size:13px;line-height:1.8}
.note-panel .button{align-self:flex-start;margin-top:auto}
.table-wrap{overflow:auto;border:1px solid var(--line);background:white;border-radius:16px;box-shadow:var(--bf-shadow);max-width:100%}
table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}
th{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);background:var(--bf-surface-2);padding:16px 22px;white-space:nowrap}
td{padding:20px 22px;border-top:1px solid var(--bf-line-2);vertical-align:middle}
td a{font-family:var(--bf-serif);font-size:18px}
td a:hover{color:var(--bf-red)}
td .sub{display:block;color:var(--muted);font-size:11px;margin-top:4px}
tbody tr:hover{background:#fbf9f5}
.mono{font-family:var(--bf-mono);font-size:11px;color:var(--bf-red)}
.badge{font-size:11px;font-weight:500;border-radius:999px;padding:4px 10px;background:#f0ede8;color:var(--muted);white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.badge.CARG,.badge.FINAL,.badge.Validada{background:#e3f0e8;color:#2f6b4a}
.badge.PEND,.badge.Pendiente{background:var(--bf-amber-soft);color:var(--bf-amber)}
.badge.PREP,.badge.BORR,.badge.REV,.badge.LISTO,.badge.Edición,.badge.Preparada{background:var(--bf-blue-soft);color:var(--bf-blue)}
.badge.Bloqueado{background:var(--bf-red-soft);color:var(--bf-red-deep)}
.filters{display:flex;gap:12px;align-items:center;margin-bottom:22px;flex-wrap:wrap}
.filters input{flex:1;min-width:220px}
.filters select{min-width:170px}
.tabs{display:flex;gap:28px;border-bottom:1px solid #e4ddd1;margin:26px 0;overflow:auto;white-space:nowrap}
.tabs button{background:none;padding:0 0 14px;color:var(--muted);border-bottom:2px solid transparent;font-size:13px}
.tabs button.active{color:var(--ink);border-color:var(--bf-red);font-weight:500}
.tabs .hint{font-size:10px;padding:2px 7px;border-radius:10px;background:#eee9e1;margin-left:5px}
.tabs .active .hint{background:var(--bf-red-soft);color:var(--bf-red)}
.empty{padding:35px;text-align:center;color:var(--muted);font-size:13px}
.content-list{display:grid;gap:12px}
.content-row{border:1px solid var(--line);background:white;border-radius:12px;display:flex;align-items:center;gap:18px;padding:20px 24px}
.content-row>div{flex:1;min-width:0}
.content-row h3{font-size:21px}
.content-row p{font-size:12px;margin-top:6px}
.content-row:hover{border-color:var(--bf-blue-line)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 24px}
.form-grid.section-heading{padding:0;border:0;align-items:stretch;margin:24px 0}
.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500;color:var(--muted)}
.field.full{grid-column:1/-1}
input,select,textarea{border:1px solid var(--line);background:var(--bf-surface-2);border-radius:10px;padding:12px 14px;color:var(--ink);max-width:100%;font-size:14px;transition:border-color .15s,background .15s}
input:focus,select:focus,textarea:focus{background:white;border-color:var(--bf-blue)}
input:disabled,select:disabled,textarea:disabled{color:var(--muted)}
.field textarea{resize:vertical;min-height:140px;width:100%}
.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px;padding-top:22px;border-top:1px solid var(--bf-line-2)}
.hint{font-size:12px;color:var(--muted);font-weight:400}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.detail-layout .panel{margin-bottom:24px}
.detail-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:22px}
.file-row{padding:16px 0;border-bottom:1px solid var(--bf-line-2);font-size:13px;display:flex;gap:12px;align-items:center}
.file-row>div{flex:1;overflow-wrap:anywhere}
.file-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.file-row a{color:var(--bf-blue);font-size:12px}
.upload{margin-top:24px;border:1px dashed var(--bf-blue-line);border-radius:12px;padding:20px;background:#f7f9fc}
.upload input{width:100%;font-size:12px;background:white;margin:12px 0}
.upload button{margin-top:14px}
.callout{padding:18px 20px;border-left:3px solid var(--bf-red);border-radius:0 10px 10px 0;background:var(--bf-red-soft);font-size:13px;color:var(--bf-red-deep);margin:24px 0;line-height:1.7}
.worksheet-table td{padding:5px}
.worksheet-table th{min-width:150px}
.worksheet-table input,.worksheet-table select,.worksheet-table textarea{width:100%;min-width:135px;border-color:transparent;background:transparent;font-size:13px;border-radius:5px;padding:10px}
.worksheet-table input:focus,.worksheet-table textarea:focus{border-color:var(--bf-blue);background:white}
.worksheet-table td.label{font-weight:500;padding:14px 18px;min-width:200px}
.worksheet-table input:disabled{opacity:1}
.worksheet-table .row-number{min-width:30px;width:30px;text-align:center;font:10px var(--bf-mono);color:var(--muted)}
.guide-list{padding-left:22px;color:var(--muted);font-size:14px;line-height:1.9;margin:16px 0 28px}
.guide-list li+li{margin-top:7px}
.guide-list strong{color:var(--ink);font-weight:600}
.guide-section{margin-bottom:24px;scroll-margin-top:95px}
.guide-section p{font-size:14px;line-height:1.8;margin-top:13px}
.guide-section .table-wrap{margin-top:20px}
.guide-section td{vertical-align:top}
.guide-section .guide-list:last-child{margin-bottom:0}
.guide-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.guide-nav a{font-size:12px;background:white;border:1px solid var(--line);padding:9px 15px;border-radius:999px;color:var(--bf-blue)}
.evidence{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.evidence a{padding:6px 8px;background:var(--bf-blue-soft);border-radius:6px;font-size:11px;color:var(--bf-blue)}
.narrative-editor{width:100%;min-height:430px!important;line-height:1.8;font-size:15px!important}
.prose{white-space:pre-wrap;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.check-item{display:flex;gap:13px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}
.check-item input{accent-color:var(--bf-blue);margin-top:4px}
.main-footer{display:flex;justify-content:space-between;padding:20px clamp(24px,4vw,64px);gap:16px;flex-wrap:wrap;color:var(--muted);font-size:9px;letter-spacing:.13em;border-top:1px solid var(--line)}
dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(700px,calc(100% - 28px));color:var(--ink);max-height:80vh;box-shadow:0 24px 80px #1b2a4733}
dialog::backdrop{background:#1b2a47b8;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.dialog-heading h2{font-size:27px}
.icon-button{background:none;color:var(--muted);font-size:22px;padding:5px 10px}
#search-input{width:100%}
#search-results{margin-top:16px;max-height:52vh;overflow:auto}
.result{display:block;border-bottom:1px solid var(--line);padding:15px 5px;font:20px var(--bf-serif)}
.result small{display:block;font:11px var(--bf-sans);color:var(--muted);margin-bottom:6px}
.history-entry{padding:22px 0;border-bottom:1px solid var(--bf-line-2);font-size:14px}
.history-summary{display:flex;gap:16px;align-items:center}
.history-icon{width:40px;height:40px;flex-shrink:0;border-radius:50%;background:var(--bf-blue-soft);color:var(--bf-blue);display:grid;place-items:center;font:italic 20px var(--bf-serif)}
.history-entry:nth-child(even) .history-icon{background:var(--bf-red-soft);color:var(--bf-red)}
.history-summary strong{font-weight:500}
.history-entry small{color:var(--muted);display:block;font-size:12px;margin-top:5px;overflow-wrap:anywhere}
.history-entry details{margin:14px 0 0 56px;font-size:12px}
.history-entry pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.6 var(--bf-mono);background:var(--paper);padding:14px;border-radius:8px;max-height:300px;overflow:auto}
#toast{position:fixed;bottom:25px;right:25px;z-index:100;background:var(--sidebar);color:white;padding:15px 21px;border-radius:12px;font-size:13px;box-shadow:var(--bf-shadow);max-width:min(450px,calc(100vw - 40px));display:none}
#toast.show{display:block}
#toast.error{background:var(--danger)}
.loading{padding:60px 0;color:var(--muted)}
.menu-toggle{display:none}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip:focus{position:fixed;z-index:100;background:white;padding:20px}
.reader .editor-only,.reader .admin-only,.editor .admin-only{display:none!important}
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:var(--paper)}
.login-shell{padding:8vh 7vw 4vh;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.login-shell>.brand-mark{margin-bottom:9vh}
.login-shell h1{font-size:clamp(38px,4vw,64px);line-height:1.06;letter-spacing:-.02em}
.login-shell h1 em{color:var(--bf-red)}
.login-shell p{margin:25px 0 36px;font-size:15px;max-width:380px;line-height:1.8}
.login-shell .button{font-size:13px;padding:14px 20px}
.google-mark{font-weight:600;background:white;color:var(--bf-blue);border-radius:50%;width:23px;height:23px;display:grid;place-items:center}
.login-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:22px}
.login-shell footer{margin-top:auto;padding-top:65px;font-size:12px;width:100%;display:flex;justify-content:space-between;gap:20px;color:var(--muted)}
.login-shell footer span{font-size:10px}
.login-art{background:var(--bf-navy);position:relative;display:grid;place-items:center;overflow:hidden}
.folio{width:70%;aspect-ratio:3/4;max-height:610px;border-radius:8px}
.folio-back{position:absolute;background:var(--bf-red);transform:rotate(-9deg);box-shadow:0 20px 30px #0e182c33}
.folio-front{background:var(--bf-surface-2);transform:rotate(5deg);padding:12% 9%;position:relative;box-shadow:0 20px 30px #0e182c33;display:flex;flex-direction:column}
.folio-front h2{font-size:clamp(24px,3vw,42px);line-height:1.12;margin:35px 0}
.folio-line{height:1px;background:var(--bf-blue-line)}
.folio-index{font-size:12px;line-height:3;color:var(--muted)}
.folio-index span{margin-right:20px;font:10px var(--bf-mono);color:var(--bf-red)}
.folio-bottom{margin-top:auto;padding-top:24px;font-size:9px;letter-spacing:1.5px;display:flex;justify-content:space-between}
.folio-bottom b{font-size:22px}
.print-meta{display:none}
@media(max-width:1200px){.section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-layout{grid-template-columns:1fr}.metric{padding:24px 18px}.home-head{grid-template-columns:1fr}.home-head>.home-intro{max-width:560px}.home-head .head-actions{justify-content:flex-start}.search-trigger>span{margin-right:0}.split{grid-template-columns:1fr 1fr}.panel{padding:24px}.topbar{gap:14px}}
@media(max-width:950px){.overview-band{grid-template-columns:1fr 1fr}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.split{grid-template-columns:1fr}.search-trigger>span,.search-trigger kbd{display:none}}
@media(max-width:820px){.sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vmax #1b2a4780}.workspace{margin-left:0}.menu-toggle{display:block}.topbar{min-height:65px;padding:12px 18px;gap:12px}.breadcrumb{font-size:12px}.breadcrumb>span,.breadcrumb>strong{display:none}.search-trigger{font-size:20px;padding:2px 10px}main{padding:30px 20px 40px}.page-head{gap:18px}.section-grid{gap:14px}.section-card{padding:20px}.form-grid{grid-template-columns:1fr}.main-footer{padding:18px 20px;font-size:8px}.login-page{grid-template-columns:1fr}.login-art{display:none}.login-shell{padding:40px 28px;min-height:100vh}.login-shell>.brand-mark{margin-bottom:60px}.content-row{flex-wrap:wrap;gap:12px}.content-row>div{min-width:60%}.guide-section .table-wrap table{min-width:560px}}
@media(max-width:520px){.section-grid{grid-template-columns:1fr}.section-card{gap:18px}.metric{padding:22px 17px}.metric .label{font-size:9px}.metric strong{font-size:50px}.metric:first-child strong{font-size:58px}.metric p{font-size:11px}.section-heading{gap:14px}h2{font-size:29px}.panel{padding:22px 20px}.filters>input,.filters>select{width:100%;min-width:0}.file-row{flex-wrap:wrap}.file-row>a{margin-left:auto}.history-entry details{margin-left:0}.head-actions .button{padding:9px 14px}.guide-nav{gap:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media print{.sidebar,.topbar,.main-footer,.head-actions,.form-actions,.upload,.tabs,#toast,.no-print,.guide-nav{display:none!important}.workspace{margin:0}main{padding:0;max-width:none}body{background:white;color:black}.panel,.section-card{box-shadow:none;break-inside:avoid}.guide-section{break-inside:auto}.table-wrap{overflow:visible;border:0;box-shadow:none}table{font-size:10px}th,td{padding:8px}.print-meta{display:block;font:10px var(--bf-sans);padding:15px 0}.detail-layout{display:block}.prose{font-size:12px}.worksheet-table input,.worksheet-table textarea{border:0;padding:2px;font-size:10px;min-width:0}h1{font-size:30px}h2{font-size:24px}#narrative-edit{display:none!important}#narrative-read{display:block!important}.narrative-editor{min-height:0!important}.guide-section .table-wrap table{min-width:0}.home-head{display:block}.guide-list{font-size:11px}.guide-section p{font-size:11px}@page{size:letter;margin:18mm}}
