/* Hostish design system — approved HOST·ISH brand colours.
   CI master reference, 19 October 2026:
     light  background #F8F6F2 · cards #FFFFFF · text #1E1E1E · borders #E6E2DA
     dark   background #1E1E1E · sidebar #151515 · cards #292929 · text #F8F6F2 · borders #3A3A3A
   The legacy --hostish-navy / --hostish-teal names predate the CI. They now alias the
   semantic tokens, so older rules keep working without a second palette to maintain. */
:root {
  --hostish-ink: #1e1e1e;
  --hostish-muted: #66645f;
  --hostish-canvas: #f8f6f2;
  --hostish-surface: #ffffff;
  --hostish-appbar: #f8f6f2;
  --hostish-side: #ffffff;
  --hostish-border: #e6e2da;
  --hostish-champagne: #d7c8b2;
  --hostish-olive: #687a3f;
  --hostish-olive-deep: #526132;
  --hostish-olive-highlight: #a8b879;
  --hostish-olive-soft: #edf0e7;
  --hostish-nav-active-bg: var(--hostish-olive-soft);
  --hostish-nav-active-ink: #1e1e1e;
  --hostish-input-border: #b9b6b0;
  --hostish-focus: rgba(104,122,63,.24);
  --hostish-navy: var(--hostish-ink);
  --hostish-navy-deep: #151515;
  --hostish-teal: var(--hostish-olive);
  --hostish-teal-hover: var(--hostish-olive-deep);
  --hostish-teal-soft: var(--hostish-olive-soft);
  --mud-palette-primary: #526132;
  --mud-palette-primary-text: #ffffff;
  --mud-palette-secondary: #1e1e1e;
  --mud-palette-secondary-text: #ffffff;
}
html.hostish-dark {
  --hostish-ink: #f8f6f2;
  --hostish-muted: #b9b6b0;
  --hostish-canvas: #1e1e1e;
  --hostish-surface: #292929;
  --hostish-appbar: #1e1e1e;
  --hostish-side: #151515;
  --hostish-border: #3a3a3a;
  --hostish-olive: #a8b879;
  --hostish-olive-deep: #44522a;
  --hostish-olive-soft: #2b3123;
  --hostish-nav-active-bg: #2b3123;
  --hostish-nav-active-ink: #f4f8ec;
  --hostish-input-border: #5b5b5b;
  --hostish-focus: rgba(168,184,121,.35);
  --hostish-navy-deep: #44522a;
  --mud-palette-primary: #a8b879;
}
body { color:var(--hostish-ink); background:var(--hostish-canvas); font-family:Inter,"Segoe UI",Arial,sans-serif; }
.pms-appbar { height:60px!important; background:var(--hostish-appbar)!important; color:var(--hostish-ink)!important; border-bottom:1px solid var(--hostish-border); }
.pms-shell { display:flex; min-height:calc(100vh - 60px); padding-top:60px; }
.pms-side { display:flex; flex-direction:column; position:sticky; top:60px; height:calc(100vh - 60px); width:240px; min-width:240px; overflow:auto; background:var(--hostish-side); border-right:1px solid var(--hostish-border); transition:width .18s ease,min-width .18s ease; }
.pms-side-collapsed { width:64px; min-width:64px; }
.pms-side-content { flex:1; min-height:0; overflow:auto; }
.pms-side-footer { padding:12px; border-top:1px solid var(--hostish-border); }
.pms-shell .pms-main { flex:1; min-width:0; min-height:calc(100vh - 60px); background:var(--hostish-canvas); padding:2px 18px 28px; }
.pms-side .mud-nav-link { border-radius:9px; margin:2px 8px; }
.pms-side .mud-nav-link.active, .pms-side .mud-nav-link.active .mud-icon-root { background:var(--hostish-nav-active-bg)!important; color:var(--hostish-nav-active-ink)!important; }
.pms-side .mud-nav-group { padding:0 3px; }
.pms-property-input { width:216px; margin-left:10px; }
.pms-tenant-input { min-width:180px; }
/* The wordmark export is transparent, so whatever is behind it is its ground. Its
   proportions are the approved ones; only the height is chosen here. */
