/* Creo Qualitas – QA workspace */
:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --border: #DDE1E6; --line: #E9ECEF;
  /* Creo Qualitas brand: cyan #16E0F8 to violet #8A5CD0; buttons use a deeper violet for readable white text. */
  --text: #1B1F24; --muted: #57606A; --accent: #5B46C2; --accent-dark: #47369E; --accent-tint: #EEEBFB;
  --brand-gradient: linear-gradient(90deg, #16C9F0 0%, #6E7FDB 50%, #8A5CD0 100%);
  --warn-text: #7A3B00; --warn-bg: #FFF1DE; --bad-text: #8F2418; --bad-bg: #FCEBE9;
  --info-text: #1F4E8C; --info-bg: #EAF1FB; --ok-text: #1E6B35; --ok-bg: #E8F5EC; --grey-bg: #EEF0F2;
  --radius: 12px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1 { margin: 0; font-size: 26px; line-height: 1.25; }
h2 { margin: 0; font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--muted); }
.pre { white-space: pre-wrap; word-break: break-word; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-gradient); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { display: block; height: 38px; width: auto; }
.auth-logo { display: block; margin: 0 auto 22px; height: 84px; width: auto; max-width: 100%; }
.auth-head { text-align: center; }
.mainnav { display: flex; flex-wrap: wrap; gap: 2px; }
.mainnav a { color: #3A4149; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.mainnav a:hover { background: var(--bg); color: var(--text); }
.mainnav a.on { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.usermenu { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.usermenu form { margin: 0; }

.page { max-width: 1180px; margin: 0 auto; padding: 26px 20px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head .lead { margin-top: 6px; color: var(--muted); }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.grow { flex: 999 1 520px; min-width: 0; }
.side { flex: 1 1 320px; min-width: 0; }

/* Cards, tiles */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--accent); }
.tile b { font-size: 30px; line-height: 1.1; }
.tile span { color: var(--muted); font-size: 14px; }
.sev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }
.sev-grid a { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.sev-grid a:hover { border-color: var(--accent); }
.sev-grid b { font-size: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* Chips */
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.sev-critical { color: var(--bad-text); background: var(--bad-bg); }
.sev-high { color: var(--warn-text); background: var(--warn-bg); }
.sev-low { color: var(--info-text); background: var(--info-bg); }
.st-new { color: var(--warn-text); background: var(--warn-bg); }
.st-ready { color: var(--info-text); background: var(--info-bg); }
.st-fixed { color: var(--accent-dark); background: var(--accent-tint); }
.st-done { color: var(--ok-text); background: var(--ok-bg); }
.st-bad { color: var(--bad-text); background: var(--bad-bg); }
.st-grey { color: #3A4149; background: var(--grey-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Forms */
label, .label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], input[type=url], input[type=file], select, textarea {
  font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #B3BAC2; border-radius: 8px; background: #fff; color: var(--text); width: 100%; min-height: 42px;
}
input[type=file] { padding: 7px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px 12px; margin: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters label { min-width: 160px; }
.filters .q { min-width: 220px; flex: 1 1 220px; }

/* Buttons */
.btn, .btn2, .btn-danger, .btn-link { font: inherit; font-size: 15px; font-weight: 600; border-radius: 8px; padding: 9px 16px; min-height: 42px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn { background: var(--accent); color: #fff; border: 0; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn2 { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn2:hover { background: var(--accent-tint); }
.btn-danger { background: #fff; color: var(--bad-text); border: 1.5px solid var(--bad-text); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-link { background: none; border: 0; color: var(--accent); padding: 6px 4px; min-height: 34px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--bad-text); }
.btn-sm { font-size: 14px; padding: 5px 11px; min-height: 34px; }

/* Messages */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok-text); }
.flash.warn { background: var(--warn-bg); color: var(--warn-text); }
.errors { background: var(--bad-bg); color: var(--bad-text); border-radius: 8px; padding: 12px 16px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.notice { background: var(--info-bg); color: var(--info-text); border-radius: 8px; padding: 11px 14px; font-size: 14px; }
.dup-warning { background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed #C4CAD1; border-radius: 10px; }

/* Tables */
.tablebox { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
.tablebox table { min-width: 760px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 13px; background: #FAFBFC; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFC; }
td a.title { color: var(--text); font-weight: 600; text-decoration: none; }
td a.title:hover { color: var(--accent); text-decoration: underline; }
td select { min-height: 34px; padding: 4px 8px; font-size: 14px; width: auto; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 14px; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.list li:last-child { border-bottom: 0; }
.list a.title { font-weight: 600; text-decoration: none; color: var(--text); }
.list a.title:hover { color: var(--accent); text-decoration: underline; }
.similar-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.similar-item a { font-weight: 600; text-decoration: none; color: var(--text); }
.similar-item a:hover { color: var(--accent); text-decoration: underline; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kv div span { display: block; font-size: 13px; color: var(--muted); }
.kv div b { font-weight: 600; word-break: break-word; }
.device-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.device-row summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; list-style: none; }
.device-row summary::-webkit-details-marker { display: none; }
.device-row form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }

/* Comments */
.comment { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; }
.comment.system { border-left-color: transparent; padding-left: 15px; color: var(--muted); font-size: 13px; }
.comment .meta { font-size: 13px; color: var(--muted); }

/* Attachments */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.file { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.file img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.file .name { word-break: break-all; }

/* Auth pages */
.auth { max-width: 440px; margin: 48px auto; padding: 0 20px; }
.auth.wide { max-width: 820px; }
.auth h1 { margin-bottom: 6px; }
.auth .card { margin-top: 18px; }
/* Avatars and profile */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; background: var(--bg); }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; letter-spacing: .5px; }
.av-0 { background: #5B46C2; } .av-1 { background: #0E7C9B; } .av-2 { background: #8A4FBF; }
.av-3 { background: #2F6FB5; } .av-4 { background: #A2457A; } .av-5 { background: #3E7D5A; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person > span:last-child { min-width: 0; }
.profile-hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; }
.profile-photo { position: relative; }
.profile-photo .avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }
.usermenu .person { text-decoration: none; color: inherit; }
.usermenu .person:hover span { text-decoration: underline; }
.bio { white-space: pre-wrap; word-break: break-word; }
/* Onboarding */
.onb-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.onb-progress { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 6px; }
.onb-bar { flex: 1; height: 10px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; }
.onb-bar span { display: block; height: 100%; background: var(--brand-gradient); border-radius: 999px; transition: width .3s; }
.onb-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-size: 14px; margin-right: 10px; vertical-align: 1px; }
.onb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.onb-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.onb-list li.done { color: var(--text); }
.onb-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C4CAD1; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.onb-list li.done .onb-tick { background: var(--ok-text); border-color: var(--ok-text); color: #fff; }
.onb-side { position: sticky; top: 16px; }
@media (max-width: 860px) { .onb-side { position: static; order: -1; } }
button[aria-disabled="true"] { background: #A9A3C9; cursor: default; }
/* Device form suggestions */
.device-fields { display: flex; flex-direction: column; gap: 12px; }
.device-fields .grid4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dc-browsers-label { grid-column: span 2; }
@media (max-width: 640px) { .dc-browsers-label { grid-column: auto; } }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 400; }
.dc-chip { font: inherit; font-size: 13px; border: 1px solid #C9CED5; background: #fff; color: #3A4149; border-radius: 999px; padding: 4px 10px; cursor: pointer; min-height: 30px; }
.dc-chip:hover { border-color: var(--accent); color: var(--accent); }
.dc-chip[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.dc-hint.ok { color: var(--ok-text); }
.flash-wrap { max-width: 820px; margin: 24px auto -28px; padding: 0 20px; }
.verify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.otp-input { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.resend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.resend button[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.badges { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.device-entry { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .page { padding: 18px 14px 48px; }
  .card { padding: 16px; }
  h1 { font-size: 22px; }
}

/* ---- Bell & notifications ---- */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #3A4149; }
.bell:hover { background: var(--bg); color: var(--accent); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #C2362B; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.notif-list { list-style: none; margin: 0; padding: 6px 0; gap: 0; }
.notif-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list a { display: flex; gap: 10px; align-items: flex-start; color: var(--text); text-decoration: none; }
.notif-list a:hover { color: var(--accent); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; flex: none; background: transparent; }
.notif-list li.unread { background: #FBFAFF; }
.notif-list li.unread .notif-dot { background: var(--accent); }
.notif-list li.unread a { font-weight: 600; }

/* ---- Cycles ---- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.stat-strip > div { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { font-size: 24px; line-height: 1.2; }
.stat-strip span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 11px 14px; color: #3A4149; text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--accent); }
.tabs a.on { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }
.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: #3A4149; text-decoration: none; background: #fff; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.invite-banner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; border-color: var(--accent); background: #FBFAFF; }
.invite-card { border-color: #CFC7F2; }
.invite-list { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.invite-row { align-items: flex-start !important; padding: 6px 0; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.invite-row input { margin-top: 6px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 10px; }
.hbar-track { height: 12px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; }
.sevfill-critical { background: #C2362B; } .sevfill-high { background: #D9822B; } .sevfill-low { background: #2F6FB5; }
.hbar b { text-align: right; }
.seg-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--grey-bg); }
.seg-pass { background: #2E8B57; } .seg-fail { background: #C2362B; } .seg-blocked { background: #D9822B; }
.case { border-left: 4px solid var(--border); }
.case-pass { border-left-color: #2E8B57; } .case-fail { border-left-color: #C2362B; } .case-blocked { border-left-color: #D9822B; }
.case-form { display: flex; flex-direction: column; gap: 8px; }
.res-btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 7px 16px; min-height: 38px; cursor: pointer; background: #fff; border: 1.5px solid var(--border); color: #3A4149; }
.res-btn:disabled { opacity: .5; cursor: default; }
.res-pass:hover, .res-pass.on { border-color: #2E8B57; color: #1E6B35; } .res-pass.on { background: var(--ok-bg); }
.res-fail:hover, .res-fail.on { border-color: #C2362B; color: var(--bad-text); } .res-fail.on { background: var(--bad-bg); }
.res-blocked:hover, .res-blocked.on { border-color: #D9822B; color: var(--warn-text); } .res-blocked.on { background: var(--warn-bg); }
.chat { gap: 10px; }
.chat-list { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; min-height: 240px; overflow-y: auto; padding: 8px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 85%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-body { background: var(--bg); border-radius: 12px; padding: 8px 12px; min-width: 0; }
.msg.mine .msg-body { background: var(--accent-tint); }
.msg-meta { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.msg-body p { margin-top: 2px; font-size: 14.5px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { min-height: 46px; flex: 1; }
.rank-table tr.me td { background: #FBFAFF; }
.rank { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; background: var(--grey-bg); }
.rank-1 { background: #F4C542; color: #5A4300; } .rank-2 { background: #C9D1D9; color: #2D3740; } .rank-3 { background: #E2A46B; color: #5A3210; }
@media (max-width: 640px) { .msg { max-width: 100%; } .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---- Bug review & reproductions ---- */
.review { border-color: #CFC7F2; }
.review-more { border-top: 1px solid var(--line); padding-top: 10px; }
.review-more summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 14px; }
.review-more[open] summary { margin-bottom: 10px; }
.need-info { border-color: #E9B8B1; background: #FFF8F7; }
.repro { padding: 8px 0; border-bottom: 1px solid var(--line); }
.repro-form { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 10px; padding: 12px; }

/* ---- Dashboard ---- */
.tile small { font-size: 16px; color: var(--muted); font-weight: 600; }
.tile-accent { border-color: #CFC7F2; background: linear-gradient(180deg, #FBFAFF, #fff); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.cycle-rows { display: flex; flex-direction: column; gap: 10px; }
.cycle-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.cycle-row:hover { border-color: var(--accent); }
.time-bar { height: 6px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; }
.time-bar span { display: block; height: 100%; background: var(--brand-gradient); }
.hbar-wide { grid-template-columns: 130px 1fr 34px; }
.attention { border-color: #E9B8B1; }
.leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.leaders li { display: flex; align-items: center; gap: 10px; }
.leaders li.me { background: #FBFAFF; border-radius: 10px; padding: 4px; margin: -4px; }
.grow-1 { flex: 1; min-width: 0; }

/* Privacy notice, security log, footer */
.doc h2 { margin-top: 10px; font-size: 18px; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc p { margin: 0; line-height: 1.6; }
tr.row-warn td { background: var(--warn-bg); }
.site-foot { max-width: 1200px; margin: 32px auto 0; padding: 18px 20px 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.site-foot a { color: var(--muted); }
.danger-zone { border-color: var(--bad-text); }
.doc .tablebox table { min-width: 0; }
.doc td { white-space: normal; vertical-align: top; }
@media (max-width: 640px) {
  .doc thead { display: none; }
  .doc tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .doc tbody td { display: block; border: 0; padding: 2px 12px; }
  .doc tbody td:first-child { font-weight: 600; }
}

/* ---------- Test cycle: Test IO style overview ---------- */
.rule-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rule { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #E5484D; border-radius: 10px; padding: 10px 12px; background: #FFF8F8; font-size: 14px; }
.rule-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #E5484D; color: #E5484D; display: grid; place-items: center; font-size: 18px; font-weight: 700; line-height: 1; }
.doc-sections > div { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc-sections > div:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-sections h2 { font-size: 17px; margin: 0; }
.doc-sections p { margin: 0; }
.access-box { background: var(--accent-tint); border-radius: 8px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.feature-list { display: flex; flex-direction: column; gap: 6px; }
.feature-row { display: flex; gap: 8px; align-items: flex-start; }
.feature { flex: 1 1 auto; min-width: 0; background: #F1F2F4; border-radius: 8px; }
.feature summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 42px; }
.feature summary::-webkit-details-marker { display: none; }
.feature summary::after { content: '⌄'; margin-left: auto; color: var(--accent); font-size: 18px; line-height: 1; transition: transform .15s; }
.feature[open] summary::after { transform: rotate(180deg); }
.feature-name { font-weight: 600; font-size: 14px; }
.feature-count { font-size: 13px; color: var(--text); text-decoration: none; white-space: nowrap; }
.feature-count:hover { color: var(--accent); }
.feature-body { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.feature-body p { margin: 0; }
.feature-submit { flex: 0 0 auto; min-height: 42px; }
.feature-submit.disabled { opacity: .45; cursor: not-allowed; }
.add-box summary { list-style: none; cursor: pointer; display: inline-flex; }
.add-box summary::-webkit-details-marker { display: none; }
.dev-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dev-card { display: inline-flex; gap: 8px; align-items: center; background: #F1F2F4; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.35; }
.dev-card.big { padding: 12px 14px; }
.pill.toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; min-height: 34px; }
.switch { width: 30px; height: 17px; border-radius: 999px; background: #C4CAD1; position: relative; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .15s; }
.pill.toggle.on .switch { background: rgba(255,255,255,.45); }
.pill.toggle.on .switch::after { left: 15px; }

/* Chat likes and mentions */
.mention { color: var(--accent); font-weight: 600; }
.msg.mine .mention { color: inherit; text-decoration: underline; }
.like-form { margin-top: 2px; }
.like-btn { background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; color: var(--muted); padding: 2px 4px; border-radius: 6px; min-height: 0; }
.like-btn:hover { color: #E5484D; background: #FFF0F0; }
.like-btn.on { color: #E5484D; }
.like-n { font-size: 12px; }
.mention-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.mention-chips .pill { cursor: pointer; padding: 3px 10px; font: inherit; font-size: 13px; }

/* Team cards and badges */
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.team-card { align-items: center; text-align: center; gap: 8px; }
.badges-cell { white-space: nowrap; }
.badge-pill { display: inline-block; background: var(--accent-tint); border-radius: 999px; padding: 2px 8px; margin: 0 3px 3px 0; font-size: 14px; }
.badge-form select { min-height: 34px; padding: 4px 8px; font-size: 14px; width: auto; }
@media (max-width: 640px) {
  .feature-row { flex-direction: column; align-items: stretch; }
  .feature-submit { align-self: flex-start; }
}

/* Sign-in security */
.code-input { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 22px; letter-spacing: 4px; text-align: center; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--accent-tint); border-radius: 10px; padding: 14px; font-size: 16px; color: var(--text); }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
.qr-box { margin: 10px 0 6px; display: block; width: fit-content; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.level-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--grey-bg); color: #3A4149; vertical-align: middle; }
.level-gold { background: #FFF4CC; color: #7A5B00; }
.level-silver { background: #EEF1F4; color: #3D4752; }
.level-bronze { background: #FBEBDD; color: #8A4B14; }
.level-new { background: #E8F6EC; color: #1F6B36; }

/* Bulk review */
.bulk-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; position: sticky; top: 8px; z-index: 5; }
.bulk-bar select, .bulk-bar input[type="text"] { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.bulk-bar input[type="text"] { flex: 1 1 200px; }
.bulk-bar.has-selection { border-color: var(--accent); box-shadow: 0 2px 10px rgba(91,70,194,.15); }
th.sel, td.sel { width: 36px; text-align: center; }
th.sel input, td.sel input { width: 18px; height: 18px; min-height: 0; }

/* Available tasks */
.task-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.task-name { font-size: 17px; }
.task-dim { background: #FAFBFC; border-style: dashed; }
.task-request { display: flex; gap: 8px; flex-wrap: wrap; }
.task-request input { flex: 1 1 220px; }
@media (max-width: 640px) { .task-list { grid-template-columns: 1fr; } }
.task-banner { display: block; text-decoration: none; }

/* Client portal */
.client-card { text-decoration: none; color: inherit; }
.client-card:hover { border-color: var(--accent); }
.stat-strip.mini { margin: 0; }
.stat-strip.mini b { font-size: 20px; }
.client-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.client-files img, .client-files video { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; }
td.mono { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1360px) {
  .mainnav a { padding: 9px 9px; }
  .usermenu .person > span:last-child { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.sev-help { background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.sev-help summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.sev-help dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 8px 0; align-items: start; }
.sev-help dd { margin: 0; }
