
:root{
  --bg:#0b0529;
  --field:#3b0090;
  --btn-primary:#6700ff;
  --btn-secondary:transparent;
  --border:#8045ff;
  --text:#ffffff;
  --text-muted:rgba(255,255,255,0.5);
  --good:#10b981;
  --bad:#ef4444;
  --radius:5px;
  --shadow:0 6px 22px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'PPMori', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:200;
  color:var(--text);
  background:var(--bg);
  letter-spacing:.2px;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.container{
  min-height:100%;
  display:grid;
  grid-template-rows:auto 1fr;
}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(260px,320px) 1fr;
  background:var(--bg);
}

.app-shell[data-sidebar-open="false"]{
  grid-template-columns:52px 1fr;
}

.app-shell-main{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
}

.app-sticky-report{
  position:sticky;
  bottom:0;
  left:0;
  right:0;
  z-index:15;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:60px;
  margin:0;
  margin-top:auto;
  background:rgba(20,9,60,0.92);
  color:var(--text);
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  letter-spacing:0.6px;
  text-transform:none;
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:0 -6px 22px rgba(0,0,0,0.35);
  flex-shrink:0;
}

.app-sticky-report:hover,
.app-sticky-report:focus-visible{
  background:rgba(68,15,145,0.95);
  color:#fff;
}

.app-sticky-report:focus-visible{
  outline:2px solid var(--border);
  outline-offset:-4px;
}

.app-sticky-report__label{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.app-sticky-report__icon{
  font-size:18px;
  line-height:1;
}

.touchpoints-main{
  display:flex;
  flex-direction:column;
  gap:32px;
  padding:32px;
  min-height:100%;
  background:linear-gradient(180deg, rgba(27,15,66,0.9) 0%, rgba(11,5,41,0.95) 100%);
}

.touchpoints-header{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.touchpoints-eyebrow{
  margin:0;
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.touchpoints-title{
  margin:0;
  font-size:34px;
  font-weight:400;
}

.touchpoints-subtitle{
  margin:0;
  max-width:600px;
  color:var(--text-muted);
  font-size:16px;
}

.touchpoints-grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  align-content:start;
}

.touchpoint-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:22px;
  border:1px solid rgba(128,69,255,0.4);
  border-radius:14px;
  background:rgba(29,18,70,0.9);
  backdrop-filter:blur(12px);
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  color:#fff;
}

.touchpoint-card:focus{
  outline:none;
}

.touchpoint-card:focus-visible{
  outline:2px solid rgba(128,69,255,0.8);
  outline-offset:4px;
}

.touchpoint-card:hover{
  transform:translateY(-4px);
  border-color:rgba(173,133,255,0.9);
  box-shadow:0 16px 40px rgba(0,0,0,0.35);
}

.touchpoint-card__title{
  margin:0;
  font-size:22px;
  font-weight:400;
}

.touchpoint-card__meta{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
}

.touchpoint-modal[hidden]{
  display:none;
}

.touchpoint-modal{
  position:fixed;
  inset:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  color:var(--text);
}

.touchpoint-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,4,32,0.85);
  backdrop-filter:blur(18px);
}

.touchpoint-modal__dialog{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:0;
  max-height:min(90vh, 920px);
  overflow:hidden;
}

.touchpoint-modal__close{
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(128,69,255,0.5);
  background:rgba(27,14,70,0.6);
  color:var(--text);
  font-size:24px;
  line-height:1;
  cursor:pointer;
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.touchpoint-modal__close:hover,
.touchpoint-modal__close:focus-visible{
  border-color:rgba(173,133,255,0.9);
  outline:none;
}

.touchpoint-modal__workspace{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:20px;
  border:0px solid rgba(128,69,255,0.35);
  overflow:auto;
  min-height:0;
}

.report-card-modal[hidden]{
  display:none;
}

.report-card-modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
  background:rgba(10,4,32,0.82);
  backdrop-filter:blur(18px);
}

.report-card-modal__dialog{
  width:min(960px, 95vw);
  max-height:90vh;
  background:rgba(17,6,52,0.95);
  border:1px solid rgba(128,69,255,0.45);
  border-radius:14px;
  box-shadow:0 22px 60px rgba(0,0,0,0.55);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.report-card-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 28px 18px;
}

.report-card-modal__title{
  margin:0;
  font-size:24px;
  font-weight:600;
}

.report-card-modal__close{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(233,225,255,0.35);
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease, transform .2s ease, border-color .2s ease;
}

.report-card-modal__close:hover,
.report-card-modal__close:focus-visible{
  background:rgba(233,225,255,0.18);
  border-color:rgba(233,225,255,0.6);
  outline:none;
  transform:translateY(-1px);
}

.report-card-modal__close:active{
  transform:translateY(0);
}

.report-card-modal__content{
  padding:0 28px 28px;
  overflow:auto;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.report-card-modal__content .report-card-panel{
  background:none;
  border:none;
  box-shadow:none;
  padding:0;
}

.report-card-modal__content .report-card-col-body{
  padding:0;
}

body.report-card-modal-open{overflow:hidden;}

.touchpoint-modal__layout{
  display:flex;
  flex:1;
  gap:24px;
  align-items:stretch;
  min-height:0;
}

.touchpoint-modal__details{
  flex:0 0 320px;
  display:flex;
  flex-direction:column;
  gap:16px;
  overflow:auto;
  min-height:0;
}

.touchpoint-modal__details-placeholder{
  margin:0;
  font-size:15px;
  line-height:1.5;
  color:rgba(255,255,255,0.7);
}

.touchpoint-modal__content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}

.touchpoint-modal__details .action-card{
  width:100%;
  margin:0;
}

.action-card--summary{
  cursor:default;
  box-shadow:none;
}

.action-card--summary:focus,
.action-card--summary:focus-visible{
  outline:none;
}

.action-card--summary .action-card-details{
  display:flex !important;
  flex-direction:column;
  gap:16px;
}

.touchpoint-panel[hidden]{
  display:none;
}

.touchpoint-panel__placeholder{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:24px;
  border-radius:16px;
  background:rgba(24,11,60,0.8);
  height:100%;
  justify-content:center;
  color:var(--text-muted);
}

.touchpoint-panel__placeholder h3{
  margin:0;
  font-size:22px;
  font-weight:400;
  color:var(--text);
}

.composer__header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.composer__eyebrow{
  margin:0;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.composer__title{
  margin:4px 0 0;
  font-size:26px;
  font-weight:500;
}

.composer__transport{
  display:flex;
  flex-direction:column;
}

.composer__transport-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.composer__controls{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px;
}

.composer__btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(103,0,255,0.22);
  color:var(--text);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.composer__btn svg{
  width:18px;
  height:18px;
}

.composer__btn-icon{
  display:none;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
}

.composer__btn-icon svg{
  width:18px;
  height:18px;
}

.composer__btn[data-mode="record"] .composer__btn-icon--record,
.composer__btn[data-mode="stop"] .composer__btn-icon--stop,
.composer__btn[data-mode="play"] .composer__btn-icon--play,
.composer__btn[data-mode="pause"] .composer__btn-icon--pause,
.composer__btn[data-mode="upload"] .composer__btn-icon--upload,
.composer__btn[data-mode="noise"] .composer__btn-icon--noise,
.composer__btn[data-mode="reset"] .composer__btn-icon--reset{
  display:inline-flex;
}

.composer__btn[disabled]{
  opacity:0.45;
  cursor:not-allowed;
  box-shadow:none;
}

.composer__btn:not([disabled]):hover,
.composer__btn:not([disabled]):focus-visible{
  transform:translateY(-1px);
  border-color:rgba(173,133,255,0.85);
  background:rgba(124,48,255,0.32);
  box-shadow:0 10px 28px rgba(103,0,255,0.45);
}

.composer__btn:not([disabled]):focus-visible{
  outline:2px solid rgba(173,133,255,0.8);
  outline-offset:2px;
}

.composer__waterfall{
  position:relative;
  height:100px;
}

.composer__octave-controls{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.composer__octave-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(103,0,255,0.18);
  color:var(--text);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.composer__octave-btn svg{
  width:14px;
  height:14px;
}

.composer__octave-btn[disabled]{
  opacity:0.4;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.composer__octave-btn:not([disabled]):hover,
.composer__octave-btn:not([disabled]):focus-visible{
  transform:translateY(-1px);
  border-color:rgba(173,133,255,0.8);
  background:rgba(124,48,255,0.32);
  box-shadow:0 6px 18px rgba(103,0,255,0.35);
}

.composer__octave-btn:not([disabled]):focus-visible{
  outline:2px solid rgba(173,133,255,0.7);
  outline-offset:2px;
}

.composer__octave-label{
  font-size:13px;
  font-weight:500;
  color:var(--text-muted);
  white-space:nowrap;
}

.composer__timeline{
  width:100%;
}

.composer__timeline-input{
  --progress:0%;
  width:100%;
  appearance:none;
  height:5px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(173,133,255,0.85) var(--progress), rgba(255,255,255,0.16) var(--progress));
  cursor:pointer;
  transition:box-shadow .2s ease;
}

.composer__timeline-input:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(173,133,255,0.35);
}

.composer__timeline-input:disabled{
  cursor:not-allowed;
  opacity:0.4;
  background:rgba(255,255,255,0.12);
}

.composer__timeline-input::-webkit-slider-runnable-track{
  height:5px;
  border-radius:999px;
  background:transparent;
}

.composer__timeline-input::-webkit-slider-thumb{
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  border:2px solid rgba(173,133,255,0.85);
  box-shadow:0 0 0 2px rgba(11,5,41,0.85);
  margin-top:-4.5px;
}

.composer__timeline-input:disabled::-webkit-slider-thumb{
  background:rgba(255,255,255,0.65);
  border-color:rgba(173,133,255,0.5);
  box-shadow:none;
}

.composer__timeline-input::-moz-range-track{
  height:5px;
  border-radius:999px;
  background:rgba(255,255,255,0.16);
}

.composer__timeline-input::-moz-range-progress{
  height:5px;
  border-radius:999px;
  background:rgba(173,133,255,0.85);
}

.composer__timeline-input::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff;
  border:2px solid rgba(173,133,255,0.85);
  box-shadow:0 0 0 2px rgba(11,5,41,0.85);
}

.composer__timeline-input:disabled::-moz-range-progress{
  background:rgba(255,255,255,0.16);
}

.composer__timeline-input:disabled::-moz-range-thumb{
  background:rgba(255,255,255,0.65);
  border-color:rgba(173,133,255,0.5);
  box-shadow:none;
}

.composer__status-message{
  margin:0;
  font-size:13px;
  color:var(--text-muted);
  min-height:18px;
}

.midi-studio__track-name-cell{
  padding-right:16px;
  vertical-align:middle;
}

.midi-studio__track-pill{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  padding:6px 12px;
  border-radius:5px;
  background:var(--midi-track-pill-bg, rgba(106,92,255,0.4));
  color:var(--midi-track-pill-color, #fff);
  font-weight:600;
  line-height:1.2;
  border:0;
  box-shadow:0 6px 16px rgba(11,5,41,0.3);
}

.midi-studio__track-instrument-cell{
  vertical-align:middle;
}

.midi-track-instrument{
  width:100%;
  max-width:320px;
}

.midi-track-instrument__control{
  position:relative;
  display:flex;
  align-items:center;
}

.midi-track-instrument__select{
  width:100%;
  padding:12px 44px 12px 16px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(46,12,120,0.94);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  line-height:1.4;
  appearance:none;
  box-shadow:0 10px 24px rgba(11,5,41,0.24);
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.midi-track-instrument__icon{
  position:absolute;
  right:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  color:rgba(244,240,255,0.82);
}

.midi-track-instrument__icon svg{
  width:18px;
  height:18px;
}

.midi-track-instrument__select:disabled{
  opacity:0.65;
  cursor:wait;
}

.midi-track-instrument__select:focus{
  outline:2px solid rgba(162,119,255,0.6);
  outline-offset:2px;
  border-color:rgba(162,119,255,0.9);
}

.midi-track-instrument__select:hover:not(:disabled){
  background:rgba(85,32,180,0.98);
  transform:translateY(-1px);
}

.composer-note{
  position:absolute;
  bottom:0;
  border-radius:8px;
  background:linear-gradient(180deg, #6a5cff 0%, #4a35d6 100%);
  opacity:0.88;
  animation:composer-note-rise var(--rise-duration, 6s) linear forwards;
}

@keyframes composer-note-rise{
  from{
    transform:translateY(0);
    opacity:0.92;
  }
  to{
    transform:translateY(-110%);
    opacity:0;
  }
}

/* Multitrack mixer */
.mixer__header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.mixer__eyebrow{
  margin:0;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.mixer__title{
  margin:6px 0 0;
  font-size:28px;
  font-weight:500;
}

.mixer__transport{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.mixer__btn{
  min-width:120px;
}

.mixer__status{
  margin:0 0 20px;
  min-height:24px;
  color:var(--text-muted);
}

.mixer__board{
  display:flex;
  align-items:flex-end;
  gap:16px;
  position:relative;
}

.mixer__pinboard{
  position:sticky;
  left:0;
  z-index:2;
  display:flex;
  align-items:flex-end;
  gap:12px;
  min-height:320px;
  padding-right:0;
  background:transparent;
  isolation:isolate;
  flex:0 0 auto;
}

.mixer__pinboard.has-pinned,
.mixer__pinboard.is-active{
  padding-right:4px;
}

.mixer__pinboard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:18px;
  opacity:0;
  transition:opacity .18s ease;
  box-shadow:0 18px 30px rgba(9,5,27,0.55);
  z-index:-1;
}

.mixer__pinboard.has-pinned::after,
.mixer__pinboard.is-active::after{
  opacity:1;
}

.mixer__pin-target{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:0;
  height:320px;
  border-radius:18px;
  border:1px dashed rgba(173,133,255,0.55);
  background:rgba(25,13,66,0.82);
  color:var(--text-muted);
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  opacity:0;
  transition:width .2s ease, opacity .2s ease;
  pointer-events:none;
}

.mixer__pin-target span[aria-hidden="true"]{
  transform:rotate(-90deg);
}

.mixer__pinboard.is-active .mixer__pin-target{
  width:72px;
  opacity:1;
}

.mixer__pinned{
  display:flex;
  align-items:flex-end;
  gap:12px;
  min-height:320px;
}

.mixer__scroll{
  flex:1 1 auto;
  display:flex;
  align-items:flex-end;
  overflow-x:auto;
  padding-top:100px;
  mask-image:linear-gradient(90deg, transparent 0, rgba(0,0,0,1) 16px, rgba(0,0,0,1) calc(100% - 16px), transparent 100%);
}

.mixer__scroll::-webkit-scrollbar{
  height:10px;
}

.mixer__scroll::-webkit-scrollbar-thumb{
  background:rgba(120,90,210,0.45);
  border-radius:999px;
}

.mixer__tracks{
  display:flex;
  align-items:flex-end;
  gap:12px;
  min-height:320px;
  padding-right:4px;
}

.mixer-channel{
  position:relative;
  flex:0 0 auto;
  width:74px;
  min-height:320px;
  padding:56px 14px 18px;
  border-radius:18px;
  border:1px solid rgba(128,69,255,0.4);
  background:rgba(25,13,66,0.86);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04);
  display:flex;
  flex-direction:column;
  align-items:center;
  transition:background .18s ease, border-color .18s ease, box-shadow .18s ease, width .18s ease, transform .18s ease;
  cursor:pointer;
}

.mixer-channel:hover{
  background:rgba(42,20,102,0.92);
  border-color:rgba(173,133,255,0.6);
}

.mixer-channel:focus-visible{
  outline:2px solid rgba(173,133,255,0.85);
  outline-offset:3px;
}

.mixer-channel.is-expanded{
  width:150px;
  background:rgba(39,19,97,0.95);
  border-color:rgba(173,133,255,0.8);
  box-shadow:0 20px 45px rgba(16,10,37,0.55);
  cursor:default;
  min-height:420px;
}

.mixer-channel.is-expanded .mixer-channel__header{
  width:150%;
}

.mixer-channel--master{
  background:rgba(33,16,84,0.94);
  border-color:rgba(173,133,255,0.6);
  position:sticky;
  right:0;
  z-index:1;
}

.mixer-channel--pinned{
  box-shadow:0 18px 40px rgba(12,6,39,0.6);
}

.mixer-channel__header{
  position:absolute;
  top:16px;
  left:50%;
  transform:translate(-50%, -65%);
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(19,10,54,0.92);
  box-shadow:0 12px 28px rgba(10,6,33,0.55);
  opacity:1;
  pointer-events:auto;
  transition:transform .2s ease, box-shadow .2s ease;
  text-align:center;
  cursor:grab;
  user-select:none;
  touch-action:none;
}

.mixer-channel:hover .mixer-channel__header,
.mixer-channel:focus-visible .mixer-channel__header,
.mixer-channel.is-expanded .mixer-channel__header{
  transform:translate(-50%, -78%);
}

.mixer-channel__header:active,
.mixer-channel--dragging .mixer-channel__header{
  cursor:grabbing;
  box-shadow:0 18px 36px rgba(12,6,39,0.6);
}

.mixer-channel__title{
  margin:0;
  font-size:16px;
  font-weight:500;
}

.mixer-channel:not(.is-expanded) .mixer-channel__title{
  font-size:14px;
}

.mixer-channel__subtitle,
.mixer-channel__filename{
  margin:0;
  color:var(--text-muted);
  font-size:12px;
  word-break:break-word;
  display:none;
}

.mixer-channel.is-expanded .mixer-channel__subtitle{
  display:block;
}

.mixer-channel.is-expanded .mixer-channel__filename{
  display:none;
}

.mixer-channel__content{
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

.mixer-channel__effects{
  display:none;
  width:100%;
}

.mixer-channel.is-expanded .mixer-channel__effects{
  display:flex;
}

.mixer-effects{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(26,14,70,0.82);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04);
}

.mixer-effects__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mixer-effects__label{
  margin:0;
  font-size:13px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.mixer-effects__add{
  margin:0;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(43,23,102,0.85);
  color:var(--text);
  font-size:14px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.mixer-effects__add:hover,
.mixer-effects__add:focus-visible{
  border-color:rgba(173,133,255,0.85);
  background:rgba(58,29,132,0.88);
  box-shadow:0 8px 20px rgba(103,0,255,0.25);
}

.mixer-effects__add:focus-visible{
  outline:2px solid rgba(173,133,255,0.9);
  outline-offset:2px;
}

.mixer-effects__empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.mixer-effects__list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mixer-effects__item{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(21,12,60,0.85);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mixer-effects__item-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.mixer-effects__select{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(128,69,255,0.4);
  background:rgba(14,7,44,0.85);
  color:var(--text);
  padding:8px 12px;
  font-size:14px;
}

.mixer-effects__remove{
  border-radius:999px;
  border:1px solid rgba(255,90,127,0.6);
  background:rgba(81,24,56,0.82);
  color:#ff7ea5;
  padding:6px 12px;
  cursor:pointer;
  font-size:13px;
  line-height:1;
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}

.mixer-effects__remove:hover,
.mixer-effects__remove:focus-visible{
  border-color:rgba(255,120,150,0.85);
  background:rgba(102,32,72,0.88);
  color:#ff9bbd;
}

.mixer-effects__remove:focus-visible{
  outline:2px solid rgba(255,120,150,0.85);
  outline-offset:2px;
}

.mixer-effects__params{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mixer-effects__param{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
}

.mixer-effects__param-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--text-muted);
}

.mixer-effects__param-value{
  font-weight:500;
  color:var(--text);
}

.mixer-effects__param-input{
  width:100%;
  accent-color:#8f7aff;
}

.mixer-channel__toggles{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

.mixer-channel.is-expanded .mixer-channel__toggles{
  flex-direction:row;
  justify-content:center;
  gap:12px;
  width:100%;
}

.mixer-toggle{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(36,18,86,0.78);
  color:var(--text);
  font-size:16px;
  font-weight:600;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.mixer-toggle.is-active{
  background:rgba(103,0,255,0.85);
  border-color:rgba(173,133,255,0.9);
  box-shadow:0 8px 24px rgba(103,0,255,0.35);
  transform:translateY(-1px);
}

.mixer-toggle[disabled]{
  opacity:0.45;
  cursor:not-allowed;
}

.mixer-channel__pan,
.mixer-channel__fader{
  display:none;
  width:100%;
  justify-content:center;
}

.mixer-channel.is-expanded .mixer-channel__pan,
.mixer-channel.is-expanded .mixer-channel__fader{
  display:flex;
}

.mixer-channel__levels{
  display:flex;
  width:100%;
  justify-content:center;
  align-items:flex-end;
  gap:16px;
  margin-top:auto;
}

.mixer-pan{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:78px;
}

.mixer-pan__dial{
  --pan-position:0;
  --dial-angle:calc(var(--pan-position, 0) * 135deg);
  --pan-fill-start:calc(135deg + min(0deg, var(--pan-position, 0) * 135deg));
  --pan-fill-end:calc(135deg + max(0deg, var(--pan-position, 0) * 135deg));
  background:
    radial-gradient(circle at center, rgba(20,9,54,0.95) 38%, rgba(20,9,54,0) 42%),
    conic-gradient(
      from 225deg,
      rgba(157,192,255,0.18) 0deg var(--pan-fill-start),
      rgba(157,192,255,0.8) var(--pan-fill-start) var(--pan-fill-end),
      rgba(157,192,255,0.18) var(--pan-fill-end) 270deg,
      rgba(157,192,255,0.08) 270deg 360deg
    );
  touch-action:none;
}

.mixer-pan__dial .effects-rack__dial-indicator{
  transform-origin:50% 24px;
  transform:translateX(-50%) rotate(var(--dial-angle));
  transition:transform .18s ease;
}

.mixer-pan__dial .effects-rack__dial-center{
  background:rgba(20,9,54,0.9);
}

.mixer-pan__legend{
  display:flex;
  justify-content:space-between;
  width:100%;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.55);
  pointer-events:none;
}

.mixer-pan__legend span:nth-child(2){
  text-align:center;
  flex:1;
}

.mixer-pan__input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  border:0;
}

.mixer-fader{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.mixer-fader__input{
  width:36px;
  height:170px;
  writing-mode:vertical-lr;
  -webkit-appearance:slider-vertical;
  appearance:none;
  background:linear-gradient(180deg, rgba(32,19,86,0.85), rgba(18,10,52,0.92));
  border-radius:14px;
  border:1px solid rgba(128,69,255,0.35);
  padding:18px 0;
  position:relative;
  margin:0;
  cursor:pointer;
  transform:rotate(180deg);
  transform-origin:50% 50%;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05), inset 0 -18px 24px rgba(5,2,18,0.35);
}

.mixer-fader__input::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:30px;
  height:42px;
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(173,133,255,0.05)),
    repeating-linear-gradient(180deg, rgba(18,7,56,0.35) 0 4px, rgba(18,7,56,0) 4px 8px),
    rgba(173,133,255,0.92);
  border:1px solid rgba(255,255,255,0.4);
  box-shadow:0 10px 22px rgba(18,7,56,0.55);
  cursor:pointer;
}

.mixer-fader__input::-moz-range-thumb{
  width:30px;
  height:42px;
  border-radius:10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(173,133,255,0.05)),
    repeating-linear-gradient(180deg, rgba(18,7,56,0.35) 0 4px, rgba(18,7,56,0) 4px 8px),
    rgba(173,133,255,0.92);
  border:1px solid rgba(255,255,255,0.4);
  box-shadow:0 10px 22px rgba(18,7,56,0.55);
  cursor:pointer;
}

.mixer-fader__input::-webkit-slider-runnable-track{
  height:100%;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(19,11,54,0.4) 0%, rgba(19,11,54,0.75) 100%);
}

.mixer-fader__input::-moz-range-track{
  height:100%;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(19,11,54,0.4) 0%, rgba(19,11,54,0.75) 100%);
  border:1px solid rgba(128,69,255,0.3);
}

