/* App shell as the mockups draw it: sidebar (WebSidebar.dc.html) and the main column every Web*.dc.html uses.
   Colours are mockup-palette tokens (tokens.css), so light and dark follow the mockups. */
body { font-family: var(--wt-font); font-size: 14px; line-height: 1.45; color: var(--wt-mk-fg-212529); background: var(--wt-mk-bg-f7f6fa); }
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.shell > .sidebar { flex: 1 1 248px; max-width: 100%; }
.shell-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.shell-main .page { padding: 28px max(16px, 3vw) 48px; display: flex; flex-direction: column; gap: 18px; max-width: 1180px;
                    margin: 0; width: 100%; }
.shell-main .page > * { min-width: 0; }

.sidebar { background: var(--wt-mk-bg-ffffff); border-right: 1px solid var(--wt-mk-bd-d3cedc); padding: 20px 14px;
           display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--wt-mk-fg-212529); }
@media (min-width: 808px) { .shell > .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; max-width: 260px; } }
.side-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wt-mk-fg-5d1680); padding: 0 8px 14px; }
.side-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--wt-mk-bg-5d1680); color: #FFFFFF;
             display: inline-flex; align-items: center; justify-content: center; flex: none; }
.side-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.side-household { margin-bottom: 12px; }
.side-household summary { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--wt-mk-bd-d3cedc);
                          background: var(--wt-mk-bg-f7f6fa); border-radius: 12px; padding: 10px; cursor: pointer; list-style: none; }
.side-household summary::-webkit-details-marker { display: none; }
.side-avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--wt-mk-bg-6b2fb3); color: #FFFFFF; display: inline-flex;
               align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.side-hh { flex: 1; min-width: 0; line-height: 1.25; }
.side-hh strong { font-size: 13px; }
.side-role { font-size: 12px; color: var(--wt-mk-fg-53595f); }
.side-chev { color: var(--wt-mk-fg-53595f); flex: none; }
.side-menu { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 6px; border: 1px solid var(--wt-mk-bd-d3cedc);
             border-radius: 12px; background: var(--wt-mk-bg-ffffff); }
.side-menu a, .side-menu button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 8px;
             border-radius: 8px; text-decoration: none; color: var(--wt-mk-fg-212529); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.side-menu a:hover, .side-menu button:hover { background: var(--wt-mk-bg-ece9fb); }
.side-menu form { margin: 0; }
.side-email { font-size: 12px; color: var(--wt-mk-fg-53595f); padding: 4px 8px; overflow-wrap: anywhere; }
.bell-count:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--wt-mk-bg-5d1680); color: #FFFFFF;
                          font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; border-radius: 10px; text-decoration: none;
             color: var(--wt-mk-fg-212529); font-weight: 400; }
.side-link:hover { background: var(--wt-mk-bg-f7f6fa); }
.side-link.on { background: var(--wt-mk-bg-ece9fb); color: var(--wt-mk-fg-350c4a); font-weight: 600; }
.side-ico { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; flex: none; }
.ico-home, .ico-household { background: var(--wt-mk-bg-6b2fb3); }
.ico-tax, .ico-income { background: var(--wt-mk-bg-2f62c8); }
.ico-snapshot { background: var(--wt-mk-bg-237660); }
.ico-properties, .ico-calendar { background: var(--wt-mk-bg-b4357a); }
.ico-documents, .ico-transactions { background: var(--wt-mk-bg-00649c); }
.ico-investments, .ico-plan { background: var(--wt-mk-bg-4b3fb5); }
.side-spacer { flex: 1; }
.side-disclaimer { margin: 0 0 8px; padding: 0 8px; font-size: 11px; line-height: 1.4; color: var(--wt-mk-fg-53595f); }
.side-foot { border-top: 1px solid var(--wt-mk-bd-ecebf1); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.side-foot-link { display: flex; align-items: center; min-height: 36px; padding: 6px 8px; border-radius: 10px; text-decoration: none;
                  color: var(--wt-mk-fg-53595f); font-weight: 400; }
.side-foot-link.on { background: var(--wt-mk-bg-ece9fb); color: var(--wt-mk-fg-350c4a); font-weight: 600; }
