/*
 * Contrato visual OfficeLaw — 03/08/2026
 * Aplicação autenticada. Tema claro principal, Inter na interface e Arial no documento.
 */

.app-shell {
  grid-template-columns: 178px minmax(0, 1fr);
  background: var(--bg);
  font-family: var(--font-sans);
}

.app-shell .sidebar {
  gap: 18px;
  padding: 24px 14px 18px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  color: var(--text);
  box-shadow: none;
}

.app-shell .sidebar-brand {
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 0 6px 20px;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
}

.app-shell .sidebar-brand-mark { order: 2; width: 43px; height: 43px; }
.app-shell .sidebar-brand-wordmark { order: 1; display: block; width: 78px; max-height: 13px; }
.app-shell .sidebar-close-button { position: absolute; top: 12px; right: 10px; }

.app-shell .nav { gap: 2px; overflow-y: auto; scrollbar-width: thin; }
.app-shell .nav-divider { margin: 7px 8px; border-color: var(--line-soft); }

.app-shell .nav button {
  position: relative;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell .nav button::before {
  left: -14px;
  width: 3px;
  border-radius: 0;
  background: transparent;
}

.app-shell .nav button:hover { background: var(--panel-hover); color: var(--text-strong); }
.app-shell .nav button.active { background: var(--accent-soft); color: var(--accent-strong); }
.app-shell .nav button.active::before { background: var(--accent); }
.app-shell .nav button i { font-size: 18px; }

.app-shell .sidebar-footer { gap: 9px; padding: 14px 4px 0; border-top: 1px solid var(--line-soft); }
.app-shell .workspace-identity { display: none; }
.app-shell .profile-identity { padding: 8px; border: 0; background: transparent; color: var(--text); }
.app-shell .profile-identity strong { color: var(--text); }
.app-shell .profile-identity small { color: var(--muted); }
.app-shell .profile-avatar, .app-shell .topbar-avatar {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid transparent;
}
.app-shell .sidebar-logout { justify-content: flex-start; color: var(--muted); }
.app-shell .sidebar-logout:hover { background: var(--panel-hover); color: var(--text-strong); }
.app-shell .shell-scrim { background: rgba(17, 24, 39, .44) !important; color: transparent !important; backdrop-filter: blur(2px); }

.app-shell .content { background: var(--bg); }
.app-shell .topbar {
  min-height: 72px;
  grid-template-columns: auto minmax(120px, 1fr) minmax(280px, 360px) auto;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
}

.shell-workspace-button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 216px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font: 500 12px/1 var(--font-sans);
  text-align: left;
}
.shell-workspace-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-current-date { justify-self: center; color: var(--muted); font-size: 12px; white-space: nowrap; }

.app-shell .shell-search {
  grid-column: auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: none;
}
.app-shell .shell-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.app-shell .shell-search input { font-size: 12px; }
.app-shell .shell-utility-button { display: none; }
.app-shell .shell-theme-toggle { gap: 2px; border-color: var(--line); background: var(--panel); }
.app-shell .shell-theme-toggle button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 11px;
}
.app-shell .shell-theme-toggle button.active { background: var(--accent-soft); color: var(--accent-strong); }

.app-shell .content-body { width: 100%; max-width: none; margin: 0; padding: 30px 28px 48px; }
.app-shell .page-heading { margin-bottom: 20px; }
.app-shell .page-heading .eyebrow { display: none; }
.app-shell .page-heading h1 {
  margin: 0;
  color: var(--text-strong);
  font: 600 clamp(27px, 2vw, 36px)/1.1 var(--font-sans);
  letter-spacing: -.03em;
}
.app-shell .page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.app-shell #view-root { gap: 16px; }

