/* Task surfaces for the live-derived CommandLineLab redesign.
   All rules are scoped to the redesigned shell and existing role views. */
body.cl-redesign .cl-ux-event-nav {
  gap: 3px 24px;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid #344b50;
  overflow-x: auto;
  flex-wrap: nowrap;
}
body.cl-redesign .cl-ux-event-nav a {
  flex: none;
  min-height: 48px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #b9cbc8;
  white-space: nowrap;
}
body.cl-redesign .cl-ux-event-nav a[aria-current="page"] {
  border-bottom-color: #68e0a4;
  color: #eafbf1;
}
body.cl-redesign .cl-ux-event-nav a:hover { color: #eafbf1; background: transparent; }

body.cl-redesign .cl-ux-events > .ev-section-intro,
body.cl-redesign .cl-ux-workspace > .ev-workspace-header,
body.cl-redesign .cl-ux-organiser > .ops-head,
body.cl-redesign .cl-ux-company > .co-head,
body.cl-redesign .cl-ux-desktop > .ev-workspace-header {
  margin: 0 0 26px;
  padding: 3px 0 24px;
  border: 0;
  border-bottom: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-events > .ev-section-intro h1,
body.cl-redesign .cl-ux-workspace > .ev-workspace-header h1,
body.cl-redesign .cl-ux-organiser .ops-head h1,
body.cl-redesign .cl-ux-company .co-head h1 {
  margin: 6px 0 9px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.12;
}
body.cl-redesign .cl-ux-events .ev-overview {
  display: flex;
  align-items: center;
  gap: 18px 30px;
  flex-wrap: wrap;
  margin: 20px 0 34px;
  padding: 16px 0;
  border-top: 1px solid #344b50;
  border-bottom: 1px solid #344b50;
  background: transparent;
}
body.cl-redesign .cl-ux-events .ev-overview a { margin-left: auto; }
body.cl-redesign .cl-ux-events .ev-ongoing > .ev-section-intro { margin: 30px 0 10px; }
body.cl-redesign .cl-ux-events .ev-ongoing > .ev-section-intro h2 { margin: 0 0 4px; }
body.cl-redesign .cl-ux-events .ev-event-card,
body.cl-redesign .cl-ux-company .co-event {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.cl-redesign .cl-ux-events .ev-event-card:hover,
body.cl-redesign .cl-ux-company .co-event:hover { border-color: #537965; }
body.cl-redesign .cl-ux-events .ev-event-card .ev-next {
  margin: 14px 0 8px;
  padding: 0 0 0 15px;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-events > .ev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: #10251e;
}
body.cl-redesign .cl-ux-events > .ev-next .ev-actions { margin: 0; }
body.cl-redesign .cl-ux-events .ev-join-feature,
body.cl-redesign .cl-ux-events .ev-empty,
body.cl-redesign .cl-ux-events .ev-past {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
body.cl-redesign .cl-ux-events .ev-past summary { min-height: 44px; }

body.cl-redesign .cl-ux-workspace #overview .ev-grid {
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 36px;
}
body.cl-redesign .cl-ux-workspace #overview .ev-grid > .ev-card {
  margin: 0;
  padding: 4px 25px 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-workspace #overview .ev-grid > .ev-card + .ev-card {
  padding-left: 25px;
  border-left: 1px solid #344b50;
}
body.cl-redesign .cl-ux-workspace #overview .ev-price { font-size: clamp(2rem, 3.5vw, 3rem); }
body.cl-redesign .cl-ux-workspace #vpn {
  margin: 28px 0 38px;
  padding: 25px 0 4px;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-workspace .ev-preparation,
body.cl-redesign .cl-ux-workspace .ev-learning {
  border: 0;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: #10251e;
}
body.cl-redesign .cl-ux-workspace #challenges { margin-top: 34px; }
body.cl-redesign .cl-ux-workspace #challenges > h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
body.cl-redesign .cl-ux-workspace #questline,
body.cl-redesign .cl-ux-workspace #optional-challenges { margin-top: 28px; }
body.cl-redesign .cl-ux-workspace .ev-challenge-card {
  padding: 22px;
  border-color: #30483f;
  background: #101d1e;
  box-shadow: none;
}
body.cl-redesign .cl-ux-workspace .ev-challenge-card:hover { border-color: #69bd91; }
body.cl-redesign .cl-ux-workspace .ev-challenge-card h3 { margin: 16px 0 8px; }
body.cl-redesign .cl-ux-workspace .ev-challenge-card .ev-actions { margin-top: auto; }
body.cl-redesign .cl-ux-workspace .ev-scroll { border-top: 1px solid #344b50; }
body.cl-redesign .cl-ux-workspace .ev-score-table td,
body.cl-redesign .cl-ux-workspace .ev-score-table th { padding: 14px 12px; }

body.cl-redesign .cl-ux-challenge .ev-challenge-header { margin: 0 0 22px; }
body.cl-redesign .cl-ux-challenge .ev-challenge-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}
body.cl-redesign .cl-ux-challenge .ev-challenge-grid > .ev-description {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-challenge .ev-challenge-grid > aside {
  position: sticky;
  top: 102px;
  margin: 0;
  padding: 24px;
  border-color: #426d56;
  background: #10231d;
}
body.cl-redesign .cl-ux-challenge .ev-description > .ev-actions {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #344b50;
}
body.cl-redesign .cl-ux-challenge .ev-description details.ev-hint {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-challenge .ev-description details.ev-hint summary { min-height: 44px; }
body.cl-redesign .cl-ux-challenge .ev-debrief {
  margin: 18px 0;
  padding: 17px 0 17px 18px;
  border: 0;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-proof {
  max-width: 700px;
  margin: 30px auto;
  padding: 12px 0 30px;
  border: 0;
  border-top: 3px solid #68e0a4;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-proof .ev-alert { padding: 20px; background: #10251e; }
body.cl-redesign .cl-ux-desktop .ev-actions { margin: 16px 0 22px; }
body.cl-redesign .cl-ux-desktop > .ev-card {
  padding: 18px 0 18px 20px;
  border: 0;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: transparent;
}
body.cl-ux-desktop-full .toolbar {
  min-height: 62px;
  padding: 10px clamp(14px, 2.5vw, 32px);
  border-bottom: 1px solid #344b50;
  background: #0c171a;
}
body.cl-ux-desktop-full .toolbar strong { font-size: 1rem; letter-spacing: .01em; }
body.cl-ux-desktop-full .toolbar :is(a,button) { min-height: 42px; border-color: #41675a; }
body.cl-ux-desktop-full .toolbar :is(a,button):hover { background: #153328; }
body.cl-ux-desktop-full .ev-kali-notice {
  padding: 10px clamp(14px, 2.5vw, 32px);
  border: 0;
  border-bottom: 1px solid #315345;
  background: #10251e;
}
body.cl-ux-desktop-full .message { padding-top: clamp(28px, 5vh, 70px); }
body.cl-ux-desktop-full .message h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

body.cl-redesign .cl-ux-organiser .ops-head { margin-bottom: 20px; }
body.cl-redesign .cl-ux-organiser .ops-nav {
  gap: 6px 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid #344b50;
}
body.cl-redesign .cl-ux-organiser .ops-nav a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #bce8d3;
  padding: 8px 2px;
}
body.cl-redesign .cl-ux-organiser .ops-nav a:first-child { color: #68e0a4 !important; }
body.cl-redesign .cl-ux-organiser .ops-stat-grid { gap: 0; margin: 24px 0 34px; }
body.cl-redesign .cl-ux-organiser .ops-stat {
  padding: 5px 24px 6px 0;
  border: 0;
  border-right: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-organiser .ops-stat + .ops-stat { padding-left: 24px; }
body.cl-redesign .cl-ux-organiser .ops-stat:last-child { border-right: 0; }
body.cl-redesign .cl-ux-organiser .ops-grid { gap: clamp(20px, 4vw, 46px); }
body.cl-redesign .cl-ux-organiser .ops-grid > .ev-card {
  padding: 22px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-organiser #ops-invitations { border-top-color: #68e0a4; }
body.cl-redesign .cl-ux-organiser #ops-participants {
  margin-top: 24px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-organiser #ops-participants table { min-width: 680px; }
body.cl-redesign .cl-ux-organiser #ops-participants .ev-scroll:focus-visible {
  outline: 3px solid #a5f0c3;
  outline-offset: 3px;
}
body.cl-redesign .cl-ux-organiser .ops-advanced.ev-card {
  padding: 20px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-company .co-event { margin: 0; }
body.cl-redesign .cl-ux-company .co-section { margin-top: 34px; }
body.cl-redesign .cl-ux-company .co-orders .ev-scroll { border-top: 1px solid #344b50; }
body.cl-redesign .cl-ux-company .co-orders .ev-scroll:focus-visible {
  outline: 3px solid #a5f0c3;
  outline-offset: 3px;
}

body.cl-redesign .cl-ux-flow { max-width: 1120px; margin-inline: auto; }
body.cl-redesign .cl-ux-flow > .cc-intro {
  max-width: 820px;
  margin-bottom: 22px;
  padding: 0 0 20px;
  border-bottom: 1px solid #344b50;
}
body.cl-redesign .cl-ux-flow > .cc-intro h1 {
  max-width: 780px;
  margin: 6px 0 11px;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.13;
}
body.cl-redesign .cl-ux-flow > .cc-intro p { max-width: 70ch; }
body.cl-redesign .cl-ux-flow .cc-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  border-bottom: 1px solid #344b50;
}
body.cl-redesign .cl-ux-flow .cc-steps li {
  margin: 0;
  padding: 12px 9px 12px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #aebfbb;
  line-height: 1.35;
}
body.cl-redesign .cl-ux-flow .cc-steps li[aria-current="step"] {
  border-bottom-color: #68e0a4;
  background: transparent;
  color: #d5f8e4;
}
body.cl-redesign .cl-ux-flow .cc-steps:focus-visible {
  outline: 3px solid #a5f0c3;
  outline-offset: 3px;
}
body.cl-redesign .cl-ux-flow .cc-panel {
  box-shadow: none;
}
body.cl-redesign .cl-ux-book .cc-book-layout > section.cc-panel,
body.cl-redesign .cl-ux-review .cc-review-layout > section.cc-panel,
body.cl-redesign .cl-ux-checkout .cc-checkout-layout > section.cc-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-book .cc-book-layout > aside.cc-panel,
body.cl-redesign .cl-ux-review .cc-review-layout > section.cc-panel:last-child,
body.cl-redesign .cl-ux-checkout .cc-checkout-layout > section.cc-panel:last-child {
  align-self: start;
  padding: 25px;
  border: 0;
  border-left: 3px solid #68e0a4;
  border-radius: 0;
  background: #10251e;
}
body.cl-redesign .cl-ux-book .cc-book-layout > aside.cc-panel { position: sticky; top: 100px; }
body.cl-redesign .cl-ux-checkout .cc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.cl-redesign .cl-ux-flow .cc-summary-row { padding: 11px 0; border-color: #365047; }
body.cl-redesign .cl-ux-flow .cc-total { padding-top: 16px; border-top: 1px solid #6eb995; }
body.cl-redesign .cl-ux-flow .cc-form-grid { row-gap: 11px; }
body.cl-redesign .cl-ux-flow .cc-form-grid label { margin-bottom: 6px; }
body.cl-redesign .cl-ux-book .cc-slim-cards { gap: 0; }
body.cl-redesign .cl-ux-book .cc-slim-card {
  padding: 15px 16px 15px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-review .cc-review-submit {
  padding-top: 23px;
  border-top-color: #527461;
}
body.cl-redesign .cl-ux-submitted > .cc-panel,
body.cl-redesign .cl-ux-scheduled > .cc-panel,
body.cl-redesign .cl-ux-test-checkout > .cc-panel {
  margin: 0;
  padding: 23px 0;
  border: 0;
  border-top: 1px solid #344b50;
  border-radius: 0;
  background: transparent;
}
body.cl-redesign .cl-ux-submitted > .cc-panel:last-child {
  padding-left: 22px;
  border-top: 0;
  border-left: 3px solid #68e0a4;
  background: #10251e;
}
body.cl-redesign .cl-ux-flow .cc-order-status {
  border-color: #559375;
  background: #123026;
  color: #d0f8df;
}

@media (max-width: 900px) {
  body.cl-redesign .cl-ux-workspace #overview .ev-grid { grid-template-columns: 1fr; }
  body.cl-redesign .cl-ux-workspace #overview .ev-grid > .ev-card + .ev-card {
    margin-top: 18px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid #344b50;
  }
  body.cl-redesign .cl-ux-challenge .ev-challenge-grid { grid-template-columns: 1fr; }
  body.cl-redesign .cl-ux-challenge .ev-challenge-grid > aside { position: static; }
  body.cl-redesign .cl-ux-book .cc-book-layout > aside.cc-panel { position: static; }
}
@media (max-width: 680px) {
  body.cl-redesign .cl-ux-event-nav { gap: 16px; }
  body.cl-redesign .cl-ux-events > .ev-next { align-items: start; flex-direction: column; }
  body.cl-redesign .cl-ux-events .ev-overview a { margin-left: 0; }
  body.cl-redesign .cl-ux-organiser .ops-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cl-redesign .cl-ux-organiser .ops-stat,
  body.cl-redesign .cl-ux-organiser .ops-stat + .ops-stat { padding: 4px 8px; }
  body.cl-redesign .cl-ux-organiser .ops-stat:first-child { padding-left: 0; }
  body.cl-redesign .cl-ux-organiser .ops-stat strong { font-size: 1.5rem; }
  body.cl-redesign .cl-ux-organiser .ops-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }
  body.cl-redesign .cl-ux-organiser .ops-nav a { justify-content: flex-start; }
  body.cl-redesign .cl-ux-organiser #ops-participants table:not(:has(form)) { min-width: 0; }
  body.cl-redesign .cl-ux-organiser #ops-participants table:not(:has(form)) :is(th,td):last-child { display: none; }
  body.cl-redesign .cl-ux-company .co-orders .ev-scroll { overflow: visible; }
  body.cl-redesign .cl-ux-company .co-orders table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  body.cl-redesign .cl-ux-company .co-orders thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.cl-redesign .cl-ux-company .co-orders tbody { display: grid; gap: 8px; }
  body.cl-redesign .cl-ux-company .co-orders tbody tr {
    display: grid;
    padding: 12px 0 18px;
    border-bottom: 1px solid #344b50;
  }
  body.cl-redesign .cl-ux-company .co-orders tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }
  body.cl-redesign .cl-ux-company .co-orders tbody td::before {
    content: attr(data-label);
    flex: 0 0 39%;
    color: #a5beb5;
    font-weight: 600;
    text-align: left;
  }
  body.cl-redesign .cl-ux-company .co-orders tbody td:last-child a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  body.cl-redesign .cl-ux-flow .cc-steps {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(130px, 1fr);
    overflow-x: auto;
    scrollbar-color: #527461 #111e20;
  }
  body.cl-redesign .cl-ux-flow .cc-steps li { font-size: .78rem; }
  body.cl-redesign .cl-ux-flow .cc-panel { min-width: 0; }
}
@media (max-width: 420px) {
  body.cl-redesign .cl-ux-organiser .ops-stat-grid { grid-template-columns: 1fr; }
  body.cl-redesign .cl-ux-organiser .ops-stat,
  body.cl-redesign .cl-ux-organiser .ops-stat + .ops-stat {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #344b50;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.cl-redesign :is(.cl-ux-events,.cl-ux-workspace,.cl-ux-challenge,.cl-ux-organiser,.cl-ux-flow) * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
