@font-face {
  font-family: "Montserrat";
  src: url("/calc/fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  color-scheme: light;
  --text: #17212b;
  --muted: #60707e;
  --line: rgba(255, 255, 255, 0.5);
  --glass: rgba(255, 255, 255, 0.32);
  --glass-strong: rgba(255, 255, 255, 0.48);
  --accent: #2f6578;
  --accent-strong: #183c4a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(244, 249, 251, 0.94), rgba(222, 234, 239, 0.86)),
    radial-gradient(circle at 20% 18%, rgba(107, 154, 170, 0.22), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(154, 178, 161, 0.2), transparent 28%),
    #eef4f6;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.hero-panel {
  width: min(1040px, 100%);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: 0 26px 70px rgba(38, 56, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(130%);
}

.hero-panel.narrow {
  width: min(760px, 100%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(47, 101, 120, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: var(--accent-strong);
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

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

.project-card,
.placeholder-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 38px rgba(38, 56, 68, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(125%);
}

.project-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(47, 101, 120, 0.46);
  background: rgba(255, 255, 255, 0.48);
  outline: none;
}

.project-card.primary {
  background: rgba(255, 255, 255, 0.5);
}

.card-kicker {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 101, 120, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 760;
}

.project-card strong {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.project-card span:last-child,
.placeholder-panel p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.placeholder-panel {
  padding: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--accent-strong);
  font-weight: 780;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.hidden {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.lawgtp-shell {
  min-height: 100vh;
  padding: 32px;
}

.lawgtp-login {
  width: min(720px, 100%);
  margin: max(4vh, 24px) auto;
}

.compact-brand {
  margin-bottom: 0;
}

.lawgtp-login h1,
.lawgtp-app h1 {
  font-size: clamp(28px, 4vw, 48px);
}

.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 16px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 38px rgba(38, 56, 68, 0.1);
}

.login-panel > p,
.login-panel .form-message,
.login-panel .back-link {
  grid-column: 1 / -1;
}

.login-panel > p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.55;
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.login-panel input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(47, 101, 120, 0.2);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.login-panel input:focus {
  border-color: rgba(47, 101, 120, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 101, 120, 0.1);
}

.action-button,
.ghost-button,
.copy-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(47, 101, 120, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.action-button {
  border-color: transparent;
  background: var(--accent-strong);
  color: white;
}

.action-button:hover,
.ghost-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 101, 120, 0.45);
}

.form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.error-message,
.detail-error {
  color: #9a3d3d;
}

.lawgtp-app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

.lawgtp-header,
.section-heading,
.card-title-row,
.lawgtp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.user-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(47, 101, 120, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 720;
}

.section-menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 28px;
}

.section-menu.four-items {
  grid-template-columns: repeat(4, 1fr);
}

.menu-button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 3px 11px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
  cursor: pointer;
}

.menu-button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: rgba(24, 60, 74, 0.4);
  font-size: 12px;
  font-weight: 820;
}

.menu-button strong {
  font-size: 14px;
}

.menu-button small {
  color: var(--muted);
  font-size: 11px;
}

.menu-button.active {
  border-color: rgba(47, 101, 120, 0.35);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(38, 56, 68, 0.1);
}

.content-section {
  display: none;
}

.content-section.active-section {
  display: block;
  animation: section-in 180ms ease-out;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(67, 133, 92, 0.12);
  color: #275e3b;
  font-size: 12px;
  font-weight: 760;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f8e5d;
  box-shadow: 0 0 0 4px rgba(63, 142, 93, 0.12);
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.content-card,
.step-card,
.notice-panel,
.empty-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 32px rgba(38, 56, 68, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.content-card {
  padding: 20px;
}

.content-card h3,
.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.content-card > p,
.step-card p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.copy-field {
  display: flex;
  align-items: stretch;
  gap: 9px;
  margin-top: 18px;
}

.copy-field code,
.code-block {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(47, 101, 120, 0.14);
  border-radius: 12px;
  background: rgba(24, 60, 74, 0.06);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.copy-field code {
  flex: 1;
  padding: 12px 13px;
}

.limits-card dl {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.limits-card dl > div {
  display: grid;
  gap: 2px;
}

.limits-card dt {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 760;
}

.limits-card dd,
.soft-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.formats-card {
  margin-top: 16px;
}

.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.format-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 101, 120, 0.09);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.steps-list {
  display: grid;
  gap: 12px;
}

.scenario-intro {
  margin-bottom: 14px;
}

.scenario-outcomes {
  margin-top: 16px;
}

.scenario-outcomes .notice-panel {
  margin-top: 0;
}

.step-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px;
}

.step-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(47, 101, 120, 0.12);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.example-card,
.notice-panel {
  margin-top: 14px;
}

.code-block {
  display: block;
  margin-top: 12px;
  padding: 14px;
}

.notice-panel {
  padding: 17px 20px;
  border-color: rgba(173, 132, 50, 0.2);
  background: rgba(250, 243, 219, 0.48);
}

.notice-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #705723;
  font-size: 13px;
}

.empty-panel {
  padding: 34px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

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

.journal-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.8fr) repeat(4, minmax(0, 1fr)) 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.3);
  text-align: left;
  cursor: pointer;
}

