/* The frame of every page: the sidebar, the top bar, the page area and the foot. At 899 pixels and under the sidebar is a strip of icons, and at
   599 and under it is a drawer behind the menu button of the top bar (`.side.open`). */

.side { position: sticky; top: 0; z-index: 20; flex: none; width: 256px; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; height: 56px; flex: none; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; border-bottom: 1px solid var(--line); }
.ovv .brand:hover { text-decoration: none; }
.brand b { font-weight: 700; color: var(--acct); }
.bm { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--acc); color: var(--onacc); }
.bm .ic { width: 28px; height: 28px; }
.mlogo .bm { width: 26px; height: 26px; }
.mlogo .bm .ic { width: 26px; height: 26px; }
.cap { padding: 16px 18px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.si { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin: 1px 8px; border-radius: 8px; color: var(--text); font-weight: 500; position: relative; min-width: 0; }
.ovv .si:hover { background: var(--hov); text-decoration: none; }
.ovv .si.cur { background: var(--sel); font-weight: 700; color: var(--acct); }
.si.cur::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.si.more { height: auto; min-height: 28px; font-weight: 400; color: var(--dim); font-size: 12px; }
.none-yet { padding: 4px 18px 8px; font-size: 12px; color: var(--dim); }
.side-f { margin-top: auto; border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.ndc { display: flex; align-items: center; gap: 10px; margin: 0 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-width: 0; }
.ndc b { display: block; font-weight: 600; line-height: 1.25; }
.ndc small { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.25; }
.ndc .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs a { color: var(--dim); }
/* a crumb too long for the room ends in an ellipsis before the chips beside the bar: the page's own crumb (the last) gives way, the steps before it
   keep their width up to 24 characters, and "Home" and the slashes keep theirs */
.crumbs > a, .crumbs > span { flex: 0 0 auto; max-width: 24ch; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs > a:first-child, .crumbs > [aria-hidden] { flex: none; max-width: none; }
.crumbs > [aria-current] { flex: 0 1 auto; max-width: none; min-width: 12ch; }
.mbtn, .mlogo { display: none; }
.conn, .wal { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); border-radius: 999px; padding: 3px 11px; font-size: 12px; background: var(--panel); white-space: nowrap; }
.wal { padding: 3px 12px 3px 8px; }
.thm, .mbtn { align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); font-weight: 500; }
.thm { display: inline-flex; }
.thm:hover, .mbtn:hover { background: var(--hov); }
.scrim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 65; background: var(--scrim); border: 0; cursor: default; }

.ovv .page:focus-visible { outline: none; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.ttl { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.tl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12px; color: var(--dim); }

@media (max-width: 1099px) { .conn { display: none; } }
@media (max-width: 899px) {
  .side { width: 64px; }
  .brand { justify-content: center; padding: 0; }
  .lbl, .cap span, .cnt, .wm, .none-yet { display: none; }
  .cap { height: 0; padding: 0; margin: 8px 14px 4px; border-top: 1px solid var(--line); }
  .si { justify-content: center; padding: 0; margin: 2px 10px; }
  .si.cur::before { left: -10px; }
  .ndc { margin: 0 10px; padding: 6px; justify-content: center; }
  .ndc .dot { display: none; }
  .page { padding: 16px 16px 24px; }
  .topbar { padding: 0 16px; }
  .foot { padding: 14px 16px; }
}
@media (max-width: 599px) {
  .side { display: none; }
  .side.open { display: flex; position: sticky; top: 0; width: 280px; margin-right: -280px; z-index: 70; box-shadow: var(--shadow); }
  .side.open .lbl, .side.open .cap span, .side.open .cnt, .side.open .wm, .side.open .none-yet { display: inline; }
  .side.open .none-yet { display: block; }
  .side.open .brand { justify-content: flex-start; padding: 0 16px; }
  .side.open .cap { height: auto; padding: 16px 18px 4px; margin: 0; border: 0; }
  .side.open .si { justify-content: flex-start; padding: 0 10px; margin: 1px 8px; }
  .side.open .si.cur::before { left: -8px; }
  .side.open .ndc { justify-content: flex-start; padding: 6px 10px; margin: 0 8px; }
  .side.open .ndc .dot { display: inline-block; }
  .mbtn, .mlogo { display: inline-flex; }
  .mlogo { align-items: center; }
  .crumbs { display: none; }
  .topbar { gap: 8px; padding: 0 10px; }
  .thm .wx, .wal .wx { display: none; }
  .btn, .chip, .thm, .mbtn { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .page { padding: 12px 12px 20px; }
  .foot { padding: 12px; }
}
