:root {
	--bg: #F4F5F7; --card: #FFFFFF; --line: #E2E4E8; --text: #15171A; --muted: #5B616B;
	--accent: #1F5FD1; --accent-hover: #174AA3; --accent-soft: #E6EEFC;
	--victor-bg: #F1F5FD; --victor-line: #D5E1F8;
	--ok: #1E8E4E; --ok-soft: #E3F4EA; --danger: #D23B3B; --danger-soft: #FBE9E9;
	font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
header { height: 76px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.logo { width: 56px; height: 46px; object-fit: contain; flex: none; }
.title b { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; }
.title span { font-size: 13px; color: var(--muted); }
.right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 14px; }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.key { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
input, select { font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.key input { width: 220px; }
main { display: grid; grid-template-columns: 420px 1fr; gap: 20px; padding: 20px 28px 40px; max-width: 1600px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 6px; }
.b-started { background: var(--accent-soft); color: var(--accent-hover); }
.b-created { background: #FFF4DB; color: #8A5A00; }
.b-stopped { background: #ECEEF1; color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two select, .full { width: 100%; }
.btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
button { font: inherit; font-size: 15px; font-weight: 600; border-radius: 8px; padding: 10px 12px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
button:disabled { color: #A3A8B0; background: #F6F7F9; cursor: default; }
button.next { background: var(--text); border-color: var(--text); color: #fff; }
button.danger { color: var(--danger); }
.states { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.doc b { display: block; font-size: 15px; }
.doc span { color: var(--muted); }
.upload { display: flex; gap: 8px; }
.upload input { flex: 1; min-width: 0; }
.ptt { width: 100%; height: 96px; margin-top: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ptt:hover { background: var(--accent-hover); }
.ptt svg { width: 26px; height: 26px; }
.ptt.rec { background: var(--danger); box-shadow: 0 0 0 6px var(--danger-soft); height: 56px; font-size: 16px; }
.hint { text-align: center; margin-top: 10px; font-size: 14px; }
.utt { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.av { width: 40px; height: 40px; border-radius: 50%; background: #E6E8EC; color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.line { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.line b { color: var(--text); }
.hw { background: var(--accent-soft); color: var(--accent-hover); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; }
.t { font-size: 17px; margin-top: 2px; }
.t b { font-weight: 800; }
.victor { margin: 12px 0 6px 54px; background: var(--victor-bg); border: 1px solid var(--victor-line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.victor .vlogo { width: 36px; height: 30px; object-fit: contain; }
.player { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.play { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 14px; }
.bar { flex: 1; height: 6px; background: #DCE4F3; border-radius: 3px; overflow: hidden; }
.bar i { display: block; width: 38%; height: 100%; background: var(--accent); }
.timings { margin-top: 8px; font-size: 13px; color: var(--muted); }
.report { min-height: 260px; }
.report .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.report .head h2 { margin: 0 auto 0 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.cols h3 { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.cols ul { margin: 0; padding-left: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 420px; background: #fff; border: 1px solid #F1C9C9; border-left: 5px solid var(--danger); padding: 12px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: 14px; }
.toast b { color: var(--danger); }
@media (max-width: 900px) {
	header { height: auto; padding: 12px 16px; flex-wrap: wrap; }
	.right { margin-left: 0; width: 100%; justify-content: space-between; }
	.key input { width: 100%; }
	.key { flex: 1; }
	main { grid-template-columns: 1fr; padding: 14px 16px; }
	.victor { margin-left: 0; }
	.cols { grid-template-columns: 1fr; }
	.toast { left: 16px; right: 16px; bottom: 16px; }
}

/* --- Implementation additions (T-08) --- */
[hidden] { display: none !important; }
.full { width: 100%; }
textarea { font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; resize: vertical; }
.pill.down { background: var(--danger-soft); color: var(--danger); }
.pill.down i { background: var(--danger); }
.pill.unknown { background: #ECEEF1; color: var(--muted); }
.pill.unknown i { background: var(--muted); }
.subject { font-size: 17px; font-weight: 600; margin-top: 6px; }
.chips span { display: inline-block; background: #F1F3F6; border: 1px solid var(--line); padding: 2px 9px; border-radius: 99px; margin: 4px 4px 0 0; font-size: 14px; }
.ptt { user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; }
.ptt.rec { height: 96px; font-size: 20px; }
.ptt:disabled { background: #AFC3EA; cursor: default; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.utt.pending .t { color: var(--muted); font-style: italic; }
.victor audio { width: 100%; margin-top: 10px; height: 40px; }
.report pre { white-space: pre-wrap; font-size: 13px; background: #F6F7F9; border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; }
.toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 10; max-width: 440px; }
.toasts .toast { position: static; }
.toast.info { border-left-color: var(--accent); border-color: var(--victor-line); }
.toast.info b { color: var(--accent); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
main > div { min-width: 0; }
input[type=file] { max-width: 100%; }
.key { min-width: 0; }

/* Event-oriented reports (D-59) */
.report h3.section { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
table.events { width: 100%; border-collapse: collapse; font-size: 15px; }
table.events th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; }
table.events td { border-bottom: 1px solid var(--line); padding: 7px 8px 7px 0; vertical-align: top; }
@media (max-width: 900px) { table.events { font-size: 14px; } }
