:root {
  --page: #f3f3ef;
  --surface: #ffffff;
  --surface-soft: #f7f7f4;
  --ink: #050505;
  --muted: #666666;
  --line: #d8d8d2;
  --line-strong: #141414;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter Tight", "Segoe UI", sans-serif;
}

body.auth-checking .page-shell {
  visibility: hidden;
}

.auth-gate {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

body.auth-checking .auth-gate {
  display: flex;
}

.auth-gate-card {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-gate-logos {
  justify-content: center;
}

.auth-gate-card h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.auth-gate-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.page-shell {
  width: min(1460px, calc(100% - 160px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.brand-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag,
.status-text,
.column-kind {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: auto;
  height: 56px;
  margin: 0;
}

.brand-logo-dept {
  height: 44px;
}

.brand-logo-openai {
  height: 44px;
}

.brand-kicker {
  margin: 0;
  justify-self: center;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
}

.selected-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(220px, 0.78fr) minmax(460px, 1.42fr) minmax(220px, 0.78fr);
  gap: 16px;
  padding-top: 16px;
}

.app-grid > * {
  min-width: 0;
}

.hero-panel {
  grid-row: span 2;
  min-height: 100%;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(160deg, #050505 0%, #0f0f0f 72%, #171717 100%);
  color: #ffffff;
  border-radius: 28px;
  display: grid;
  align-content: start;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.7;
}

.eyebrow {
  margin: 0 0 20px;
  color: #bdbdbd;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-panel h1,
.panel-heading h2,
.results-header h2,
.subpanel-header h3,
.request-actions .response-header h3,
.response-header h3,
.group-header h3 {
  margin: 0;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(1.2rem, 1.8vw, 2.05rem);
  position: relative;
  z-index: 1;
}

.panel-heading h2,
.results-header h2 {
  font-size: clamp(1.38rem, 1.5vw, 1.62rem);
  white-space: nowrap;
}

.hero-copy {
  max-width: 40ch;
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.45;
  color: #d9d9d9;
  position: relative;
  z-index: 1;
}

.policy-block {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 6px;
}

.policy-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.83rem;
}

.policy-row:first-child {
  border-top: 0;
}

.policy-label {
  font-family: "Inter Tight", "Segoe UI", sans-serif;
  font-weight: 650;
  color: #ffffff;
}

.hero-note {
  color: #bdbdbd;
  line-height: 1.5;
}

.hero-note p {
  margin: 10px 0 0;
}

.hero-note p:first-child {
  margin-top: 0;
}

.hero-note-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-note-list li {
  position: relative;
  padding-left: 14px;
}

.hero-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-note a,
.dictionary-note-block a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.section-tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-panel .section-tag {
  color: #bdbdbd;
}

.control-panel,
.results-panel,
.filters-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.results-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.filters-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.request-actions {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(400px, 1fr);
  gap: 12px 18px;
  align-items: start;
  align-content: start;
  justify-content: stretch;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.auth-panel-top {
  width: 100%;
  margin: 0 0 16px;
}

.panel-heading,
.results-header {
  display: grid;
  gap: 0;
  min-height: 54px;
}

.panel-heading p:last-child,
.results-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.filters-panel .subpanel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-top: 0;
}

.filters-panel .subpanel-header > div {
  display: grid;
  gap: 0;
  min-height: 54px;
}

.filters-panel .subpanel-header h3,
.request-actions .response-header h3 {
  font-size: clamp(1.34rem, 1.5vw, 1.52rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.panel-heading .section-tag,
.results-header .section-tag,
.filters-panel .subpanel-header .section-tag {
  margin-bottom: -2px;
}

.request-actions > .response-header .section-tag {
  margin-bottom: 6px;
}

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 12px;
  margin-top: -30px;
}

.results-panel .status-text {
  margin-top: -6px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.control-panel label[for="dataset"] {
  margin-top: 16px;
}

.selector-grid label[for="startDate"],
.selector-grid label[for="endDate"] {
  min-width: 0;
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.controlled-filter-grid {
  min-height: 48px;
}

.platform-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.platform-option:hover {
  transform: translateY(-1px);
}

.platform-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.platform-option:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 560;
}

input[type="date"] {
  padding-right: 48px;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-date-and-time-value {
  font-size: 0.88rem;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8b8b8b;
}

#requestEmail {
  font-size: 0.96rem;
  padding-right: 56px;
}

#requestEmail::placeholder {
  font-size: 0.66rem;
  letter-spacing: -0.01em;
}

#dataset {
  padding: 11px 14px;
  min-height: 56px;
  border-radius: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 0, 0, 0.18);
  outline-offset: 2px;
  border-color: var(--line-strong);
}

.button-stack {
  display: grid;
  gap: 10px;
}

.action-stack .btn {
  width: 100%;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  font-weight: 700;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  min-height: 66px;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(5, 5, 5, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: #222222;
  box-shadow: 0 16px 32px rgba(5, 5, 5, 0.22);
}

.btn-secondary,
.btn-ghost {
  background: var(--surface-soft);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled),
.btn-ghost:hover:not(:disabled) {
  border-color: var(--line-strong);
}

#addFilterBtn {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.btn-remove {
  background: #ffffff;
}

.status-text {
  padding: 11px 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.status-muted {
  color: var(--muted);
  background: var(--surface-soft);
}

.status-info,
.status-success,
.status-warning,
.status-danger {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  color: var(--ink);
}

.selection-topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 2px;
}

.results-panel .status-text {
  justify-self: start;
  width: auto;
  max-width: 420px;
  font-size: 0.74rem;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-items: center;
  max-width: none;
}

.toolbar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  align-self: stretch;
}

.toolbar input {
  min-height: 62px;
  width: 100%;
}

.toolbar .btn {
  width: 100%;
  white-space: nowrap;
  padding: 11px 14px;
  font-size: 0.92rem;
  min-height: 62px;
}

.column-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  min-height: 100%;
}

.column-group,
.response-block {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
}

.column-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
}

.group-header {
  padding: 14px 16px 0;
}

.group-header h3,
.subpanel-header h3,
.response-header h3 {
  font-size: 1.08rem;
}

.request-actions > .response-header h3 {
  font-size: clamp(1.48rem, 1.65vw, 1.72rem);
}

.request-actions .response-block .response-header h3 {
  font-size: 1.1rem;
}

.checkbox-list {
  padding: 10px;
  display: grid;
  gap: 8px;
  min-height: 100%;
  max-height: 620px;
  overflow-y: auto;
  min-width: 0;
}

.metrics .checkbox-list {
  padding-right: 8px;
}

.metric-section {
  display: grid;
  gap: 8px;
}

.metric-section + .metric-section {
  margin-top: 8px;
}

.metric-section-header {
  padding: 4px 2px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-section-list {
  display: grid;
  gap: 8px;
}

.checkbox-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  width: 100%;
}

.checkbox-item:has(input:checked) {
  border-color: var(--line-strong);
  background: #fcfcfa;
}

.checkbox-item:hover {
  transform: translateY(-1px);
}

.checkbox-item input {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.checkbox-item input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.checkbox-item input:checked::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: 0.88rem;
  line-height: 1.24;
  word-break: break-word;
}

.checkbox-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.column-kind {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.empty-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.subpanel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.subpanel-header > div {
  min-width: 0;
}

.subpanel-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
  max-width: 24ch;
  white-space: nowrap;
}

.filters-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  min-height: 100%;
  height: 100%;
  align-content: start;
}

