/*-----------------------------------*\
		BASE
\*-----------------------------------*/
/*-----------------------------------------------------*\

	*Filename:		base.scss
	*Description: 	contains the baseline reset and
					grids for the project
	*Version:		1.0.0(2015-03-10)
	*Website:		http://schonne.com
	*Author:		Schonne Eldridge

 ===TABLE OF CONTENTS:===================================

	$_RESET			reset.css

\*------------------------------------------------------*/
/*-----------------------------------*\
		$_RESET
\*-----------------------------------*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
  min-height: 100vh;
}

body {
  line-height: 1;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*, *:before, *:after {
  margin: 0;
  padding: 0;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.clearfix:before, .clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.content {
  width: 1200px;
  margin: auto;
  display: block;
}
@media screen and (max-width: 1200px) {
  .content {
    width: 100%;
  }
}

input {
  -webkit-appearance: none;
  border-radius: 0;
}

input:focus, select:focus, textarea:focus, button:focus {
  outline: none;
}

/*-----------------------------------------------------*\

	*Filename:		base.scss
	*Description: 	contains the baselines specifically
					for the project
	*Version:		1.0.0(2015-03-10)
	*Website:		http://schonne.com
	*Author:		Schonne Eldridge

 ===TABLE OF CONTENTS:===================================

	$_FONTS					dynamic fonts
	$_PROJECT BASELINE		baselines for the project suc

\*------------------------------------------------------*/
/*-----------------------------------*\
		$_FONTS
\*-----------------------------------*/
/*-----------------------------------*\
		$_PROJECT BASELINE
\*-----------------------------------*/
html {
  height: 100%;
}

body {
  height: 100%;
  background: #060b14;
  background-image: radial-gradient(ellipse 80% 60% at 15% 0%, rgba(0, 212, 170, 0.07) 0%, transparent 100%), radial-gradient(ellipse 60% 50% at 85% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
  background-attachment: fixed;
  color: #e0e0e0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr;
}
body.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}
body.is-logged-out {
  grid-template-columns: 1fr;
}
body.is-logged-out nav-sidebar {
  display: none;
}

main {
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

@media screen and (max-width: 767px) {
  body {
    grid-template-columns: 1fr;
  }
}
body {
  transition: grid-template-columns 0.25s ease;
}

::selection {
  background: rgba(0, 212, 170, 0.2);
  color: #f0f4ff;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #162035;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e3050;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

/*-----------------------------------*\
		CUSTOM ELEMENTS
\*-----------------------------------*/
loading-element {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 20, 0.85);
}
loading-element.is-active {
  display: flex;
}
loading-element .inner {
  position: absolute;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: loading-spin 1.2s linear infinite;
}
loading-element .inner.one {
  width: 48px;
  height: 48px;
  border-top-color: #00d4aa;
}
loading-element .inner.two {
  width: 36px;
  height: 36px;
  border-top-color: #8b5cf6;
  animation-duration: 0.9s;
  animation-direction: reverse;
}
loading-element .inner.three {
  width: 24px;
  height: 24px;
  border-top-color: #ec4899;
  animation-duration: 0.6s;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
nav-sidebar {
  display: block;
  position: relative;
  z-index: 100;
}
nav-sidebar .hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
nav-sidebar .hamburger .hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
nav-sidebar .sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}
nav-sidebar .sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #0c1526;
  border-right: 1px solid #162035;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
  overflow: hidden;
  z-index: 100;
}
nav-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #162035;
  min-height: 64px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.07) 0%, transparent 100%);
}
nav-sidebar .sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
nav-sidebar .logo-icon {
  flex-shrink: 0;
  width: 200px;
  height: auto;
  object-fit: contain;
}
nav-sidebar .logo-text {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #f0f4ff 0%, #4debd6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}
nav-sidebar .sidebar-collapse-btn {
  background: none;
  border: none;
  color: #8888a0;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  transition: transform 0.25s ease, color 0.15s ease;
  flex-shrink: 0;
}
nav-sidebar .sidebar-collapse-btn:hover {
  color: #e0e0e0;
}
nav-sidebar .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}
nav-sidebar .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  color: #8888a0;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  border-left: 3px solid transparent;
}
nav-sidebar .nav-item:hover {
  background: #132030;
  color: #e0e0e0;
  border-left-color: rgba(0, 212, 170, 0.3);
}
nav-sidebar .nav-item.is-active {
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.22) 0%, rgba(0, 212, 170, 0.04) 100%);
  color: #fff;
  border-left-color: #00d4aa;
  box-shadow: inset 0 1px 0 rgba(0, 212, 170, 0.08), inset 0 -1px 0 rgba(0, 212, 170, 0.08);
}
nav-sidebar .nav-item.is-active .nav-icon {
  filter: drop-shadow(0 0 4px rgba(0, 212, 170, 0.8));
}
nav-sidebar .nav-item.is-active .nav-label {
  font-weight: 600;
}
nav-sidebar .nav-item.login-only {
  display: none;
}
nav-sidebar .nav-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
nav-sidebar .nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}
nav-sidebar .nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  padding: 0 6px;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}
nav-sidebar .nav-badge--live {
  background: #00d4aa;
}
nav-sidebar .sidebar-footer {
  border-top: 1px solid #162035;
  padding: 16px;
  background: #091020;
}
nav-sidebar .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
}
nav-sidebar .user-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
nav-sidebar .user-phone {
  font-size: 13px;
  color: #8888a0;
  transition: opacity 0.25s ease;
}
nav-sidebar .logout-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #162035;
  border-radius: 6px;
  color: #8888a0;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}