.mixer-fader__input::-moz-range-progress{
  background:linear-gradient(180deg, rgba(19,11,54,0.4) 0%, rgba(19,11,54,0.75) 100%);
  border-radius:12px;
}

.mixer-meter{
  position:relative;
  width:20px;
  height:160px;
  border-radius:12px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
  margin-top:auto;
}

.mixer-channel__levels .mixer-meter{
  margin-top:0;
}

.mixer-meter__fill{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  top:auto;
  background:linear-gradient(180deg, var(--good) 0%, #facc15 55%, var(--bad) 100%);
  transform-origin:bottom;
  transform:scaleY(var(--meter-level, 0));
  height:100%;
  transition:transform .08s ease-out, opacity .18s ease;
  opacity:0.6;
  will-change:transform, height;
}

.mixer-meter__fill.is-active{
  opacity:1;
}

.mixer-channel--dragging{
  cursor:grabbing;
  box-shadow:0 24px 48px rgba(14,8,44,0.65);
  pointer-events:none;
}

.mixer-channel--shift-left{
  transform:translateX(-18px);
}

.mixer-channel--shift-right{
  transform:translateX(18px);
}

.mixer-channel__placeholder{
  flex:0 0 auto;
  border-radius:18px;
  border:1px dashed rgba(173,133,255,0.45);
  background:rgba(33,18,92,0.4);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events:none;
}

.mixer__board.is-dragging{
  cursor:grabbing;
}

.composer__keyboard {
  position: relative;
  border-radius: 5px;
  padding: 10px 16px 0px;
  overflow: hidden;
}

.composer-keys{
  position:relative;
}

.composer-keys--white{
  position:relative;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(0,1fr);
  gap:4px;
  z-index:1;
}

.composer-keys--black{
  position:absolute;
  top:16px;
  left:16px;
  right:16px;
  height:110px;
  pointer-events:none;
  z-index:2;
}

.composer-key{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  border-radius:0 0 10px 10px;
  cursor:pointer;
  user-select:none;
  touch-action:none;
  transition:background .12s ease, transform .12s ease, box-shadow .12s ease;
  --composer-key-active-outline:rgba(128,69,255,0.45);
  --composer-key-active-fill-light:rgba(180,170,255,0.95);
  --composer-key-active-fill-dark:rgba(142,129,255,0.88);
}

.composer-keys--white .composer-key{
  width:100%;
  height:180px;
  padding-bottom:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(232,232,255,0.88) 100%);
  color:#050315;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:inset 0 -6px 0 rgba(0,0,0,0.08);
  z-index:1;
}

