/* View-specific styles for the Operator Console. */

/* Alert tiles */
.alert-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.alert-tile { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.alert-tile:hover { background: var(--surface-hover); }
.alert-tile.on { border-color: var(--danger-border); }
.alert-tile.on .alert-ic { background: var(--danger-bg); color: var(--danger-fg); }
.alert-ic { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--neutral-bg); color: var(--fg-faint); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.alert-v { font-size: 20px; font-weight: 700; color: var(--fg); }
.alert-k { font-size: 13px; color: var(--fg-muted); flex: 1; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1.5px; background: var(--border); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex: 0 0 auto; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); z-index: 1; }
.tl-body { flex: 1; }
.tl-trans { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.tl-prior { color: var(--fg-subtle); }
.tl-next { font-weight: 600; color: var(--fg); }
.tl-reason { font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }
.tl-meta { font-size: 11px; color: var(--fg-faint); margin-top: 3px; }

/* Subscriptions */
.sub-list { display: flex; flex-direction: column; gap: 8px; }
.sub-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }

/* DLQ */
.dlq-err { font-size: 12px; color: var(--danger-fg); background: var(--danger-bg); border: 1px solid var(--danger-border); padding: 2px 8px; border-radius: var(--radius-xs); display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wizard */
.wiz-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.wiz-mark { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wiz-body { padding: 18px 20px 22px; }
.wiz-steps { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 20px; }
.wiz-step { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--fg-faint); }
.wiz-step.on { color: var(--fg-muted); }
.wiz-step.cur { color: var(--primary); }
.wiz-num { width: 20px; height: 20px; border-radius: 50%; background: var(--neutral-200); color: var(--fg-muted); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.wiz-step.on .wiz-num { background: var(--primary); color: #fff; }
.wiz-step.cur .wiz-num { background: var(--primary); color: #fff; box-shadow: var(--ring); }
.wiz-center { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 240px; justify-content: center; }
.wiz-hint { font-size: 13px; color: var(--fg-muted); margin: 0; max-width: 320px; line-height: 1.5; }
.wiz-hint b { color: var(--fg); font-weight: 600; }
.wiz-label { font-size: 11px; font-weight: 500; color: var(--fg-muted); align-self: flex-start; }
.wiz-center .input { width: 100%; }
.qr-frame { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.qr-count { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-subtle); }
.qr-rotate { color: var(--fg-faint); }
.wiz-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--info-bg); display: flex; align-items: center; justify-content: center; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--neutral-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Taxonomy management list */
.tax-list { display: flex; flex-direction: column; gap: 8px; }
.tax-topic { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.tax-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; }
.tax-row.sub { padding: 9px 14px; border-top: 1px solid var(--border-subtle); }
.tax-subs { border-top: 1px solid var(--border); background: var(--surface-subtle); padding: 2px 14px 6px 34px; }
.tax-subs .tax-row.sub:first-child { border-top: none; }

/* Toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--neutral-900); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: toastin .2s ease; }
.toast svg { color: #4ade80 !important; }
@keyframes toastin { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
