/* Sutdesk components paired with the shared Sutra V2 / Tabler template. */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 var(--tblr-font-sans-serif, system-ui, sans-serif); }
a { color: #1268c4; text-decoration: none; }
a:hover { color: #095da4; text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #1890ff; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 17px; font-weight: 750; color: var(--v2-text); }
h3 { font-size: 13px; margin-top: 26px; font-weight: 750; }
p { color: #607793; }
small, .muted { color: #63738a; }
small { font-size: 12px; }
.desk-icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 2000; padding: 10px 18px; border-radius: 8px; background: white; }
.skip-link:focus { top: 12px; }
.desk-brand { display: inline-flex; align-items: center; gap: 11px; color: #102a4c; flex-shrink: 0; }
.desk-brand:hover { color: #1268c4; text-decoration: none; }
.desk-brand > span { display: grid; gap: 2px; }
.desk-brand strong { font-size: 23px; font-weight: 850; letter-spacing: -.7px; line-height: 1.2; }
.desk-brand small { color: #607793; font-size: 8px; font-weight: 750; letter-spacing: 2.1px; }
.desk-brand img { filter: drop-shadow(0 6px 10px rgba(24, 82, 132, .14)); }
.desk-workspace { display: grid; gap: 4px; padding-left: 22px; margin-left: 8px; border-left: 1px solid #cbdcec; }
.v2-topbar-kicker { color: #607793; }
.v2-topbar-title { font-size: 14px; }
.v2-session-card:hover { text-decoration: none; }
.v2-header-actions form { margin: 0; }
.v2-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.v2-main-nav .topbar { display: flex; }
.v2-main-nav .nav-link { gap: 8px; text-decoration: none; }
.v2-main-nav .desk-icon { width: 16px; height: 16px; }
.staff-label { display: inline-flex; align-items: center; gap: 7px; color: #63738a; font-size: 11px; font-weight: 650; white-space: nowrap; }
.staff-label .desk-icon { color: #1268c4; width: 16px; height: 16px; }
.v2-page-container { width: 100%; max-width: 1640px; margin: 0 auto; padding: 24px 28px 16px; }
.pagehead { margin: 0 0 22px; }
.v2-page-hero__copy { flex: 1; }
.v2-page-hero__text { overflow-wrap: anywhere; }
.v2-page-hero__icon .desk-icon { width: 27px; height: 27px; }
.v2-page-hero__actions form { margin: 0; }
.v2-page-hero__actions .button { min-height: 43px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.v2-page-hero__actions .button:hover { background: rgba(255,255,255,.22); }
.count { display: inline-block; font-size: 13px; font-weight: 650; line-height: 1.5; letter-spacing: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px 10px; margin-left: 12px; vertical-align: middle; background: rgba(255,255,255,.1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, #1890ff, #13a8c7); color: #fff; font-size: 12px; font-weight: 750; line-height: 1.3; white-space: nowrap; box-shadow: 0 8px 18px rgba(24,144,255,.14); }
.button:hover { color: #fff; background: linear-gradient(135deg, #087ff5, #0894aa); text-decoration: none; }
.button.secondary { border-color: #c5daef; background: linear-gradient(180deg,#fff,#f2f8ff); color: #1268c4; box-shadow: none; }
.button.secondary:hover { border-color: #1890ff; background: #eaf4ff; }
.full { width: 100%; justify-content: center; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stats a { position: relative; display: block; padding: 20px 22px; border: 1px solid #c9ddf2; border-radius: 16px; background: #fff; color: var(--v2-text); box-shadow: var(--v2-shadow-soft); }
.stats a:hover { border-color: #1890ff; text-decoration: none; }
.stats .stat-icon { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eaf4ff; color: #1268c4; }
.stats a:nth-child(2) .stat-icon { color: #c53646; background: #fff0f1; }
.stats a:nth-child(3) .stat-icon { color: #722ed1; background: #f3edff; }
.stats a:nth-child(4) .stat-icon { color: #247450; background: #e8f6ef; }
.stats a > span:not(.stat-icon) { display: block; color: #607793; padding-right: 36px; font-size: 11px; font-weight: 750; }
.stats strong { display: block; font-size: 32px; font-weight: 800; line-height: 1.35; margin: 6px 0; }
.stats small { font-size: 11px; color: #63738a; }
.green { color: #247450; }.red { color: #c53646; }
.panel { overflow: hidden; border: 1px solid #c9ddf2; border-radius: 18px; background: #fff; box-shadow: var(--v2-shadow-soft); margin-bottom: 22px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #d8e7f5; background: linear-gradient(120deg,#eaf4ff,#fff 48%,#f6f0ff); }
.panel-heading h2 { margin: 0; font-size: 18px; font-weight: 800; }
.panel-heading a { font-size: 12px; font-weight: 600; }
.filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 20px 22px; background: #fcfdff; }
.filters label { flex: 1 1 130px; margin: 0; font-size: 11px; color: #52708e; }
.filters .search { flex: 2 1 230px; }
.filters input, .filters select { font-size: 12px; min-height: 40px; }
.filters .button { min-height: 40px; }
.filters .reset { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; padding: 13px 17px; border-block: 1px solid #d8e7f5; background: #eff5fb; color: #52708e; font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 22px; }
td { padding: 18px 17px; border-bottom: 1px solid #e4ebf3; color: #2b4669; }
tbody tr:nth-child(even) { background: #f8fbfe; }
tbody tr:hover { background: #f0f7ff; }
td:first-child { min-width: 220px; max-width: 440px; overflow-wrap: anywhere; }
td small { display: block; font-size: 11px; margin-top: 5px; }
.ticket-link { font-size: 13px; color: #102f58; font-weight: 750; }
.badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 25px; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; background: #e8f2fc; color: #155ea8; font-size: 10px; font-weight: 750; letter-spacing: 0; white-space: normal; text-align: left; line-height: 1.3; }
.badge.in_progress { background: #fff3d9; color: #8a6215; }
.badge.triaged, .badge.waiting_for_reporter { background: #f3ecff; color: #6942a1; }
.badge.resolved, .badge.closed { background: #e8f6ef; color: #247450; }
.badge.cannot_reproduce { background: #f0f2f5; color: #5b6572; }
.badge.internal { margin-left: 8px; background: #f3edff; color: #722ed1; }
.priority { display: inline-flex; align-items: center; gap: 5px; color: #58708d; font-size: 11px; font-weight: 650; white-space: nowrap; }
.critical { color: #a82d3a; }.high { color: #8a5616; }.medium { color: #87640a; }.low { color: #247450; }
.empty { padding: 48px 20px 52px; border-top: 1px solid #e4ebf3; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #c5daef; border-radius: 18px; background: linear-gradient(135deg,#eaf4ff,#f3edff); color: #1268c4; margin: 0 auto 18px; }
.empty-icon .desk-icon { width: 26px; height: 26px; }
.empty h2 { font-size: 19px; margin-bottom: 8px; }
.empty p { font-size: 13px; margin-bottom: 20px; }
.empty a { font-size: 12px; font-weight: 750; }
.pagination { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 22px; border-top: 1px solid #e4ebf3; margin: 0; font-size: 11px; color: #63738a; }
.pagination a { margin-left: 15px; }
.connection-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; color: #63738a; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #1890ff; flex: 0 0 auto; }
footer { display: flex; justify-content: space-between; gap: 16px; margin: 35px 0 8px; padding-top: 18px; border-top: 1px solid #dfe8f3; font-size: 11px; color: #63738a; }
footer strong { color: #52708e; }
label { display: block; margin: 0 0 17px; font-size: 12px; font-weight: 650; color: #36516f; }
label small { display: block; font-weight: 400; font-size: 10px; margin-top: 3px; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 40px; padding: 10px 11px; margin-top: 7px; border: 1px solid #cedceb; border-radius: 8px; background: #fff; color: #172033; }
input:focus, select:focus, textarea:focus { border-color: #1890ff; box-shadow: 0 0 0 3px rgba(24,144,255,.13); }
input[type="hidden"] { display: none; }
textarea { resize: vertical; }
.flash { padding: 14px 17px; border: 1px solid #b8e3cf; border-radius: 10px; margin-bottom: 20px; background: #edf8f2; color: #246547; font-size: 12px; overflow-wrap: anywhere; }
.warning { background: #fff8ed; border-color: #ebd3af; color: #8a5616; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.detail-grid > * { min-width: 0; }
.detail-copy { padding: 24px; }
.detail-copy h2 { margin-bottom: 23px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; color: #36516f; font-size: 13px; line-height: 1.8; }
.inline { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 23px; }
.back { display: inline-block; font-size: 12px; font-weight: 650; margin-bottom: 16px; }
.form-note { color: #63738a; font-size: 11px; margin: 14px 0 0; line-height: 1.6; }
.timeline article { position: relative; display: flex; gap: 18px; border-left: 1px solid #cbdcec; padding: 0 0 25px 21px; margin-left: 5px; }
.timeline article:last-child { padding-bottom: 0; }
.timeline strong { font-size: 12px; }.timeline time { display: block; color: #63738a; font-size: 10px; margin-top: 3px; }
.timeline p { font-size: 12px; margin: 9px 0 0; }
.timeline-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #1890ff; left: -5px; top: 5px; }
.detail-copy dl { margin: 0; display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 17px; font-size: 12px; }
.detail-copy dt { color: #63738a; font-weight: 600; }.detail-copy dd { margin: 0; overflow-wrap: anywhere; }
code { display: block; background: #eff5fb; color: #4d6581; font-size: 11px; padding: 8px; margin-top: 7px; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f8fb; color: #4d6581; font-size: 11px; }
details { margin-top: 22px; }summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.system-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.system { position: relative; padding: 28px; background: linear-gradient(135deg,#f7fbff,#fff 52%,#faf7ff); }
.system-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg,#1890ff,#722ed1); color: #fff; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(24,144,255,.16); }
.system-icon .desk-icon { width: 23px; height: 23px; }.system > .badge { float: right; }
.system h2 { margin-bottom: 4px; }.system > a { font-size: 12px; overflow-wrap: anywhere; }
.system hr { border: 0; border-top: 1px solid #dfe8f3; margin: 25px 0; opacity: 1; }
.system-details { display: flex; justify-content: space-between; gap: 15px; }.system-details strong { font-size: 17px; font-weight: 750; }.system-details small { display: block; font-size: 11px; }
.system .system-link { display: inline-block; margin-top: 25px; font-weight: 750; }
.error { color: #a82d3a; font-size: 12px; margin-top: 20px; overflow-wrap: anywhere; }
.add-system { max-width: 680px; }.add-system form { margin-top: 25px; }.add-system[open] > summary { margin-bottom: 16px; }
.member { display: flex; align-items: center; gap: 12px; padding: 19px 0; border-top: 1px solid #e4ebf3; }.member strong { font-size: 12px; }.member small { display: block; overflow-wrap: anywhere; }.member .badge { margin-left: auto; }.member > div:not(.avatar) { min-width: 0; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #eaf4ff; color: #1268c4; font-weight: 750; flex-shrink: 0; }
.narrow { max-width: 570px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sutra-auth-showcase .desk-brand { color: #fff; margin-bottom: 70px; }.sutra-auth-showcase .desk-brand small { color: #b9d9f4; }
.sutra-auth-feature > .desk-icon { color: #5fe0df; width: 22px; height: 22px; margin-bottom: 12px; }
.sutra-auth-portal-badge > .desk-icon { color: #1268c4; }
.sutra-auth-trust > .desk-icon { width: 17px; height: 17px; color: #247450; }
.sutra-auth-panel .form-label { display: block; }.sutra-auth-panel .full { margin-top: 25px; }
@media (max-width: 1100px) {
  .desk-workspace { display: none; }
  .v2-page-container { padding: 20px; }
  .v2-page-hero { padding: 24px; gap: 20px; }
  .stats a { padding: 18px; }.stats .stat-icon { right: 16px; top: 18px; width: 32px; height: 32px; }
}
@media (max-width: 800px) {
  .v2-shell-header { padding: 16px 18px; flex-wrap: wrap; gap: 16px; }
  .v2-header-right { margin-left: auto; }.v2-session-copy { grid-template-columns: minmax(0,1fr); }.v2-session-login { display: none; }
  .v2-nav-inner { padding: 8px 18px; }.staff-label { display: none; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .system-grid { gap: 16px; }.system { padding: 22px; }
  .v2-page-hero__icon { display: none; }
}
@media (max-width: 560px) {
  .v2-shell-header { gap: 14px; padding: 18px 16px 12px; }
  .desk-brand strong { font-size: 21px; }.desk-brand img { width: 38px; height: 38px; }
  .v2-header-right { width: 100%; margin: 0; justify-content: space-between; }
  .v2-session-card { border: 0; padding: 0 8px; }.v2-session-copy { grid-template-columns: auto auto; }.v2-session-login { display: block; max-width: 210px; font-size: 10px; }.v2-session-name { max-width: 115px; font-size: 12px; }.v2-session-role { font-size: 9px; padding: 3px 7px; }
  .v2-header-actions { gap: 5px; }.v2-header-actions .nav-link { width: 36px; height: 36px; }
  .v2-nav-inner { padding: 8px 12px; }.v2-main-nav { width: 100%; }.v2-main-nav .topbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 4px; }.v2-main-nav .topbar > .nav-item > .nav-link { justify-content: flex-start; font-size: 11px; padding: 8px; min-height: 40px; }
  .v2-page-container { padding: 16px 12px; }.v2-page-hero { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px; border-radius: 18px; min-height: 0; }.v2-page-hero__actions { align-self: flex-start; }.v2-page-hero h1 { font-size: 26px; }
  .stats { gap: 10px; }.stats a { padding: 16px 13px; }.stats .stat-icon { position: static; width: 30px; height: 30px; margin-bottom: 10px; }.stats a > span:not(.stat-icon) { padding: 0; font-size: 11px; }.stats strong { font-size: 28px; }.stats small { font-size: 10px; }
  .panel-heading { align-items: flex-start; padding: 18px; }.panel-heading h2 { font-size: 16px; }.panel-heading a { font-size: 10px; text-align: right; }
  .filters { gap: 12px; padding: 18px; }.filters .search { flex-basis: 100%; }.filters label { flex-basis: 100%; }
  .system-grid { grid-template-columns: minmax(0,1fr); gap: 0; }.detail-copy { padding: 20px; }.detail-copy dl { grid-template-columns: 90px minmax(0,1fr); gap: 14px; }
  .member { flex-wrap: wrap; }.member .badge { margin-left: 48px; }.member > div:not(.avatar) { flex: 1; }
  footer { font-size: 10px; gap: 10px; }.sutra-auth-showcase .desk-brand { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