nav-sidebar .logout-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border-color: #8888a0;
}
nav-sidebar.is-collapsed .sidebar-panel {
  width: 64px;
}
nav-sidebar.is-collapsed .logo-text,
nav-sidebar.is-collapsed .nav-label,
nav-sidebar.is-collapsed .nav-badge,
nav-sidebar.is-collapsed .user-phone,
nav-sidebar.is-collapsed .logout-btn {
  opacity: 0;
  pointer-events: none;
}
nav-sidebar.is-collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}
nav-sidebar.is-collapsed .sidebar-header {
  justify-content: center;
  padding: 20px 8px;
}
nav-sidebar.is-collapsed .sidebar-logo {
  justify-content: center;
}
nav-sidebar.is-collapsed .nav-item {
  justify-content: center;
  padding: 12px 0;
  border-left-width: 0;
}
nav-sidebar.is-collapsed .sidebar-footer {
  padding: 16px 8px;
}
nav-sidebar.is-collapsed .user-info {
  justify-content: center;
}
@media screen and (max-width: 767px) {
  nav-sidebar .hamburger {
    display: flex;
  }
  nav-sidebar .sidebar-panel {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  nav-sidebar .sidebar-collapse-btn {
    display: none;
  }
  nav-sidebar.is-open .sidebar-panel {
    transform: translateX(0);
  }
  nav-sidebar.is-open .sidebar-overlay {
    display: block;
  }
  nav-sidebar.is-open .hamburger .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav-sidebar.is-open .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  nav-sidebar.is-open .hamburger .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

body.is-logged-out nav-sidebar .nav-item.login-only {
  display: flex;
}

body.is-logged-out nav-sidebar .sidebar-panel {
  display: none;
}
body.is-logged-out nav-sidebar .hamburger {
  display: none;
}

login-element {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}
login-element .login-wrapper {
  width: 100%;
  max-width: 400px;
}
login-element .login-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
login-element .login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.6), transparent);
}
login-element .login-header {
  text-align: center;
  margin-bottom: 32px;
}
login-element .login-logo {
  width: 400px;
  height: auto;
  margin-bottom: 8px;
}
login-element .login-subtitle {
  font-size: 13px;
  color: #8888a0;
  margin: 4px 0 0;
  letter-spacing: 0.5px;
  min-height: 1em;
}
login-element .login-card.is-dea {
  background: #110505;
  border-color: #2e0c0c;
}
login-element .login-card.is-dea::before {
  background: linear-gradient(90deg, transparent, rgba(196, 43, 43, 0.5), transparent);
}
login-element .login-card.is-dea .login-btn {
  background: linear-gradient(135deg, #C42B2B 0%, #9B1B1B 100%);
  box-shadow: 0 4px 16px rgba(155, 27, 27, 0.4);
}
login-element .login-card.is-dea .login-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(196, 43, 43, 0.5);
}
login-element .login-card.is-dea .phone-input-group,
login-element .login-card.is-dea .login-input {
  background: #0c0404;
  border-color: #2e0c0c;
}
login-element .login-card.is-dea .phone-input-group:focus-within, login-element .login-card.is-dea .phone-input-group:focus,
login-element .login-card.is-dea .login-input:focus-within,
login-element .login-card.is-dea .login-input:focus {
  border-color: #C42B2B;
}
login-element .login-title {
  font-size: 24px;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 8px;
}
login-element .login-subtitle {
  font-size: 14px;
  color: #8888a0;
}
login-element .login-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ff6b6b;
  display: none;
  line-height: 1.4;
}
login-element .login-error.is-visible {
  display: block;
}
login-element .login-step.is-hidden {
  display: none;
}
login-element .login-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #8888a0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
login-element .phone-input-group {
  display: flex;
  align-items: center;
  background: #07101c;
  border: 1px solid #162035;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}
login-element .phone-input-group:focus-within {
  border-color: #00d4aa;
}
login-element .phone-input-group .country-code {
  padding: 0 12px;
  font-size: 14px;
  color: #8888a0;
  border-right: 1px solid #162035;
  line-height: 44px;
  flex-shrink: 0;
  user-select: none;
}
login-element .phone-input-group .login-input {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}
login-element .phone-input-group .login-input:focus {
  border-color: transparent;
}
login-element .login-input {
  width: 100%;
  padding: 12px 14px;
  background: #07101c;
  border: 1px solid #162035;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}
login-element .login-input::placeholder {
  color: #5c5c7a;
}
login-element .login-input:focus {
  border-color: #00d4aa;
}
login-element .otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 8px;
  padding: 14px;
}
login-element .login-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #00e5b8 0%, #00d4aa 40%, #7c3aed 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}
login-element .login-btn:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.45);
}
login-element .login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
login-element .login-btn .login-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.6s linear infinite;
}
login-element .login-btn.is-loading .login-spinner {
  display: block;
}
login-element .login-back-btn {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #162035;
  border-radius: 8px;
  color: #8888a0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
login-element .login-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}
@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}
dashboard-home {
  display: block;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
dashboard-home .stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
dashboard-home .stat-card {
  flex: 1;
  min-width: 180px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
dashboard-home .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.8) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
dashboard-home .stat-card:hover {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.09), 0 1px 0 rgba(0, 212, 170, 0.1);
}
dashboard-home .stat-card:hover::before {
  opacity: 1;
}
dashboard-home .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
dashboard-home .stat-icon--agents {
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}
dashboard-home .stat-icon--agents::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
dashboard-home .stat-icon--jobs {
  background: rgba(0, 212, 170, 0.15);
  box-shadow: 0 0 14px rgba(0, 212, 170, 0.2);
}
dashboard-home .stat-icon--jobs::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid #00d4aa;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 3px rgba(0, 212, 170, 0.6));
}
dashboard-home .stat-icon--projects {
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}
dashboard-home .stat-icon--projects::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #f59e0b;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}
dashboard-home .stat-icon--budget {
  background: rgba(6, 182, 212, 0.15);
}
dashboard-home .stat-icon--budget::after {
  content: "$";
  color: #06b6d4;
  font-weight: 700;
  font-size: 16px;
}
dashboard-home .stat-content {
  display: flex;
  flex-direction: column;
}
dashboard-home .stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #f0f0f8;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
dashboard-home .stat-label {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}
dashboard-home .section {
  margin-bottom: 32px;
}
dashboard-home .section-header {
  margin-bottom: 16px;
}
dashboard-home .section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f8;
  margin: 0;
  letter-spacing: -0.2px;
}
dashboard-home .org-chart-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
dashboard-home .org-tier {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
dashboard-home .org-tier:nth-child(2) {
  padding-left: 24px;
  padding-right: 24px;
}
dashboard-home .org-tier:nth-child(3) {
  padding-left: 48px;
  padding-right: 48px;
}
dashboard-home .agent-card {
  background: rgba(12, 21, 38, 0.8);
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 200px;
}
dashboard-home .agent-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.12);
}
dashboard-home .agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
dashboard-home .agent-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
dashboard-home .agent-name {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
dashboard-home .role-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
dashboard-home .role-badge.role-coo {
  background: rgba(0, 212, 170, 0.2);
  color: #4debd6;
}
dashboard-home .role-badge.role-vp {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
dashboard-home .role-badge.role-specialist {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}
dashboard-home .role-badge.role-compliance {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
dashboard-home .role-badge.role-other {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}
dashboard-home .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
dashboard-home .status-dot.status-active {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-active 2.2s ease-in-out infinite;
}
dashboard-home .status-dot.status-idle {
  background: #6b7280;
}
dashboard-home .status-dot.status-error {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
dashboard-home .org-tier--vp-group {
  flex-direction: column;
  align-items: center;
}
dashboard-home .hierarchy-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}
dashboard-home .hierarchy-children {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
dashboard-home .hierarchy-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.35), rgba(42, 42, 74, 0.5));
  margin: 0 auto;
}
dashboard-home .hierarchy-specialists {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}
dashboard-home .hierarchy-specialists::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #162035;
}
dashboard-home .hierarchy-specialists .agent-card {
  margin-top: 12px;
  position: relative;
}
dashboard-home .hierarchy-specialists .agent-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: #162035;
}
dashboard-home .budget-bar {
  width: 100%;
  height: 4px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 2px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
dashboard-home .budget-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
dashboard-home .budget-bar-label {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
  display: block;
  text-align: right;
}
dashboard-home .approval-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
dashboard-home .agent-card {
  position: relative;
}
dashboard-home .activity-list {
  background: rgba(12, 21, 38, 0.8);
  border: 1px solid #162035;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
dashboard-home .activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #162035;
  font-size: 13px;
}
dashboard-home .activity-item:last-child {
  border-bottom: none;
}
dashboard-home .activity-item:hover {
  background: rgba(0, 212, 170, 0.05);
}
dashboard-home .activity-time {
  color: #6b7280;
  font-size: 12px;
  min-width: 64px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
dashboard-home .activity-agent {
  color: #4debd6;
  font-weight: 500;
  min-width: 80px;
  flex-shrink: 0;
}
dashboard-home .activity-action {
  color: #9ca3af;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
dashboard-home .quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
dashboard-home .action-btn {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 14px 24px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
dashboard-home .action-btn:hover {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.1);
}
dashboard-home .action-icon {
  font-size: 16px;
  color: #00d4aa;
}
dashboard-home .approvals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
dashboard-home .approval-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 16px;
  border-left: 3px solid #f59e0b;
}
dashboard-home .approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
dashboard-home .approval-reason {
  font-weight: 600;
  color: #f59e0b;
  text-transform: capitalize;
}
dashboard-home .approval-time {
  color: #6a6a80;
  font-size: 12px;
}
dashboard-home .approval-details {
  color: #a0a0b0;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}
dashboard-home .approval-meta {
  color: #6a6a80;
  font-size: 12px;
  margin-bottom: 12px;
}
dashboard-home .approval-actions {
  display: flex;
  gap: 8px;
}
dashboard-home .btn-approve {
  background: #22c55e;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
dashboard-home .btn-approve:hover {
  background: #16a34a;
}
dashboard-home .btn-reject {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
dashboard-home .btn-reject:hover {
  background: #dc2626;
}
dashboard-home .approval-count-header {
  background: #f59e0b;
  color: #060b14;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}
dashboard-home .empty-state {
  padding: 32px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
@media (max-width: 640px) {
  dashboard-home {
    padding: 16px;
  }
  dashboard-home .stats-bar {
    gap: 10px;
  }
  dashboard-home .stat-card {
    min-width: 140px;
    padding: 14px;
  }
  dashboard-home .stat-value {
    font-size: 20px;
  }
  dashboard-home .org-tier {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  dashboard-home .agent-card {
    min-width: 160px;
  }
  dashboard-home .activity-item {
    flex-wrap: wrap;
    gap: 6px;
  }
  dashboard-home .activity-time {
    min-width: auto;
  }
}

@keyframes pulse-active {
  0%, 100% {
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9), 0 0 20px rgba(34, 197, 94, 0.25);
  }
}
agent-profile {
  display: block;
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
agent-profile .agent-list-view .section-header {
  margin-bottom: 20px;
}
agent-profile .agent-list-view .section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}
agent-profile .agent-tier-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 20px 0 8px;
}
agent-profile .agent-tier-label:first-of-type {
  margin-top: 4px;
}
agent-profile .agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
agent-profile .agent-list-card {
  background: rgba(12, 21, 38, 0.8);
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
agent-profile .agent-list-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.12);
}
agent-profile .agent-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
agent-profile .agent-list-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
agent-profile .agent-list-name {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
agent-profile .system-badge {
  font-size: 10px;
  font-weight: 700;
  color: #4debd6;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
agent-profile .agent-list-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
agent-profile .cron-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22, 32, 53, 0.6);
}
agent-profile .cron-item:last-child {
  border-bottom: none;
}
agent-profile .cron-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
agent-profile .cron-dot.is-ok {
  background: #00d4aa;
}
agent-profile .cron-dot.is-running {
  background: #f59e0b;
}
agent-profile .cron-dot.is-failed {
  background: #ef4444;
}
agent-profile .cron-info {
  flex: 1;
  min-width: 0;
}
agent-profile .cron-name {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 2px;
}
agent-profile .cron-schedule {
  font-size: 11px;
  color: #4debd6;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
agent-profile .cron-cost {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}
agent-profile .back-bar {
  margin-bottom: 20px;
}
agent-profile .back-btn {
  background: none;
  border: 1px solid #162035;
  color: #9ca3af;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
agent-profile .back-btn:hover {
  color: #e0e0e0;
  border-color: #00d4aa;
}
agent-profile .agent-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 14px;
}
agent-profile .agent-avatar-xl {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
agent-profile .agent-avatar-xl.agent-avatar--upload {
  cursor: pointer;
}
agent-profile .agent-avatar-xl.agent-avatar--upload:hover .avatar-upload-overlay, agent-profile .agent-avatar-xl.agent-avatar--upload.is-dragover .avatar-upload-overlay {
  opacity: 1;
}
agent-profile .agent-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
agent-profile .avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
agent-profile .agent-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
agent-profile .agent-detail-name {
  font-size: 24px;
  font-weight: 700;
  color: #e0e0e0;
  margin: 0;
}
agent-profile .agent-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
agent-profile .model-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
agent-profile .status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
agent-profile .status-indicator.status-active {
  color: #22c55e;
}
agent-profile .status-indicator.status-idle {
  color: #6b7280;
}
agent-profile .status-indicator.status-error {
  color: #ef4444;
}
agent-profile .role-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
agent-profile .role-badge.role-coo {
  background: rgba(0, 212, 170, 0.2);
  color: #4debd6;
}
agent-profile .role-badge.role-vp {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}
agent-profile .role-badge.role-specialist {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}
agent-profile .role-badge.role-compliance {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
agent-profile .role-badge.role-other {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}
agent-profile .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
agent-profile .status-dot.status-active {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
agent-profile .status-dot.status-idle {
  background: #6b7280;
}
agent-profile .status-dot.status-error {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
agent-profile .info-cards-row {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
agent-profile .info-card {
  flex: 1;
  min-width: 160px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 16px 20px;
}
agent-profile .info-card-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
agent-profile .info-card-value {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
}
agent-profile .section {
  margin-bottom: 24px;
}
agent-profile .section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
agent-profile .section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}
agent-profile .soul-editor {
  width: 100%;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 16px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}
agent-profile .soul-editor:focus {
  border-color: #00d4aa;
}
agent-profile .save-btn {
  background: #00d4aa;
  border: none;
  color: #fff;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
agent-profile .save-btn:hover {
  background: #00b896;
}
agent-profile .save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
agent-profile .save-btn.is-success {
  background: #22c55e;
}
agent-profile .save-btn.is-error {
  background: #ef4444;
}
agent-profile .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
agent-profile .skill-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 212, 170, 0.15);
  color: #4debd6;
  border: 1px solid rgba(0, 212, 170, 0.3);
}
agent-profile .projects-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
agent-profile .project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
agent-profile .project-item:hover {
  border-color: #00d4aa;
}
agent-profile .project-icon {
  font-size: 18px;
}
agent-profile .project-name {
  font-size: 14px;
  color: #e0e0e0;
  font-weight: 500;
}
agent-profile .timeline-container {
  padding-left: 16px;
  border-left: 2px solid #162035;
}
agent-profile .timeline-item {
  position: relative;
  padding: 0 0 16px 20px;
}
agent-profile .timeline-item:last-child {
  padding-bottom: 0;
}
agent-profile .timeline-dot {
  position: absolute;
  left: -23px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00d4aa;
  border: 2px solid #060b14;
}
agent-profile .timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
agent-profile .timeline-time {
  font-size: 11px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
agent-profile .timeline-action {
  font-size: 13px;
  color: #9ca3af;
}
agent-profile .create-agent-btn {
  background: #00d4aa;
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
agent-profile .create-agent-btn:hover {
  background: #00b896;
}
agent-profile .agent-list-view .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
agent-profile .create-agent-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
agent-profile .create-agent-modal.is-visible {
  display: flex;
}
agent-profile .create-agent-form {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 14px;
  padding: 28px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
agent-profile .create-agent-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0 0 20px;
}
agent-profile .create-agent-form .form-group {
  margin-bottom: 16px;
}
agent-profile .create-agent-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
agent-profile .create-agent-form .form-group input[type=text],
agent-profile .create-agent-form .form-group textarea,
agent-profile .create-agent-form .form-group select {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
agent-profile .create-agent-form .form-group input[type=text]:focus,
agent-profile .create-agent-form .form-group textarea:focus,
agent-profile .create-agent-form .form-group select:focus {
  border-color: #00d4aa;
}
agent-profile .create-agent-form .form-group textarea {
  resize: vertical;
  line-height: 1.5;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
agent-profile .create-agent-form .form-group select {
  cursor: pointer;
}
agent-profile .create-agent-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
agent-profile .create-agent-form .form-cancel-btn {
  background: none;
  border: 1px solid #162035;
  color: #9ca3af;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
agent-profile .create-agent-form .form-cancel-btn:hover {
  color: #e0e0e0;
  border-color: #00d4aa;
}
agent-profile .create-agent-form .form-submit-btn {
  background: #00d4aa;
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
agent-profile .create-agent-form .form-submit-btn:hover {
  background: #00b896;
}
agent-profile .create-agent-form .form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
agent-profile .role-dropdown {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid #162035;
  color: #4debd6;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}
agent-profile .role-dropdown option {
  background: #0c1526;
  color: #e0e0e0;
}
agent-profile .role-dropdown:hover, agent-profile .role-dropdown:focus {
  border-color: #00d4aa;
}
agent-profile .empty-state {
  padding: 40px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
agent-profile .empty-state-sm {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
agent-profile .agent-tabs {
  display: flex;
  border-bottom: 1px solid #162035;
  margin-bottom: 28px;
}
agent-profile .agent-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -1px;
}
agent-profile .agent-tab:hover {
  color: #e0e0e0;
}
agent-profile .agent-tab.is-active {
  color: #00d4aa;
  border-bottom-color: #00d4aa;
}
agent-profile .tasks-projects-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
agent-profile .tasks-project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
agent-profile .tasks-project-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.08);
}
agent-profile .tasks-project-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}
agent-profile .tasks-project-info {
  flex: 1;
  min-width: 0;
}
agent-profile .tasks-project-name {
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 2px;
}
agent-profile .tasks-project-hint {
  font-size: 11px;
  color: #6b7280;
}
agent-profile .tasks-project-arrow {
  font-size: 18px;
  color: #4debd6;
  flex-shrink: 0;
}
agent-profile .agent-list-bio {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
agent-profile .bio-editor {
  width: 100%;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 14px 16px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}
agent-profile .bio-editor:focus {
  border-color: #00d4aa;
}
agent-profile .config-files-section .config-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
agent-profile .config-file-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  overflow: hidden;
}
agent-profile .config-file-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
agent-profile .config-file-header:hover {
  background: rgba(0, 212, 170, 0.05);
}
agent-profile .config-file-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  color: #4debd6;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
agent-profile .config-file-desc {
  font-size: 12px;
  color: #6b7280;
  flex: 1;
  min-width: 0;
}
agent-profile .config-file-chevron {
  font-size: 10px;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
agent-profile .config-file-body {
  padding: 0 16px 16px;
}
agent-profile .config-file-editor {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 12px 14px;
  color: #e0e0e0;
  font-size: 12px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}
agent-profile .config-file-editor:focus {
  border-color: #00d4aa;
}
agent-profile .projects-all-access {
  padding: 10px 16px;
  font-size: 13px;
  color: #4debd6;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 8px;
}
agent-profile .project-select {
  width: 100%;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
agent-profile .project-select option {
  background: #0c1526;
}
agent-profile .project-select:focus {
  border-color: #00d4aa;
}
agent-profile .project-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
agent-profile .project-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  font-size: 13px;
  color: #e0e0e0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
agent-profile .project-check:hover {
  border-color: rgba(0, 212, 170, 0.4);
}
agent-profile .project-check input[type=checkbox] {
  accent-color: #00d4aa;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
agent-profile .projects-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
agent-profile .projects-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4debd6;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
agent-profile .projects-nav-card:hover {
  background: #0f1e36;
  border-color: rgba(0, 212, 170, 0.5);
}
agent-profile .projects-nav-arrow {
  font-size: 16px;
  opacity: 0.7;
}
@media (max-width: 640px) {
  agent-profile {
    padding: 16px;
  }
  agent-profile .agent-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
  agent-profile .agent-avatar-xl {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
  agent-profile .agent-detail-name {
    font-size: 20px;
  }
  agent-profile .info-cards-row {
    gap: 10px;
  }
  agent-profile .info-card {
    min-width: 120px;
  }
}

kanban-board {
  display: block;
  padding: 24px;
  height: 100%;
}
kanban-board .project-picker-view {
  max-width: 900px;
  margin: 0 auto;
}
kanban-board .project-picker-view .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
kanban-board .project-picker-view .section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0;
  letter-spacing: -0.02em;
}
kanban-board .create-project-btn {
  background: linear-gradient(135deg, #00e5b8 0%, #00d4aa 40%, #7c3aed 100%);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 212, 170, 0.2);
  transition: opacity 0.15s;
}
kanban-board .create-project-btn:hover {
  opacity: 0.9;
}
kanban-board .project-grid-empty {
  color: #6b7280;
  font-size: 14px;
  padding: 40px 0;
}
kanban-board .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
kanban-board .project-picker-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
kanban-board .project-picker-card:hover {
  border-color: #00d4aa;
  transform: translateY(-2px);
}
kanban-board .project-picker-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
kanban-board .project-picker-info {
  flex: 1;
  min-width: 0;
}
kanban-board .project-picker-name {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
}
kanban-board .project-picker-desc {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
kanban-board .back-bar {
  margin-bottom: 16px;
}
kanban-board .back-btn {
  background: none;
  border: 1px solid #162035;
  color: #9ca3af;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
kanban-board .back-btn:hover {
  color: #e0e0e0;
  border-color: #00d4aa;
}
kanban-board .board-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
}
kanban-board .board-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #f0f4ff;
  letter-spacing: -0.03em;
  margin: 0;
}
kanban-board .board-project-icon {
  font-size: 28px;
}
kanban-board .board-header-info {
  flex: 1;
}
kanban-board .board-desc {
  font-size: 13px;
  color: #9ca3af;
  margin: 4px 0 0;
}
kanban-board .board-vp {
  font-size: 12px;
  color: #4debd6;
  font-weight: 500;
}
kanban-board .board-columns {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 400px;
}
kanban-board .board-columns::-webkit-scrollbar {
  height: 6px;
}
kanban-board .board-columns::-webkit-scrollbar-track {
  background: #060b14;
}
kanban-board .board-columns::-webkit-scrollbar-thumb {
  background: #162035;
  border-radius: 3px;
}
kanban-board .board-column {
  flex: 0 0 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  background: #091020;
  border: 1px solid #162035;
  border-radius: 10px;
  overflow: hidden;
}
kanban-board .column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #162035;
  background: #0c1526;
}
kanban-board .column-title {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}
kanban-board .column-count {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
kanban-board .add-task-btn {
  background: none;
  border: 1px solid #162035;
  color: #6b7280;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: 0;
}
kanban-board .add-task-btn:hover {
  color: #00d4aa;
  border-color: #00d4aa;
}
kanban-board .column-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  transition: background 0.15s ease;
}
kanban-board .column-body.is-drag-over {
  background: rgba(0, 212, 170, 0.08);
  border-radius: 0 0 10px 10px;
}
kanban-board .task-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
kanban-board .task-card:hover {
  border-color: #00d4aa;
}
kanban-board .task-card.is-dragging {
  opacity: 0.4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
kanban-board .task-card.is-expanded {
  border-color: #00d4aa;
}
kanban-board .task-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
kanban-board .task-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
}
kanban-board .task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
kanban-board .priority-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
kanban-board .priority-badge.priority-high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
kanban-board .priority-badge.priority-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
kanban-board .priority-badge.priority-low {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
kanban-board .task-checklist {
  font-size: 11px;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}
kanban-board .task-assigned {
  display: flex;
  align-items: center;
  gap: 6px;
}
kanban-board .task-avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
kanban-board .task-agent-name {
  font-size: 12px;
  color: #9ca3af;
}
kanban-board .task-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
kanban-board .task-skill-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.1);
  color: #4debd6;
  border: 1px solid rgba(0, 212, 170, 0.2);
}
kanban-board .task-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #162035;
}
kanban-board .task-detail-section {
  margin-bottom: 12px;
}
kanban-board .task-detail-section label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
kanban-board .task-detail-section p {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
kanban-board .checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #9ca3af;
}
kanban-board .checklist-item input[type=checkbox] {
  accent-color: #00d4aa;
  cursor: pointer;
}
kanban-board .task-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
kanban-board .delete-task-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
kanban-board .delete-task-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}
kanban-board .task-form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
kanban-board .task-form-overlay.is-visible {
  display: flex;
}
kanban-board .task-form {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 14px;
  padding: 28px;
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
kanban-board .task-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0 0 20px;
}
kanban-board .form-group {
  margin-bottom: 16px;
}
kanban-board .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
kanban-board .form-group input[type=text],
kanban-board .form-group textarea,
kanban-board .form-group select {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
kanban-board .form-group input[type=text]:focus,
kanban-board .form-group textarea:focus,
kanban-board .form-group select:focus {
  border-color: #00d4aa;
}
kanban-board .form-group textarea {
  resize: vertical;
  line-height: 1.5;
}
kanban-board .form-group select {
  cursor: pointer;
}
kanban-board .skills-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
kanban-board .skill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid #162035;
  cursor: pointer;
  font-size: 12px;
  color: #9ca3af;
  transition: border-color 0.2s ease, background 0.2s ease;
}
kanban-board .skill-toggle:has(input:checked) {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.2);
  color: #4debd6;
}
kanban-board .skill-toggle input[type=checkbox] {
  display: none;
}
kanban-board .form-note {
  font-size: 12px;
  color: #6b7280;
}
kanban-board .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
kanban-board .form-cancel-btn {
  background: none;
  border: 1px solid #162035;
  color: #9ca3af;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
kanban-board .form-cancel-btn:hover {
  color: #e0e0e0;
  border-color: #00d4aa;
}
kanban-board .form-submit-btn {
  background: linear-gradient(135deg, #00e5b8 0%, #00d4aa 40%, #7c3aed 100%);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 212, 170, 0.25);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
kanban-board .form-submit-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.4);
}
kanban-board .form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
kanban-board .delegate-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}
kanban-board .delegate-overlay.is-visible {
  display: flex;
}
kanban-board .delegate-form {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 14px;
  padding: 28px;
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
kanban-board .delegate-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0 0 16px;
}
kanban-board .delegate-parent {
  margin-bottom: 16px;
}
kanban-board .delegate-parent-title {
  font-size: 14px;
  color: #4debd6;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(0, 212, 170, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 170, 0.2);
}
kanban-board .subtask-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
kanban-board .delegate-subtask-item {
  background: #091020;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 16px;
}
kanban-board .delegate-subtask-item .form-group {
  margin-bottom: 12px;
}
kanban-board .delegate-subtask-item .form-group:last-of-type {
  margin-bottom: 8px;
}
kanban-board .delegate-subtask-item .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
kanban-board .delegate-subtask-item .form-group input[type=text],
kanban-board .delegate-subtask-item .form-group textarea,
kanban-board .delegate-subtask-item .form-group select {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
kanban-board .delegate-subtask-item .form-group input[type=text]:focus,
kanban-board .delegate-subtask-item .form-group textarea:focus,
kanban-board .delegate-subtask-item .form-group select:focus {
  border-color: #00d4aa;
}
kanban-board .delegate-subtask-item .form-group textarea {
  resize: vertical;
  line-height: 1.4;
}
kanban-board .delegate-subtask-item .form-group select {
  cursor: pointer;
}
kanban-board .remove-subtask-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
kanban-board .remove-subtask-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}
kanban-board .add-subtask-btn {
  background: rgba(0, 212, 170, 0.08);
  border: 1px dashed #162035;
  color: #4debd6;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 100%;
  margin-bottom: 16px;
}
kanban-board .add-subtask-btn:hover {
  background: rgba(0, 212, 170, 0.15);
  border-color: #00d4aa;
}
kanban-board .delegation-badge {
  font-size: 10px;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 500;
}
kanban-board .subtask-progress {
  margin-top: 6px;
}
kanban-board .subtask-progress-text {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}
kanban-board .subtask-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 2px;
  overflow: hidden;
}
kanban-board .subtask-progress-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
  transition: width 0.3s ease;
}
kanban-board .subtask-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
kanban-board .subtask-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #091020;
  border: 1px solid #162035;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
kanban-board .subtask-card:hover {
  border-color: #00d4aa;
}
kanban-board .subtask-card.subtask-done {
  opacity: 0.6;
}
kanban-board .subtask-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
kanban-board .subtask-status-dot.subtask-status-done {
  background: #22c55e;
}
kanban-board .subtask-status-dot.subtask-status-active {
  background: #00d4aa;
  box-shadow: 0 0 4px rgba(0, 212, 170, 0.5);
}
kanban-board .subtask-status-dot.subtask-status-pending {
  background: #6b7280;
}
kanban-board .subtask-title {
  font-size: 12px;
  color: #e0e0e0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
kanban-board .subtask-agent {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}
kanban-board .delegate-task-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-right: 8px;
}
kanban-board .delegate-task-btn:hover {
  background: rgba(139, 92, 246, 0.25);
}
kanban-board .task-card.is-subtask {
  border-left: 3px solid #8b5cf6;
}
kanban-board .task-edit-section {
  margin-bottom: 12px;
}
kanban-board .task-edit-label {
  display: block;
  color: #6a6a80;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
kanban-board .task-edit-input,
kanban-board .task-edit-textarea {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  color: #e0e0e0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
kanban-board .task-edit-input:focus,
kanban-board .task-edit-textarea:focus {
  outline: none;
  border-color: #00d4aa;
}
kanban-board .task-edit-textarea {
  resize: vertical;
  font-family: inherit;
}
kanban-board .task-save-btn {
  background: #22c55e;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}
kanban-board .task-save-btn:hover {
  background: #16a34a;
}
kanban-board .project-form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
kanban-board .project-form-overlay.is-visible {
  display: flex;
}
kanban-board .project-form {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 440px;
}
kanban-board .project-picker-new {
  border: 2px dashed #162035 !important;
  cursor: pointer;
}
kanban-board .project-picker-new:hover {
  border-color: #00d4aa !important;
  background: rgba(0, 212, 170, 0.05);
}
kanban-board .empty-state {
  padding: 40px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
@media (max-width: 768px) {
  kanban-board {
    padding: 16px;
  }
  kanban-board .board-columns {
    gap: 10px;
  }
  kanban-board .board-column {
    flex: 0 0 260px;
    min-width: 240px;
  }
  kanban-board .task-form {
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 90vh;
  }
}

live-agents {
  display: block;
  height: 100%;
  min-height: calc(100vh - 60px);
}
live-agents .live-agents-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 100%;
  min-height: calc(100vh - 60px);
  gap: 0;
}
live-agents .agent-list-panel {
  background: #0c1526;
  border-right: 1px solid #162035;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
live-agents .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #162035;
}
live-agents .panel-title {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}
live-agents .connection-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}
live-agents .connection-indicator .conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background 0.3s;
}
live-agents .connection-indicator .conn-label {
  font-size: 11px;
  color: #9ca3af;
}
live-agents .connection-indicator.is-connected .conn-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
live-agents .connection-indicator.is-disconnected .conn-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
live-agents .agent-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
live-agents .agent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
live-agents .agent-row:hover {
  background: rgba(0, 212, 170, 0.08);
}
live-agents .agent-row.is-selected {
  background: rgba(0, 212, 170, 0.15);
  border-left-color: #00d4aa;
}
live-agents .agent-status-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #4b5563;
  flex-shrink: 0;
}
live-agents .agent-status-dot.status-active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
live-agents .agent-status-dot.status-spawning {
  background: #00d4aa;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
live-agents .agent-status-dot.status-waiting {
  background: #f59e0b;
}
live-agents .agent-status-dot.status-error {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}
live-agents .agent-status-dot.status-idle {
  background: #4b5563;
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}
live-agents .agent-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
live-agents .agent-initials {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
live-agents .agent-info {
  flex: 1;
  min-width: 0;
}
live-agents .agent-name {
  font-size: 14px;
  font-weight: 500;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
live-agents .agent-task {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
live-agents .agent-elapsed {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
live-agents .empty-agents {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}
live-agents .empty-agents p {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 24px;
}
live-agents .empty-animation {
  position: relative;
  width: 80px;
  height: 80px;
}
live-agents .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 170, 0.3);
  animation: pulse-ring-anim 3s ease-out infinite;
}
live-agents .pulse-ring.delay-1 {
  animation-delay: 1s;
}
live-agents .pulse-ring.delay-2 {
  animation-delay: 2s;
}
@keyframes pulse-ring-anim {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
live-agents .step-log-panel {
  background: #060b14;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
live-agents .step-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #162035;
  background: #0c1526;
  flex-shrink: 0;
}
live-agents .step-agent-info {
  flex: 1;
  min-width: 0;
}
live-agents .step-agent-name {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
}
live-agents .step-task-title {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
live-agents .step-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
live-agents .step-elapsed,
live-agents .step-tokens {
  font-size: 12px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
live-agents .step-tokens {
  background: rgba(0, 212, 170, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  color: #4debd6;
}
live-agents .step-log-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
live-agents .step-log-list::-webkit-scrollbar {
  width: 6px;
}
live-agents .step-log-list::-webkit-scrollbar-track {
  background: transparent;
}
live-agents .step-log-list::-webkit-scrollbar-thumb {
  background: #162035;
  border-radius: 3px;
}
live-agents .step-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
live-agents .step-entry:hover {
  background: rgba(255, 255, 255, 0.03);
}
live-agents .step-entry.is-truncated {
  cursor: pointer;
}
live-agents .step-entry.step-type-error {
  background: rgba(239, 68, 68, 0.08);
  border-left: 2px solid #ef4444;
}
live-agents .step-entry.step-type-tool_call {
  background: rgba(0, 212, 170, 0.05);
}
live-agents .step-entry.step-type-spawn {
  background: rgba(34, 197, 94, 0.05);
}
live-agents .step-time {
  font-size: 11px;
  color: #6b7280;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  white-space: nowrap;
  min-width: 64px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
live-agents .step-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  padding-top: 1px;
}
live-agents .step-content {
  flex: 1;
  min-width: 0;
}
live-agents .step-tool-name {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4debd6;
  background: rgba(0, 212, 170, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}
live-agents .step-text {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
  word-break: break-word;
}
live-agents .step-log-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
live-agents .step-log-empty p {
  color: #6b7280;
  font-size: 14px;
}
live-agents .step-back-btn {
  display: none;
  background: #0c1526;
  border: none;
  color: #9ca3af;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #162035;
  text-align: left;
}
live-agents .step-back-btn:hover {
  color: #e0e0e0;
  background: rgba(0, 212, 170, 0.08);
}
@media (max-width: 768px) {
  live-agents .live-agents-container {
    grid-template-columns: 1fr;
  }
  live-agents .step-log-panel {
    display: none;
  }
  live-agents .agent-list-panel {
    border-right: none;
  }
  live-agents.is-showing-log .agent-list-panel {
    display: none;
  }
  live-agents.is-showing-log .step-log-panel {
    display: flex;
  }
  live-agents.is-showing-log .step-back-btn {
    display: block;
  }
}

cron-calendar {
  display: block;
}

.cron-calendar {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cron-calendar .cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cron-calendar .cal-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cron-calendar .cal-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cron-calendar .cal-nav-btn {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid #162035;
  color: #9ca3af;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.cron-calendar .cal-nav-btn:hover {
  background: rgba(0, 212, 170, 0.2);
  color: #e0e0e0;
  border-color: #00d4aa;
}
.cron-calendar .cal-week-label {
  font-size: 16px;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0;
  letter-spacing: -0.02em;
  min-width: 200px;
  white-space: nowrap;
}
.cron-calendar .cal-today-btn {
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #4debd6;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}
.cron-calendar .cal-today-btn:hover {
  background: rgba(0, 212, 170, 0.25);
  border-color: #00d4aa;
}
.cron-calendar .cal-agent-filter {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 6px 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.cron-calendar .cal-agent-filter:focus {
  border-color: #00d4aa;
}
.cron-calendar .cal-agent-filter option {
  background: #0c1526;
  color: #e0e0e0;
}
.cron-calendar .cal-new-btn {
  background: #00d4aa;
  border: none;
  border-radius: 7px;
  color: #060b14;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  white-space: nowrap;
  transition: background 0.15s;
}
.cron-calendar .cal-new-btn:hover {
  background: #00b896;
}
.cron-calendar .cal-grid-wrap {
  overflow-x: auto;
  border: 1px solid #162035;
  border-radius: 12px;
  background: rgba(12, 21, 38, 0.85);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.cron-calendar .cal-grid {
  display: flex;
  flex-direction: column;
  min-width: 620px;
}
.cron-calendar .cal-header-row {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  border-bottom: 1px solid #162035;
}
.cron-calendar .cal-col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-left: 1px solid #162035;
}
.cron-calendar .cal-col-head.is-today .cal-col-dayname {
  color: #4debd6;
}
.cron-calendar .cal-col-dayname {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cron-calendar .cal-col-date {
  font-size: 16px;
  font-weight: 700;
  color: #e0e0e0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cron-calendar .cal-col-date.is-today-circle {
  background: #00d4aa;
  color: #060b14;
}
.cron-calendar .cal-time-row-el {
  display: grid;
  grid-template-columns: 64px repeat(7, 1fr);
  border-top: 1px solid rgba(22, 32, 53, 0.6);
}
.cron-calendar .cal-time-row-el:hover {
  background: rgba(255, 255, 255, 0.01);
}
.cron-calendar .cal-gutter {
  font-size: 10px;
  color: #4b5563;
  padding: 6px 8px 0;
  text-align: right;
  white-space: nowrap;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  user-select: none;
}
.cron-calendar .cal-cell {
  min-height: 48px;
  border-left: 1px solid rgba(22, 32, 53, 0.6);
  padding: 3px;
  cursor: pointer;
  transition: background 0.1s;
}
.cron-calendar .cal-cell:hover {
  background: rgba(0, 212, 170, 0.04);
}
.cron-calendar .cal-job-card {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  background: rgba(6, 11, 20, 0.7);
  border: 1px solid #162035;
  border-radius: 5px;
  padding: 5px 7px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-wrap: wrap;
}
.cron-calendar .cal-job-card:hover {
  border-color: rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.06);
}
.cron-calendar .cal-job-card.is-ok {
  border-left: 2px solid #00d4aa;
}
.cron-calendar .cal-job-card.is-running {
  border-left: 2px solid #f59e0b;
}
.cron-calendar .cal-job-card.is-failed {
  border-left: 2px solid #ef4444;
}
.cron-calendar .cal-job-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.is-ok .cron-calendar .cal-job-dot {
  background: #00d4aa;
}
.is-running .cron-calendar .cal-job-dot {
  background: #f59e0b;
}
.is-failed .cron-calendar .cal-job-dot {
  background: #ef4444;
}
.cron-calendar .cal-job-name {
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cron-calendar .cal-job-time {
  font-size: 10px;
  color: #6b7280;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  white-space: nowrap;
}
.cron-calendar .cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.cron-calendar .cal-modal-panel {
  background: #0c1526;
  border: 1px solid #1f2937;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.cron-calendar .cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #1f2937;
}
.cron-calendar .cal-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4ff;
  margin: 0;
}
.cron-calendar .cal-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.cron-calendar .cal-modal-close:hover {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.06);
}
.cron-calendar .cal-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cron-calendar .cal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cron-calendar .cal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}
.cron-calendar .cal-input {
  background: #060b14;
  border: 1px solid #1f2937;
  border-radius: 6px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.cron-calendar .cal-input:focus {
  border-color: #00d4aa;
}
.cron-calendar .cal-input::placeholder {
  color: #4b5563;
}
.cron-calendar .cal-input--mono {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 13px;
  color: #4debd6;
}
.cron-calendar .cal-select {
  background: #060b14;
  border: 1px solid #1f2937;
  border-radius: 6px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cron-calendar .cal-select:focus {
  border-color: #00d4aa;
}
.cron-calendar .cal-select option {
  background: #0c1526;
}
.cron-calendar .cal-select--sm {
  padding: 7px 8px;
  font-size: 13px;
  flex: 1;
}
.cron-calendar .cal-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cron-calendar .cal-time-colon {
  color: #6b7280;
  font-size: 16px;
  font-weight: 700;
}
.cron-calendar .cal-days-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cron-calendar .cal-day-check {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #9ca3af;
  user-select: none;
}
.cron-calendar .cal-day-check input[type=checkbox] {
  accent-color: #00d4aa;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.cron-calendar .cal-field-hint {
  font-size: 11px;
  color: #4b5563;
  margin-top: 2px;
}
.cron-calendar .cal-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cron-calendar .cal-save-btn {
  background: #00d4aa;
  border: none;
  border-radius: 7px;
  color: #060b14;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  transition: background 0.15s;
  white-space: nowrap;
}
.cron-calendar .cal-save-btn:hover {
  background: #00b896;
}
.cron-calendar .cal-trigger-btn {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 7px;
  color: #22c55e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  transition: all 0.15s;
  white-space: nowrap;
}
.cron-calendar .cal-trigger-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}
.cron-calendar .cal-trigger-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.cron-calendar .cal-delete-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 7px;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  transition: all 0.15s;
  white-space: nowrap;
  margin-left: auto;
}
.cron-calendar .cal-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}
.cron-calendar .cal-cancel-btn {
  background: none;
  border: 1px solid #1f2937;
  border-radius: 7px;
  color: #6b7280;
  cursor: pointer;
  font-size: 13px;
  padding: 9px 14px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cron-calendar .cal-cancel-btn:hover {
  color: #e0e0e0;
  border-color: #6b7280;
}
@media (max-width: 700px) {
  .cron-calendar {
    padding: 12px;
  }
  .cron-calendar .cal-week-label {
    font-size: 13px;
    min-width: 120px;
  }
  .cron-calendar .cal-job-time {
    display: none;
  }
  .cron-calendar .cal-gutter {
    font-size: 9px;
    padding: 5px 4px 0;
  }
}

activity-log {
  display: block;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}
activity-log .activity-log-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
activity-log .activity-filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 16px 20px;
}
activity-log .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
activity-log .filter-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
activity-log .filter-select {
  background: #060b14;
  border: 1px solid #162035;
  color: #e0e0e0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  min-width: 140px;
}
activity-log .filter-select:focus {
  outline: none;
  border-color: #00d4aa;
}
activity-log .filter-select option {
  background: #060b14;
  color: #e0e0e0;
}
activity-log .filter-pills {
  display: flex;
  gap: 4px;
}
activity-log .filter-pill {
  background: transparent;
  border: 1px solid #162035;
  color: #9ca3af;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}
activity-log .filter-pill:hover {
  border-color: rgba(0, 212, 170, 0.4);
  color: #e0e0e0;
}
activity-log .filter-pill.is-active {
  background: #00d4aa;
  border-color: #00d4aa;
  color: #fff;
}
activity-log .activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
activity-log .activity-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 6px;
}
activity-log .date-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
activity-log .date-line {
  flex: 1;
  height: 1px;
  background: #162035;
}
activity-log .activity-card {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.15s;
  animation: activity-fade-in 0.3s ease;
}
activity-log .activity-card:hover {
  background: rgba(0, 212, 170, 0.05);
}
@keyframes activity-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
activity-log .activity-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
activity-log .activity-initials {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
activity-log .activity-content {
  flex: 1;
  min-width: 0;
}
activity-log .activity-main {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
}
activity-log .activity-agent-name {
  font-weight: 600;
  color: #e0e0e0;
  cursor: pointer;
  transition: color 0.15s;
}
activity-log .activity-agent-name:hover {
  color: #4debd6;
}
activity-log .activity-verb {
  color: #9ca3af;
}
activity-log .activity-details {
  color: #e0e0e0;
}
activity-log .activity-in {
  color: #6b7280;
}
activity-log .activity-project {
  color: #4debd6;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
}
activity-log .activity-project:hover {
  color: #80f0e4;
  text-decoration: underline;
}
activity-log .activity-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
activity-log .activity-time {
  font-size: 12px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
activity-log .activity-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 10px;
  text-transform: capitalize;
  white-space: nowrap;
}
activity-log .activity-badge.badge-default {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}
activity-log .activity-badge.badge-info {
  background: rgba(0, 212, 170, 0.15);
  color: #4debd6;
}
activity-log .activity-badge.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
activity-log .activity-badge.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
activity-log .activity-badge.badge-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
activity-log .activity-badge.badge-primary {
  background: rgba(0, 212, 170, 0.15);
  color: #4debd6;
}
activity-log .activity-empty {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
}
activity-log .activity-empty p {
  color: #6b7280;
  font-size: 15px;
}
activity-log .activity-load-more {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
activity-log .load-more-btn {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #4debd6;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  transition: all 0.15s;
}
activity-log .load-more-btn:hover {
  background: rgba(0, 212, 170, 0.2);
  border-color: #00d4aa;
}
activity-log .load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
activity-log .load-more-status {
  font-size: 12px;
  color: #6b7280;
}
@media (max-width: 768px) {
  activity-log {
    padding: 12px;
  }
  activity-log .activity-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  activity-log .filter-group {
    width: 100%;
  }
  activity-log .filter-select {
    width: 100%;
    min-width: unset;
  }
  activity-log .filter-pills {
    justify-content: stretch;
  }
  activity-log .filter-pills .filter-pill {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
  }
  activity-log .activity-card {
    padding: 10px 12px;
  }
  activity-log .activity-main {
    font-size: 13px;
  }
}

chat-app {
  display: block;
  height: calc(100vh - 48px);
}
chat-app .chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  height: 100%;
  overflow: hidden;
}
chat-app .chat-layout.is-dm {
  grid-template-columns: 260px 1fr;
}
chat-app .chat-sidebar {
  background: #0a1120;
  border-right: 1px solid #162035;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
chat-app .chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #162035;
}
chat-app .chat-sidebar-header h3 {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
chat-app .chat-section-header {
  padding: 16px 16px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  font-weight: 600;
}
chat-app .channel-list {
  flex: 1;
  padding: 8px 0;
}
chat-app .chat-channel {
  padding: 8px 16px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
chat-app .chat-channel:hover {
  background: rgba(0, 212, 170, 0.1);
  color: #e0e0e0;
}
chat-app .chat-channel.is-active {
  background: rgba(0, 212, 170, 0.15);
  color: #e0e0e0;
}
chat-app .chat-channel .channel-hash {
  color: #00d4aa;
  font-weight: 700;
}
chat-app .chat-dm .dm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #162035;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #e0e0e0;
}
chat-app .chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
chat-app .chat-top-bar {
  padding: 12px 16px;
  border-bottom: 1px solid #162035;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0c1526;
}
chat-app .chat-top-bar .chat-hamburger {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 20px;
  cursor: pointer;
}
chat-app .chat-top-bar .chat-channel-name {
  color: #e0e0e0;
  font-size: 16px;
  font-weight: 600;
}
chat-app .chat-top-bar .chat-connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: auto;
}
chat-app .message-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
chat-app .chat-empty {
  color: #9ca3af;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}
chat-app .chat-date-separator {
  text-align: center;
  padding: 16px 0 8px;
}
chat-app .chat-date-separator span {
  background: #0c1526;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  color: #9ca3af;
  border: 1px solid #162035;
}
chat-app .chat-message {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
chat-app .chat-message .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
chat-app .chat-message .msg-content {
  flex: 1;
  min-width: 0;
}
chat-app .chat-message .msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
chat-app .chat-message .msg-name {
  font-weight: 600;
  font-size: 14px;
  color: #e0e0e0;
}
chat-app .chat-message .msg-time {
  font-size: 11px;
  color: #6b7280;
}
chat-app .chat-message .msg-text {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
chat-app .scroll-to-bottom {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #00d4aa;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
chat-app .scroll-to-bottom:hover {
  background: #00b896;
}
chat-app .chat-compose {
  padding: 12px 16px;
  border-top: 1px solid #162035;
  display: flex;
  gap: 8px;
  background: #0c1526;
}
chat-app .compose-input {
  flex: 1;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  max-height: 120px;
  overflow-y: auto;
  outline: none;
  line-height: 1.5;
}
chat-app .compose-input:empty:before {
  content: attr(data-placeholder);
  color: #6b7280;
}
chat-app .compose-input:focus {
  border-color: #00d4aa;
}
chat-app .compose-send {
  background: #00d4aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-end;
}
chat-app .compose-send:hover {
  background: #00b896;
}
chat-app .chat-activity-panel {
  background: #0a1120;
  border-left: 1px solid #162035;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.is-dm chat-app .chat-activity-panel {
  display: none;
}
chat-app .activity-panel-header {
  padding: 13px 12px;
  border-bottom: 1px solid #162035;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
}
chat-app .activity-log {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
chat-app .activity-entry {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(22, 32, 53, 0.5);
}
chat-app .activity-entry .activity-time {
  font-size: 10px;
  color: #4b5563;
  margin-bottom: 2px;
}
chat-app .activity-entry .activity-text {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}
chat-app .activity-entry .activity-text .activity-agent {
  font-weight: 600;
  color: #6ee7d4;
}
chat-app .activity-entry .activity-text .activity-sent {
  color: #22c55e;
}
chat-app .activity-entry .activity-text .activity-ignored {
  color: #6b7280;
}
chat-app .activity-entry .activity-text .activity-capped {
  color: #f59e0b;
}
@media (max-width: 768px) {
  chat-app .chat-layout {
    grid-template-columns: 1fr;
  }
  chat-app .chat-layout.is-dm {
    grid-template-columns: 1fr;
  }
  chat-app .chat-activity-panel {
    display: none;
  }
  chat-app .chat-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 100;
    transition: left 0.3s ease;
  }
  chat-app .chat-sidebar.is-open {
    left: 0;
  }
  chat-app .chat-top-bar .chat-hamburger {
    display: block;
  }
}

system-panel {
  display: block;
}
system-panel .page-title {
  font-size: 26px;
  font-weight: 800;
  color: #f0f4ff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
system-panel .system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
system-panel .system-card {
  background: rgba(12, 21, 38, 0.85);
  border: 1px solid #162035;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
system-panel .system-card.system-card-wide {
  grid-column: 1/-1;
}
system-panel .card-header {
  padding: 14px 16px;
  border-bottom: 1px solid #162035;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
system-panel .card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}
system-panel .card-body {
  padding: 16px;
}
system-panel .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7280;
}
system-panel .status-dot.is-ok {
  background: #22c55e;
}
system-panel .status-dot.is-warn {
  background: #f59e0b;
}
system-panel .status-dot.is-error {
  background: #ef4444;
}
system-panel .status-dot.is-unknown {
  background: #6b7280;
}
system-panel .status-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}
system-panel .status-row:last-child {
  border-bottom: none;
}
system-panel .status-label {
  color: #9ca3af;
  font-size: 13px;
}
system-panel .status-value {
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 500;
}
system-panel .balance-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}
system-panel .balance-item:last-child {
  border-bottom: none;
}
system-panel .balance-label {
  color: #9ca3af;
  font-size: 13px;
}
system-panel .balance-value {
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
}
system-panel .skills-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
system-panel .skill-card {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
}
system-panel .skill-name {
  color: #80f0e4;
  font-size: 13px;
  font-weight: 600;
}
system-panel .skill-desc {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 4px;
}
system-panel .skill-empty {
  color: #6b7280;
  font-size: 13px;
  padding: 8px 0;
}
system-panel .config-textarea {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 12px;
  color: #e0e0e0;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
  margin-bottom: 12px;
}
system-panel .config-textarea:focus {
  border-color: #00d4aa;
}
system-panel .command-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
system-panel .command-input {
  flex: 1;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e0e0e0;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 13px;
  outline: none;
}
system-panel .command-input:focus {
  border-color: #00d4aa;
}
system-panel .command-output {
  background: #0a0a14;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 12px;
  color: #9ca3af;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}
system-panel .command-output.is-error {
  color: #ef4444;
}
system-panel .btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
system-panel .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
system-panel .btn-primary {
  background: #00d4aa;
  color: #fff;
}
system-panel .btn-primary:hover:not(:disabled) {
  background: #00b896;
}
system-panel .btn-primary.is-success {
  background: #22c55e;
}
system-panel .btn-primary.is-error {
  background: #ef4444;
}
@media (max-width: 768px) {
  system-panel .system-grid {
    grid-template-columns: 1fr;
  }
  system-panel .command-row {
    flex-direction: column;
  }
}

work-library {
  display: block;
}
work-library .page-title {
  font-size: 26px;
  font-weight: 800;
  color: #f0f4ff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
work-library .library-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
work-library .filter-select {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 8px;
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  outline: none;
}
work-library .filter-select:focus {
  border-color: #00d4aa;
}
work-library .filter-select option {
  background: #0c1526;
  color: #e0e0e0;
}
work-library .item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
work-library .library-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 14px;
}
work-library .library-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s;
}
work-library .library-card:hover {
  border-color: #00d4aa;
  transform: translateY(-1px);
}
work-library .library-icon {
  font-size: 28px;
  flex-shrink: 0;
}
work-library .library-info {
  flex: 1;
  min-width: 0;
}
work-library .library-title {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
work-library .library-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
work-library .library-type {
  font-size: 11px;
  color: #80f0e4;
  background: rgba(0, 212, 170, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}
work-library .library-project {
  font-size: 11px;
  color: #9ca3af;
}
work-library .library-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
work-library .library-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  font-weight: 500;
}
work-library .library-status.is-draft {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}
work-library .library-status.is-review {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
work-library .library-status.is-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
work-library .library-status.is-published {
  background: rgba(0, 212, 170, 0.15);
  color: #80f0e4;
}
work-library .library-time {
  font-size: 11px;
  color: #6b7280;
}
work-library .detail-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #0c1526;
  border-left: 1px solid #162035;
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
work-library .detail-panel.is-open {
  right: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}
work-library .detail-header {
  padding: 16px 20px;
  border-bottom: 1px solid #162035;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
work-library .detail-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
}
work-library .detail-header .detail-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
work-library .detail-header .detail-close:hover {
  color: #e0e0e0;
}
work-library .detail-meta {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}
work-library .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
work-library .detail-row span:first-child {
  color: #9ca3af;
}
work-library .detail-row span:last-child {
  color: #e0e0e0;
}
work-library .detail-content {
  padding: 16px 20px;
  flex: 1;
}
work-library .detail-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
work-library .detail-body {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
work-library .detail-actions {
  padding: 16px 20px;
  border-top: 1px solid #162035;
  display: flex;
  gap: 8px;
}
work-library .btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}
work-library .btn-approve {
  background: #22c55e;
  color: #fff;
}
work-library .btn-approve:hover {
  background: #1db954;
}
work-library .btn-reject {
  background: #ef4444;
  color: #fff;
}
work-library .btn-reject:hover {
  background: #dc2626;
}
work-library .library-status.is-needs-work {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
work-library .detail-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
}
work-library .reviewer-select-wrap {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}
work-library .reviewer-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
work-library .reviewer-select {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 6px;
  padding: 8px 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  outline: none;
}
work-library .reviewer-select:focus {
  border-color: #00d4aa;
}
work-library .reviewer-select option {
  background: #060b14;
  color: #e0e0e0;
}
work-library .review-form {
  padding: 16px 20px;
  border-top: 1px solid #162035;
  border-bottom: 1px solid #162035;
}
work-library .review-form h4 {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
work-library .review-textarea {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 6px;
  padding: 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  resize: vertical;
  min-height: 60px;
  outline: none;
  box-sizing: border-box;
}
work-library .review-textarea:focus {
  border-color: #00d4aa;
}
work-library .review-textarea::placeholder {
  color: #6b7280;
}
work-library .review-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
work-library .review-verdict-select {
  flex: 1;
  background: #060b14;
  border: 1px solid #162035;
  border-radius: 6px;
  padding: 8px 10px;
  color: #e0e0e0;
  font-size: 13px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  outline: none;
}
work-library .review-verdict-select:focus {
  border-color: #00d4aa;
}
work-library .review-verdict-select option {
  background: #060b14;
  color: #e0e0e0;
}
work-library .btn-submit-review {
  background: #00d4aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
work-library .btn-submit-review:hover {
  background: #00b896;
}
work-library .review-section {
  padding: 16px 20px;
}
work-library .review-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
work-library .review-empty {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
}
work-library .review-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
work-library .review-entry {
  border-left: 3px solid #162035;
  padding: 10px 14px;
  background: rgba(6, 11, 20, 0.5);
  border-radius: 0 8px 8px 0;
}
work-library .review-entry:has(.review-verdict.is-approved) {
  border-left-color: #22c55e;
}
work-library .review-entry:has(.review-verdict.is-needs-work) {
  border-left-color: #f59e0b;
}
work-library .review-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
work-library .review-reviewer {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
}
work-library .review-verdict {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
}
work-library .review-verdict.is-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
work-library .review-verdict.is-needs-work {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
work-library .review-entry-text {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 4px;
  white-space: pre-wrap;
}
work-library .review-entry-time {
  font-size: 11px;
  color: #6b7280;
}
work-library .btn-review {
  background: #f59e0b;
  color: #000;
}
work-library .btn-review:hover {
  background: #eab308;
}
work-library .btn-publish {
  background: #00d4aa;
  color: #fff;
}
work-library .btn-publish:hover {
  background: #00b896;
}
work-library .library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
work-library .library-title {
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}
work-library .create-item-btn {
  background: #00d4aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
work-library .create-item-btn:hover {
  background: #00b896;
}
work-library .create-item-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
work-library .create-item-overlay.is-visible {
  display: flex;
}
work-library .create-item-form {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 500px;
}
work-library .create-item-form h3 {
  color: #e0e0e0;
  margin: 0 0 20px 0;
  font-size: 18px;
}
work-library .create-item-form .form-group {
  margin-bottom: 16px;
}
work-library .create-item-form .form-group label {
  display: block;
  color: #a0a0b0;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
work-library .create-item-form .form-group input, work-library .create-item-form .form-group select, work-library .create-item-form .form-group textarea {
  width: 100%;
  background: #060b14;
  border: 1px solid #162035;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
work-library .create-item-form .form-group input:focus, work-library .create-item-form .form-group select:focus, work-library .create-item-form .form-group textarea:focus {
  outline: none;
  border-color: #00d4aa;
}
work-library .create-item-form .form-group textarea {
  resize: vertical;
  font-family: inherit;
}
work-library .create-item-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
work-library .create-item-form .form-cancel-btn {
  background: transparent;
  color: #a0a0b0;
  border: 1px solid #162035;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
work-library .create-item-form .form-cancel-btn:hover {
  background: #162035;
}
work-library .create-item-form .form-submit-btn {
  background: #00d4aa;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
work-library .create-item-form .form-submit-btn:hover {
  background: #00b896;
}
@media (max-width: 768px) {
  work-library .item-grid {
    grid-template-columns: 1fr;
  }
  work-library .detail-panel {
    width: 100%;
    right: -100%;
  }
  work-library .library-filters {
    flex-direction: column;
  }
}

user-settings {
  display: block;
  padding: 32px;
  max-width: 680px;
}
user-settings .settings-header {
  margin-bottom: 28px;
}
user-settings .settings-title {
  font-size: 26px;
  font-weight: 800;
  color: #f0f4ff;
  letter-spacing: -0.03em;
}
user-settings .settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
user-settings .settings-card {
  background: #0c1526;
  border: 1px solid #162035;
  border-radius: 12px;
  padding: 24px;
}
user-settings .settings-card-title {
  font-size: 10px;
  font-weight: 700;
  color: #8888a0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
user-settings .avatar-section {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
user-settings .avatar-drop-zone {
  width: 128px;
  height: 128px;
  border: 2px dashed #162035;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #07101c;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}
user-settings .avatar-drop-zone:hover, user-settings .avatar-drop-zone.is-dragover {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.06);
}
user-settings .avatar-drop-zone:hover .avatar-drop-hint, user-settings .avatar-drop-zone.is-dragover .avatar-drop-hint {
  opacity: 1;
}
user-settings .avatar-drop-zone:hover .avatar-img,
user-settings .avatar-drop-zone:hover .avatar-initials, user-settings .avatar-drop-zone.is-dragover .avatar-img,
user-settings .avatar-drop-zone.is-dragover .avatar-initials {
  opacity: 0.3;
}
user-settings .avatar-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
user-settings .avatar-initials {
  font-size: 40px;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  transition: opacity 0.15s ease;
}
user-settings .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.15s ease;
}
user-settings .avatar-drop-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1;
  pointer-events: none;
}
user-settings .avatar-drop-hint .avatar-drop-icon {
  font-size: 20px;
  line-height: 1;
  color: #00d4aa;
}
user-settings .avatar-drop-hint .avatar-drop-text {
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e0;
  text-align: center;
}
user-settings .avatar-drop-hint .avatar-drop-subtext {
  font-size: 10px;
  color: #8888a0;
}
user-settings .avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
user-settings .settings-field {
  margin-bottom: 18px;
}
user-settings .settings-field:last-of-type {
  margin-bottom: 0;
}
user-settings .settings-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #8888a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
user-settings .settings-input {
  width: 100%;
  padding: 11px 14px;
  background: #07101c;
  border: 1px solid #162035;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
user-settings .settings-input::placeholder {
  color: #5c5c7a;
}
user-settings .settings-input:focus {
  outline: none;
  border-color: #00d4aa;
}
user-settings .settings-input--readonly {
  opacity: 0.45;
  cursor: not-allowed;
}
user-settings .settings-toast {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}
user-settings .settings-toast.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
user-settings .settings-toast.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
user-settings .settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
user-settings .settings-btn--primary {
  background: linear-gradient(135deg, #00e5b8 0%, #00d4aa 40%, #7c3aed 100%);
  border: none;
  color: #fff;
  box-shadow: 0 3px 14px rgba(0, 212, 170, 0.25);
}
user-settings .settings-btn--primary:hover:not(:disabled) {
  opacity: 0.9;
  box-shadow: 0 4px 18px rgba(0, 212, 170, 0.4);
}
user-settings .settings-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
user-settings .settings-btn--secondary {
  background: transparent;
  border: 1px solid #162035;
  color: #8888a0;
}
user-settings .settings-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border-color: #8888a0;
}
user-settings .settings-btn--danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  display: none;
}
user-settings .settings-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
}
user-settings .settings-btn .settings-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: settings-spin 0.6s linear infinite;
}
user-settings .settings-btn.is-loading .settings-spinner {
  display: block;
}
@media screen and (max-width: 600px) {
  user-settings {
    padding: 20px 16px;
  }
  user-settings .avatar-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes settings-spin {
  to {
    transform: rotate(360deg);
  }
}
skills-manager {
  display: block;
}

.skills-manager {
  padding: 24px;
  max-width: 760px;
}
.skills-manager .sm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.skills-manager .sm-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary, #e8eaf0);
  margin: 0 0 4px;
}
.skills-manager .sm-page-sub {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}
.skills-manager .sm-new-btn {
  background: var(--color-accent, #3ecf8e);
  border: none;
  border-radius: 7px;
  color: #060b14;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.skills-manager .sm-new-btn:hover {
  opacity: 0.85;
}
.skills-manager .sm-form {
  background: var(--color-surface, #111827);
  border: 1px solid var(--color-accent, #3ecf8e);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.skills-manager .sm-form-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary, #e8eaf0);
  margin: 0 0 16px;
}
.skills-manager .sm-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.skills-manager .sm-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.skills-manager .sm-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-input,
.skills-manager .sm-textarea {
  background: var(--color-bg, #060b14);
  border: 1px solid var(--color-border, #1f2937);
  border-radius: 6px;
  color: var(--color-text-primary, #e8eaf0);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}
.skills-manager .sm-input:focus,
.skills-manager .sm-textarea:focus {
  border-color: var(--color-accent, #3ecf8e);
}
.skills-manager .sm-input::placeholder,
.skills-manager .sm-textarea::placeholder {
  color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-form-actions {
  display: flex;
  gap: 8px;
}
.skills-manager .sm-save-btn {
  background: var(--color-accent, #3ecf8e);
  border: none;
  border-radius: 6px;
  color: #060b14;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  transition: opacity 0.15s ease;
}
.skills-manager .sm-save-btn:hover {
  opacity: 0.85;
}
.skills-manager .sm-cancel-btn {
  background: none;
  border: 1px solid var(--color-border, #1f2937);
  border-radius: 6px;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 16px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.skills-manager .sm-cancel-btn:hover {
  color: var(--color-text-primary, #e8eaf0);
  border-color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skills-manager .sm-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--color-surface, #111827);
  border: 1px solid var(--color-border, #1f2937);
  border-radius: 8px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.skills-manager .sm-row:hover {
  border-color: var(--color-border-hover, #374151);
}
.skills-manager .sm-row--hidden {
  opacity: 0.45;
}
.skills-manager .sm-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.skills-manager .sm-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary, #e8eaf0);
}
.skills-manager .sm-row-desc {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skills-manager .sm-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.skills-manager .sm-edit-btn,
.skills-manager .sm-hide-btn,
.skills-manager .sm-delete-btn {
  background: none;
  border: 1px solid var(--color-border, #1f2937);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.skills-manager .sm-edit-btn {
  color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-edit-btn:hover {
  color: var(--color-accent, #3ecf8e);
  border-color: var(--color-accent, #3ecf8e);
}
.skills-manager .sm-hide-btn {
  color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-hide-btn:hover {
  color: var(--color-text-primary, #e8eaf0);
  border-color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-delete-btn {
  color: var(--color-text-muted, #6b7280);
}
.skills-manager .sm-delete-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}
.skills-manager .sm-hidden-footer {
  padding-top: 4px;
  text-align: center;
}
.skills-manager .sm-hidden-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-muted, #6b7280);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skills-manager .sm-hidden-toggle-btn:hover {
  color: var(--color-text-primary, #e8eaf0);
}
.skills-manager .sm-empty {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
  padding: 20px 0;
}
.skills-manager .sm-error {
  color: #ef4444;
}
.skills-manager .sm-loading {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
}

body[page=dea] main {
  padding: 0;
  overflow: hidden;
}

dea-portal {
  display: block;
  height: 100%;
  --dea-bg: #060303;
  --dea-surface: #110505;
  --dea-raised: #1a0707;
  --dea-border: #2e0c0c;
  --dea-red: #9B1B1B;
  --dea-red-hot: #C42B2B;
  --dea-silver: #B0B0C4;
  --dea-silver-dim: #6e6e80;
  --dea-ivory: #F2EDE8;
  --dea-muted: #8a5c5c;
  --dea-font-display: 'Cormorant Garamond', Georgia, serif;
  --dea-font-body: 'Montserrat', sans-serif;
}
dea-portal .dea-portal {
  background: var(--dea-bg);
  height: 100%;
  font-family: var(--dea-font-body);
  color: var(--dea-ivory);
  display: flex;
  flex-direction: column;
}
dea-portal .dea-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  height: 56px;
  background: var(--dea-surface);
  border-bottom: 1px solid var(--dea-border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
dea-portal .dea-topbar-logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
  flex-shrink: 0;
}
dea-portal .dea-logo-img {
  height: 32px;
  width: auto;
  display: block;
}
dea-portal .dea-tabs {
  display: flex;
  flex: 1;
  gap: 0;
  height: 100%;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
dea-portal .dea-tabs::-webkit-scrollbar {
  display: none;
}
dea-portal .dea-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--dea-muted);
  font-family: var(--dea-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
dea-portal .dea-tab:hover {
  color: var(--dea-silver);
}
dea-portal .dea-tab.is-active {
  color: var(--dea-ivory);
  border-bottom-color: var(--dea-red-hot);
}
dea-portal .dea-signout {
  background: none;
  border: 1px solid var(--dea-border);
  color: var(--dea-muted);
  font-family: var(--dea-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-left: auto;
}
dea-portal .dea-signout:hover {
  border-color: var(--dea-red);
  color: var(--dea-ivory);
}
dea-portal .dea-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
dea-portal .dea-view {
  display: none;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
dea-portal .dea-view.is-active {
  display: block;
}
dea-portal .dea-view[data-view=today] {
  padding: 0;
  max-width: none;
}
dea-portal .dea-view[data-view=today] > *:not(.dea-jaguar-hero) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}
dea-portal .dea-view[data-view=today] > .dea-card:first-of-type {
  margin-top: 28px;
}
dea-portal .dea-jaguar-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 28px;
  overflow: hidden;
  min-height: 300px;
  background-image: linear-gradient(rgba(90, 0, 0, 0.5), rgba(30, 0, 0, 0.78)), url("/assets/images/leopard.jpg");
  background-size: cover;
  background-position: center 40%;
}
dea-portal .dea-jaguar-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
dea-portal .dea-jaguar-logo-img {
  height: 200px;
  width: auto;
  filter: brightness(1.15) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}
dea-portal .dea-jaguar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 36px 28px;
  background: linear-gradient(transparent, rgba(6, 3, 3, 0.55));
}
dea-portal .dea-greeting-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dea-muted);
  margin: 0 0 6px;
}
dea-portal .dea-greeting-name {
  font-family: var(--dea-font-display);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  color: var(--dea-ivory);
  margin: 0;
  line-height: 1;
}
dea-portal .dea-hero-badge {
  position: relative;
  z-index: 1;
  text-align: right;
}
dea-portal .dea-hero-date {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--dea-silver);
  text-transform: uppercase;
  margin-bottom: 4px;
}
dea-portal .dea-hero-phase {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dea-red-hot);
  text-transform: uppercase;
}
dea-portal .dea-card {
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  padding: 24px 28px;
  margin-bottom: 20px;
  position: relative;
}
dea-portal .dea-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--dea-red);
  opacity: 0.6;
}
dea-portal .dea-card-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dea-red-hot);
  margin-bottom: 8px;
}
dea-portal .dea-card-title {
  font-family: var(--dea-font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--dea-ivory);
  margin: 0 0 16px;
  line-height: 1.2;
}
dea-portal .dea-brief-body {
  font-size: 14px;
  line-height: 1.75;
  color: #c9aaaa;
}
dea-portal .dea-brief-body p {
  margin: 0 0 12px;
}
dea-portal .dea-brief-body p:last-child {
  margin-bottom: 0;
}
dea-portal .dea-brief-body strong {
  color: var(--dea-ivory);
  font-weight: 600;
}
dea-portal .dea-brief-body .dea-loading {
  color: var(--dea-muted);
  font-style: italic;
}
dea-portal .dea-brief-updated {
  font-size: 11px;
  color: var(--dea-muted);
  margin-top: 12px;
  letter-spacing: 0.5px;
}
dea-portal .dea-decisions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
dea-portal .dea-decisions-list .dea-loading {
  color: var(--dea-muted);
  font-size: 14px;
  font-style: italic;
}
dea-portal .dea-decision-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dea-border);
}
dea-portal .dea-decision-item:last-child {
  border-bottom: none;
}
dea-portal .dea-decision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dea-red-hot);
  margin-top: 5px;
  flex-shrink: 0;
}
dea-portal .dea-decision-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dea-ivory);
}
dea-portal .dea-decision-meta {
  font-size: 11px;
  color: var(--dea-muted);
  margin-top: 4px;
}
dea-portal .dea-decision-btn {
  background: var(--dea-red);
  border: none;
  color: var(--dea-ivory);
  font-family: var(--dea-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
dea-portal .dea-decision-btn:hover {
  background: var(--dea-red-hot);
}
dea-portal .dea-chat-prompt {
  background: var(--dea-raised);
  border: 1px solid var(--dea-border);
  padding: 20px 28px;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
dea-portal .dea-chat-prompt:hover {
  border-color: var(--dea-silver-dim);
}
dea-portal .dea-chat-preview {
  font-size: 13px;
  color: var(--dea-muted);
  font-style: italic;
  flex: 1;
  margin-right: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
dea-portal .dea-cta-btn {
  background: none;
  border: 1px solid var(--dea-silver-dim);
  color: var(--dea-silver);
  font-family: var(--dea-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
dea-portal .dea-cta-btn:hover {
  border-color: var(--dea-silver);
  color: var(--dea-ivory);
}
dea-portal .dea-view[data-view=chat] {
  max-width: none;
  padding: 0;
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
dea-portal .dea-view[data-view=chat].is-active {
  display: flex;
}
dea-portal .dea-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--dea-border);
  background: var(--dea-surface);
  flex-shrink: 0;
}
dea-portal .dea-chat-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
dea-portal .dea-chat-avatar {
  width: 44px;
  height: 44px;
  background: var(--dea-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dea-ivory);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
dea-portal .dea-chat-avatar-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
dea-portal .dea-chat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
dea-portal .dea-chat-name {
  font-family: var(--dea-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dea-ivory);
}
dea-portal .dea-chat-role {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dea-muted);
}
dea-portal .dea-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--dea-border) transparent;
}
dea-portal .dea-msg {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
dea-portal .dea-msg-text {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.65;
}
dea-portal .dea-msg-time {
  font-size: 10px;
  color: var(--dea-muted);
  letter-spacing: 0.5px;
}
dea-portal .dea-msg-from-lo {
  align-self: flex-start;
}
dea-portal .dea-msg-from-lo .dea-msg-text {
  background: var(--dea-raised);
  border: 1px solid var(--dea-border);
  color: var(--dea-ivory);
}
dea-portal .dea-msg-from-lo .dea-msg-time {
  align-self: flex-start;
}
dea-portal .dea-msg-from-dea {
  align-self: flex-end;
}
dea-portal .dea-msg-from-dea .dea-msg-text {
  background: var(--dea-red);
  border: 1px solid var(--dea-red-hot);
  color: var(--dea-ivory);
}
dea-portal .dea-msg-from-dea .dea-msg-time {
  align-self: flex-end;
}
dea-portal .dea-compose {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--dea-border);
  background: var(--dea-surface);
  flex-shrink: 0;
}
dea-portal .dea-compose-input {
  flex: 1;
  min-height: 40px;
  max-height: 160px;
  padding: 10px 16px;
  background: var(--dea-raised);
  border: 1px solid var(--dea-border);
  border-right: none;
  color: var(--dea-ivory);
  font-family: var(--dea-font-body);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  overflow-y: auto;
  word-break: break-word;
  resize: none;
  transition: border-color 0.2s;
}
dea-portal .dea-compose-input:focus {
  border-color: var(--dea-silver-dim);
}
dea-portal .dea-compose-input:empty::before {
  content: attr(data-placeholder);
  color: var(--dea-muted);
  pointer-events: none;
}
dea-portal .dea-send-btn {
  width: 44px;
  height: 40px;
  background: var(--dea-red);
  border: 1px solid var(--dea-red-hot);
  color: var(--dea-ivory);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
dea-portal .dea-send-btn:hover {
  background: var(--dea-red-hot);
}
dea-portal .dea-send-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
dea-portal .dea-section-head {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--dea-border);
  padding-bottom: 20px;
}
dea-portal .dea-section-title {
  font-family: var(--dea-font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--dea-ivory);
  margin: 0 0 6px;
}
dea-portal .dea-section-sub {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dea-muted);
  margin: 0;
}
dea-portal .dea-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
dea-portal .dea-plan-card {
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
dea-portal .dea-plan-card:hover {
  border-color: var(--dea-red);
  transform: translateY(-2px);
}
dea-portal .dea-plan-card-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
dea-portal .dea-plan-card-title {
  font-family: var(--dea-font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--dea-ivory);
  margin: 0 0 6px;
}
dea-portal .dea-plan-card-desc {
  font-size: 12px;
  color: var(--dea-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
dea-portal .dea-plan-card-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(155, 27, 27, 0.2);
  border: 1px solid var(--dea-red);
  color: var(--dea-red-hot);
}
dea-portal .dea-research-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
dea-portal .dea-research-item {
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  padding: 18px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}
dea-portal .dea-research-item:hover {
  border-color: var(--dea-silver-dim);
}
dea-portal .dea-research-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
dea-portal .dea-research-body {
  flex: 1;
}
dea-portal .dea-research-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dea-red-hot);
  margin-bottom: 4px;
}
dea-portal .dea-research-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--dea-ivory);
  margin: 0 0 4px;
}
dea-portal .dea-research-excerpt {
  font-size: 13px;
  color: var(--dea-muted);
  line-height: 1.5;
  margin: 0;
}
dea-portal .dea-research-date {
  font-size: 11px;
  color: var(--dea-muted);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
dea-portal .dea-loading {
  color: var(--dea-muted);
  font-size: 14px;
  font-style: italic;
}
dea-portal .dea-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--dea-muted);
  font-size: 14px;
  font-style: italic;
}
@media (max-width: 600px) {
  dea-portal .dea-topbar {
    padding: 0 16px;
  }
  dea-portal .dea-tab {
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  dea-portal .dea-logo-img {
    height: 26px;
  }
  dea-portal .dea-view {
    padding: 20px 16px;
  }
  dea-portal .dea-jaguar-hero {
    min-height: 240px;
  }
  dea-portal .dea-jaguar-logo {
    padding: 24px 16px 12px;
  }
  dea-portal .dea-jaguar-logo-img {
    height: 48px;
  }
  dea-portal .dea-jaguar-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 20px;
  }
  dea-portal .dea-hero-badge {
    text-align: left;
  }
  dea-portal .dea-greeting-name {
    font-size: 36px;
  }
  dea-portal .dea-plan-grid {
    grid-template-columns: 1fr;
  }
  dea-portal .dea-msg {
    max-width: 90%;
  }
  dea-portal .dea-chat-messages {
    padding: 16px;
  }
  dea-portal .dea-compose {
    padding: 12px 16px;
  }
}
dea-portal .dea-chat-header {
  cursor: pointer;
  transition: background 0.2s;
}
dea-portal .dea-chat-header:hover {
  background: rgba(255, 255, 255, 0.03);
}
dea-portal .dea-chat-hint {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dea-silver-dim);
  text-transform: uppercase;
  margin-left: auto;
}
dea-portal .dea-lo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}
dea-portal .dea-lo-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
dea-portal .dea-lo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}
dea-portal .dea-lo-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  width: min(900px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  scrollbar-width: thin;
  scrollbar-color: var(--dea-border) transparent;
}
@media (max-width: 700px) {
  dea-portal .dea-lo-modal-panel {
    grid-template-columns: 1fr;
  }
}
dea-portal .dea-lo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--dea-border);
  color: var(--dea-muted);
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
dea-portal .dea-lo-modal-close:hover {
  border-color: var(--dea-red);
  color: var(--dea-ivory);
}
dea-portal .dea-lo-portrait-col {
  background: #0c0404;
  border-right: 1px solid var(--dea-border);
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  dea-portal .dea-lo-portrait-col {
    border-right: none;
    border-bottom: 1px solid var(--dea-border);
  }
}
dea-portal .dea-lo-portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
dea-portal .dea-lo-portrait-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.05);
}
@media (max-width: 700px) {
  dea-portal .dea-lo-portrait-wrap {
    aspect-ratio: 16/9;
  }
}
dea-portal .dea-lo-portrait-caption {
  padding: 20px 24px;
  border-top: 1px solid var(--dea-border);
  flex: 1;
}
dea-portal .dea-lo-caption-line {
  font-family: var(--dea-font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--dea-silver);
  margin: 0;
  line-height: 1.4;
}
dea-portal .dea-lo-content-col {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
dea-portal .dea-lo-fullname {
  font-family: var(--dea-font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--dea-ivory);
  margin: 0 0 4px;
}
dea-portal .dea-lo-handle {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dea-red-hot);
  margin: 0 0 12px;
}
dea-portal .dea-lo-bio {
  font-size: 14px;
  line-height: 1.7;
  color: #c0a0a0;
  margin: 0;
}
dea-portal .dea-lo-section {
  border-top: 1px solid var(--dea-border);
  padding-top: 20px;
}
dea-portal .dea-lo-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dea-red-hot);
  margin-bottom: 14px;
}
dea-portal .dea-lo-music {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dea-portal .dea-lo-track {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
dea-portal .dea-lo-track-artist {
  font-size: 13px;
  font-weight: 600;
  color: var(--dea-ivory);
}
dea-portal .dea-lo-track-note {
  font-size: 12px;
  color: var(--dea-muted);
  line-height: 1.4;
}
dea-portal .dea-lo-shows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
dea-portal .dea-lo-show {
  font-size: 13px;
  font-weight: 600;
  color: var(--dea-ivory);
}
dea-portal .dea-lo-show .dea-lo-show-note {
  font-weight: 400;
  color: var(--dea-muted);
}
dea-portal .dea-lo-crons, dea-portal .dea-lo-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
dea-portal .dea-lo-cron-item, dea-portal .dea-lo-activity-item {
  font-size: 13px;
  color: var(--dea-ivory);
  padding: 8px 0;
  border-bottom: 1px solid var(--dea-border);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
dea-portal .dea-lo-cron-item:last-child, dea-portal .dea-lo-activity-item:last-child {
  border-bottom: none;
}
dea-portal .dea-lo-cron-name, dea-portal .dea-lo-activity-action {
  flex: 1;
  font-weight: 500;
}
dea-portal .dea-lo-cron-schedule, dea-portal .dea-lo-activity-time {
  font-size: 11px;
  color: var(--dea-muted);
  flex-shrink: 0;
}
dea-portal .dea-agents-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
}
dea-portal .dea-agent-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
dea-portal .dea-agent-card:hover {
  border-color: var(--dea-red);
  background: var(--dea-raised);
}
dea-portal .dea-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dea-raised);
  border: 2px solid var(--dea-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dea-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dea-silver);
  flex-shrink: 0;
}
dea-portal .dea-agent-avatar--active {
  border-color: #2a9d2a;
  color: #4caf50;
}
dea-portal .dea-agent-avatar--error {
  border-color: var(--dea-red-hot);
  color: var(--dea-red-hot);
}
dea-portal .dea-agent-avatar--thinking {
  border-color: #c49b1b;
  color: #e6b800;
}
dea-portal .dea-agent-info {
  flex: 1;
  min-width: 0;
}
dea-portal .dea-agent-name {
  font-family: var(--dea-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--dea-ivory);
  letter-spacing: 0.02em;
}
dea-portal .dea-agent-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dea-red);
  margin-top: 2px;
}
dea-portal .dea-agent-model {
  font-size: 11px;
  color: var(--dea-silver-dim);
  margin-top: 2px;
}
dea-portal .dea-agent-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
dea-portal .dea-agent-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--dea-raised);
  color: var(--dea-silver-dim);
}
dea-portal .dea-agent-status--active {
  background: rgba(42, 157, 42, 0.15);
  color: #4caf50;
}
dea-portal .dea-agent-status--error {
  background: rgba(196, 43, 43, 0.15);
  color: var(--dea-red-hot);
}
dea-portal .dea-agent-status--thinking {
  background: rgba(196, 155, 27, 0.15);
  color: #e6b800;
}
dea-portal .dea-agent-skill-count {
  font-size: 11px;
  color: var(--dea-muted);
}
dea-portal .dea-agent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
dea-portal .dea-agent-modal.is-open {
  display: flex;
}
dea-portal .dea-agent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 3, 3, 0.75);
  cursor: pointer;
}
dea-portal .dea-agent-modal-panel {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  border-radius: 14px;
  padding: 32px;
}
dea-portal .dea-agent-modal-panel::-webkit-scrollbar {
  width: 4px;
}
dea-portal .dea-agent-modal-panel::-webkit-scrollbar-thumb {
  background: var(--dea-border);
  border-radius: 2px;
}
dea-portal .dea-agent-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--dea-silver-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
dea-portal .dea-agent-modal-close:hover {
  color: var(--dea-ivory);
}
dea-portal .dea-agent-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
dea-portal .dea-agent-modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dea-raised);
  border: 2px solid var(--dea-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dea-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dea-silver);
  flex-shrink: 0;
}
dea-portal .dea-agent-modal-title {
  flex: 1;
  min-width: 0;
}
dea-portal .dea-agent-modal-name {
  font-family: var(--dea-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--dea-ivory);
  margin: 0 0 4px;
}
dea-portal .dea-agent-modal-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dea-red);
  margin: 0 0 8px;
}
dea-portal .dea-agent-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
dea-portal .dea-agent-modal-section {
  border-top: 1px solid var(--dea-border);
  padding-top: 16px;
}
dea-portal .dea-agent-modal-section:first-child {
  border-top: none;
  padding-top: 0;
}
dea-portal .dea-agent-modal-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dea-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
dea-portal .dea-agent-modal-value {
  font-size: 14px;
  color: var(--dea-silver);
  margin: 0;
}
dea-portal .dea-agent-modal-desc {
  font-size: 13px;
  color: var(--dea-silver);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}
dea-portal .dea-agent-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
dea-portal .dea-skills-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
dea-portal .dea-skill-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  border-radius: 8px;
}
dea-portal .dea-skill-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dea-ivory);
  min-width: 160px;
  flex-shrink: 0;
}
dea-portal .dea-skill-row-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
dea-portal .dea-skill-agent-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(155, 27, 27, 0.2);
  border: 1px solid var(--dea-border);
  border-radius: 20px;
  color: var(--dea-silver);
}
dea-portal .dea-skill-pill {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--dea-raised);
  border: 1px solid var(--dea-border);
  border-radius: 20px;
  color: var(--dea-silver);
}
dea-portal .dea-empty-inline {
  font-size: 13px;
  color: var(--dea-muted);
}
dea-portal .dea-skills-agent-block {
  padding: 16px 20px;
  background: var(--dea-surface);
  border: 1px solid var(--dea-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
dea-portal .dea-skills-agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
dea-portal .dea-skills-agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dea-raised);
  border: 2px solid var(--dea-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dea-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--dea-silver);
  flex-shrink: 0;
}
dea-portal .dea-skills-agent-name {
  font-family: var(--dea-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--dea-ivory);
}
dea-portal .dea-skills-agent-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dea-red);
  margin-left: 4px;
}
dea-portal .dea-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
dea-portal .dea-skills-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--dea-raised);
  border: 1px solid var(--dea-border);
  border-radius: 20px;
  color: var(--dea-silver);
}
dea-portal .dea-skills-tag-remove {
  background: none;
  border: none;
  color: var(--dea-silver-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
  transition: color 0.1s ease;
}
dea-portal .dea-skills-tag-remove:hover {
  color: var(--dea-red-hot);
}
dea-portal .dea-skills-add {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
dea-portal .dea-skills-add-input {
  flex: 1;
  background: var(--dea-bg);
  border: 1px solid var(--dea-border);
  border-radius: 6px;
  color: var(--dea-ivory);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s ease;
}
dea-portal .dea-skills-add-input:focus {
  border-color: var(--dea-red);
}
dea-portal .dea-skills-add-input::placeholder {
  color: var(--dea-muted);
}
dea-portal .dea-skills-add-btn {
  background: var(--dea-red);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 14px;
  transition: background 0.15s ease;
}
dea-portal .dea-skills-add-btn:hover {
  background: var(--dea-red-hot);
}

/*-----------------------------------*\
		THEME
\*-----------------------------------*/
/*-----------------------------------------------------*\

	*Filename:		default.scss
	*Description: 	contains the baselines specifically for 
					this project
	*Version:		1.0.0(2015-05-29)
	*Website:		http://schonne.com
	*Author:		Schonne Eldridge

 ===TABLE OF CONTENTS:===================================

	$_FONTS					dynamic fonts
	$_PROJECT BASELINE		baselines for the theme

\*------------------------------------------------------*//*# sourceMappingURL=style.css.map */