.journal-row:hover {
  border-color: rgba(47, 101, 120, 0.35);
  background: rgba(255, 255, 255, 0.52);
}

.journal-row > span:not(.receipt-state):not(.row-arrow),
.detail-meta > span,
.file-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.journal-row small,
.detail-meta small,
.file-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-row strong,
.detail-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.receipt-state > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.receipt-status,
.receipt-label i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.receipt-state.success .receipt-status,
.receipt-label.success i { background: #3f8e5d; }
.receipt-state.working .receipt-status,
.receipt-label.working i { background: #4f7f9d; }
.receipt-state.warning .receipt-status,
.receipt-label.warning i { background: #b47a24; }
.receipt-state.failure .receipt-status,
.receipt-label.failure i { background: #ae5151; }
.row-arrow { color: var(--muted); }

.detail-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.receipt-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 101, 120, 0.15);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 760;
}

.receipt-detail {
  margin-top: 16px;
}

.receipt-detail .eyebrow {
  margin-bottom: 5px;
}

.receipt-detail h3 {
  font-size: 21px;
}

.receipt-detail h4 {
  margin: 20px 0 10px;
  font-size: 13px;
}

.detail-error {
  margin: 12px 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(174, 81, 81, 0.08);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

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

.file-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(47, 101, 120, 0.055);
}

.file-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-strong);
  font-weight: 800;
}

.file-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.file-actions .action-button,
.file-actions .ghost-button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.file-row .anonymization-state {
  color: #4f7f9d;
  font-weight: 700;
}

.file-row .anonymization-state.ready {
  color: #3f7d55;
}

.file-row .anonymization-state.review_required,
.file-row .anonymization-state.error {
  color: #9a3d3d;
}

.file-row .detail-error {
  margin: 3px 0 0 !important;
  white-space: normal;
}

.lawgpt-inline-status.success {
  color: #31704b;
}

.lawgpt-inline-status.working {
  color: #396d89;
}

.lawgpt-inline-status.warning {
  color: #8a611f;
}

.lawgpt-inline-status.failure {
  color: #9a3d3d;
}

.lawgpt-inline-status.muted {
  color: var(--muted);
}

.lawgpt-result-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 101, 120, 0.14);
  border-left: 4px solid #4f7f9d;
  border-radius: 14px;
  background: rgba(47, 101, 120, 0.045);
}

.lawgpt-result-card.success {
  border-left-color: #3f8e5d;
  background: rgba(63, 142, 93, 0.055);
}

.lawgpt-result-card.warning {
  border-left-color: #b47a24;
  background: rgba(180, 122, 36, 0.055);
}

.lawgpt-result-card.failure {
  border-left-color: #ae5151;
  background: rgba(174, 81, 81, 0.055);
}

.lawgpt-result-card.muted {
  border-left-color: rgba(96, 112, 126, 0.45);
}

.lawgpt-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lawgpt-result-heading strong {
  font-size: 13px;
}

.lawgpt-result-heading small,
.lawgpt-question small,
.lawgpt-answer small,
.lawgpt-sources small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.lawgpt-question,
.lawgpt-answer {
  display: grid;
  gap: 6px;
}

