/* Selected Lazur concepts 31, 33, 34, 36 and 37. Presentation only. */
.app-shell .action-center {
  --ac-ink: #302b3b;
  --ac-muted: #706a7b;
  --ac-line: #e5dfea;
  --ac-purple: #7354b4;
  --ac-chat: #fffefd;
  --ac-chat-text: #302b3b;
  --ac-chat-muted: #706a7b;
  max-width: 1500px;
  padding: 30px clamp(20px, 3vw, 48px) 48px;
  color: var(--ac-ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
}

.app-shell .action-center__header {
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.app-shell .action-center__header h1 {
  margin-top: 8px;
  color: var(--ac-ink);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.2;
}
.app-shell .action-center__header > p {
  display: block;
  max-width: 360px;
  color: var(--ac-muted);
  font-size: 14px;
  line-height: 1.7;
}
.app-shell .action-center__eyebrow { color: var(--ac-purple); font-size: 11px; }
.app-shell .action-center__layout {
  grid-template-columns: minmax(0, .37fr) minmax(0, .63fr);
  grid-template-areas: 'queue conversation';
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}
.app-shell .action-center__attention {
  grid-area: queue;
  order: 0;
  padding: 12px 0 0;
}
.app-shell .action-center__chat {
  grid-area: conversation;
  min-height: 600px;
  height: max(600px, calc(100dvh - var(--topbar-height, 76px) - 210px));
  max-height: 1100px;
  color: var(--ac-chat-text);
  background: var(--ac-chat);
  border: 1px solid var(--ac-line);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgb(52 40 71 / 5%);
}
.app-shell .action-center__chat-header {
  min-height: 88px;
  padding: 20px 26px;
  border-bottom-color: var(--ac-line);
  background: #fffefd;
}
.app-shell .action-center__chat-header h2 { color: var(--ac-ink); font-size: 21px; }
.app-shell .action-center__chat-header p { color: var(--ac-muted); font-size: 13px; }
.app-shell .action-center__avatar,
.app-shell .action-center__welcome-mark {
  color: var(--ac-purple);
  background-color: #f0edf8;
  background-image: url('/assets/lazur-brand-bird.svg');
  background-position: center;
  background-size: 76%;
  background-repeat: no-repeat;
  border-radius: 50%;
}
/* Keep the supplied icon in the DOM; the existing brand asset fills its mark. */
.app-shell .action-center__avatar > svg,
.app-shell .action-center__welcome-mark > svg { opacity: 0; }
.app-shell .action-center__avatar { width: 48px; height: 48px; }
.app-shell .action-center__message-avatar {
  display: grid;
  color: var(--ac-purple);
  background: #f0edf8;
  border-radius: 50%;
}
.app-shell .action-center__connection { background: #468763; }
.app-shell .action-center__connection.is-unavailable { background: #aa8c4b; }
.app-shell .action-center__conversation {
  padding: 28px 26px;
  scrollbar-color: #cec1e0 transparent;
}
.app-shell .action-center__welcome h3 { color: var(--ac-ink); font-size: 27px; }
.app-shell .action-center__welcome > p { color: var(--ac-muted); font-size: 15px; }
.app-shell .action-center__starters { width: min(420px, 100%); gap: 10px; }
.app-shell .action-center__starters button {
  min-height: 48px;
  padding: 13px 16px;
  color: var(--ac-ink);
  background: #f9f7fc;
  border-color: var(--ac-line);
  border-radius: 12px;
  font-size: 14px;
}
.app-shell .action-center__starters svg { color: var(--ac-purple); }
.app-shell .action-center__messages { gap: 28px; }
.app-shell .action-center__message--user-message {
  padding: 14px 18px;
  color: var(--ac-ink);
  background: #f0edf8;
}
.app-shell .action-center__message--created-task {
  color: #245740;
  background: #edf6f0;
  border-color: #c8decf;
}
.app-shell .action-center__message-meta,
.app-shell .action-center__message-meta time,
.app-shell .action-center__delivery,
.app-shell .action-center__thinking { color: var(--ac-muted); }
.app-shell .action-center__message-meta { font-size: 12px; }
.app-shell .action-center__message-meta time { font-size: 11px; }
.app-shell .action-center__message-title,
.app-shell .action-center__message-text { color: var(--ac-ink); font-size: 16px; line-height: 1.75; }
.app-shell .action-center__plan {
  border-color: var(--ac-line);
  background: #faf8fd;
  border-radius: 14px;
}
.app-shell .action-center__plan > ol > li { padding: 20px; }
.app-shell .action-center__plan > ol > li + li,
.app-shell .action-center__confirmation,
.app-shell .action-center .action-center__plan-status { border-top-color: var(--ac-line); }
.app-shell .action-center__plan-number { color: var(--ac-purple); background: #ece5f6; }
.app-shell .action-center__plan h3 { color: var(--ac-ink); font-size: 16px; }
.app-shell .action-center__plan p,
.app-shell .action-center__plan-assignee span,
.app-shell .action-center__plan summary { color: var(--ac-muted); }
.app-shell .action-center .action-center__plan-assignee { color: var(--ac-purple); }
.app-shell .action-center__confirmation { padding: 18px 20px; background: #f0edf8; }
.app-shell .action-center__confirmation > p { color: var(--ac-ink); }
.app-shell .action-center .action-center__plan-status { color: var(--ac-muted); }
.app-shell .action-center__confirmation button,
.app-shell .action-center__document-actions button,
.app-shell .action-center__receipt {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--ac-purple);
  background: #fffefd;
  border-color: #dbd0e9;
  border-radius: 10px;
  font-size: 13px;
}
.app-shell .action-center__confirmation .action-center__confirm {
  color: #fff;
  background: var(--ac-purple);
  border-color: var(--ac-purple);
}
.app-shell .action-center__sources { color: var(--ac-muted); }
.app-shell .action-center__document {
  background: #fffefd;
  border-color: var(--ac-line);
  border-top: 3px solid #b39bd9;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgb(48 43 59 / 5%);
}
.app-shell .action-center__document > header { padding: 22px 20px 18px; }
.app-shell .action-center__document > header > svg { color: var(--ac-purple); }
.app-shell .action-center__document header span { color: var(--ac-muted); font-size: 12px; }
.app-shell .action-center__document h3 { color: var(--ac-ink); font-size: 18px; }
.app-shell .action-center__document > details { padding-inline: 20px; }
.app-shell .action-center__document summary { min-height: 44px; color: var(--ac-purple); font-size: 14px; }
.app-shell .action-center__document-body { color: var(--ac-ink); background: #f8f6fb; font-size: 16px; }
.app-shell .action-center__document-actions { padding: 18px 20px; }
.app-shell .action-center__document-actions button { background: #f0edf8; }
.app-shell .action-center__to-latest {
  min-height: 44px;
  color: var(--ac-purple);
  background: #fffefd;
  border-color: #d2c2e6;
  box-shadow: 0 4px 16px rgb(52 40 71 / 10%);
}
.app-shell .action-center__composer {
  padding: 20px 22px 16px;
  background: #f0edf8;
  border-top-color: #e1d7ee;
  box-shadow: 0 -5px 20px rgb(52 40 71 / 3%);
}
.app-shell .action-center__input-wrap {
  color: var(--ac-ink);
  background: #fffefd;
  border-color: #dcd2e9;
  border-radius: 15px;
  box-shadow: 0 3px 9px rgb(52 40 71 / 4%);
}
.app-shell .action-center__input-wrap:focus-within {
  border-color: var(--ac-purple);
  box-shadow: 0 0 0 3px rgb(115 84 180 / 12%);
}
.app-shell .action-center__composer textarea { color: var(--ac-ink); font-size: 16px; padding: 15px 16px 8px; }
.app-shell .action-center__composer textarea::placeholder { color: var(--ac-muted); }
.app-shell .action-center__composer-actions { gap: 4px; padding: 6px 9px 10px; }
.app-shell .action-center__composer-actions button,
.app-shell .action-center__attachment-button { min-height: 44px; color: var(--ac-muted); font-size: 12px; }
.app-shell .action-center__composer-actions button:hover:not(:disabled),
.app-shell .action-center__attachment-button:not(.is-disabled):hover { color: var(--ac-purple); background: #f0edf8; }
.app-shell .action-center__composer-actions .action-center__submit {
  min-width: 44px;
  color: #fff;
  background: var(--ac-purple);
  border-radius: 22px;
}
.app-shell .action-center__composer-actions .action-center__submit:hover:not(:disabled),
.app-shell .action-center__confirmation .action-center__confirm:hover:not(:disabled) { color: #fff; background: #624297; }
.app-shell .action-center__composer-actions .action-center__dictation.is-recording { color: #a33941; background: #fbe9ed; }
.app-shell .action-center__input-hint,
.app-shell .action-center__notice { color: var(--ac-muted); font-size: 12px; }
.app-shell .action-center__error { color: #a33941; background: #fff0ef; border-color: #ebc9c7; font-size: 14px; }
.app-shell .action-center__scope-notice { color: #5d4a77; background: #f0edf8; border-color: #dbd0e9; font-size: 13px; }
.app-shell .action-center__attachments li { color: var(--ac-ink); background: #fffefd; border-color: #dcd2e9; }
.app-shell .action-center__attachments button { width: 44px; height: 44px; color: var(--ac-muted); }
.app-shell .action-center__recording { color: var(--ac-ink); background: #fffefd; border-color: #dcd2e9; }
.app-shell .action-center__recording-head,
.app-shell .action-center__transcript span { color: var(--ac-ink); }
.app-shell .action-center__recording > p,
.app-shell .action-center__transcript em { color: var(--ac-muted); }
.app-shell .action-center__recording-dot { background: var(--ac-purple); }
.app-shell .action-center__recording.is-recording .action-center__recording-dot { background: #b34852; box-shadow: 0 0 0 4px #fbe9ed; }
.app-shell .action-center__attention-heading { padding-bottom: 22px; }
.app-shell .action-center__attention-heading h2 { color: var(--ac-ink); font-size: 23px; }
.app-shell .action-center__attention-heading > span { color: var(--ac-purple); background: #f0edf8; }
.app-shell .action-center__attention-list { display: block; }
.app-shell .action-center__attention-item { min-height: 92px; gap: 9px; padding: 18px 12px; border-radius: 10px; }
.app-shell .action-center__attention-item:hover:not(:disabled) { background: #f0edf8; }
.app-shell .action-center__attention-item > strong { color: var(--ac-ink); font-size: 16px; line-height: 1.6; }
.app-shell .action-center__item-top b { padding: 3px 9px; color: #66577c; background: #f0edf8; border-radius: 16px; font-size: 11px; }
.app-shell .action-center__item-top > span { font-size: 11px; }
.app-shell .action-center__item-top i { background: var(--ac-purple); }
.app-shell .action-center__item-summary,
.app-shell .action-center__attention-item > small,
.app-shell .action-center__partial-count { color: var(--ac-muted); font-size: 12px; }
.app-shell .action-center__more-attention,
.app-shell .action-center__all-tasks { min-height: 48px; color: var(--ac-purple); font-size: 14px; }
.app-shell .action-center__empty { color: var(--ac-purple); }
.app-shell .action-center__empty p { color: var(--ac-muted); font-size: 14px; }
.app-shell .action-center__overview { margin-top: 24px; }
.app-shell .action-center__overview dt { font-size: 13px; }
.app-shell .action-center__overview dd { color: var(--ac-ink); font-size: 17px; }
.app-shell .action-center__overview small { font-size: 11px; }
.app-shell .action-center__memory { color: var(--ac-muted); font-size: 13px; }
.app-shell .action-center__memory summary,
.app-shell .action-center__overview summary { min-height: 44px; padding-block: 10px; }
.app-shell .action-center__memory button { min-width: 44px; min-height: 44px; color: var(--ac-muted); }
.app-shell .action-center__older { min-height: 44px; color: var(--ac-purple); border-color: #d2c2e6; background: #fffefd; }
.app-shell .action-center__message-action { min-height: 44px; color: var(--ac-purple); border-bottom-color: #d2c2e6; font-size: 12px; }

.app-shell .action-center__creation-toolbar {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  gap: 12px;
  padding: 26px clamp(20px, 3vw, 48px) 0;
  color: #302b3b;
  font-family: var(--lazur-font-interface, 'Lazur Open Sans', system-ui, sans-serif);
}
.app-shell .action-center__creation-toolbar select,
.app-shell .action-center__creation-toolbar > button {
  min-height: 48px;
  border-color: #dcd2e9;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.app-shell .action-center__creation-toolbar select { color: #5e4683; background: #fffefd; }
.app-shell .action-center__creation-toolbar > button { color: #fff; background: #7354b4; border-color: #7354b4; box-shadow: 0 4px 12px rgb(115 84 180 / 13%); }
.app-shell .action-center__creation-toolbar > button:hover:not(:disabled) { background: #624297; }
.app-shell .action-center__creation-toolbar > button:disabled { opacity: .45; cursor: not-allowed; }
.app-shell .action-center__creation-toolbar details { color: #706a7b; }
.app-shell .action-center__creation-toolbar summary { min-height: 44px; }
.app-shell .action-center__creation-toolbar details > div { color: #302b3b; background: #fffefd; border-color: #dcd2e9; }
.app-shell .action-center__creation-toolbar details button { min-height: 48px; color: #302b3b; border-radius: 8px; }
.app-shell .action-center__creation-toolbar details button:hover { background: #f0edf8; }
.app-shell .action-center__creation-toolbar details small { color: #706a7b; }
.app-shell .action-center :is(button, a, summary, textarea):focus-visible,
.app-shell .action-center__attachment-button:focus-within,
.app-shell .action-center__creation-toolbar :is(button, select, summary):focus-visible { outline: 3px solid #a388cf; outline-offset: 3px; }

.app-shell .action-center .source-health { color: var(--ac-ink); border-color: var(--ac-line); background: #faf8fd; }
.app-shell .action-center .source-health summary { min-height: 44px; }
.app-shell .action-center .source-health summary > small,
.app-shell .action-center :is(.source-health__intro, .source-health__observed, .source-health__note),
.app-shell .action-center .source-health__list dt,
.app-shell .action-center .source-health__list dd small { color: var(--ac-muted); }
.app-shell .action-center .source-health__list > li { border-top-color: var(--ac-line); }
.app-shell .action-center .source-health__list dd { color: var(--ac-ink); }
.app-shell .action-center .source-health__error { color: #a33941; }
.app-shell .action-center .source-health__link { min-height: 44px; color: var(--ac-purple); font-size: 12px; line-height: 1.6; }
.app-shell .action-center .source-health :is(summary, button):focus-visible { outline-color: #a388cf; }

@media (max-width: 1100px) {
  .app-shell .action-center__layout { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: 24px; }
  .app-shell .action-center__conversation { padding: 24px 20px; }
  .app-shell .action-center__composer { padding: 16px; }
}
@media (max-width: 900px) {
  .app-shell .action-center { padding: 26px 20px 36px; }
  .app-shell .action-center__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'queue' 'conversation'; gap: 28px; }
  .app-shell .action-center__attention { order: 0; padding: 0; }
  .app-shell .action-center__chat { min-height: 600px; height: max(600px, calc(100dvh - var(--topbar-height, 76px) - 80px)); }
  .app-shell .action-center__creation-toolbar { padding: 22px 20px 0; }
}
@media (max-width: 560px) {
  .app-shell .action-center { padding: 24px 14px 30px; }
  .app-shell .action-center__header { flex-direction: column; align-items: start; margin: 0 0 26px; gap: 12px; }
  .app-shell .action-center__header h1 { font-size: 30px; }
  .app-shell .action-center__header > p { display: block; font-size: 14px; }
  .app-shell .action-center__chat { min-height: 620px; height: max(620px, calc(100dvh - var(--topbar-height, 68px) - 30px)); border-radius: 16px; }
  .app-shell .action-center__chat-header { padding: 18px 16px; gap: 10px; }
  .app-shell .action-center__chat-header h2 { font-size: 20px; }
  .app-shell .action-center__chat-header p { font-size: 12px; }
  .app-shell .action-center__conversation { padding: 22px 14px; }
  .app-shell .action-center__message-row { gap: 8px; }
  .app-shell .action-center__message-avatar { width: 26px; height: 26px; }
  .app-shell .action-center__message-row.is-user { padding-left: 18px; }
  .app-shell .action-center__message-row.is-assistant { padding-right: 0; }
  .app-shell .action-center__message-title,
  .app-shell .action-center__message-text,
  .app-shell .action-center__document-body { font-size: 16px; }
  .app-shell .action-center__welcome h3 { font-size: 24px; }
  .app-shell .action-center__welcome > p { font-size: 16px; }
  .app-shell .action-center__starters button { font-size: 14px; }
  .app-shell .action-center__composer { padding: 14px 10px 12px; }
  .app-shell .action-center__composer textarea { padding: 13px 12px 8px; font-size: 16px; }
  .app-shell .action-center__composer-actions { gap: 4px; padding: 4px 6px 8px; }
  .app-shell .action-center__composer-actions button,
  .app-shell .action-center__attachment-button { min-height: 44px; padding: 8px; font-size: 12px; }
  .app-shell .action-center__composer-actions .action-center__submit { width: auto; min-width: 44px; padding: 8px 12px; }
  .app-shell .action-center__submit > span { display: inline; }
  .app-shell .action-center__document > header { padding: 18px 14px; }
  .app-shell .action-center__document > details { padding-inline: 14px; }
  .app-shell .action-center__document-actions { padding: 16px 14px; }
  .app-shell .action-center__plan > ol > li { padding: 16px 14px; gap: 9px; }
  .app-shell .action-center__confirmation { padding: 16px 14px; }
  .app-shell .action-center__thinking { padding-left: 0; }
  .app-shell .action-center__creation-toolbar { padding: 18px 14px 0; gap: 10px; }
  .app-shell .action-center__creation-toolbar select { max-width: none; }
  .app-shell .action-center__creation-toolbar > button { flex: 1; }
  .app-shell .action-center__creation-toolbar details { flex-basis: 100%; }
  .app-shell .action-center__scope-notice { margin-inline: 14px; }
  .app-shell .action-center .source-health__list dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}



/* Igor's selection, 2026-10-06: displayed concepts 31, 33, 34, 36, 37.
   Presentation only. Existing routes, controls, permissions and content stay in
   their components. Brand assets and locally hosted Open Sans are reused. */
:root {
  --topbar-height: 86px;
  --lazur-canvas: #fcfbfa;
  --lazur-border: #e5e0ea;
  --lazur-selected-shadow: 0 2px 4px rgb(48 43 59 / 3%), 0 12px 30px rgb(48 43 59 / 5%);
}

.app-shell {
  background: var(--lazur-canvas);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.app-shell::before {
  content: '';
  position: fixed;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(24vh, 230px);
  background: url('/assets/lazur-brand-wave.svg') center bottom / 100% auto no-repeat;
  opacity: .12;
  pointer-events: none;
}
.app-shell .app-stage { position: relative; z-index: 1; }
.app-shell .workspace-main {
  position: relative;
  background: transparent;
}
.app-shell :is(button, input, textarea, select) { font-family: var(--lazur-font-interface); }
.app-shell :is(button, a, input, textarea, select, summary):focus-visible,
.portal-search :is(button, input):focus-visible {
  outline: 3px solid var(--lazur-action);
  outline-offset: 3px;
}

/* A quiet browser-like toolbar, with the original clinic lockup. */
.app-shell .topbar.topbar-simple {
  grid-template-columns: 156px minmax(0, 1fr) 104px;
  gap: 28px;
  height: var(--topbar-height);
  padding: 0 clamp(20px, 3.2vw, 52px);
  background: #fffefd;
  border-bottom: 1px solid var(--lazur-border);
  box-shadow: 0 5px 20px rgb(48 43 59 / 4%);
  backdrop-filter: none;
}
.app-shell .topbar-brand {
  width: 150px;
  height: 66px;
  background: none;
}
.app-shell .topbar-brand img { display: block; width: 150px; height: 66px; object-fit: contain; }
.app-shell .topbar-brand strong { display: none; }
.app-shell .portal-navigation {
  padding: 0;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.app-shell .portal-navigation__primary { gap: 8px; }
.app-shell .portal-navigation__primary > button,
.app-shell .portal-navigation__trigger,
.app-shell .portal-navigation__search {
  min-height: 46px;
  padding: 11px 19px;
  color: var(--lazur-ink);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.app-shell .portal-navigation__primary > button:hover,
.app-shell .portal-navigation__trigger:hover,
.app-shell .portal-navigation__search:hover { background: #f7f4fb; color: var(--lazur-action); }
.app-shell .portal-navigation .is-active {
  background: var(--lazur-brand-pale);
  color: var(--lazur-action);
  border-color: #ded4ef;
  box-shadow: 0 1px 0 #fff inset, 0 3px 6px rgb(48 43 59 / 5%);
}
.app-shell .portal-navigation__search { margin-left: 10px; padding-inline: 12px; }
.app-shell .portal-navigation__search kbd { font-size: 10px; color: var(--lazur-muted); }
.app-shell .topbar-account { gap: 12px; }
.app-shell .topbar-account .icon-button { background: transparent; color: var(--lazur-ink); border: 0; box-shadow: none; }
.app-shell .topbar-simple .profile-button { border: 1px solid #ded4ef; box-shadow: 0 2px 6px rgb(48 43 59 / 5%); background: #f5f1fb; }
.app-shell .portal-navigation__menu,
.app-shell .account-menu-popover,
.portal-search {
  border-color: var(--lazur-border);
  border-radius: 18px;
  box-shadow: 0 16px 54px rgb(48 43 59 / 12%);
}
.app-shell .portal-navigation__menu button { min-height: 48px; font-size: 14px; }
.portal-search input { font-size: 17px; }
.app-shell .action-center__composer textarea:focus-visible { outline: none; }
.app-shell .action-center__input-wrap:has(textarea:focus-visible) {
  outline: 2px solid var(--lazur-action);
  outline-offset: 2px;
  box-shadow: none;
}
.app-shell .action-center__document > header { padding: 16px 20px 12px; }
.app-shell .action-center__document-body { margin-top: 8px; padding: 14px 16px; line-height: 1.65; }
.app-shell .action-center__document-actions { padding: 12px 20px 16px; }
.app-shell .toast {
  color: var(--lazur-ink);
  background: #fffefd;
  border: 1px solid var(--lazur-border);
  box-shadow: 0 6px 24px rgb(48 43 59 / 12%);
}

/* Shared surfaces keep their existing module-specific layout and status colors. */
.app-shell :is(.page-heading h1, .employee-center__header h1, .meeting-center__header h1,
  .project-center__header h1, .lazur-header h1, .leader-overview__header h1,
  .lazur-knowledge-base__hero h1, .media-workspace__header h1) {
  font-family: var(--lazur-font-interface);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.app-shell :is(.leader-overview__header, .lazur-knowledge-base__hero, .employee-center__header,
  .meeting-center__header, .media-workspace__header) {
  background-color: #fcfbfa;
  background-image: none;
  border-color: var(--lazur-border);
}
.app-shell :is(.leader-overview__module, .lazur-section, .project-panel,
  .chat-hub__conversation, .employee-profile, .lazur-knowledge-base__entry-detail) {
  border-color: var(--lazur-border);
  border-radius: 16px;
  box-shadow: var(--lazur-selected-shadow);
}
.app-shell .leader-overview__today { background: #fffefd; box-shadow: 0 2px 10px rgb(48 43 59 / 3%); }
.app-shell .lazur-knowledge-base__hero h1 { font-size: 36px; }
.app-shell .task-thread-workspace,
.app-shell .chat-hub { --thread-line: #e5e0ea; --chat-line: #e5e0ea; --chat-canvas: #fcfbfa; }
.app-shell .task-thread-workspace__header,
.app-shell .chat-hub__header { background: #fffefd; }

/* Entry and existing account dialogs use the same paper and typography. */
.staff-entry { background: #fcfbfa; font-family: var(--lazur-font-interface); }
.staff-entry__masthead { min-height: 96px; border-color: var(--lazur-border); }
.staff-entry__main { max-width: 1360px; }
.staff-entry__content { padding-top: 64px; padding-bottom: 64px; }
.staff-entry h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.04em; }
.staff-entry__lead { font-size: 17px; line-height: 1.75; }
.staff-entry__visual { background: #f8f6fb; }
.staff-entry__visual::after { opacity: .09; background-size: contain; }
.staff-entry__sign-in, .staff-entry__preview { min-height: 50px; border-radius: 12px; font-size: 15px; }
.staff-entry__sign-in { box-shadow: 0 2px 4px rgb(48 43 59 / 5%), 0 6px 14px rgb(115 84 180 / 15%); }
.portal-access-dialog { border-radius: 20px; border-color: var(--lazur-border); }
.portal-access-head { background: #f9f7fc; }

@media (min-width: 901px) {
  .app-shell .action-center__creation-toolbar {
    position: absolute;
    z-index: 2;
    top: 34px;
    right: clamp(20px, 3vw, 48px);
    width: max-content;
    max-width: 52%;
    padding: 0;
  }
  .app-shell .action-center__header { display: block; margin-bottom: 28px; }
  .app-shell .action-center__header > p { max-width: 640px; margin-top: 16px; }
  .app-shell .action-center__desktop-break { display: none; }
  .app-shell .action-center__chat {
    min-height: 440px;
    height: max(440px, calc(100dvh - var(--topbar-height) - 225px));
  }
}

@media (max-width: 1180px) {
  .app-shell .topbar.topbar-simple { grid-template-columns: 120px minmax(0, 1fr) 100px; gap: 16px; padding-inline: 22px; }
  .app-shell .topbar-brand, .app-shell .topbar-brand img { width: 120px; }
  .app-shell .portal-navigation__primary > button { padding-inline: 13px; font-size: 14px; }
  .app-shell .portal-navigation__trigger { padding-inline: 12px; font-size: 14px; }
  .app-shell .portal-navigation__search { margin-left: 0; }
  .app-shell .portal-navigation__search kbd { display: none; }
}

@media (max-width: 850px) {
  :root { --topbar-height: 76px; }
  .app-shell .topbar.topbar-simple { grid-template-columns: 94px minmax(0, 1fr) 98px; gap: 14px; padding-inline: 16px; }
  .app-shell .topbar-brand, .app-shell .topbar-brand img { width: 94px; height: 55px; }
  .app-shell .portal-navigation { width: 100%; gap: 4px; }
  .app-shell .portal-navigation__trigger { min-width: 0; padding-inline: 10px; font-size: 14px; }
  .app-shell .portal-navigation__search { min-width: 44px; padding: 10px; }
  .app-shell .portal-navigation__primary {
    position: fixed;
    z-index: 90;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fffefd;
    border-top: 1px solid var(--lazur-border);
    box-shadow: 0 -3px 20px rgb(48 43 59 / 4%);
  }
  .app-shell .portal-navigation__primary > button { flex: 1; max-width: 160px; min-width: 0; padding: 12px 8px; font-size: 14px; }
  .app-shell .workspace { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .app-shell .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .app-shell .portal-navigation__menu { max-height: calc(100dvh - var(--topbar-height) - 102px); }
  .staff-entry__content { padding-block: 40px; }
}

@media (max-width: 480px) {
  :root { --topbar-height: 72px; }
  .app-shell .topbar.topbar-simple { grid-template-columns: 78px minmax(0, 1fr) 96px; gap: 6px; padding-inline: 12px; }
  .app-shell .topbar-brand, .app-shell .topbar-brand img { width: 78px; height: 50px; }
  .app-shell .topbar-account { gap: 6px; }
  .app-shell .portal-navigation__trigger { gap: 4px; padding-inline: 6px; font-size: 13px; }
  .app-shell .portal-navigation__primary { gap: 2px; padding-inline: 8px; }
  .app-shell .portal-navigation__primary > button { font-size: 13px; }
  .app-shell .action-center__document > header { padding: 16px 14px 12px; }
  .app-shell .action-center__document-actions { padding: 12px 14px 16px; }
  .app-shell .lazur-knowledge-base__hero h1 { font-size: 29px; }
  .staff-entry__content { padding-block: 32px; }
  .staff-entry h1 { font-size: 36px; }
  .staff-entry__lead { font-size: 16px; }
  .portal-search { border-radius: 16px; }
  .portal-search header { padding: 12px; }
  .app-shell :is(input, textarea, select) { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell .portal-navigation *, .portal-search, .staff-entry * { animation: none; transition: none; }
}

/* Keep the task heading and its two actions together on the shared rail. */
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 68px;
  padding: 12px 16px;
  background: var(--task-rail);
  border-bottom: 0;
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header :is(.chat-hub__refresh, .chat-hub__new-button) {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header .chat-hub__refresh {
  color: var(--lazur-action);
  background: #f9f7fc;
  border: 1px solid var(--lazur-border);
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header .chat-hub__refresh:hover {
  background: #efe9f8;
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header .chat-hub__new-button {
  color: #fff !important;
  background: var(--lazur-action);
  border: 1px solid var(--lazur-action);
}
.app-shell .chat-hub[data-visual-theme='northern-teal'] .chat-hub__header .chat-hub__new-button:hover {
  background: var(--lazur-action-hover);
  border-color: var(--lazur-action-hover);
}
