* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #17202a; background: #f6f7f9; }
.hidden { display: none !important; }
.muted { color: #6b7684; font-size: 13px; }
.error { color: #c0392b; font-size: 13px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 24px 0 10px; }
button { border: 1px solid #d5dae1; background: #fff; border-radius: 8px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
button.primary { background: #5b5bd6; border-color: #5b5bd6; color: #fff; }
button.ghost { background: transparent; }
button:hover { filter: brightness(0.97); }
input, select, textarea { border: 1px solid #d5dae1; border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; width: 100%; }
label { display: block; font-size: 13px; color: #445060; margin: 10px 0; }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.row label { flex: 1; }
.row input { flex: 1; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; border: 1px solid #e3e7ee; border-radius: 14px; padding: 28px; width: 360px; display: flex; flex-direction: column; gap: 12px; }
.logo { font-weight: 700; font-size: 17px; }

.shell { display: flex; min-height: 100vh; }
.side { width: 210px; background: #fff; border-right: 1px solid #e3e7ee; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #2c3644; }
.side nav a.active { background: #eef0fe; color: #4343c8; font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
main { flex: 1; padding: 24px 28px; max-width: 1080px; }
.cards { display: flex; gap: 14px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 16px 18px; min-width: 200px; flex: 1; }
.card-label { font-size: 12px; color: #6b7684; text-transform: uppercase; letter-spacing: .04em; }
.card-value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.panel { background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; overflow: hidden; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eef1f5; }
th { color: #6b7684; font-weight: 600; background: #fafbfc; }
td.actions button { margin-right: 6px; padding: 4px 9px; }
.transcript { background: #17202a; color: #d6e4f0; border-radius: 10px; padding: 14px; white-space: pre-wrap; font-size: 12.5px; max-height: 420px; overflow: auto; }
.steps li { margin: 6px 0; }