.app-shell :where(.panel, .card, .nested-panel) {
  border-color: var(--line);
  box-shadow: none;
}
.app-shell :where(.panel, .card) { border-radius: 5px; }
.app-shell button, .app-shell .btn {
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.app-shell button:not(.secondary, .danger, .shell-icon-button, .nav button, .sidebar-logout, .today-ledger-footer, .shell-workspace-button, .shell-search-submit, .shell-theme-toggle button) {
  background: var(--accent);
  color: #fff;
}
.app-shell button.secondary, .app-shell .btn.secondary { border-color: var(--line-strong); background: var(--panel); color: var(--text); }
.app-shell button.secondary:hover, .app-shell .btn.secondary:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.app-shell :where(input, select, textarea) { border-radius: 4px; border-color: var(--line); background: var(--panel); font-family: var(--font-sans); }
.app-shell :where(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.app-shell .eyebrow { font-family: var(--font-sans); font-weight: 600; letter-spacing: .08em; }
.app-shell .tag { border-radius: 999px; font-family: var(--font-sans); letter-spacing: 0; text-transform: none; }

/* Dashboard */
.app-shell[data-current-view="dashboard"] .page-heading { margin-bottom: 18px; }
.app-shell[data-current-view="dashboard"] .page-heading h1 { max-width: 820px; }
.app-shell[data-current-view="dashboard"] .page-heading p { font-size: 14px; }

.dashboard-signal-row { display: flex; gap: 24px; align-items: center; margin: 0 0 20px; }
.dashboard-signal {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.dashboard-signal + .dashboard-signal { padding-left: 28px; border-left: 1px solid var(--line-soft); }
.dashboard-signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dashboard-signal-dot.critical { background: var(--danger); }
.dashboard-filter-trigger { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; min-height: 34px; }

.today-workspace { grid-template-columns: minmax(0, 1fr) minmax(280px, 22vw); gap: 28px; }
.today-ledger { border: 0; border-radius: 0; background: transparent; }
.today-ledger::before { content: "Mesa de hoje"; display: block; margin: 0 0 16px; color: var(--text-strong); font: 600 20px/1.2 var(--font-sans); }
.today-ledger-head, .today-row { grid-template-columns: 94px minmax(165px, 1.05fr) minmax(190px, 1.45fr) minmax(120px, .8fr) 70px; }
.today-ledger-head { min-height: 38px; padding: 0 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.today-row { min-height: 78px; padding: 11px 6px; border-bottom: 1px solid var(--line-soft); background: transparent; }
.today-row:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.today-priority { gap: 8px; color: var(--text); }
.today-priority strong { font-size: 13px; }
.today-status-dot { flex: 0 0 9px; width: 9px; height: 9px; }
.today-process strong, .today-task strong, .today-owner strong { color: var(--text); font-size: 12px; font-weight: 500; }
.today-process small, .today-task small, .today-owner small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.today-action { justify-content: flex-end; }
.today-action button, .today-primary-action { min-height: 34px; padding: 0; border: 0; background: transparent !important; color: var(--accent-strong) !important; font-size: 12px; }
.today-ledger-footer { justify-content: flex-start; gap: 7px; min-height: 48px; padding: 0 6px; border: 0; background: transparent; color: var(--accent-strong); }

.today-agenda { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.today-agenda-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; }
.today-agenda-head h2 { margin: 0; font-size: 20px; }
.today-agenda-head span { color: var(--muted); font-size: 11px; }
.today-agenda-list { display: grid; gap: 0; }
.today-agenda-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent !important; text-align: left; color: var(--text) !important; }
.today-agenda-item:first-child { padding-top: 0; }
.today-agenda-time { color: var(--accent-strong); font-size: 15px; }
.today-agenda-copy { padding-left: 14px; border-left: 1px solid var(--line); }
.today-agenda-copy strong { display: block; font-size: 12px; }
.today-agenda-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.today-agenda-footer { display: inline-flex; gap: 7px; align-items: center; margin-top: 22px; border: 0; background: transparent !important; color: var(--accent-strong) !important; padding: 0; }

.dashboard-expanded { border-color: var(--line); }
.dashboard-expanded > summary { font-family: var(--font-sans); }

/* Processos */
.records-commandbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 14px; margin-bottom: 6px; }
.records-search { position: relative; }
.records-search i { position: absolute; left: 15px; top: 50%; z-index: 1; transform: translateY(-50%); color: var(--muted); font-size: 19px; }
.records-search input { width: 100%; min-height: 46px; padding-left: 46px; }
.records-filter-button { display: inline-flex; gap: 9px; align-items: center; }
.records-filter-count { min-width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; }
.records-split { display: grid; grid-template-columns: minmax(0, 1fr) 370px; min-height: 560px; border-top: 1px solid var(--line); }
.records-list-pane { min-width: 0; padding-right: 24px; }
.records-quick-pane { min-width: 0; padding: 14px 0 0 34px; border-left: 1px solid var(--line); }
.records-table-head, .records-table-row { display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .85fr) 116px; gap: 20px; align-items: center; }
.records-table-head { min-height: 46px; padding: 0 14px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.records-table-row { position: relative; min-height: 91px; padding: 14px; border-top: 1px solid var(--line-soft); cursor: pointer; outline: none; }
.records-table-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; }
.records-table-row:hover { background: var(--panel-hover); }
.records-table-row.selected { background: var(--accent-soft); }
.records-table-row.selected::before { background: var(--accent); }
.records-table-row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.records-primary { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.records-primary i { margin-top: 2px; color: var(--muted); font-size: 20px; }
.records-primary strong { display: block; overflow: hidden; color: var(--text-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.records-primary small, .records-court small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.records-court strong { font-size: 11px; font-weight: 500; }
.records-deadline { justify-self: end; font-size: 11px; }
.records-deadline.danger { color: var(--danger); }
.records-deadline.success { color: var(--success); }
.records-deadline.neutral { color: var(--muted); }
.records-quick-header { margin-bottom: 24px; }
.records-quick-header h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.records-quick-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.records-quick-list { display: grid; gap: 0; margin: 0; }
.records-quick-item { display: grid; grid-template-columns: 22px 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.records-quick-item i { color: var(--muted); font-size: 17px; }
.records-quick-item > div { min-width: 0; }
.records-quick-label { display: block; color: var(--text); font-size: 11px; font-weight: 600; }
.records-quick-value { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.records-quick-actions { display: flex; gap: 10px; margin-top: 26px; }
.records-pagination { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.records-pagination .pagination { gap: 12px; margin-top: 0; color: var(--muted); font-size: 11px; }

/* Dra. Law */
.app-shell[data-current-view="draLaw"] .content-body { max-width: none; padding: 22px 24px 86px; }
.app-shell[data-current-view="draLaw"] .topbar { display: none; }
.app-shell[data-current-view="draLaw"] .page-heading { display: none; }
.app-shell[data-current-view="draLaw"] #view-root { gap: 12px; }
.dra-law-editor-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.dra-law-editor-breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 11px; }
.dra-law-editor-breadcrumb strong { color: var(--text); font-size: 12px; }
.dra-law-editor-reference { margin-top: 7px; color: var(--text-strong); font-size: 14px; font-weight: 600; }
.dra-law-editor-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.dra-law-editor-actions button { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 0 11px; border: 0; background: transparent !important; color: var(--text) !important; }
.dra-law-editor-actions button + button { border-left: 1px solid var(--line-soft); border-radius: 0; }
.dra-law-station { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dra-law-station > .dra-law-sidebar { display: none; }
.dra-law-station.context-open > .dra-law-sidebar { display: block; position: fixed; z-index: 480; inset: 82px 0 0 auto; width: min(440px, 94vw); overflow: auto; padding: 16px; border-radius: 0; box-shadow: -18px 0 50px rgba(17,24,39,.13); }
.dra-law-workspace { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: transparent; }
.dra-law-workspace > .section-title { display: none; }
#dra-law-conversation-shell { order: 1; }
.dra-law-composer-disclosure { order: 2; margin-top: 4px; border-top: 1px solid var(--line); }
.dra-law-composer-disclosure > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 12px; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600; }
.dra-law-composer-disclosure > summary small { color: var(--muted); font-weight: 400; }
.dra-law-composer-card { padding: 12px; }
.dra-law-conversation-panel { display: flex; min-width: 0; flex-direction: column; gap: 12px; padding: 0; border: 0; background: transparent; }
.dra-law-conversation-panel > .section-title,
.dra-law-conversation-panel > .empty { display: none; }
.dra-law-draft-editor { order: 1; width: 100%; min-width: 0; max-width: 1120px; margin: 0 auto; padding: 0; border: 0; background: transparent; }
.dra-law-attachments-strip, .dra-law-draft-history-strip { order: 3; max-width: 1120px; width: 100%; margin: 0 auto; }
.dra-law-draft-history-strip { display: none; }
.dra-law-draft-history-strip.is-open { display: grid; }
.dra-law-legal-research { order: 4; max-width: 1120px; width: 100%; margin: 0 auto; }
.dra-law-message-list { order: 5; max-width: 1120px; width: 100%; margin: 0 auto; }
.dra-law-draft-editor > header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}
.dra-law-draft-editor > label { display: none; }
.dra-law-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  min-height: 48px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}
.dra-law-editor-toolbar button { min-height: 32px; border: 0; background: transparent !important; color: var(--text) !important; font-size: 11px; }
.dra-law-toolbar-label { padding: 0 8px; color: var(--muted); font-size: 11px; }
.dra-law-editor-toolbar .toolbar-separator { width: 1px; height: 22px; margin: 0 6px; background: var(--line); }
.dra-law-editor-ruler { height: 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--panel); }
.dra-law-paper-stage { position: relative; padding: 28px; border: 1px solid var(--line); background: var(--panel-muted); overflow: auto; }
.dra-law-paper {
  box-sizing: border-box;
  width: min(794px, 100%);
  min-height: 1123px;
  margin: 0 auto;
  padding: 82px 88px;
  border: 1px solid #dedede;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 18px rgba(17,24,39,.07);
  font: 14px/1.58 var(--font-document);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  outline: none;
}
.dra-law-paper:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 18px rgba(17,24,39,.07); }
#dra-law-versioned-editor { display: none; }
.dra-law-editor-statusbar { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-top: 0; background: var(--panel); color: var(--muted); font-size: 10px; }
.dra-law-editor-statusbar strong { color: var(--success); }
.dra-law-selection-actions { position: fixed; z-index: 520; display: none; gap: 0; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: var(--shadow-medium); }
.dra-law-selection-actions.open { display: flex; }
.dra-law-selection-actions button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 0; background: transparent !important; color: var(--accent-strong) !important; font-size: 10px; }
.dra-law-selection-actions button + button { border-left: 1px solid var(--line-soft); }
.dra-law-quick-prompt {
  position: fixed;
  z-index: 40;
  right: max(24px, calc((100vw - 178px - 1120px) / 2 + 18px));
  bottom: 14px;
  left: max(202px, calc(178px + (100vw - 178px - 1120px) / 2 + 18px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .10);
}
.dra-law-quick-prompt strong { font-size: 10px; white-space: nowrap; }
.dra-law-quick-prompt input { min-height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 11px; }
.dra-law-quick-prompt input:focus { border: 0; box-shadow: none; }
.dra-law-quick-prompt button { min-width: 34px; min-height: 34px; padding: 0; }
.dra-law-draft-editor .form-actions { position: sticky; bottom: 0; z-index: 8; justify-content: flex-end; padding: 12px 14px; border: 1px solid var(--line); border-top: 0; background: color-mix(in srgb, var(--panel) 96%, transparent); }
.dra-law-operational-disclosure { margin-top: 16px; }

[data-theme-resolved="dark"] .app-shell .sidebar { background: #0d1015; }
[data-theme-resolved="dark"] .dra-law-paper { border-color: #c9c9c9; background: #fdfdfd; color: #111; }

@media (max-width: 1180px) {
  .app-shell .topbar { grid-template-columns: auto minmax(120px, 1fr) minmax(220px, 320px) auto; gap: 14px; }
  .shell-current-date { display: none; }
  .today-workspace { grid-template-columns: 1fr; }
  .today-agenda { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .today-agenda-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .today-agenda-item { grid-template-columns: 46px 1fr; }
  .records-split { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 960px) {
  .app-shell { display: block; }
  .app-shell .sidebar { width: 230px; }
  .app-shell .topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 18px; }
  .shell-workspace-button { min-width: 0; width: 100%; }
  .shell-current-date, .app-shell .shell-search { display: none; }
  .app-shell .content-body { padding: 26px 20px 44px; }
  .records-split { grid-template-columns: 1fr; }
  .records-list-pane { padding-right: 0; }
  .records-quick-pane { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dra-law-paper-stage { padding: 14px; }
  .dra-law-paper { min-height: 900px; padding: 64px 56px; }
}

@media (max-width: 720px) {
  .app-shell .topbar { min-height: 64px; gap: 10px; padding: 0 12px; }
  .shell-workspace-button { min-height: 38px; padding: 0 9px; }
  .shell-workspace-button span { max-width: 150px; }
  .app-shell .shell-theme-toggle { display: flex; }
  .app-shell .shell-theme-toggle button { min-width: 32px; padding: 0; }
  .app-shell .shell-theme-toggle button span { display: none; }
  .app-shell .content-body { padding: 22px 14px 42px; }
  .app-shell .page-heading h1 { font-size: 28px; }
  .dashboard-signal-row { gap: 14px; flex-wrap: wrap; }
  .dashboard-signal + .dashboard-signal { padding-left: 14px; }
  .today-ledger-head { display: none; }
  .today-row { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; min-height: 0; padding: 18px 2px; }
  .today-task { grid-column: 2 / -1; }
  .today-owner { grid-column: 2; }
  .today-action { grid-column: 3; grid-row: 1; }
  .today-agenda-list { grid-template-columns: 1fr; gap: 0; }
  .records-commandbar { grid-template-columns: 1fr auto; }
  .records-commandbar .records-primary-button { grid-column: 1 / -1; grid-row: 2; }
  .records-table-head { display: none; }
  .records-table-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
  .records-court { grid-column: 1; padding-left: 38px; }
  .records-deadline { grid-column: 2; grid-row: 1; }
  .records-quick-actions { flex-direction: column; }
  .app-shell[data-current-view="draLaw"] .content-body { padding: 12px 8px 76px; }
  .dra-law-editor-header { grid-template-columns: 1fr; padding: 8px 8px 12px; }
  .dra-law-editor-actions { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .dra-law-conversation-panel > .section-title { align-items: flex-start; }
  .dra-law-paper-stage { padding: 0; border-left: 0; border-right: 0; }
  .dra-law-paper { width: 100%; min-height: 740px; padding: 44px 26px; border-left: 0; border-right: 0; box-shadow: none; font-size: 13px; }
  .dra-law-editor-toolbar { overflow-x: auto; flex-wrap: nowrap; }
  .dra-law-selection-actions { right: 8px !important; left: 8px !important; bottom: 12px; top: auto !important; overflow-x: auto; }
  .dra-law-quick-prompt { right: 8px; bottom: 8px; left: 8px; grid-template-columns: minmax(0, 1fr) 34px; }
  .dra-law-quick-prompt strong { display: none; }
  .dra-law-draft-editor .form-actions { justify-content: stretch; }
  .dra-law-draft-editor .form-actions button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *, .app-shell *::before, .app-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
