:root{
  color:#222;
  background:#fbfbfb;
  font-family:"Helvetica Neue",Arial,sans-serif;
  font-synthesis:none;
  --line:#d8d8d8;
  --soft:#f1f1f1;
  --muted:#6f6f6f;
  --ink:#191919;
  --danger:#a82c22;
  --good:#22623d;
  --warn:#8b5a00;
  --paper:#fff;
  --sidebar:17.5rem;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#fbfbfb;color:#222}
body{font-size:16px;letter-spacing:.018rem}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:1px solid var(--ink);background:var(--ink);color:#fff;letter-spacing:.07rem;text-transform:uppercase;border-radius:0;justify-content:center;align-items:center;gap:.5rem;min-height:2.65rem;padding:.65rem 1rem;font-family:Arial,sans-serif;font-size:.72rem;font-weight:700;text-decoration:none;display:inline-flex}
button.secondary{background:#fff;color:#191919}
button.ghost{background:transparent;color:#333;border-color:transparent}
button.danger{background:#fff;color:var(--danger);border-color:var(--danger)}
button.compact{min-height:2.1rem;padding:.4rem .65rem;font-size:.64rem}
button:disabled{cursor:not-allowed;opacity:.45}
a{color:inherit}
input,select,textarea{width:100%;border:1px solid #bdbdbd;background:#fff;color:#222;border-radius:0;padding:.72rem .78rem;outline:none}
input:focus,select:focus,textarea:focus{border-color:#191919;box-shadow:0 0 0 1px #191919}
label{display:grid;gap:.35rem;color:#333;font-size:.75rem;font-weight:700;letter-spacing:.05rem;text-transform:uppercase}
small,.muted{color:var(--muted)}
.micro{margin:0 0 .45rem;color:#666;letter-spacing:.12rem;text-transform:uppercase;font-size:.66rem;font-weight:700}
h1,h2,h3{font-family:Arial,sans-serif;color:#191919;margin-top:0;letter-spacing:-.04em}
h1{font-size:clamp(2rem,4vw,3.6rem);line-height:.94;margin-bottom:.7rem}
h2{font-size:1.6rem;margin-bottom:.7rem}
h3{font-size:1.08rem;margin-bottom:.45rem;letter-spacing:-.025em}
p{line-height:1.55}
.boot{min-height:100vh;display:grid;place-items:center;font-size:.75rem;letter-spacing:.1rem;font-weight:700}
.shell{min-height:100vh}
.sidebar{z-index:30;border-right:1px solid var(--line);background:#fbfbfb;flex-direction:column;width:var(--sidebar);padding:2.2rem 1.25rem;display:flex;position:fixed;inset:0 auto 0 0}
.sidebar-head{border-bottom:1px solid var(--line);padding:0 .65rem 1.25rem;margin-bottom:1.25rem}
.sidebar-brand{font-size:1rem;font-weight:800;letter-spacing:.03rem}
.sidebar-sub{font-size:.68rem;color:#777;margin-top:.25rem;letter-spacing:.08rem;text-transform:uppercase}
.sidebar nav{gap:.2rem;display:grid}
.sidebar nav button,.sidebar-foot button{color:#333;background:transparent;border-color:transparent;justify-content:flex-start;width:100%;min-height:2.45rem;padding:.55rem .75rem}
.sidebar nav button:hover,.sidebar nav button.active{background:#eaeaea}
.sidebar nav button.active{border-left:2px solid #222}
.sidebar-foot{gap:.65rem;margin-top:auto;display:grid;border-top:1px solid var(--line);padding-top:1rem}
.sidebar-user{color:#777;text-overflow:ellipsis;padding:.35rem .75rem;font-size:.78rem;overflow:hidden;white-space:nowrap}
.main{margin-left:var(--sidebar);min-height:100vh}
.topbar{z-index:20;border-bottom:1px solid var(--line);background:#fbfbfbf2;display:flex;justify-content:space-between;align-items:center;min-height:5rem;padding:1rem 2rem;position:sticky;top:0;backdrop-filter:blur(12px)}
.topbar-title{font-weight:800;letter-spacing:.03rem}.topbar-right{display:flex;gap:.6rem;align-items:center}.topbar-version{font-size:.7rem;color:#777;letter-spacing:.06rem;text-transform:uppercase}
.content{padding:2rem;max-width:1500px;margin:0 auto}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.5rem;padding-bottom:1.35rem;border-bottom:1px solid var(--line)}
.page-head p{margin:.3rem 0 0;color:#666;max-width:58rem}.page-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.grid{display:grid;gap:1rem}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{border:1px solid var(--line);background:#fff;padding:1.4rem;min-width:0}.card.soft{background:#f7f7f7}.card.danger-zone{border-left:3px solid var(--danger)}
.metric-label{color:#777;letter-spacing:.08rem;text-transform:uppercase;font-size:.67rem;font-weight:700}.metric-value{font-size:2rem;font-weight:800;letter-spacing:-.04em;margin:.4rem 0}.metric-sub{font-size:.8rem;color:#777}
.status{letter-spacing:.06rem;text-transform:uppercase;border:1px solid #aaa;padding:.18rem .48rem;font-size:.68rem;display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}
.status.good{color:var(--good);border-color:#7aa88b}.status.warn{color:var(--warn);border-color:#c6a25f}.status.bad{color:var(--danger);border-color:#cf8f89}.status.neutral{color:#555;border-color:#aaa}
.table-wrap{overflow:auto;border:1px solid var(--line);background:#fff}
table{border-collapse:collapse;background:#fff;width:100%;min-width:760px}th,td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e2e2;padding:.85rem .75rem}th{color:#777;letter-spacing:.07rem;text-transform:uppercase;font-size:.66rem;font-weight:700;background:#fafafa;position:sticky;top:0;z-index:1}td{font-size:.88rem}tbody tr:hover td{background:#fafafa}.num{text-align:right;font-variant-numeric:tabular-nums}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.78rem;overflow-wrap:anywhere}
.toolbar{display:flex;gap:.6rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}.toolbar .grow{flex:1 1 18rem}.toolbar label{min-width:10rem}.toolbar button{flex:0 0 auto}
.progress{height:8px;background:#ececec;overflow:hidden;border:1px solid #ddd}.progress>span{height:100%;display:block;background:#191919;max-width:100%}
.health-list{display:grid;border:1px solid var(--line);background:#fff}.health-row{display:grid;grid-template-columns:minmax(0,1fr) 9.5rem;gap:1rem;align-items:center;padding:.85rem 1rem;border-bottom:1px solid #e5e5e5}.health-row:last-child{border-bottom:0}.health-name{font-weight:700;min-width:0}.health-row>.status{justify-self:end}
.notice{border-left:3px solid #777;background:#f5f5f5;padding:1rem;margin:1rem 0;line-height:1.5}.notice.good{border-left-color:var(--good);background:#edf7f0}.notice.warn{border-left-color:var(--warn);background:#fff8e8}.notice.error{border-left-color:var(--danger);background:#fff0ef;color:#671c16}
.empty{border:1px dashed #bbb;padding:2rem;text-align:center;color:#777;background:#fff}
.mail-layout{display:grid;grid-template-columns:minmax(18rem,.7fr) minmax(28rem,1.5fr);gap:1rem}.mail-list{display:grid;gap:.55rem}.mail-item{width:100%;text-align:left;justify-content:flex-start;background:#fff;color:#222;border-color:#d0d0d0;text-transform:none;letter-spacing:0;font-size:.84rem}.mail-item.active{background:#191919;color:#fff}.mail-item span{display:block}.mail-item small{display:block;margin-top:.25rem;color:inherit;opacity:.7}.mail-preview-frame{width:100%;height:620px;border:1px solid var(--line);background:#f3eee7}.mail-meta{display:grid;gap:.5rem;margin-bottom:1rem}.mail-meta div{display:grid;grid-template-columns:7rem 1fr;gap:1rem;font-size:.82rem}.mail-meta span{color:#777;text-transform:uppercase;letter-spacing:.05rem;font-size:.68rem;font-weight:700}
.log-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.log-toolbar button.active{background:#191919;color:#fff}.log-toolbar button:not(.active){background:#fff;color:#191919}.log-row-details{white-space:pre-wrap;word-break:break-word;max-width:42rem}.log-level-error{color:var(--danger);font-weight:700}.log-level-warn{color:var(--warn);font-weight:700}
.backup-grid{display:grid;grid-template-columns:minmax(18rem,.7fr) minmax(28rem,1.5fr);gap:1rem}.backup-card{border:1px solid var(--line);background:#fff;padding:1.25rem}.backup-actions{display:flex;gap:.45rem;flex-wrap:wrap}.backup-password{margin-top:.9rem}.backup-meta{display:grid;gap:.4rem;font-size:.82rem}.backup-meta>div{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #eee;padding:.35rem 0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.field-note{font-size:.75rem;color:#777;text-transform:none;letter-spacing:0;font-weight:400;line-height:1.4}
.modal-backdrop{position:fixed;inset:0;background:#0008;z-index:100;display:grid;place-items:center;padding:1rem}.modal{width:min(760px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:#fff;border:1px solid #222;padding:1.5rem}.modal-head{display:flex;justify-content:space-between;gap:1rem;align-items:start;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}.modal-head button{width:auto;min-width:2.5rem}.modal-actions{display:flex;justify-content:flex-end;gap:.55rem;flex-wrap:wrap;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--line)}
.toast-wrap{position:fixed;right:1rem;bottom:1rem;z-index:200;display:grid;gap:.5rem;width:min(28rem,calc(100vw - 2rem))}.toast{border:1px solid #222;background:#fff;padding:.9rem 1rem;box-shadow:0 8px 30px #0002;font-size:.85rem}.toast.error{border-color:var(--danger)}.toast.good{border-color:var(--good)}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:1rem;background:#f1f1f1}.auth-card{width:min(600px,100%);border:1px solid #191919;background:#fff;padding:clamp(1.5rem,5vw,3rem)}.auth-card h1{font-size:clamp(2.5rem,7vw,4.5rem)}.auth-card button{margin-top:.5rem}.auth-small{font-size:.75rem;color:#777;margin-top:1rem}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:1rem;background:#f1f1f1}.login-card{width:min(560px,100%);border:1px solid #191919;background:#fff;padding:clamp(1.5rem,5vw,3rem)}.login-card h1{font-size:clamp(2.5rem,7vw,4.4rem)}.login-card form{display:grid;gap:.8rem;margin-top:1.5rem}.login-card .brandline{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem;color:#777;font-size:.75rem}
.kv{display:grid;grid-template-columns:minmax(10rem,.45fr) minmax(0,1fr);border-top:1px solid #e4e4e4}.kv>div{padding:.75rem;border-bottom:1px solid #e4e4e4}.kv>div:nth-child(odd){font-size:.7rem;color:#777;text-transform:uppercase;letter-spacing:.06rem;font-weight:700}.codebox{background:#111;color:#eee;padding:1rem;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;line-height:1.5}
.mobile-menu{display:none}
@media(max-width:1050px){.grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mail-layout,.backup-grid{grid-template-columns:1fr}.mail-preview-frame{height:520px}}
@media(max-width:850px){:root{--sidebar:0rem}.sidebar{width:17.5rem;transform:translateX(-105%);transition:transform .2s}.sidebar.open{transform:none;box-shadow:30px 0 80px #0003}.main{margin-left:0}.mobile-menu{display:inline-flex}.content{padding:1rem}.topbar{padding:1rem}.page-head{align-items:flex-start;flex-direction:column}.grid.cols-2,.grid.cols-3,.grid.cols-4,.form-grid{grid-template-columns:1fr}.health-row{grid-template-columns:minmax(0,1fr) 9.5rem}.mail-meta div{grid-template-columns:1fr}.modal{padding:1rem}}
@media(max-width:560px){.topbar-title{font-size:.84rem}.topbar-version{display:none}.toolbar{display:grid;grid-template-columns:1fr;width:100%}.toolbar>*{width:100%}.backup-actions{display:grid;grid-template-columns:1fr}.backup-actions button{width:100%}}

.customer-record-metrics{margin-bottom:1.25rem}.record-section{margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid var(--line)}.record-section h3{font-size:1.15rem;margin:.15rem 0 .75rem}.record-section .table-wrap{max-height:18rem}.record-section td .muted{margin-top:.2rem}

.testimonial-card>img{width:100%;height:200px;object-fit:cover;margin-bottom:.8rem}.testimonial-no-photo{height:120px;display:grid;place-items:center;background:#f3f3f3;color:#777;font-size:.72rem;margin-bottom:.8rem}.testimonial-copy{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.row-actions{display:flex;gap:.4rem;margin-top:1rem}.row-actions button{width:auto}


/* FOH Storage: grouped inventory, not one tile per statistic */
.storage-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.storage-panel{padding:1.6rem 1.7rem}
.storage-panel-title{display:flex;align-items:start;justify-content:space-between;gap:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.storage-panel-title .micro{margin-bottom:.4rem}
.storage-panel-title h2{margin:0;font-size:1.45rem}
.storage-timestamp{flex-shrink:0;font-size:.7rem;color:var(--muted);padding-top:.15rem;text-align:right}
.storage-primary{padding:1.5rem 0 1.4rem}
.storage-primary-label{font-size:.67rem;font-weight:700;color:var(--muted);letter-spacing:.08rem}
.storage-primary-value{font-size:clamp(2.25rem,3.8vw,3.2rem);font-family:Arial,sans-serif;font-weight:800;letter-spacing:-.055em;line-height:1.2;color:var(--ink);display:block;margin:.25rem 0}
.storage-primary-note,.storage-footnote{font-size:.78rem;color:var(--muted);margin:.3rem 0 0;line-height:1.5}
.storage-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.6rem}
.storage-fact{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;border-top:1px solid #ebebeb;padding:.8rem 0;font-variant-numeric:tabular-nums}
.storage-fact dt{font-size:.7rem;font-weight:700;letter-spacing:.04rem;color:#666}
.storage-fact dd{margin:0;font-size:.93rem;font-weight:700;text-align:right;color:var(--ink);overflow-wrap:anywhere}
.storage-quota-figure{display:flex;gap:.55rem;align-items:baseline;flex-wrap:wrap}
.storage-quota-figure>span{font-size:1rem;color:#555;font-weight:600}
.storage-quota-progress{height:7px;background:#ececec;margin:.8rem 0;border:1px solid #dedede;overflow:hidden}
.storage-quota-progress>span{height:100%;display:block;background:#191919}
.storage-panel>.storage-footnote{padding-top:.7rem}
.storage-inline-warning{font-size:.79rem;margin:.6rem 0 0;color:#85500f}
.storage-records{margin-top:1rem;padding:1.5rem 1.7rem}
.storage-record-columns,.storage-more-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;padding-top:1.4rem}
.storage-record-columns>div,.storage-more-content>div{min-width:0}
.storage-record-columns h3,.storage-more-content h3{font-size:.9rem;letter-spacing:0;margin:0 0 .75rem}
.storage-ledger{margin:0}
.storage-ledger .storage-fact dt{font-weight:500}
.storage-ledger .storage-fact dd{font-size:.83rem}
.storage-ledger .storage-fact dt{min-width:0;overflow-wrap:break-word}
.storage-records .table-wrap{border:0}
.storage-records table{min-width:0}
.storage-records th,.storage-records td{padding:.75rem .45rem}
.storage-records td{overflow-wrap:anywhere;font-size:.78rem}
.storage-more{border-top:1px solid var(--line);margin-top:1.4rem;padding-top:1rem}
.storage-more>summary{cursor:pointer;font-size:.7rem;font-weight:700;letter-spacing:.085rem;user-select:none;list-style-position:inside;padding:.45rem 0}
.storage-more>summary:hover{text-decoration:underline}
.storage-more-content{padding-top:1.1rem}
@media(max-width:1100px){.storage-layout,.storage-record-columns,.storage-more-content{grid-template-columns:1fr}.storage-record-columns,.storage-more-content{gap:1.4rem}.storage-primary-value{font-size:2.6rem}}
@media(max-width:560px){.storage-panel,.storage-records{padding:1.1rem}.storage-facts{grid-template-columns:1fr}.storage-panel-title{flex-wrap:wrap}.storage-records table{min-width:580px}.storage-ledger .storage-fact{gap:.4rem;flex-wrap:wrap}.storage-ledger .storage-fact dd{margin-left:auto}.storage-records .table-wrap{max-width:100%;overflow-x:auto}}

/* 120px testimonial portrait crop, identical on FOH and public homepage */
.testimonial-crop-editor{display:grid;grid-template-columns:165px minmax(0,1fr);gap:1.2rem;border:1px solid var(--line);padding:1.2rem;margin-top:1rem;align-items:start}
.testimonial-crop-preview{width:120px;height:120px;position:relative;overflow:hidden;border-radius:50%;background:#ededed;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab;user-select:none;margin:0 auto}
.testimonial-crop-preview:active{cursor:grabbing}
.testimonial-crop-preview img{width:120px;height:120px;object-fit:cover;display:block;max-width:none;filter:grayscale(1);pointer-events:none}
.testimonial-crop-preview img[hidden]{display:none}
.testimonial-crop-preview span{font-size:.58rem;text-align:center;max-width:100px;color:#777}
.testimonial-crop-preview span[hidden]{display:none}
.testimonial-crop-controls{display:grid;gap:.8rem}
.testimonial-crop-controls label{display:block;font-size:.68rem;letter-spacing:.04em}
.testimonial-crop-controls output{float:right;font-weight:600}
.testimonial-crop-controls input[type=range]{width:100%;display:block;accent-color:#191919;cursor:pointer;margin:.3rem 0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent}
.testimonial-crop-controls input[type=range]:focus{border:0;outline:none;box-shadow:none}
/* Keyboard focus highlights the thumb, not the entire slider as a black rectangle. */
.testimonial-crop-controls input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #19191944}
.testimonial-crop-controls input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px #19191944}
.testimonial-crop-controls button{justify-self:start}
.testimonial-list-portrait{display:block;width:120px;height:120px;border-radius:50%;overflow:hidden;margin:0 auto .8rem}
.testimonial-list-portrait img{display:block;width:120px;height:120px;object-fit:cover;filter:grayscale(1);max-width:none;margin:0}
@media(max-width:560px){.testimonial-crop-editor{grid-template-columns:1fr}.testimonial-crop-preview{margin:.6rem auto}}

/* Website motifs editor only. Existing FOH design untouched. */
.motif-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.motif-preview-grid figure{margin:0;min-width:0}.motif-preview-grid figcaption{font-size:11px;letter-spacing:.12em;font-weight:700;margin-bottom:7px}
.motif-preview{height:240px;overflow:hidden;border:1px solid #aaa;display:flex;align-items:center;justify-content:center;font-size:12px;text-align:center}
.motif-preview img{max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:640px){.motif-preview-grid{grid-template-columns:1fr}.motif-preview{height:200px}}

/* Testimonial Retro Print: approval-only preview, isolated from the existing crop editor. */
.testimonial-retro-editor{border-top:1px solid #d5d5d5;margin-top:1rem;padding-top:1rem}
.testimonial-retro-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.testimonial-retro-controls output{float:right;font-weight:400}
.testimonial-retro-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:1rem 0}
.testimonial-retro-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0;text-align:center}
.testimonial-retro-frame{width:120px;height:120px;max-width:100%;display:block;overflow:hidden;border-radius:50%;margin:8px auto;border:1px solid #173e30}
.testimonial-retro-frame img{width:100%;height:100%;object-fit:cover;max-width:none;display:block}
@media(max-width:550px){.testimonial-retro-controls{grid-template-columns:1fr}.testimonial-retro-compare{gap:.4rem}}

.testimonial-retro-compare[hidden],.testimonial-retro-actions[hidden]{display:none!important}

/* Keep retro adjustment sliders visually consistent with the crop slider. */
.testimonial-retro-controls input[type=range]{width:100%;display:block;accent-color:#191919;cursor:pointer;margin:.3rem 0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent}
.testimonial-retro-controls input[type=range]:focus{border:0;outline:none;box-shadow:none}
.testimonial-retro-controls input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #19191944}

/* Native FOH confirmation for Retro Print and website motif actions. */
.foh-confirm-backdrop{position:fixed;inset:0;z-index:150;display:grid;place-items:center;background:#0009;padding:1rem}
.foh-confirm{background:#fff;border:1px solid var(--ink);padding:1.5rem;width:min(460px,100%);max-height:calc(100vh - 2rem);overflow-y:auto;box-shadow:6px 6px 0 #191919}
.foh-confirm .modal-head{margin:0 0 1rem;padding-bottom:.9rem}
.foh-confirm .modal-head h2{font-size:1.45rem;line-height:1.1;margin:.1rem 0 0}
.foh-confirm>p{font-size:.87rem;line-height:1.55;margin:.8rem 0 1.25rem;overflow-wrap:anywhere}
.foh-confirm .modal-actions{margin-top:0}
.foh-confirm .danger-confirm{background:#a82c22;border-color:#a82c22}
@media(max-width:550px){.foh-confirm{padding:1rem}.foh-confirm .modal-actions{display:grid;grid-template-columns:1fr 1fr}.foh-confirm .modal-actions button{min-width:0}}
/* An approved Retro Print derivative is shown in colour, both in the list and on the public homepage.
   Keep legacy original photos grayscale; only the published variant bypasses this filter. */
.testimonial-list-portrait img[data-testimonial-retro="1"]{filter:none}

/* Keep this checkbox and its text on one line; do not inherit the grid layout of other form labels. */
.testimonial-remove-photo{display:inline-flex;align-items:center;gap:.55rem;margin-top:.75rem;cursor:pointer;max-width:100%;width:max-content}
.testimonial-remove-photo input[type=checkbox]{width:1rem;height:1rem;margin:0;padding:0;flex:0 0 auto;accent-color:var(--ink)}

/* Testimonial editor only: viewport-contained header, scrollable fields, persistent actions.
   Do not affect the other FOH dialogs or the public site layout. */
.modal.testimonial-modal {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
  max-height:calc(100vh - 2rem);
  max-height:calc(100dvh - 2rem);
}
.testimonial-modal > .modal-head {
  flex:0 0 auto;
  margin:0;
  padding:1.5rem 1.5rem 1rem;
}
.testimonial-modal #testimonialForm {
  min-height:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.testimonial-modal .testimonial-form-scroll {
  min-height:0;
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  padding:1rem 1.5rem .75rem;
  overscroll-behavior:contain;
}
.testimonial-modal #testimonialForm > .modal-actions {
  flex:0 0 auto;
  margin:0;
  padding:1rem 1.5rem;
  background:#fff;
  border-top:1px solid var(--line);
}
@media(max-width:850px){
  .testimonial-modal > .modal-head {padding:1rem 1rem .85rem}
  .testimonial-modal .testimonial-form-scroll {padding:.85rem 1rem .5rem}
  .testimonial-modal #testimonialForm > .modal-actions {padding:.8rem 1rem}
}
@media(max-height:460px){
  .testimonial-modal > .modal-head {padding:.5rem 1rem}
  .testimonial-modal > .modal-head h2 {font-size:1.2rem;margin:0}
  .testimonial-modal #testimonialForm > .modal-actions {padding:.5rem 1rem}
}

/* v0.1.18: compact security review panel only, matching the existing FOH design */
.moderation-item h2{font-size:1rem;letter-spacing:0;line-height:1.35;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.moderation-item .row-actions{flex-wrap:wrap}
.sidebar nav{min-height:0;overflow-y:auto}
.moderation-item .kv>div{overflow-wrap:anywhere}
@media(max-width:420px){.moderation-item .kv{grid-template-columns:1fr}.moderation-item .kv>div{padding:.5rem 0}}

/* v0.1.19: Stripe synchronization action, preserving existing FOH layout. */
.stripe-sync-panel{margin:18px 0;padding:22px}.stripe-sync-panel h2{margin:4px 0 10px}.stripe-sync-panel ul{margin:10px 0 16px;padding-left:22px}.stripe-sync-panel li{margin-bottom:6px}.stripe-sync-panel .modal-actions a{display:inline-flex;align-items:center;text-decoration:none}.stripe-sync-panel button:disabled{opacity:.48;cursor:not-allowed}

/* v0.1.20: Website-only admin tabs; no changes to public website styling. */
.website-subtabs{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0 0 1.5rem;border-bottom:1px solid var(--line);padding:0 0 .7rem}
.website-subtab{display:inline-block;padding:.6rem .9rem;border:1px solid var(--line);font-size:.7rem;font-weight:800;letter-spacing:.06em;text-decoration:none;color:var(--ink);background:#fff}
.website-subtab.active,.website-subtab[aria-current="page"]{background:#191919;color:#fff;border-color:#191919}
.website-subtab:focus-visible{outline:2px solid #191919;outline-offset:2px}

/* FOH v0.1.21: access-maintenance controls, within existing neutral admin theme. */
.maintenance-settings {margin-top:1.25rem}
.maintenance-settings form{display:flex;flex-direction:column;gap:1rem;margin-top:1.25rem}
.maintenance-settings .maintenance-toggle{display:flex;align-items:center;gap:.75rem;font-weight:800;letter-spacing:.02em}
.maintenance-settings .maintenance-toggle input{width:18px;height:18px;flex:none}
.maintenance-settings textarea {resize:vertical}
.maintenance-settings .notice p{margin:.5rem 0 0}

/* Newsletter intake toggle only: checkbox sits immediately to the left of its label. */
.newsletter-enabled-label{display:inline-flex;align-items:center;gap:.55rem;width:max-content;max-width:100%;cursor:pointer}
.newsletter-enabled-label input[type=checkbox]{width:1rem;height:1rem;padding:0;margin:0;flex:0 0 auto;accent-color:var(--ink)}

/* Newsletter CSV review: inspect every row and explicitly choose eligible imports. */
.newsletter-import-panel{border:1px solid var(--line);padding:1rem;margin-top:1rem;background:#fff}
.newsletter-import-panel[hidden]{display:none}
.newsletter-import-heading{display:flex;gap:1rem;align-items:start;justify-content:space-between;flex-wrap:wrap}
.newsletter-import-heading h3{margin:.15rem 0}
.newsletter-import-counts{font-size:.8rem;font-weight:700;line-height:1.6;max-width:24rem}
.newsletter-import-controls{display:flex;align-items:end;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.newsletter-import-controls label{width:12rem;max-width:100%}
.newsletter-import-controls input,.newsletter-import-controls select{padding:.6rem}
.newsletter-import-table{max-height:490px;overscroll-behavior:contain}
.newsletter-import-table table{min-width:980px}
.newsletter-import-table th,.newsletter-import-table td{padding:.65rem .7rem}
.newsletter-import-table td:first-child,.newsletter-import-table th:first-child{text-align:center}
.newsletter-import-table input[type=checkbox]{width:1.05rem;height:1.05rem;cursor:pointer;accent-color:#191919}
.newsletter-import-table input[type=checkbox]:disabled{cursor:not-allowed}
.newsletter-import-excluded{color:#777}
.newsletter-import-reason{color:#666;font-size:.74rem;line-height:1.4;margin-top:.4rem;max-width:20rem}


/* v0.1.36 - Newsletter workspace only: existing neutral FOH design */
.newsletter-workspace-nav{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin:.5rem 0 1rem;padding:0 0 .8rem;border-bottom:1px solid var(--line)}
.newsletter-workspace-tab{background:#fff;color:var(--ink);border:1px solid var(--line);font-size:.71rem;font-weight:800;letter-spacing:.035em;padding:.8rem .9rem;min-width:0}
.newsletter-workspace-tab.active,.newsletter-workspace-tab[aria-selected="true"]{background:#191919;color:#fff;border-color:#191919}
.newsletter-workspace-tab:focus-visible{outline:2px solid #191919;outline-offset:2px}
.newsletter-current-section{font-size:.7rem;color:#666;letter-spacing:.05em;margin-bottom:1.1rem}
.newsletter-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:0 0 .9rem}
.newsletter-overview-metric{min-width:0;border:1px solid var(--line);padding:1.25rem;background:#fff;display:flex;flex-direction:column;gap:.55rem}
.newsletter-overview-metric>span{font-size:.65rem;font-weight:800;letter-spacing:.08em}
.newsletter-overview-metric>strong{font-size:clamp(1.3rem,2.3vw,2rem);font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.newsletter-overview-metric>small{color:#666;font-size:.75rem;line-height:1.5}
.newsletter-overview-card{margin-top:1rem}
.newsletter-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1.2rem 0}
.newsletter-shortcuts button{text-align:left;min-height:3rem}
.newsletter-overview-foot{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0;font-size:.7rem;color:#666;letter-spacing:.035em}
.newsletter-overview-foot span{border:1px solid var(--line);padding:.6rem .75rem;background:#fff}
.newsletter-subsection{margin-top:0}
.newsletter-section-explainer{color:#555;font-size:.85rem;max-width:52rem;margin:.6rem 0 1.3rem;line-height:1.55}
.newsletter-subsection>.row-actions{margin-bottom:.9rem}
.newsletter-provider-picker{display:block;max-width:32rem;margin:0 0 1.25rem}
.newsletter-import-intro{border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}
.newsletter-import-intro h3,.newsletter-transfer-export h3{font-size:1.08rem;margin:.35rem 0}
.newsletter-workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:1rem 0}
.newsletter-workflow-steps span{border-top:3px solid #ccc;background:#f7f7f7;padding:.65rem .55rem;font-size:.63rem;line-height:1.4;font-weight:800}
.newsletter-workflow-steps span.is-active{border-top-color:#191919;background:#eaeaea;color:#191919}.newsletter-workflow-steps span.is-complete{border-top-color:#52705f}
.newsletter-transfer-export{border-top:1px solid var(--line);padding-top:1.2rem;margin:1.5rem 0 0}
.newsletter-transfer-export-row{display:flex;flex-wrap:wrap;align-items:end;gap:.6rem;margin:1rem 0}
.newsletter-transfer-export-row label{flex:1 1 13rem;max-width:25rem}
.newsletter-transfer-export-row button{min-height:2.7rem}
.newsletter-export-footnote{font-size:.72rem;color:#777;line-height:1.5}
.newsletter-list-id code,.newsletter-subscriber-detail code{overflow-wrap:anywhere;font-size:.73rem}
.newsletter-list-id summary,.newsletter-subscriber-detail summary{cursor:pointer;text-decoration:underline;text-underline-offset:2px;font-weight:750;font-size:.73rem;white-space:nowrap}
.newsletter-subscriber-detail dl{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(130px,1.3fr);gap:.6rem;margin:.8rem 0;min-width:260px;font-size:.75rem}
.newsletter-subscriber-detail dt{color:#666;font-weight:700}
.newsletter-subscriber-detail dd{margin:0;overflow-wrap:anywhere}
.newsletter-subscribers-table td{vertical-align:top}
.newsletter-subscribers-table strong{font-weight:700;overflow-wrap:anywhere}
.newsletter-pager{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;margin-top:.8rem}
[data-newsletter-pane][hidden],[data-newsletter-area][hidden]{display:none!important}
@media(max-width:850px){.newsletter-overview-metrics{grid-template-columns:1fr 1fr}.newsletter-workspace-nav{gap:.35rem}.newsletter-workspace-tab{flex:1 1 auto}.newsletter-workflow-steps{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.newsletter-overview-metrics,.newsletter-shortcuts{grid-template-columns:1fr}.newsletter-workspace-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.newsletter-workspace-tab{width:100%;font-size:.65rem;padding:.7rem .35rem}.newsletter-workflow-steps{grid-template-columns:1fr 1fr}.newsletter-subscribers-table table{min-width:680px}.newsletter-transfer-export-row button{width:100%}}

/* Website > Rate Labels: compact, clear per-plan switch and live artwork preview. */
.rate-labels-editor{padding:1.4rem}.rate-labels-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}.rate-labels-heading h2{margin:.15rem 0 .4rem}.rate-labels-heading p:not(.micro){max-width:55rem;color:#666;font-size:.84rem}.rate-labels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.rate-label-row{border:1px solid var(--line);padding:1rem;background:#fff}.rate-label-top{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-bottom:1px solid var(--line);padding-bottom:.65rem;margin-bottom:.75rem}.rate-label-top strong{font-size:.94rem}.rate-label-toggle{display:flex;align-items:center;gap:.5rem;white-space:nowrap;font-size:.73rem;font-weight:800;letter-spacing:.03em}.rate-label-toggle input{width:1.1rem;height:1.1rem;accent-color:#191919}.rate-label-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,42%);gap:.8rem;align-items:center}.rate-label-bottom label{font-size:.67rem;letter-spacing:.04em;font-weight:800}.rate-label-bottom select{display:block;width:100%;margin-top:.35rem;min-width:0}.rate-label-preview{min-height:112px;display:flex;justify-content:center;align-items:center;background:#eee9df;border:1px solid #e2dfd8}.rate-label-preview img{display:block;max-width:100%;max-height:125px;object-fit:contain;filter:drop-shadow(1px 2px 2px #0002)}.rate-label-preview .muted{font-size:.66rem;text-align:center}.rate-label-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.8rem;margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--line)}.rate-label-actions [role="status"]{margin-right:auto;font-size:.78rem;color:#666}.rate-label-actions button:disabled{opacity:.45;cursor:default}
@media(max-width:830px){.rate-labels-grid{grid-template-columns:1fr}.rate-labels-heading{flex-direction:column}}@media(max-width:480px){.rate-labels-editor{padding:1rem}.rate-label-bottom{grid-template-columns:1fr}.rate-label-preview{min-height:90px}}

/* v0.1.38: keep the actual selected original art visible when the sticker is disabled. */
.rate-label-preview{position:relative;overflow:hidden}
.rate-label-preview.is-hidden img{opacity:.66}
.rate-label-preview .rate-label-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:.6rem;background:rgba(246,242,232,.38);color:#202020;font-size:.68rem;font-weight:800;letter-spacing:.045em;text-shadow:0 1px 3px #fff,0 0 7px #fff;pointer-events:none}

/* Website footer editor */
.website-footer-editor{max-width:960px}
.website-footer-editor>p{max-width:700px}
.website-footer-editor form{display:grid;gap:18px}
.website-footer-editor textarea{width:100%;min-height:100px;resize:vertical}
.website-footer-editor .footer-auto-year{display:flex;align-items:flex-start;gap:14px;cursor:pointer}
.website-footer-editor .footer-auto-year input{width:18px;height:18px;flex-shrink:0;margin:3px 0 0}
.website-footer-editor .footer-auto-year small{display:block;line-height:1.5;font-size:12px;font-weight:400;letter-spacing:normal;margin-top:5px}
.website-footer-editor .footer-preview{border:1px solid var(--border,#c8c8c8);padding:17px 20px;background:var(--surface,#fafafa);overflow-wrap:anywhere}
.website-footer-editor .footer-preview>p:not(.micro){font-family:Arial,sans-serif;font-weight:400;letter-spacing:normal;margin:6px 0 18px;font-size:13px}
.website-footer-editor .footer-preview>p:last-child{margin-bottom:0}

/* AWS Disaster Recovery control inside existing FOH DATA & BACKUP */
.aws-dr-panel{margin-bottom:1.15rem;padding:1.6rem}
.aws-dr-heading,.aws-dr-controls{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.aws-dr-heading h2{margin:.1rem 0 .4rem}.aws-dr-heading p{max-width:55rem}
.aws-dr-controls{padding:1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:1.15rem 0}
.aws-dr-controls>div{flex:1;min-width:240px}.aws-dr-controls .muted{font-size:.8rem;margin-top:.35rem}
.aws-dr-metrics{margin:1.2rem 0}.aws-dr-metrics .card{background:var(--soft)}
.aws-dr-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:1.3rem}
.aws-dr-detail-grid>div{padding:1.2rem;border:1px solid var(--line);min-width:0}
.aws-dr-detail-grid .kv{grid-template-columns:minmax(130px,1fr) minmax(0,1.5fr)}
.aws-dr-detail-grid .kv>div{overflow-wrap:anywhere}
.aws-dr-history{margin:1.3rem 0 1rem;border-top:1px solid var(--line);padding-top:1rem}
.aws-dr-history summary{font-size:.7rem;font-weight:800;letter-spacing:.07em;cursor:pointer;padding:.4rem}
.aws-dr-snapshots{padding-left:1.3rem;font-size:.76rem;line-height:1.9}
.aws-dr-panel .field-note{margin-top:1.1rem;line-height:1.5}
@media(max-width:980px){.aws-dr-detail-grid{grid-template-columns:1fr}.aws-dr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.aws-dr-panel{padding:1rem}.aws-dr-controls button{flex:1}.aws-dr-metrics{grid-template-columns:1fr}.aws-dr-detail-grid>div{padding:.8rem}}

.aws-dr-gap{margin:0 0 1.2rem;padding:1rem 1.1rem;line-height:1.55}.aws-dr-gap strong{display:block;margin-bottom:.3rem}

/* AWS archive observability: reuse FOH neutral admin layout */
.aws-dr-new-section{margin:1.6rem 0;border-top:1px solid var(--line);padding-top:1.5rem}
.aws-dr-new-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:.8rem}
.aws-dr-new-heading h3{margin:.2rem 0 0;font-size:1.12rem}
.aws-dr-history-toolbar{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:1rem;padding:1rem 0}
.aws-dr-history-toolbar label{min-width:200px}.aws-dr-new-section .kv{gap:.55rem}
.aws-dr-new-section .table-wrap{max-width:100%;overflow:auto}
.aws-dr-new-section table{font-size:.78rem}.aws-dr-new-section .mono{overflow-wrap:anywhere}
.aws-dr-new-section .field-note{line-height:1.5;max-width:75ch}
@media(max-width:600px){.aws-dr-new-heading{align-items:flex-start}.aws-dr-history-toolbar label{width:100%}}

/* v0.1.47 recovery status and compact AWS transfer table */
#awsDrPanel .aws-dr-history .table-wrap{max-height:520px;overflow:auto}
#awsDrPanel #awsArchivePolicyApply{margin-top:1rem}
#awsDrPanel .aws-dr-snapshots li{margin-bottom:.7rem}
#awsDrPanel .aws-dr-snapshots .muted{font-size:.79rem;overflow-wrap:anywhere}

/* v0.1.48: restore adequate space below transition policy divider */
#awsDrPanel label:has(#awsArchiveDays){display:block;clear:both;margin-top:1.5rem;padding-top:.5rem;line-height:1.45}
#awsDrPanel #awsArchiveDays{margin-top:.55rem}
/* AWS DR metric groups: one framed panel, retaining the existing four stat columns.
   Scoped to AWS DR only; no effects on other metric cards throughout FOH. */
 .grid.cols-3.aws-dr-metrics,
.grid.cols-4.aws-dr-metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  border:1px solid var(--line);
  background:var(--soft);
}
.aws-dr-metrics>.card{
  min-width:0;
  border:0;
  padding:1.4rem;
  background:transparent;
  overflow-wrap:anywhere;
}
.aws-dr-metrics>.card:not(:first-child){border-left:1px solid var(--line)}
@media(max-width:980px){
   .grid.cols-3.aws-dr-metrics,
.grid.cols-4.aws-dr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .aws-dr-metrics>.card:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  .aws-dr-metrics>.card:nth-child(4){border-top:1px solid var(--line)}
}
@media(max-width:600px){
   .grid.cols-3.aws-dr-metrics,
.grid.cols-4.aws-dr-metrics{grid-template-columns:1fr}
  .aws-dr-metrics>.card{padding:1.1rem}
  .aws-dr-metrics>.card:not(:first-child){border-left:0;border-top:1px solid var(--line)}
}

/* The 3-column RECOVERY STATUS uses the same framed stats panel. */
@media(min-width:981px){.grid.cols-3.aws-dr-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* FOH v0.1.52 — scoped backup usability and accessibility refinements. */
#awsDrPanel{line-height:1.55}
#awsDrPanel .aws-dr-heading{align-items:flex-start}
#awsDrPanel .aws-dr-controls{align-items:center;gap:.85rem 1rem}
#awsDrPanel .aws-dr-controls>.aws-danger-action{margin-left:0}
#awsDrPanel .field-note{font-size:.83rem;line-height:1.6;color:#555}
#awsDrPanel .aws-dr-history summary,#awsDrPanel .aws-dr-proof-details summary{font-size:.83rem;font-weight:750;letter-spacing:.03em;padding:.7rem .25rem;cursor:pointer}
#awsDrPanel .aws-dr-history summary:hover,#awsDrPanel .aws-dr-proof-details summary:hover{color:#111;text-decoration:underline;text-underline-offset:3px}
#awsDrPanel .aws-dr-history summary:focus-visible,#awsDrPanel .aws-dr-proof-details summary:focus-visible,#awsDrPanel .aws-sort:focus-visible,#awsDrPanel .aws-history-pages button:focus-visible{outline:2px solid #333;outline-offset:3px}
#awsDrPanel .aws-dr-snapshots{font-size:.86rem;line-height:1.75}
#awsDrPanel .aws-dr-snapshots .mono,#awsDrPanel .kv .mono{overflow-wrap:anywhere;word-break:break-word}
#awsDrPanel .aws-dr-metrics .metric-sub{font-size:.85rem}
#awsDrPanel .aws-dr-detail-grid .kv>div:nth-child(odd){font-size:.75rem}
#awsDrPanel .aws-dr-detail-grid .kv>div:nth-child(even){font-size:.88rem}
#awsDrPanel .aws-dr-new-section table{font-size:.85rem}
#awsDrPanel .aws-dr-new-section table td,#awsDrPanel .aws-dr-new-section table th{vertical-align:top}
#awsDrPanel .aws-dr-status-line{display:flex;gap:.5rem 1rem;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:1rem;padding-top:.9rem;font-size:.86rem}
#awsDrPanel .aws-dr-status-line .field-note{margin:0 0 0 auto}
#awsDrPanel .aws-dr-proof-details{border-top:1px solid var(--line);padding:.8rem 0;margin:1rem 0}
#awsDrPanel .aws-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:.7rem}
#awsDrPanel .aws-proof-detail{border:1px solid var(--line);padding:1rem;min-width:0}
#awsDrPanel .aws-proof-detail>.kv{grid-template-columns:minmax(105px,.45fr) minmax(0,1fr);margin-top:.6rem}
#awsDrPanel .aws-proof-detail .kv>div{padding:.55rem .25rem;overflow-wrap:anywhere}
#awsDrPanel .aws-glacier-status,#awsDrPanel .aws-cost-distinction{font-size:.86rem;background:#f6f6f6;padding:.85rem 1rem;line-height:1.65;margin:1rem 0}
#awsDrPanel .aws-history-count{font-size:.85rem;color:#555;line-height:1.55}
#awsDrPanel .aws-sort{border:0;background:none;padding:.35rem 0;box-shadow:none;color:inherit;font:inherit;font-weight:750;text-align:left;white-space:nowrap;cursor:pointer}
#awsDrPanel .aws-sort:hover{text-decoration:underline}
#awsDrPanel .aws-history-pages{display:flex;align-items:center;justify-content:flex-end;gap:.8rem;margin:.8rem 0;font-size:.83rem}
#awsDrPanel .aws-dr-history-toolbar{align-items:center}
#awsDrPanel .aws-dr-history .table-wrap{max-height:none;overflow-x:auto}
#awsDrPanel #awsArchiveEvents table .mono{font-size:.8rem;word-break:break-word}
#backupStale,#awsDrStale{margin:1rem 0;font-size:.9rem;line-height:1.55}
#backupStale button,#awsDrStale button{margin-left:.75rem}
@media(max-width:1150px){#awsDrPanel .aws-proof-grid{grid-template-columns:1fr}}
@media(max-width:640px){#awsDrPanel .aws-dr-status-line .field-note{margin-left:0;width:100%}#awsDrPanel .aws-dr-controls>div{min-width:0;flex-basis:100%}#awsDrPanel .aws-history-pages{justify-content:center;flex-wrap:wrap}#awsDrPanel .aws-proof-detail{padding:.75rem}}

/* v0.1.53 — space-efficient audit tables, readable evidence and empty B2 catalog. */
.backup-grid{align-items:start}
.backup-grid>.backup-card{min-height:0}
#awsDrPanel .aws-dr-history .table-wrap{max-height:480px;overflow:auto;border:1px solid var(--line)}
#awsDrPanel .aws-dr-history table{font-size:.82rem}
#awsDrPanel .aws-history-count{font-size:.84rem;line-height:1.5}
#awsDrPanel .aws-proof-detail .kv>div{overflow-wrap:anywhere}
#awsDrPanel .aws-proof-detail .mono,#awsDrPanel .aws-dr-snapshots .mono{font-size:.78rem;overflow-wrap:anywhere}
#awsDrPanel .aws-dr-history summary{background:#fafafa;border:1px solid var(--line);padding:.8rem .65rem}
#awsDrPanel .aws-dr-history[open] summary{background:#f2f2f2;border-bottom:0}
#awsDrPanel .aws-history-pages{position:static;background:#fff;padding:.65rem 0;clear:both}
#awsDrPanel #awsArchiveEvents[aria-busy="true"]{opacity:.68}
@media(max-width:600px){#awsDrPanel .aws-dr-history table{min-width:680px}#awsDrPanel .aws-dr-status-line{font-size:.81rem}}

/* FOH v0.1.54: distinguish client refresh from source inventory time. */
#awsDrPanel .aws-dr-refresh-feedback{margin:.55rem 0 1.05rem;padding:.75rem .9rem;border:1px solid var(--line);background:#f8f8f8;color:#333;font-size:.86rem;line-height:1.6}
#awsDrPanel .aws-dr-refresh-feedback strong{font-weight:800}
#awsDrPanel .aws-dr-refresh-feedback .muted{color:#555}
#awsDrPanel .aws-dr-refresh-feedback.refresh-error{background:#fff8e8;border-left:3px solid #a87911}
#awsDrRefresh[aria-busy="true"],#refreshButton[aria-busy="true"]{cursor:progress;opacity:.75}
@media(max-width:640px){#awsDrPanel .aws-dr-refresh-feedback{font-size:.82rem}}

/* AWS DR persisted policy (independent of FOH B2 BASIC/FULL) */
.awsdr-policy-form{display:grid;gap:1rem;margin:1rem 0}.awsdr-policy-form .awsdr-ack{display:flex;align-items:flex-start;gap:.6rem}.awsdr-policy-form .awsdr-ack input{width:auto;flex:0 0 auto;margin-top:.2rem}

/* FOH 0.1.65 true AWS source vs restore verification */
.awsdr-matrix small{display:block;font-size:.75rem;font-weight:400;opacity:.8;margin-top:.3rem}.awsdr-matrix strong{overflow-wrap:anywhere}.awsdr-policy-form{scroll-margin-top:1rem}


/* The v0165 .backup-meta > div flex space-between BROKE three-column rows. */
#awsDrRecoveryMatrix .backup-meta > div {
 display:grid; grid-template-columns:minmax(11rem,1.3fr) minmax(10rem,.9fr) minmax(14rem,1.4fr);
 align-items:start; justify-content:initial; gap:1.2rem; text-align:left; min-width:0;
}
#awsDrRecoveryMatrix .backup-meta > div > span,
#awsDrRecoveryMatrix .backup-meta > div > strong,
#awsDrRecoveryMatrix .backup-meta > div > small {
 display:block;min-width:0;margin:0;text-align:left;overflow-wrap:anywhere;
}
#awsDrRecoveryMatrix .backup-meta > div > small {font-size:.75rem;opacity:.8;line-height:1.45;}
#awsDrRecoveryMatrix .backup-meta {width:100%;min-width:0;}
@media(max-width:850px) {
 #awsDrRecoveryMatrix .backup-meta > div {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.3rem .8rem;}
 #awsDrRecoveryMatrix .backup-meta > div > small {grid-column:1/-1;}
}
@media(max-width:520px) {
 #awsDrRecoveryMatrix .backup-meta > div {grid-template-columns:minmax(0,1fr);}
 #awsDrRecoveryMatrix .backup-meta > div > small {grid-column:auto;}
}
