/* Company cards in the account chooser, and their compact workspace counterpart. */
.platform-admin { min-height: 100dvh; padding: clamp(.85rem, 5vw, 3rem); color: var(--ink); }
.admin-shell { width: min(100%, 43rem); margin: auto; display: grid; gap: 1rem; }
.admin-shell .chooser-top .brand { display: inline-flex; padding: 0; }
.admin-shell h1 { margin: .2rem 0 .3rem; font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.045em; line-height: 1.1; }
.admin-heading p { margin: .4rem 0 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.admin-account-actions, .admin-entry-links { display: flex; align-items: center; gap: .65rem; }
.admin-account-actions { justify-content: flex-end; }
.admin-account-actions .signout-link { min-height: 44px; margin: 0; }
.admin-entry-links { margin-top: 1rem; flex-wrap: wrap; }
.admin-entry-links a { text-decoration: none; }
.admin-workspace-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: #1754a4; font-weight: 600; }
.admin-workspace-link svg { width: 1rem; }
.sidebar .workspace-signout { margin-top: .3rem; border-top: 1px solid #d9e6f4; border-radius: 0; }
.admin-shell .settings-form { width: 100%; margin: 0; overflow-wrap: anywhere; }
.admin-shell .button, .admin-shell select { min-height: 44px; max-width: 100%; }
.admin-shell .button { white-space: normal; }
.admin-shell select { width: 100%; }
.admin-shell .settings-form input { min-width: 0; }
.admin-shell .admin-meta .button { margin-top: .7rem; }
.admin-section-heading { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; justify-content: space-between; }
.admin-shell > .button { justify-self: start; }
@media (max-width: 760px) { .admin-shell input, .admin-shell select { font-size: 1rem; } }
.company-chooser {
  width: min(100%, 39rem);
  max-width: 100%;
  min-width: 0;
  align-self: safe center;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid #fff;
  border-radius: 1.75rem;
  background: linear-gradient(147deg, #ffffffef, #f4f9ffe8);
  box-shadow: 0 24px 70px -38px #1b528c84, inset 0 1px #fff;
  color: var(--ink);
}
.chooser-top, .chooser-heading, .chooser-tools, .company-choice {
  display: flex; align-items: center;
}
.chooser-top, .chooser-heading { justify-content: space-between; gap: .8rem; }
.chooser-top .postuesi-wordmark { width: clamp(7.2rem, 25vw, 9rem); }
.chooser-heading { align-items: baseline; flex-wrap: wrap; margin-top: clamp(1.4rem, 5vw, 2.5rem); }
.chooser-heading h1 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.15rem); letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; }
.chooser-heading .signout-link { margin: 0; }
.company-chooser .profile-list { gap: .6rem; margin: .9rem 0; }
.company-choice {
  min-width: 0; gap: .35rem; padding: .3rem .55rem .3rem .25rem;
  border: 1px solid #cddfee; border-radius: 1rem; background: #ffffffd9;
}
.company-choice:focus-within, .company-choice:hover { border-color: #9abddf; }
.company-choice .profile-card {
  flex: 1 1 0; min-width: 0; gap: .8rem; border: 0; width: auto;
  border-radius: .75rem; background: transparent; padding: .5rem;
}
.company-choice .profile-card:hover { background: #edf5fc; }
.company-choice .profile-info { min-width: 0; overflow-wrap: anywhere; }
.company-choice .profile-info strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.company-choice .profile-info small { margin-top: .2rem; }
.company-shortcut, .chooser-tools button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; font-family: inherit; font-size: .875rem; font-weight: 600;
  border: 0; text-decoration: none; background: none; color: #24548a;
}
.company-shortcut { padding: .35rem .5rem; border-radius: .65rem; text-align: center; max-width: 40%; }
.company-shortcut:hover, .chooser-tools button:hover { background: #eaf3fb; color: #064b96; }
.chooser-body .add-profile { width: 100%; justify-content: center; min-height: 44px; margin: 0; }
.chooser-tools { flex-wrap: wrap; justify-content: space-between; gap: .2rem .4rem; }
.chooser-tools:has(> :not([hidden])) { border-top: 1px solid #d5e3ef; margin-top: 1.25rem; padding-top: .6rem; }
.chooser-tools button { padding: .25rem .5rem; border-radius: .6rem; cursor: pointer; }
.chooser-tools button svg { width: 1rem; height: 1rem; }
.company-chooser .profile-avatar, .workspace-account .profile-avatar {
  position: relative; display: grid; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg,#e8f4ff,#d3e7fb); color: #225d9b;
  box-shadow: inset 0 0 0 1px #c4d9ea; border-radius: .7rem;
}
.company-chooser .profile-avatar { width: 2.85rem; height: 2.85rem; flex: 0 0 2.85rem; }
.company-monogram { font-weight: 700; font-size: .95rem; }
.company-logo { position: absolute; inset: 0; width: 100%; height: 100%; padding: .2rem; object-fit: contain; background: #fff; }
.company-logo:not(.is-ready) { opacity: 0; }
.company-logo[hidden], .company-chooser [hidden] { display: none; }
.workspace-account {
  display: flex; align-items: center; min-width: 0; width: 100%; gap: .15rem;
  border-top: 1px solid #cfdfed; margin-top: .45rem; padding-top: .6rem;
}
.company-account-link, .company-switch, .mobile-menu-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; min-height: 44px; border: 0; border-radius: .75rem;
  font: inherit; cursor: pointer; background: transparent; color: #285078;
}
.company-account-link { flex: 1; justify-content: flex-start; gap: .55rem; min-width: 0; padding: .18rem .2rem; text-align: start; }
.company-account-link:hover, .company-switch:hover, .mobile-menu-trigger:hover, .mobile-menu-trigger[aria-expanded=true] { background: #dfeeff; color: #075bbd; }
.company-account-copy { min-width: 0; display: grid; gap: .125rem; }
.company-account-copy strong { font-size: .925rem; line-height: 1.15; color: #193856; }
.company-account-copy small { font-size: .77rem; color: #42617c; overflow-wrap: anywhere; }
.company-switch { flex: 0 0 2.45rem; }
.company-switch svg { width: 1.1rem; height: 1.1rem; }
.mobile-menu-trigger { display: none; }
#company-profile-title:focus { outline: none; }
#preview-content .chooser-tools:empty { display: none; }
@media (max-width:760px) {
  #app .sidebar { grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: .2rem; }
  #app .mobile-menu-trigger, #preview-content .mobile-menu-trigger { display: inline-flex; grid-column: 1; grid-row: 1; height: 44px; }
  #app .sidebar > .brand { grid-column: 2; grid-row: 1; padding: .15rem; }
  #app .sidebar > .brand img { max-width: min(100%, 8rem); }
  #app .sidebar > .language-picker { grid-column: 3; grid-row: 1; margin: 0; }
  #app .sidebar > .workspace-account { grid-column: 4; grid-row: 1; width: auto; border: 0; padding: 0; margin: 0; gap: 0; }
  #app .company-account-link, #app .company-switch { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
  #app .company-account-link .profile-avatar { width: 2.1rem; height: 2.1rem; flex-basis: 2.1rem; }
  #app .company-account-copy { display: none; }
  #app .sidebar .nav-list { display: none; grid-row: 2; grid-column: 1/-1; }
  #app .sidebar.menu-open .nav-list {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible;
    margin: .25rem 0 0; padding: .45rem 0 0; border-top: 1px solid #ccdfef; gap: .2rem;
  }
  #app .sidebar .nav-item {
    width: 100%; min-width: 0; min-height: 44px; padding: .5rem; flex-direction: row;
    justify-content: flex-start; gap: .5rem; white-space: normal; overflow-wrap: anywhere;
    text-align: start; font-size: .85rem; line-height: 1.25;
  }
  #app .sidebar .nav-item > svg { flex: 0 0 1.1rem; height: 1.1rem; }
  #app .workspace { min-width: 0; }
  #app .panel-heading, #app .page-header { flex-wrap: wrap; }
  #app .header-actions { max-width: 100%; }
  #app .queue-tools { min-width: 0; max-width: 100%; }
  #app .queue-tools :is(input,select) { min-width: 0; max-width: 100%; }
  #app .header-actions .button, #app .form-actions .button { min-height: 44px; white-space: normal; }
  #app :is(input:not([type=checkbox]):not([type=radio]), textarea, select), dialog :is(input, textarea, select) { font-size: 1rem; }
}
@media (max-width:420px) {
  #welcome { padding: .75rem; }
  .company-chooser { padding: 1rem; border-radius: 1.3rem; }
  .company-choice { padding-right: .25rem; }
  .company-choice .profile-card { gap: .5rem; }
  .company-shortcut { font-size: .8rem; }
  .chooser-tools { display: grid; justify-content: stretch; }
  .chooser-tools button { justify-content: flex-start; }
}

@media (max-width:540px) {
  #view-queue .table-wrap { overflow: visible; }
  #view-queue table, #view-queue tbody { width: 100%; min-width: 0; display: block; }
  #view-queue thead {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  #view-queue tbody > tr {
    display: grid; grid-template-columns: auto minmax(0,1fr) 44px;
    align-items: center; column-gap: .45rem; row-gap: .5rem;
    padding: .8rem .05rem; border-top: 1px solid #cedfec;
  }
  #view-queue tbody td { display: block; padding: 0; min-width: 0; border: 0; width: auto; }
  #view-queue tbody td:first-child { grid-column: 1/3; grid-row: 1; }
  #view-queue tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  #view-queue tbody .post-date { grid-column: 2/-1; grid-row: 2; font-size: .8rem; white-space: normal; }
  #view-queue tbody .unplanned-date { display: none; }
  #view-queue tbody td:last-child { grid-column: 3; grid-row: 1; align-self: start; }
  #view-queue tbody .icon-button { min-width: 44px; min-height: 44px; }
  #view-queue .post-info { flex: 1; min-width: 0; max-width: none; }
  #view-queue .vehicle-title { white-space: normal; line-height: 1.32; overflow-wrap: anywhere; font-size: .95rem; }
  #view-queue .post-excerpt { max-width: 100%; }
  #view-queue .queue-tools { width: 100%; display: grid; grid-template-columns: minmax(0,1fr); gap: .45rem; }
  #view-queue .queue-tools :is(.search-field,select) { width: 100%; min-height: 44px; }
  #view-schedule .calendar-grid { grid-template-columns: minmax(0,1fr); gap: .35rem; }
  #view-schedule .calendar-day {
    display: grid; grid-template-columns: minmax(2.7rem,auto) minmax(0,1fr);
    align-content: center; align-items: start; gap: .25rem .6rem; min-height: 2.85rem; padding: .45rem .65rem;
  }
  #view-schedule .day-heading { grid-row: 1 / span 1; grid-column: 1; margin: 0; }
  #view-schedule .calendar-post { grid-column: 2; margin: 0; min-height: 44px; text-align: start; }
  #view-schedule .queue-tools .icon-button { width: 44px; height: 44px; }
}
