/* PMS web starter: simple, responsive brand layer over MudBlazor.
   Surfaces come from the CI tokens in pms-navigation.css; this file only adds layout. */
:root { --pms-ink: #1e1e1e; --pms-muted: #66645f; --pms-border: #e6e2da; }
html, body { min-height: 100%; background: var(--hostish-canvas, #f8f6f2); }
.pms-brand { font-weight: 800 !important; letter-spacing: -.03em; }
.pms-brand-sub { font-size: .84rem; font-weight: 400; letter-spacing: 0; color: var(--pms-muted); }
.pms-main { min-height: calc(100vh - 64px); background: var(--hostish-canvas, #f8f6f2); }
.pms-tenant-input { width: 250px; max-width: 27vw; margin: 0 10px; }
.pms-user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pms-logout { display: inline-flex; margin: 0 8px; }
.pms-hero { background: #fff; border: 1px solid var(--pms-border); border-radius: 18px; }
.pms-hero .mud-typography-h3 { color: var(--pms-ink); font-weight: 700; letter-spacing: -.035em; }
.pms-intro { color: var(--pms-muted); max-width: 620px; }
.pms-feature { height: 100%; border: 1px solid var(--pms-border); border-radius: 14px; }
.pms-feature .mud-typography-body2 { color: var(--pms-muted); }
@media (max-width: 950px) {
  .pms-brand-sub, .pms-user-name { display: none; }
  .pms-tenant-input { width: 185px; max-width: 32vw; }
}

/* .NET 10 reconnect UI: an explicit dialog with theme-aware surfaces.
   Both palettes use fully specified foreground/background colors. */
#components-reconnect-modal {
    width: min(92vw, 430px); border: 1px solid var(--mud-palette-lines-default, #d0d4d8);
    border-radius: 12px; padding: 24px; margin: auto; box-shadow: 0 22px 62px #0008;
    background: #ffffff; color: #1b2530; color-scheme: light;
}
#components-reconnect-modal::backdrop { background: rgba(0,0,0,.65); }
#components-reconnect-modal .hostish-reconnect-content { background: inherit; color: inherit; }
#components-reconnect-modal h2 { margin: 0 0 12px; font-size: 1.18rem; color: inherit; }
#components-reconnect-modal p { line-height: 1.5; color: inherit; margin: 0 0 16px; }
#components-reconnect-modal button { padding: .6rem 1rem; border: 1px solid #415f8b;
    border-radius: 6px; background: #345a87; color: #fff; margin: .25rem .5rem .25rem 0; cursor: pointer; }
#components-reconnect-modal button:focus-visible { outline: 2px solid #7cb5fa; outline-offset: 2px; }
html.hostish-dark #components-reconnect-modal { background: #22272b; color: #f4f6f7;
    border-color: #566168; color-scheme: dark; }
html.hostish-dark #components-reconnect-modal button { background: #334b68; border-color: #81a3c9; color: #fff; }
#components-reconnect-modal :is(.hostish-reconnect-show,.hostish-reconnect-paused,.hostish-reconnect-retrying,
    .hostish-reconnect-failed,.hostish-reconnect-rejected,.hostish-reconnect-resume,.hostish-reconnect-retry,.hostish-reconnect-reload) { display: none; }
#components-reconnect-modal.components-reconnect-show .hostish-reconnect-show,
#components-reconnect-modal.components-reconnect-paused .hostish-reconnect-paused,
#components-reconnect-modal.components-reconnect-retrying .hostish-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed .hostish-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .hostish-reconnect-rejected,
#components-reconnect-modal.components-reconnect-failed .hostish-reconnect-retry,
#components-reconnect-modal.components-reconnect-paused .hostish-reconnect-resume,
#components-reconnect-modal.components-reconnect-rejected .hostish-reconnect-reload { display: block; }
/* A failed connection can mean the server is down OR the circuit was destroyed.
   Never leave users with only an ineffective Retry button. */
#components-reconnect-modal.components-reconnect-failed .hostish-reconnect-reload,
#components-reconnect-modal.hostish-reconnect-session-ended .hostish-reconnect-reload,
#components-reconnect-modal.hostish-reconnect-session-ended .hostish-reconnect-rejected { display: block; }
#components-reconnect-modal.hostish-reconnect-session-ended .hostish-reconnect-retry,
#components-reconnect-modal.hostish-reconnect-session-ended .hostish-reconnect-resume,
#components-reconnect-modal.hostish-reconnect-session-ended .hostish-reconnect-failed { display: none; }
#components-reconnect-modal .hostish-reconnect-feedback { display: none; font-size: .9rem; }
#components-reconnect-modal.hostish-reconnect-has-feedback .hostish-reconnect-feedback { display: block; }
#components-reconnect-modal.hostish-reconnect-busy .hostish-reconnect-retry,
#components-reconnect-modal.hostish-reconnect-busy .hostish-reconnect-resume { opacity: .65; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
  #components-reconnect-modal { animation: none !important; }
}

/* intl-tel-input: use the full column, inherit the active MudBlazor palette,
   and maintain contrast for the flag selector, numbers and country dropdown. */
.hostish-phone-control { width: 100%; min-width: 0; margin: .55rem 0 1rem; }
.hostish-phone-control > label { display: block; margin: 0 0 .3rem; font-size: .875rem; }
.hostish-phone-control .iti { display: block; width: 100%; min-width: 0; }
.hostish-phone-control input[type=tel] {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    padding-top: .625rem !important;
    padding-bottom: .625rem !important;
    border: 1px solid var(--mud-palette-lines-inputs, #777) !important;
    border-radius: 5px;
    background-color: var(--mud-palette-surface, #fff) !important;
    color: var(--mud-palette-text-primary, #222) !important;
    font: inherit;
}
.hostish-phone-control input[type=tel]:focus-visible {
    outline: 2px solid var(--mud-palette-primary, #7baaf7);
    outline-offset: 1px;
}
.hostish-phone-control .iti__selected-country,
.hostish-phone-control .iti__selected-country-primary { background: transparent !important; }
.hostish-phone-control .iti__selected-dial-code,
.hostish-phone-control .iti__selected-country-primary { color: var(--mud-palette-text-primary, #222) !important; }
.hostish-phone-control .iti__dropdown-content {
    background: var(--mud-palette-surface, #fff) !important;
    color: var(--mud-palette-text-primary, #222) !important;
    border-color: var(--mud-palette-lines-default, #777) !important;
    z-index: 1400 !important;
}
.hostish-phone-control .iti__country.iti__highlight,
.hostish-phone-control .iti__country:hover { background: var(--mud-palette-action-default-hover, rgba(128,128,128,.2)) !important; }

/* Approved Hostish wordmark. The exports carry no background, so the surface behind the
   logo is its ground: no plate to mismatch, and no chip behind it. The theme choice is the
   document class alone. A prefers-color-scheme fallback here would override a person who
   deliberately picked Light while their operating system is dark, which is exactly how the
   dark artwork ended up on a white bar. */
.hostish-brand{display:inline-flex;align-items:center;min-width:0}
.hostish-brand img{display:block;height:28px;width:auto;max-width:170px;object-fit:contain;object-position:left center}
.hostish-brand .hostish-logo-for-dark{display:none}
html.hostish-dark .hostish-brand .hostish-logo-for-light{display:none}
html.hostish-dark .hostish-brand .hostish-logo-for-dark{display:block}

.hostish-auth-brand {display:inline-flex;align-items:center;max-width:100%;}
/* Size belongs to the surface that shows the lockup: hostish-auth.css sets it for the
   sign-in panel and each page overrides what it needs. No height here, or this rule
   would win on load order and quietly double the logo. */
.hostish-auth-brand img {display:block;max-width:100%;object-fit:contain}
.hostish-auth-brand .hostish-logo-for-dark{display:none}
html.hostish-dark .hostish-auth-brand .hostish-logo-for-light{display:none}
html.hostish-dark .hostish-auth-brand .hostish-logo-for-dark{display:block}

/* Brand wordmark must remain legible at the reduced app-bar width. */
.pms-appbar .hostish-brand{flex:0 1 190px;min-inline-size:90px;overflow:hidden}
@media(max-width:850px){.pms-appbar .hostish-brand{max-inline-size:132px}}
