/* Web/PWA presentation only. Original routes, permissions and calculations remain authoritative. */
:root {
  --hub-bg: #f8f6f1;
  --hub-ink: #293c30;
  --hub-line: #e7e5dd;
  --app-bg-solid: #f8f6f1;
  --surface: #ffffff;
  --surface-muted: #faf9f5;
  --border: #e7e5dd;
  --brand-green: #43664f;
  --brand-green-deep: #355440;
  --brand-green-soft: #e6eddf;
}
body.authenticated { background: var(--hub-bg); }
body.authenticated .sidebar { background: #f3f1e9; border-color: var(--hub-line); }
body.authenticated .mobile-app-bar { background: #f3f1e9f5 !important; border-color: var(--hub-line); }
.sidebar .nav-item, .family-home-tabs button { border-radius: 999px; }
.sidebar .nav-item.active, .family-home-tabs button[aria-current] { background: #e2eadb; border-color: #d9e3d1; }
.family-home-tabs button { background: #eeece3; color: #53634f; }
.family-hub-segment[data-hub-view="today"] > svg > path { fill: #bad2bd; }
.family-hub-segment[data-hub-view="inbox"] > svg > path { fill: #f2cc9a; }
.family-hub-segment[data-hub-view="chat"] > svg > path { fill: #d2c1e1; }
.family-hub-segment[data-hub-view="shopping"] > svg > path { fill: #bdd9d8; }
.family-hub-segment[data-hub-view="money"] > svg > path { fill: #e6bec9; }
.family-hub-segment > svg > path { stroke: var(--hub-bg); filter: drop-shadow(0 2px 0 #847e6c26); }
.family-hub-segment text { fill: #29372c; font-weight: 650; }
.family-hub-circle { filter: none; border-radius: 50%; box-shadow: 0 10px 18px #61594317; transform-origin: 50% 50%; }
.family-hub-centre { transform-origin: 50% 50%; transform-box: view-box; }
.family-hub-centre circle { fill: #fffef9; stroke: var(--hub-bg); filter: drop-shadow(0 2px 2px #675c481a); }
.family-hub-circle { touch-action: none; user-select: none; pointer-events: none; }
.family-hub-circle[data-dragging="true"], .family-hub-circle[data-dragging="true"] * { cursor: grabbing; }
.family-hub-circle[data-dragging="true"] { will-change: transform; }
.family-hub-circle[data-dragging="true"] .family-hub-segment > svg > path { filter: none; }
.hub-manual-controls { margin: 2px auto 16px; text-align: center; }
.hub-manual-controls[hidden] { display: none; }
.hub-rotation-hint { margin: 0 0 7px; color: #53644e; font-size: 12px; }
.hub-rotation-buttons { display: flex; gap: 8px; justify-content: center; }
.hub-motion-control { padding: 7px 13px; min-width: 44px; min-height: 44px; border: 1px solid var(--hub-line); border-radius: 999px; background: #fffef9; background-image: none; color: #4a6048; font-size: 12px; font-weight: 600; box-shadow: none; }
.daily-briefing-card, .dashboard-card, .mobile-family-board,
.money-chart-card, .money-summary-card, .money-month-folder,
.smart-shopping-panel, .shopping-summary-card, .family-grocery-shortcuts button {
  border: 1px solid var(--hub-line);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #fff 68%, #faf9f5 100%);
  box-shadow: 0 2px 2px #736b5808, 0 10px 20px -15px #736b5845, inset 0 1px 0 #fff;
}
.money-summary-card { padding: 16px 18px; }
.money-chart-card { padding: 18px; }
#moneyView .money-section { width: 100%; max-width: none; min-width: 0; }
#moneyView .money-list-panel, #moneyView .money-list, #moneyView .money-record > div { min-width: 0; }
.money-list-toolbar { align-items: center; flex-wrap: wrap; gap: 12px; }
.money-sort-control { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #53644e; font-size: 13px; font-weight: 600; }
.money-sort-control select { width: auto; max-width: 100%; min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid #d9dfd1; border-radius: 14px; background: #fffefb; color: #304332; }
.money-upcoming-scroll { max-height: 22rem; min-height: 0; overflow-y: scroll; touch-action: pan-y; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: #6d8265 #f0f1e8; padding: 2px 10px 5px 2px; overscroll-behavior: contain; }
.money-upcoming-scroll::-webkit-scrollbar { width: 10px; }
.money-upcoming-scroll::-webkit-scrollbar-track { background: #f0f1e8; border-radius: 10px; }
.money-upcoming-scroll::-webkit-scrollbar-thumb { background: #6d8265; border-radius: 10px; border: 2px solid #f0f1e8; }
.money-scroll-hint { margin: 9px 0 0; color: #64725d; font-size: 12px; }
.money-month-folder summary { flex-wrap: wrap; }
.money-record { overflow-wrap: anywhere; }
.money-payable-line { gap: 10px; align-items: center; }
.money-payable-line button { min-height: 44px; }
body.authenticated #dashboardView, #dashboardView .dashboard-grid, #dashboardView .family-snapshot { max-width: none; min-width: 0; }
#dashboardView .dashboard-grid { gap: 20px; }
#createShoppingGroceryList, #compareShoppingPrices, #submitInboxText, #sendChat {
  border-radius: 18px;
  background: linear-gradient(150deg, #55795f, #42654e);
  box-shadow: inset 0 1px 0 #8ca591, 0 2px 0 #34523e, 0 6px 10px -8px #43533c8c;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
#createShoppingGroceryList:hover, #compareShoppingPrices:hover, #submitInboxText:hover, #sendChat:hover { transform: translateY(-1px); }
#createShoppingGroceryList:active, #compareShoppingPrices:active, #submitInboxText:active, #sendChat:active { transform: translateY(1px); }
.hub-motion-control:focus-visible, .money-sort-control select:focus-visible, .money-upcoming-scroll:focus-visible { outline: 3px solid #456746; outline-offset: 3px; }

/* Twelve genuinely redrawn poses in a decoded-once atlas; no CSS limb rig or body bounce. */
.ozzi-processing { display: flex; align-items: center; gap: 18px; margin: 14px 0; padding: 16px 20px; min-width: 0; border: 1px solid #dce4d3; border-radius: 20px; background: #f0f4e9; color: #334932; }
.ozzi-processing[hidden] { display: none !important; }
.ozzi-illustration { position: relative; overflow: hidden; contain: layout paint; display: block; width: 132px; height: 114.4px; flex: 0 0 132px; }
.ozzi-mascot { display: block; width: 100%; height: 100%; object-fit: contain; }
.ozzi-frame-atlas { display: none; }
.ozzi-frames { display: none; width: 100%; height: 100%; }
.ozzi-processing[data-playback="playing"] .ozzi-mascot { visibility: hidden; }
.ozzi-processing[data-playback="playing"] .ozzi-frames { display: block; position: absolute; inset: 0; }

.ozzi-copy { min-width: 0; }
.ozzi-copy strong { display: block; font-size: 15px; line-height: 1.5; }
.ozzi-copy p { margin: 4px 0 0; color: #53664c; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.ozzi-processing[data-state="failed"] { background: #fff5ed; border-color: #ead1bc; }
.ozzi-processing[data-state="failed"] .ozzi-copy strong { color: #74422c; }
.ozzi-processing[data-state="review"] { background: #fcf6e9; border-color: #e7dcbd; }
@media(min-width:901px) { #moneyView .money-summary-row { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(min-width:1350px) { #moneyView .money-summary-row { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:900px), (max-height:480px) {
  body.authenticated .family-bottom-nav { background: #f3f1e9f5; border-color: var(--hub-line); }
  .family-bottom-nav button.active { background: #e2eadb; }
  .ozzi-processing { gap: 12px; padding: 14px; }
  .ozzi-illustration { width: 104px; height: 90.14px; flex-basis: 104px; }
  .money-sort-control, .money-sort-control select { width: 100%; }
  .money-upcoming-scroll { max-height: 20rem; }
}
@media(max-width:380px) { .ozzi-processing { gap: 8px; } .ozzi-illustration { width: 90px; height: 78px; flex-basis: 90px; } }
@media(prefers-reduced-motion:reduce) {
  .ozzi-processing .ozzi-frames { display: none !important; }
  .ozzi-processing .ozzi-mascot { visibility: visible !important; }
  .family-hub-circle, #createShoppingGroceryList, #compareShoppingPrices, #submitInboxText, #sendChat { transition: none !important; }
  #createShoppingGroceryList:hover, #compareShoppingPrices:hover, #submitInboxText:hover, #sendChat:hover { transform: none; }
}
@media print { .ozzi-processing, .hub-manual-controls { display: none !important; } }
