/* Progressive enhancement: the original navigation and inline details work without JS. */
html .dashboard-body.workspace-two-level .dashboard-shell>.workspace-section-nav{grid-column:2;min-width:0}
html :is(.dashboard-body,.platform-admin-body) .workspace-section-nav{display:grid;gap:10px;margin:0 0 20px;padding:16px 20px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}
html .platform-admin-body .workspace-section-nav{margin:22px 32px 0}
.workspace-section-title{margin:0;color:var(--ui-muted);font-size:var(--ui-small-size);font-weight:700;letter-spacing:.06em}
.workspace-section-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html :is(.dashboard-body,.platform-admin-body) .workspace-section-group>.rental-nav-section{margin:0 10px 0 0;padding:0;min-width:145px;font-size:var(--ui-small-size)}
.workspace-section-link{display:inline-flex;align-items:center;border-radius:7px;background:var(--ui-deep);min-width:0}
html :is(.dashboard-body,.platform-admin-body) .workspace-section-nav a{display:block;padding:10px 8px 10px 12px;margin:0;border:0;border-radius:7px;color:var(--ui-muted);font-size:var(--ui-nav-size);font-weight:500;text-decoration:none;line-height:1.4}
html :is(.dashboard-body,.platform-admin-body) .workspace-section-nav a.active{color:var(--tree-service-color,var(--accent));background:color-mix(in srgb,var(--tree-service-color,var(--accent)) 12%,var(--ui-surface));font-weight:700;box-shadow:inset 0 -2px var(--tree-service-color,var(--accent))}
html :is(.dashboard-body,.platform-admin-body) .workspace-section-nav a:not(.active):hover{color:var(--ui-text);background:var(--ui-raised)}
html :is(.dashboard-body,.platform-admin-body) .workspace-pin{padding:8px;border:0;background:transparent;color:var(--ui-muted);font-size:16px;cursor:pointer;border-radius:4px}
html :is(.dashboard-body,.platform-admin-body) .workspace-pin[aria-pressed=true]{color:var(--ui-accent)}
html .dashboard-body .dashboard-header .workspace-platform-context{position:relative;margin:0;padding:12px 16px;background:var(--ui-deep);min-width:210px;max-width:330px;border:1px solid var(--ui-border);border-radius:8px}
html .dashboard-body .workspace-platform-context>small,html .dashboard-body .workspace-platform-context>b{display:none}
html .dashboard-body .workspace-platform-context>span{display:flex;gap:10px;font-size:var(--ui-small-size)}
.workspace-platform-context em{font-style:normal;color:var(--ui-muted)}
html .dashboard-body .workspace-platform-context>a{display:block;margin-top:8px;font-size:var(--ui-small-size)}
.workspace-shortcuts{padding-top:12px;border-top:1px solid var(--ui-border);margin-top:20px}
.workspace-shortcuts:empty{display:none}
html :is(.dashboard-body,.platform-admin-body) .workspace-shortcuts>p{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ui-muted);margin:12px 8px 6px}
html :is(.dashboard-body,.platform-admin-body) .workspace-shortcuts>a{display:flex;align-items:center;gap:10px;padding:8px;border:0;border-radius:6px;color:var(--ui-muted);font-size:var(--ui-small-size);line-height:1.4;text-decoration:none;white-space:normal}
html :is(.dashboard-body,.platform-admin-body) .workspace-shortcuts>a::before,
html :is(.dashboard-body,.platform-admin-body) .workspace-shortcuts>a::after{content:none;display:none}
html :is(.dashboard-body,.platform-admin-body) .workspace-shortcut-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-deep);color:var(--ui-muted);font-size:10px;line-height:1;font-weight:700}
.workspace-shortcut-label{min-width:0;overflow-wrap:anywhere}
.workspace-shortcuts>a:hover{background:var(--ui-raised)}
html :is(.dashboard-body,.platform-admin-body) .workspace-drawer{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(720px,calc(100% - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;padding:0;border:1px solid var(--ui-border);border-radius:14px;background:var(--ui-surface);color:var(--ui-text);box-shadow:-20px 0 70px #0004;overflow:auto;font-family:var(--ui-font)}
@media(min-width:561px){html :is(.dashboard-body,.platform-admin-body) .workspace-drawer[data-side="left"]{inset:12px auto 12px 12px;box-shadow:20px 0 70px #0004}}
.workspace-drawer::backdrop{background:#050b1455;backdrop-filter:blur(3px)}
.workspace-drawer>header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border)}
.workspace-drawer header small{letter-spacing:.13em;color:var(--ui-muted)}
.workspace-drawer header h2{font-size:var(--ui-h2-size);margin:7px 0 0;overflow-wrap:anywhere}
.workspace-drawer header button{padding:10px 12px;flex-shrink:0;background:var(--ui-raised);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:6px;cursor:pointer}
.workspace-drawer-body{padding:24px;min-width:0}
.workspace-drawer-body>.workspace-settings-body{margin:0;padding:0;border:0}
html :is(.dashboard-body,.platform-admin-body) .workspace-drawer-body>:is(.transaction-row-details,.tenant-details,.client-row-details){padding:0;background:transparent;border:0;grid-template-columns:minmax(0,1fr);min-width:0}
.workspace-drawer-body :is(input,select,textarea){max-width:100%}
.workspace-drawer-body form{min-width:0}
.workspace-drawer-body .transaction-detail-wide{grid-column:auto}
.workspace-drawer-body pre{white-space:pre-wrap;overflow-wrap:anywhere}
[data-workspace-drawer]>summary{opacity:.6}
@media(max-width:900px){html .dashboard-body.workspace-two-level .dashboard-shell>.workspace-section-nav{display:grid;margin-bottom:16px}html .dashboard-body .dashboard-header .workspace-platform-context{max-width:none;width:100%;min-width:0}.workspace-shortcuts{display:none}html .platform-admin-body .workspace-section-nav{margin:16px 14px 0}.workspace-section-group{gap:4px}html :is(.dashboard-body,.platform-admin-body) .workspace-section-group>.rental-nav-section{width:100%;margin:5px 0}.workspace-section-link{max-width:100%}}
@media(max-width:560px){html :is(.dashboard-body,.platform-admin-body) .workspace-section-nav{padding:12px}.workspace-drawer-body{padding:16px}.workspace-drawer>header{padding:16px}html :is(.dashboard-body,.platform-admin-body) .workspace-drawer{inset:0;width:100%;height:100dvh;border-radius:0}.workspace-drawer-body .form-grid{grid-template-columns:minmax(0,1fr)}}
html .platform-admin-body .admin-navigation{gap:6px}
html .platform-admin-body .admin-nav-fold{display:block;border-bottom:1px solid var(--ui-border);padding-bottom:5px}
.admin-nav-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 9px;list-style:none;cursor:pointer;color:var(--ui-muted);font-size:.72rem;font-weight:750}
.admin-nav-fold>summary::-webkit-details-marker{display:none}
.admin-nav-fold[open]>summary{color:var(--ui-text)}
.admin-nav-fold[open]>summary>span:last-child{transform:rotate(180deg)}
.admin-nav-fold>summary:hover{color:var(--ui-text);background:var(--ui-surface);border-radius:8px}
.admin-nav-fold>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-2px;border-radius:8px}
.admin-nav-group-links{display:grid;gap:3px;padding:0 0 7px}
html .platform-admin-body .admin-nav-group-links a{min-height:35px;padding:6px 9px;font-size:.77rem;gap:8px}
html .platform-admin-body .admin-nav-group-links .admin-nav-marker{width:24px;height:24px;min-width:24px;font-size:.6rem}
html .platform-admin-body .admin-nav-group-links .admin-nav-children a{min-height:30px;padding-top:5px;padding-bottom:5px;font-size:.72rem}
html .platform-admin-body .admin-environment{margin:10px 0;padding:9px 0;font-size:.68rem}
html .platform-admin-body .workspace-shortcuts{margin-top:12px}

/* Shared orientation and restrained motion; reuse the existing search dialog. */
html .dashboard-body .dashboard-nav>.service-tree-label{margin:18px 10px 6px;font-size:10px;letter-spacing:.12em;color:var(--ui-muted)}
.workspace-section-hint{margin:0;font-size:var(--ui-small-size);color:var(--ui-muted);line-height:1.6}
html :is(.dashboard-body,.platform-admin-body) .workspace-results a{display:grid;gap:3px}
@media(prefers-reduced-motion:no-preference){
 .workspace-section-nav,.workspace-palette[open],.workspace-drawer[open]{animation:workspace-enter .16s ease-out}
 .workspace-section-link a,.service-tree-parent,.button,.workspace-search{transition:background-color .15s ease,color .15s ease,border-color .15s ease}
 @keyframes workspace-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.workspace-section-nav,.workspace-palette,.workspace-drawer,.workspace-section-link a,.service-tree-parent,.button{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html .dashboard-body.workspace-two-level .dashboard-shell{align-items:start;grid-template-rows:auto auto}
html .dashboard-body.workspace-two-level .dashboard-shell>.dashboard-nav{grid-row:2;grid-column:1}
html .dashboard-body.workspace-two-level .dashboard-shell>.workspace-main{grid-row:2;grid-column:2;display:grid;gap:20px;align-content:start;min-width:0}
html .dashboard-body .workspace-main>*{grid-column:1/-1;min-width:0;margin-top:0}
html .dashboard-body .workspace-main>.workspace-section-nav{margin:0}
html .dashboard-body .workspace-main>.content-section{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;padding:28px;box-shadow:none}
@media(max-width:900px){html .dashboard-body.workspace-two-level .dashboard-shell>.workspace-main{display:grid;gap:16px}html .dashboard-body .workspace-main>.content-section{padding:20px}}
@media(max-width:560px){html .dashboard-body .workspace-main>.content-section{padding:16px}}

@media(max-width:900px){html .dashboard-body .workspace-search{width:auto;flex:0 0 auto;white-space:nowrap;margin:0 8px 0 0}}

/* Task groups separate everyday work from configuration without hiding destinations. */
html .dashboard-body .workspace-section-nav:has(.workspace-task-group){grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px 20px}
.workspace-task-group{grid-column:1/-1;min-width:0}
.workspace-task-label{flex:0 0 130px;color:var(--ui-muted);font-size:var(--ui-small-size);font-weight:650}
.workspace-task-group[data-workspace-task="settings"]{padding-top:12px;border-top:1px solid var(--ui-border)}
.workspace-task-group[data-workspace-task="help"]{grid-column:2;grid-row:1;justify-self:end}
.workspace-task-group[data-workspace-task="help"]>.workspace-task-label{display:none}
html .dashboard-body .workspace-section-nav:has(.workspace-task-group)>.workspace-section-title{align-self:center;font-size:.9rem;letter-spacing:0;color:var(--ui-text)}
.workspace-section-nav:has(.workspace-task-group)>.workspace-section-hint{grid-column:1/-1}
@media(hover:hover) and (pointer:fine){
 .dashboard-body .workspace-section-link .workspace-pin[aria-pressed="false"]{opacity:1}
 .dashboard-body .workspace-section-link:hover .workspace-pin,.dashboard-body .workspace-section-link:focus-within .workspace-pin{opacity:1}
}
@media(max-width:700px){
 .workspace-task-label{flex-basis:100%;padding:2px 0 5px}
 html .dashboard-body .workspace-section-nav:has(.workspace-task-group){padding:14px;gap:12px}
}
