:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172033;
  background: #f6f8fc;
  --ink: #172033;
  --muted: #66738a;
  --border: #e0e6ef;
  --accent: #315df5;
  --soft: #edf2ff;
  --warm: #ffffff;
  font-synthesis: none;
}
[hidden] {
  display: none !important;
}
.hub-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
button:has(> .hub-icon),
.button:has(> .hub-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sidebar .mobile-nav-toggle {
  display: none;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.module-symbol .hub-icon {
  width: 28px;
  height: 28px;
}
.module-symbol.calendar-sync {
  background: #edf4fb;
  color: #4178a8;
}
.next-step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #d9e3fb;
  background: #eef3ff;
  border-radius: 14px;
  margin-bottom: 24px;
}
.next-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: white;
  color: var(--accent);
}
.next-step > div {
  flex: 1;
}
.next-step h2 {
  font-size: 17px;
  margin-bottom: 5px;
}
.next-step p {
  margin: 0;
  font-size: 13px;
  color: #536680;
}
.module-card .advanced-details {
  margin-top: 22px;
}
.module-entry-link {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.card.connection-shortcut {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
}
.connection-shortcut > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.connection-shortcut small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.shortcut-icon {
  display: inline-flex;
  color: var(--accent);
}
.connection-intro {
  margin-bottom: 20px;
}
.connection-group .connections-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  align-items: start;
  gap: 14px;
}
.connections-grid .service-card {
  min-height: 0;
  padding: 16px;
}
.connections-grid .card-header {
  align-items: center;
}
.connections-grid .card-header .service-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0;
}
.connections-grid .card-header .pill {
  max-width: calc(100% - 44px);
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
  line-height: 1.35;
}
.connections-grid .service-card h3 {
  margin: 10px 0 5px;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.connections-grid .service-card > p {
  margin: 0 0 8px;
  line-height: 1.45;
}
.connections-grid .service-card > .connection-usage {
  flex: none;
}
.connections-grid .service-card .actions {
  margin-top: 6px;
  padding-top: 0;
}
.connections-grid .service-card > .advanced-details {
  margin-top: 12px;
  padding-top: 10px;
}
.connections-grid .advanced-details[open] > summary {
  margin-bottom: 10px;
}
.connection-overview-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  gap: 7px 12px;
  align-items: end;
  margin-bottom: 24px;
}
.connection-overview-controls label {
  margin: 0;
}
.connection-overview-controls label:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}
.connection-overview-controls input {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.connection-overview-controls select {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  .connection-overview-controls select {
    appearance: auto;
    background-image: none;
  }
}
.connection-group + .connection-group {
  margin-top: 26px;
}
@media (max-width: 560px) {
  .connection-overview-controls {
    grid-template-columns: 1fr;
  }
  .connection-overview-controls label:nth-of-type(2),
  .connection-overview-controls input,
  .connection-overview-controls select {
    grid-column: 1;
  }
  .connection-overview-controls label:nth-of-type(2) {
    grid-row: auto;
  }
  .connection-overview-controls input,
  .connection-overview-controls select {
    grid-row: auto;
  }
}
.connection-usage {
  flex: 1;
}
.provider-picker {
  display: grid;
  gap: 9px;
}
.provider-picker > button {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 14px;
  text-align: left;
  padding: 14px;
}
.provider-picker .service-mark {
  margin: 0;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.provider-picker > button > span:nth-child(2) {
  flex: 1;
}
.provider-picker small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.google {
  background: #edf3ff;
  color: #3575ce;
}
.microsoft {
  background: #eef4fb;
  color: #3874a2;
}
.copy-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f7fc;
  border-radius: 10px;
}
.copy-field code {
  flex: 1;
  overflow-wrap: anywhere;
  min-width: 0;
}
.empty-symbol .hub-icon {
  width: 30px;
  height: 30px;
}
@media (max-width: 700px) {
  .sidebar .mobile-nav-toggle {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    padding: 10px;
  }
  .sidebar:not(.nav-open) .space-picker,
  .sidebar:not(.nav-open) .nav,
  .sidebar:not(.nav-open) .sidebar-bottom {
    display: none;
  }
  .sidebar.nav-open .nav,
  .sidebar.nav-open .nav-group {
    display: grid;
    width: 100%;
    overflow: visible;
  }
  .sidebar.nav-open .nav .icon {
    display: inline-flex;
  }
  .sidebar.nav-open .sidebar-bottom {
    display: grid;
  }
  .sidebar.nav-open .nav button,
  .sidebar.nav-open .nav a {
    white-space: normal;
    min-height: 44px;
    padding: 11px 13px;
  }
  .sidebar.nav-open .nav-label {
    padding: 12px 13px 6px;
  }
  .mobile-logout {
    display: none !important;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .next-step {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .next-step > div {
    flex-basis: calc(100% - 64px);
  }
  .next-step > button {
    width: 100%;
    min-height: 44px;
  }
  .copy-field {
    align-items: stretch;
    flex-direction: column;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
.button {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f0f4ff;
}
.client-setup-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.client-setup-group {
  margin-top: 24px;
}
.client-setup-group h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.client-setup-button {
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  text-align: left;
  white-space: normal;
  padding: 16px 18px;
  border-radius: 12px;
  gap: 14px;
}
.client-setup-button:hover {
  border-color: #a8b9ef;
}
.client-setup-button strong,
.client-setup-button small {
  display: block;
}
.client-setup-text {
  min-width: 0;
  flex: 1;
}
.client-setup-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #85601c;
  background: #fff5dd;
  padding: 3px 6px;
  border-radius: 5px;
  margin-top: 6px;
}
.client-setup-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.client-setup-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #f0f2f5;
  color: #172033;
  border-radius: 11px;
}
.client-setup-mark.claude {
  color: #b66545;
  background: #fbf0e9;
}
.client-setup-mark.gemini {
  color: #5574d8;
  background: #eef2ff;
}
.client-setup-mark.mistral {
  color: #be6e25;
  background: #fff3e6;
}
.client-setup-mark.perplexity {
  color: #33858d;
  background: #eaf6f6;
}
.client-setup-mark.vscode {
  color: #3579ba;
  background: #eef5fd;
}
.client-setup-mark svg {
  width: 25px;
  height: 25px;
}
.client-setup-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
}
.client-setup-arrow .hub-icon {
  width: 18px;
  height: 18px;
}
.connected-client-list {
  display: grid;
  gap: 14px;
}
.connected-client-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.connected-client-head h3 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.connected-client-head > div {
  min-width: 0;
}
.connected-client-head > button {
  flex-shrink: 0;
}
.connected-client .pill.muted {
  color: var(--muted);
  background: #f0f2f5;
}
.client-permissions-label {
  margin: 20px 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.client-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.client-permissions li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f7f9ff;
  font-size: 12px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.client-permissions-note {
  margin: 14px 0 0;
}
.card.client-context {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.card.client-context p {
  margin-bottom: 0;
}
.client-context > button {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .client-setup-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .client-setup-button {
    width: 100%;
    min-width: 0;
  }
  .connected-client-head,
  .card.client-context {
    align-items: stretch;
    flex-direction: column;
  }
  .connected-client-head > button {
    align-self: start;
  }
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 18px;
  border-radius: 10px;
  background: white;
  color: var(--accent);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
#main-content:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 3px 10px #315df520;
}
.primary:hover {
  background: #2447d0;
}
.danger {
  color: #ad3935;
}
.small {
  padding: 7px 10px;
  font-size: 12px;
}
.quiet {
  background: transparent;
}
.muted {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 9px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
a {
  color: var(--accent);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.5px;
}
.brand-mark {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px #17203318;
}
.brand-name {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}
.brand small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px 1fr;
}
.sidebar {
  background: var(--warm);
  border-right: 1px solid var(--border);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}
.sidebar .brand {
  padding: 0 10px;
}
.sidebar .brand-name small {
  white-space: normal;
  letter-spacing: 0.7px;
  max-width: 145px;
}
.space-picker {
  display: grid;
  gap: 8px;
}
.space-picker select {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px;
  width: 100%;
  font-size: 14px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button,
.nav a {
  border: 0;
  text-align: left;
  background: transparent;
  color: var(--muted);
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  font-weight: 550;
  text-decoration: none;
}
.nav button.active {
  background: var(--soft);
  color: #2447d0;
  font-weight: 650;
  box-shadow: inset 3px 0 var(--accent);
}
.nav button:hover,
.nav a:hover {
  background: #f3f5fa;
}
.nav .icon {
  width: 19px;
  text-align: center;
  font-size: 16px;
  display: inline-flex;
  flex-shrink: 0;
}
.nav-subgroup {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.nav-subtitle {
  padding: 12px 14px 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-settings {
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.advanced-details {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.advanced-details > summary {
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.advanced-details[open] > summary {
  margin-bottom: 14px;
}
.assistant-start {
  max-width: 800px;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 13px;
}
.sidebar-bottom > .notice {
  display: none;
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.avatar {
  height: 34px;
  width: 34px;
  background: #e6edff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.person strong,
.person span {
  display: block;
}
.person span {
  color: var(--muted);
  font-size: 11px;
}
.main {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 48px;
  align-self: start;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 36px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 30px;
  background: #edf2ff;
  font-size: 11px;
  color: #3656ac;
  font-weight: 600;
}
.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.shared {
  background: #edf0fa;
  color: #56638a;
}
.pill.error {
  background: #fbeceb;
  color: #ad3935;
}
.pill.pending {
  background: #f4f0e5;
  color: #8a7040;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 22px;
  box-shadow: 0 2px 8px #17203304;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 7px 0;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 15px;
}
.card .actions {
  padding-top: 15px;
  margin-top: auto;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.card {
  display: flex;
  flex-direction: column;
}
.service-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 19px;
  margin-bottom: 18px;
}
.odoo {
  background: #f0e7ef;
  color: #78516c;
}
.email {
  background: #e8eef9;
  color: #47668c;
}
.todoist {
  background: #fbe9e5;
  color: #c55041;
}
.service-card {
  min-height: 228px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.card .preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 120px;
  overflow: hidden;
  color: #4d5b73;
  line-height: 1.65;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.section {
  margin-top: 30px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.hero {
  background: linear-gradient(120deg, #172033, #253755);
  border: 1px solid #253755;
  color: #f7faff;
  border-radius: 15px;
  padding: 27px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.hero h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.hero p {
  color: #c2cee4;
  font-size: 14px;
}
.hero .eyebrow {
  color: #a9c2ff;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.step-number {
  display: grid;
  place-items: center;
  height: 28px;
  width: 28px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #ffffff12;
  font-size: 12px;
  font-weight: 650;
}
.steps li.done .step-number {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.empty {
  background: white;
  border: 1px dashed #cad5e8;
  border-radius: 13px;
  padding: 46px 25px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.empty-symbol {
  font-size: 26px;
  margin-bottom: 14px;
  color: #7393d6;
}
.search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search input {
  min-width: 0;
  flex: 1;
}
.search-summary {
  margin: -8px 0 20px;
}
.card .preview {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  button,
  .button,
  input:not([type="checkbox"]):not([type="radio"]),
  select {
    min-height: 44px;
  }
  .page-head h1,
  .card h3 {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .search {
    flex-wrap: wrap;
  }
  .search input {
    flex-basis: 100%;
  }
  .search button {
    flex: 1;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.notice {
  padding: 13px 16px;
  background: #edf2ff;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  color: #425986;
  margin-bottom: 19px;
}
.notice.warning {
  background: #faf4e5;
  border-color: #ede0b7;
  color: #896c32;
}
.list {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.list-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  display: block;
  font-size: 14px;
}
.list-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  padding: 14px;
  background: #f4f6fb;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  white-space: pre-wrap;
}
.context-output {
  max-height: 500px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 13px;
}
.context-item {
  padding: 15px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.help-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.help-columns ol {
  padding-left: 20px;
  line-height: 1.85;
  font-size: 14px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 16px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  background: white;
  border: 1px solid #ced7e5;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8fa9ff;
  border-color: transparent;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.check-label input {
  width: auto;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0;
}
.form-error {
  font-size: 13px;
  color: #b13b35;
  line-height: 1.5;
  margin-top: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  margin-top: 10px;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background:
    radial-gradient(ellipse at 15% 15%, #315df530, transparent 65%),
    linear-gradient(145deg, #172033, #223350);
  color: #f7faff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story .brand {
  margin-bottom: 65px;
}
.auth-story .brand-name {
  font-size: 22px;
}
.auth-story .brand small,
.auth-story .eyebrow {
  color: #a9c2ff;
}
.auth-story h1 {
  font-size: 47px;
  max-width: 480px;
  line-height: 1.13;
  letter-spacing: -1.5px;
}
.auth-story p {
  max-width: 420px;
  color: #b7c5df;
  margin: 16px 0 30px;
}
.story-list {
  display: grid;
  gap: 15px;
  color: #d3dff3;
  font-size: 14px;
}
.auth-entry-links {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
.auth-entry-links > span {
  font-size: 12px;
  font-weight: 650;
  color: #bfd0ee;
}
.auth-entry-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid #647799;
  border-radius: 12px;
  color: #f0f5ff;
  text-decoration: none;
  background: #ffffff08;
  font-weight: 600;
}
.auth-entry-links a:hover {
  background: #ffffff16;
}
.auth-entry-links a > span {
  margin-left: auto;
}
.entry-platform-link {
  font-size: 13px;
}
.entry-platform-link a {
  color: #c0d4ff;
  background: #ffffff08;
  border-color: #647799;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sidebar .entry-platform-link {
  margin: -12px 10px 0;
}
.sidebar .entry-platform-link a {
  color: var(--accent);
  background: var(--accent-soft, #edf1ff);
  border-color: #dce3f4;
  text-decoration: none;
}
.auth-welcome-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e8eeff;
  color: var(--accent);
  margin-bottom: 24px;
}
.auth-welcome-icon .hub-icon {
  width: 26px;
  height: 26px;
}
.auth-panel .sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.module-entry-link {
  font-size: 13px;
  display: inline-block;
  margin-top: 12px;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-panel {
  width: 100%;
  max-width: 390px;
}
.auth-form-embedded .auth-panel {
  max-width: 480px;
}
.identity-frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: transparent;
}
.auth-fallback {
  text-align: center;
  margin: 12px 0 0;
}
.auth-form-embedded .fine-print {
  text-align: center;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .auth-form-embedded {
    padding: 16px 10px;
  }
  .identity-frame {
    height: 600px;
  }
}
.auth-panel h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.tabs {
  display: flex;
  padding: 4px;
  background: #edf1f8;
  border-radius: 9px;
  margin: 24px 0;
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px;
}
.tabs button.active {
  background: white;
  box-shadow: 0 1px 4px #17203314;
}
.auth-panel .primary {
  width: 100%;
  margin-top: 22px;
}
.auth-help {
  margin: 18px 0 0;
}

.security-actions {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.passkey-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.passkey-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.totp-qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
}
.totp-secret {
  display: block;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.recovery-codes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  background: #f5f7fc;
  border-radius: 12px;
}
.resend-mail {
  margin-top: 14px;
}
.account-row .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fine-print {
  margin-top: 25px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 15px;
  max-width: 650px;
  width: calc(100% - 32px);
  padding: 28px;
  max-height: 90vh;
  box-shadow: 0 20px 80px #17203326;
}
dialog::backdrop {
  background: #17203365;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
}
.dialog-head h2 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.dialog-head > div {
  min-width: 0;
}
.dialog-head > button {
  flex-shrink: 0;
}
.card h2,
.card h3,
.page-head h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dialog-head button {
  padding: 5px 10px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.voice-task-review {
  display: grid;
  grid-template-columns: minmax(125px, 0.45fr) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.45;
}
.voice-task-review dt {
  color: var(--muted);
}
.voice-task-review dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .voice-task-review {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .voice-task-review dt:not(:first-child) {
    margin-top: 8px;
  }
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #172033;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 5px 25px #1720332b;
  z-index: 10;
  font-size: 13px;
}
.toast > span {
  min-width: 0;
  overflow-wrap: anywhere;
  align-self: center;
}
.toast > button {
  flex-shrink: 0;
  padding: 6px;
  background: transparent;
  color: inherit;
  border-color: #ffffff66;
}
.toast.error {
  background: #8c3434;
}
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.member-badges span {
  background: var(--soft);
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.footer-note {
  margin-top: 35px;
  font-size: 11px;
  color: var(--muted);
}
.search-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 18px;
}
.search {
  flex-wrap: wrap;
}
.search input {
  min-width: 180px;
}
@media (max-width: 1050px) {
  .main {
    padding: 30px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 700px) {
  button,
  .button {
    min-height: 44px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions > button {
    flex: 1 1 auto;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow: visible;
  }
  .sidebar .brand {
    padding: 0;
  }
  .space-picker {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav .icon {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    padding: 22px 17px;
  }
  .topline {
    margin-bottom: 23px;
  }
  .page-head {
    align-items: start;
  }
  .page-head button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 9px;
  }
  h1 {
    font-size: 26px;
  }
  .grid,
  .help-columns {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .hero {
    padding: 20px;
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: 28px;
  }
  .auth-story .brand {
    margin-bottom: 25px;
  }
  .auth-story h1 {
    font-size: 30px;
    margin-bottom: 0;
  }
  .auth-story p {
    margin-bottom: 0;
  }
  .story-list {
    display: none;
  }
  .auth-form {
    padding: 30px 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .list-row {
    padding: 14px;
    gap: 10px;
  }
  .list-row .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .toast {
    right: 16px;
    bottom: 16px;
  }
  dialog {
    padding: 20px;
  }
  .auth-panel {
    max-width: none;
  }
}

.mobile-logout {
  display: none;
}
video {
  width: 100%;
  max-height: 65vh;
  display: block;
  background: #e8eefb;
  border-radius: 10px;
  margin-bottom: 8px;
}
.page-head .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .mobile-logout {
    display: block;
  }
  .topline > span:first-child {
    overflow-wrap: anywhere;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head .actions {
    width: 100%;
  }
}
/* A review remains readable on a phone, including long descriptions/addresses. */
.change-preview {
  margin: 1.25rem 0;
  max-height: 45vh;
  overflow: auto;
}
.change-record {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
}
.change-record h3 {
  margin-top: 0;
}
.change-diff {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e0e6ef;
}
.change-diff small,
.change-diff span {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.change-diff small {
  color: #66738a;
  margin-bottom: 0.25rem;
}
@media (max-width: 600px) {
  .change-diff {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
/* Shared service platform */
.calendar-planning-heading {
  margin-bottom: 12px;
}
.calendar-planning-heading h1 {
  font-size: 26px;
  margin: 0;
}
.calendar-planning-page > .notice {
  padding: 9px 12px;
  margin-bottom: 12px;
}
.main:has(.calendar-planning-page) {
  max-width: none;
  min-width: 0;
  padding: 20px 24px;
}
.shell:has(.calendar-planning-page) > .sidebar {
  position: static;
  height: auto;
  overflow: visible;
}
.main:has(.calendar-planning-page) .topline {
  margin-bottom: 16px;
}
.main:has(.calendar-planning-page) > .footer-note {
  display: none;
}
.calendar-simulation-frame {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.main:has(.live-calendar-page) {
  max-width: none;
  min-width: 0;
  padding: 24px;
}
.live-calendar-page .page-head {
  margin-bottom: 16px;
}
.live-calendar-page .calendar-card {
  display: block;
  padding: 18px;
  min-width: 0;
}
.calendar-status {
  margin-bottom: 14px;
  line-height: 1.6;
}
#calendar-message.calendar-error {
  color: #a5403d;
}
.calendar-options {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
.calendar-options > summary {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.calendar-options > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.calendar-options .actions {
  margin-top: 14px;
}
.calendar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.calendar-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  margin: 0;
  border: 1px solid var(--border);
  background: white;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.calendar-filters input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.calendar-filters small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.calendar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--calendar-color);
  flex-shrink: 0;
}
.event-details {
  display: grid;
  gap: 7px;
  margin: 24px 0;
}
.event-details dt {
  font-size: 12px;
  color: var(--muted);
}
.event-details dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.hub-calendar-toolbar,
.calendar-date-controls,
.calendar-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-calendar-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}
.hub-calendar-toolbar h2 {
  margin: 0 0 0 8px;
  font-size: 18px;
}
.hub-calendar-toolbar select,
.hub-calendar-toolbar input {
  width: auto;
  margin: 0;
  font-size: 13px;
  padding: 8px 10px;
}
.calendar-prev .hub-icon {
  transform: rotate(180deg);
}
.live-calendar-page .hub-slot-label {
  min-height: 22px;
  line-height: 22px;
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  color: #64748b;
}
@media (max-width: 700px) {
  .main:has(.live-calendar-page) {
    padding: 18px 12px;
  }
  .live-calendar-page .calendar-card {
    padding: 10px;
  }
  .calendar-filters label {
    width: 100%;
  }
  .calendar-date-controls {
    flex-wrap: wrap;
    width: 100%;
  }
  .calendar-date-controls h2 {
    width: 100%;
    margin: 6px 0;
  }
  .calendar-view-controls {
    width: 100%;
  }
  .calendar-view-controls input {
    flex: 1;
    min-width: 0;
  }
  .calendar-view-controls select {
    width: 100px;
  }
  #platform-calendar[data-view^="list"] [role="list"] {
    min-width: 0;
    width: 100%;
  }
  #platform-calendar[data-view^="list"] [role="listitem"] {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
  }
  #platform-calendar[data-view^="list"] [role="button"] {
    min-width: 0;
    width: 100%;
    border-radius: 8px;
    margin: 4px 0;
    padding: 12px;
  }
  #platform-calendar[data-view^="list"] [role="button"] > div:last-child {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  #platform-calendar[data-view^="list"] [role="button"] > div:last-child > div {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .main:has(.calendar-planning-page) {
    padding: 12px;
  }
}

.module-card {
  position: relative;
  padding: 28px;
}
.module-card h2 {
  margin-top: 20px;
}
.module-card p {
  line-height: 1.6;
}
.module-symbol {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #edf1ff;
  color: #315cff;
  font-size: 24px;
  font-weight: 800;
  margin-right: 14px;
}
.platform-note {
  margin: 24px 0;
}
.nav-group {
  display: grid;
  gap: 3px;
}
.nav-group + .nav-group {
  margin-top: 10px;
}
.nav-label {
  padding: 6px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.platform-summary {
  display: flex;
  gap: 38px;
  padding: 22px 26px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.platform-summary div {
  display: grid;
  gap: 5px;
}
.platform-summary strong {
  font-size: 27px;
  color: var(--ink);
}
.platform-summary span {
  font-size: 13px;
  color: var(--muted);
}
.section-title {
  font-size: 20px;
  margin: 0 0 18px;
}
.platform-shortcut {
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  gap: 8px 14px;
  text-align: left;
  white-space: normal;
}
.platform-shortcut .shortcut-icon {
  grid-row: span 2;
  font-size: 23px;
  color: var(--accent);
}
.platform-shortcut > span:nth-last-child(2) {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.platform-shortcut > span:last-child {
  grid-column: 3;
  grid-row: 1;
}
@media (max-width: 700px) {
  .nav {
    display: block;
    overflow-x: auto;
  }
  .nav-group {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 4px;
  }
  .nav-group + .nav-group {
    margin-top: 5px;
  }
  .nav-label {
    min-width: 95px;
    padding-left: 5px;
  }
  .platform-summary {
    gap: 20px;
    padding: 18px;
  }
  .platform-summary span {
    font-size: 11px;
  }
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.checkbox-label[hidden] {
  display: none;
}
.sso-button {
  display: block;
  padding: 14px;
  margin-bottom: 28px;
  text-align: center;
  border-radius: 14px;
  text-decoration: none;
}
.passkey-choice {
  display: grid;
  gap: 12px;
  margin: 24px 0 16px;
}
.calendar-card {
  padding: 20px;
  overflow: visible;
}
#calendar-message {
  font-size: 13px;
  margin-bottom: 20px;
  color: #536177;
}
#platform-calendar {
  min-width: 0;
  --fc-border-color: #e4e9f2;
  --fc-button-bg-color: #315cff;
  --fc-button-border-color: #315cff;
  --fc-button-active-bg-color: #2343c7;
  --fc-today-bg-color: #eef3ff;
  --fc-monarch-tertiary: #315cff;
  --fc-monarch-primary: #315cff;
  --fc-monarch-foreground: #243047;
  --fc-monarch-border: #e4e9f2;
}
.sync-events {
  max-height: 360px;
  overflow: auto;
}
fieldset {
  border: 1px solid #e3e8f1;
  padding: 16px;
  border-radius: 14px;
  margin: 20px 0;
}

.voice-transcript {
  max-height: 24rem;
  overflow: auto;
  overflow-wrap: anywhere;
}
.voice-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
#voice-active-call {
  position: sticky;
  top: 12px;
  z-index: 5;
}
.voice-live-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--warm);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 4px 12px #15254b14;
  overflow-wrap: anywhere;
}
.voice-live-banner strong {
  color: var(--accent);
}
.voice-live-banner p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}
.voice-live-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.voice-section-nav button[aria-current="page"] {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
[data-voice-panel="calls"] > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .voice-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-voice-panel="calls"] > .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
[data-voice-panel][hidden] {
  display: none;
}
.voice-results-link {
  margin-bottom: 24px;
}
.result-toolbar {
  flex-wrap: wrap;
  gap: 12px;
}
.result-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.result-toolbar select {
  width: auto;
  min-width: 160px;
  margin: 0;
}
.result-subject,
.result-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.result-subject {
  -webkit-line-clamp: 2;
  color: var(--muted);
}
#page:has(#voice-settings-form) .card {
  min-width: 0;
  overflow-wrap: anywhere;
}
#page:has(#voice-settings-form) .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 920px) {
  #page:has(#voice-settings-form) .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
#page:has(#voice-settings-form) .card-header {
  flex-wrap: wrap;
}
#page:has(#voice-settings-form) .check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 44px;
}
#page:has(#voice-settings-form) .check input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  min-height: 20px;
  margin-top: 0.25rem;
}
.voice-settings-shell {
  max-width: 1120px;
}
.voice-settings-shell .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.voice-settings-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  padding: .9rem 1.1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1rem;
}
.voice-settings-status p { margin: 0; }
.voice-settings-nav {
  margin: 0 0 1.3rem;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
}
.voice-settings-nav button { min-height: 40px; }
.voice-settings-shell [data-voice-settings-panel][hidden] { display: none; }
.voice-settings-shell [data-voice-settings-panel] > .card,
.voice-security-grid > .card { padding: 1.4rem; }
.voice-settings-shell h2 { font-size: 1.1rem; margin-top: 0; }
.voice-settings-shell .card-header { align-items: center; gap: .7rem; }
.voice-settings-shell .card-header h2 { margin-bottom: 0; }
.voice-field-grid,
.voice-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.2rem;
}
.voice-field-grid { gap: .9rem 1.2rem; }
.voice-field > label { margin-top: .5rem; }
.voice-field > button { margin-top: 8px; }
.voice-field > .hint { margin: 8px 0 0; line-height: 1.5; }
.voice-phone-options { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; background: #f8faff; overflow: hidden; }
#page:has(#voice-settings-form) .voice-phone-options .check { align-items: center; min-height: 44px; margin: 0; padding: 10px 12px; gap: 10px; }
.voice-phone-options .check + .check { border-top: 1px solid var(--border); }
#page:has(#voice-settings-form) .voice-phone-options input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; }
.voice-security-grid { margin-top: 1rem; }
.voice-settings-shell .actions { gap: .6rem; margin-top: 1rem; }
.voice-settings-details { border-top: 1px solid var(--border); margin-top: 1.1rem; padding-top: .9rem; }
.voice-settings-details > summary { cursor: pointer; font-size: .9rem; color: var(--muted); padding: .3rem 0; }
.voice-settings-details[open] > summary { margin-bottom: .7rem; color: var(--ink); }
.voice-settings-details fieldset { margin-top: .7rem; }
.voice-settings-details legend { font-size: .95rem; }
.voice-speaker-intro { padding: .8rem 0 .1rem; }
.voice-speaker-duration { font-size: .85rem; font-weight: 650; color: var(--accent); }
.voice-speaker-intro p { margin: .6rem 0; }
.voice-speaker-feedback { padding: 1rem; border: 1px solid #dce5fc; background: #f4f7ff; border-radius: 12px; margin-top: 1rem; }
.voice-speaker-feedback p { margin: .4rem 0 0; }
.voice-speaker-feedback.is-error { background: #fff6f3; border-color: #edccc5; }
.voice-recording-head { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.voice-recording-head > span:last-child { margin-left: auto; color: var(--muted); font-size: .85rem; }
.voice-recording-indicator { width: 8px; height: 8px; border-radius: 50%; background: #d33939; }
.voice-recording-steps { display: flex; gap: 1rem; padding: 0; margin: 1.2rem 0; list-style: none; }
.voice-recording-steps li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; }
.voice-recording-steps li span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #edf1f8; font-weight: 650; }
.voice-recording-steps [aria-current="step"] { color: var(--accent); font-weight: 650; }
.voice-recording-steps [aria-current="step"] span { background: var(--accent); color: white; }
.voice-recording-steps .complete span { background: #e4f3ea; color: #27704b; }
.voice-reading-text { margin: .6rem 0 1rem; padding: 1.15rem; background: #f3f6ff; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; font-size: 1.05rem; line-height: 1.65; }
.voice-speaker-card progress { width: 100%; height: 7px; accent-color: var(--accent); }
@media (max-width: 760px) {
  .voice-field-grid,
  .voice-security-grid { grid-template-columns: minmax(0, 1fr); }
  .voice-settings-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .voice-settings-nav button { white-space: normal; padding: .6rem; }
  .voice-settings-shell [data-voice-settings-panel] > .card,
  .voice-security-grid > .card { padding: 1.1rem; }
}
.voice-call {
  margin-bottom: 1rem;
}
.voice-call .notice {
  margin-block: 0.75rem;
}
#voice-agent-form textarea,
#voice-task-form textarea {
  width: 100%;
  box-sizing: border-box;
}
dialog audio {
  width: 100%;
  margin-block: 1rem;
}

/* Navigation stays with the viewport; long pages only stretch the content. */
@media (min-width: 701px) {
  .shell > .sidebar,
  .shell:has(.calendar-planning-page) > .sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    gap: 12px;
  }
  .sidebar > .sidebar-heading,
  .sidebar > .entry-links,
  .sidebar > .space-picker,
  .sidebar > .sidebar-bottom {
    flex-shrink: 0;
  }
  .sidebar > .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
  .sidebar .nav button,
  .sidebar .nav a {
    padding: 8px 12px;
    min-height: 34px;
    font-size: 14px;
  }
  .sidebar .nav-group + .nav-group {
    margin-top: 8px;
  }
  .sidebar .nav-subtitle {
    padding-top: 8px;
  }
  .sidebar .sidebar-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 8px;
  }
  .sidebar .sidebar-bottom .person {
    min-width: 0;
    border-top: 0;
    padding: 0;
    gap: 8px;
  }
  .sidebar .person > div:last-child {
    min-width: 0;
  }
  .sidebar .person strong,
  .sidebar .person span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar .sidebar-bottom > button {
    padding: 7px;
    font-size: 12px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  .shell > .sidebar,
  .shell:has(.calendar-planning-page) > .sidebar {
    padding: 14px 12px;
    gap: 8px;
  }
  .sidebar .brand img {
    width: 38px;
    height: 38px;
  }
  .sidebar .brand-name {
    font-size: 17px;
  }
  .sidebar .brand-name small {
    font-size: 9px;
  }
  .sidebar .space-picker {
    gap: 5px;
  }
  .sidebar .space-picker select {
    padding: 8px;
  }
  .sidebar .nav {
    gap: 2px;
  }
  .sidebar .nav button,
  .sidebar .nav a {
    padding: 6px 11px;
    min-height: 32px;
  }
  .sidebar .nav-group + .nav-group {
    margin-top: 5px;
  }
  .sidebar .nav-label {
    padding: 4px 12px;
  }
  .sidebar .nav-subtitle {
    padding: 5px 12px 2px;
  }
  .sidebar .entry-links {
    margin: 0;
  }
  .sidebar .entry-links a {
    min-height: 32px;
    padding: 7px 10px;
  }
}
.settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.settings-navigation {
  display: grid;
  gap: 5px;
}
.settings-navigation button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}
#voice-archive .voice-archive-card {
  gap: .55rem;
  margin-block: .6rem;
}
#voice-archive .voice-archive-brief {
  gap: .3rem;
  padding: .7rem 1rem;
}
.voice-archive-card .card-header {
  align-items: baseline;
  flex-wrap: wrap;
}
.voice-archive-card h3, .voice-archive-meta, .voice-archive-status {
  margin: 0;
  overflow-wrap: anywhere;
}
.voice-archive-meta, .voice-archive-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .7rem;
}
.voice-archive-meta > * + *::before {
  content: "\00b7";
  margin-inline-end: .7rem;
}
.voice-archive-topics {
  display: grid;
  gap: .28rem;
  margin: .1rem 0;
  padding-inline-start: 1.2rem;
  list-style: disc;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.voice-archive-topics li::marker {
  color: var(--muted);
}
.voice-archive-open {
  margin-inline-start: auto;
  width: fit-content;
  white-space: nowrap;
}
.voice-archive-audio {
  display: block;
  width: 100%;
  margin: 16px 0;
  flex-shrink: 0;
}
.voice-end-diagnostics {
  margin: 8px 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.voice-end-diagnostics h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.voice-end-diagnostics p {
  margin: 4px 0;
  font-size: 0.95rem;
}
.voice-diagnostic-details { margin-top: 12px; }
.voice-diagnostic-details summary { cursor: pointer; font-weight: 600; }
.voice-diagnostic-details h4 { margin: 16px 0 8px; }
.voice-diagnostic-operations { margin: 0; }
.voice-diagnostic-operations > div { padding: 8px 0; border-bottom: 1px solid var(--border); }
.voice-diagnostic-operations dt { font-weight: 600; }
.voice-diagnostic-operations dd { margin: 4px 0 0; }
.voice-diagnostic-timeline { list-style: none; padding: 0; margin: 8px 0; }
.voice-diagnostic-timeline li { display: flex; gap: 12px; padding: 6px 0; align-items: baseline; }
.voice-diagnostic-timeline li > span { flex: 0 0 76px; font-variant-numeric: tabular-nums; }
.voice-diagnostic-timeline small { display: block; margin-top: 2px; color: var(--muted); }
html:has(#dialog[open] .voice-archive-content) {
  overflow: hidden;
}
#dialog[open]:has(.voice-archive-content) {
  display: flex;
  flex-direction: column;
  width: min(1440px, calc(100vw - 48px));
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: calc(100dvh - 48px);
}
.voice-archive-content {
  display: block;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.voice-archive-content .voice-transcript {
  overflow: visible;
  max-height: none;
  padding-right: 8px;
}
@media (max-width: 600px) {
  #dialog[open]:has(.voice-archive-content) {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }
}
#voice-operations-root
  label
  > :is(input:not([type="checkbox"]), select, textarea),
#voice-settings-root
  label
  > :is(input:not([type="checkbox"]), select, textarea) {
  display: block;
  margin-top: 8px;
}
.settings-navigation button[aria-current="page"] {
  background: var(--primary-soft, #edf1ff);
  color: var(--primary);
  font-weight: 650;
}
.settings-content {
  min-width: 0;
}
.settings-content .page-head {
  margin-bottom: 20px;
}
.settings-content .page-head h1 {
  font-size: 23px;
}
.settings-content .card h2 {
  font-size: 19px;
}
.approval-toolbar,
.approval-card-bottom,
.approval-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  gap: 4px;
}
.segmented button {
  border: 0;
  padding: 8px 18px;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: #edf1ff;
  color: var(--primary);
  font-weight: 650;
}
.approval-list,
.result-list {
  gap: 14px;
}

/* The setup conversation follows the page instead of adding another scrollbar. */
.setup-help {
  padding: 24px;
}
.setup-help-intro {
  display: flex;
  gap: 12px;
  align-items: start;
}
.setup-help-intro h2 {
  margin: 0 0 6px;
}
.setup-help-intro p {
  margin: 0;
}
.setup-help-symbol {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--accent);
  background: #edf1ff;
}
.setup-context,
.setup-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.setup-direct-links {
  width: 100%;
  margin-top: 6px;
}
.setup-starters .small {
  text-align: left;
  white-space: normal;
}
.setup-messages {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.setup-message {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #f8faff;
}
.setup-message.user {
  background: #edf1ff;
}
.setup-message > strong {
  font-size: 12px;
  color: var(--muted);
}
.setup-message > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  line-height: 1.65;
}
.setup-message .actions {
  margin-top: 12px;
}
.setup-composer-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.setup-help .setup-privacy {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.setup-help textarea {
  resize: vertical;
  min-height: 95px;
}
@media (max-width: 700px) {
  .setup-help {
    padding: 17px;
  }
  .setup-starters {
    display: grid;
  }
  .setup-composer-actions {
    align-items: stretch;
  }
}
.approval-service {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.approval-service .hint {
  margin-left: auto;
}
.approval-service .service-mark {
  width: 28px;
  height: 28px;
}
.approval-card h2 {
  font-size: 19px;
  margin: 14px 0 8px;
}
.approval-card p {
  margin: 6px 0;
}
.approval-card-bottom {
  margin: 18px 0 0;
}
.approval-pagination {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .settings-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .settings-navigation button {
    padding: 9px 12px;
  }
}

.approval-list,
.result-list {
  display: grid;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* Common guardrails are a compact projection of service-owned controls. */
.guardrails-tabs {
  margin: 0 0 18px;
}
.guardrails-tabs button[aria-selected="true"] {
  background: #edf1ff;
  color: var(--accent);
  font-weight: 650;
}
.guardrails-rules,
.guardrails-list {
  display: grid;
  gap: 14px;
}
.guardrails-service {
  padding: 18px;
}
.guardrails-service-head,
.guardrails-connection-head,
.guardrails-descriptor-head,
.guardrails-descriptor-bottom,
.guardrails-operation-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.guardrails-service-head h2,
.guardrails-descriptor h3 {
  margin: 0;
}
.guardrails-service-head p {
  margin: 5px 0 0;
}
.guardrails-service-meta,
.guardrails-rule-head,
.guardrails-rule-core,
.guardrails-account-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.guardrails-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.guardrails-rule {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}
.guardrails-rule h3,
.guardrails-rule p {
  margin: 0;
}
.guardrails-rule h3 {
  font-size: 16px;
}
.guardrails-rule p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.guardrails-rule-core {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.guardrails-rule-core > span {
  padding-right: 7px;
  border-right: 1px solid var(--border);
}
.guardrails-rule-core > span:last-child {
  padding-right: 0;
  border-right: 0;
}
.guardrails-account-chips {
  margin-top: 10px;
}
.guardrails-account-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf1ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guardrails-rule-details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.guardrails-rule-details summary {
  cursor: pointer;
  font-weight: 600;
}
.guardrails-rule-details ul {
  margin: 7px 0 0;
  padding-left: 17px;
}
.guardrails-connection {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.guardrails-connection-head .hint {
  margin-left: 8px;
}
.guardrails-descriptors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.guardrails-descriptor {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}
.guardrails-descriptor p,
.guardrails-descriptor ul {
  margin: 9px 0;
}
.guardrails-descriptor ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.guardrails-descriptor-bottom,
.guardrails-operation-bottom {
  margin-top: 12px;
}
.guardrails-limit {
  color: var(--muted);
  font-size: 13px;
}
.guardrails-undo {
  color: #176b47;
  font-size: 13px;
  font-weight: 600;
}
.guardrails-operation h2 {
  margin: 12px 0 6px;
  font-size: 18px;
}
.pill.provider {
  color: #765820;
  background: #f8f1df;
}
@media (max-width: 600px) {
  .guardrails-service {
    padding: 15px;
  }
  .guardrails-rule-grid {
    grid-template-columns: 1fr;
  }
  .guardrails-descriptors {
    grid-template-columns: 1fr;
  }
}
.settings-navigation button[aria-current="page"],
.segmented button[aria-pressed="true"] {
  color: var(--accent);
}
@media (min-width: 701px) and (max-height: 760px) {
  .shell > .sidebar,
  .shell:has(.calendar-planning-page) > .sidebar {
    gap: 6px;
  }
  .sidebar .nav button,
  .sidebar .nav a {
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .sidebar .nav-label {
    padding-top: 3px;
    padding-bottom: 3px;
    line-height: 15px;
  }
  .sidebar .nav-group,
  .sidebar .nav-subgroup {
    gap: 1px;
  }
  .sidebar .nav-group + .nav-group {
    margin-top: 4px;
  }
}

.settings-content > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-content .settings-section-title {
  font-size: 23px;
  margin: 0;
}
@media (max-width: 1000px) {
  .settings-content > .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.setup-voice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.setup-voice:has([data-action="setup-voice"][hidden]) {
  display: none;
}
.setup-voice audio {
  display: none;
}
.setup-voice [aria-pressed="true"] {
  color: #2348d1;
  background: #edf1ff;
}

.connection-options {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.permission-account-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.permission-account-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.permission-account-row > button {
  flex-shrink: 0;
}
.permission-account-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.permission-mode-badge {
  margin-top: 0;
}
#shared-permission-defaults {
  max-width: 760px;
}
.connection-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  text-align: left;
  gap: 4px 14px;
  padding: 14px 16px;
  width: 100%;
}
.connection-option small {
  grid-column: 1;
  color: var(--muted);
  font-weight: normal;
  line-height: 1.4;
}
.connection-option .hub-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.connection-feature legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.connection-feature > .hint {
  margin: 0 0 12px;
}
.permission-advanced {
  margin-top: 14px;
}
.permission-advanced summary {
  margin-bottom: 10px;
  color: var(--muted);
}
.connection-feature .checkbox-label {
  align-items: start;
}
.connection-feature input[type="checkbox"] {
  flex-shrink: 0;
}

/* Calendar selection stays next to the schedule; the page owns vertical scrolling. */
.calendar-workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.calendar-sidebar,
.calendar-main {
  min-width: 0;
}
.calendar-sidebar .calendar-options {
  border: 0;
  background: transparent;
  padding: 8px 0;
  margin: 0;
}
.calendar-sidebar .calendar-options > summary {
  padding: 6px 8px;
  line-height: 1.5;
}
.calendar-sidebar-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 20px 8px 0;
}
.calendar-sidebar .calendar-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin: 0;
}
.calendar-filter-row {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 8px;
}
.calendar-filter-row:hover {
  background: #eaf0fc;
}
.calendar-sidebar .calendar-filters label {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
  gap: 8px;
}
.calendar-filters label > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.calendar-drag-grip {
  color: var(--muted);
  cursor: grab;
  padding: 6px;
  min-width: 36px;
  min-height: 36px;
  font-size: 20px;
  touch-action: none;
  user-select: none;
}
.calendar-drag-grip:active {
  cursor: grabbing;
}
.calendar-order-settings {
  max-width: 760px;
}
.calendar-order-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.calendar-order-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.calendar-order-row > span:not(.calendar-dot) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.calendar-order-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.calendar-order-row.is-dragging {
  opacity: 0.5;
}
.calendar-order-row[data-drop-position]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, #3157ff);
  border-radius: 3px;
}
.calendar-order-row[data-drop-position="before"]::after {
  top: -6px;
}
.calendar-order-row[data-drop-position="after"]::after {
  bottom: -6px;
}
.calendar-order-buttons {
  display: flex;
  flex-direction: column;
}
.calendar-order-buttons button {
  padding: 4px 8px;
  min-height: 32px;
  line-height: 1;
}
.calendar-sidebar .calendar-dot {
  display: none;
}
@media (max-width: 900px) {
  .calendar-workspace {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .calendar-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-sidebar .calendar-options {
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 10px;
    background: white;
  }
  .calendar-sidebar-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .calendar-sidebar .calendar-card {
    padding: 10px;
  }
}

.calendar-sidebar .calendar-filters small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Newly entered secrets can be inspected without changing stored verifiers. */
.voice-secret-input {display:flex;gap:8px;align-items:center;}
.voice-secret-input input {min-width:0;flex:1;}
.voice-secret-input button {flex:none;margin:0;}

.voice-stored-secret { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }

/* The personal WhatsApp archive keeps controls and long transcripts readable. */
#whatsapp-archive-root .card-header { flex-wrap: wrap; align-items: center; }
#whatsapp-archive-root .whatsapp-archive-part { margin: .9rem 0; overflow-wrap: anywhere; }
#whatsapp-archive-root audio { display: block; max-width: 100%; }
