:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-alt: #eef6ff;
  --primary: #1d6fd6;
  --primary-dark: #0a4ea1;
  --accent: #24b47e;
  --danger: #d94d4d;
  --text: #1f2a37;
  --muted: #6b7a90;
  --border: #dfe9f5;
  --shadow: 0 16px 32px rgba(31, 42, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #edf5ff 0%, var(--bg) 140px);
  color: var(--text);
}

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

button {
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.form-panel h2,
.summary-panel h2,
.list-panel h2 {
  margin-bottom: 18px;
}

.section-heading-actions,
.library-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.section-heading-actions h2 {
  margin: 0;
}

.suggest-paper-trigger {
  flex: 0 0 auto;
}

.field-group {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-hours-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.single-column {
  grid-template-columns: 1fr;
}

.hours-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.hours-control input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  padding: 0;
}

.hours-value {
  min-width: 52px;
  justify-self: center;
  text-align: center;
  background: #edf5ff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fbff;
  color: var(--text);
  padding: 12px 14px;
}

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

.attachment-fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.attachment-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.attachment-fieldset > label {
  margin-bottom: 8px;
}

.attachment-fieldset input[type="file"] {
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.attachment-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pending-attachments,
.entry-attachments ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pending-attachments:empty {
  display: none;
}

.pending-attachments li,
.entry-attachments li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.pending-attachments li span,
.entry-attachments li > span:last-child {
  flex: 0 0 auto;
}

.draft-preview {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}

.draft-preview h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(29, 111, 214, 0.18);
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
.app-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 4px 0 22px;
  border-bottom: 1px solid var(--border);
}

.app-tabs {
  display: flex;
  gap: 24px;
  margin: 0;
}

.app-tab {
  padding: 10px 2px 12px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.app-tab:hover {
  color: var(--text);
  transform: none;
}

.app-tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 30px 32px;
  margin-bottom: 24px;
  border-left: 5px solid #d15a3a;
  background-color: #f2f5e9;
  background-image: linear-gradient(110deg, rgba(242, 245, 233, 0.98), rgba(242, 245, 233, 0.78)), repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(32, 66, 53, 0.07) 28px);
}

.library-heading-copy {
  max-width: 620px;
}

.library-header .eyebrow {
  color: #a3452e;
}

.library-header h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.08;
}

.library-header > .library-heading-copy > p:last-child {
  max-width: 460px;
  margin: 0;
  color: #526259;
  line-height: 1.55;
}

.resource-count {
  flex: 0 0 auto;
  margin: 0 0 2px;
  color: #526259;
  font-size: 0.88rem;
  font-weight: 700;
}

.journal-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
  margin-bottom: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.journal-search-step,
.journal-keyword-group {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 12px;
  align-content: start;
}

.journal-search-step label,
.journal-keyword-group label {
  grid-column: 2;
  color: #526259;
  font-size: 0.9rem;
  font-weight: 700;
}

.step-number {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 2px;
  color: #a3452e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.journal-search-step select,
.journal-keyword-group input {
  grid-column: 2;
  min-height: 48px;
  border-color: #d6ddd1;
  border-radius: 6px;
  background: #fff;
}

.journal-search-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.journal-search-actions button {
  min-width: 120px;
}

.admin-resource-panel {
  margin-bottom: 24px;
}

.admin-suggestion-panel {
  margin-bottom: 24px;
}

.admin-suggestion-panel h3 {
  margin: 0;
}

.suggestion-queue {
  display: grid;
  gap: 12px;
}

.suggestion-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.suggestion-queue-item h4 {
  margin: 0 0 6px;
  line-height: 1.35;
}

.suggestion-queue-item p:not(.resource-meta) {
  margin: 8px 0;
  color: #4e5962;
  line-height: 1.5;
}

.suggestion-queue-item a {
  color: var(--primary-dark);
  font-weight: 700;
}

.suggestion-queue-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.suggestion-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(90vh, 850px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(31, 42, 55, 0.24);
}

.report-dialog {
  width: min(780px, calc(100% - 32px));
}

.suggestion-dialog::backdrop {
  background: rgba(20, 33, 44, 0.5);
}

.suggestion-form {
  display: grid;
  gap: 14px;
}

.suggestion-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.suggestion-dialog-heading h2 {
  margin: 6px 0 0;
  font-size: 1.55rem;
}

.suggestion-dialog .field-hint {
  margin: 0;
  line-height: 1.5;
}

.optional-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.suggestion-form .field-group {
  margin: 0;
}

.suggestion-form textarea {
  min-height: 76px;
}

.suggestion-form .app-message:empty {
  display: none;
}

.report-builder-form,
.hcpc-report-fields {
  display: grid;
  gap: 12px;
}

.report-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.report-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.report-option input,
.report-evidence-option input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary-dark);
}

