
* { box-sizing: border-box; }
body { margin: 0; background: #f6f7f9; color: #253d43; font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
main { max-width: 880px; margin: 48px auto; padding: 0 24px; }
section { background: #fff; padding: 24px; border: 1px solid #c4cfce; border-radius: 8px; }
.portal-brand { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.portal-brand .brand { margin: 0; }
.vtouch-logo { display: block; width: 112px; height: auto; flex: 0 0 auto; }
#login { max-width: 480px; margin: auto; }
h1 { margin: 8px 0 24px; font-size: 28px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 16px; }
p { margin: 0 0 16px; }
label, dt, .brand { font-size: 14px; font-weight: 600; }
.helper, dd, .secondary { font-size: 14px; }
.helper { color: #52676d; }
input, button { min-height: 48px; border: 1px solid #c4cfce; border-radius: 8px; padding: 8px 16px; font: inherit; max-width: 100%; }
input { display: block; width: 100%; margin: 8px 0; background: white; color: #253d43; }
button { background: #28645e; color: white; cursor: pointer; white-space: normal; }
button:disabled { background: #edf5f2; color: #52676d; cursor: default; }
.secondary { background: white; color: #253d43; }
:focus-visible { outline: 3px solid #28645e; outline-offset: 4px; }
.skip { position: absolute; top: -64px; padding: 8px; background: white; color: #253d43; }
.skip:focus { top: 8px; }
.notice { padding: 16px; background: #edf5f2; border-radius: 8px; }
.error:not(:empty) { border: 1px solid #c4cfce; padding: 16px; margin: 16px 0; }
.header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
dl { display: grid; grid-template-columns: 1fr 2fr; gap: 8px 16px; margin: 24px 0; }
dd { margin: 0; overflow-wrap: anywhere; }
dt { align-self: start; }
#runs { margin-top: 24px; }
[hidden] { display: none !important; }
@media (max-width: 640px) { main { margin: 24px auto; padding: 0 16px; } section { padding: 16px; } dl { grid-template-columns: 1fr; } button { width: 100%; } .header { flex-wrap: wrap; } }
  
progress { width: 100%; accent-color: #28645e; height: 24px; }
#progress-card { margin-top: 24px; }
#run-list > div + div { margin-top: 24px; }
#page-title { overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.score-card { padding: 16px; min-width: 0; }
.score-card h2 { min-height: 48px; }
#report-content { overflow-wrap: anywhere; }
#report-content h3, #report-content h4 { font-size: 16px; font-weight: 600; margin: 24px 0 16px; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.download { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; border: 1px solid #c4cfce; border-radius: 8px; color: #253d43; }
.download.primary { background: #28645e; color: white; }
#report-view details { padding: 16px; background: white; border: 1px solid #c4cfce; border-radius: 8px; margin: 24px 0; }
#report-view summary { min-height: 48px; padding: 8px 0; cursor: pointer; font-weight: 600; }
#report-view table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 16px 0 24px; font-size: 14px; }
#report-view th, #report-view td { border: 1px solid #c4cfce; padding: 4px; text-align: left; }
#report-view th { font-weight: 600; }
#report-view caption { text-align: left; margin-bottom: 8px; }
.matrix-mobile { display: none; }
#report-status { margin-top: 16px; }
@media (max-width: 640px) {
  .comparison { grid-template-columns: 1fr; }
  .score-card h2 { min-height: 0; }
  .download { width: 100%; }
  .matrix { display: none; }
  .matrix-mobile { display: block; }
  .matrix-mobile section { margin: 16px 0; }
  .matrix-mobile dl { grid-template-columns: 2fr 1fr; }
}
@media print {
  .skip, .header, #evaluation-body, #report-back, #report-retry, .downloads, #announcer { display: none !important; }
  body { background: white; }
  main { margin: 0; padding: 0; }
  .score-card { break-inside: avoid; }
  #report-view details::details-content { content-visibility: visible; }
  .matrix { display: table; }
  .matrix-mobile { display: none; }
}

#activity-log { margin-top: 24px; border-top: 1px solid #c4cfce; padding-top: 16px; min-width: 0; }
#activity-log h3 { margin: 0 0 12px; font-size: 18px; }
#activity-focus { background: #edf5f2; border-radius: 8px; }
#activity-focus:not(:empty) { padding: 12px 16px; margin-bottom: 12px; }
#activity-rows { list-style: none; padding: 0; margin: 0; max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
#activity-rows li { border: 1px solid #dce4e2; border-radius: 8px; padding: 12px 16px; margin: 0 0 8px; background: #fff; }
#activity-log p { margin: 4px 0 8px; overflow-wrap: anywhere; }
.activity-id { font-family: ui-monospace, monospace; font-weight: 600; }
.activity-models { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.activity-output { min-width: 0; padding: 8px; border-radius: 6px; background: #f5f7f6; }
.activity-output strong, .activity-output small { display: block; overflow-wrap: anywhere; }
.activity-output small { color: #526366; font-size: 12px; margin-top: 4px; }
@media (max-width: 640px) {
  .activity-models { grid-template-columns: 1fr; }
  #activity-rows { max-height: 560px; }
}

#system-title { max-width: 30em; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.4; }
#page-title { margin-top: 24px; }
#version-audit { margin: 16px 0; }
#version-audit summary { min-height: 48px; padding: 12px 0; cursor: pointer; }
#version-audit dl { margin: 16px 0; }
.original-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) { #system-title { font-size: 24px; } .portal-brand { gap: 16px; } }

#run-list button[aria-pressed="true"] { border: 2px solid #28645e; background: #edf5f2; font-weight: 600; }
#start-help { margin-top: 12px; }
