:root{color-scheme:light;--ink:#302C28;--muted:#686157;--accent:#725242;--border:#D9D3C8}*{box-sizing:border-box}body{margin:0;background:#F5F2EC;color:var(--ink);font:16px/1.55 "Segoe UI",Arial,sans-serif}header{background:#FFFDF9;border-bottom:1px solid var(--border);padding:18px max(24px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:750;font-size:23px;text-decoration:none;color:var(--ink)}.brand span{font-size:10px;letter-spacing:2px;margin-left:12px;color:var(--muted)}main{max-width:1120px;margin:36px auto;padding:0 24px}h1{font-size:34px;line-height:1.2;margin:8px 0 28px}h2{font-size:22px;margin:0 0 14px}h3{font-size:16px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--accent)}section{background:#FFFDF9;border:1px solid var(--border);border-radius:3px;padding:26px;margin:20px 0}p{margin:10px 0;color:var(--muted)}a{color:var(--accent)}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.badge{display:inline-block;background:#e5f2ef;color:#18554e;border-radius:20px;padding:5px 12px;font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--border)}th{color:var(--muted);font-size:12px}.mono,pre{font:12px/1.7 Consolas,monospace;overflow-wrap:anywhere}pre{white-space:pre-wrap;background:#F5F2EC;padding:16px;border-radius:6px}.alert{background:#fff3df;color:#83511a;padding:12px;border-radius:6px}form{margin:18px 0}header form{margin:0}label{display:block;font-size:14px;margin:10px 0}input:not([type=hidden]),textarea{width:100%;border:1px solid #D9D3C8;border-radius:6px;font:inherit;padding:11px;margin:0 0 16px}textarea{min-height:90px}button{background:var(--accent);color:#FFFDF9;border:1px solid var(--accent);border-radius:6px;padding:10px 16px;font:600 14px "Segoe UI",Arial,sans-serif;cursor:pointer}.quiet{background:#FFFDF9;color:var(--ink);border-color:var(--border)}.danger{background:#95432e;border-color:#95432e}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #5796d1;outline-offset:3px}.login{max-width:480px;margin:70px auto}.login h1{font-size:29px}article{border-top:1px solid var(--border);padding:16px 0}dl{display:grid;grid-template-columns:1fr 1fr;font-size:13px}dd{margin:0}footer{max-width:1120px;margin:30px auto;padding:20px 24px;font-size:12px;color:var(--muted)}@media(max-width:680px){.grid{grid-template-columns:1fr}h1{font-size:28px}section{padding:18px}.section-head{align-items:flex-start;flex-direction:column}dl{grid-template-columns:1fr}header{padding:16px}.brand span{display:none}}
.brand{display:flex;align-items:center;gap:9px}
details{margin:18px 0}summary{cursor:pointer;color:var(--muted);font-size:14px;padding:8px 0}
select{display:block;max-width:100%;width:100%;font:inherit;padding:9px;border:1px solid #D9D3C8;border-radius:6px;background:#FFFDF9;color:var(--ink)}td,dd{overflow-wrap:anywhere}

.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{background:#FFFDF9;border-right:1px solid var(--border);padding:28px 20px;min-width:0}.sidebar nav a{display:block;text-decoration:none;color:var(--ink);padding:9px 10px;border-radius:3px}.sidebar nav a:hover,.sidebar nav a[aria-current=page]{background:#ebe4d9}.sidebar summary{font-weight:600}.sidebar details{margin:12px 0}.sidebar p{font-size:12px}.workspace{min-width:0}header{padding:18px 36px;font-size:13px;min-height:58px}main{max-width:1250px;margin:30px auto;padding:0 36px}h1,h2{font-family:Georgia,serif;font-weight:400}h1{font-size:38px}h2{font-size:25px}section{padding:24px}button{background:#403B34;border-color:#403B34}.quiet{background:#FFFDF9}footer{padding:20px 36px}.mono,pre{font-family:Consolas,monospace}.skip{position:absolute;left:12px;top:-100px}.skip:focus{top:10px;background:#FFFDF9;padding:8px;z-index:10}input[type=checkbox]{width:auto;margin:0 8px 0 0}fieldset{border:1px solid var(--border);margin:16px 0}.workspace p,.workspace a,.workspace h1,.workspace h2{overflow-wrap:anywhere}pre{max-width:100%;white-space:pre-wrap}td{min-width:120px}.grid>*{min-width:0}.badge{background:#eee7dc;color:#725242}.login{margin:40px auto}.table-wrap{max-width:100%}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #416E73;outline-offset:3px}
@media(max-width:760px){.app-shell{display:block}.sidebar{padding:18px;border-right:0;border-bottom:1px solid var(--border)}.sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.sidebar nav details{margin:0}.sidebar nav a{font-size:13px}.sidebar hr{display:none}main{padding:0 18px;margin:22px auto}header{padding:14px 18px}h1{font-size:30px}h2{font-size:23px}section{padding:18px}.grid{grid-template-columns:1fr}footer{padding:18px}.brand{font-size:23px}.login{margin:24px auto}}

.density{display:flex;gap:8px;align-items:center;margin:0;font-size:12px}.density select{width:auto;font-size:12px;padding:5px}td a{font-family:Consolas,monospace}body[data-density=compact] th,body[data-density=compact] td{padding:7px 8px}body[data-density=compact] section{padding:18px}body[data-density=compact] article{padding:10px 0}@media(max-width:760px){header{flex-wrap:wrap;gap:10px}}

.status{display:inline-block;padding:4px 9px;border:1px solid;border-radius:4px;font:600 12px/1.5 "Segoe UI",Arial,sans-serif;white-space:normal;vertical-align:middle}.status-red{background:#f4e2dd;color:#8f453d;border-color:#d5aca4}.status-orange{background:#f3e5d2;color:#80532c;border-color:#d8b994}.status-green{background:#e5ede2;color:#43623c;border-color:#adbea4}.status-yellow{background:#f4efce;color:#716025;border-color:#cabe81}.status-legend{display:flex;flex-wrap:wrap;gap:8px}.hint{font-size:12px}blockquote{margin:14px 0;border-left:3px solid #d9d3c8;padding:12px 18px;background:#f5f2ec;overflow-wrap:anywhere}

.measurement-chart{display:block;width:100%;max-width:780px;height:auto;font:12px "Segoe UI",Arial,sans-serif}
.editorial-preview{max-width:100%;overflow-x:auto}fieldset{min-width:0}

/* Keep records easy to scan without compressing editorial text or long values. */
th,td{padding:10px 8px;vertical-align:top}
td{min-width:0;line-height:1.45}
td p{margin:5px 0}
td a{font-family:inherit}
.record-row{padding:12px 0}
.record-row h2,.record-row h3{font:600 17px/1.4 "Segoe UI",Arial,sans-serif;margin:0 0 4px}
.record-row p{font-size:13px;line-height:1.45;margin:4px 0}
.record-row .mono{font-size:12px}
.record-row details{margin:8px 0}
.record-row summary{padding:4px 0}
.record-row a{ text-underline-offset:3px }
body[data-density=compact] th,body[data-density=compact] td{padding:6px 8px}
body[data-density=compact] .record-row{padding:8px 0}

/* Match control width to the kind of value; textareas keep their editing space. */
input:not([type=hidden]){display:block;width:100%;max-width:44rem;min-width:0;min-height:40px;padding:8px 10px;margin:4px 0 12px;font-size:14px}
input[type=number]:not([type=hidden]){width:10rem;font-variant-numeric:tabular-nums}
input[type=date]:not([type=hidden]){width:12rem}
input[type=datetime-local]:not([type=hidden]){width:17rem}
input[type=time]:not([type=hidden]){width:10rem}
input.field-short:not([type=hidden]),input[maxlength="2"]:not([type=hidden]),input[maxlength="3"]:not([type=hidden]),input[maxlength="4"]:not([type=hidden]),input[maxlength="5"]:not([type=hidden]),input[maxlength="6"]:not([type=hidden]){width:8rem}
select{width:auto;max-width:100%;min-width:0;min-height:40px;font-size:14px;padding:8px 30px 8px 10px;margin:4px 0 12px}
input[type=checkbox],input[type=radio]{display:inline-block;width:auto;max-width:none;min-height:0;padding:0;margin:0 8px 0 0;vertical-align:middle}
textarea{display:block;margin:4px 0 12px;line-height:1.5;resize:vertical}
.form-fields{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 24px}
.form-fields>label{flex:0 1 auto;min-width:0;max-width:100%;margin:8px 0}
.form-fields .field-grow{flex:1 1 20rem}
.density select{min-height:32px;margin:0;padding:5px 24px 5px 8px}
@media(max-width:760px){
  .record-row h2,.record-row h3{font-size:16px}
  .form-fields{gap:0 18px}
  input:not([type=hidden]),select,textarea{max-width:100%;font-size:16px}
  button{min-height:44px}
  .density select{font-size:14px}
}

/* Settings use content-sized tracks rather than the two-column reading grid. */
.settings-form{margin:12px 0}
.settings-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 18px;margin:0 0 12px}
.settings-fields>label{flex:0 1 auto;min-width:0;max-width:100%;margin:0;line-height:1.4}
.settings-fields>label:has(input[type=number]){max-width:18rem}
.settings-fields>label:has(input[name=scope_id]){flex:0 1 22rem}
.settings-fields>label:has(input[name=reason]){flex:1 1 28rem;max-width:44rem}
.settings-fields input:not([type=hidden]),.settings-fields select,.settings-fields textarea{margin:4px 0 0}
.settings-fields input[type=number]{width:8.5rem}
.settings-fields select{max-width:24rem}
.settings-fields select[name=mode]{max-width:100%}
.settings-fields input[name=scope_id]{width:22rem}
.settings-fields .field-grow{flex:1 1 22rem}
.settings-form>.check-field{margin:8px 0 12px}
.settings-form fieldset{margin:12px 0;padding:10px 14px}
.settings-form fieldset label{display:inline-flex;align-items:center;margin:4px 18px 4px 0}
.settings-form button{margin:0 6px 0 0}
.settings-form+p{margin-top:12px}
button:disabled{background:#e5dfd5;border-color:#ccc3b5;color:#696156;cursor:not-allowed}
.settings-routes article{padding:14px 0}
.settings-routes article>h3{display:inline-block;margin:0 16px 8px 0}
.settings-routes article>p{display:inline-block;font-size:13px;margin:0 0 8px}
.search-review .table-wrap table{min-width:64rem}
.search-review th:first-child,.search-review td:first-child{min-width:16rem}
.search-review th:nth-child(2),.search-review td:nth-child(2){min-width:9rem}
.search-review th:nth-child(3),.search-review td:nth-child(3){min-width:13rem}
.search-review th:nth-child(4),.search-review td:nth-child(4){min-width:10rem}
.search-review th:last-child,.search-review td:last-child{min-width:16rem}
.search-review td details{margin:6px 0}
.search-review td summary{font-size:13px;padding:4px 0}
.search-review td ul{font-size:13px;margin:6px 0;padding-left:18px}
.cms-task-selector .table-wrap table{min-width:50rem}
.cms-task-selector th:first-child,.cms-task-selector td:first-child{width:4.5rem}
.cms-task-selector th:nth-child(2),.cms-task-selector td:nth-child(2){min-width:17rem}
.cms-task-selector th:nth-child(3),.cms-task-selector td:nth-child(3){min-width:13rem}
.cms-task-selector th:last-child,.cms-task-selector td:last-child{min-width:12rem}
.cms-task-selector .object-choice{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;margin:0}
.cms-task-selector .object-choice input[type=checkbox]{margin:0}
.cms-task-selector .selector-filters input[name=q]{width:20rem;max-width:100%}
.cms-task-selector .selector-filters select[name=cid]{max-width:min(26rem,100%)}
.cms-task-selector .selector-source{font-size:14px;margin:8px 0}
.cms-task-selector .selector-context,.cms-task-selector .selector-limitations{margin:8px 0 14px}
.cms-task-selector .selector-context summary,.cms-task-selector .selector-limitations summary{padding:4px 0}
.cms-task-selector .selector-task fieldset{min-width:0;padding:10px 12px;margin:12px 0}
.cms-task-selector .selector-task h2{font-size:20px;margin:24px 0 10px}
.cms-task-selector .selector-task textarea{max-width:54rem}
@media(max-width:760px){
 .settings-fields{gap:12px 16px}
 .settings-fields>label{max-width:100%}
 .settings-fields select,.settings-fields input[name=scope_id]{max-width:100%}
 .settings-fields>label:has(select){flex-basis:auto}
 .cms-inventory .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .cms-inventory .table-wrap table{min-width:44rem}
 .cms-inventory .table-wrap th:first-child,.cms-inventory .table-wrap td:first-child{min-width:7rem}
 .cms-inventory .table-wrap th:nth-child(2),.cms-inventory .table-wrap td:nth-child(2){min-width:12rem}
 .cms-inventory .table-wrap th:nth-child(3),.cms-inventory .table-wrap td:nth-child(3){min-width:5.5rem}
 .cms-inventory .table-wrap th:last-child,.cms-inventory .table-wrap td:last-child{min-width:18rem}
 .cms-properties .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .cms-properties .table-wrap table{min-width:44rem}
 .cms-properties .table-wrap th:first-child,.cms-properties .table-wrap td:first-child{min-width:12rem}
 .cms-properties .table-wrap th:nth-child(2),.cms-properties .table-wrap td:nth-child(2){min-width:5rem}
 .cms-properties .table-wrap th:nth-child(3),.cms-properties .table-wrap td:nth-child(3){min-width:10rem}
 .cms-properties .table-wrap th:last-child,.cms-properties .table-wrap td:last-child{min-width:17rem}
}
