/* Private editing surfaces are closed until the server resolves account access. */
body:not(.portal-role-admin):not(.portal-role-anonymous) #workspace,
body:not(.portal-role-admin):not(.portal-role-anonymous) .workspace-toolbar,
body:not(.portal-role-admin):not(.portal-role-anonymous) #presentation { display: none !important; }
.account-panel { margin-block: 1.5rem 3rem; padding: clamp(1.1rem,3vw,2.2rem); border: 1px solid #d9c9ac; border-radius: 1.4rem; background: #fffdf8; color: #25251f; }
.account-panel:empty { min-height: 6rem; }
.account-panel:empty::before { content: 'Checking client-room access…'; }
.account-panel h2,.account-panel h3,.account-panel h4 { color: #28271f; margin: 0 0 .7rem; }
.account-panel h2 { font-size: clamp(1.6rem,3vw,2.3rem); }
.account-panel h3 { font-size: 1.2rem; }
.account-panel h4 { font-size: 1rem; }
.account-panel p { line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0 1rem; }
.account-panel .account-muted { font-size: .86rem; color: #625f54; }
.account-heading { display: flex; align-items: center; gap: .6rem 1.1rem; flex-wrap: wrap; }
.account-heading h2 { width: 100%; }
.account-heading p { flex: 1; }
.account-actions,.account-room-select { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.account-room-select .account-field { flex: 1 1 16rem; }
.account-button,.account-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1rem; border-radius: .6rem; font: inherit; font-size: .92rem; border: 1px solid #aa9472; background: #f8f3e7; color: #29281f; text-decoration: none; cursor: pointer; }
.account-button:hover,.account-link:hover { background: #eee3cd; }
.account-primary { background: #303e34; color: #fffdf6; border-color: #303e34; }
.account-primary:hover { background: #465b4b; }
.account-button:disabled { opacity: .5; cursor: not-allowed; }
.account-panel :is(button,a,input,textarea,select,summary):focus-visible { outline: 3px solid #8d6329; outline-offset: 3px; }
.account-field { display: grid; gap: .45rem; margin: .8rem 0; font-size: .9rem; }
.account-field input:not([type=range]),.account-field textarea,.account-field select { width: 100%; min-height: 44px; border: 1px solid #b9b0a1; border-radius: .5rem; background: white; color: #25251f; padding: .7rem; font: inherit; box-sizing: border-box; }
.account-field textarea { min-height: 6rem; resize: vertical; }
.account-field input[type=range] { width: 100%; accent-color: #465b4b; }
.account-field output { font-variant-numeric: tabular-nums; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.account-grid p { grid-column: 1/-1; }
.account-create,.account-save-box,.account-approvals,.account-messages { padding: 1.25rem 0; border-top: 1px solid #ded5c5; margin-top: 1.25rem; }
.account-create summary,.account-variant summary { cursor: pointer; font-weight: 600; padding: .6rem 0; }
.account-error:empty,.account-notice:empty,.account-warning:empty { display: none; }
.account-error,.account-warning { color: #8a331c; background: #fff0e4; border-left: 3px solid #b95d35; padding: .8rem 1rem; }
.account-notice { color: #294b36; background: #edf5ec; padding: .8rem 1rem; border-left: 3px solid #52784e; }
.client-proposal { margin-top: 2rem; }
.account-brief { border-left: 2px solid #c7b28d; padding-left: 1rem; margin: 1.3rem 0; }
.account-options,.account-materials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.account-option,.account-material { background: #f5f1e7; border: 1px solid #dfd4c0; border-radius: .8rem; padding: 1.1rem; min-width: 0; }
.account-option li { white-space: pre-wrap; overflow-wrap: anywhere; margin: .45rem 0; line-height: 1.5; }
.account-plate { width: 100%; height: auto; border-radius: .45rem; margin: .6rem 0 1rem; }
.account-palette { display:flex; flex-wrap:wrap; gap:.5rem 1rem; padding:0; list-style:none; }
.account-palette li { display:flex; align-items:center; gap:.4rem; font: .8rem ui-monospace,monospace; }
.account-swatch { display:inline-block; width:1.4rem; height:1.4rem; border:1px solid #8b806e; border-radius:.25rem; }
.account-code { font-family: ui-monospace,monospace; font-size: .8rem; letter-spacing: .08em; }
.account-variant { margin-top: 1.5rem; border-top: 1px solid #d9cbb4; }
.account-check { display: flex; gap: .7rem; line-height: 1.5; align-items: flex-start; margin: 1rem 0; }
.account-check input { margin-top: .2rem; width: 20px; height: 20px; flex: 0 0 auto; accent-color: #465b4b; }
.account-message-list { padding: 0; list-style: none; display: grid; gap: .8rem; max-height: 34rem; overflow: auto; }
.account-message { background: #f0ece2; border: 1px solid #ded4c1; border-radius: .8rem; padding: .8rem 1rem; max-width: 92%; }
.account-message.own-message { background: #eaf0e7; border-color: #cbd7c8; margin-left: auto; width: 92%; }
.account-message p:last-child { margin-bottom: .2rem; }
.enterprise-room { display:grid; grid-template-columns: 190px minmax(0,1fr); gap:1.5rem; margin-top:2rem; }
.enterprise-sidebar { display:flex; align-items:stretch; flex-direction:column; gap:.5rem; background:#29382f; color:#f7f2e7; border-radius:.9rem; padding:1.1rem; align-self:start; position:sticky; top:5rem; }
.enterprise-sidebar h3,.enterprise-sidebar .account-muted { color:#f7f2e7; }
.enterprise-sidebar .account-button { justify-content:flex-start; text-align:left; background:transparent; color:#f7f2e7; border-color:#637365; }
.enterprise-sidebar .account-button.active { background:#e5d5b8; color:#29382f; }
.enterprise-panel { min-width:0; }
.account-bulletin { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.3rem; padding:.5rem; }
.account-asset { border:1px solid #d6c7aa; background:#fffaf0; padding:1.1rem; border-radius:.7rem; box-shadow:0 8px 20px #4b3a1615; min-width:0; transition:transform .18s,box-shadow .18s; }
.account-asset:nth-child(3n+1) { transform:rotate(-.6deg); }.account-asset:nth-child(3n+2) { transform:rotate(.6deg); }
.account-asset:hover,.account-asset:focus-within { transform:translateY(-3px); box-shadow:0 12px 22px #4b3a1628; }
.account-asset h4 { overflow-wrap:anywhere; }.account-asset .account-link,.account-asset .account-button { margin:.4rem .4rem 0 0; }
.account-asset-preview summary { padding:.8rem 0; cursor:pointer; }.account-asset-preview :is(img,video,iframe) { width:100%; max-height:22rem; border:0; border-radius:.5rem; object-fit:contain; }.account-asset-preview iframe { height:22rem; background:white; }
.account-empty-board { padding:3rem 1rem; text-align:center; border:1px dashed #b9aa8d; border-radius:1rem; }
.account-contact,.account-upload,.account-add-contact { padding:1rem; border:1px solid #ded4c1; border-radius:.7rem; margin:1rem 0; }
.account-permissions { border:1px solid #ded4c1; border-radius:.5rem; padding:.5rem .8rem; }.account-permissions .account-check { margin:.5rem 0; }
.account-message-context { font-size:.75rem; font-weight:600; color:#486043; text-transform:uppercase; letter-spacing:.04em; }
.account-audience { font-size:.8rem; border-left:3px solid #6a7c61; padding-left:.6rem; color:#344a35; }
.account-proofs { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid #ded5c5; }
.account-proof { margin:1rem 0; padding:1rem; background:#f5f1e7; border:1px solid #dfd4c0; border-radius:.7rem; }
.account-proof h4 { overflow-wrap:anywhere; }.account-proof summary { padding:.8rem 0; cursor:pointer; }
.account-proof-json { max-height:24rem; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:.78rem/1.5 ui-monospace,monospace; }
.account-proof-metrics { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.5rem 1rem; font-size:.85rem; }.account-proof-metrics dd { margin:0; font-variant-numeric:tabular-nums; }
.account-project-select { display:flex; align-items:end; flex-wrap:wrap; gap:.75rem; margin-top:1.25rem; border-top:1px solid #ded5c5; padding-top:.75rem; }.account-project-select>.account-field { flex:1 1 16rem; }.account-project-select>.account-muted { width:100%; }
@media(max-width:850px) { .enterprise-room { grid-template-columns:1fr; }.enterprise-sidebar { position:static; display:grid; grid-template-columns:1fr 1fr; }.enterprise-sidebar h3,.enterprise-sidebar p { grid-column:1/-1; } }
@media(max-width:640px) { .account-bulletin { grid-template-columns:minmax(0,1fr); }.account-asset:nth-child(n) { transform:none; } }
@media(prefers-reduced-motion:reduce) { .account-asset { transition:none; }.account-asset:hover { transform:none; } }
@media(max-width:640px) { .account-options,.account-materials,.account-grid { grid-template-columns: minmax(0,1fr); }.account-grid p { grid-column: auto; }.account-actions>* { flex: 1 1 auto; }.account-heading p { flex-basis: 100%; }.account-panel { border-radius: .9rem; }.account-message { max-width: 100%; }.account-message.own-message { width: 100%; } }
@media print { .account-heading .account-link,.account-room-select,.account-create,.account-save-box,.account-variant,.account-approvals,.account-messages,.account-actions { display:none !important; }.account-panel { border:0; padding:0; }.account-options { grid-template-columns:1fr 1fr; }.account-option { break-inside:avoid; } }
