/* A/B and D keep the frozen warm paper, navy text and restrained orange accents. */
body.ui-v12 .ui-v12-material-card{margin:20px 0 8px;border:1px solid var(--ui-line,#ece1d5);border-radius:22px;background:#fffefb;overflow:hidden;box-shadow:0 5px 20px #42301b0a}
body.ui-v12 .ui-v12-material-header{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:20px;background:linear-gradient(105deg,#fffefb 65%,#fff3e6)}
body.ui-v12 #messages .ui-v12-material-header h3{margin:0;flex:1;font-size:22px;line-height:1.5;font-weight:650;color:var(--ui-ink,#15345b)}
body.ui-v12 .ui-v12-document-icon{display:grid;place-items:center;width:46px;height:50px;flex:none;background:#fcf0e3;border-radius:15px;color:#b75513}
body.ui-v12 .ui-v12-document-icon svg{width:27px;height:27px}
body.ui-v12 .ui-v12-object-meta{font-size:12px;color:#8f8174;white-space:nowrap}
body.ui-v12 .ui-v12-material-body{padding:0 20px 16px;font-size:15px;line-height:1.85;color:var(--ui-ink,#15345b);user-select:text;counter-reset:material-section}
body.ui-v12 #messages .ui-v12-material-body h4{display:flex;align-items:center;gap:10px;margin:18px 0 10px;padding-top:17px;border-top:1px solid #ece1d5;font-size:17px;color:var(--ui-ink,#15345b)}
body.ui-v12 #messages .ui-v12-material-body h4:first-child{border-top:0;padding-top:0}
body.ui-v12 .ui-v12-material-body h4:before{counter-increment:material-section;content:counter(material-section);display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:50%;background:#fcf0e3;color:#b75513;font-size:15px;font-weight:500}
body.ui-v12 #messages .ui-v12-material-body p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}
body.ui-v12 .ui-v12-material-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:13px 20px 18px;background:#fffefb}
body.ui-v12 .ui-v12-object-button{border:1px solid #e2d1bf;border-radius:12px;background:#fff;color:var(--ui-ink,#15345b);padding:9px 13px;font:inherit;font-size:14px;cursor:pointer;min-height:42px}
body.ui-v12 .ui-v12-material-actions>.ui-v12-object-button{flex:1;font-weight:550}
body.ui-v12 .ui-v12-material-actions>.ui-v12-object-button:nth-child(2){border-color:#dfaf88;background:#fff5e9;color:#ad541d}
body.ui-v12 .ui-v12-object-button:hover{background:#fcf1e6}body.ui-v12 .ui-v12-object-button:disabled{opacity:.45;cursor:default}
body.ui-v12 .ui-v12-object-button:focus-visible,body.ui-v12 .ui-v12-peer-summary:focus-visible,body.ui-v12 .ui-v12-version-select:focus-visible{outline:3px solid #e7b586;outline-offset:3px}
body.ui-v12 .ui-v12-object-status,body.ui-v12 .ui-v12-object-notice{font-size:12px;line-height:1.6;color:#8b8073}
body.ui-v12 .ui-v12-object-status{flex-basis:100%}body.ui-v12 .ui-v12-object-status:empty{display:none}
body.ui-v12 .ui-v12-material-intro:empty{display:none}
body.ui-v12 .ui-v12-version-select{font:inherit;font-size:12px;border:1px solid #e2d6c9;border-radius:7px;padding:5px;color:#7b6b5b;background:#fff;max-width:130px}
body.ui-v12 .ui-v12-peer-cards{margin:18px 0 8px}
body.ui-v12 .ui-v12-peer-card{border:1px solid #ece1d5;border-radius:17px;background:#fffefb;margin:10px 0;overflow:hidden}
body.ui-v12 .ui-v12-peer-summary{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:15px 17px;cursor:pointer;list-style:none}
body.ui-v12 .ui-v12-peer-summary::-webkit-details-marker{display:none}
body.ui-v12 .ui-v12-peer-label{font-size:13px;color:#b75513;grid-column:1/-1}
body.ui-v12 .ui-v12-peer-summary strong{font-size:16px;font-weight:600;color:var(--ui-ink,#15345b);grid-column:1/-1}
body.ui-v12 .ui-v12-peer-excerpt{font-size:13px;line-height:1.7;color:#6e7785}
body.ui-v12 .ui-v12-peer-toggle{font-size:12px;align-self:end;color:#97744f;white-space:nowrap}
body.ui-v12 .ui-v12-peer-section{padding:0 17px 12px}
body.ui-v12 #messages .ui-v12-peer-section h4{font-size:13px;margin:5px 0;color:#5c687c}
body.ui-v12 #messages .ui-v12-peer-section p{font-size:13px;line-height:1.75;color:#6e7785;margin:5px 0}
body.ui-v12 .ui-v12-edit-target{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;font-size:12px;color:#8b6e4d}
body.ui-v12 .ui-v12-edit-target .ui-v12-object-button{padding:3px 7px;min-height:28px;font-size:12px;border:0;background:transparent}
@media(max-width:600px){body.ui-v12 .ui-v12-material-header{padding:16px 14px;gap:9px}body.ui-v12 #messages .ui-v12-material-header h3{font-size:20px}body.ui-v12 .ui-v12-document-icon{width:38px;height:43px}body.ui-v12 .ui-v12-material-body{padding:0 14px 12px}body.ui-v12 .ui-v12-material-actions{padding:12px 14px 16px}body.ui-v12 #messages .ui-v12-material-body h4{font-size:16px}}

body.ui-v12 .ui-v12-edit-target{flex-wrap:wrap}
body.ui-v12 .ui-v12-source-error{flex-basis:100%;padding:5px 0 2px;color:#8b5c3b;line-height:1.6}
body.ui-v12 .ui-v12-material-body :is(ul,ol){margin:5px 0 12px;padding-left:22px}
body.ui-v12 .ui-v12-material-body li{padding-left:3px;margin:5px 0}

/* Frozen B/D density: hierarchy lives in section numbers and usable lines. */
body.ui-v12 #messages .ui-v12-material-card{border-radius:18px;margin-top:15px;box-shadow:0 3px 12px #42301b08}
body.ui-v12 #messages .ui-v12-material-header{gap:11px;padding:15px 14px 13px}
body.ui-v12 #messages .ui-v12-material-header h3{font-size:20px;line-height:1.4;font-weight:600}
body.ui-v12 #messages .ui-v12-document-icon{width:42px;height:44px;border-radius:13px;color:#bb581b}
body.ui-v12 :is(.ui-v12-document-icon,.ui-v12-object-icon,.ui-v12-peer-icon,.ui-v12-peer-toggle) svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ui-v12 .ui-v12-document-icon svg{width:26px;height:28px}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body{padding:0 14px 7px;font-size:12px;line-height:1.6;font-weight:400}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body h4{margin:11px 0 6px;padding-top:11px;gap:10px;font-size:15px;font-weight:600;line-height:1.5}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body h4:first-child{padding-top:0;margin-top:8px}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body h4:before{width:26px;height:26px;flex-basis:26px;font-size:14px;font-weight:500;background:#fff0e1;color:#bd5818}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body :is(p,li){font-size:12px;line-height:1.6;font-weight:400;color:var(--ui-ink,#15345b)}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-body p{margin:4px 0}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-lines{margin:4px 0 9px 35px;padding:0 0 0 13px}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-lines li{padding-left:1px;margin:3px 0;overflow-wrap:anywhere}
body.ui-v12 #messages .ui-v12-material-card .ui-v12-material-lines li::marker{color:#bd5818;font-weight:500}
body.ui-v12 #messages .ui-v12-material-actions{padding:10px 14px 13px;gap:9px}
body.ui-v12 #messages .ui-v12-material-actions>.ui-v12-object-button{display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 10px;min-height:40px;font-size:14px;border-radius:10px;font-weight:500}
body.ui-v12 .ui-v12-object-icon{width:20px;height:20px;display:inline-flex;flex:none}
body.ui-v12 #messages .ui-v12-material-header .ui-v12-object-meta{font-size:10px;line-height:1.3}
body.ui-v12 #messages .ui-v12-material-header .ui-v12-version-select{font-size:10px;padding:4px;max-width:112px}
body.ui-v12 #messages .ui-v12-peer-card{border-radius:14px;box-shadow:0 2px 10px #42301b06;margin:9px 0}
body.ui-v12 #messages .ui-v12-peer-summary{grid-template-columns:22px minmax(0,1fr) 18px;gap:5px 8px;padding:11px 12px}
body.ui-v12 #messages .ui-v12-peer-icon{width:21px;height:23px;color:#bd5818;grid-column:1;grid-row:1}
body.ui-v12 #messages .ui-v12-peer-label{grid-column:2;grid-row:1;font-size:14px;line-height:1.5;font-weight:600;color:var(--ui-ink,#15345b)}
body.ui-v12 #messages .ui-v12-peer-title{grid-column:2/-1;font-size:12.5px;line-height:1.6;font-weight:400;color:#5c687c}
body.ui-v12 #messages .ui-v12-peer-excerpt{grid-column:2/-1;font-size:11.5px;line-height:1.6;color:#828a94}
body.ui-v12 #messages .ui-v12-peer-toggle{width:16px;height:16px;grid-column:3;grid-row:1;align-self:center;color:#6e7e95;transition:transform .15s ease}
body.ui-v12 #messages .ui-v12-peer-card[open] .ui-v12-peer-toggle{transform:rotate(180deg)}
body.ui-v12 #messages .ui-v12-peer-section{padding:0 10px 9px}
body.ui-v12 #messages .ui-v12-peer-section h4{font-size:11.5px;font-weight:500;line-height:1.5;margin:1px 3px 5px;color:#7b8490}
body.ui-v12 #messages .ui-v12-peer-items{padding:7px 9px;margin:0;list-style:none;border:1px solid #f5e9dd;border-radius:10px;background:#fdf8f1;counter-reset:peer-item}
body.ui-v12 #messages .ui-v12-peer-items li{display:grid;grid-template-columns:21px minmax(0,1fr);gap:8px;align-items:start;font-size:12.5px;font-weight:400;line-height:1.65;margin:4px 0;color:#5b687b;overflow-wrap:anywhere}
body.ui-v12 #messages .ui-v12-peer-items li:before{counter-increment:peer-item;content:counter(peer-item);display:grid;place-items:center;background:#ffecd7;border-radius:50%;width:20px;height:20px;font-size:12px;color:#bb5718;line-height:1;font-weight:500}
