/* Shared workspace surfaces. Tree coordinates, card dimensions and routes stay in the editor. */
body {
  --ui-bg:#e6dac3;--ui-panel:#f3ead9;--ui-ink:#243f26;--ui-muted:#4b6351;
  --ui-line:rgba(88,110,82,.25);--ui-accent:#426e60;--ui-mint:#a9d39b;
  --ui-glass:rgba(255,250,240,.88);--ui-shine:rgba(255,255,255,.48);--ui-field:rgba(255,255,255,.38);
  --ui-shadow:0 14px 40px rgba(45,59,37,.08),inset 0 1px rgba(255,255,255,.65);
}
body.dark-mode {
  --ui-bg:#0c1c14;--ui-panel:#172d22;--ui-ink:#edf4ec;--ui-muted:#b6c8b9;
  --ui-line:rgba(204,232,210,.2);--ui-accent:#a9d39b;
  --ui-glass:rgba(23,45,34,.9);--ui-shine:rgba(237,244,236,.075);--ui-field:rgba(8,25,16,.28);
  --ui-shadow:0 14px 40px rgba(0,0,0,.14),inset 0 1px rgba(237,244,236,.1);
}
html body :is(.app,.modal-backdrop,.detail-drawer,.mobile-account-only) {
  --paper:var(--ui-bg);--white:var(--ui-panel);--ink:var(--ui-ink);--muted:var(--ui-muted);
  --line:var(--ui-line);--green:var(--ui-accent);--green2:var(--ui-accent);--pale:var(--ui-field);
  color:var(--ui-ink);
}
html body .app {
  gap:18px;padding:16px;grid-template-columns:246px minmax(0,1fr);
  background:radial-gradient(ellipse at 0 0,rgba(96,143,113,.16),transparent 600px),var(--ui-bg);
}
html body .app .sidebar {
  top:16px;height:calc(100dvh - 32px);padding:24px 16px 16px;border:1px solid var(--ui-line);
  border-radius:28px;background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-glass);
  box-shadow:var(--ui-shadow);
}
html body .app .brand { color:var(--ui-ink);gap:10px; }
html body .app .brandmark { background:transparent;padding:0; }
html body .app .brand strong { font-size:22px;letter-spacing:-.6px; }
html body .app .brand small { color:var(--ui-muted);font-size:11px; }
html body .app .nav-label { font-size:10px;letter-spacing:.13em;color:var(--ui-muted); }
html body .app .nav { gap:7px; }
html body .app .nav button {
  min-height:46px;padding:12px 14px;border-radius:17px;border:1px solid transparent;
  color:var(--ui-muted);font-size:13px;background:transparent;
}
html body .app .nav button:hover { background:var(--ui-field);color:var(--ui-ink); }
html body .app .nav button.active { background:var(--ui-field);border-color:var(--ui-line);color:var(--ui-ink);box-shadow:inset 0 1px var(--ui-shine); }
html body .app .nav .icon { color:var(--ui-accent); }
html body .app .topbar {
  min-height:72px;height:auto;padding:14px 24px;gap:20px;border:1px solid var(--ui-line);border-radius:26px;
  background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-glass);box-shadow:var(--ui-shadow);
}
html body .app .crumb { color:var(--ui-ink);font-size:13px; }
html body .app .crumb span { color:var(--ui-muted); }
html body .app .content { padding:30px 10px 40px; }
html body .app .welcome { gap:20px;margin-bottom:26px; }
html body .app .welcome h1 { color:var(--ui-ink);font-size:clamp(28px,2.7vw,40px);font-weight:500;letter-spacing:-.04em;line-height:1.15; }
html body .app .welcome p { color:var(--ui-muted);font-size:14px;line-height:1.7; }
html body .app .eyebrow { color:var(--ui-accent);font-size:10px;letter-spacing:.13em; }
html body .app .stats { gap:16px;margin-bottom:24px; }
html body .app :is(.stat,.tree-panel,.info-card,.people-overview,.plan-choice,.subscription-current,.photo-storage-card) {
  border:1px solid var(--ui-line);border-radius:24px;
  background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-glass);box-shadow:var(--ui-shadow);
}
html body .app .stat { padding:22px; }
html body .app .stat small { color:var(--ui-muted);font-size:12px; }
html body .app .stat strong { color:var(--ui-ink);font-weight:500; }
html body .app .stat-icon { background:var(--ui-field);color:var(--ui-accent);border-radius:16px; }
html body .app .panel-head { padding:22px 24px;border-color:var(--ui-line);background:transparent;gap:16px; }
html body .app .panel-title { color:var(--ui-ink);font-size:18px; }
html body .app .panel-subtitle { color:var(--ui-muted);font-size:12px;line-height:1.6; }
html body .app .tree-wrap { background:var(--ui-bg); }
/* Tree cards: colour only, preserving measured size, text wrapping and connector geometry. */
html body .app .person-card { background:var(--ui-panel);border-color:var(--ui-line);color:var(--ui-ink); }
html body .app .person-card.selected { border-color:var(--ui-accent); }
html body .app .people-list .person-card { background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-glass); }
html body .app .info-card { padding:24px; }
html body .app .info-card :is(h2,h3) { color:var(--ui-ink); }
html body .app .info-card p { color:var(--ui-muted);line-height:1.75; }
html body .app :is(.button,.icon-button,.tree-picker-trigger),
html body :is(.modal-backdrop,.detail-drawer,.mobile-account-only) :is(.button,.icon-button,.tree-picker-trigger) {
  min-height:42px;border:1px solid var(--ui-line);border-radius:999px;
  background:linear-gradient(150deg,var(--ui-shine),transparent 65%),var(--ui-glass);color:var(--ui-ink);
  font-size:12px;font-weight:600;box-shadow:inset 0 1px var(--ui-shine);
}
html body .app .button,
html body :is(.modal-backdrop,.detail-drawer,.mobile-account-only) .button { padding:11px 17px; }
html body .app .button.primary,
html body :is(.modal-backdrop,.detail-drawer,.mobile-account-only) .button.primary {
  background:#a9d39b;border-color:#a9d39b;color:#142619;
}
html body :is(.app,.modal-backdrop,.detail-drawer) .button.danger { background:transparent;border-color:#b47060;color:#a64536; }
html body.dark-mode :is(.app,.modal-backdrop,.detail-drawer) .button.danger { color:#f2b4a3; }
html body :is(.app,.modal-backdrop,.detail-drawer) button:disabled { opacity:.5;cursor:not-allowed; }
html body :is(.app,.modal-backdrop,.detail-drawer,.mobile-account-only) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--ui-accent);outline-offset:3px;
}
html body .app .search,
html body :is(.modal-backdrop,.detail-drawer) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) {
  min-height:44px;border:1px solid var(--ui-line);border-radius:14px;padding:11px 13px;
  background:var(--ui-field);color:var(--ui-ink);font-size:14px;line-height:1.5;
}
html body :is(.app,.modal-backdrop,.detail-drawer) :is(input,textarea)::placeholder { color:var(--ui-muted);opacity:.85; }
html body :is(.app,.modal-backdrop,.detail-drawer) :is(input[type=checkbox],input[type=radio],input[type=range]) { accent-color:var(--ui-accent); }
html body .app .tree-picker-options,
html body :is(.modal-backdrop,.detail-drawer) .tree-picker-options {
  border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-panel);color:var(--ui-ink);box-shadow:var(--ui-shadow);padding:6px;
}
html body .app .tree-picker-option,
html body :is(.modal-backdrop,.detail-drawer) .tree-picker-option { min-height:40px;border-radius:12px;color:var(--ui-ink);font-size:12px; }
html body :is(.app,.modal-backdrop,.detail-drawer) .tree-picker-option:hover { background:var(--ui-field); }
html body .app :is(.profile,.profile-menu-trigger) { color:var(--ui-ink);border-radius:18px; }
html body .app :is(.profile-menu,.profile-menu a,.profile-menu button) { background:var(--ui-panel);color:var(--ui-ink);border-color:var(--ui-line); }
html body .app .profile-menu { border-radius:20px;box-shadow:var(--ui-shadow);padding:6px; }
html body .app .profile-menu :is(a,button) { border-radius:12px;min-height:42px; }
html body .app .profile:hover,html body .app .profile-menu :is(a,button):hover { background:var(--ui-field); }
html body .app :is(.family-action,.tip) { color:var(--ui-muted); }
html body .app .tip { border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-field);padding:14px;line-height:1.6; }
html body .app .plan-choice.is-current { border-color:var(--ui-accent); }
html body .app :is(.plan-comparison-wrap,.feature-comparison) { border-color:var(--ui-line);border-radius:20px; }
html body .app .plan-comparison :is(th,td) { border-color:var(--ui-line);color:var(--ui-ink); }
html body .app .plan-comparison thead th { background:var(--ui-field); }
html body .app :is(.contact-request-card,.discovery-result,.discovery-rules,.discovery-optin,.contact-request-empty) {
  border-color:var(--ui-line);border-radius:18px;background:var(--ui-field);color:var(--ui-ink);
}
html body .app :is(.contact-request-card strong,.discovery-result strong) { color:var(--ui-ink); }
html body .app :is(.contact-request-card p,.discovery-result span,.discovery-optin p) { color:var(--ui-muted); }
html body .app :is(.contact-inbox-heading,.discovery-section-heading,.contact-request-group h4,.discovery-subheading) { color:var(--ui-ink);border-color:var(--ui-line); }
/* Dialogs stay opaque enough for reading; blur only the backdrop, never tree cards. */
html body .modal-backdrop { background:rgba(8,24,15,.48);padding:20px; }
html body .modal-backdrop.open { backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px); }
html body .modal-backdrop .modal {
  border:1px solid var(--ui-line);border-radius:28px;padding:28px;
  background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-panel);
  color:var(--ui-ink);box-shadow:0 26px 80px rgba(0,0,0,.25),inset 0 1px var(--ui-shine);
}
html body .modal-backdrop .modal-head { gap:20px; }
html body .modal-backdrop .modal-head h2 { color:var(--ui-ink);font-size:24px;line-height:1.25;letter-spacing:-.03em; }
html body .modal-backdrop .modal-head p { color:var(--ui-muted);font-size:14px;line-height:1.7; }
html body :is(.modal-backdrop,.detail-drawer) :is(.field label,.account-form label) { color:var(--ui-muted);font-size:12px; }
html body .modal-backdrop :is(.close,.photo-viewer-head button),html body .detail-drawer .drawer-top button {
  min-width:44px;min-height:44px;border:1px solid var(--ui-line);border-radius:999px;background:var(--ui-field);color:var(--ui-ink);
}
html body .modal-backdrop :is(.account-summary,.backup-choice,.automatic-backup-panel,.invitation-result,.calendar-option,.support-ticket,.shared-parent-panel) {
  border:1px solid var(--ui-line);border-radius:18px;background:var(--ui-field);color:var(--ui-ink);
}
html body .modal-backdrop :is(.account-section,.modal-foot,.automatic-backup-heading,.collaborator-row,.support-ticket-history) { border-color:var(--ui-line); }
html body .modal-backdrop :is(.account-section h3,.account-summary strong,.calendar-option strong,.backup-choice strong) { color:var(--ui-ink); }
html body .modal-backdrop :is(.account-section p,.account-summary small,.calendar-help,.calendar-note,.backup-note,.support-hint,.collaborator-help) { color:var(--ui-muted);line-height:1.7; }
html body .modal-backdrop :is(.collaborator-row,.calendar-person-list,.automatic-backup-list) { border-color:var(--ui-line);background:var(--ui-field);color:var(--ui-ink); }
html body .modal-backdrop .account-form { gap:12px; }
html body .modal-backdrop :is(.account-message,.calendar-message,.backup-message) { color:var(--ui-ink); }
html body .modal-backdrop :is(.account-message.error,.calendar-message.error,.backup-message.error) { color:#a64536; }
html body.dark-mode .modal-backdrop :is(.account-message.error,.calendar-message.error,.backup-message.error) { color:#f2b4a3; }
html body .detail-drawer {
  top:16px;right:16px;bottom:16px;width:min(420px,calc(100vw - 32px));padding:26px;border:1px solid var(--ui-line);border-radius:28px;
  background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-panel);box-shadow:var(--ui-shadow);
}
html body .detail-drawer :is(h2,h3,strong) { color:var(--ui-ink); }
html body .detail-drawer :is(p,small,label) { color:var(--ui-muted); }
html body .toast { border:1px solid var(--ui-line);border-radius:999px;padding:14px 22px;background:var(--ui-panel);color:var(--ui-ink);box-shadow:var(--ui-shadow); }
@media(max-width:1180px) and (min-width:761px) {
 html body .app { grid-template-columns:210px minmax(0,1fr);gap:12px;padding:12px; }
 html body .app .sidebar { top:12px;height:calc(100dvh - 24px);padding:20px 12px; }
 html body .app .brand strong { font-size:20px; }
 html body .app .content { padding:24px 4px 32px; }
 html body .app .topbar { padding:14px 18px; }
 html body .app .welcome { flex-wrap:wrap; }
 html body .app .panel-head { padding:18px; }
 html body .app .welcome-actions { flex-wrap:wrap; }
}
/* Mobile browser gate remains; the native app is not publicly released yet. */
html body #landingPage .mobile-app-notice { display:none; }
@media(max-width:760px),(pointer:coarse) and (max-width:1024px) {
 html body #landingPage .mobile-app-notice {
  display:flex;align-items:flex-start;gap:14px;padding:18px 20px;margin:0 auto 24px;
  max-width:600px;border:1px solid var(--home-border);border-radius:22px;text-align:left;
  background:linear-gradient(140deg,var(--home-shine),transparent 65%),var(--home-glass);box-shadow:var(--home-shadow);
 }
 html body #landingPage .mobile-app-notice svg { flex:0 0 24px;color:var(--home-focus);margin-top:2px; }
 html body #landingPage .mobile-app-notice strong { display:block;font-size:15px;line-height:1.45;color:var(--home-ink); }
 html body #landingPage .mobile-app-notice p { margin:7px 0 0!important;font-size:13px!important;line-height:1.7!important;color:var(--home-muted)!important; }
 html body .mobile-account-only { background:radial-gradient(ellipse at 0 0,rgba(96,143,113,.18),transparent 70%),var(--ui-bg)!important;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom)); }
 html body .mobile-account-card { padding:30px 26px;border:1px solid var(--ui-line);border-radius:28px;background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-glass);box-shadow:var(--ui-shadow); }
 html body .mobile-account-card .mobile-account-brand { background:transparent; }
 html body .mobile-account-card h1 { margin-top:20px;color:var(--ui-ink);font-weight:500;font-size:30px;text-wrap:balance; }
 html body .mobile-account-card p { color:var(--ui-muted);font-size:15px;line-height:1.8; }
 html body .mobile-account-card .mobile-account-eyebrow { margin:20px 0 0;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ui-accent); }
 html body .mobile-account-card .button { width:100%;min-height:48px;margin-top:12px;font-size:14px; }
 html body .modal-backdrop { padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom)); }
 html body .modal-backdrop .modal { padding:24px 20px;border-radius:24px;max-height:calc(100dvh - 32px); }
 html body .modal-backdrop :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) { font-size:16px; }
 html body .modal-backdrop .account-form { flex-wrap:wrap; }
 html body .modal-backdrop .account-form > * { min-width:0; }
 html body .modal-backdrop .account-form .button { width:100%; }
 html body .toast { width:max-content;max-width:calc(100vw - 32px);text-align:center;border-radius:22px; }
}
@media(prefers-reduced-transparency:reduce) {
 body { --ui-glass:var(--ui-panel);--ui-shine:transparent; }
 html body .modal-backdrop.open { backdrop-filter:none;-webkit-backdrop-filter:none; }
}
@media(prefers-reduced-motion:reduce) {
 html body :is(.app,.modal-backdrop,.detail-drawer) *,html body .detail-drawer { transition:none!important;scroll-behavior:auto!important; }
}
html body .app .discovery-optin { padding:16px;font-size:14px;line-height:1.7; }
html body .app .info-card :is(h2,h3) { font-weight:500; }
@media(max-width:760px),(pointer:coarse) and (max-width:1024px) {
 html body .mobile-account-card .button { display:flex;align-items:center;justify-content:center; }
}
html body .app .timeline-story { padding:22px;border:1px solid var(--ui-line);border-radius:22px;background:linear-gradient(140deg,var(--ui-shine),transparent 65%),var(--ui-field);color:var(--ui-ink); }
html body .app .timeline-story :is(.story-title,.story-edit) { color:var(--ui-ink); }
html body .app .timeline-story .story-title { font-size:17px;line-height:1.4; }
html body .app .timeline-story-body { font-size:14px;line-height:1.8;color:var(--ui-muted); }
html body .app .timeline-story-meta span { background:var(--ui-field);color:var(--ui-muted);border-radius:999px; }
html body .app .story-edit { min-height:44px;border:1px solid var(--ui-line);border-radius:999px;padding:10px 15px;font-size:12px; }
html body .app .story-photo { border-radius:18px; }
html body .detail-drawer .drawer-relative { min-height:42px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-field);color:var(--ui-ink);padding:10px 12px; }
html body .app :is(.plan-choice-device-note,.subscription-note) { color:var(--ui-muted);line-height:1.7; }
html body .mobile-account-card .button { text-decoration:none; }
html body .app .topbar { flex:0 0 auto; }
html body .app .topbar-leading { min-width:0;flex:1; }
html body .app .crumb { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(min-width:761px) and (max-width:900px) {
 html body .app { grid-template-columns:84px minmax(0,1fr); }
 html body .app .sidebar { padding:20px 8px 12px;overflow:visible; }
 html body .app .sidebar .brand { justify-content:center; }
 html body .app .sidebar .nav button { padding:12px 0;justify-content:center; }
 html body .app .side-bottom { flex-direction:column;align-items:stretch;gap:10px; }
 html body .app #themeToggleLabel { display:none; }
 html body .app .theme-toggle { padding:10px;justify-content:center;gap:6px; }
 html body .app .appearance-picker .tree-picker-options { min-width:190px; }
 html body .app .profile { padding:8px 0;justify-content:center; }
 html body .app .profile-menu-chevron { display:none; }
}
/* Keep the quick add action clear of the persistent privacy-settings control. */
html body .app #quickAddPerson { bottom:84px;right:32px; }
@media(prefers-reduced-transparency:reduce) {
 body,body.dark-mode { --ui-glass:var(--ui-panel);--ui-shine:transparent; }
}
/* Anchor the profile area; only the upper sidebar content scrolls when needed. */
html body .app { padding-top:12px;padding-bottom:12px; }
html body .app .sidebar { top:0;height:100%;min-height:0;overflow:visible;padding-top:20px; }
html body .app .sidebar-main { flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:12px;scrollbar-width:thin; }
html body .app .sidebar-main:has(.tree-picker[open]) { overflow:visible;position:relative;z-index:3; }
html body .app .side-bottom { flex:0 0 auto;margin-top:auto;position:relative;z-index:2; }
html body.authenticated .app .content { padding-bottom:0; }
html body.authenticated .app.tree-expanded .content { padding:16px 0 0; }
html body.authenticated .app.tree-expanded #treeView .tree-panel { border-radius:24px;box-shadow:var(--ui-shadow); }
@media(max-height:850px) { html body .app .side-bottom .tip { display:none; } }
/* The floating add action belongs exclusively to the expanded tree. */
html body .app:not(.tree-expanded) #quickAddPerson { display:none!important; }
html body .app.tree-expanded #quickAddPerson { bottom:28px; }
/* Consent choices remain available from the profile menu, without a floating overlay. */
@media(min-width:761px) {
 html body.authenticated:not(.public-home-mode) #treevoria-privacy-controls .tv-privacy-launcher { display:none; }
}
@media(pointer:coarse) and (max-width:1024px) {
 html body.authenticated:not(.public-home-mode) #treevoria-privacy-controls .tv-privacy-launcher { display:inline-flex; }
}
/* One clean chevron: do not rotate an SVG on top of the old CSS border arrow. */
html body .app #branchPicker .tree-picker-chevron { border:0!important;transform:none!important;position:relative;width:18px;height:18px;flex:0 0 18px;margin:0;font-size:0; }
html body .app #branchPicker .tree-picker-chevron svg { display:none!important; }
html body .app #branchPicker .tree-picker-chevron::after { content:"";position:absolute;left:5px;top:3px;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg); }
html body .app #branchPicker[open] .tree-picker-chevron::after { top:7px;transform:rotate(225deg); }
/* Compact the contents rather than making the workspace navigation scroll. */
html body .app .sidebar-main { overflow:visible;padding-bottom:8px; }
html body .app .sidebar-main .brand { padding-bottom:18px; }
@media(max-height:850px) {
 html body .app .sidebar { padding-top:14px;padding-bottom:12px; }
 html body .app .sidebar-main .brand { padding-bottom:14px; }
 html body .app .nav-label { margin:0 0 5px; }
 html body .app .nav { gap:3px; }
 html body .app .nav button { min-height:36px;padding:8px 12px;font-size:12px; }
 html body .app .family-switch { margin-top:12px;padding:9px; }
 html body .app .family-switch .tree-picker-trigger { min-height:36px;padding:8px 10px;font-size:11px; }
 html body .app .calendar-sidebar-button { min-height:34px;padding:8px 10px;font-size:10px; }
 html body .app .family-switch-actions { grid-template-columns:1fr 1fr;gap:2px; }
 html body .app .family-switch-actions > :first-child { grid-column:1/-1; }
 html body .app .appearance-picker { margin-top:4px; }
 html body .app .side-bottom :is(.theme-toggle,.sidebar-language-toggle) { min-height:36px;padding:8px 10px;font-size:11px; }
 html body .app .profile { padding:7px 8px; }
}
@media(max-height:650px) {
 html body .app .sidebar { padding-top:10px;padding-bottom:8px; }
 html body .app .sidebar-main .brand { padding-bottom:8px; }
 html body .app .sidebar .brand small { display:none; }
 html body .app .sidebar .brand strong { font-size:19px; }
 html body .app .sidebar .brandmark { width:30px;height:30px; }
 html body .app .nav button { min-height:30px;padding:5px 10px;font-size:11px; }
 html body .app .family-switch { margin-top:8px;padding:7px; }
 html body .app .family-limit-note { display:none; }
 html body .app .family-switch .tree-picker-trigger { min-height:30px;padding:6px 8px;font-size:10px; }
 html body .app .calendar-sidebar-button { min-height:30px;padding:6px 8px; }
 html body .app .side-bottom :is(.theme-toggle,.sidebar-language-toggle) { min-height:30px;padding:6px 8px;font-size:10px; }
 html body .app .side-bottom .avatar { width:30px;height:30px;min-width:30px;min-height:30px;flex-basis:30px; }
 html body .app .profile { padding:5px 6px; }
}
@media(max-height:560px) {
 html body .app .nav-label,html body .app .family-switch .tree-picker-group > small { display:none; }
 html body .app .sidebar-main .brand { padding-bottom:4px; }
 html body .app .nav button { min-height:28px;padding:4px 10px; }
 html body .app .family-switch { margin-top:4px; }
}
@media(max-height:560px) {
 html body .app .sidebar .brandmark { width:24px;height:24px; }
 html body .app .sidebar .brand strong { font-size:17px; }
 html body .app .sidebar-main .brand { padding-bottom:2px; }
 html body .app .nav button { min-height:24px;padding:2px 10px; }
 html body .app .family-switch { padding:5px; }
 html body .app .calendar-sidebar-button { min-height:26px;padding:4px 8px; }
 html body .app .family-action { font-size:9px;padding:2px 1px; }
 html body .app .family-switch-actions { margin-top:3px; }
}
html body .app .side-bottom .tip { display:none; }
/* Owned and shared family pickers share a row instead of increasing sidebar height. */
@media(min-width:901px) {
html body .app .family-switch:has(#sharedTreeGroup:not([hidden])) { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 6px; }
html body .app .family-switch:has(#sharedTreeGroup:not([hidden])) > :not(.tree-picker-group) { grid-column:1/-1; }
html body .app .family-switch .tree-picker-group { min-width:0; }
html body .app .family-switch #sharedTreeGroup { margin-top:0; }
}