.hostish-brand { display:flex; width:165px; height:46px; align-items:center; justify-content:flex-start; margin-left:8px; overflow:hidden; }
.hostish-brand img { display:block; height:28px; width:auto; max-width:160px; object-fit:contain; object-position:left center; }
.pms-appbar .mud-input-control { margin-top:3px; }
.pms-shell .mud-paper { border-radius:10px; }
.pms-shell .mud-button-filled-primary { background:var(--hostish-olive-deep)!important; color:#fff!important; }
.pms-shell .mud-button-filled-primary:hover { background:var(--hostish-olive)!important; }
.pms-shell .mud-button-outlined-primary { border-color:var(--hostish-olive)!important; color:var(--hostish-ink)!important; }
.pms-shell a:focus-visible, .pms-shell button:focus-visible { outline:3px solid var(--hostish-focus); outline-offset:2px; }
.hostish-subtable { background:var(--hostish-olive-soft); padding:12px; border:1px solid var(--hostish-border); border-radius:10px; }
/* Dashboard widgets share one row height so the counts line up. */
.hostish-widget { height:100%; }
@media(max-width:960px) { .pms-property-input,.pms-user-name {display:none!important;} .pms-tenant-input {max-width:35vw!important; min-width:120px!important;} .pms-side {width:210px;min-width:210px;} .pms-side-collapsed {width:0;min-width:0;border:0;} .pms-shell .pms-main {padding:0 8px 20px;} .hostish-brand {width:128px;} .hostish-brand img {height:24px;max-width:120px;} }

.hostish-address-picker { min-height:52px; max-width:660px; }
.hostish-address-picker gmp-place-autocomplete { width:100%; }

/* Per-user Light / Dark / System preferences. One of the two classes is always applied,
   before first paint, so nothing has to guess from prefers-color-scheme. */
.pms-appearance-input { min-width:110px; max-width:135px; margin-left:10px; }
@media(max-width:730px) { .pms-appearance-input {min-width:90px;max-width:98px;} }

/* Dark surfaces. html.hostish-dark is applied before the app renders; use the document
   theme rather than a child-level .mud-theme-provider assumption. */
html.hostish-dark body { background:var(--hostish-canvas); color:var(--hostish-ink); }
html.hostish-dark .pms-appbar {
  background:var(--hostish-appbar)!important; color:var(--hostish-ink)!important;
  border-bottom:1px solid var(--hostish-border)!important;
}
html.hostish-dark .pms-appbar .mud-input-control,
html.hostish-dark .pms-appbar .mud-input,
html.hostish-dark .pms-appbar .mud-input-slot,
html.hostish-dark .pms-appbar .mud-input-label,
html.hostish-dark .pms-appbar .mud-select-input,
html.hostish-dark .pms-appbar .mud-input-root,
html.hostish-dark .pms-appbar .mud-icon-root,
html.hostish-dark .pms-appbar .mud-button-root,
html.hostish-dark .pms-appbar .pms-user-name {
  color:var(--hostish-ink)!important;
  opacity:1!important;
}
html.hostish-dark .pms-appbar .mud-input-outlined-border { border-color:var(--hostish-input-border)!important; }
html.hostish-dark .pms-appbar .mud-input:hover .mud-input-outlined-border { border-color:var(--hostish-muted)!important; }
html.hostish-dark .pms-side {
  background:var(--hostish-side)!important; color:var(--hostish-ink)!important;
  border-right:1px solid var(--hostish-border)!important;
}
html.hostish-dark .pms-side .mud-nav-link,
html.hostish-dark .pms-side .mud-nav-link .mud-icon-root { color:var(--hostish-ink)!important; }
html.hostish-dark .pms-side .mud-nav-link.active,
html.hostish-dark .pms-side .mud-nav-link.active .mud-icon-root {
  background:var(--hostish-nav-active-bg)!important; color:var(--hostish-nav-active-ink)!important;
}
html.hostish-dark .pms-shell .pms-main { background:var(--hostish-canvas)!important; }
html.hostish-dark .pms-shell .mud-button-outlined-primary {
  border-color:var(--hostish-input-border)!important; color:var(--hostish-olive-highlight)!important;
}
html.hostish-dark .pms-shell .mud-button-outlined-primary:hover { border-color:var(--hostish-olive-highlight)!important; }
.pms-type-help { padding:7px 2px; color:var(--hostish-muted); line-height:1.45; }
