/* Home uses a flowing tool list. Additional registry modules need no layout changes. */
.home-page.home-hub {height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;background:var(--bg-main);}
.home-hub .hub-content {width:100%;max-width:800px;margin:0 auto;padding:38px 32px 48px;display:flex;flex-direction:column;gap:28px;min-width:0;}
.home-hub .hub-header {display:flex;align-items:center;justify-content:space-between;gap:18px;}
.home-hub .hub-heading {min-width:0;}
.home-hub .hub-brand {display:flex;align-items:center;gap:7px;color:var(--amber);font-size:10px;font-weight:750;letter-spacing:2.4px;margin-bottom:17px;}
.home-hub .hub-brand .ic {width:18px;height:18px;}
.home-hub h1 {margin:0;color:var(--text);font-size:34px;line-height:1.15;font-weight:750;letter-spacing:-1px;}
.home-hub .hub-greeting {margin:9px 0 0;color:var(--muted);font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.home-hub .hub-header>.avatar-action {align-self:center;}
.home-hub .hub-header .avatar {width:52px;height:52px;font-size:20px;box-shadow:0 0 0 5px rgba(255,255,255,.025);}
.home-hub .hub-network {margin:0;padding:11px 14px;border-radius:12px;background:var(--amber-dim);color:var(--amber);font-size:13px;}
.home-hub .hub-network[hidden],.home-hub .hub-admin[hidden] {display:none;}
.home-hub .hub-today {position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;min-width:0;width:100%;padding:25px 26px 0;border:1px solid #55452e;border-radius:22px;background:linear-gradient(115deg,#2d281f,#1f2127 78%);color:#f5ead5;cursor:pointer;overflow:hidden;}
.home-hub .hub-today-top {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.home-hub .hub-kicker {font-size:11px;letter-spacing:1.4px;font-weight:650;text-transform:uppercase;color:#d1b884;}
.home-hub .hub-today-icon {width:32px;height:32px;display:grid;place-items:center;border:1px solid #d2b37526;border-radius:10px;color:#d7b777;}
.home-hub .hub-today-icon .ic {width:17px;height:17px;}
.home-hub .hub-date {font-size:36px;line-height:1.1;letter-spacing:-.9px;font-weight:650;margin-top:10px;}
.home-hub .hub-weekday {font-size:13px;color:#a99e89;margin-top:6px;margin-bottom:22px;}
.home-hub .hub-event {display:flex;align-items:center;gap:12px;min-width:0;padding:17px 0;border-top:1px solid #d1b88424;}
.home-hub .hub-event-mark {width:3px;height:29px;border-radius:3px;flex:none;background:#d4b16e;}
.home-hub .hub-event-copy {display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;}
.home-hub .hub-event-title {font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-hub .hub-event-detail {font-size:12px;color:#b2a78f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-hub .hub-arrow {width:16px;height:16px;flex:none;transform:rotate(180deg);color:#77808e;}
.home-hub .hub-section-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;}
.home-hub .hub-section-head h2 {margin:0;font-size:17px;font-weight:650;letter-spacing:-.2px;}
.home-hub .hub-section-head>span {font-size:11px;color:var(--faint);}
.home-hub .hub-tools,.home-hub .hub-admin {border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--bg-card);}
.home-hub .hub-tool {width:100%;min-width:0;display:flex;align-items:center;gap:15px;min-height:86px;padding:17px 19px;color:var(--text);background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;cursor:pointer;}
.home-hub .hub-tool:last-child {border-bottom:0;}
.home-hub .hub-tool-icon {width:44px;height:44px;flex:none;border-radius:14px;display:grid;place-items:center;background:#8ca8e616;color:#9dbaf4;}
.home-hub .hub-tool-icon .ic {width:22px;height:22px;}
.home-hub .hub-icon-calendar {color:#e1b96c;background:#e1b96c14;}
.home-hub .hub-icon-cloud {color:#9dbaf4;background:#8ca8e616;}
.home-hub .hub-icon-notes {color:#a5c8ab;background:#a5c8ab14;}
.home-hub .hub-icon-admin {color:var(--muted);background:#ffffff09;}
.home-hub .hub-tool-copy {min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;}
.home-hub .hub-tool-name {font-size:15px;font-weight:600;line-height:1.3;}
.home-hub .hub-tool-sub {font-size:12px;color:var(--muted);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home-hub button:focus-visible {outline:2px solid var(--amber);outline-offset:-3px;}
@media(hover:hover) {
  .home-hub .hub-tool:hover {background:#ffffff04;}
  .home-hub .hub-today:hover {border-color:#9c7d49;}
}
@media(prefers-reduced-motion:no-preference) {
  .home-hub .hub-content {animation:page-enter 180ms ease-out both;}
  .home-hub .hub-tool:active,.home-hub .hub-today:active {opacity:.8;}
}
@media(max-width:767px) {
  .mobile-v2 .home-hub {background:#11151c;}
  .home-hub .hub-content {max-width:560px;padding:24px 20px 28px;gap:25px;}
  .home-hub .hub-brand {margin-bottom:16px;}
  .home-hub h1 {font-size:31px;}
  .home-hub .hub-greeting {font-size:13px;}
  .home-hub .hub-header .avatar {width:45px;height:45px;font-size:17px;}
  .home-hub .hub-today {padding:19px 20px 0;border-radius:20px;}
  .home-hub .hub-date {font-size:33px;}
  .home-hub .hub-weekday {margin-bottom:19px;}
  .home-hub .hub-tools,.home-hub .hub-admin {background:#1a202a;border-color:#29313e;border-radius:17px;}
  .home-hub .hub-tool {padding:16px;gap:13px;min-height:82px;border-color:#29313e;}
  .home-hub .hub-tool-icon {width:42px;height:42px;border-radius:13px;}
  .home-hub .hub-section-head>span {font-size:10px;}
}
@media(max-width:350px) {
  .home-hub .hub-content {padding-left:16px;padding-right:16px;}
  .home-hub .hub-section-head>span {display:none;}
  .home-hub .hub-tool {padding:14px;gap:11px;}
}

.home-hub .hub-header-actions {display:flex;align-items:center;gap:20px;flex:none;}
.home-hub .hub-desktop-chats {gap:8px;}
@media(max-width:767px) {.home-hub .hub-desktop-chats {display:none;}.home-hub .hub-header-actions{gap:0;}}

.home-hub .hub-network {position:absolute;top:16px;right:16px;width:7px;height:7px;padding:0;border:0;border-radius:50%;background:var(--amber);pointer-events:none;}
.home-hub .hub-content {position:relative;}

/* Keep mobile actions on the brand row, leaving title and greeting their full width. */
@media(max-width:767px){
 .mobile-v2 .home-page.home-hub{background:var(--bg-main)}
 .home-hub .hub-content{padding:18px 16px 28px;gap:20px}
 .home-hub .hub-header{display:block;position:relative;min-width:0}
 .home-hub .hub-heading{width:100%}
 .home-hub .hub-brand{min-height:44px;margin-bottom:12px;font-size:9px;letter-spacing:1.8px}
 .home-hub h1{font-size:29px;line-height:1.15}
 .home-hub .hub-greeting{margin-top:7px;font-size:13px;line-height:1.45}
 .home-hub .hub-header-actions{position:absolute;right:0;top:0;gap:8px;flex-wrap:nowrap}
 .home-hub .hub-applications{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 10px;font-size:12px;line-height:1;white-space:nowrap;border-radius:11px}
 .home-hub .hub-applications .ic{width:15px;height:15px}
 .home-hub .hub-header-actions .avatar-action{min-width:40px;min-height:40px;display:grid;place-items:center}
 .home-hub .hub-header .avatar{width:35px;height:35px;font-size:15px;box-shadow:none}
 .home-hub .hub-today{padding:16px 17px 0;border-radius:18px}
 .home-hub .hub-date{font-size:29px;margin-top:8px}
 .home-hub .hub-weekday{margin-bottom:12px}
 .home-hub .hub-event{padding:13px 0;gap:10px}
 .home-hub .hub-tools,.home-hub .hub-admin{background:var(--bg-card);border-color:var(--line);border-radius:16px}
 .home-hub .hub-tool{min-height:72px;padding:13px 14px;gap:12px;border-color:var(--line)}
 .home-hub .hub-tool-icon{width:38px;height:38px;border-radius:12px}
 .home-hub .hub-tool-name{font-size:14px}
 .home-hub .hub-tool-sub{font-size:12px}
}
