/* Home hub: one fitted canvas with independent native collection scrolling.
   Compact windows expose the same tools through tabs. */
.messages:has(.home-dashboard){display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;scrollbar-gutter:auto!important}
.messages-inner:has(.home-dashboard){flex:1;min-height:0;height:100%;width:100%;display:flex;gap:0}
body[data-mobile-ui="1"] .messages:has(.home-dashboard){padding:0 0 env(safe-area-inset-bottom)!important}
.home-dashboard{box-sizing:border-box;width:100%;height:100%;min-height:0;max-width:1600px;margin-inline:auto;padding:clamp(14px,2.3cqi,32px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:20px;color:var(--ui-text);user-select:none;-webkit-user-select:none;cursor:default}
.home-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.home-dashboard-header h1{margin:0;font-size:26px;line-height:1.15;font-weight:780;letter-spacing:-.6px}
.home-dashboard-header p{margin:6px 0 0;font-size:12px;color:var(--ui-muted);line-height:1.3}
.home-tool-tabs{display:none;gap:4px;padding:4px;border:1px solid var(--ui-border);background:var(--ui-panel-3);border-radius:12px;min-width:0}
.home-tool-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:38px;padding:7px 12px;border:1px solid transparent;border-radius:8px;color:var(--ui-muted);background:transparent;font:inherit;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.home-tool-tabs button[aria-pressed="true"]{background:#24384d;border-color:#3b6185;color:#cfe5fa}
.home-tool-tabs svg{flex:none;width:17px;height:17px}
.home-tool-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:16px;min-height:0}
.home-tool-card{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:18px;border:1px solid var(--ui-border);border-radius:17px;background:var(--ui-panel);overflow:hidden}
.home-card-title{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.home-card-icon{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:9px;background:#233446;color:#91bde7}
.home-tool-card[data-home-tool="reminders"] .home-card-icon{background:#2e2d29;color:#c6b283}
.home-tool-card[data-home-tool="polls"] .home-card-icon{background:#203831;color:#85bea4}
.home-tool-card[data-home-tool="links"] .home-card-icon{background:#2c2b40;color:#b0a9d2}
.home-card-title h2{font-size:14px;letter-spacing:-.1px;line-height:1.3;margin:0;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card-count{font-size:11px;font-weight:700;color:var(--ui-muted);background:var(--ui-panel-3);border:1px solid var(--ui-border);border-radius:7px;min-width:24px;padding:3px 6px;text-align:center;margin-left:auto}
.home-icon-button{display:grid;place-items:center;flex:none;width:29px;height:29px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ui-muted);cursor:pointer}
.home-icon-button svg{width:16px;height:16px}
.home-icon-button:hover:not(:disabled){background:var(--ui-panel-2);color:var(--ui-text);border-color:var(--ui-border)}
.home-icon-button:disabled{opacity:.3;cursor:default}
.home-dashboard button:focus-visible,.home-dashboard a:focus-visible{outline:2px solid #79afe2;outline-offset:2px}
.home-card-list{flex:1;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#35485b transparent;scroll-padding:3px}
.home-hub-row{width:100%;min-height:60px;height:60px;max-height:60px;display:flex;gap:11px;align-items:center;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-panel-3);padding:9px 11px;flex:none;color:var(--ui-text);text-align:left;font:inherit;box-sizing:border-box;overflow:hidden}
button.home-hub-row{cursor:pointer;transition:background .12s,border-color .12s}
button.home-hub-row:hover,.home-link-row:hover{background:#202c38;border-color:var(--ui-border-strong)}
.home-row-mark{display:grid;place-items:center;width:28px;flex:none;color:#7c93ab}
.home-row-mark svg{width:19px;height:19px}
.home-row-copy{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1;color:inherit;text-decoration:none}
.home-row-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:620;line-height:16px;overflow-wrap:anywhere;max-height:32px}
.home-row-copy small{color:var(--ui-muted);font-size:10.5px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-row-copy:has(small) strong{-webkit-line-clamp:1;max-height:16px}
/* Recent URLs stay fully readable inside the same row, including unbroken
   paths/domains on narrow screens. Other Home tools keep their compact rows. */
.home-hub-row.home-link-row{height:auto;max-height:none}
.home-link-row .home-row-copy strong,.home-link-row .home-row-copy small{display:block;white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;-webkit-line-clamp:unset;max-height:none}
.home-row-arrow{color:#64798d;flex:none;display:grid;place-items:center}
.home-row-arrow svg{width:16px;height:16px}
.home-reminder-date{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:none;width:55px;padding-right:10px;border-right:1px solid var(--ui-border);font-size:10.5px;font-weight:700;line-height:1.3;color:#c3b58f;text-align:center}
.home-tool-empty{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:var(--ui-muted);border:1px dashed var(--ui-border);border-radius:10px;background:rgba(12,18,24,.15)}
.home-tool-empty>span{display:grid;place-items:center;color:#597084}
.home-tool-empty svg{width:23px;height:23px}
.home-tool-empty p{font-size:11px;margin:0;text-align:center;padding-inline:8px}
.home-poll-filters{display:flex;gap:4px;height:28px;flex:none}
.home-poll-filters button{padding:4px 9px;min-height:26px;background:transparent;border:1px solid transparent;border-radius:7px;color:var(--ui-muted);font:inherit;font-size:11px;font-weight:650;cursor:pointer}
.home-poll-filters button[aria-pressed="true"]{background:var(--ui-panel-2);color:#d4e6f7;border-color:var(--ui-border-strong)}
.home-link-search.app-search-field{flex:none;min-width:0;width:100%}
.home-dashboard[data-compact="1"]{gap:12px}
.home-dashboard[data-compact="1"] .home-dashboard-header{align-items:flex-start;flex-direction:column;gap:12px}
.home-dashboard[data-compact="1"] .home-tool-tabs{display:flex;width:100%}
.home-dashboard[data-compact="1"] .home-tool-tabs button{flex:1;padding-inline:7px;gap:5px;font-size:11px}
.home-dashboard[data-compact="1"] .home-tool-grid{display:flex;min-height:0}
.home-dashboard[data-compact="1"] .home-tool-card{display:none;flex:1;min-width:0}
.home-dashboard[data-compact="1"][data-tab="today"] [data-home-tool="today"],
.home-dashboard[data-compact="1"][data-tab="reminders"] [data-home-tool="reminders"],
.home-dashboard[data-compact="1"][data-tab="polls"] [data-home-tool="polls"],
.home-dashboard[data-compact="1"][data-tab="links"] [data-home-tool="links"]{display:flex}
@container content-pane (max-width:440px){.home-dashboard{padding:12px;gap:12px}.home-tool-card{padding:13px;border-radius:13px;gap:8px}.home-dashboard-header h1{font-size:22px}.home-tool-tabs svg{display:none}.home-hub-row{padding-inline:8px;gap:7px}.home-row-mark{width:22px}.home-dashboard-header p{font-size:11px}}
@media(max-height:520px){.home-dashboard{padding-block:10px;gap:8px}.home-dashboard[data-compact="1"] .home-dashboard-header{flex-direction:row;align-items:center;gap:15px}.home-dashboard[data-compact="1"] .home-tool-tabs{width:auto;flex:1;max-width:520px}.home-dashboard-header p{display:none}.home-dashboard-header h1{font-size:21px}.home-tool-card{padding:12px;gap:6px}.home-card-title{min-height:27px}.home-card-icon{height:27px;width:27px}.home-card-title h2{font-size:13px}.home-tool-tabs button{min-height:30px}.home-hub-row{min-height:54px;height:54px;max-height:54px}.home-tool-empty>span{display:none}}
@media(max-height:380px){.home-tool-card{padding:8px;gap:4px}.home-hub-row{min-height:48px;height:48px;max-height:48px}.home-card-icon{width:24px;height:24px}.home-card-title{min-height:24px}}

.home-dashboard :is(button,a),.home-dashboard :is(button,a) *{cursor:pointer}
.home-dashboard .home-link-search input{user-select:text;-webkit-user-select:text;cursor:text}
.home-card-list:focus-visible{outline:2px solid #79afe2;outline-offset:3px}
.home-card-list::-webkit-scrollbar{width:7px}
.home-card-list::-webkit-scrollbar-thumb{background:#35485b;border-radius:8px;border:2px solid var(--ui-panel)}
.home-card-list::-webkit-scrollbar-track{background:transparent}