.composer-keys--black .composer-key{
  width:40px;
  height:110px;
  margin:0;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  background:linear-gradient(180deg, #080511 0%, #1f1735 100%);
  border:1px solid rgba(255,255,255,0.12);
  color:#f9f7ff;
  border-radius:0 0 8px 8px;
  box-shadow:inset 0 -6px 0 rgba(255,255,255,0.08);
  z-index:2;
  pointer-events:auto;
}

.param-eq{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.param-eq__header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.param-eq__eyebrow{
  margin:0;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.param-eq__title{
  margin:6px 0 0;
  font-size:28px;
  font-weight:500;
}

.param-eq__transport{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.param-eq__file-input{
  display:none;
}

.param-eq__btn{
  padding:0;
}

.param-eq__source-status{
  margin:0;
  margin-bottom:8px;
  font-size:14px;
  color:var(--text-muted);
}

.param-eq__visual{
  position:relative;
  overflow:hidden;
}

.param-eq__analyser{
  display:block;
  width:100%;
  height:260px;
  border-radius:5px;
}

.param-eq__graph{
  position:absolute;
  inset:12px 16px 32px;
  width:auto;
  height:auto;
}

.param-eq__curve{
  fill:none;
  stroke:#7bb3ff;
  stroke-width:2;
  pointer-events:none;
}

.param-eq__curve-fill{
  fill:url(#paramEqGradient);
  stroke:none;
  pointer-events:none;
}

.param-eq__handles{
  pointer-events:auto;
}

.param-eq__handle{
  cursor:grab;
  touch-action:none;
}

.param-eq__handle.is-active{
  cursor:grabbing;
}

.param-eq__handle circle{
  fill: #6a5dff;
  stroke: #6a5dff;
  stroke-width: 2;
  transition: fill .12s ease, stroke .12s ease;
}

.param-eq__handle text{
  fill:#dfeaff;
  font-size:11px;
  font-weight:500;
  text-anchor:middle;
  dominant-baseline:hanging;
  transform:translateY(8px);
}

.param-eq__handle.is-active circle{
  fill:#4a6ef4;
  stroke:#d7e3ff;
}

.param-eq__handle.is-bypassed circle{
  opacity:0.35;
}

.param-eq__scale{
  position:absolute;
  pointer-events:none;
  color:rgba(203,217,255,0.45);
  font-size:12px;
  letter-spacing:1px;
}

.param-eq__scale--freq{
  display:flex;
  justify-content:space-between;
  inset:auto 16px 6px 16px;
}

.param-eq__scale--gain{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:calc((100% - 18px) / 2);
  top:16px;
  left:18px;
  transform:translateY(-2px);
}

.param-eq__bands{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}

.param-eq-band{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  border-radius:5px;
  background:#2c0573;
  transition:border-color .15s ease, background .15s ease, opacity .15s ease;
}

.param-eq-band--bypassed{
  opacity:0.55;
}

.param-eq-band__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.param-eq-band__toggle{
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(35,25,88,0.8);
  color:var(--text);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease;
}

.param-eq-band__toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(173,133,255,0.8);
}

.param-eq-band__toggle[aria-pressed="true"]{
  background:rgb(11 119 141);
}

.param-eq-band__type{
  font-size:13px;
  color:var(--text-muted);
  letter-spacing:2px;
}

.param-eq-band__controls{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.param-eq-band__control{
  display:grid;
  grid-template-columns:72px 1fr auto;
  align-items:center;
  gap:12px;
  font-size:13px;
  color:var(--text-muted);
}

.param-eq-band__control input[type="range"]{
  -webkit-appearance:none;
  width:100%;
  height:4px;
  border-radius:5px;
  background:#6a5dff;
  cursor:pointer;
}

.param-eq-band__control input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#9dc0ff;
  border:1px solid rgba(255,255,255,0.4);
}

.param-eq-band__control input[type="range"]::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#9dc0ff;
  border:1px solid rgba(255,255,255,0.4);
}

.param-eq-band__value{
  justify-self:end;
  font-variant-numeric:tabular-nums;
  color:#ffffffab;
}

.composer-key.is-active{
  transform:translateY(2px);
  box-shadow:0 0 0 2px var(--composer-key-active-outline, rgba(128,69,255,0.45));
}

.composer-keys--black .composer-key.is-active{
  background:linear-gradient(180deg, var(--composer-key-active-fill-light, #6a5cff) 0%, var(--composer-key-active-fill-dark, #4a35d6) 100%);
}

.composer-keys--white .composer-key.is-active{
  background:linear-gradient(180deg, var(--composer-key-active-fill-light, rgba(180,170,255,0.95)) 0%, var(--composer-key-active-fill-dark, rgba(142,129,255,0.88)) 100%);
}

.midi-studio__keyboard{
  margin:24px 0;
}

.effects-rack{
  display:flex;
  flex-direction:column;
  gap:24px;
  color:var(--text);
}

.effects-rack__header{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.effects-rack__eyebrow{
  margin:0;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.effects-rack__title{
  margin:4px 0 0;
  font-size:26px;
  font-weight:500;
}

.effects-rack__controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.effects-rack__btn{
  padding:10px 18px;
  border-radius:18px;
  border:1px solid rgba(128,69,255,0.5);
  background:rgba(35,20,92,0.7);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.effects-rack__btn[disabled]{
  opacity:0.4;
  cursor:not-allowed;
}

.effects-rack__btn:not([disabled]):hover{
  transform:translateY(-2px);
  border-color:rgba(173,133,255,0.8);
  box-shadow:0 8px 20px rgba(103,0,255,0.35);
}

.effects-rack__file-input{
  display:none;
}

.effects-rack__status{
  margin:0;
  color:var(--text-muted);
  min-height:20px;
}

.effects-rack__effect-picker{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.effects-rack__label{
  display:none;
  font-size:14px;
  font-weight:500;
  color:var(--text-muted);
}

.effects-rack__select{
  appearance:none;
  padding:10px 14px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(15,7,46,0.84);
  color:var(--text);
  font-size:18px;
  font-weight: 100;
  line-height:1.4;
}

.effects-rack__select:focus{
  outline:2px solid rgba(128,69,255,0.8);
  outline-offset:2px;
}

.effects-rack__transport{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}

.effects-rack__status{
  margin:0 0 18px;
  font-size:13px;
  color:var(--text-muted);
}

.effects-rack__params{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(1, minmax(0, 1fr));
}

.effects-rack__params-empty{
  margin:0;
  color:var(--text-muted);
}

.effects-rack__param{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  min-width:0;
}

.effects-rack__param-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-size:14px;
  font-weight:500;
  color:var(--text);
}

.effects-rack__param-value{
  font-variant-numeric:tabular-nums;
  color:var(--text-muted);
  font-size:13px;
}

.effects-rack__param--select{
  align-items:flex-start;
  text-align:left;
  gap:8px;
}

.effects-rack__param--select .effects-rack__param-label{
  align-items:flex-start;
}

.effects-rack__param--select .effects-rack__param-value{
  align-self:flex-start;
}

.effects-rack__dial{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:78px;
  height:78px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(128,69,255,0.45);
  background:
    radial-gradient(circle at center, rgba(20,9,54,0.95) 38%, rgba(20,9,54,0) 42%),
    conic-gradient(from 225deg, rgba(157,192,255,0.8) var(--dial-fill-angle, 0deg), rgba(157,192,255,0.18) var(--dial-fill-angle, 0deg));
  color:inherit;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  touch-action:none;
  user-select:none;
  --dial-angle:-135deg;
  --dial-fill-angle:0deg;
}

.effects-rack__dial::before{
  content:"";
  position:absolute;
  inset:12px;
  border-radius:50%;
  background:rgba(128,69,255,0.18);
  border:1px solid rgba(173,133,255,0.35);
  box-shadow:inset 0 4px 10px rgba(10,4,36,0.65);
}

.effects-rack__dial-indicator{
  position:absolute;
  top:12px;
  left:50%;
  width:2px;
  height:24px;
  border-radius:2px;
  background:#9dc0ff;
  transform-origin:50% 24px;
  transform:translateX(-50%) rotate(var(--dial-angle));
  box-shadow:0 0 6px rgba(157,192,255,0.6);
}

.effects-rack__dial-center{
  position:absolute;
  inset:24px;
  border-radius:50%;
  background:rgba(20,9,54,0.92);
  border:1px solid rgba(173,133,255,0.4);
}

.effects-rack__dial:focus-visible{
  outline:2px solid rgba(173,133,255,0.8);
  outline-offset:3px;
}

.effects-rack__dial:not([disabled]):hover{
  transform:translateY(-1px);
  border-color:rgba(173,133,255,0.85);
  box-shadow:inset 0 0 0 6px rgba(20,9,54,0.78), 0 10px 26px rgba(103,0,255,0.35);
}

.effects-rack__dial:disabled{
  opacity:0.45;
  cursor:not-allowed;
  box-shadow:none;
}

.effects-rack__param select{
  appearance:none;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(20,9,54,0.9);
  color:var(--text);
  font-size:14px;
  min-width:160px;
  width:100%;
}

.effects-rack__param select:focus{
  outline:2px solid rgba(128,69,255,0.8);
  outline-offset:2px;
}

@media (min-width: 540px){
  .effects-rack__params{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px){
  .effects-rack__params{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px){
  .effects-rack__params{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px){
  .touchpoint-modal{
    padding:24px 12px;
  }

  .touchpoint-modal__dialog{
    padding:24px;
    max-height:none;
    height:100%;
  }

  .touchpoint-modal__workspace{
    padding:28px 16px 20px;
  }

  .touchpoint-modal__layout{
    flex-direction:column;
    gap:20px;
  }

  .touchpoint-modal__details{
    flex:0 0 auto;
    width:100%;
    max-height:260px;
  }
}

@media (max-width: 720px){
  .touchpoints-main{
    padding:24px 16px 32px;
  }

  .touchpoints-title{
    font-size:28px;
  }
}

.app-sidebar{
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  padding:5px;
  background:rgba(20,9,60,0.78);
  backdrop-filter:blur(8px);
  border-right:1px solid rgba(128,69,255,0.35);
  display:flex;
  flex-direction:column;
  gap:10px;
  box-shadow:0 12px 35px rgba(0,0,0,0.35);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.app-shell[data-sidebar-open="false"] .app-sidebar{
  width:52px;
  min-width:52px;
}

.app-sidebar-content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}

.app-sidebar-top{ 
  position:sticky;
  top:5px;
  z-index:10;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
}

.app-sidebar-top-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-top-row{justify-content:center;}

.app-sidebar-logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.app-sidebar-logo-wordmark{
  font-size:22px;
  font-weight:200;
  letter-spacing:.6px;
  text-transform:lowercase;
  color:#6a5cff;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-logo{display:none;}

.app-sidebar-top .report-card-sidebar-toggle{
  position:static;
  inset:auto;
  width:42px;
  height:42px;
  margin-left:auto;
  transform:none;
  border-radius:5px;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-top .report-card-sidebar-toggle{margin-left:0;}

.app-sidebar-top .report-card-sidebar-toggle-icon{
  transition:transform .2s ease;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-top .report-card-sidebar-toggle-icon{
  transform:rotate(90deg);
}

.app-sidebar-top-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.app-sidebar-link-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.app-sidebar-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  font-size:15px;
  font-weight:200;
  text-decoration:none;
  color:var(--text);
  padding:10px 14px;
  border-radius:8px;
  transition:background .2s ease,color .2s ease;
}

.app-sidebar-link--split{
  padding:0;
  background:transparent;
}

.app-sidebar-link-main{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1;
  text-decoration:none;
  color:inherit;
  padding:10px 12px;
  border-radius:8px;
  transition:background .2s ease,color .2s ease;
}

.app-sidebar-link-icon{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  flex:0 0 auto;
}

.app-sidebar-link-icon svg{width:20px;height:20px;display:block;}

.app-sidebar-link-label{flex:1;}

.app-sidebar-link-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:2px 6px;
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.05em;
  color: #110838;
  background: rgb(255 255 255);
  border-radius: 5px;}

.app-sidebar-link:not(.app-sidebar-link--split)[aria-current="page"]{
  color:#f6f2ff;
  background:rgba(103,0,255,0.35);
}

.app-sidebar-link:not(.app-sidebar-link--split):hover,
.app-sidebar-link:not(.app-sidebar-link--split):focus-visible{
  color:#f6f2ff;
  background:rgba(255,255,255,0.08);
}

.app-sidebar-link-main[aria-current="page"]{
  color:#f6f2ff;
  background:rgba(103,0,255,0.35);
}

.app-sidebar-link--split:hover .app-sidebar-link-main,
.app-sidebar-link--split:focus-within .app-sidebar-link-main{
  color:#f6f2ff;
  background:rgba(255,255,255,0.08);
}

.app-sidebar-link-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}

.app-sidebar-link-toggle:focus-visible,
.app-sidebar-link-toggle:hover{
  background:rgba(255,255,255,0.12);
  color:#f6f2ff;
}

.app-sidebar-link-toggle-icon{
  width:16px;
  height:16px;
  transform-origin:50% 50%;
  transition:transform .2s ease;
}

.app-sidebar-link-toggle-icon path{fill:currentColor;}

[data-sidebar-group][data-expanded="true"] .app-sidebar-link-toggle-icon{
  transform:rotate(180deg);
}

.app-sidebar-subnav{
  display:none;
  flex-direction:column;
  gap:10px;
  padding-left:12px;
}

.app-sidebar-link-group[data-expanded="true"] .app-sidebar-subnav{
  display:flex;
}

.app-sidebar-subnav-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.app-sidebar-subnav-empty{
  margin:0;
  font-size:13px;
  color:var(--text-muted);
}

.app-shell[data-sidebar-open="false"] .app-sidebar-link-toggle{display:none;}

.app-shell[data-sidebar-open="false"] .app-sidebar-subnav{
  display:none !important;
}

.app-sidebar-user{
  margin-top:auto;
  position:sticky;
  bottom:5px;
  padding:14px;
  background:#6a5dff;
}

.app-sidebar-user-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.app-sidebar-user-profile{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-decoration:none;
  color:var(--text);
  flex:1;
  min-width:0;
}

.app-sidebar-account-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  background:var(--text);
  color:#1d0f48;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  letter-spacing:.3px;
  box-shadow:0 4px 16px rgba(0,0,0,0.25);
  transition:background .2s ease,color .2s ease,transform .2s ease;
  white-space:nowrap;
}

.app-sidebar-account-button:hover,
.app-sidebar-account-button:focus-visible{
  background:#f0edff;
  color:#1d0f48;
  transform:translateY(-1px);
}

.app-sidebar-account-button:focus-visible{
  outline:2px solid rgba(128,69,255,0.75);
  outline-offset:2px;
}

.app-sidebar-user-profile:focus-visible{
  outline:2px solid rgba(128,69,255,0.6);
  outline-offset:2px;
  border-radius:6px;
}

.app-sidebar-user-label{
  font-size:12px;
  letter-spacing:.4px;
  text-transform:none;
  color:var(--text-muted);
}

.app-sidebar-user-name{
  font-size:17px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.app-sidebar-account-button[aria-current="page"]{
  background:#f0edff;
  color:#1d0f48;
}

.sidebar-view-role{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 14px 16px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(128,69,255,0.18);
  border:1px solid rgba(168,123,255,0.45);
  color:var(--text);
  font-size:13px;
  letter-spacing:.25px;
}

.sidebar-view-role[hidden]{
  display:none;
}

.sidebar-view-role__label{
  font-weight:600;
}

.sidebar-view-role__close{
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  padding:2px 6px;
  border-radius:999px;
  transition:background .2s ease,color .2s ease;
}

.sidebar-view-role__close:hover,
.sidebar-view-role__close:focus-visible{
  color:#ffffff;
  background:rgba(255,255,255,0.08);
}

.sidebar-view-role__close:focus-visible{
  outline:2px solid rgba(240,237,255,0.4);
  outline-offset:2px;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-user{display:none;}

.app-shell[data-sidebar-open="false"] .app-sidebar-top{
  padding:10px 5px;
  gap:8px;
}

.app-shell[data-sidebar-open="false"] .app-sidebar{gap:0;}

.app-shell[data-sidebar-open="false"] .app-sidebar-top-links{
  align-items:center;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-link{
  justify-content:center;
  padding:10px;
  gap:0;
}

.app-shell[data-sidebar-open="false"] .app-sidebar-link .app-sidebar-link-label{display:none;}

.app-shell[data-sidebar-open="false"] .app-sidebar{box-shadow:none;}

.account-main{
  align-items:flex-start;
}

.account-main .report-card-content{
  width:100%;
  max-width:880px;
  display:flex;
  flex-direction:column;
  gap:32px;
}

.account-header{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.account-header h1{
  margin:0;
  font-size:36px;
  letter-spacing:.4px;
}

.account-header p{
  margin:0;
  font-size:16px;
  line-height:1.6;
  color:var(--text-muted);
}

.account-section{
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:0px;
  border:0px solid rgba(128,69,255,0.3);
}

.account-section__header{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  justify-content:space-between;
  align-items:flex-start;
}

.account-section__header > div:first-child{
  flex:1;
  min-width:220px;
}

.account-section__title{
  margin:0;
  font-size:22px;
  letter-spacing:.3px;
}

.account-section__description{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.6;
  color:var(--text-muted);
}

.account-section__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.account-link{
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  letter-spacing:.3px;
  opacity:0.85;
  transition:opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.account-link:hover,
.account-link:focus-visible{
  opacity:1;
}

.account-section__actions .account-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(240,237,255,0.12);
}

.account-section__actions .account-link:hover,
.account-section__actions .account-link:focus-visible{
  background:rgba(240,237,255,0.24);
  transform:translateY(-1px);
}

.account-role__content{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}

.account-role__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 18px;
  border-radius:999px;
  background:rgba(128,69,255,0.22);
  border:1px solid rgba(168,123,255,0.55);
  font-size:14px;
  font-weight:600;
  letter-spacing:.25px;
  color:var(--text);
}

.account-role__pill[hidden]{
  display:none;
}

.account-role__status{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.account-role__status[hidden]{
  display:none;
}

.account-role__view-as{
  display:flex;
  align-items:center;
  gap:12px;
}

.account-role__view-as[hidden]{
  display:none;
}

.account-role__view-as-label{
  font-size:14px;
  font-weight:600;
  letter-spacing:.2px;
}

.account-role__select-wrapper{
  position:relative;
}

.account-role__select{
  appearance:none;
  -webkit-appearance:none;
  border-radius:6px;
  border:1px solid rgba(240,237,255,0.35);
  background:rgba(240,237,255,0.12);
  color:var(--text);
  font-size:14px;
  letter-spacing:.2px;
  padding:10px 42px 10px 16px;
  min-width:160px;
  cursor:pointer;
  transition:border .2s ease, background .2s ease;
}

.account-role__select:hover{
  background:rgba(240,237,255,0.18);
}

.account-role__select:focus-visible{
  outline:2px solid rgba(168,123,255,0.6);
  outline-offset:2px;
}

.account-role__select-wrapper::after{
  content:'';
  position:absolute;
  top:50%;
  right:16px;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-50%) rotate(45deg);
  opacity:0.7;
  pointer-events:none;
}

.account-link--button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:6px;
  border:1px solid rgba(240,237,255,0.35);
  background:rgba(240,237,255,0.12);
  opacity:1;
}

.account-link--button:hover,
.account-link--button:focus-visible{
  background:rgba(240,237,255,0.22);
  border-color:rgba(240,237,255,0.6);
  transform:translateY(-1px);
}

.account-details{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin:0;
}

.account-details__item{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px;
  border-radius:var(--radius);
  background:rgba(24,12,70,0.65);
  border:1px solid rgba(128,69,255,0.25);
  min-height:110px;
}

.account-details__term{
  margin:0;
  font-size:12px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.account-details__value{
  margin:0;
  font-size:18px;
  font-weight:600;
  letter-spacing:.3px;
}

.account-section__footer{
  display:flex;
  justify-content:flex-end;
  gap:12px;
}

.account-plan-status{
  margin:20px 0 0;
  font-size:15px;
  line-height:1.6;
  color:rgba(255,255,255,0.7);
}

.account-plan-status[hidden]{
  display:none;
}

.account-plan-grid{
  margin-top:24px;
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.account-plan{
  padding:24px;
  border-radius:24px;
  background:rgba(15,5,47,0.35);
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(10px);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.account-plan__title{
  margin:0;
  font-size:18px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:-0.01em;
  color:#fff;
}

.account-plan__header{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.account-plan__badge{
  align-self:flex-start;
  margin-bottom:4px;
}

.account-plan--current{
  border:1px solid rgba(168,123,255,0.6);
  box-shadow:0 25px 45px rgba(19,6,61,0.45);
}

.account-plan:not(.account-plan--current) .account-plan__header{
  padding-top:26px;
}

.account-plan__price{
  margin:0;
  font-size:30px;
  font-weight:700;
  letter-spacing:-0.025em;
  color:#fff;
}

.account-plan__price strong{
  display:inline-block;
  font-size:34px;
  line-height:1;
  font-weight:700;
}

.account-plan__price-period{
  margin-left:6px;
  font-size:14px;
  font-weight:600;
  letter-spacing:.32px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.55);
}

.account-plan__description{
  margin:0;
  font-size:15px;
  line-height:1.6;
  color:rgba(255,255,255,0.78);
}

.account-plan__features{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.account-plan__feature{
  position:relative;
  padding-left:28px;
  font-size:15px;
  line-height:1.6;
  color:#fff;
}

.account-plan__feature::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:linear-gradient(135deg,#a87bff,#70f0ff);
  box-shadow:0 0 0 4px rgba(168,123,255,0.25);
}

.account-plan__embed iframe{
  display:block;
  width:100%;
  min-height:320px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.14);
  background:#090222;
}

.account-plan__embed iframe::-webkit-scrollbar{
  width:8px;
}

.account-plan__embed iframe::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.25);
  border-radius:8px;
}

.account-form{
  display:flex;
  flex-direction:column;
  gap:0;
}

.account-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 0;
  border-top:1px solid rgba(128,69,255,0.25);
}

.account-toggle:first-child{
  padding-top:0;
  border-top:none;
}

.account-toggle__content{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  min-width:0;
}

.account-toggle__label{
  font-size:16px;
  font-weight:600;
  letter-spacing:.3px;
}

.account-toggle__description{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--text-muted);
}

.account-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.account-switch input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.account-switch__track{
  display:inline-block;
  width:46px;
  height:26px;
  border-radius:999px;
  background:rgba(240,237,255,0.25);
  position:relative;
  transition:background .2s ease;
}

.account-switch__thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--text);
  box-shadow:0 4px 12px rgba(0,0,0,0.35);
  transition:transform .2s ease;
}

.account-switch input:checked + .account-switch__track{
  background:rgba(76,255,194,0.55);
}

.account-switch input:checked + .account-switch__track .account-switch__thumb{
  transform:translateX(20px);
}

.account-switch input:focus-visible + .account-switch__track{
  outline:2px solid rgba(128,69,255,0.75);
  outline-offset:3px;
}

.account-form--stacked .account-checkbox{
  border-top:1px solid rgba(128,69,255,0.25);
}

.account-checkbox{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:18px 0;
  cursor:pointer;
  width:100%;
}

.account-checkbox:first-child{
  border-top:none;
  padding-top:0;
}

.account-checkbox:last-child{
  padding-bottom:0;
}

.account-checkbox input{
  appearance:none;
  width:20px;
  height:20px;
  border-radius:5px;
  border:2px solid rgba(240,237,255,0.55);
  background:transparent;
  position:relative;
  margin:2px 0 0;
  flex-shrink:0;
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.account-checkbox:hover input{
  border-color:rgba(240,237,255,0.75);
}

.account-checkbox input:checked{
  background:#6a5dff;
  border-color:#6a5dff;
}

.account-checkbox input:checked::after{
  content:'';
  position:absolute;
  top:2px;
  left:6px;
  width:5px;
  height:10px;
  border:2px solid var(--text);
  border-top:none;
  border-left:none;
  transform:rotate(45deg);
}

.account-checkbox input:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(128,69,255,0.45);
}

.account-checkbox__label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.account-checkbox__title{
  font-size:16px;
  font-weight:600;
  letter-spacing:.3px;
}

.account-checkbox__description{
  font-size:14px;
  line-height:1.6;
  color:var(--text-muted);
}

.account-primary-button{
  font-size:15px;
  font-weight:600;
  letter-spacing:.4px;
  padding:12px 22px;
}

@media (max-width: 720px){
  .account-section{
    padding:22px;
  }

  .account-section__header{
    flex-direction:column;
    align-items:flex-start;
  }

  .account-section__actions{
    justify-content:flex-start;
  }

  .account-section__footer{
    justify-content:flex-start;
  }
}
header{
  position:sticky;
  top:0;
  z-index:100;
  padding:15px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  background:#0b0529;
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  flex-shrink:0;
}

.site-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}

.site-nav a{
  color:var(--text);
  text-decoration:none;
  font-size:15px;
  font-weight:400;
  letter-spacing:.2px;
  transition:color .2s ease;
}

.site-nav .btn{
  font-size:14px;
  padding:10px 16px;
  gap:8px;
}

.site-nav a:hover,
.site-nav a:focus-visible{
  color:#d8caff;
}

.user-menu{
  position:relative;
  flex-shrink:0;
}

.user-menu[hidden]{
  display:none;
}

.user-menu-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:150px;
  background:rgba(20,9,60,0.95);
  border:1px solid rgba(128,69,255,0.4);
  border-radius:5px;
  padding:10px 0;
  box-shadow:0 12px 30px rgba(0,0,0,0.45);
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.user-menu-link{
  display:block;
  padding:8px 18px;
  color:var(--text);
  font-size:14px;
  text-decoration:none;
  transition:background .18s ease;
}

.user-menu-link:hover,
.user-menu-link:focus-visible{
  background:rgba(255,255,255,0.1);
}

.logo-mark{
  width:28px;
  height:28px;
  border-radius:5px;
  display:grid;
  place-items:center;
  box-shadow:var(--shadow);
}

.brand{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.brand-strong{
  font-weight:600;
  font-size:22px;
  color:var(--text);
}

.brand-light{
  font-weight:200;
  font-size:22px;
  color:var(--text);
}
main{
  display:flex;
  justify-content:center;
  align-items:stretch;
  padding:48px 32px 64px;
}
.profile-main{
  align-items:flex-start;
}

.profile-main{
  align-items:flex-start;
}

.dashboard-main{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0px;
  width:100%;
  max-width:1400px;
  text-align:center;
}

.dashboard-main--home{
  align-items:stretch;
  justify-content:flex-start;
  padding:48px 32px 80px;
  margin:0 auto;
  text-align:left;
}

.community-main{
  align-items:stretch;
  justify-content:flex-start;
  padding:48px 32px 80px;
  margin:0 auto;
  text-align:left;
}

.community-section{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:32px;
}

.community-header{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}

.community-eyebrow{
  margin:0;
  font-size:13px;
  letter-spacing:0.32px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.community-title{
  margin:0;
  font-size:36px;
  font-weight:500;
  letter-spacing:0.4px;
}

.community-description{
  margin:0;
  max-width:560px;
  color:var(--text-muted);
  line-height:1.6;
  font-size:16px;
}

.community-status{
  margin:0;
  padding:18px 20px;
  border-radius:10px;
  border:1px dashed rgba(128,69,255,0.45);
  background:rgba(20,9,60,0.78);
  color:var(--text-muted);
  font-size:15px;
}

.community-status[hidden]{
  display:none;
}

.community-carousel{
  position:relative;
  padding:0 36px;
}

.community-carousel__viewport{
  overflow:hidden;
}

.community-grid{
  --community-card-gap:24px;
  --community-cards-visible:3.5;
  display:flex;
  width:100%;
  gap:var(--community-card-gap);
  align-items:stretch;
  overflow-x:auto;
  padding:8px 4px 16px;
  margin:0;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  scrollbar-width:thin;
}

.community-grid::-webkit-scrollbar{
  height:8px;
}

.community-grid::-webkit-scrollbar-track{
  background:rgba(20,9,60,0.45);
  border-radius:999px;
}

.community-grid::-webkit-scrollbar-thumb{
  background:rgba(128,69,255,0.55);
  border-radius:999px;
}

.community-carousel__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(128,69,255,0.4);
  background:rgba(11,5,41,0.92);
  color:#f4f0ff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 30px rgba(0,0,0,0.45);
  cursor:pointer;
  transition:transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.community-carousel__nav svg{
  width:18px;
  height:18px;
}

.community-carousel__nav--prev{
  left:0;
}

.community-carousel__nav--next{
  right:0;
}

.community-carousel__nav:focus{
  outline:2px solid rgba(162,119,255,0.6);
  outline-offset:3px;
}

.community-carousel__nav:hover:not(:disabled){
  transform:translateY(-50%) scale(1.05);
  border-color:rgba(162,119,255,0.8);
  background:rgba(33,14,91,0.95);
}

.community-carousel__nav:disabled{
  opacity:0.45;
  cursor:default;
  box-shadow:none;
}


.community-card{
  --community-card-base: radial-gradient(circle at 25% 0%, rgba(71, 53, 188, 0.55) 0%, rgba(22, 11, 64, 0.92) 58%, rgba(8, 3, 24, 0.98) 100%);
  --community-card-art: linear-gradient(140deg, rgba(255, 89, 146, 0.45) 0%, rgba(15, 7, 48, 0.6) 70%, rgba(7, 3, 23, 0.92) 100%), radial-gradient(circle at 70% 15%, rgba(255, 175, 79, 0.55) 0%, rgba(255, 175, 79, 0.12) 24%, transparent 56%), radial-gradient(circle at 18% 68%, rgba(79, 223, 197, 0.75) 0%, rgba(79, 223, 197, 0.2) 24%, transparent 58%);
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
  padding:24px 26px;
  background:var(--community-card-base);
  border:1px solid rgba(128,69,255,0.35);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,0.35);
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex:0 0 calc((100% - (var(--community-card-gap) * (var(--community-cards-visible) - 1))) / var(--community-cards-visible));
  min-width:240px;
  text-decoration:none;
  color:inherit;
  scroll-snap-align:start;
  overflow:hidden;
}

.community-card::before,
.community-card::after{
  content:"";
  position:absolute;
  inset:-6%;
  z-index:0;
  pointer-events:none;
}

.community-card::before{
  background:var(--community-card-art);
  opacity:0.96;
  transition:transform 0.35s ease;
}

.community-card::after{
  background:linear-gradient(155deg, rgba(9,5,30,0.0) 0%, rgba(9,5,30,0.4) 55%, rgba(7,3,22,0.75) 100%);
  mix-blend-mode:soft-light;
}

.community-card > *{
  position:relative;
  z-index:1;
}

.community-card:hover,
.community-card:focus-within{
  transform:translateY(-2px);
  border-color:rgba(162,119,255,0.8);
  box-shadow:0 24px 50px rgba(0,0,0,0.4);
}

.community-card:hover::before,
.community-card:focus-within::before{
  transform:scale(1.03);
}

.community-card--top-match{
  border-color:rgba(173,146,255,0.95);
}

.community-card__header{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  width:100%;
}

.community-card__name{
  margin:0;
  font-size:22px;
  font-weight:500;
}

.community-card__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(106,92,255,0.25);
  color:#d7d2ff;
  font-size:12px;
  font-weight:500;
  letter-spacing:0.6px;
  text-transform:uppercase;
  margin-left:auto;
}

.community-card__count{
  margin:0;
  font-size:16px;
  color:var(--text-muted);
}

@media (max-width: 1200px){
  .community-grid{
    --community-cards-visible:3;
  }
}

@media (max-width: 1024px){
  .community-carousel{
    padding:0 28px;
  }
  .community-grid{
    --community-cards-visible:2.5;
  }
}

@media (max-width: 800px){
  .community-grid{
    --community-cards-visible:2;
  }
}

@media (max-width: 1024px){
  .community-main{
    padding:40px 24px 68px;
  }
  .community-section{
    gap:28px;
  }
  .community-title{
    font-size:32px;
  }
}

@media (max-width: 640px){
  .community-main{
    padding:32px 18px 56px;
  }
  .community-carousel{
    padding:0 18px;
  }
  .community-grid{
    --community-cards-visible:1.35;
    padding:6px 2px 14px;
  }
  .community-carousel__nav{
    width:38px;
    height:38px;
  }
  .community-title{
    font-size:28px;
  }
  .community-description{
    font-size:15px;
  }
  .community-card{
    padding:20px 22px;
    min-width:220px;
  }
}

.crew-header{
  position:sticky;
  top:0;
  z-index:40;
  width:100%;
  background:rgba(11,5,41,0.96);
  border-bottom:1px solid rgba(128,69,255,0.3);
  box-shadow:0 10px 30px rgba(0,0,0,0.28);
}


.crew-header__inner{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.crew-header__layout{
  width:100%;
  display:flex;
  align-items:stretch;
  gap:16px;
  flex-wrap:nowrap;
}

.crew-header__layout > .crew-view-toggle{
  flex:0 0 auto;
}

.crew-header__filter{
  flex:1 1 33.333%;
  min-width:220px;
}

.crew-header__filter .crew-filter{
  width:100%;
  max-width:none;
  position:relative;
}

.crew-header__strength{
  width:100%;
  display:flex;
}

.crew-strength-filter{
  width:100%;
  border:1px solid rgba(128,69,255,0.35);
  border-radius:6px;
  background:rgba(46,12,120,0.72);
  box-shadow:0 14px 30px rgba(0,0,0,0.28);
  padding:14px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:opacity 0.2s ease;
}

.crew-strength-filter[data-disabled="true"]{
  opacity:0.55;
}

.crew-strength-filter[data-disabled="true"] .crew-strength-filter__input{
  pointer-events:none;
  opacity:0.65;
}

.crew-collapsible {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 5px;
    background: rgb(36 9 98);
}

.crew-collapsible__toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.crew-collapsible__toggle:focus-visible{
  outline:2px solid #ffe066;
  outline-offset:2px;
}

.crew-collapsible__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  color:rgba(244,240,255,0.8);
  transition:transform 0.2s ease;
  transform-origin:center;
}

.crew-collapsible__icon svg{
  width:12px;
  height:12px;
}

.crew-collapsible[data-collapsed="true"] .crew-collapsible__icon{
  transform:rotate(-90deg);
}

.crew-collapsible__content[hidden]{
  display:none !important;
}

.crew-strength-filter__legend{
  margin:0;
  padding:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.02em;
  text-transform:uppercase;
  color:rgba(244,240,255,0.7);
}

.crew-strength-filter__summary{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:var(--text);
}

.crew-strength-filter__slider{
  position:relative;
    padding: 8px 30px 36px 20px;
  width:100%;
  --crew-strength-min:0%;
  --crew-strength-max:100%;
}

.crew-strength-filter__slider-track{
  position:relative;
  height:12px;
  border-radius:999px;
  background:#240962;
  overflow:hidden;
}

.crew-strength-filter__slider-track::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:var(--crew-strength-min);
  right:calc(100% - var(--crew-strength-max));
  background:#6a5dff;
}

.crew-strength-filter__slider[data-disabled="true"]{
  pointer-events:none;
}

.crew-strength-filter__slider[data-disabled="true"] .crew-strength-filter__slider-track::after{
  background:rgba(244,240,255,0.35);
}

.crew-strength-filter__input{
  position:absolute;
  left:0;
  width:100%;
  height:32px;
  margin:0;
  appearance:none;
  background:none;
  pointer-events:none;
}

.crew-strength-filter__input:focus-visible{
  outline:2px solid #ffe066;
  outline-offset:8px;
}

.crew-strength-filter__input::-webkit-slider-runnable-track{
  background:none;
}

.crew-strength-filter__input::-moz-range-track{
  background:none;
}

.crew-strength-filter__input::-webkit-slider-thumb{
  appearance:none;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#9e9e9e;
  border:2px solid rgba(255,255,255,0.65);
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
  cursor:pointer;
  pointer-events:auto;
}

.crew-strength-filter__input::-moz-range-thumb{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#9e9e9e;
  border:2px solid rgba(255,255,255,0.65);
  box-shadow:0 2px 6px rgba(0,0,0,0.4);
  cursor:pointer;
  pointer-events:auto;
}

.crew-strength-filter__input--min{
  z-index:3;
}

.crew-strength-filter__input--max{
  z-index:2;
}

.crew-strength-filter__value-container{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:24px;
  pointer-events:none;
}

.crew-strength-filter__value{
  position:absolute;
  bottom:0;
  transform:translateX(-50%);
  left:var(--value-position,50%);
  font-size:13px;
  font-weight:600;
  color:rgba(244,240,255,0.78);
  white-space:nowrap;
}

@media (max-width: 1080px){
  .crew-header__layout{
    flex-wrap:wrap;
  }

  .crew-header__filter,
  .crew-header__search{
    flex:1 1 100%;
  }

  .crew-header__layout > .crew-view-toggle{
    flex:1 1 100%;
  }

  .crew-strength-filter{
    padding:12px 16px 14px;
  }
}

.crew-network-layout{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,1fr);
  gap:24px;
  align-items:start;
  width:100%;
}

.crew-view-toggle{
  align-self:stretch;
  display:flex;
  justify-content:flex-start;
  gap:12px;
  text-align:left;
}

.crew-view-toggle__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 20px;
  border-radius:999px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(20,8,68,0.6);
  color:var(--text-muted);
  font-size:15px;
  font-weight:500;
  letter-spacing:0.4px;
  cursor:pointer;
  transition:background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.crew-view-toggle__button:hover,
.crew-view-toggle__button:focus-visible{
  border-color:var(--border);
  color:var(--text);
  background:rgba(38,17,104,0.8);
}

.crew-view-toggle__button:focus-visible{
  outline:2px solid var(--border);
  outline-offset:2px;
}

.crew-view-toggle__button[aria-pressed="true"]{
  background:rgba(103,0,255,0.45);
  border-color:var(--border);
  color:var(--text);
  box-shadow:0 10px 28px rgba(0,0,0,0.25);
}

.crew-network__sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
  position:relative;
  z-index:2;
}

.crew-network__sidebar .crew-header__strength{
  max-width:none;
}

.crew-network__selection{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.crew-network__selection-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.crew-network__selection-title{
  margin:0;
  font-size:17px;
  font-weight:100;
  color:var(--text);
  text-align:left;
}

.crew-network__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 12px;
  border-radius:5px;
  border:1px solid rgba(244,240,255,0.35);
  background:rgba(26,9,74,0.7);
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,opacity .2s ease;
}

.crew-network__button:disabled{
  opacity:0.52;
  cursor:not-allowed;
}

.crew-network__button:not(:disabled):hover{
  background:rgba(46,12,120,0.82);
  border-color:rgba(244,240,255,0.5);
}

.crew-network__button:focus-visible{
  outline:2px solid #ffe066;
  outline-offset:2px;
}

.crew-network__selection-summary{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:rgba(244,240,255,0.82);
  padding:0;
  border:0;
  background:none;
  font:inherit;
  text-align:left;
}

.crew-network__selection-summary:not(:disabled){
  cursor:pointer;
  color:#fff;
  text-decoration:underline;
  text-decoration-thickness:0.08em;
  text-underline-offset:3px;
}

.crew-network__selection-summary:focus-visible{
  outline:2px solid rgba(244,240,255,0.82);
  outline-offset:2px;
}

.crew-network__selection-stats{
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.crew-network__selection-stat{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  border-radius:5px;
  background:rgba(46,12,120,0.6);
}

.crew-network__selection-stat dt{
  margin:0;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:rgba(244,240,255,0.6);
}

.crew-network__selection-stat dd{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:var(--text);
}

.crew-network__selection-shared {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 5px;
    background: rgb(36 9 98);
}

.crew-network__selection-subtitle{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--text);
  letter-spacing:0.04em;
}

.crew-network__selection-shared-toggle{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  cursor:pointer;
}

.crew-network__selection-shared-toggle:focus{
  outline:2px solid rgba(233,225,255,0.7);
  outline-offset:2px;
}

.crew-network__selection-shared-toggle-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  transition:transform .2s ease;
}

.crew-network__selection-shared-toggle-icon svg{
  width:12px;
  height:12px;
}

.crew-network__selection-shared-toggle[aria-expanded="false"] .crew-network__selection-shared-toggle-icon{
  transform:rotate(-90deg);
}

.crew-network__selection-shared-list{
  margin:0;
  padding:0;
}

.crew-network__selection-shared-term{
  margin:8px 0 0;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:rgba(244,240,255,0.65);
}

.crew-network__selection-shared-term:first-child{
  margin-top:0;
}

.crew-network__selection-shared-definition{
  margin:4px 0 0 0;
}

.crew-network__selection-shared-values{
  margin:4px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.crew-network__selection-shared-value{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:rgba(244,240,255,0.78);
}

.crew-network__selection-shared-value-label{
  font-weight:600;
  color:var(--text);
}

.crew-network__selection-shared-value-count{
  font-variant-numeric:tabular-nums;
  color:rgba(244,240,255,0.68);
}

.crew-network__selection-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:240px;
  overflow:auto;
  padding-right:4px;
}

.crew-network__selection-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  border-radius:5px;
  background:rgba(26,9,74,0.85);
  box-shadow:0 6px 16px rgba(0,0,0,0.32);
  border:0;
  text-align:left;
  font:inherit;
  color:var(--text);
  width:100%;
  cursor:pointer;
}

.crew-network__selection-item:focus{
  outline:none;
}

.crew-network__selection-item:focus-visible{
  outline:2px solid #ffe066;
  outline-offset:2px;
}

.crew-network__selection-item-title{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:var(--text);
}

.crew-network__selection-item-meta{
  margin:0;
  font-size:12px;
  color:rgba(244,240,255,0.7);
}

.crew-network__selection-factors{
  margin:4px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.crew-network__selection-factor{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  font-size:12px;
  color:rgba(244,240,255,0.78);
}

.crew-network__selection-factor-label{
  font-weight:600;
  color:var(--text);
}

.crew-network__selection-factor-value{
  color:rgba(244,240,255,0.78);
}

.crew-network__selection-hint{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:rgba(244,240,255,0.68);
}

.crew-network__saved{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.crew-network__saved-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.crew-network__saved-header .crew-collapsible__toggle{
  flex:1;
}

.crew-network__saved-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:240px;
  overflow:auto;
  padding-right:4px;
}

.crew-network__saved-empty{
  margin:0;
  font-size:13px;
  color:rgba(244,240,255,0.65);
}

.crew-network__saved-item{
  display:block;
}

.crew-network__saved-item-button{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:12px;
  background:var(--crew-network-saved-color, rgba(26,9,74,0.85));
}

.crew-network__saved-item-content{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}

.crew-network__saved-edit,
.crew-network__saved-remove,
.crew-network__saved-download{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border:0;
  border-radius:6px;
  background:rgba(11,5,41,0.35);
  color:inherit;
  font-size:16px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background 0.2s ease;
}

.crew-network__saved-edit:hover,
.crew-network__saved-edit:focus-visible,
.crew-network__saved-remove:hover,
.crew-network__saved-remove:focus-visible,
.crew-network__saved-download:hover,
.crew-network__saved-download:focus-visible{
  background:rgba(11,5,41,0.55);
}

.crew-network__saved-edit:focus,
.crew-network__saved-remove:focus,
.crew-network__saved-download:focus{
  outline:none;
}

.crew-network__saved-edit:focus-visible,
.crew-network__saved-remove:focus-visible,
.crew-network__saved-download:focus-visible{
  outline:2px solid #ffe066;
  outline-offset:2px;
}


.crew-network__selection-box{
  position:absolute;
  border:2px solid rgba(255,236,179,0.95);
  background:rgba(255,236,179,0.18);
  border-radius:6px;
  pointer-events:none;
  z-index:5;
}

.crew-network__selection-box[hidden]{
  display:none;
}

.crew-network__highlight-overlay{
  position:absolute;
  top:0;
  left:0;
  max-width:280px;
  padding:14px 16px;
  border-radius:8px;
  background:rgba(20,8,68,0.9);
  border:1px solid rgba(128,69,255,0.45);
  box-shadow:0 18px 32px rgba(0,0,0,0.35);
  color:var(--text);
  font-size:13px;
  line-height:1.5;
  pointer-events:none;
  z-index:6;
}

.crew-network__highlight-overlay[hidden]{
  display:none;
}

.crew-network__highlight-overlay-title{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.2px;
  color:var(--text);
}

.crew-network__highlight-overlay-list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.crew-network__highlight-overlay-item{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.crew-network__highlight-overlay-field{
  font-weight:600;
  color:rgba(244,240,255,0.95);
}

.crew-network__highlight-overlay-value{
  color:rgba(244,240,255,0.8);
}

.crew-network__highlight-overlay-count{
  color:rgba(244,240,255,0.68);
  font-size:12px;
}

.crew-network__highlight-overlay-empty{
  margin:0;
  font-size:12px;
  color:rgba(244,240,255,0.72);
}

.crew-network-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
  z-index:60;
}

.crew-network-modal[hidden]{
  display:none;
}

.crew-network-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(9,3,32,0.72);
  backdrop-filter:blur(6px);
}

.crew-network-modal__dialog{
  position:relative;
  z-index:1;
  width:min(100%, 760px);
  max-height:calc(100vh - 64px);
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:28px;
  border-radius:18px;
  border:1px solid rgba(128,69,255,0.45);
  background:linear-gradient(180deg, rgba(35,12,96,0.98) 0%, rgba(17,6,56,0.98) 100%);
  box-shadow:0 32px 60px rgba(0,0,0,0.45);
  color:var(--text);
  overflow:hidden;
}

.crew-network-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.crew-network-modal__heading{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  min-width:0;
}

.crew-network-modal__title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  word-break:break-word;
}

.crew-network-modal__subtitle{
  margin:0;
  font-size:14px;
  color:rgba(244,240,255,0.75);
}

.crew-network-modal__close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:rgba(12,4,40,0.7);
  color:var(--text);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background 0.2s ease;
}

.crew-network-modal__close:hover,
.crew-network-modal__close:focus-visible{
  background:rgba(103,0,255,0.55);
}

.crew-network-modal__body{
  display:flex;
  flex-direction:column;
  gap:24px;
  overflow:auto;
  padding-right:4px;
}

.crew-network-modal__section{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.crew-network-modal__section-title{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:0.3px;
  text-transform:uppercase;
  color:rgba(244,240,255,0.92);
}

.crew-network-modal__section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.crew-network-modal__download{
  flex:0 0 auto;
  padding:8px 14px;
  border-radius:6px;
  border:1px solid rgba(128,69,255,0.6);
  background:rgba(54,16,135,0.9);
  color:var(--text);
  font-size:13px;
  font-weight:500;
  letter-spacing:0.3px;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease;
}

.crew-network-modal__download:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.crew-network-modal__download:not(:disabled):hover,
.crew-network-modal__download:not(:disabled):focus-visible{
  background:rgba(98,34,210,0.95);
  border-color:rgba(168,109,255,0.85);
}

.crew-network-modal__empty{
  margin:0;
  font-size:13px;
  color:rgba(244,240,255,0.7);
  font-style:italic;
}

.crew-network-modal__table-wrapper{
  max-height:280px;
  overflow:auto;
  border:1px solid rgba(128,69,255,0.35);
  border-radius:10px;
  background:rgba(15,5,48,0.85);
}

.crew-network-modal__table{
  width:100%;
  border-collapse:collapse;
  min-width:360px;
  font-size:13px;
}

.crew-network-modal__table thead{
  background:rgba(103,0,255,0.28);
}

.crew-network-modal__table th,
.crew-network-modal__table td{
  padding:12px 16px;
  text-align:left;
  border-bottom:1px solid rgba(128,69,255,0.25);
  color:rgba(244,240,255,0.95);
}

.crew-network-modal__table th{
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.3px;
  font-size:12px;
  color:rgba(244,240,255,0.78);
}

.crew-network-modal__table tbody tr:last-child td{
  border-bottom:none;
}

.crew-network-modal__table tbody tr:nth-child(odd){
  background:rgba(32,12,90,0.65);
}

.crew-network-modal__table tbody tr:nth-child(even){
  background:rgba(26,9,74,0.55);
}

.crew-network-modal__table a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(168,109,255,0.85);
}

body.crew-network-modal-open{
  overflow:hidden;
}

.crew-network-modal__body::-webkit-scrollbar,
.crew-network-modal__table-wrapper::-webkit-scrollbar{
  width:8px;
  height:8px;
}

.crew-network-modal__body::-webkit-scrollbar-thumb,
.crew-network-modal__table-wrapper::-webkit-scrollbar-thumb{
  background:rgba(128,69,255,0.55);
  border-radius:999px;
}

.crew-network-modal__body::-webkit-scrollbar-track,
.crew-network-modal__table-wrapper::-webkit-scrollbar-track{
  background:rgba(12,4,40,0.6);
  border-radius:999px;
}

@media (max-width:1260px){
  .crew-network-layout{
    grid-template-columns:minmax(0,1fr);
  }

  .crew-network__sidebar{
    order:-1;
  }
}

@media (max-width:780px){
  .crew-network__selection-stats{
    grid-template-columns:minmax(0,1fr);
  }

  .crew-network__selection{
    padding:16px;
  }
}

.crew-filter{
  width:100%;
  position:relative;
}

.crew-filter__control{
  position:relative;
  display:flex;
  align-items:center;
}

.crew-filter__select{
  width:100%;
  padding:12px 44px 12px 16px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(46,12,120,0.94);
  color:var(--text);
  font-size:15px;
  font-weight:500;
  line-height:1.4;
  appearance:none;
  box-shadow:0 14px 30px rgba(0,0,0,0.28);
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.crew-filter__icon{
  position:absolute;
  right:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  color:rgba(244,240,255,0.82);
}

.crew-filter__icon svg{
  width:18px;
  height:18px;
}

.crew-filter__select:disabled{
  opacity:0.65;
  cursor:wait;
}

.crew-filter__select:focus{
  outline:2px solid rgba(162,119,255,0.6);
  outline-offset:2px;
  border-color:rgba(162,119,255,0.9);
}

.crew-filter__select:hover:not(:disabled){
  background:rgba(85,32,180,0.98);
  transform:translateY(-1px);
}

.crew-header__search{
  display:flex;
  flex:2 1 66.667%;
  min-width:260px;
}

.crew-header__search--with-strength{
  flex-direction:column;
  gap:16px;
}

.crew-header__search--with-strength > *{
  width:100%;
}

.crew-header__search--with-strength .crew-header__strength{
  width:100%;
}

.crew-header__search > *{
  width:100%;
}

.crew-search-toggle,
.crew-search-input input{
  width:100%;
  padding:16px 18px;
  border-radius:5px;
  border:0;
  font-size:16px;
  font-weight:500;
  color:var(--text);
  background:rgba(46,12,120,0.94);
  box-shadow:0 14px 36px rgba(0,0,0,0.32);
  transition:background 0.2s ease, transform 0.2s ease;
}

.crew-search-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}

.crew-search-toggle__label{
  flex:1 1 auto;
  text-align:left;
}

.crew-search-toggle:focus,
.crew-search-toggle:hover{
  background:rgba(85,32,180,0.98);
  transform:translateY(-1px);
}

.crew-search-toggle__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:rgba(244,240,255,0.82);
}

