/* ============================================================
   Ometz sample command center — app shell + module styles
   ============================================================ */
body { background: #F5F3EE; }
:root { --side: 252px; --top: 64px; }

/* Theme presets (brand color switcher) */
body[data-theme="gold"]   { --honey: #D9A21B; --honey-deep: #A9780A; --honey-wash: #FBF3DC; --gold-light: #F0C14B; }
body[data-theme="blue"]   { --honey: #3B6EF6; --honey-deep: #2650C4; --honey-wash: #E8EFFF; --gold-light: #8FB0FF; }
body[data-theme="green"]  { --honey: #16A36F; --honey-deep: #0E7A52; --honey-wash: #E3F6EE; --gold-light: #5FD6A6; }
body[data-theme="plum"]   { --honey: #8B5CF6; --honey-deep: #6D3FD8; --honey-wash: #F0E9FF; --gold-light: #C2A6FF; }
body[data-theme] .btn-gold { background: var(--honey); color: #fff; }
body[data-theme="gold"] .btn-gold { color: var(--ink); }
body[data-theme] .btn-gold:hover { filter: brightness(1.05); background: var(--honey); }
body[data-theme] .om-kpi::after, body[data-theme] .om-progress > i { background: var(--honey); }
body[data-theme] .om-progress > i { background: linear-gradient(90deg, var(--honey-deep), var(--honey)); }

/* Shell */
.dm-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: #0E0D11; color: #cfcbc2; z-index: 120;
  display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.06); transition: transform .25s ease;
}
.dm-brand { height: var(--top); display: flex; align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dm-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--honey); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
body[data-theme="gold"] .dm-logo { color: #17161B; }
.dm-brand b { display: block; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.dm-brand small { display: block; font-size: 11px; color: rgba(255,255,255,.45); }
.dm-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.dm-nav .lbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 16px 10px 8px; font-weight: 600; }
.dm-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: #c7c2b7; cursor: pointer; transition: background .15s, color .15s; }
.dm-nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; flex-shrink: 0; opacity: .85; }
.dm-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dm-nav a.active, .dm-nav a.on { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 2px 0 0 var(--honey); }
.dm-nav a .n { margin-left: auto; background: var(--honey); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
body[data-theme="gold"] .dm-nav a .n { color: #17161B; }
.dm-powered { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; color: rgba(255,255,255,.4); display: flex; align-items: center; gap: 8px; }
.dm-powered img { width: 18px; height: 18px; }
.dm-powered a { color: #F0C14B; }

.dm-top {
  position: fixed; top: 0; left: var(--side); right: 0; height: var(--top); background: rgba(245,243,238,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid #E7E2D7; display: flex; align-items: center; gap: 14px; padding: 0 26px; z-index: 110;
}
.dm-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #E2DCCF; background: #fff; align-items: center; justify-content: center; }
.dm-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid #E7E2D7; color: #8a8578; font-size: 13.5px; }
.dm-search input { border: 0; outline: 0; flex: 1; background: transparent; font-size: 13.5px; }
.dm-top .sp { flex: 1; }
.dm-theme { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: #fff; border: 1px solid #E7E2D7; }
.dm-theme span { font-size: 11px; color: #8a8578; padding: 0 4px 0 2px; }
.dm-theme button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; cursor: pointer; }
.dm-theme button.on { box-shadow: 0 0 0 2px var(--ink); }
.dm-iconbtn { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #57534a; }
.dm-iconbtn:hover { background: #fff; }
.dm-iconbtn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.dm-iconbtn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; border: 2px solid #F5F3EE; }
.dm-me { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.dm-main { margin-left: var(--side); padding: calc(var(--top) + 28px) 30px 110px; min-height: 100vh; }
.dm-main .page-head { margin-bottom: 22px; }
.dm-main .page-head-text h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; letter-spacing: 0; }
.dm-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 115; }

@media (max-width: 1020px) {
  .dm-side { transform: translateX(-100%); box-shadow: 0 0 60px rgba(0,0,0,.4); }
  body.nav-open .dm-side { transform: none; }
  body.nav-open .dm-overlay { display: block; }
  .dm-top { left: 0; padding: 0 14px; }
  .dm-burger { display: inline-flex; }
  .dm-main { margin-left: 0; padding: calc(var(--top) + 20px) 14px 110px; }
  .dm-theme span, .dm-me span, .dm-search { display: none; }
}

/* Shared pieces */
.dm-av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.dm-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: color-mix(in srgb, currentColor 12%, #fff); flex-shrink: 0; }
.dm-ico svg { width: 17px; height: 17px; }
.dm-delta { font-weight: 700; font-size: 11.5px; }
.dm-delta.up { color: #13915F; } .dm-delta.dn { color: #C2412D; }
.dm-grid { display: grid; gap: 18px; }
.g-2-1 { grid-template-columns: 1.7fr 1fr; } .g-1-1 { grid-template-columns: 1fr 1fr; } .g-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .g-2-1, .g-1-1, .g-3 { grid-template-columns: 1fr; } }
.card { border-color: #ECE7DC; border-radius: 16px; }
.card-hd h3 { font-family: 'Outfit', sans-serif !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.card-hd .sub { font-size: 12px; color: #8a8578; font-weight: 400; margin-top: 2px; }
.dm-chart { width: 100%; height: 220px; display: block; overflow: visible; }
.dm-chart .grid { stroke: #EEE9DE; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dm-chart .ax { font-size: 10.5px; fill: #9a9486; font-family: 'Outfit', sans-serif; }
.dm-spark { width: 100%; height: 34px; }
.dm-bars { display: grid; gap: 12px; }
.dm-bar { display: grid; grid-template-columns: 120px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.dm-bar .k { color: #57534a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-bar .track { height: 9px; background: #F1EDE4; border-radius: 999px; overflow: hidden; }
.dm-bar .track i { display: block; height: 100%; background: var(--honey); border-radius: 999px; }
.dm-bar .v { text-align: right; font-weight: 600; }
.dm-donut { display: flex; align-items: center; gap: 22px; }
.dm-donut svg { width: 150px; height: 150px; flex-shrink: 0; }
.dm-donut .big { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; fill: #17161B; }
.dm-donut .ax { font-size: 10px; fill: #9a9486; }
.dm-donut ul { list-style: none; display: grid; gap: 9px; flex: 1; font-size: 13px; }
.dm-donut li { display: flex; align-items: center; gap: 9px; }
.dm-donut li i { width: 10px; height: 10px; border-radius: 3px; }
.dm-donut li b { margin-left: auto; }
.dm-funnel { display: grid; gap: 10px; }
.dm-funnel .f { display: grid; grid-template-columns: 1fr 150px; gap: 14px; align-items: center; }
.dm-funnel .fb { height: 38px; border-radius: 9px; background: var(--honey); color: #fff; display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: 13px; }
body[data-theme="gold"] .dm-funnel .fb { color: #17161B; }
.dm-funnel .fk { font-size: 13px; color: #57534a; }
.dm-funnel .fk small { display: block; color: #9a9486; font-size: 11.5px; }
.dm-feed { list-style: none; }
.dm-feed li { display: flex; gap: 12px; padding: 12px 22px; border-bottom: 1px solid #F3EFE7; }
.dm-feed li:last-child { border-bottom: 0; }
.dm-feed .t { font-size: 13.5px; font-weight: 600; }
.dm-feed .s { font-size: 12.5px; color: #8a8578; }
.dm-feed .r { margin-left: auto; font-size: 11.5px; color: #9a9486; white-space: nowrap; }
.dm-task { display: flex; align-items: center; gap: 12px; padding: 11px 22px; border-bottom: 1px solid #F3EFE7; font-size: 13.5px; }
.dm-task input { width: 17px; height: 17px; accent-color: var(--honey); }
.dm-task.done .tt { text-decoration: line-through; color: #a39d90; }
.dm-task .who { margin-left: auto; }
.dm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dm-quick button { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #ECE7DC; font-size: 13.5px; font-weight: 600; color: #26242c; text-align: left; transition: border-color .15s, transform .15s; }
.dm-quick button:hover { border-color: var(--honey); transform: translateY(-1px); }
@media (max-width: 760px) { .dm-quick { grid-template-columns: 1fr 1fr; } }

/* Schedule */
.dm-cal { display: grid; grid-template-columns: 56px repeat(6, 1fr); background: #fff; border: 1px solid #ECE7DC; border-radius: 16px; overflow: hidden; }
.dm-cal .hd { padding: 12px 8px; text-align: center; font-size: 12px; color: #8a8578; border-bottom: 1px solid #ECE7DC; background: #FCFBF8; }
.dm-cal .hd b { display: block; font-size: 18px; color: #17161B; font-weight: 600; }
.dm-cal .hd.today b { color: var(--honey-deep); }
.dm-cal .col { position: relative; border-left: 1px solid #F1EDE4; }
.dm-cal .hour { height: 56px; border-bottom: 1px solid #F5F2EB; }
.dm-cal .times .hour { font-size: 10.5px; color: #a39d90; text-align: right; padding: 2px 8px 0 0; border-bottom: 0; }
.dm-ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 6px 8px; font-size: 11.5px; line-height: 1.3; color: #17161B; cursor: pointer; overflow: hidden; border-left: 3px solid; transition: transform .12s, box-shadow .12s; }
.dm-ev:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.1); z-index: 2; }
.dm-ev b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ev.done { opacity: .55; }
.dm-cal-wrap { overflow-x: auto; }
.dm-cal-wrap .dm-cal { min-width: 820px; }
.dm-now { position: absolute; left: 0; right: 0; height: 2px; background: #E5484D; z-index: 3; }
.dm-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }

/* Inbox */
.dm-inbox { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 210px); min-height: 520px; background: #fff; border: 1px solid #ECE7DC; border-radius: 16px; overflow: hidden; }
.dm-threads { border-right: 1px solid #ECE7DC; overflow-y: auto; }
.dm-th { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F3EFE7; cursor: pointer; }
.dm-th:hover { background: #FCFAF5; }
.dm-th.on { background: var(--honey-wash); }
.dm-th .nm { font-weight: 600; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.dm-th .pv { font-size: 12.5px; color: #8a8578; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.dm-th .meta { margin-left: auto; text-align: right; font-size: 11px; color: #9a9486; white-space: nowrap; }
.dm-th .ud { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); display: inline-block; }
.dm-conv { display: flex; flex-direction: column; min-width: 0; }
.dm-conv-hd { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #ECE7DC; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #FCFBF8; }
.dm-msg { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.dm-msg.in { background: #fff; border: 1px solid #ECE7DC; align-self: flex-start; border-bottom-left-radius: 5px; }
.dm-msg.out { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.dm-msg small { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; }
.dm-reply { display: flex; gap: 10px; padding: 14px; border-top: 1px solid #ECE7DC; }
.dm-reply input { flex: 1; height: 44px; border-radius: 12px; border: 1px solid #E3DDCF; padding: 0 14px; font-size: 14px; }
.dm-reply input:focus { outline: none; border-color: var(--honey); }
.dm-sugg { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }
.dm-sugg button { font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid #E3DDCF; background: #fff; }
.dm-sugg button:hover { border-color: var(--honey); }
@media (max-width: 860px) {
  .dm-inbox { grid-template-columns: 1fr; height: auto; }
  .dm-inbox .dm-conv { display: none; min-height: 70vh; }
  .dm-inbox.reading .dm-threads { display: none; }
  .dm-inbox.reading .dm-conv { display: flex; }
  .dm-msg { max-width: 88%; }
}

/* Automations */
.dm-flow { background: #fff; border: 1px solid #ECE7DC; border-radius: 16px; padding: 20px 22px; display: grid; gap: 14px; }
.dm-flow-hd { display: flex; align-items: center; gap: 12px; }
.dm-flow-hd h3 { font-family: 'Outfit', sans-serif; font-size: 15.5px; font-weight: 600; }
.dm-flow-hd .runs { font-size: 12px; color: #8a8578; }
.dm-switch { margin-left: auto; width: 42px; height: 24px; border-radius: 999px; background: #D9D4C8; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; border: 0; }
.dm-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dm-switch.on { background: var(--honey); }
.dm-switch.on::after { transform: translateX(18px); }
.dm-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm-step { font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: #F7F4EC; border: 1px solid #ECE7DC; }
.dm-step.trig { background: var(--honey-wash); border-color: color-mix(in srgb, var(--honey) 40%, #fff); font-weight: 600; }
.dm-step-arrow { color: #b9b2a3; font-size: 14px; }
.dm-flows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .dm-flows { grid-template-columns: 1fr; } }

/* Client portal preview */
.dm-device { max-width: 960px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid #E3DDCF; box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); background: #fff; }
.dm-device-bar { height: 36px; background: #F1EEE6; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.dm-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c4; }
.dm-device-bar span { margin: 0 auto; font-size: 11.5px; color: #8a8578; background: #fff; padding: 3px 14px; border-radius: 6px; }
.dm-portal { padding: 30px; background: #FAF9F6; }
.dm-portal h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; }
.dm-portal .muted { color: #8a8578; font-size: 14px; }
.dm-pcard { background: #fff; border: 1px solid #ECE7DC; border-radius: 14px; padding: 18px 20px; }
.dm-pcard h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a8578; margin-bottom: 12px; font-weight: 600; }
.dm-track { display: flex; gap: 6px; margin: 10px 0 6px; }
.dm-track i { flex: 1; height: 6px; border-radius: 3px; background: #ECE7DC; }
.dm-track i.on { background: var(--honey); }
.dm-file { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #ECE7DC; font-size: 13.5px; }
.dm-file:last-child { border-bottom: 0; }

/* Website editor */
.dm-editor { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .dm-editor { grid-template-columns: 1fr; } }
.dm-site { border-radius: 16px; overflow: hidden; border: 1px solid #E3DDCF; background: #fff; box-shadow: 0 24px 60px -30px rgba(0,0,0,.3); }
.dm-site .ann { background: var(--honey); color: #fff; text-align: center; font-size: 12.5px; padding: 8px; font-weight: 600; }
body[data-theme="gold"] .dm-site .ann { color: #17161B; }
.dm-site nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 26px; border-bottom: 1px solid #F1EDE4; font-size: 13px; }
.dm-site nav b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dm-site nav span { color: #8a8578; }
.dm-site .hero { padding: 48px 26px 40px; background: linear-gradient(180deg, var(--honey-wash), #fff); }
.dm-site .hero h2 { font-family: 'Cormorant Garamond', serif; font-size: 40px; line-height: 1.05; font-weight: 600; max-width: 520px; }
.dm-site .hero p { color: #57534a; margin: 12px 0 20px; max-width: 440px; }
.dm-site .svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 22px 26px 30px; }
.dm-site .svc { border: 1px solid #ECE7DC; border-radius: 12px; padding: 14px; }
.dm-site .svc b { display: block; font-size: 13.5px; }
.dm-site .svc span { font-size: 20px; font-weight: 700; color: var(--honey-deep); }
.dm-site .svc small { color: #8a8578; font-size: 11.5px; }
.dm-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #13915F; }
.dm-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #13915F; box-shadow: 0 0 0 3px #13915F33; }

/* Demo ribbon */
.dm-ribbon {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 12px;
  background: #0E0D11; color: #fff; border-radius: 999px; padding: 7px 7px 7px 18px; font-size: 13px; box-shadow: 0 18px 50px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); max-width: calc(100% - 24px);
}
.dm-ribbon b { color: #F0C14B; font-weight: 600; }
.dm-ribbon a { background: linear-gradient(180deg, #EFCB78, #D6A43B); color: #17120A; font-weight: 600; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.dm-ribbon button { color: rgba(255,255,255,.55); font-size: 18px; padding: 0 8px; }
@media (max-width: 640px) { .dm-ribbon > span { display: none; } .dm-ribbon { padding: 6px; } }

/* Tables on this app */
.om-table td .dm-av { vertical-align: middle; margin-right: 10px; }
.cell-person { display: flex; align-items: center; gap: 10px; }
.cell-person b { display: block; font-weight: 600; }
.cell-person small { display: block; color: #8a8578; font-size: 12px; }
.dm-theme button { min-height: 0 !important; min-width: 0 !important; padding: 0 !important; flex: 0 0 18px; }
.dm-top .dm-me { flex-shrink: 0; }

/* Checkboxes & radios must never inherit the mobile "full-width input" rule */
input[type="checkbox"], input[type="radio"] {
  width: 18px !important; height: 18px !important; min-height: 0 !important; min-width: 18px !important; max-width: 18px !important;
  padding: 0 !important; margin: 0; flex: 0 0 18px !important; font-size: inherit !important; accent-color: var(--honey, #D9A21B);
}
.dm-tpl { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid #ECE7DC; border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.dm-tpl:hover { border-color: color-mix(in srgb, var(--honey) 50%, #fff); }
.dm-tpl.on { border-color: var(--honey); background: var(--honey-wash); }
.dm-tpl input { margin-top: 2px !important; }
.dm-tpl b { display: block; font-size: 14.5px; }
.dm-tpl .muted { font-size: 13px; line-height: 1.5; margin-top: 3px; }

/* Tablet polish: even KPI rows, no squeezed name cells */
@media (min-width: 701px) and (max-width: 1180px) { .om-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1181px) { .om-kpis:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.cell-person { min-width: 190px; }
.cell-person b, .cell-person small { white-space: nowrap; }

/* Permissions matrix stays a true grid on phones (headers matter) */
@media (max-width: 700px) {
  .om-table.dm-perm { display: table !important; width: 100%; }
  .om-table.dm-perm thead { display: table-header-group !important; }
  .om-table.dm-perm tbody { display: table-row-group !important; }
  .om-table.dm-perm tr { display: table-row !important; padding: 0 !important; border: 0 !important; }
  .om-table.dm-perm th, .om-table.dm-perm td { display: table-cell !important; padding: 11px 6px !important; border-bottom: 1px solid #f1ede4 !important; font-size: 13px; }
  .om-table.dm-perm th { font-size: 10px; letter-spacing: .04em; line-height: 1.25; white-space: normal; }
  .om-table.dm-perm th:first-child, .om-table.dm-perm td:first-child { padding-left: 14px !important; width: 40%; }
}
/* Keep the last content clear of the floating sample bar */
.dm-main { padding-bottom: 96px; }

/* Sample ribbon: always offers a way back */
.dm-ribbon { padding: 6px; gap: 10px; border-color: rgba(214,164,59,.45); }
.dm-ribbon .dm-back { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); color: #fff; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); white-space: nowrap; }
.dm-ribbon .dm-back:hover { background: rgba(255,255,255,.16); }
.dm-ribbon .dm-note { white-space: nowrap; }
.dm-ribbon.min .dm-note, .dm-ribbon.min .dm-go, .dm-ribbon.min button { display: none; }
@media (max-width: 640px) { .dm-ribbon > .dm-note { display: none; } .dm-ribbon .dm-back span { display: inline; } }