.request-actions .response-header {
  grid-column: 1 / -1;
  margin: 0;
}

.request-actions-left,
.request-actions .response-block {
  align-self: start;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-soft);
  align-items: center;
}

.auth-copy {
  display: grid;
  gap: 6px;
}

.auth-copy strong {
  font-size: 1.22rem;
  line-height: 1.05;
  color: var(--ink);
}

.auth-status-text {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.requester-identity-value {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
}

.request-actions-left {
  min-width: 0;
  display: grid;
  gap: 14px;
  grid-column: 1;
}

.request-actions-left .field,
.request-actions-left .btn-primary {
  min-width: 0;
}

.request-actions-left .btn-primary {
  min-width: 0;
  min-height: 84px;
  margin-top: 8px;
  height: auto;
  align-self: start;
  max-width: 100%;
  width: 100%;
  justify-self: stretch;
}

.request-actions .response-block {
  min-width: 0;
  grid-column: 2;
  max-width: 760px;
  width: 100%;
  align-self: stretch;
  justify-self: center;
}

.filter-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  min-width: 0;
}

.filter-row .filter-logic,
.filter-row .filter-operator,
.filter-row .filter-field,
.filter-row .filter-value-wrap,
.filter-row .filter-value,
.filter-row .btn {
  width: 100%;
}