.crew-search-toggle__icon svg{
  width:18px;
  height:18px;
}

.crew-search-input{display:none;}

.crew-search-input input::placeholder{color:rgba(255,255,255,0.6);}

.crew-header.is-searching .crew-search-toggle{display:none;}

.crew-header.is-searching .crew-search-input{display:block;}

.crew-search-input input:focus{
  outline:2px solid rgba(162,119,255,0.6);
  outline-offset:2px;
}

.crew-search-modal{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:100%;
  background:#100533;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  z-index:10;
}

body.crew-search-open{overflow:hidden;}

body.crew-search-open .app-shell,
body.crew-search-open .app-shell-main{
  height:100vh;
  overflow:hidden;
}

.crew-search-modal[hidden]{display:none !important;}

.crew-search-modal__surface{
  flex:1;
  overflow:auto;
  padding:24px 32px 48px;
}

.crew-search-modal__content{
  max-width:1400px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.crew-search-modal__header{
  display:flex;
  justify-content:flex-end;
}

.crew-search-modal__close{
  background:transparent;
  border:0;
  color:var(--text);
  font-size:16px;
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:background 0.2s ease;
}

.crew-search-modal__close:hover,
.crew-search-modal__close:focus{
  background:rgba(128,69,255,0.2);
  outline:none;
}

.crew-search-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.crew-search-tag{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(85,32,180,0.45);
  border:1px solid rgba(162,119,255,0.55);
  font-size:14px;
}

.crew-search-tag__field{
  text-transform:none;
  font-size:11px;
  letter-spacing:0.8px;
  color:rgba(255,255,255,0.7);
}

.crew-search-tag-remove{
  background:transparent;
  border:0;
  color:var(--text);
  cursor:pointer;
  padding:0 4px;
  font-size:16px;
  line-height:1;
}

.crew-search-tag-remove:hover,
.crew-search-tag-remove:focus{color:#ffb4d3;}

.crew-search-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.crew-search-suggestion{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(85,32,180,0.45);
  border:1px solid rgba(162,119,255,0.55);
  font-size:14px;
  color:inherit;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease;
}

.crew-search-suggestion:focus,
.crew-search-suggestion:hover{
  background:rgba(128,69,255,0.65);
  transform:translateY(-1px);
  outline:none;
}

.crew-search-empty{
  margin:0;
  color:var(--text-muted);
  font-size:15px;
}

.crew-search-summary{
  margin:0;
  color:rgba(255,255,255,0.7);
  font-size:14px;
}

.crew-search-results{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.crew-search-result{margin:0;}

.crew-search-result__button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  background:rgba(24,0,68,0.82);
  border-radius:8px;
  border:1px solid rgba(128,69,255,0.24);
  font-size:17px;
  font-weight:500;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.crew-search-result__button::after{
  content:'View details';
  font-size:13px;
  font-weight:600;
  letter-spacing:0.4px;
  text-transform:none;
  color:rgba(255,255,255,0.55);
}

.crew-search-result__button:focus,
.crew-search-result__button:hover{
  background:rgba(58,12,150,0.9);
  border-color:rgba(162,119,255,0.55);
  transform:translateY(-1px);
  outline:none;
}

.crew-search-loading{color:var(--text-muted);}

.crew-search-modal.has-drawer-open .crew-search-modal__surface{padding-bottom:200px;}

.crew-search-drawer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  transform:translateY(100%);
  opacity:0;
  pointer-events:none;
  transition:transform 0.28s ease, opacity 0.28s ease;
  display:flex;
  justify-content:center;
  padding:0 24px 24px;
  z-index:20;
}

.crew-search-drawer.is-open{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.crew-search-drawer__inner{
  width:100%;
  max-width:900px;
  background:rgba(16,3,52,0.98);
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.45);
  box-shadow:0 -18px 40px rgba(0,0,0,0.45);
  padding:24px 32px 36px;
  display:flex;
  flex-direction:column;
  gap:20px;
  max-height:70vh;
  overflow:auto;
}

.crew-search-drawer__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.crew-search-drawer__title{
  margin:0;
  font-size:22px;
  font-weight:600;
}

.crew-search-drawer__close{
  background:rgba(128,69,255,0.18);
  border:1px solid rgba(162,119,255,0.55);
  border-radius:999px;
  color:inherit;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.4px;
  padding:8px 18px;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease;
}

.crew-search-drawer__close:focus,
.crew-search-drawer__close:hover{
  background:rgba(162,119,255,0.35);
  transform:translateY(-1px);
  outline:none;
}

.crew-search-drawer__list{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.crew-search-drawer__row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:14px;
  align-items:flex-start;
}

.crew-search-drawer__row dt,
.crew-search-drawer__row dd{margin:0;}

.events-main{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:0px 0px 0px;
  display:flex;
  flex-direction:column;
  gap:32px;
  flex:1;
  min-height:0;
}

.events-header{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.events-eyebrow{
  margin:0;
  font-size:13px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.events-title{
  margin:6px 0 0;
  font-size:36px;
  font-weight:600;
}

.events-header-controls{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}

.events-view-toggle{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.45);
  background:rgba(26,7,74,0.85);
}

.events-view-toggle__btn{
  background:transparent;
  border:0;
  color:var(--text);
  padding:8px 18px;
  font-size:14px;
  font-weight:500;
  border-radius:5px;
  cursor:pointer;
  transition:background 0.2s ease, color 0.2s ease;
}

.events-view-toggle__btn.is-active,
.events-view-toggle__btn:hover,
.events-view-toggle__btn:focus-visible{
  background:rgba(128,69,255,0.35);
  color:#fff;
  outline:none;
}

.events-nav{
  display:flex;
  align-items:center;
  gap:12px;
  padding:4px 12px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(19,5,58,0.9);
}

.events-nav__btn{
  width:36px;
  height:36px;
  border-radius:5px;
  border:0px solid transparent;
  color:inherit;
  font-size:20px;
  font-weight:100;
  place-items:center;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.events-nav__btn:hover,
.events-nav__btn:focus-visible{
  background:rgba(128,69,255,0.45);
  border-color:rgba(162,119,255,0.6);
  transform:translateY(-1px);
  outline:none;
}

.events-nav__label{
  min-width:160px;
  text-align:center;
  font-size:16px;
  font-weight:500;
  margin:0;
}

.events-layout{
  display:flex;
  flex-direction:column;
  gap:32px;
  align-items:stretch;
  flex:1;
  min-height:0;
}

.events-calendar{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px;
  border-radius:5px;
  border:0px solid rgba(128,69,255,0.35);
  flex:1;
  min-height:0;
  overflow:hidden;
}

.events-status{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.events-calendar-weekdays{
  display:grid;
  grid-template-columns:repeat(var(--events-columns,7),minmax(0,1fr));
  font-size:12px;
  font-weight:100;
  color:rgba(255,255,255,0.62);
  gap:12px;
}

.events-calendar-weekdays span{
  text-align:center;
  padding:6px 4px;
}

.events-calendar[data-view="week"] .events-calendar-weekdays{
  display:none;
}

.events-calendar-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
  min-height:0;
}

.events-calendar-grid[data-view="week"]{
  gap:16px;
}

.events-calendar-week{
  display:grid;
  grid-template-columns:repeat(var(--events-columns,7),minmax(0,1fr));
  gap:12px;
  flex:1;
  min-height:0;
}

.events-calendar-week.is-empty{
  flex:0;
  min-height:var(--events-empty-week-height,46px);
}

.events-calendar-day{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:10px;
  padding:var(--events-day-padding,16px);
  min-height:0;
  height:100%;
  background:rgba(20,6,63,0.86);
  border:0px solid rgba(128,69,255,0.25);
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow:hidden;
}
.events-calendar-grid[data-view="week"] .events-calendar-day{
  height:auto;
}
.events-calendar-day--week{
  align-items:stretch;
  gap:12px;
}
.events-calendar-day.is-empty{
  background:none;
  border-color:transparent;
  cursor:default;
  pointer-events:none;
  box-shadow:none;
}
.events-calendar-day.is-empty .events-calendar-day-number{
  opacity:0.65;
}
.events-calendar-day.is-empty .events-calendar-entries{
  display:none;
}

.events-calendar-week.is-empty .events-calendar-day{
  --events-day-padding:8px 12px;
  gap:6px;
}

.events-calendar-day:hover,
.events-calendar-day:focus-visible{
  background:rgba(53,17,133,0.92);
  border-color:rgba(162,119,255,0.65);
  outline:none;
  transform:translateY(-2px);
}

.events-calendar-day.is-outside-month{
  opacity:0.45;
}

.events-calendar-day.is-selected{
  border-color:rgba(162,119,255,0.95);
  box-shadow:0 0 0 2px rgba(162,119,255,0.45);
}

.events-calendar-day.is-today{
  border-color:rgba(255,255,255,0.6);
}

.events-calendar-day-number{
  font-size:18px;
  font-weight:600;
  flex-shrink:0;
}

.events-calendar-entries{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
}
.events-calendar-grid[data-view="week"] .events-calendar-entries{
  overflow:visible;
}

.events-calendar-entry{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px;
  border-radius:5px;
  background:rgba(33,10,96,0.65);
  width:100%;
}

.events-calendar-entry-name{
  margin:0;
  font-size:15px;
  font-weight:600;
}

.events-calendar-entry-meta{
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,0.7);
}

.events-week-day-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  width:100%;
}

.events-week-day-label{
  margin:0;
  font-size:16px;
  font-weight:600;
}

.events-week-day-count{
  font-size:13px;
  color:rgba(255,255,255,0.7);
}

.events-week-empty{
  margin:0;
  padding:24px;
  border-radius:5px;
  background:rgba(20,6,63,0.86);
  color:rgba(255,255,255,0.75);
  text-align:center;
  font-size:15px;
}

.events-details{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:24px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.35);
  background:rgba(12,3,42,0.92);
  box-shadow:0 18px 40px rgba(0,0,0,0.38);
  min-height:100%;
}

.events-details-header{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.events-details-eyebrow{
  margin:0;
  font-size:12px;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--text-muted);
}

.events-details-title{
  margin:0;
  font-size:24px;
  font-weight:600;
}

.events-details-subtitle{
  margin:0;
  font-size:15px;
  color:rgba(255,255,255,0.7);
}

.events-details-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.events-details-item{
  padding:18px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.3);
  background:rgba(30,8,88,0.78);
  display:flex;
  flex-direction:column;
  gap:10px;
}

