.entry-symbols { position: absolute; width: 0; height: 0; pointer-events: none; }
.entry-hero, .entry-prompts { display: none; }
html[data-design="classic"] :is(.entry-poster, .workspace-name) { display: none; }

:where(html:not([data-design="classic"])) {
  body #auth-dlg[open] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    color: var(--text);
    overflow: auto;
    font: 15px/1.5 var(--font);
  }
  .entry-poster {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 52px;
    background: #b8d4b6;
    color: #18392e;
  }
  .entry-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 640; letter-spacing: -1px; }
  .entry-brand svg { width: 28px; height: 25px; }
  .entry-art { display: block; width: 72%; max-height: 40dvh; margin: 0 auto; color: #234e3c; }
  .entry-caption, #auth-dlg h2, .entry-hero h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.08;
  }
  .entry-caption { font-size: clamp(26px, 3vw, 40px); margin-bottom: 15px; }
  .entry-form { margin: auto; padding: 32px 0; width: min(365px, 82%); }
  #auth-dlg h2 { margin: 0 0 22px; font-size: 32px; }
  #auth-dlg .field { display: block; margin: 16px 0 0; }
  #auth-dlg .field[hidden] { display: none; }
  #auth-dlg label { display: block; margin: 0 0 6px; color: var(--text); font-size: 15px; }
  #auth-dlg input { width: 100%; padding: 12px; font: inherit; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: var(--panel2); }
  #auth-dlg #a-err:empty { display: none; }
  #auth-dlg #a-err { margin-top: 12px; }
  #auth-dlg button { width: 100%; padding: 11px 18px; border-radius: 9px; font: 600 15px/1.5 var(--font); cursor: pointer; }
  #auth-dlg .actions { display: block; margin: 0; }
  #auth-dlg #a-login { margin-top: 24px; border: 0; background: var(--accent2); color: var(--bg); }
  #auth-dlg #a-register { margin-top: 4px; border: 0; background: transparent; color: var(--dim); font-weight: 400; }
  #auth-dlg :is(button, input):focus-visible, .entry-prompts button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

  #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) #chat-viewport { flex: 0 0 0; overflow: hidden; }
  #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) #inputbar {
    margin: auto 0;
    max-height: 100%;
    overflow-y: auto;
    background: transparent;
    border: 0;
  }
  #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) .entry-hero { display: block; }
  .entry-hero svg { width: 36px; height: 32px; color: var(--accent2); }
  .entry-hero h2 { font-size: 32px; margin: 10px 0 14px; color: var(--text); }
  #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) .entry-prompts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 7px; }
  .entry-prompts button { font: 13px/1.4 var(--font); border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
  .entry-prompts button:hover { background: var(--hover-bg); }

  @media (max-width: 700px) {
    body #auth-dlg[open] { display: block; height: var(--app-height, 100dvh); }
    .entry-poster { padding: max(25px, env(safe-area-inset-top)) 25px 15px; }
    .entry-caption, .entry-art g, .entry-hero svg { display: none; }
    .entry-art { width: 116px; height: 88px; margin: 0 0 0 auto; }
    .entry-form { width: auto; margin: 12px 24px; padding: 12px 0 24px; }
    #auth-dlg h2 { font-size: 27px; margin-bottom: 16px; }
    .entry-hero h2 { font-size: 27px; margin: 10px 0 12px; }
    #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) .entry-prompts { gap: 7px; }
    .entry-prompts button { min-height: 44px; }
  }
  @media (max-width: 700px) {
    #chatcol:has(#chat:empty):not(:has(.chat-loading-panel, #swallow-jobs:not(:empty), #swallow-jobs[data-swallow-error])) #inputbar { padding-inline: 22px; }
  }

  .chat-header .workspace-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
