:root {
  --ink: #111714;
  --muted: #67706a;
  --line: #dfe5e0;
  --soft: #f3f6f3;
  --paper: #ffffff;
  --lime: #c7f43c;
  --lime-dark: #9bc700;
  --green: #164f39;
  --red: #9e382f;
  --shadow: 0 20px 60px rgba(18, 38, 28, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf1ed;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #edf1ed; }
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: 1rem; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(155, 199, 0, .32); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: -.05em; }
h2 { margin-bottom: .35rem; font-size: 1.35rem; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.eyebrow { margin-bottom: .45rem; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; background: radial-gradient(circle at 15% 20%, rgba(199, 244, 60, .28), transparent 26%), linear-gradient(135deg, #eef4ee, #dfe8df); }
.login-card { width: min(430px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.login-card h1 { margin-bottom: 18px; }
.brand-mark { display: grid; width: 54px; height: 54px; margin-bottom: 28px; place-items: center; border-radius: 17px; background: var(--ink); color: var(--lime); font-size: 1.45rem; font-weight: 900; transform: rotate(-4deg); }
.brand-mark.small { width: 36px; height: 36px; margin: 0; border-radius: 11px; font-size: 1rem; }
.stack { display: grid; gap: 15px; margin-top: 26px; }
label { display: grid; gap: 7px; color: #455048; font-size: .78rem; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid #ccd5ce; border-radius: 12px; background: #fff; color: var(--ink); }
input, select { height: 46px; padding: 0 13px; }
textarea { min-height: 82px; padding: 12px 13px; resize: vertical; }
.security-note { margin: 22px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.mfa-secret { display: block; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #eef3ef; color: #173529; font: 700 .9rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.mfa-back { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.mfa-back:hover { color: var(--ink); }
.button { min-height: 43px; padding: 0 17px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .14s ease, filter .14s ease; }
.button:hover { filter: brightness(.97); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button.primary { background: var(--lime); color: #182000; }
.button.secondary { border: 1px solid var(--line); background: #fff; }
.button.compact { min-height: 38px; white-space: nowrap; }

.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 18px; background: var(--ink); color: #f3f6f3; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; font-size: 1.03rem; }
.brand b { display: block; color: #9da8a0; font-size: .67rem; letter-spacing: .13em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: #bfc8c1; font-weight: 700; text-align: left; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--lime); color: #172000; }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; font-size: 1.15rem; }
.sidebar-foot { display: grid; gap: 13px; margin-top: auto; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #2b352f; color: var(--lime); font-weight: 900; }
.user-card b, .user-card small { display: block; overflow: hidden; max-width: 120px; text-overflow: ellipsis; white-space: nowrap; }
.user-card b { font-size: .82rem; }
.user-card small { margin-top: 2px; color: #8d9991; font-size: .68rem; }
.text-button { border: 0; background: transparent; color: #98a39b; font-size: .78rem; cursor: pointer; }
.text-button:hover { color: #fff; }

.workspace { min-width: 0; padding: 30px; }
.page-header { display: flex; min-height: 90px; align-items: start; justify-content: space-between; gap: 20px; margin: 0 auto 20px; max-width: 1440px; }
.page-header .muted { margin: 8px 0 0; font-size: .85rem; }
.filter { width: 170px; }
.filter select { height: 40px; background: #fff; }
.split-view { display: grid; grid-template-columns: minmax(300px, 390px) minmax(420px, 1fr); min-height: calc(100vh - 150px); max-width: 1440px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 8px 28px rgba(28, 47, 37, .05); }
.list-panel { min-width: 0; overflow-y: auto; border-right: 1px solid var(--line); background: #f8faf8; }
.list { display: grid; }
.list-card { display: grid; gap: 8px; width: 100%; padding: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.list-card:hover { background: #f1f5f1; }
.list-card.selected { background: #ecf5d3; box-shadow: inset 4px 0 var(--lime-dark); }
.list-card-top, .list-card-bottom { display: flex; align-items: center; gap: 9px; justify-content: space-between; }
.list-card-top b { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.list-card-top time { flex: 0 0 auto; color: var(--muted); font-size: .68rem; }
.subject { overflow: hidden; color: #39453e; font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.list-card-bottom small { overflow: hidden; color: var(--muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.list-card-bottom em { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: .65rem; font-style: normal; font-weight: 800; }
.status { padding: 4px 7px; border-radius: 999px; font-size: .62rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.status.open { background: #dff0d8; color: #275c35; }
.status.closed { background: #e8ebe8; color: #626a65; }

.detail-panel { display: flex; min-width: 0; flex-direction: column; }
.detail-header { display: flex; min-height: 91px; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.detail-header p { margin-bottom: .35rem; }
.detail-header .muted { margin: 0; font-size: .78rem; }
.read-only { padding: 6px 9px; border-radius: 999px; background: #eef0ee; color: var(--muted); font-size: .68rem; font-weight: 800; }
.messages { display: flex; flex: 1; flex-direction: column; gap: 11px; overflow-y: auto; padding: 24px; background: linear-gradient(180deg, #fbfcfb, #f5f8f5); }
.message { width: fit-content; max-width: min(76%, 650px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px 16px 16px 16px; background: #fff; }
.message.staff, .message.system { align-self: flex-end; border-color: #d5e7ad; border-radius: 16px 6px 16px 16px; background: #eef8d6; }
.message small { color: var(--muted); font-size: .66rem; }
.message p { margin: 5px 0 0; font-size: .86rem; line-height: 1.48; white-space: pre-wrap; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { min-height: 72px; }
.composer .button { align-self: end; }
.locked-note { padding: 18px 22px; border-top: 1px solid var(--line); background: #f7f8f7; color: var(--muted); font-size: .76rem; }
.empty { display: grid; min-height: 240px; align-content: center; justify-items: center; padding: 30px; text-align: center; }
.empty span { color: #a8b2ab; font-size: 2rem; }
.empty h3 { margin: 8px 0 4px; font-size: .98rem; }
.empty p { max-width: 300px; margin-bottom: 0; color: var(--muted); font-size: .76rem; }
.empty-action { display: flex; justify-content: center; margin-top: -16px; padding: 0 24px 30px; }

.notification-form { display: grid; gap: 13px; padding: 20px 23px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.form-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions small { color: var(--muted); font-size: .69rem; }
.notification-list { display: grid; align-content: start; gap: 10px; overflow-y: auto; padding: 18px; }
.notification-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.notification-card.unread { border-color: #c9dea0; background: #f8fce9; }
.notification-card b, .notification-card small { display: block; }
.notification-card b { font-size: .84rem; }
.notification-card small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.notification-card p { grid-column: 1 / -1; margin: 0; color: #3d4841; font-size: .78rem; line-height: 1.45; }
.notification-card em { color: var(--muted); font-size: .64rem; font-style: normal; }

.clients-view { height: calc(100vh - 150px); }
.client-detail { min-height: 0; }
.client-tabs { display: flex; flex: 0 0 auto; gap: 5px; padding: 9px 18px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.client-tab { min-height: 40px; padding: 0 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.client-tab:hover { color: var(--ink); }
.client-tab.active { border-bottom-color: var(--lime-dark); color: var(--ink); }
.client-tab.locked { display: flex; align-items: center; cursor: not-allowed; opacity: .58; }
.client-content { min-height: 0; flex: 1; overflow-y: auto; background: #fff; }
.client-section { padding: 22px; }
.identity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-card { display: grid; gap: 5px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfa; }
.info-card.accent { border-color: #d7e8ae; background: #f3f9df; }
.info-card small { color: var(--muted); font-size: .67rem; }
.info-card b { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.info-card span { overflow: hidden; color: #4f5a53; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-note { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.profile-note h3 { margin-bottom: 8px; font-size: .9rem; }
.profile-note p { margin-bottom: 12px; color: #465149; font-size: .78rem; line-height: 1.5; }
.profile-note small { color: var(--muted); font-size: .66rem; }
.privacy-banner { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 13px; background: #17211c; color: #fff; }
.privacy-banner b { flex: 0 0 auto; color: var(--lime); font-size: .76rem; }
.privacy-banner span { color: #c2cbc5; font-size: .7rem; line-height: 1.45; }
.privacy-banner.muted-banner { background: #eef1ee; color: var(--ink); }
.privacy-banner.muted-banner b { color: #5f6962; }
.privacy-banner.muted-banner span { color: var(--muted); }

.kyc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); min-height: 100%; }
.kyc-layout > *, .form-grid > * { min-width: 0; }
.kyc-form-section, .files-section { padding: 22px; }
.files-section { border-left: 1px solid var(--line); background: #f8faf8; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-title h3 { margin-bottom: 0; font-size: 1rem; }
.section-title .eyebrow { margin-bottom: 4px; }
.section-title > span { display: grid; min-width: 28px; height: 28px; padding: 0 8px; place-items: center; border-radius: 999px; background: #e4e9e4; color: #526058; font-size: .68rem; font-weight: 850; }
.section-title .kyc-badge { background: #e7f2c9; color: #36541d; }
.kyc-form { display: grid; gap: 13px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kyc-form textarea { min-height: 70px; }
.upload-form { display: grid; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.file-picker input { height: auto; padding: 10px; border-style: dashed; background: #fbfcfb; font-size: .72rem; }
.file-picker span { color: var(--muted); font-size: .64rem; font-weight: 500; }
.confirm-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 9px; padding: 11px; border-radius: 10px; background: #fff7df; color: #6a5318; font-size: .68rem; font-weight: 650; line-height: 1.4; }
.confirm-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.private-files { display: grid; gap: 8px; margin-top: 14px; }
.private-file-card { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #ecf4d8; color: #3c5e22; }
.private-file-card b, .private-file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.private-file-card b { font-size: .72rem; }
.private-file-card small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.text-button.dark { color: var(--green); font-size: .68rem; font-weight: 800; }
.text-button.dark:hover { color: #0d2e21; }
.files-empty { margin: 10px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.locked-detail { display: grid; min-height: 330px; align-content: center; justify-items: center; padding: 28px; text-align: center; }
.locked-detail h3 { margin-bottom: 6px; }
.locked-detail p { max-width: 370px; color: var(--muted); font-size: .76rem; }
.notifications-section { padding: 0; }

.rents-view { height: calc(100vh - 250px); }
.rent-mode-tabs { margin-top:0; }
.rent-search { grid-template-columns:minmax(220px,1fr) auto auto; }
.rent-card-meta { display:block; margin-top:4px; color:var(--muted); font-size:.74rem; }
.rent-debt { flex:0 0 auto; color:#a13d32; font-size:.75rem; }
.rent-detail { min-height: 0; overflow-y: auto; background: #f8faf8; }
.readiness-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fff; list-style: none; }
.readiness-grid li { display: flex; min-width: 0; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: .67rem; font-weight: 750; }
.readiness-grid li span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: .65rem; }
.readiness-grid li.ready { background: #eef7d9; color: #385422; }
.readiness-grid li.ready span { background: #cfe99a; }
.readiness-grid li.pending { background: #f0f2f0; }
.readiness-grid li.pending span { background: #dfe4df; }
.operation-card { margin: 14px 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.billing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.billing-grid span { display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #f4f7f4; color: var(--muted); font-size: .72rem; }
.billing-grid b { color: var(--ink); font-size: .88rem; }
.accrual-list { display: grid; gap: 7px; }
.accrual-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.operation-card:last-child { margin-bottom: 18px; }
.operation-card .section-title { margin-bottom: 14px; }
.document-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border-radius: 12px; background: #f4f7f4; }
.document-strip b, .document-strip small { display: block; }
.document-strip b { font-size: .8rem; }
.document-strip small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.document-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.operation-form { display: grid; gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.operation-form textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; line-height: 1.45; }
.settlement-block { margin-top: 28px; }
.settlement-list { display: grid; gap: 10px; }
.settlement-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.settlement-row > div { display: grid; gap: 6px; }
.settlement-row > div:last-child { justify-items: end; }
.settlement-row small { color: var(--muted); }
.settlement-row strong { font-size: 1.05rem; }
.operation-note { margin: 14px 0 0; color: var(--muted); font-size: .7rem; }
.evidence-forms { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); gap: 13px; }
.compact-form { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.check-tile { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .67rem; }
.check-tile input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--green); }
.photo-list { display: grid; gap: 7px; margin-top: 13px; }
.photo-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.photo-list b, .photo-list small { display: block; }
.photo-list b { font-size: .72rem; }
.photo-list small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.photo-list em { color: var(--muted); font-size: .62rem; font-style: normal; }
.action-buttons { display: grid; gap: 10px; }
.inline-action { display: flex; align-items: end; gap: 10px; }
.inline-action label { max-width: 220px; }
.danger-action { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-action .button { border-color: #e1b6af; color: var(--red); }
.blockers { margin-top: 13px; padding: 13px 15px; border-radius: 12px; background: #fff5df; color: #6f5313; font-size: .7rem; }
.blockers ul { margin: 7px 0 0; padding-left: 18px; line-height: 1.55; }
.success-note { margin: 13px 0 0; padding: 12px 14px; border-radius: 12px; background: #edf8d7; color: #36531f; font-size: .72rem; }

.dashboard-grid { display: grid; max-width: 1440px; margin: 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { display: grid; min-height: 132px; align-content: space-between; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 7px 24px rgba(28, 47, 37, .04); }
.metric-card:hover { border-color: #bdd786; transform: translateY(-1px); }
.metric-card small { color: var(--muted); font-size: .72rem; font-weight: 700; }
.metric-card b { font-size: 2rem; letter-spacing: -.04em; }
.metric-card span { color: var(--green); font-size: .67rem; font-weight: 800; }
.finance-strip { display: grid; max-width: 1440px; margin: 14px auto 0; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #2d3832; border-radius: 17px; background: var(--ink); color: #fff; }
.finance-strip article { display: grid; gap: 7px; padding: 19px; border-right: 1px solid rgba(255,255,255,.1); }
.finance-strip article:last-child { border-right: 0; }
.finance-strip small { color: #9eaaa2; font-size: .68rem; }
.finance-strip b { font-size: 1.05rem; }
.finance-strip .debt b { color: #ffb2a8; }
.quick-grid { display: grid; max-width: 1440px; margin: 14px auto 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-grid button { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf8; text-align: left; cursor: pointer; }
.quick-grid button:hover { background: #f0f7df; }
.quick-grid b { font-size: .82rem; }
.quick-grid span { color: var(--muted); font-size: .67rem; }

.entity-view { height: calc(100vh - 150px); }
.entity-form-panel { min-width: 0; overflow-y: auto; padding: 24px; background: #fff; }
.entity-form-panel .section-title { position: sticky; top: -24px; z-index: 2; margin: -24px -24px 20px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.entity-form-panel h2 { margin: 0; font-size: 1.25rem; }
.rent-wizard-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.rent-wizard-step { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: .68rem; font-weight: 800; }
.rent-wizard-step::before { content: ''; height: 5px; border-radius: 999px; background: #e2e7e2; }
.rent-wizard-step.active { color: var(--green); }
.rent-wizard-step.active::before, .rent-wizard-step.complete::before { background: var(--lime-dark); }
.rent-wizard-panel { display: grid; gap: 15px; }
.rent-wizard-panel[hidden] { display: none; }
.rent-wizard-copy { margin: -2px 0 2px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.rent-wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.rent-wizard-actions .button:last-child { margin-left: auto; }
.rent-wizard-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rent-wizard-summary article { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.rent-wizard-summary small, .rent-wizard-summary b { display: block; }
.rent-wizard-summary small { margin-bottom: 5px; color: var(--muted); font-size: .65rem; }
.rent-wizard-summary b { overflow-wrap: anywhere; font-size: .8rem; }
.entity-form { display: grid; max-width: 850px; gap: 14px; }
.entity-form .button { justify-self: end; min-width: 190px; }
.rent-create-panel { background: #fbfcfb; }
.rent-create-panel .entity-form { margin: 0 auto; }
.payment-list { display: grid; gap: 7px; margin-top: 14px; }
.payment-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.payment-list b, .payment-list small { display: block; }
.payment-list b { font-size: .78rem; }
.payment-list small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.payment-list em { color: var(--muted); font-size: .65rem; font-style: normal; }
.list-card.static { cursor: default; }
.settings-tabs { display: flex; max-width: 1440px; margin: -10px auto 12px; border-bottom: 1px solid var(--line); }
.settings-layout { display: grid; max-width: 1440px; min-height: 560px; margin: 0 auto; grid-template-columns: minmax(280px, 390px) minmax(420px, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.settings-list { border-right: 1px solid var(--line); background: #f8faf8; }
.settings-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.settings-row:hover, .settings-row.selected { background: #eef7d9; }
.settings-row b, .settings-row small { display: block; }
.settings-row b { font-size: .8rem; }
.settings-row small { margin-top: 4px; color: var(--muted); font-size: .63rem; }
.settings-row strong { color: var(--green); font-size: .68rem; }
.settings-form { padding: 23px; }
.settings-form .section-title { margin-bottom: 0; }
.legal-settings-card { max-width: 1440px; margin: 0 auto; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.legal-settings-card > .section-title { margin-bottom: 16px; }
.legal-settings-form { max-width: none; margin-top: 18px; }
.legal-settings-form fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.legal-settings-form legend { padding: 0 8px; color: var(--green); font-size: .76rem; font-weight: 850; }
.legal-settings-form .wide { grid-column: 1 / -1; }
.legal-settings-meta { margin:12px 0 0; color:#68766f; font-size:.82rem; }
.legal-review-card { margin-top:18px; padding:18px; border:2px solid rgba(22,104,63,.26); border-radius:16px; background:#f8fbf9; }
.legal-change-list { display:grid; gap:9px; margin:14px 0; }
.legal-change-list article { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(0,1fr) minmax(0,1fr); gap:12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.legal-change-list span,.legal-change-list small,.legal-change-list del,.legal-change-list ins { display:block; min-width:0; overflow-wrap:anywhere; }
.legal-change-list small { margin-bottom:3px; color:#68766f; }
.legal-change-list del { color:#8a3a3a; }
.legal-change-list ins { color:var(--green); text-decoration:none; font-weight:750; }
.legal-confirm-form { max-width:none; margin-top:14px; }
.legal-review-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.legal-preview-backdrop { position:fixed; z-index:60; inset:0; display:grid; place-items:center; padding:20px; background:rgba(15,28,21,.58); }
.legal-preview-dialog { width:min(1050px,100%); max-height:90vh; overflow:auto; padding:22px; border-radius:20px; background:#fff; box-shadow:0 24px 80px rgba(0,0,0,.28); }
.legal-preview-dialog > header { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.legal-preview-pages { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.legal-preview-pages article { min-height:230px; padding:22px; border:1px solid #d8dedb; border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.06); }
.legal-preview-pages article > small { color:var(--green); font-weight:850; text-transform:uppercase; }
.legal-preview-pages h3 { margin:28px 0 14px; font-size:1rem; }
.legal-preview-pages p { color:#405048; line-height:1.55; }
.document-generator .blockers, .document-generator .success-note { margin-top: 0; }
.inventory-tabs { margin-top: -10px; }
.inventory-search { display: grid; max-width: 1440px; margin: 0 auto 12px; grid-template-columns: minmax(180px, 1fr) auto; gap: 9px; }
.client-search { grid-template-columns: minmax(190px, 1fr) minmax(145px, 210px) minmax(145px, 210px) auto; }
.embedded-search { margin: 0; }
.inventory-more { width: calc(100% - 24px); margin: 12px; }
.battery-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.battery-choice { align-items: flex-start; }
.battery-choice span, .battery-choice b, .battery-choice small { display: block; min-width: 0; }
.battery-choice small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.equipment-list, .replacement-history { display: grid; gap: 8px; }
.equipment-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.equipment-list b, .equipment-list small { display: block; }
.equipment-list small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.equipment-list em { color: var(--green); font-size: .68rem; font-style: normal; font-weight: 750; }
.replacement-box { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.replacement-box summary { cursor: pointer; color: var(--green); font-weight: 800; }
.replacement-history { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(380px, calc(100vw - 48px)); padding: 13px 17px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .8rem; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding: 20px 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child, .nav-item > span:last-child, .user-card > span:last-child, .text-button { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .user-card { justify-content: center; padding: 8px; border: 0; }
  .workspace { padding: 22px 18px; }
  .split-view { grid-template-columns: minmax(260px, 330px) minmax(360px, 1fr); }
  .kyc-layout { grid-template-columns: 1fr; }
  .files-section { border-top: 1px solid var(--line); border-left: 0; }
  .identity-grid { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evidence-forms { grid-template-columns: 1fr; }
  .dashboard-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-strip article:nth-child(2) { border-right: 0; }
  .finance-strip article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 680px) {
  .billing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input, textarea, select { font-size: 16px; }
  .shell { display: block; padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; width: auto; height: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px 7px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #303a34; }
  .sidebar .brand, .sidebar-foot .user-card { display: none; }
  .sidebar nav, .sidebar-foot { display: contents; }
  .nav-item { min-width: 0; min-height: 47px; flex-direction: column; justify-content: center; gap: 1px; padding: 5px 2px; font-size: .57rem; line-height: 1.1; text-align: center; }
  .nav-item > span:last-child { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-icon { width: 19px; height: 19px; font-size: .95rem; }
  #logout-button { display: flex; min-width: 0; min-height: 47px; align-items: center; justify-content: center; flex-direction: column; gap: 1px; padding: 5px 2px; border: 0; border-radius: 11px; background: transparent; color: #d8e3dc; font-size: .57rem; line-height: 1.1; }
  #logout-button::before { content: '↪'; font-size: .95rem; line-height: 19px; }
  .workspace { padding: 18px 12px; }
  .page-header { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-bottom: 15px; }
  .page-header h1 { font-size: 1.65rem; }
  .page-header .muted { display: none; }
  .page-header > .button { min-height: 42px; max-width: 145px; padding-inline: 12px; line-height: 1.15; }
  .filter { width: 130px; }
  .split-view { display: block; min-height: auto; overflow: visible; border-radius: 16px; }
  .clients-view { height: auto; }
  .rents-view { height: auto; }
  .list-panel { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-panel { min-height: 480px; }
  .detail-header { min-height: 80px; padding: 15px; }
  .messages { min-height: 300px; padding: 15px; }
  .message { max-width: 88%; }
  .composer { grid-template-columns: 1fr; padding: 12px; }
  .composer .button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .rent-wizard-progress { gap: 5px; margin-bottom: 18px; }
  .rent-wizard-step { font-size: .57rem; }
  .rent-wizard-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rent-wizard-panel { gap: 13px; }
  .rent-wizard-summary { grid-template-columns: 1fr; }
  .battery-choice-grid { grid-template-columns: 1fr; }
  .inventory-search, .client-search, .rent-search { grid-template-columns: 1fr; }
  .inventory-tabs { overflow-x: auto; }
  .rent-wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .rent-wizard-actions .button { width: 100%; margin: 0; }
  .rent-create-panel { min-height: 0; }
  .client-tabs { padding-inline: 10px; }
  .client-content { overflow: visible; }
  .client-section, .kyc-form-section, .files-section { padding: 15px; }
  .kyc-layout { display: block; }
  .privacy-banner { align-items: flex-start; flex-direction: column; gap: 5px; }
  .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .operation-card { margin: 12px 10px 0; padding: 14px; }
  .document-strip, .inline-action { align-items: stretch; flex-direction: column; }
  .equipment-list article { align-items: flex-start; flex-direction: column; }
  .document-links { justify-content: flex-start; }
  .check-grid { grid-template-columns: 1fr; }
  .dashboard-grid, .quick-grid { grid-template-columns: 1fr; }
  .finance-strip { grid-template-columns: 1fr; }
  .finance-strip article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .finance-strip article:last-child { border-bottom: 0; }
  .entity-view { height: auto; }
  .entity-form-panel { min-height: 480px; padding: 16px; }
  .entity-form-panel .section-title { top: -16px; margin: -16px -16px 16px; padding: 17px 16px; }
  .entity-form .button { width: 100%; justify-self: stretch; }
  .settings-layout { display: block; min-height: 0; }
  .settings-list { max-height: 300px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-form { padding: 16px; }
  .legal-settings-card { padding: 15px; border-radius: 16px; }
  .legal-settings-form fieldset { padding: 13px; }
  .legal-change-list article,.legal-preview-pages { grid-template-columns:1fr; }
  .login-card { padding: 30px 24px; border-radius: 22px; }
}
.nav-badge { margin-left:auto; min-width:24px; height:24px; padding:0 7px; display:inline-grid; place-items:center; border-radius:999px; background:#ff6b4a; color:#fff; font-style:normal; font-size:12px; font-weight:800; }
.return-notice { width:100%; margin:0 0 16px; padding:15px 18px; display:grid; grid-template-columns:auto auto 1fr auto; gap:12px; align-items:center; border:1px solid #e6a353; border-radius:16px; background:#fff3df; color:#41270a; text-align:left; cursor:pointer; }
.return-notice.static { cursor:default; }
.return-notice span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#f4a742; font-size:20px; }
.return-notice small { color:#76552f; }
.return-notice i { font-style:normal; font-weight:800; }
.rent-header-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; align-items:center; }
.issue-workflow { display:grid; gap:18px; }
.issue-progress { display:grid; grid-template-columns:repeat(8,minmax(115px,1fr)); gap:8px; overflow-x:auto; padding:4px 2px 10px; }
.issue-step { min-height:78px; padding:10px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; border:1px solid #d6dfdb; border-radius:14px; background:#f8faf9; color:#3f4f47; text-align:left; cursor:pointer; }
.issue-step span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:#e4ebe7; font-weight:800; }
.issue-step b { font-size:12px; line-height:1.25; }
.issue-step.ready { border-color:#8fc5a8; background:#eff9f3; color:#155c3a; }
.issue-step.ready span { background:#1c8d59; color:#fff; }
.issue-step.active { outline:3px solid #bdf527; outline-offset:1px; background:#fff; color:#111a16; }
.workflow-panel { min-height:340px; }
.workflow-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0 4px; }
.workflow-nav small { color:#68766f; font-weight:700; }
.workflow-focus-card p { max-width:820px; }
.workflow-status { margin:16px 0; padding:14px 16px; display:flex; gap:10px; align-items:center; border-radius:14px; }
.workflow-status.ready { background:#e9f7ee; color:#155c3a; }
.workflow-status.pending { background:#fff3df; color:#68420d; }
.workflow-status span { width:28px; height:28px; display:grid; place-items:center; border:1px solid currentColor; border-radius:50%; font-weight:800; }

@media (max-width: 900px) {
  .return-notice { grid-template-columns:auto 1fr; }
  .return-notice small, .return-notice i { grid-column:2; }
  .rent-header-actions { width:100%; justify-content:flex-start; }
  .issue-progress { grid-template-columns:repeat(8,132px); }
  .workflow-nav .button { min-width:0; }
}

.staff-activity-button { position:fixed; right:24px; top:22px; z-index:30; width:48px; height:48px; display:grid; place-items:center; border:1px solid #cbd8d1; border-radius:15px; background:#fff; color:#123326; box-shadow:0 10px 30px rgba(17,42,31,.13); cursor:pointer; }
.staff-activity-button > span { color:#1c8d59; font-size:1.15rem; }
.staff-activity-button > b { position:absolute; top:-6px; right:-6px; min-width:23px; height:23px; padding:0 6px; display:grid; place-items:center; border:2px solid #fff; border-radius:999px; background:#ff6b4a; color:#fff; font-size:.65rem; }
.staff-activity-drawer { position:fixed; inset:0 0 0 auto; z-index:40; width:min(430px,100vw); padding:22px; overflow:auto; border-left:1px solid #dce5e0; background:#fff; box-shadow:-22px 0 60px rgba(17,42,31,.2); }
.staff-activity-drawer header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:15px; }
.staff-activity-drawer h2 { margin:3px 0 0; }
.activity-list { display:grid; gap:8px; margin-top:14px; }
.activity-item { width:100%; display:grid; grid-template-columns:34px 1fr; gap:10px; padding:13px; border:1px solid #dce5e0; border-radius:13px; background:#f8faf9; color:#17241e; text-align:left; cursor:pointer; }
.activity-item.unread { border-color:#9dd26e; background:#f2fadd; }
.activity-item > span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:#e6efe9; }
.activity-item b,.activity-item p,.activity-item small { display:block; }
.activity-item p { margin:4px 0; color:#57675f; font-size:.72rem; line-height:1.4; }
.activity-item small { color:#7b8882; font-size:.62rem; }
.support-attachment { width:100%; margin-top:8px; display:grid; grid-template-columns:26px 1fr auto; align-items:center; gap:8px; padding:9px 10px; border:1px solid #dce5e0; border-radius:10px; background:#f8faf9; color:#173a2b; text-align:left; cursor:pointer; }
.support-attachment b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.support-attachment small { color:#6e7b75; }
.composer-file { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.composer-file input { flex:1 1 210px; }
.composer-file small { color:#68766f; }
.entity-actions { display:flex; flex-wrap:wrap; gap:8px; }
.form-grid.three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.repair-decision-list { display:grid; gap:8px; margin:14px 0; }
.repair-decision-list article { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 13px; border:1px solid #dce5e0; border-radius:12px; background:#f8faf9; }
.repair-decision-list b,.repair-decision-list small { display:block; }
.repair-decision-list small { margin-top:3px; color:#68766f; }
.repair-decision-list strong { white-space:nowrap; }
.return-workflow .workflow-panel { min-height:380px; }
.return-damage-card .operation-form { margin-top:14px; }
.return-damage-list { display:grid; gap:9px; margin-top:14px; }
.return-damage-list > article { display:grid; grid-template-columns:34px minmax(0,1fr) minmax(150px,auto) auto; align-items:center; gap:12px; padding:13px; border:1px solid #dce5e0; border-radius:14px; background:#fff; }
.return-damage-list b,.return-damage-list small { display:block; }
.return-damage-list small { margin-top:3px; color:#68766f; }
.damage-number { display:grid; width:32px; height:32px; place-items:center; border-radius:50%; background:#eef7d9; color:#37571f; font-weight:850; }
.damage-delete { color:#a2362c; }
.damage-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:12px; }
.damage-totals article { padding:12px 14px; border-radius:13px; background:#f0f4f1; }
.damage-totals small,.damage-totals b { display:block; }
.damage-totals small { color:#68766f; }
.damage-totals b { margin-top:4px; font-size:1.05rem; }
.return-damage-form { padding:14px; border:1px solid #dce5e0; border-radius:14px; background:#f8faf9; }
.damage-decision-form fieldset { display:grid; gap:9px; margin:0; padding:0; border:0; }
.damage-decision-form legend { margin-bottom:8px; font-weight:850; }
.damage-decision { display:flex; align-items:flex-start; gap:10px; padding:13px; border:1px solid #dce5e0; border-radius:14px; background:#fff; cursor:pointer; }
.damage-decision.selected { border-color:var(--green); box-shadow:0 0 0 2px rgba(22,104,63,.09); }
.damage-decision input { width:auto; margin-top:3px; }
.damage-decision span,.damage-decision b,.damage-decision small { display:block; }
.damage-decision small { margin-top:4px; color:#68766f; }
.damage-photo-form { margin-top:10px; padding:14px; border:1px solid #dce5e0; border-radius:14px; background:#f8faf9; }
.replacement-document-list { display:grid; gap:8px; margin-top:13px; padding:13px; border:1px solid #dce5e0; border-radius:14px; background:#f8faf9; }
.replacement-document-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:8px; border-top:1px solid #e2e9e5; }
.replacement-document-list > div:first-of-type { padding-top:0; border-top:0; }

@media (max-width: 680px) {
  .staff-activity-button { right:12px; top:auto; bottom:calc(132px + env(safe-area-inset-bottom)); width:43px; height:43px; }
  .staff-activity-drawer { padding:16px 13px calc(95px + env(safe-area-inset-bottom)); }
  .form-grid.three { grid-template-columns:1fr; }
  .return-damage-list > article { grid-template-columns:34px minmax(0,1fr); }
  .return-damage-list > article > :nth-child(3),.return-damage-list > article > :nth-child(4) { grid-column:2; }
  .damage-totals { grid-template-columns:1fr; }
  .replacement-document-list > div { align-items:flex-start; flex-direction:column; }
  .entity-actions { width:100%; }
  .entity-actions .text-button { display:inline-flex; }
  .support-attachment { grid-template-columns:24px minmax(0,1fr); }
  .support-attachment small { grid-column:2; }
  .repair-decision-list article { align-items:flex-start; flex-direction:column; }
  .workflow-nav { align-items:stretch; flex-wrap:wrap; }
  .workflow-nav small { width:100%; order:-1; text-align:center; }
  .workflow-nav .button { flex:1 1 130px; }
}

.mobile-detail-toolbar,.mobile-detail-save { display:none; }

@media (max-width: 900px) {
  .shell.mobile-detail-active .workspace > .page-header,
  .shell.mobile-detail-active .workspace > .inventory-search,
  .shell.mobile-detail-active .workspace > .settings-tabs,
  .shell.mobile-detail-active .workspace > .return-notice { display:none; }
  .mobile-master-detail { display:block; min-height:0; overflow:visible; position:relative; border-radius:16px; }
  .mobile-master-detail.mobile-list-open > .mobile-detail-toolbar,
  .mobile-master-detail.mobile-list-open > .mobile-detail-save,
  .mobile-master-detail.mobile-list-open > .mobile-detail-pane { display:none !important; }
  .mobile-master-detail.mobile-list-open > .list-panel { display:block; min-height:calc(100dvh - 240px); max-height:none; overflow:visible; border:0; }
  .mobile-master-detail.mobile-detail-open > .list-panel { display:none !important; }
  .mobile-master-detail.mobile-detail-open > .mobile-detail-toolbar { position:sticky; top:0; z-index:8; display:grid; min-height:58px; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); backdrop-filter:blur(10px); }
  .mobile-back-button { min-height:42px; display:inline-flex; align-items:center; gap:5px; padding:0 10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font-weight:850; cursor:pointer; }
  .mobile-detail-toolbar > strong { min-width:0; overflow:hidden; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
  .mobile-dirty-state { padding:5px 8px; border-radius:999px; background:#fff1d6; color:#70440d; font-size:.68rem; font-weight:800; white-space:nowrap; }
  .mobile-master-detail.mobile-detail-open > .mobile-detail-pane { display:block; min-height:calc(100dvh - 150px); overflow:visible; border:0; }
  .mobile-master-detail.mobile-detail-open.has-mobile-save > .mobile-detail-pane { padding-bottom:84px; }
  .mobile-master-detail.mobile-detail-open > .mobile-detail-save { position:fixed; left:96px; right:18px; bottom:16px; z-index:25; display:flex; min-height:52px; align-items:center; justify-content:center; box-shadow:0 13px 35px rgba(17,42,31,.24); }
  .mobile-master-detail .entity-form-panel .section-title,
  .mobile-master-detail .detail-header { top:58px; }
}

@media (max-width: 680px) {
  .mobile-master-detail.mobile-list-open > .list-panel { min-height:calc(100dvh - 285px); }
  .mobile-master-detail.mobile-detail-open > .mobile-detail-toolbar { margin:-1px -1px 0; }
  .mobile-master-detail.mobile-detail-open > .mobile-detail-save { left:12px; right:12px; bottom:calc(126px + env(safe-area-inset-bottom)); }
  .mobile-master-detail.mobile-detail-open.has-mobile-save > .mobile-detail-pane { padding-bottom:92px; }
  .shell.mobile-detail-active .staff-activity-button { bottom:calc(192px + env(safe-area-inset-bottom)); }
}