.events-details-item-title{
  margin:0;
  font-size:18px;
  font-weight:600;
}

.events-details-item-meta{
  margin:0;
  font-size:14px;
  color:rgba(255,255,255,0.72);
}

.events-details-item-register{
  margin:0;
  font-size:14px;
}

.events-details-item-register a{
  color:#a684ff;
  font-weight:600;
  text-decoration:none;
}

.events-details-item-register a:hover,
.events-details-item-register a:focus-visible{
  text-decoration:underline;
  outline:none;
}

.events-details-empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

@media (max-width:1200px){
  .events-layout{
    flex-direction:column;
  }

  .events-calendar,
  .events-details{
    padding:20px;
  }
}

@media (max-width:720px){
  .events-main{
    padding:0px 0px 0px;
  }

  .events-title{
    font-size:30px;
  }

  .events-calendar-day{
    min-height:120px;
    padding:14px;
  }
}

.crew-search-drawer__label{
  font-size:12px;
  letter-spacing:0.8px;
  text-transform:none;
  color:rgba(255,255,255,0.6);
}

.crew-search-drawer__value{
  font-size:16px;
  line-height:1.55;
  color:var(--text);
  white-space:pre-line;
}

.crew-search-drawer__value.is-empty{
  color:var(--text-muted);
  font-style:italic;
}

