body { font-family: 'Segoe UI', 'DM Sans', sans-serif; }
.administration { background: #f2f5f4; }
.admin-topbar { display: flex; align-items: center; gap: 25px; padding: 18px 30px; border-bottom: 1px solid var(--line); background: white; min-height: 80px; }
.admin-topbar .account-menu { margin-left: auto; }
.admin-area-label { border-left: 1px solid var(--line); padding-left: 25px; font-size: .8rem; color: var(--muted); }
.admin-shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); max-width: 1600px; min-height: 75vh; margin: auto; }
.admin-sidebar { padding: 38px 20px; border-right: 1px solid var(--line); background: #eaf0ed; }
.admin-sidebar .eyebrow { font-size: .65rem; padding: 0 12px; }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 25px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 9px; color: #4f6861; text-decoration: none; font-size: .85rem; }
.admin-sidebar nav a span { color: #83a096; font-size: .7rem; }
.admin-sidebar nav a[aria-current], .admin-sidebar nav a:hover { background: var(--teal-dark); color: white; }
.admin-workspace-switch { margin: 45px 12px 0; padding-top: 22px; border-top: 1px solid #cbdad3; }
.admin-workspace-switch .text-link { line-height: 1.6; }
.admin-main { min-width: 0; }
.admin-main > main { padding: 40px 30px; }
.admin-main .admin-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); }
.topbar { max-width: 1440px; gap: 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .81rem; padding: 10px 12px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--teal); background: var(--mint); }
.account-menu { display: flex; gap: 14px; align-items: center; font-size: .76rem; }
.account-menu small { display: block; color: var(--muted); padding-top: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--teal); border-radius: 9px; background: var(--teal); color: white; text-decoration: none; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(.94); }
.btn.secondary { background: white; color: var(--teal); border-color: var(--line); }
.btn.small { font-size: .74rem; padding: 7px 10px; }
.btn.danger { color: #9a382d; background: #fff1ed; border-color: #f0c7bc; }
.text-link { color: var(--teal); text-decoration: none; font-size: .84rem; font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h1.page-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.14; letter-spacing: -.035em; }
.muted, .quiet { color: var(--muted); line-height: 1.6; }
.quiet { font-size: .76rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-width: 0; }
.panel h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.55rem; font-weight: 600; margin: 0 0 20px; }
.section-space { margin-top: 28px; }
.section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-line h2 { margin-bottom: 0; }
.stack-form { display: grid; gap: 17px; }
label { font-size: .82rem; font-weight: 600; color: var(--ink); }
input, select, textarea { display: block; width: 100%; padding: 12px; border: 1px solid #c4d5cf; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-weight: 400; margin-top: 7px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #6eb8a6; outline-offset: 1px; }
input[type=hidden] { display: none; }
textarea { resize: vertical; }
.flash-wrap { max-width: 1224px; margin: auto; }
.flash { border-radius: 10px; padding: 14px 18px; font-size: .85rem; border: 1px solid #b9dcca; background: #e7f5ee; color: #23573f; }
.flash.error { background: #fff0ec; border-color: #edc7bf; color: #87382c; }
.login-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 90px; min-height: 75vh; }
.login-story h1 { font-family: Georgia, serif; font-size: clamp(3.5rem, 6vw, 5.8rem); line-height: 1.05; }
.login-story > p:not(.eyebrow) { max-width: 480px; line-height: 1.75; color: var(--muted); }
.login-features { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0; }
.login-features span, .tag { display: inline-block; padding: 6px 11px; border-radius: 99px; background: #e8efec; color: #466461; font-size: .73rem; white-space: nowrap; }
.tag.malignant { color: #a14336; background: #ffede8; }
.tag.benign { color: #6c5a20; background: #fbf4d9; }
.tag.normal, .tag.validated { color: #24654c; background: #dff3e8; }
.tag.pending { color: #7a5920; background: #fcf0d6; }
.login-card { padding: 42px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 2.2rem; margin-bottom: 8px; }
.login-card .stack-form { margin-top: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.stat small { display: block; color: var(--muted); font-size: .82rem; }
.stat strong { display: block; font-size: 2.5rem; color: var(--teal); padding-top: 16px; letter-spacing: -.035em; }
.stat strong.stat-label { font-size: 2.2rem; }
.distribution { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 25px; }
.distribution strong { float: right; font-size: 1.4rem; }
.distribution .probability-track { margin-top: 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; text-align: left; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
th, td { padding: 15px 10px; border-bottom: 1px solid #e5ece8; vertical-align: middle; }
td small { display: block; font-size: .72rem; color: var(--muted); margin-top: 5px; }
.table-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.empty-table { padding: 45px; text-align: center; color: var(--muted); }
.filter-form { display: flex; align-items: end; gap: 15px; flex-wrap: wrap; }
.filter-form label:first-of-type { flex: 1; min-width: 190px; }
.filter-form input, .filter-form select { font-size: .85rem; }
.admin-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: start; }
.narrow-page { max-width: 750px; }
.image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.image-grid figure { margin: 0; padding: 15px; }
.image-grid img { width: 100%; height: 300px; object-fit: contain; background: #0e2222; border-radius: 9px; display: block; }
.image-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 3px 0; font-size: .84rem; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.reading { color: #496562; font-size: .9rem; line-height: 1.75; }
.result-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.exam-reference { display: block; margin-bottom: 18px; }
.report-container { max-width: 960px; }
.report-sheet { background: white; border: 1px solid var(--line); padding: 45px; border-radius: 12px; color: #182d2c; font-size: .92rem; }
.report-header { display: flex; gap: 30px; justify-content: space-between; align-items: start; border-bottom: 2px solid var(--teal); padding-bottom: 22px; }
.report-header h1 { font-family: Georgia, serif; font-size: 1.9rem; line-height: 1.15; }
.report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; font-size: .85rem; }
.report-sheet h2 { font-family: Georgia, serif; font-size: 1.25rem; margin: 25px 0 12px; }
.report-sheet p { line-height: 1.65; }
.report-probabilities { display: flex; gap: 20px; flex-wrap: wrap; padding: 12px; background: #f0f5f2; font-size: .84rem; }
.report-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-images figure { margin: 0; break-inside: avoid; }
.report-images img { width: 100%; height: 210px; object-fit: contain; background: #142322; }
.report-images figcaption { padding-top: 5px; color: #4b6763; font-size: .8rem; }
.report-conclusion { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 32px; }
.note-block { white-space: pre-wrap; background: #f5f8f6; padding: 17px; border-left: 3px solid var(--teal); overflow-wrap: anywhere; }
.report-end { margin-top: 40px; color: #607e78; font-size: .76rem; border-top: 1px solid var(--line); padding-top: 15px; }
@media (max-width: 1100px) { .account-menu { margin-left: auto; } .main-nav { order: 3; width: 100%; justify-content: center; } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .admin-main .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 750px) { .admin-topbar { flex-wrap: wrap; padding: 15px; gap: 12px; } .admin-area-label { order: 3; width: 100%; border-left: 0; padding-left: 0; } .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 14px; } .admin-sidebar nav { grid-template-columns: 1fr 1fr; margin-top: 12px; } .admin-workspace-switch { margin: 18px 10px 0; padding-top: 12px; } .admin-workspace-switch .quiet { margin: 5px 0; } .admin-main > main { padding: 28px 14px; } }
@media (max-width: 750px) { .login-layout, .detail-grid { grid-template-columns: 1fr; gap: 25px; } .login-story h1 { font-size: 3.5rem; } .login-card { padding: 25px; } .page-heading { align-items: start; flex-direction: column; } .stat-grid { gap: 10px; } .stat.panel { padding: 18px; } .stat strong, .stat strong.stat-label { font-size: 1.5rem; } .image-grid { grid-template-columns: 1fr; } .distribution { gap: 15px; } .account-menu > span { display: none; } .panel { padding: 20px; } .report-sheet { padding: 23px; } .report-header { flex-direction: column; } .report-images img { height: 145px; } }
@media print {
  @page { size: A4; margin: 14mm; }
  .no-print, footer, .flash-wrap { display: none !important; }
  body { background: white; color: #172c2a; font-size: 10pt; }
  main.report-container { max-width: none; padding: 0; margin: 0; }
  .report-sheet { border: 0; padding: 0; font-size: 10pt; border-radius: 0; }
  .report-header h1 { font-size: 20pt; }
  .report-images img { height: 45mm; }
  .report-summary { break-after: page; }
  .report-conclusion { margin-top: 0; border-top: 0; padding-top: 0; }
  .report-sheet h2 { break-after: avoid; }
  .report-meta, .report-images figure { break-inside: avoid; }
  .report-sheet p { orphans: 3; widows: 3; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