.filter-row select,
.filter-row input {
  min-width: 0;
  background: #ffffff;
}

.filter-row .filter-value-select {
  min-height: 220px;
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-x: auto;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
}

.filter-row .filter-value-input {
  min-height: 58px;
}

.filter-row .filter-value-select option {
  white-space: nowrap;
}

.filter-row .btn {
  white-space: nowrap;
  justify-self: stretch;
}

.response-block {
  padding: 12px 18px 8px;
  min-height: 112px;
}

.response-header {
  margin-bottom: 12px;
}

.result {
  margin: 0;
  min-height: 132px;
  max-height: 180px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-link {
  margin-top: 10px;
}

.result-link a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.result.summary-state {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-top: 8px;
  padding-bottom: 8px;
}

.result-summary {
  display: grid;
  gap: 6px;
}

.summary-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.summary-label {
  color: var(--muted);
  font-weight: 700;
}

.summary-value {
  color: var(--ink);
}

.summary-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.result.empty {
  color: var(--muted);
}

.result.info,
.result.success,
.result.warning,
.result.danger {
  border-color: var(--line-strong);
}

.result-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.helper-text,
.text-muted {
  color: var(--muted);
}

.dictionary-shell {
  width: min(1520px, calc(100% - 96px));
}

.dictionary-grid {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.dictionary-hero {
  min-height: auto;
}

.dictionary-panel,
.dictionary-table-section {
  min-width: 0;
}

.dictionary-card-stack {
  display: grid;
  gap: 12px;
}

.dictionary-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.dictionary-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dictionary-card p,
.dictionary-note-block p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.dictionary-wide-panel {
  grid-column: span 2;
}

.dictionary-table-wrap {
  overflow-x: auto;
}

.dictionary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.dictionary-table th,
.dictionary-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dictionary-table thead th {
  border-top: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dictionary-table tbody td {
  font-size: 0.9rem;
  line-height: 1.45;
}

.dictionary-note-block {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.dictionary-note-card {
  max-width: none;
}

.dictionary-back-link {
  text-decoration: none;
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1480px) {
  .page-shell {
    width: min(100% - 44px, 1520px);
  }

  .app-grid {
    grid-template-columns: minmax(210px, 0.7fr) minmax(210px, 0.76fr) minmax(420px, 1.34fr) minmax(220px, 0.78fr);
  }

  .selection-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .request-actions {
    grid-column: 2 / 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-actions .response-header {
    grid-column: 1 / -1;
  }

  .request-actions .response-block {
    grid-column: 1 / -1;
  }

  .dictionary-wide-panel {
    grid-column: auto;
  }
}

@media (max-width: 1380px) {
  .column-groups {
    grid-template-columns: 1fr;
  }

  .checkbox-list {
    max-height: 540px;
  }
}

@media (max-width: 1180px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .request-actions,
  .selection-topbar,
  .selector-grid,
  .column-groups {
    grid-template-columns: 1fr;
  }

  .request-actions {
    grid-column: auto;
  }

  .hero-panel h1 {
    max-width: 12ch;
  }

  .hero-panel {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding: 16px 0 28px;
  }

  .dictionary-shell {
    width: min(100% - 20px, 1280px);
  }

  .brand-bar,
  .hero-panel,
  .control-panel,
  .results-panel,
  .filters-panel,
  .request-actions {
    padding: 20px;
  }

  .brand-bar,
  .subpanel-header,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-actions {
    width: 100%;
  }

  .auth-actions .btn {
    width: 100%;
  }

  .brand-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .brand-logo-wrap {
    align-items: center;
  }

  .brand-kicker {
    justify-self: start;
    text-align: left;
  }

  .selection-topbar,
  .selector-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