@media (max-width:768px){
  .crew-header{padding:20px 18px;}
  .crew-search-modal__surface{padding:18px 18px 32px;}
  .crew-search-modal__content{gap:20px;}
}

@media (max-width:640px){
  .crew-search-result__button::after{display:none;}
  .crew-search-drawer{padding:0 14px 14px;}
  .crew-search-drawer__inner{padding:20px 20px 28px;}
  .crew-search-drawer__row{grid-template-columns:1fr;}
}

.dashboard-welcome{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.dashboard-welcome__text{
  margin:0;
  font-size:20px;
  line-height:1.5;
}

.dashboard-header{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.dashboard-header h1{
  margin:0;
  font-size:36px;
  font-weight:600;
  letter-spacing:.6px;
}

.dashboard-subtitle{
  margin:0;
  color:var(--text-muted);
  font-size:16px;
  max-width:760px;
}

.dashboard-grid{
  display:grid;
  width:100%;
  gap:24px;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width:1200px){
  .dashboard-grid{grid-template-columns:repeat(3, minmax(0,1fr));}
}

.dashboard-widgets{
  --widget-row-height:140px;
  position:relative;
  display:grid;
  width:100%;
  gap:24px;
  grid-auto-rows:var(--widget-row-height);
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  align-content:start;
}

.dashboard-widget{
  position:relative;
  display:flex;
  flex-direction:column;
  background:rgba(24,0,68,0.85);
  border:1px solid rgba(128,69,255,0.45);
  border-radius:14px;
  box-shadow:0 18px 36px rgba(5,0,24,0.42);
  overflow:hidden;
  min-height:0;
  transition:box-shadow .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.dashboard-widget:focus-within{
  border-color:rgba(162,119,255,0.8);
  box-shadow:0 20px 42px rgba(13,1,46,0.5);
}

.dashboard-widget--dragging{
  opacity:.72;
  transform:scale(.99);
  box-shadow:0 16px 48px rgba(12,0,48,0.56);
}

.dashboard-widget__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:20px 22px 12px;
}

.dashboard-widget__title{
  margin:0;
  font-size:20px;
  font-weight:600;
  letter-spacing:.4px;
}

.dashboard-widget__actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.dashboard-widget__action{
  border:0;
  padding:6px;
  border-radius:6px;
  background:rgba(162,119,255,0.18);
  color:var(--text);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, color .18s ease;
}

.dashboard-widget__action:hover,
.dashboard-widget__action:focus-visible{
  background:rgba(162,119,255,0.35);
  color:#fff;
  outline:none;
}

.dashboard-widget__action-icon{
  font-size:16px;
  line-height:1;
}

.dashboard-widget__body{
  padding:0 22px 30px;
  display:flex;
  flex-direction:column;
  gap:16px;
  color:var(--text);
  min-height:0;
}

.dashboard-widget__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.dashboard-widget__item{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:14px 16px;
  background:rgba(34,5,92,0.65);
  border-radius:10px;
  border:1px solid rgba(128,69,255,0.25);
}

.dashboard-widget__item-title{
  margin:0;
  font-size:16px;
  font-weight:500;
}

.dashboard-widget__item-meta{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
}

.dashboard-widget__links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.dashboard-widget__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:8px;
  background:rgba(34,5,92,0.65);
  border:1px solid rgba(128,69,255,0.25);
  color:inherit;
  text-decoration:none;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.dashboard-widget__link:hover,
.dashboard-widget__link:focus-visible{
  background:rgba(68,24,156,0.8);
  border-color:rgba(162,119,255,0.6);
  transform:translateY(-1px);
  outline:none;
}

.dashboard-widget__link-label{
  font-weight:500;
}

.dashboard-widget__link-url{
  color:var(--text-muted);
  font-size:14px;
  word-break:break-all;
}

.dashboard-widget__empty{
  margin:0;
  color:var(--text-muted);
  font-size:15px;
}

.dashboard-widget__resize-handle{
  position:absolute;
  right:16px;
  bottom:16px;
  width:18px;
  height:18px;
  border:1.5px solid rgba(162,119,255,0.55);
  border-top:none;
  border-left:none;
  border-radius:4px;
  cursor:nwse-resize;
  touch-action:none;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  pointer-events:auto;
}

.dashboard-widget__resize-handle::after{
  content:'';
  width:10px;
  height:10px;
  border:1px solid rgba(162,119,255,0.45);
  border-top:none;
  border-left:none;
  border-radius:2px;
  margin:2px;
}

.dashboard-widget--minimized .dashboard-widget__body{
  display:none;
}

.dashboard-widget--minimized .dashboard-widget__resize-handle{
  display:none;
}

.dashboard-widget--minimized .dashboard-widget__action-icon{
  transform:rotate(45deg);
}

.dashboard-widgets__hint{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
}

@media (max-width:900px){
  .dashboard-main--home{padding:32px 20px 64px;}
  .dashboard-widgets{
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
  }
  .dashboard-widget__body{padding:0 18px 26px;}
}

@media (max-width:600px){
  .dashboard-main--home{padding:24px 16px 56px;}
  .dashboard-widget__header{padding:18px 18px 10px;}
  .dashboard-widget__body{padding:0 16px 22px;}
  .dashboard-widget__item{padding:12px 14px;}
}

.dashboard-placeholder{
  background:rgba(24,0,68,0.85);
  border:1px solid rgba(128,69,255,0.4);
  border-radius:5px;
  padding:32px;
  text-align:center;
  font-size:16px;
  color:var(--text-muted);
}

.dashboard-placeholder--error{color:#ffb3b3; border-color:rgba(239,68,68,0.55); background:rgba(239,68,68,0.12);}

.dashboard-card{
  background:rgba(24,0,68,0.85);
  border:1px solid rgba(128,69,255,0.4);
  border-radius:8px;
  padding:22px 22px 26px;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:320px;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-card:hover,
.dashboard-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(162,119,255,0.8);
  box-shadow:0 18px 40px rgba(5,0,24,0.45);
  outline:none;
}

.dashboard-card__header h2{
  margin:0;
  font-size:20px;
  font-weight:600;
  letter-spacing:.4px;
}

.dashboard-card__meta{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.dashboard-card__chart{
  position:relative;
  flex:1;
  min-height:180px;
}

.dashboard-card__chart canvas{width:100% !important; height:100% !important;}

.dashboard-card__empty{
  margin:0;
  padding:12px;
  font-size:14px;
  color:var(--text-muted);
  background:rgba(255,255,255,0.06);
  border-radius:5px;
}

.dashboard-modal{
  position:fixed;
  inset:0;
  background:rgba(5,2,24,0.9);
  display:flex;
  justify-content:center;
  align-items:center;
  padding:32px;
  z-index:999;
}

.dashboard-modal[hidden]{display:none;}

.dashboard-modal__dialog{
  width:min(1200px, 96vw);
  height:min(90vh, 880px);
  background:rgba(17,6,52,0.96);
  border:1px solid rgba(128,69,255,0.45);
  border-radius:10px;
  box-shadow:0 22px 60px rgba(0,0,0,0.55);
  display:flex;
  flex-direction:column;
}

.dashboard-modal__header{
  padding:28px 32px 20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}

.dashboard-modal__heading{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.dashboard-modal__meta{
  display:flex;
  align-items:center;
  gap:12px;
}

.dashboard-modal__eyebrow{
  margin:0 0 6px;
  font-size:13px;
  letter-spacing:.4px;
  text-transform:none;
  color:var(--text-muted);
}

.dashboard-modal__back{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.24);
  color:var(--text);
  border-radius:999px;
  width:34px;
  height:34px;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, transform .18s ease;
}

.dashboard-modal__back[hidden]{
  display:none;
}

.dashboard-modal__back:hover,
.dashboard-modal__back:focus-visible{
  background:rgba(255,255,255,0.16);
  transform:translateY(-1px);
  outline:none;
}

.dashboard-modal__title{
  margin:0;
  font-size:28px;
  font-weight:600;
  letter-spacing:.5px;
}

.dashboard-modal__subtitle{
  margin:0;
  font-size:15px;
  color:rgba(255,255,255,0.7);
}

.dashboard-modal__close{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.24);
  color:var(--text);
  border-radius:999px;
  width:40px;
  height:40px;
  font-size:24px;
  line-height:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .18s ease, transform .18s ease;
}

.dashboard-modal__close:hover,
.dashboard-modal__close:focus-visible{
  background:rgba(255,255,255,0.16);
  transform:translateY(-1px);
  outline:none;
}

.events-modal .dashboard-modal__dialog{
  border-radius:5px;
}

.events-modal .dashboard-modal__close{
  border-radius:5px;
}

.events-modal .dashboard-modal__body{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.events-modal__content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.events-modal__content .events-details-list{
  flex:1;
  overflow:auto;
}

.dashboard-modal__body{
  padding:0 32px 32px;
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,2fr);
  gap:28px;
  min-height:0;
  overflow:hidden;
}

.dashboard-modal__chart{
  background:rgba(24,0,68,0.65);
  border:1px solid rgba(128,69,255,0.35);
  border-radius:8px;
  padding:24px;
  min-height:0;
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
}

.dashboard-modal__chart--detail{
  padding:0;
}

.dashboard-modal__detail{
  display:flex;
  flex-direction:column;
  gap:20px;
  overflow:auto;
  padding:24px;
  flex:1;
}

.dashboard-modal__detail-groups{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.dashboard-modal__chart canvas{width:100% !important; height:100% !important; flex:1;}

.dashboard-modal__sidebar{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-height:0;
  height:100%;
}

.dashboard-modal__links{
  margin-top:auto;
}

.dashboard-modal__links--detail{
  margin-top:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}

.dashboard-modal__links--detail .profile-social-btn{
  width:auto;
  justify-content:center;
  align-self:center;
}

.dashboard-modal__sidebar--detail{
  gap:0;
}

.dashboard-modal__chart--detail .dashboard-modal__detail{
  padding:32px 28px;
}

.dashboard-modal__chart--detail canvas{
  display:none !important;
}

.dashboard-modal__filter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.dashboard-modal__filter-label{
  margin:0;
  font-size:15px;
  color:var(--text-muted);
}

.dashboard-modal__filter-reset{
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:999px;
  color:var(--text);
  padding:8px 18px;
  font-size:14px;
  cursor:pointer;
  transition:background .2s ease, opacity .2s ease;
}

.dashboard-modal__filter-reset:disabled{
  opacity:.5;
  cursor:default;
}

.dashboard-modal__filter-reset:not(:disabled):hover,
.dashboard-modal__filter-reset:not(:disabled):focus-visible{
  background:rgba(255,255,255,0.2);
  outline:none;
}

.dashboard-modal__list{
  flex:1;
  background:rgba(24,0,68,0.65);
  border:1px solid rgba(128,69,255,0.35);
  border-radius:8px;
  padding:22px 20px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:0;
}

.dashboard-modal__empty{
  margin:0;
  color:var(--text-muted);
  font-size:15px;
}

.dashboard-modal__record{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.18);
  color:var(--text);
  border-radius:6px;
  padding:12px 14px;
  font-size:15px;
  text-align:left;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}

.dashboard-modal__record:hover,
.dashboard-modal__record:focus-visible{
  background:rgba(255,255,255,0.16);
  transform:translateY(-1px);
  outline:none;
}

body.dashboard-modal-open{overflow:hidden;}
.report-card-main{
  position:relative;
  display:flex;
  gap:28px;
  align-items:stretch;
  padding:0px;
  width:100%;
  max-height:100%;
  min-height:0;
  margin:0;
}
.report-card-content{
  flex:1;
  display:grid;
  gap:28px;
  align-items:stretch;
  min-width:0;
}
.profile-main .report-card-content{grid-template-columns:minmax(0,1fr);}

.profile-main-content{
  display:flex;
  flex-direction:column;
  gap:28px;
  min-width:0;
}
.report-card-sidebar{
  --sidebar-width:300px;
  flex:0 0 var(--sidebar-width);
  background:rgba(20,9,60,0.78);
  border:0;
  border-radius:5px;
  padding:56px 24px 40px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:28px;
  position:relative;
  z-index:2;
  transition:transform .3s ease, margin-right .3s ease;
}
.report-card-sidebar[data-open="false"]{
  transform:translateX(calc(-1 * (var(--sidebar-width) + 32px)));
  margin-right:calc(-1 * var(--sidebar-width));
}
.report-card-sidebar-toggle{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.4);
  background:rgba(11,5,41,0.9);
  color:var(--text);
  display:grid;
  place-items:center;
  padding:0;
  cursor:pointer;
  transition:background .2s ease, transform .3s ease;
  z-index:3;
}
.report-card-sidebar-toggle:hover,
.report-card-sidebar-toggle:focus-visible{
  background:rgba(128,69,255,0.35);
}
.report-card-sidebar[data-open="false"] .report-card-sidebar-toggle{
  left:15px;
  right:auto;
  transform:translateX(calc(var(--sidebar-width) + 32px));
  pointer-events:auto;
}
.report-card-sidebar-toggle-icon{
  width:20px;
  height:20px;
}
.report-card-sidebar-content{
  display:flex;
  flex-direction:column;
  gap:28px;
  flex:1;
  transition:opacity .3s ease;
}
.report-card-sidebar[data-open="false"] .report-card-sidebar-content{
  opacity:0;
  pointer-events:none;
}
.profile-sidebar{
  position:sticky;
  top:32px;
  max-height:calc(100vh - 64px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.profile-sidebar-content{display:flex;flex-direction:column;gap:22px;}
.profile-sidebar-group{display:flex;flex-direction:column;gap:14px;}
.profile-sidebar-group-title{margin:0;font-size:16px;font-weight:600;letter-spacing:.4px;}
.profile-sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.profile-sidebar-item{display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.15);border-radius:6px;padding:10px 12px;font-size:14px;color:var(--text);text-decoration:none;transition:background .2s ease,border-color .2s ease;box-sizing:border-box;width:100%;}
.profile-sidebar-item:hover,
.profile-sidebar-item:focus-visible{background:rgba(162,119,255,0.18);border-color:rgba(162,119,255,0.5);outline:none;}
.profile-sidebar-item-label{flex:1;color:var(--text);}
.profile-sidebar-item-count{background:rgba(162,119,255,0.22);border:1px solid rgba(162,119,255,0.5);border-radius:999px;padding:4px 12px;font-size:13px;color:var(--text);min-width:42px;text-align:center;}
.profile-sidebar-empty{margin:0;font-size:14px;color:var(--text-muted);}
.report-card-sidebar-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.report-card-sidebar-action{
  background:none;
  border:none;
  color:var(--text);
  font-size:15px;
  font-weight:200;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0;
  cursor:pointer;
  text-align:left;
}
.report-card-sidebar-action:focus-visible,
.report-card-sidebar-action:hover{
  color:#d8caff;
}
.report-card-sidebar-action-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.report-card-sidebar-action-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill:currentColor;
}
.report-card-sidebar-action-text{
  flex:1;
  font-family:'PPMori', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:200;
}
.report-card-sidebar-feedback{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.report-card-sidebar-feedback[data-collapsed="true"] .report-card-sidebar-list{
  display:none;
}
.report-card-sidebar-feedback-toggle{
  align-self:flex-start;
}
.report-card-sidebar-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:360px;
  overflow:auto;
  padding-right:6px;
}
.report-card-sidebar-empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
  line-height:1.4;
}
.sidebar-request-link{
  display:flex;
  flex-direction:column;
  gap:4px;
  text-decoration:none;
  color:var(--text);
  padding:8px 12px;
  border-radius:5px;
  transition:background .2s ease, color .2s ease;
}
.sidebar-request-link:hover,
.sidebar-request-link:focus-visible{
  background:rgba(255,255,255,0.08);
  color:#f6f2ff;
}
.sidebar-request-link[aria-current="page"]{
  background:rgba(103,0,255,0.35);
  color:#f6f2ff;
}
.sidebar-request-title{
  font-size:15px;
  font-weight:600;
}
.sidebar-request-date{
  font-size:13px;
  font-weight:200;
  color:var(--text-muted);
}
.report-card-overview{
  grid-column:1 / -1;
  background:none;
  border:none;
  border-radius:5px;
  box-shadow:none;
  padding:0 32px;
}
.report-card-overview[hidden]{display:none;}

.report-card-header-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding-left:28px;
}

