/* Document workspace: one hierarchy, one current location, shared spacing and focus. */
.dn-sidebar-group{--dn-accent:#185a8d;--dn-selected:#e8f1f8;--dn-ink:#193c52;width:100%;min-width:0}
.dn-sidebar-heading{display:flex;align-items:center;gap:2px;min-width:0}
#workspace .sidebar .dn-sidebar-heading>.sidebar-link{flex:1;min-width:0;width:auto}
#workspace .sidebar .dn-in-section .dn-sidebar-heading>.sidebar-link{background:#f1f5f8;box-shadow:none;color:var(--dn-ink);font-weight:600}
#workspace .sidebar .dn-expand{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;min-height:34px;margin:0;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#486477;font-size:17px;line-height:1}
#workspace .sidebar .dn-expand:hover{background:#eef3f7;border-color:#d5e0e9}
.dn-sidebar-children{display:flex;flex-direction:column;gap:2px;margin:4px 0 10px 20px;padding:0 0 0 10px;border-left:1px solid #d5e0e9}
.dn-sidebar-children[hidden]{display:none!important}
#workspace .sidebar .dn-sidebar-children .dn-child{display:flex;align-items:center;width:100%;min-height:34px;margin:0;padding:7px 10px;text-align:left;border:0;border-radius:5px;background:transparent;box-shadow:none;color:#405c70;font-size:13px;font-weight:400;line-height:1.4}
#workspace .sidebar .dn-sidebar-children .dn-child:hover{background:#f1f5f8;color:#173c54}
#workspace .sidebar .dn-sidebar-children .dn-child[aria-current=page]{background:var(--dn-selected);box-shadow:inset 3px 0 var(--dn-accent);color:#144d78;font-weight:600}
.dn-sidebar-children .sidebar-symbol{display:none}
.dn-expand:focus-visible,.dn-child:focus-visible,.dn-mobile-nav button:focus-visible,.dn-recent-panel :is(button,input,a):focus-visible{outline:2px solid #1568a5!important;outline-offset:3px!important}
/* The same local navigation is available above the workspace at every width. */
.dn-mobile-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;width:100%;box-sizing:border-box;margin:0 0 18px;padding:0 0 10px;border-bottom:1px solid #dbe5ed}
.dn-mobile-nav button{position:relative;min-height:36px;margin:0;padding:7px 14px;border:1px solid transparent;border-radius:5px;background:transparent;color:#486477;font-size:13px;line-height:1.4;font-weight:500;box-shadow:none}
.dn-mobile-nav button:hover{background:#f1f5f8;color:#193e59}
.dn-mobile-nav button[aria-current=page]{background:#e8f1f8;color:#144d78;font-weight:600;border-color:#cadce9}
.dn-mobile-nav button[aria-current=page]:after{content:'';position:absolute;left:12px;right:12px;bottom:-11px;height:3px;border-radius:2px;background:#185a8d}
.legal-register>.dn-mobile-nav{padding:10px 12px 12px;margin:0;border-bottom:1px solid #dbe5ed}
.legal-register>.dn-mobile-nav button[aria-current=page]:after{bottom:-13px}
.dn-recent-panel{min-width:0;padding:20px;background:#fff;border:1px solid #dbe5ed;border-radius:8px}
.dn-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.dn-heading h2{margin:0;color:#193c52;font-size:18px;font-weight:600;line-height:1.4}
.dn-heading>button{margin:0;min-height:34px;padding:6px 10px;border-color:#d6e1ea;color:#486477;background:#fff;font-size:12px}
.dn-recent-panel>.muted{margin:8px 0 18px;max-width:76ch;color:#586e7e;font-size:13px;line-height:1.6}
.dn-recent-tools{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.dn-recent-tools input{min-width:0;flex:1;max-width:520px;min-height:38px;margin:0;border-color:#bccedc;border-radius:5px;font-size:13px}
.dn-recent-tools>button{margin:0;min-height:38px;padding:7px 12px;font-size:13px}
.dn-result{margin:0;padding:10px 0;color:#526b7d;font-size:12px}
.dn-table-wrap{max-width:100%;overflow:auto;border:1px solid #e0e8ef;border-radius:6px}
.dn-recent-panel table{width:100%;border-collapse:collapse;font-size:13px}
.dn-recent-panel th,.dn-recent-panel td{text-align:left;padding:12px;border-bottom:1px solid #e5ecf2;vertical-align:middle;line-height:1.5}
.dn-recent-panel th{white-space:nowrap;background:#f6f8fb;color:#486477;font-size:12px;font-weight:600}
.dn-recent-panel tbody tr:last-child td{border-bottom:0}
.dn-recent-panel tbody tr:hover{background:#f8fafc}
.dn-recent-panel td:first-child{min-width:180px}
.dn-recent-panel a{font-weight:600;color:#185a8d;text-underline-offset:3px}
.dn-filename{display:block;color:#63788a;font-size:12px;overflow-wrap:anywhere;margin-top:3px}
.dn-recent-panel time{white-space:nowrap;font-variant-numeric:tabular-nums;color:#526b7d;font-size:12px}
.dn-recent-panel td.dn-empty{padding:36px 20px;text-align:center;color:#586e7e;font-size:13px;line-height:1.7}
.dn-recent-panel[aria-busy=true] .dn-table-wrap{opacity:.6}
.dn-storage-notice{padding:10px 12px;border:1px solid #ead8b4;border-radius:5px;background:#fffaf0;color:#79551d;font-size:12px}
@media(max-width:760px){
 #workspace .sidebar .dn-sidebar-children .dn-child,#workspace .sidebar .dn-expand{min-height:44px}
 .dn-mobile-nav{gap:4px;margin-bottom:16px;padding-bottom:10px}
 .dn-mobile-nav button{min-height:44px;padding:8px 10px;font-size:13px}
 .dn-recent-panel{padding:14px}
 .dn-heading{align-items:flex-start}
 .dn-heading h2{font-size:17px}
 .dn-heading>button{min-height:40px}
 .dn-recent-tools{flex-wrap:wrap}
 .dn-recent-tools input{flex-basis:100%;min-height:44px;max-width:none}
 .dn-recent-tools>button{min-height:44px}
 .dn-recent-panel th,.dn-recent-panel td{padding:10px}
 .dn-recent-panel td.dn-empty{min-width:0;padding:24px 12px}
 .dn-recent-panel table:has(.dn-empty){table-layout:fixed}
 .dn-recent-panel table:has(.dn-empty) th{white-space:normal;overflow-wrap:anywhere;font-size:11px;padding:8px 4px}
}
@media(forced-colors:active){
 .dn-child[aria-current=page],.dn-mobile-nav button[aria-current=page]{border:2px solid Highlight!important}
 .dn-mobile-nav button[aria-current=page]:after{background:Highlight}
 .dn-sidebar-children{border-color:CanvasText}
}

@media(max-width:760px){.dn-recent-panel table:has(.dn-empty) thead{display:none}}