.lawgpt-question p,
.lawgpt-answer p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.lawgpt-answer {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.lawgpt-sources ul {
  margin: 7px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.payload-details {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.payload-details summary {
  cursor: pointer;
  font-weight: 700;
}

.payload-details pre {
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(24, 60, 74, 0.06);
  color: var(--text);
  font-size: 11px;
  white-space: pre-wrap;
}

.lawgtp-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.lawgtp-footer .back-link {
  margin-top: 0;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.access-form {
  display: grid;
  align-content: start;
  gap: 13px;
}

.access-form > p {
  margin-bottom: 3px;
}

.access-form label:not(.check-line) {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.access-form input[type="text"],
.access-form input:not([type]) ,
.access-form input[type="password"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(47, 101, 120, 0.18);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.access-form input:focus {
  border-color: rgba(47, 101, 120, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 101, 120, 0.09);
}

.question-settings-card {
  display: grid;
  gap: 14px;
}

.question-settings-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.question-settings-card textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  border: 1px solid rgba(47, 101, 120, 0.18);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.question-settings-card textarea:focus {
  border-color: rgba(47, 101, 120, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 101, 120, 0.09);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-version-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.module-version-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(47, 101, 120, 0.12);
  color: var(--accent-strong);
  font-size: 25px;
  font-weight: 850;
}

.module-version-hero div {
  display: grid;
  gap: 4px;
}

.module-version-hero small,
.version-card-heading small {
  color: var(--muted);
}

.module-version-hero strong {
  font-size: 24px;
}

.module-version-hero p {
  margin: 2px 0 0;
  color: var(--muted);
}

.version-history {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.version-card.current-version {
  border-color: rgba(47, 101, 120, 0.38);
  box-shadow: 0 12px 28px rgba(38, 56, 68, 0.08);
}

.version-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-card-heading div {
  display: grid;
  gap: 3px;
}

.version-number {
  min-width: 66px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(47, 101, 120, 0.1);
  color: var(--accent-strong);
  text-align: center;
  font-weight: 800;
}

.version-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.version-change-grid > div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.version-change-grid strong {
  font-size: 12px;
}

.version-change-grid ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.check-line input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.access-users-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.access-user-row {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(47, 101, 120, 0.08);
  border-radius: 13px;
  background: rgba(47, 101, 120, 0.04);
}

.access-user-row.disabled-user {
  opacity: 0.55;
}

.access-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
}

.access-user-name {
  display: grid;
  min-width: 0;
}

.access-user-name strong,
.access-user-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-name strong {
  font-size: 12px;
}

.access-user-name small {
  color: var(--muted);
  font-size: 10px;
}

.access-role,
.global-lock {
  width: max-content;
  max-width: 170px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(47, 101, 120, 0.08);
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
}

.access-role.admin-role {
  background: rgba(47, 101, 120, 0.14);
  color: var(--accent-strong);
}

.global-lock {
  grid-column: 2 / -1;
  justify-self: end;
  margin-top: -7px;
  background: rgba(67, 133, 92, 0.1);
  color: #275e3b;
}

.access-row-actions {
  grid-column: 2 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-button {
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 9px;
}

.danger-button {
  color: #923d3d;
}

.review-warning {
  color: #8b5b1f !important;
  font-weight: 650;
}

.review-download-button {
  border-color: rgba(177, 113, 35, 0.32);
  color: #8b5b1f;
}

@media (max-width: 760px) {
  .portal-shell {
    padding: 18px;
  }

  .hero-panel {
    border-radius: 22px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .lawgtp-shell {
    padding: 14px;
  }

  .lawgtp-header,
  .section-heading {
    align-items: flex-start;
  }

  .lawgtp-header {
    flex-direction: column;
  }

  .header-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .login-panel,
  .integration-grid,
  .access-layout,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .module-version-hero {
    align-items: flex-start;
  }

  .version-change-grid {
    grid-template-columns: 1fr;
  }

  .login-panel .action-button {
    width: 100%;
  }

  .section-menu {
    grid-template-columns: 1fr;
  }

  .access-user-row {
    grid-template-columns: 38px 1fr;
  }

  .access-role {
    grid-column: 2;
  }

  .menu-button {
    padding: 12px 14px;
  }

  .copy-field {
    align-items: stretch;
    flex-direction: column;
  }

  .journal-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journal-row > span:nth-child(4),
  .journal-row > span:nth-child(5) {
    display: none !important;
  }

  .row-arrow {
    display: none;
  }

  .receipt-detail .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-row {
    grid-template-columns: 34px 1fr;
  }

  .file-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}