.report-card-analysis-button{
  margin-left:auto;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(103,0,255,0.15);
  color:#fff;
  font-size:14px;
  font-weight:500;
  letter-spacing:.3px;
  text-transform:none;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.report-card-analysis-button[disabled]{
  cursor:not-allowed;
  opacity:.45;
}

.report-card-analysis-button:not([disabled]):hover,
.report-card-analysis-button:not([disabled]):focus-visible{
  background:rgba(103,0,255,0.35);
  box-shadow:0 10px 30px rgba(103,0,255,0.35);
  transform:translateY(-1px);
}

.report-card-analysis-button:not([disabled]):active{
  transform:translateY(0);
}
.report-card-col-header h1,
.report-card-col-header h2{
  margin:0;
  font-size:28px;
  font-weight:600;
}
.report-card-col-header h2{font-size:24px;}
.report-card-subtitle{
  margin:12px 0 0;
  color:var(--text-muted);
  font-size:15px;
}
.report-card-col-body{
  padding:24px 24px 32px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:20px;
  flex:1;
  min-height:0;
}
.report-card-events{
  padding:0 24px 32px;
  display:flex;
  flex-direction:column;
  gap:16px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.report-card-events__title{
  margin:24px 0 0;
  font-size:20px;
  font-weight:600;
}
.report-card-events__subtitle{
  margin:4px 0 0;
  color:var(--text-muted);
  font-size:15px;
}
.report-card-events__list{
  display:grid;
  gap:16px;
}
.report-card-events__card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.report-card-events__card-title{
  margin:0;
  font-size:17px;
  font-weight:600;
}
.report-card-events__meta{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}
.report-card-events__register{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  font-size:14px;
  font-weight:500;
  color:#fff;
  text-decoration:none;
}
.report-card-events__register::after{
  content:'\2192';
  font-size:14px;
}
.report-card-events__register:hover,
.report-card-events__register:focus-visible{
  color:var(--btn-primary);
  text-decoration:underline;
}
.report-card-events__empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}
.report-card-crews{
  padding:0 24px 32px;
  display:flex;
  flex-direction:column;
  gap:16px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.report-card-crews__title{
  margin:24px 0 0;
  font-size:20px;
  font-weight:600;
}
.report-card-crews__subtitle{
  margin:4px 0 0;
  color:var(--text-muted);
  font-size:15px;
}
.report-card-crews__card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.report-card-crews__card-title{
  margin:0;
  font-size:17px;
  font-weight:600;
}
.report-card-crews__card-meta{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}
.report-card-crews__card-description{
  margin:0;
  font-size:14px;
  color:rgba(244,240,255,0.86);
}
.report-card-crews__cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  font-size:14px;
  font-weight:500;
  color:#fff;
  text-decoration:none;
}
.report-card-crews__cta::after{
  content:'\2192';
  font-size:14px;
}
.report-card-crews__cta:hover,
.report-card-crews__cta:focus-visible{
  color:var(--btn-primary);
  text-decoration:underline;
}
.report-card-crews__empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}
.report-card-placeholder{
  background:rgba(255,255,255,0.04);
  border:1px dashed rgba(255,255,255,0.12);
  border-radius:5px;
  padding:24px;
  font-size:15px;
  color:var(--text-muted);
  text-align:center;
}

body.analysis-modal-open{overflow:hidden;}

.analysis-modal{
  position:fixed;
  inset:0;
  z-index:140;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 32px;
  background:rgba(6,2,25,0.82);
  backdrop-filter:blur(18px);
}

.analysis-modal[hidden]{display:none;}

.analysis-modal__dialog{
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(960px,100%);
  height:min(640px,calc(100vh - 96px));
  border-radius:18px;
  border:1px solid rgba(128,69,255,0.6);
  background:linear-gradient(180deg, rgba(53,17,118,0.95) 0%, rgba(20,9,60,0.96) 60%, rgba(12,5,40,0.98) 100%);
  box-shadow:0 30px 70px rgba(0,0,0,0.55);
  overflow:hidden;
}

.analysis-modal__header{
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  background: #0b0529;
}

.analysis-modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:28px 32px 0px;
  gap:24px;
}

.analysis-modal__title-block{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.analysis-modal__title{
  margin:0;
  font-size:20px;
  font-weight:100;
  letter-spacing:.3px;
  flex-wrap:wrap;
  align-items:baseline;
  gap:10px;
}

.analysis-modal__title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.analysis-modal__report-card-button{
  border-radius:999px;
  border:1px solid rgba(233,225,255,0.35);
  background:rgba(233,225,255,0.08);
  color:#f5edff;
  font-size:13px;
  font-weight:600;
  letter-spacing:.4px;
  padding:6px 14px;
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}

.analysis-modal__report-card-button:hover,
.analysis-modal__report-card-button:focus-visible{
  background:rgba(233,225,255,0.18);
  border-color:rgba(233,225,255,0.55);
  outline:none;
  transform:translateY(-1px);
}

.analysis-modal__report-card-button:active{
  transform:translateY(0);
}

.analysis-modal__title span{white-space:nowrap;}

.analysis-modal__title-separator{
  color:rgba(255,255,255,0.7);
  font-size:20px;
}

.analysis-modal__meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.analysis-modal__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(103,0,255,0.28);
  border:1px solid rgba(255,255,255,0.25);
  font-size:13px;
  font-weight:500;
  letter-spacing:.4px;
  text-transform:none;
}

.analysis-modal__body{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:0 32px 24px;
  gap:18px;
  min-height:0;
}

.analysis-modal__status{
  margin:0;
  color:rgba(255,255,255,0.65);
  font-size:15px;
  min-height:22px;
}

.analysis-modal__layout{
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  min-height:0;
}

.analysis-modal__canvas{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:16px;
  color:#fff;
  letter-spacing:.01em;
  min-height:0;
  min-width:0;
  overflow:visible;
}

.analysis-modal__filters{
  position:sticky;
  top:160px;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-bottom:10px;
  background:#0b0529;
}

.analysis-modal__filters .analysis-info-sidebar__heading{
  margin:0;
}

.analysis-modal__filters + .analysis-modal__feed{
  padding-top:4px;
}

.analysis-modal__feed{
  flex:1;
  overflow-y:auto;
  padding-right:6px;
}

.analysis-modal__feed::-webkit-scrollbar{
  width:6px;
}

.analysis-modal__feed::-webkit-scrollbar-thumb{
  background:rgba(118,92,255,0.55);
  border-radius:999px;
}

.analysis-modal__feed::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.08);
  border-radius:999px;
}

.analysis-modal__empty{
  margin:0;
  text-align:center;
  color:rgba(255,255,255,0.6);
  font-size:0.95rem;
}

.analysis-info-sidebar{
  position:sticky;
  top:195px;
  align-self:start;
  width:320px;
  max-width:320px;
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:0px 20px 24px;
  backdrop-filter:blur(8px);
  transition:width .3s ease,max-width .3s ease,padding .3s ease;
  overflow:hidden;
  max-height:calc(100vh - 48px);
}

.analysis-info-sidebar[data-collapsed="true"]{
  width:52px;
  max-width:52px;
  min-width:52px;
  padding:18px 5px;
}

.analysis-info-sidebar__content{
  display:flex;
  flex-direction:column;
  gap:28px;
  flex:1;
  min-height:0;
  overflow-y:auto;
  scrollbar-gutter:stable;
  transition:opacity .3s ease;
  margin-top:20px;
}

.analysis-info-sidebar[data-collapsed="true"] .analysis-info-sidebar__content{
  opacity:0;
  pointer-events:none;
  visibility:hidden;
}

.analysis-info-sidebar__toggle{
  top:18px;
  left:18px;
  right:auto;
}

.analysis-info-sidebar__toggle-icon{
  transition:transform .3s ease;
  transform-origin:50% 50%;
}

.analysis-info-sidebar[data-collapsed="true"] .analysis-info-sidebar__toggle{
  left:12px;
  transform:none;
}

.analysis-info-sidebar[data-collapsed="true"] .analysis-info-sidebar__toggle-icon{
  transform:rotate(180deg);
}