.hcpc-report-fields {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hcpc-report-fields h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hcpc-report-fields .field-hint {
  margin: -8px 0 0;
}

.report-evidence-selection {
  min-width: 0;
  margin: 4px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.report-evidence-selection legend {
  padding: 0 5px;
  font-weight: 700;
}

.report-evidence-activities {
  display: grid;
  max-height: 220px;
  gap: 8px;
  overflow-y: auto;
  margin-top: 10px;
}

.report-evidence-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.report-evidence-option span {
  overflow-wrap: anywhere;
}

.report-builder-form .app-message:empty {
  display: none;
}

.report-preview-screen {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.report-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.report-preview-toolbar h1 {
  margin: 0;
  font-size: 1.4rem;
}

.report-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-share-status {
  min-height: 1.5em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.report-document {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  color: #1f2a37;
  font-size: 0.96rem;
  line-height: 1.55;
}

.report-document h1 {
  margin: 8px 0 12px;
  font-size: 2rem;
}

.report-document h2 {
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c8d2d6;
  font-size: 1.2rem;
  break-after: avoid;
}

.report-document p {
  overflow-wrap: anywhere;
}

.report-document table {
  width: 100%;
  margin: 14px 0 22px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.report-document th,
.report-document td {
  padding: 8px;
  border: 1px solid #cbd5d9;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.report-document th {
  background: #eef3f4;
}

.report-document .report-meta {
  color: var(--muted);
}

.report-document .report-callout {
  padding: 12px;
  border-left: 3px solid #a3452e;
  background: #f6f7f3;
}

.report-document .report-note {
  color: var(--muted);
  font-size: 0.86rem;
}

@media print {
  body.report-preview-active {
    background: #fff;
  }

  body.report-preview-active #authView,
  body.report-preview-active #trackerApp,
  body.report-preview-active .report-preview-toolbar,
  body.report-preview-active .report-share-status {
    display: none !important;
  }

  body.report-preview-active .report-preview-screen {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.report-preview-active .report-document {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 11pt;
  }

  body.report-preview-active .report-document h1 {
    font-size: 22pt;
  }

  body.report-preview-active .report-document tr {
    break-inside: avoid;
  }
}

.admin-resource-panel h3 {
  margin-bottom: 16px;
}

.resource-form {
  display: grid;
  gap: 12px;
}

.resource-form .field-group {
  margin-bottom: 0;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e0e4dc;
  border-top: 3px solid #66806b;
  border-radius: 6px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
  animation: resource-enter 280ms ease both;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #aab8a7;
}

.resource-card:nth-child(2) { animation-delay: 35ms; }
.resource-card:nth-child(3) { animation-delay: 70ms; }
.resource-card:nth-child(4) { animation-delay: 105ms; }

@keyframes resource-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.resource-category {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 3px;
  background: #edf2e9;
  color: #a3452e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.resource-card .resource-admin-actions {
  flex: 0 0 auto;
}

.resource-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-card .small-button {
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.resource-meta {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.resource-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

.resource-topic {
  margin: -2px 0 10px;
  color: #1d624f;
  font-size: 0.86rem;
  font-weight: 700;
}

.resource-summary {
  flex: 1;
  margin: 0 0 18px;
  color: #4e5962;
  line-height: 1.55;
}

.resource-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.resource-read-link {
  color: #1d624f;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.resource-read-link:hover {
  text-decoration: underline;
}

.resource-read-link::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 2px 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.library-view .empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed #c9d2c4;
  background: #fafbf8;
  color: #526259;
}

button[type="submit"],
button.secondary,
button.danger {
  padding: 11px 18px;
  font-weight: 700;
}

button[type="submit"] {
  background: var(--primary);
  color: white;
}

button.secondary {
  background: #eaf2ff;
  color: var(--primary-dark);
}

button.danger {
  background: #ffe9e9;
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(180deg, var(--panel-alt) 0%, #f5fbff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.breakdown {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.breakdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #edf3ff;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, #5ea3ff 100%);
}

.list-panel {
  padding-top: 18px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-card {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
}

.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.entry-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.entry-notes {
  margin: 0;
  color: #35455a;
  line-height: 1.6;
}

.entry-attachments {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.entry-attachments h4 {
  margin: 0;
  font-size: 0.86rem;
}

.entry-attachments li {
  align-items: baseline;
}

.entry-attachments a {
  min-width: 0;
  color: var(--primary-dark);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.small-button {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #fafcff;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: linear-gradient(145deg, #edf5ff 0%, #f7fafc 54%, #eaf6f1 100%);
}

.auth-panel {
  width: min(100%, 440px);
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 10px 0 12px;
  font-size: 2.25rem;
  line-height: 1.12;
}

.auth-intro {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form button[type="submit"] {
  min-height: 46px;
  margin-top: 4px;
}

.auth-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
}

.text-button:hover {
  text-decoration: underline;
  transform: none;
}

.auth-message,
.app-message {
  color: var(--muted);
  line-height: 1.5;
}

.auth-message:not(:empty),
.app-message:not(:empty) {
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: #edf5ff;
}

.auth-message[data-kind="error"],
.app-message[data-kind="error"] {
  border-left-color: var(--danger);
  background: #fff2f2;
  color: #8f2828;
}

.local-import {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-alt);
}

.local-import p {
  margin: 0;
}

@media (max-width: 820px) {
  .layout,
  .two-up,
  .three-up,
  .stats-grid,
  .journal-search,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .topbar,
  .entry-top,
  .section-heading-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading-actions .suggest-paper-trigger {
    width: 100%;
  }

  .form-actions,
  .entry-actions,
  .page-actions,
  .resource-admin-actions {
    width: 100%;
  }

  .form-actions > button,
  .entry-actions > button,
  .page-actions > button {
    flex: 1;
  }

  .library-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .library-header h2 {
    font-size: 2rem;
  }

  .journal-search-actions {
    justify-content: stretch;
  }

  .journal-search-actions button {
    flex: 1;
  }

  .library-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .library-header-actions .suggest-paper-trigger {
    width: 100%;
  }

  .suggestion-queue-item {
    flex-direction: column;
  }

  .suggestion-queue-actions {
    width: 100%;
  }

  .suggestion-queue-actions button {
    flex: 1;
  }

  .report-preview-screen {
    padding: 16px 12px 32px;
  }

  .report-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-preview-actions {
    width: 100%;
  }

  .report-preview-actions button {
    flex: 1;
  }

  .report-document {
    padding: 20px 16px;
    font-size: 0.88rem;
  }

  .report-document h1 {
    font-size: 1.6rem;
  }

  .report-document table {
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 28px 22px;
  }

  .auth-panel h1 {
    font-size: 2rem;
  }

  .local-import {
    align-items: stretch;
    flex-direction: column;
  }

  .app-navigation {
    gap: 8px;
  }

  .app-tabs {
    gap: 12px;
  }

  .app-tab {
    padding-right: 0;
    padding-left: 0;
    font-size: 0.84rem;
  }

  #buildReportBtn {
    flex: 0 0 auto;
    max-width: 132px;
    padding: 8px 10px;
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .attachment-inputs {
    grid-template-columns: 1fr;
  }

  .attachment-inputs button {
    width: 100%;
  }
}