.analysis-info-sidebar__section{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.analysis-info-sidebar__heading{
  margin:0;
  font-size:14px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:none;
  color:rgba(255,255,255,0.7);
}

.analysis-info-sidebar__filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.analysis-info-sidebar__empty{
  margin:0;
  font-size:13px;
  color:rgba(255,255,255,0.6);
}

.analysis-filter-tag{
  border:0px solid rgba(128,69,255,0.5);
  border-radius:999px;
  background:rgba(103,0,255,0.25);
  color:#fff;
  font-size:13px;
  font-weight:500;
  letter-spacing:.02em;
  padding:6px 14px;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,opacity .2s ease;
}

.analysis-filter-tag:hover,
.analysis-filter-tag:focus-visible{
  background:rgba(128,69,255,0.45);
  border-color:rgba(128,69,255,0.65);
  outline:none;
}

.analysis-filter-tag[aria-pressed="false"]{
  background:transparent;
  border-style:dashed;
  opacity:0.55;
}

.analysis-action-info{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.analysis-action-info__placeholder{
  margin:0;
  font-size:14px;
  color:rgba(255,255,255,0.6);
}

.analysis-action-info__body{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.analysis-action-info__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.analysis-action-info__button{
  padding:10px 18px;
  border-radius:20px;
  border:1px solid rgba(128,69,255,0.45);
  background:var(--btn-primary);
  color:#fff;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.analysis-action-info__button:hover,
.analysis-action-info__button:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(103,0,255,0.45);
  outline:none;
}

.analysis-action-info__details{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.analysis-action-info__row{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.analysis-action-info__row dt{
  margin:0;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:none;
  color:rgba(255,255,255,0.55);
}

.analysis-action-info__row dd{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,0.92);
  white-space:pre-wrap;
}

.analysis-action-info__feedback,
.analysis-action-info__anchor{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.analysis-action-info__subheading{
  margin:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:none;
  color:rgba(255,255,255,0.65);
}

.analysis-action-info__text{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,0.82);
  white-space:pre-wrap;
}

.analysis-action-info__list{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:rgba(255,255,255,0.82);
  font-size:14px;
  line-height:1.5;
}

.analysis-action-info__list li{list-style:disc;}

@media (max-width: 1180px){
  .analysis-modal__layout{
    display:flex;
    flex-direction:column;
  }
  .analysis-info-sidebar{
    position:static;
    top:auto;
    max-height:none;
    width:100%;
    max-width:none;
    border-radius:16px;
  }
  .analysis-info-sidebar[data-collapsed="true"]{
    width:100%;
    max-width:none;
    min-width:0;
  }
  .analysis-info-sidebar[data-collapsed="true"] .analysis-info-sidebar__toggle{
    left:18px;
    right:auto;
  }
}

.analysis-modal__transport{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 32px 28px;
}

.analysis-modal__play{
  flex-shrink:0;
  width:52px;
  height:52px;
  border-radius:50%;
  border:0px solid rgba(255,255,255,0.35);
  background:rgba(103,0,255,0.35);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.analysis-modal__play[disabled]{
  opacity:.45;
  cursor:not-allowed;
  background:rgba(103,0,255,0.18);
}

.analysis-modal__play:not([disabled]):hover,
.analysis-modal__play:not([disabled]):focus-visible{
  transform:translateY(-1px);
}

.analysis-modal__play:not([disabled]):active{transform:translateY(0);}

.analysis-modal__play-icon{font-size:18px;}

.analysis-modal__play[data-playing="true"] .analysis-modal__play-icon--play{display:none;}
.analysis-modal__play[data-playing="false"] .analysis-modal__play-icon--pause{display:none;}

.analysis-modal__timeline-group{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.analysis-modal__timeline-wrapper{
  position:relative;
}

.analysis-modal__timeline-markers{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.analysis-timeline-marker{
  position:absolute;
  top:50%;
  transform:translate(-50%, -50%);
  width:18px;
  height:18px;
  border:0;
  padding:0;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
  cursor:pointer;
  z-index:1;
}

.analysis-timeline-marker__dot{
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background: #0b0529;
    box-shadow: 0 0 0 3px rgb(122 95 176), 0 8px 18px rgb(40 5 105);
    pointer-events: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.analysis-timeline-marker[data-type="strength"]{
  --analysis-marker-color:#22c55e;
  --analysis-marker-border:rgba(34,197,94,0.85);
  --analysis-marker-shadow:rgba(34,197,94,0.3);
  --analysis-marker-shadow-active:rgba(34,197,94,0.42);
}

.analysis-timeline-marker[data-type="opportunity"]{
  --analysis-marker-color:#facc15;
  --analysis-marker-border:rgba(250,204,21,0.85);
  --analysis-marker-shadow:rgba(250,204,21,0.28);
  --analysis-marker-shadow-active:rgba(250,204,21,0.38);
}

.analysis-timeline-marker--active .analysis-timeline-marker__dot{
  transform:scale(1.9);
  box-shadow:0 0 0 1px var(--analysis-marker-border, rgba(255,255,255,0.7)),
    0 0 0 4px rgba(255,255,255,0.14),
    0 12px 26px var(--analysis-marker-shadow-active, rgba(255,255,255,0.3));
}

.analysis-timeline-marker:hover .analysis-timeline-marker__dot,
.analysis-timeline-marker:focus-visible .analysis-timeline-marker__dot{
  transform:scale(2.2);
  box-shadow:0 0 0 1px var(--analysis-marker-border, rgba(255,255,255,0.7)),
    0 0 0 6px rgba(255,255,255,0.18),
    0 12px 28px var(--analysis-marker-shadow-active, rgba(255,255,255,0.32));
}

.analysis-timeline-marker::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 14px);
  transform:translate(-50%, -8px);
  background:rgba(8,10,30,0.95);
  color:#fff;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  line-height:1.3;
  white-space:normal;
  max-width:220px;
  text-align:left;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  box-shadow:0 14px 32px rgba(0,0,0,0.45);
}

.analysis-timeline-marker::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 6px);
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:rgba(8,10,30,0.95);
  opacity:0;
  transition:opacity .15s ease;
}

.analysis-timeline-marker:hover::after,
.analysis-timeline-marker:focus-visible::after{
  opacity:1;
  transform:translate(-50%, -16px);
}

.analysis-timeline-marker:hover::before,
.analysis-timeline-marker:focus-visible::before{
  opacity:1;
}

.analysis-modal__timecodes{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:rgba(255,255,255,0.6);
  font-size:13px;
  letter-spacing:.4px;
}

.analysis-modal__timeline{
    width: 100%;
    appearance: none;
    height: 3px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(103, 0, 255, 0.6) var(--analysis-progress, 0%), rgb(37 6 100) var(--analysis-progress, 0%));
    outline: none;
    cursor: pointer;
}

.analysis-modal__timeline:disabled{
  cursor:not-allowed;
  opacity:.45;
}

.analysis-modal__timeline::-webkit-slider-thumb{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(255,255,255,0.0);
  border:none;
  box-shadow:none;
  transition:transform .15s ease;
}

.analysis-modal__timeline:disabled::-webkit-slider-thumb{
  display:none;
}

.analysis-modal__timeline::-webkit-slider-thumb:hover,
.analysis-modal__timeline::-webkit-slider-thumb:active{
  transform:scale(1.1);
}

.analysis-modal__timeline::-moz-range-thumb{
  width:18px;
  height:18px;
  border:none;
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 16px rgba(103,0,255,0.45);
  transition:transform .15s ease;
}

.analysis-modal__timeline:disabled::-moz-range-thumb{display:none;}

.analysis-modal__timeline::-moz-range-thumb:hover,
.analysis-modal__timeline::-moz-range-thumb:active{
  transform:scale(1.1);
}

.analysis-modal__timeline::-moz-range-track{background:transparent;}
.analysis-modal__timeline::-webkit-slider-runnable-track{background:transparent;}

.analysis-modal__audio{display:none;}
.edu-card{
  background:#25106e;
  border-radius:12px;
  padding:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.edu-title{font-weight:600;margin-bottom:4px;}
.edu-body{opacity:.9;margin-bottom:8px;}
.edu-actions{display:flex;gap:8px;}
.edu-actions button{
  background:#6a5cff;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:6px 10px;
  cursor:pointer;
}
.edu-actions button.dismiss{
  background:transparent;
  border:1px solid rgba(255,255,255,.25);
}
.report-card-placeholder--inline{
  padding:12px 16px;
  text-align:left;
}
.report-card-item{
  background:rgba(18,9,60,0.65);
  border:1px solid rgba(128,69,255,0.35);
  border-radius:5px;
  overflow:hidden;
  transition:background .25s ease,border-color .25s ease;
}
.report-card-item[open]{
  background:rgba(28,13,80,0.8);
  border-color:rgba(128,69,255,0.6);
}
.report-card-summary{
  list-style:none;
  margin:0;
  padding:22px 24px 24px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.report-card-summary::-webkit-details-marker{display:none;}
.report-card-summary-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.report-card-summary h3{
  margin:0;
  font-size:22px;
  font-weight:600;
}
.report-score-bar{
  position:relative;
  height:16px;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  overflow:visible;
  margin-top:24px;
}
.report-score-bar::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:0 0 22px rgba(103,0,255,0.35);
  opacity:0;
  transition:opacity .3s ease;
}
.report-card-item[open] .report-score-bar::after{opacity:1;}
.report-score-bar-potential,
.report-score-bar-current{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:100%;
  border-radius:inherit;
  transform-origin:left center;
}
.report-score-bar-potential{
  background:rgba(128,69,255,0.35);
  transform:scaleX(var(--ratio,0));
}
.report-score-bar-current{
  background:rgba(128,69,255,0.9);
  transform:scaleX(var(--ratio,0));
}
.report-score-tooltip{
  position:absolute;
  left:calc(var(--position,0) * 100%);
  bottom:calc(100% + 12px);
  transform:translateX(-50%);
  background:rgba(103,0,255,0.92);
  color:#f4f1ff;
  border-radius:10px;
  padding:6px 12px;
  font-size:13px;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
  pointer-events:none;
}
.report-score-tooltip::after{
  content:'';
  position:absolute;
  bottom:-6px;
  width:0;
  height:0;
  border-style:solid;
  border-width:6px 6px 0 6px;
  border-color:rgba(103,0,255,0.92) transparent transparent transparent;
}
.report-score-tooltip[data-align='start']{
  transform:translateX(0);
}
.report-score-tooltip[data-align='start']::after{
  left:14px;
  transform:none;
}
.report-score-tooltip[data-align='end']{
  transform:translateX(-100%);
}
.report-score-tooltip[data-align='end']::after{
  left:calc(100% - 14px);
  transform:none;
}
.report-score-tooltip[data-align='center']::after{
  left:50%;
  transform:translateX(-50%);
}
.report-score-tooltip--potential{
  background:rgba(128,69,255,0.6);
  color:#f5edff;
}
.report-score-tooltip--potential::after{
  border-color:rgba(128,69,255,0.6) transparent transparent transparent;
}
.report-card-feedback{
  margin:0;
  color:rgba(255,255,255,0.75);
  line-height:1.5;
}
.report-card-item-body{
  padding:0 24px 26px;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.report-card-item-group{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.report-card-item-group-header{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.report-card-pill-timestamp{
  font-size:13px;
  font-weight:500;
  color:#d8caff;
}
.report-card-item-list{
  margin:0;
  padding-left:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.report-card-item-list li{line-height:1.5;}
.report-card-pill{
  align-self:flex-start;
  border-radius:999px;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.4px;
  text-transform:none;
  background:rgba(255,255,255,0.12);
  color:var(--text);
}
.report-card-pill--positive{background:rgba(16,185,129,0.25);color:#bfffe1;}
.report-card-pill--warning{background:rgba(250,204,21,0.2);color:#ffe9a6;}

.action-map-section{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.action-map-section[data-collapsed="true"] .action-map-list{
  display:none;
}
.action-map-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.action-card{
  background:#6700ff59;
  border:0px solid rgba(128,69,255,0.35);
  border-radius:5px;
  padding:18px 20px;
  margin-bottom:10px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.action-card--collapsible{
  cursor:pointer;
}
.action-card--collapsible:focus-visible{
  outline:2px solid rgba(233,225,255,0.8);
  outline-offset:2px;
}
.action-card--expanded{
  border-color:rgba(233,225,255,0.6);
  background:rgba(24,12,80,0.75);
}
.action-card[data-expanded="false"] .action-card-detail-group--recommended,
.action-card[data-expanded="false"] .action-card-touchpoint{
  display:none;
}
.action-card-details{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.action-card-detail-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.action-card-detail-label{
  margin:0;
  font-size:12px;
  font-weight:600;
  letter-spacing:.35px;
  text-transform:uppercase;
  color:rgba(233,225,255,0.8);
}
.action-card-detail-text{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,0.8);
}
.action-card-detail-list{
  margin:0;
  padding-left:20px;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,0.8);
}
.action-card-detail-list li{
  margin:0;
}
.action-card-category{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  width:fit-content;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.35px;
  text-transform:none;
  background:rgba(103,0,255,0.25);
  color:#e9e1ff;
}
.action-map-toggle{
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-transform:none;
  letter-spacing:.35px;
  padding:6px 12px;
  border-radius:999px;
}
.action-map-toggle:focus{
  outline:2px solid rgba(233,225,255,0.8);
  outline-offset:2px;
}
.action-map-toggle .action-map-toggle-label{font-size:12px;font-weight:600;}
.action-map-toggle .action-map-toggle-icon{
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-bottom:8px solid currentColor;
  transition:transform .2s ease;
}
.action-map-toggle[aria-expanded="false"] .action-map-toggle-icon{
  transform:rotate(-90deg);
}
.action-card-anchor{
  margin:0;
  font-size:15px;
  font-weight:500;
  color:rgba(255,255,255,0.9);
}
.action-card-anchor--empty{
  color:var(--text-muted);
  font-style:italic;
}

@media (max-width: 900px){
  .report-card-overview{
    padding:0;
  }
  .report-card-overview-grid{
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  }
  .analysis-modal{
    padding:32px 16px;
  }
  .analysis-modal__dialog{
    width:100%;
    height:calc(100vh - 64px);
    border-radius:14px;
  }
  .analysis-modal__top{
    padding:24px 20px 12px;
  }
  .analysis-modal__body{
    padding:0 20px 20px;
  }
  .analysis-modal__transport{
    padding:16px 20px 24px;
  }
}

@media (max-width: 700px){
  .report-card-modal{
    padding:24px 12px;
  }
  .report-card-modal__dialog{
    width:100%;
    max-height:calc(100vh - 48px);
  }
  .report-card-modal__header{
    padding:20px 20px 14px;
  }
  .report-card-modal__content{
    padding:0 20px 24px;
  }
}

@media (max-width: 600px){
  .analysis-modal__title{
    font-size:22px;
    gap:6px;
  }
  .analysis-modal__title-separator{font-size:16px;}
  .analysis-modal__meta{gap:8px;}
  .analysis-modal__pill{font-size:11px;padding:5px 12px;}
  .analysis-modal__play{width:46px;height:46px;}
  .analysis-modal__transport{flex-direction:column;align-items:stretch;gap:12px;}
  .analysis-modal__timeline-group{width:100%;}
  .analysis-modal__timecodes{font-size:12px;}
}

@media (max-width: 1100px){
  .report-card-content{grid-template-columns:1fr;}
  .report-card-panel{max-height:none;}
}
.login-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:32px;
  padding:48px 16px 64px;
}

.login-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}

.login-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.login-main{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  padding:0;
}

.login-card{
  width:100%;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(128,69,255,0.4);
  border-radius:5px;
  padding:28px;
  box-shadow:var(--shadow);
}

.login-card__subtitle{
  margin:0 0 12px 0;
  color:var(--text-muted);
}

.login-form{
  display:flex;
  flex-direction:column;
}

.login-form .input-with-toggle{
  position:relative;
  display:flex;
  align-items:center;
  margin-bottom:6px;
}

.login-form .input-with-toggle input{
  flex:1;
  margin-bottom:0;
  padding-right:44px;
}

.login-form .toggle-visibility{
  position:absolute;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:0;
  padding:4px;
  background:transparent;
  color:var(--text-muted);
  cursor:pointer;
  transition:color 0.2s ease;
}

.login-form .toggle-visibility:hover,
.login-form .toggle-visibility:focus-visible{
  color:var(--text);
}

.login-form .toggle-visibility:focus-visible{
  outline:2px solid rgba(128,69,255,0.75);
  outline-offset:2px;
}

.login-form .toggle-visibility .icon{
  width:20px;
  height:20px;
}

.login-form .toggle-visibility .icon-hide{
  display:none;
}

.login-form .toggle-visibility.is-visible .icon-hide{
  display:block;
}

.login-form .toggle-visibility.is-visible .icon-show{
  display:none;
}

.login-remember{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.2;
  cursor:pointer;
  user-select:none;
}

.login-remember input{
  appearance:none;
  width:18px;
  height:18px;
  margin:0;
  border-radius:50%;
  border:2px solid rgba(128,69,255,0.55);
  background:rgba(255,255,255,0.04);
  display:inline-flex;
  position:relative;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.login-remember input::after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--btn-primary);
  transform:scale(0);
  transition:transform 0.2s ease;
}

.login-remember input:checked{
  border-color:var(--btn-primary);
  background:rgba(103,0,255,0.25);
}

.login-remember input:checked::after{
  transform:scale(1);
}

.login-remember input:focus-visible{
  outline:2px solid rgba(128,69,255,0.75);
  outline-offset:2px;
}

.login-remember span{
  display:inline-block;
  color:var(--text);
}

.login-form input{
  margin-bottom:6px;
}

.login-actions{
  display:flex;
  flex-direction:column;
  margin-top:18px;
}

.login-actions .btn{
  width:100%;
}

.login-help{
  font-size:14px;
  color:var(--text-muted);
  text-align:center;
}

.login-help a{
  color:var(--text);
}

.login-help a:hover,
.login-help a:focus-visible{
  text-decoration:underline;
}
.card{
  width: min(520px, 92vw);
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:5px;
  padding:28px;
  box-shadow:var(--shadow);
}
h1,h2,h3{margin:0 0 18px 0;font-weight:600}
h1{font-size:28px}
label{display:block;margin:18px 0 8px 0;color:var(--text-muted)}
input{
  width:100%;
  padding:20px;
  border-radius:5px;
  border:0px solid var(--border);
  background:var(--field);
  outline:none;
  color:var(--text);
  font-weight:200;
  font-size:16px;
}
.row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.btn,
button{
  border-radius:5px;
  padding:14px 18px;
  font-size:16px;
  cursor:pointer;
  transition:.15s ease transform,.15s ease filter;
}
.btn,
button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;background:var(--btn-secondary)}
.btn:active,
button:active{transform:translateY(1px)}
.btn-primary,
button.btn-primary{ background:var(--btn-primary); color:var(--text) }
.btn-secondary,
button.btn-secondary{ background:var(--btn-secondary); color:var(--text); }
.action-map-toggle,
.report-card-sidebar-action,
.report-card-sidebar-toggle{
  border-radius:5px;
}
.action-map-toggle{
  border:none;
  padding:6px 12px;
}
.report-card-sidebar-action{
  border:none;
  background:none;
  padding:0;
}
.report-card-sidebar-toggle{
  background:rgba(11,5,41,0.9);
  border:1px solid rgba(128,69,255,0.4);
}
.banner{
  margin-top:16px;
  padding:12px 14px;
  border-radius:5px;
  font-size:14px;
  display:none;
}
.banner.ok{ background: rgba(16,185,129,.15); border:1px solid rgba(16,185,129,.55); color:#c9fddf; }
.banner.err{ background: rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.55); color:#ffd6d6; }
.table{
  width:min(980px,96vw);
  background:#14093cc7;
  border:0px solid var(--border);
  border-radius:5px;
  padding:18px;
}
table{width:100%;border-collapse:collapse}
th,td{padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left}
th{font-weight:600;color:var(--text)}
td{color:var(--text)}
.account-plan-current-row th{font-size:12px;letter-spacing:.35px;text-transform:uppercase;color:var(--text-muted)}
.account-plan-current-row td{padding-top:18px;text-align:center}
.account-plan-current-row th,.account-plan-current-row td{border-bottom:none}
.account-plan-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(128,69,255,0.22);
  border:1px solid rgba(168,123,255,0.55);
  font-size:13px;
  font-weight:600;
  letter-spacing:.3px;
  color:var(--text);
  text-transform:uppercase;
  margin:0;
  min-width:110px;
}

.account-plan-manage-link{
  display:block;
  margin-top:10px;
  font-size:15px;
  font-weight:100;
  color:var(--accent, #cbb7ff);
  text-decoration:none;
}

.account-plan-manage-link:focus,
.account-plan-manage-link:hover{
  text-decoration:underline;
}
.search{margin:12px 0 18px}
.search input{background:transparent}
.small{font-size:13px;color:var(--text-muted)}

.profile-content{
  width:min(1100px,96vw);
  margin:20px;
  display:flex;
  flex-direction:column;
  gap:28px;
}

.profile-header{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.profile-header h1{
  margin:0;
  font-size:32px;
  font-weight:600;
  letter-spacing:.6px;
  padding-top:0;
}

.profile-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-left:auto;
  align-items:center;
}

.profile-links:empty{display:none;}

.profile-social-btn{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:999px;
  padding:10px 20px;
  font-size:15px;
  font-weight:500;
  letter-spacing:.3px;
  color:#ffffff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:.2s ease background,.2s ease transform;
}

.profile-social-btn:hover{
  background:rgba(255,255,255,0.16);
  transform:translateY(-1px);
}

.profile-social-btn:active{
  transform:translateY(0);
}

.user-pill{
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:999px;
  padding:10px 22px;
  font-size:15px;
  font-weight:200;
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.user-pill[hidden]{
  display:none;
}

.profile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}

.profile-section{
  background:rgba(24,0,68,0.85);
  border:1px solid rgba(128,69,255,0.4);
  border-radius:5px;
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.profile-progress{
  gap:20px;
}

.profile-insights-grid{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.profile-insights-column{
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}

.profile-insights-column--progress{
  flex:2 1 420px;
}

.profile-insights-column--skills{
  flex:1 1 320px;
}

.profile-insights-skills{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:20px 22px;
  border-radius:5px;
  border:1px solid rgba(128,69,255,0.4);
  background:rgba(32,0,85,0.6);
}

@media (min-width: 960px){
  .profile-insights-grid{
    flex-direction:row;
  }
}

.profile-progress-chart{
  position:relative;
  height:320px;
}

.profile-progress-chart canvas{
  width:100%;
  height:100%;
}

.profile-progress-empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.profile-progress-tooltip{
  position:fixed;
  left:-9999px;
  top:-9999px;
  z-index:4500;
  transform:translate(-50%, -110%);
  opacity:0;
  visibility:hidden;
  transition:opacity .16s ease, transform .16s ease;
  pointer-events:none;
}

.profile-progress-tooltip.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.profile-progress-popover{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
  max-width:280px;
  background:rgba(34,8,88,0.92);
  border:1px solid rgba(162,119,255,0.55);
  border-radius:10px;
  padding:16px 18px;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 18px 32px rgba(6,0,32,0.55);
  cursor:pointer;
}

.profile-progress-popover:hover,
.profile-progress-popover:focus-visible{
  border-color:rgba(192,164,255,0.75);
  background:rgba(49,19,122,0.95);
  text-decoration:none;
}

.profile-progress-popover:focus-visible{
  outline:2px solid rgba(192,164,255,0.8);
  outline-offset:2px;
}

.profile-progress-popover__title{
  margin:0;
  font-size:17px;
  font-weight:600;
  letter-spacing:.3px;
}

.profile-progress-popover__meta{
  margin:0;
  font-size:13px;
  color:var(--text-muted);
}

.profile-progress-popover__score{
  margin:0;
  font-size:14px;
  font-weight:600;
}

.profile-skills-chart{
  position:relative;
  height:320px;
}

.profile-skills-chart canvas{
  width:100%;
  height:100%;
}

.profile-skills-empty{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-heading h2{margin:0;font-size:17px;font-weight:600;letter-spacing:.4px}

.chip-list{display:flex;flex-wrap:wrap;gap:10px}

.chip{
  padding:8px 14px;
  border-radius:5px;
  background:rgba(103,0,255,0.22);
  border:1px solid rgba(128,69,255,0.35);
  font-size:14px;
  font-weight:400;
  color:var(--text);
  letter-spacing:.3px;
}

.chip.is-empty{opacity:.45;font-style:italic}

.profile-admin{grid-column:1/-1}

.admin-details{display:grid;grid-template-columns:minmax(160px,1fr) 2fr;gap:12px 24px;align-items:start;font-size:14px}
.admin-details dt{margin:0;font-weight:600;text-transform:none;letter-spacing:.5px;color:rgba(255,255,255,0.8)}
.admin-details dd{margin:0;color:rgba(255,255,255,0.9);word-break:break-word;white-space:pre-wrap}

.profile-requests{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.profile-requests-heading{align-items:center;gap:12px;}

.profile-requests-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}

.profile-requests-list:empty{display:none;}

.profile-request-card{
  background:rgba(34,8,88,0.85);
  border:1px solid rgba(128,69,255,0.35);
  border-radius:8px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-request-new{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-start;
}

.profile-request-new-button{
  border-radius:999px;
  border:1px solid rgba(162,119,255,0.5);
  background:rgba(34,8,88,0.35);
  color:var(--text);
  padding:10px 16px;
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.profile-request-new-button:hover,
.profile-request-new-button:focus-visible,
.profile-request-new.is-active .profile-request-new-button{
  background:rgba(49,19,122,0.6);
  border-color:rgba(192,164,255,0.8);
  transform:translateY(-1px);
}

.profile-request-new-button:focus-visible{
  outline:2px solid rgba(192,164,255,0.8);
  outline-offset:2px;
}

.profile-request-new-message{
  margin:0;
  font-size:14px;
  color:var(--text-muted);
}

.profile-request-card.is-interactive{cursor:pointer;}

.profile-request-card.is-interactive:hover,
.profile-request-card.is-interactive:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(162,119,255,0.6);
  background:rgba(49,19,122,0.9);
}

.profile-request-card.is-interactive:focus-visible{outline:2px solid rgba(162,119,255,0.8);outline-offset:2px;}

.profile-request-card-tooltip{
  position:fixed;
  left:-9999px;
  top:-9999px;
  z-index:4000;
  background:rgba(14,6,40,0.95);
  color:#fff;
  padding:6px 10px;
  border-radius:6px;
  font-size:12px;
  line-height:1.4;
  pointer-events:none;
  box-shadow:0 12px 24px rgba(4,0,24,0.45);
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease;
  white-space:nowrap;
}

.profile-request-card-tooltip.is-visible{
  opacity:1;
  visibility:visible;
}

.profile-request-card-title{
  margin:0;
  font-size:18px;
  font-weight:600;
  letter-spacing:.4px;
}

.profile-request-card-link{
  color:inherit;
  text-decoration:none;
}

.profile-request-card-link:hover,
.profile-request-card-link:focus-visible{color:inherit;text-decoration:underline;}

.profile-request-card-audio{
  display:flex;
}

.profile-audio-player{
  flex:1;
  display:flex;
  align-items:center;
  gap:16px;
  border-radius:0px;
  border:0px solid rgba(162,119,255,0.35);
}

.profile-audio-player__play{
  width:46px;
  height:46px;
}

.profile-audio-player__timeline-group{
  flex:1;
  display:flex;
  align-items:center;
  min-width:0;
}

.profile-audio-player__timeline{
  width:100%;
  min-width:0;
  --analysis-progress: 0%;
}

.profile-audio-player__media{display:none;}

.profile-requests-empty{margin:0;font-size:14px;color:var(--text-muted)}

.dashboard-modal__chart{min-height:0;}

@media (max-width:720px){
  main{padding:32px 18px 48px}
  .dashboard-main{gap:24px}
  .dashboard-header h1{font-size:30px}
  .dashboard-modal__body{grid-template-columns:1fr;}
  .dashboard-modal__sidebar{order:-1;}
  .dashboard-modal__filter{flex-direction:column;align-items:flex-start;}
  .dashboard-modal__filter-reset{align-self:flex-start;}
  .profile-header{flex-direction:column;align-items:flex-start;}
  .profile-sidebar{position:static;max-height:none;overflow:visible;}
  .profile-content{gap:22px}
  .profile-header h1{font-size:26px}
  .profile-links{margin-left:0;}
  .profile-requests-list{grid-template-columns:1fr;}
  .admin-details{grid-template-columns:1fr}
}

@font-face {
  font-family: 'PPMori';
  src: url('../fonts/ppmori/PPMori-Extralight.otf') format('opentype');

  font-weight: 200;
  font-style: normal;
  font-display: swap;
}


@font-face {

  font-family: 'PPMori';
  src: url('../fonts/ppmori/PPMori-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
