/* ==========================================================================
   Utilon — brand theme for the Frappe desk and web (login, portals)
   Mirrors the utilon.io design system: ink / brand blue / AI violet, Plus
   Jakarta Sans + Inter + JetBrains Mono, soft rounded corners.
   Loaded via app_include_css (desk) and web_include_css (login + portals).
   The --asx-* names are kept so the rest of the app's CSS/JS keeps working.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root,
[data-theme="light"] {
	/* Utilon palette (utilon.io :root tokens) */
	--asx-navy: #0a0f1f;       /* --ink */
	--asx-navy-2: #141a33;
	--asx-navy-3: #232a52;
	--asx-blue: #2563eb;       /* --brand */
	--asx-blue-dark: #1d4ed8;  /* --brand-2 */
	--asx-blue-soft: #7c6bff;  /* --ai */
	--asx-blue-wash: #e9f0ff;  /* --brand-soft */
	--asx-cyan: #6a58f5;       /* --ai-2: secondary accent */
	--asx-cyan-wash: #efecff;  /* --ai-soft */
	--asx-ochre: #f5a524;      /* --amber */
	--asx-mist: #f6f8fc;       /* --bg-soft */
	--asx-line: #e5e9f2;       /* --line */
	--asx-slate: #6a7387;      /* --muted */
	--asx-slate-2: #98a1b3;    /* --faint */
	--utl-grad: linear-gradient(120deg, #2563eb 0%, #6a58f5 55%, #9b6bff 100%);
	--utl-glow: 0 20px 60px -22px rgba(76, 84, 224, 0.45);

	/* Type */
	--font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--asx-font-display: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
	--asx-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	/* Neutrals: cool ink-tinted greys */
	--gray-900: var(--asx-navy);
	--gray-800: #333a4d;       /* --text */
	--gray-700: #4a5266;
	--gray-600: var(--asx-slate);
	--gray-500: #838ca0;
	--gray-400: var(--asx-slate-2);
	--gray-300: #cdd3df;
	--gray-200: var(--asx-line);
	--gray-100: #eef1f8;       /* --line-soft */
	--gray-50: #f6f8fc;
	--text-color: var(--gray-800);
	--heading-color: var(--asx-navy);

	/* Brand / primary */
	--primary: var(--asx-blue);
	--primary-color: var(--asx-blue);
	--brand-color: var(--asx-blue);
	--btn-primary: var(--asx-blue);
	--blue-500: var(--asx-blue);
	--blue-600: var(--asx-blue);
	--blue-700: var(--asx-blue-dark);

	/* Surfaces */
	--bg-color: var(--asx-mist);
	--fg-color: #ffffff;
	--card-bg: #ffffff;
	--navbar-bg: #ffffff;
	--subtle-accent: #f6f8fc;
	--border-color: var(--asx-line);
	--dark-border-color: #cdd3df;
	--sidebar-select-color: var(--asx-blue-wash);
	--control-bg: #f6f8fc;
	--control-bg-on-gray: #eef1f8;

	/* Shape: utilon.io uses soft rounded corners (10/16/22px) */
	--border-radius-tiny: 4px;
	--border-radius-sm: 6px;
	--border-radius: 8px;
	--border-radius-md: 10px;
	--border-radius-lg: 12px;
	--border-radius-xl: 16px;
	--border-radius-2xl: 22px;
}

/* ---------------------------------------------------------------- typography */
h1, h2, h3, h4,
.title-text,
.page-title .title-text,
.widget-title,
.section-head,
.modal-title,
.page-card-head h4 {
	font-family: var(--asx-font-display);
	letter-spacing: -0.01em;
}
h1, h2, .title-text, .page-title .title-text { font-weight: 700; }
.number-card .number, .stat-value, .indicator-pill, code, .code, pre {
	font-family: var(--asx-font-mono);
}

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: var(--border-radius); }
.btn-primary,
.btn-primary-light { font-weight: 600; }
.btn-primary {
	background: var(--asx-blue);
	border-color: var(--asx-blue);
	color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background: var(--asx-blue-dark);
	border-color: var(--asx-blue-dark);
	color: #fff;
}
a { color: var(--asx-blue); }
a:hover { color: var(--asx-blue-dark); }

/* ---------------------------------------------------------------- desk chrome */
.navbar {
	border-bottom: 3px solid var(--asx-blue);
	box-shadow: 0 1px 0 rgba(16, 24, 48, 0.05);
}
.navbar .navbar-brand .app-logo,
.navbar .app-logo { max-height: 28px; height: 28px; width: auto; }

.standard-sidebar-item.selected,
.sidebar-item.selected,
.desk-sidebar-item.selected,
.list-sidebar .selected {
	background: var(--asx-blue-wash);
	border-left: 3px solid var(--asx-blue);
	color: var(--asx-navy);
}

.form-control:focus,
.frappe-control input:focus,
.frappe-control select:focus,
.frappe-control textarea:focus {
	border-color: var(--asx-blue);
	box-shadow: 0 0 0 1px var(--asx-blue);
}

.indicator-pill.blue, .indicator.blue::before { --indicator-color: var(--asx-blue); }
.frappe-card, .widget, .form-layout .form-page, .layout-main-section {
	border-color: var(--asx-line);
}
.page-head { border-bottom: 1px solid var(--asx-line); }

/* ---------------------------------------------------------------- login / web pages */
body[data-path="login"],
body[data-path="update-password"],
body[data-path="signup"] {
	background:
		radial-gradient(900px 480px at 88% -8%, rgba(124, 107, 255, 0.20), transparent 60%),
		radial-gradient(800px 460px at 6% 108%, rgba(37, 99, 235, 0.16), transparent 60%),
		var(--asx-mist);
	min-height: 100vh;
}
body[data-path="login"] .page-card,
body[data-path="update-password"] .page-card,
body[data-path="signup"] .page-card {
	/* white card with a 4px brand-gradient top edge that respects the rounded corners */
	background: linear-gradient(#fff, #fff) padding-box, var(--utl-grad) border-box;
	border: none;
	border-top: 4px solid transparent;
	border-radius: var(--border-radius-xl);
	box-shadow: var(--utl-glow), 0 4px 14px -4px rgba(16, 24, 48, 0.10);
}
.page-card .app-logo,
.login-content .app-logo {
	height: 46px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
.page-card-head h4 {
	font-family: var(--asx-font-display);
	font-weight: 700;
	color: var(--asx-navy);
}
.page-card .btn-primary,
.page-card .btn-login { background: var(--asx-blue); border-color: var(--asx-blue); }
.page-card .btn-primary:hover { background: var(--asx-blue-dark); border-color: var(--asx-blue-dark); }
.login-content .btn-login-option,
.login-content .btn-default { border-radius: var(--border-radius); }

/* Frappe / ERPNext attribution in the footer of web pages */
.web-footer .footer-powered, .footer-powered { display: none; }

/* Login buttons: Frappe styles these with its own near-black; use the utilon.io gradient CTA */
body[data-path="login"] .page-card .btn-login:not(.btn-login-option),
body[data-path="login"] .page-card .btn-primary,
body[data-path="update-password"] .page-card .btn-primary,
body[data-path="signup"] .page-card .btn-primary {
	background: var(--utl-grad);
	border-color: transparent;
	color: #fff;
	font-weight: 600;
	box-shadow: var(--utl-glow);
}
body[data-path="login"] .page-card .btn-login:not(.btn-login-option):hover,
body[data-path="login"] .page-card .btn-primary:hover {
	background: var(--utl-grad);
	border-color: transparent;
	filter: brightness(0.94);
}
.page-card .form-control:focus { border-color: var(--asx-blue); box-shadow: 0 0 0 1px var(--asx-blue); }

/* ---------------------------------------------------------------- CV drop zone (Candidate form) */
.asx-drop {
	border: 2px dashed var(--asx-slate-2);
	border-radius: var(--border-radius);
	background: var(--asx-blue-wash);
	padding: 18px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.asx-drop:hover, .asx-drop:focus, .asx-drop.is-over { border-color: var(--asx-blue); background: #dcebf7; outline: none; }
.asx-drop__title { font-family: var(--asx-font-display); font-weight: 700; color: var(--asx-navy); font-size: 1.05rem; }
.asx-drop__sub { color: var(--asx-slate); margin: 2px 0 10px; font-size: .85rem; }
.asx-drop__status { margin-top: 8px; min-height: 1.2em; font-size: .85rem; }

/* ---------------------------------------------------------------- pipeline panel (Job Requirement form) */
.asx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.asx-chip { font-family: var(--asx-font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 99px; background: var(--asx-blue-wash); color: var(--asx-navy); }
.asx-chip b { margin-left: 3px; }
.asx-stage-placed, .asx-stage-offered { background: var(--asx-cyan-wash); }
.asx-stage-rejected, .asx-stage-withdrawn { background: #eee; color: #666; }
.asx-stage-interview, .asx-stage-submitted-to-client { background: #fff3dc; }
.asx-pipeline th { font-family: var(--asx-font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--asx-slate); }
.asx-stars { color: var(--asx-ochre); letter-spacing: 1px; white-space: nowrap; }

/* ---------------------------------------------------------------- vendor lock-in */
.asx-lockbox { border-left: 4px solid var(--asx-cyan); background: var(--asx-cyan-wash); padding: 10px 14px; border-radius: var(--border-radius); margin-bottom: 10px; }
.asx-lockbox.is-soon { border-color: var(--asx-ochre); background: #fff3dc; }
.asx-lockbox.is-expired { border-color: var(--asx-slate-2); background: #eef1f4; }
.asx-lockbox__head { font-family: var(--asx-font-display); font-weight: 700; color: var(--asx-navy); font-size: 1.05rem; }
.asx-lockbox__body { font-size: .88rem; }
.asx-lockbox__note { font-size: .82rem; color: var(--asx-slate); margin-top: 2px; }
.asx-lock { font-family: var(--asx-font-mono); font-size: .68rem; padding: 2px 8px; border-radius: 99px; background: var(--asx-cyan-wash); color: #4c3fd1; white-space: nowrap; }
.asx-lock.is-soon { background: #fff3dc; color: #7A5410; }
.asx-lock.is-expired { background: #eee; color: #666; }

/* ---------------------------------------------------------------- candidate search page */
.asx-search .asx-s-card { background: var(--card-bg); border: 1px solid var(--asx-line); border-radius: var(--border-radius); padding: 16px 18px 6px; margin-bottom: 14px; }
.asx-search .asx-s-helpbar { margin: -6px 0 8px; font-size: .82rem; }
.asx-search .asx-s-help { background: var(--asx-mist); padding: 10px 12px; border-radius: var(--border-radius); margin-bottom: 10px; }
.asx-search .asx-s-help code { color: var(--asx-navy); background: #fff; padding: 1px 6px; }
.asx-search .asx-s-actions { display: flex; gap: 8px; align-items: center; padding: 4px 0 12px; }
.asx-search .asx-s-sortwrap { margin-left: auto; min-width: 190px; }
.asx-search .asx-s-sortwrap .frappe-control { margin-bottom: 0; }
.asx-search .asx-s-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.asx-search .asx-s-table { background: var(--card-bg); border: 1px solid var(--asx-line); }
.asx-search .asx-s-table th { font-family: var(--asx-font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--asx-slate); }
.asx-search .asx-s-empty { background: var(--card-bg); border: 1px dashed var(--asx-line); padding: 40px; text-align: center; color: var(--asx-slate); }
.asx-skill { display: inline-block; font-size: .74rem; padding: 1px 8px; margin: 1px 2px 1px 0; border-radius: 99px; background: var(--asx-mist); color: var(--asx-slate); }
.asx-skill i { font-style: normal; opacity: .7; }
.asx-skill.is-hit { background: var(--asx-blue-wash); color: var(--asx-blue); font-weight: 600; box-shadow: inset 0 0 0 1px var(--asx-blue-soft); }

/* ---------------------------------------------------------------- duplicate review comparison */
.asx-cmp th { font-family: var(--asx-font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--asx-slate); }
.asx-cmp .asx-cmp-same { background: #fff3dc; font-weight: 600; }

/* ---------------------------------------------------------------- stages and share kit */
.asx-stage-not-contacted { background: #eceff3; color: #4a5a68; }
.asx-stage-contacted { background: var(--asx-blue-wash); }
.asx-stage-awaiting-response { background: #fff6d6; }
.asx-stage-not-interested, .asx-stage-not-qualified, .asx-stage-rejected-by-client { background: #f6e1de; color: #8e2a20; }
.asx-stage-qualified { background: var(--asx-cyan-wash); }
.asx-stage-submitted-to-client { background: #fff3dc; }
.asx-stage-accepted-by-client { background: #dcf3e8; color: #0a6b45; }
.asx-kit { border: 1px solid var(--asx-line); border-radius: var(--border-radius); padding: 12px 14px; margin-bottom: 12px; }
.asx-kit__head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.asx-kit__row { display: flex; gap: 8px; align-items: flex-start; }
.asx-kit__row .form-control { flex: 1; }


/* ---- stage chip for the interview stage */
.asx-stage-client-interview { background: #ece4fa; color: #4a2d92; }

/* ---- counts in lists */
.asx-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 10px; background: var(--asx-blue-wash, #e4ecfb); font-weight: 600; text-align: center; }

/* ---- dashboard */
.asx-dash { padding-bottom: 30px; }
.asx-deptbar { margin-bottom: 14px; } .asx-deptbar .asx-dept-sel { max-width: 260px; display: inline-block; font-weight: 600; }
.asx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.asx-kpi { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #d9e0e6); border-radius: 10px; padding: 14px 16px; }
.asx-kpi.is-good { border-top: 3px solid #16a34a; } .asx-kpi.is-warn { border-top: 3px solid #C0392B; }
.asx-kpi__v { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.asx-kpi__l { font-weight: 600; margin-top: 2px; }
.asx-kpi__s { color: var(--text-muted, #6b7a86); font-size: .8rem; margin-top: 4px; }
.asx-up { color: #0a6b45; font-weight: 600; } .asx-down { color: #b3261e; font-weight: 600; }
.asx-card { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #d9e0e6); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.asx-card__t { font-weight: 700; margin-bottom: 10px; }
.asx-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.asx-grid2 .asx-card { margin-bottom: 0; } .asx-grid2 { margin-bottom: 14px; }
.asx-tablewrap { overflow-x: auto; }
.asx-table th { font-weight: 600; white-space: nowrap; } .asx-table td { vertical-align: middle; }
.asx-table .nowrap, .nowrap { white-space: nowrap; }
.asx-fu__row { display: grid; grid-template-columns: 110px 1fr 150px 60px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-color, #e6ebef); }
.asx-fu__row.is-overdue .asx-fu__when { color: #b3261e; font-weight: 600; }
.asx-feedbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .asx-feedbar select { width: auto; min-width: 160px; }
.asx-feed__row { display: grid; grid-template-columns: 110px 150px 1fr 130px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color, #e6ebef); align-items: start; }
.asx-feed__notes { color: var(--text-muted, #6b7a86); font-size: .85rem; margin-top: 2px; }
.asx-act { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; background: #eceff3; color: #4a5a68; white-space: nowrap; }
.asx-act--call { background: var(--asx-blue-wash); color: var(--asx-blue-dark); } .asx-act--email { background: #dcf3e8; color: #0a6b45; }
.asx-act--meeting { background: #ece4fa; color: #4a2d92; } .asx-act--note { background: #fff6d6; color: #7a5d00; }
.asx-act--status-change { background: #fff3dc; color: #8a4b00; } .asx-act--added-to-job-order, .asx-act--candidate-added { background: #dff4f6; color: #0a5f6b; }
@media (max-width: 720px) { .asx-feed__row, .asx-fu__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---- candidate page: job orders + activity */
.asx-ov__meta { margin-bottom: 10px; }
.asx-ov .asx-table { margin-bottom: 0; }

/* ---- CV hover popup */
.asx-cv { cursor: pointer; color: var(--asx-blue); display: inline-flex; align-items: center; gap: 4px; }
.asx-cv:hover { color: var(--asx-blue-dark); }
.asx-cvpop { position: fixed; z-index: 1200; background: #fff; border: 1px solid #cfd8df; border-radius: 10px; box-shadow: 0 14px 40px rgba(20, 40, 60, .28); display: flex; flex-direction: column; overflow: hidden; }
.asx-cvpop[hidden] { display: none; }
.asx-cvpop__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f4f7f9; border-bottom: 1px solid #e1e7ec; font-size: .85rem; }
.asx-cvpop__body { flex: 1; min-height: 0; overflow: auto; } .asx-cvpop__body iframe { width: 100%; height: 100%; border: 0; }
.asx-cvpop__text { margin: 0; padding: 14px 16px; white-space: pre-wrap; font-family: inherit; font-size: .85rem; line-height: 1.45; background: #fff; border: 0; }

/* candidate page tables: use the full width and wrap long text instead of overflowing */
.asx-ov { width: 100%; overflow-x: auto; }
.asx-ov .asx-table { width: 100%; table-layout: auto; }
.asx-ov .asx-table td { word-break: break-word; }


/* ---- original CV viewer on the candidate page */
.asx-cvview { border: 1px solid var(--border-color, #d9e0e6); border-radius: 10px; overflow: hidden; background: #fff; }
.asx-cvview--empty { padding: 30px 20px; text-align: center; background: #f7f9fb; }
.asx-cvview__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; background: #f4f7f9; border-bottom: 1px solid #e1e7ec; }
.asx-cvview__sel { max-width: 70%; }
.asx-cvview__body { height: min(78vh, 900px); min-height: 520px; overflow: auto; background: #eef1f4; }
.asx-cvview__body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.asx-cvdoc { background: #fff; margin: 14px auto; max-width: 780px; padding: 26px 34px; box-shadow: 0 1px 6px rgba(20, 40, 60, .15); font-size: 13px; line-height: 1.5; color: #1d2b36; }
.asx-cvdoc h2, .asx-cvdoc h3, .asx-cvdoc h4, .asx-cvdoc h5 { margin: 14px 0 6px; color: #0B2545; }
.asx-cvdoc p { margin: 0 0 6px; } .asx-cvdoc ul { margin: 0 0 8px 18px; padding: 0; }
.asx-cvdoc table { width: 100%; border-collapse: collapse; margin: 8px 0; } .asx-cvdoc td { border: 1px solid #dfe6ec; padding: 4px 8px; vertical-align: top; }
.asx-chip.g { background: #e3f5ea; color: #106b3a; } .asx-chip.r { background: #fdeceb; color: #b3261e; } .asx-chip.o { background: #fff3dc; color: #8a4b00; }

/* candidate hover popup (name -> full profile + CV) */
.asx-cand { cursor: pointer; border-bottom: 1px dotted #9aa7b3; }
.asx-candpop { position: fixed; z-index: 1200; background: #fff; border: 1px solid #cfd8df; border-radius: 10px; box-shadow: 0 14px 40px rgba(20, 40, 60, .28); display: flex; flex-direction: column; overflow: hidden; }
.asx-candpop[hidden] { display: none; }
.asx-candpop__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f4f7f9; border-bottom: 1px solid #e1e7ec; font-size: .9rem; }
.asx-candpop__head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asx-candpop__chips { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.asx-candpop__head a { margin-left: auto; white-space: nowrap; font-size: .8rem; }
.asx-candpop__facts { max-height: 44%; overflow: auto; padding: 10px 14px; border-bottom: 1px solid #e1e7ec; flex: none; }
.asx-candpop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; }
.asx-candpop__f { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; border-bottom: 1px dashed #eef1f4; padding: 2px 0; }
.asx-candpop__f span { color: #6b7a86; } .asx-candpop__f b { text-align: right; font-weight: 600; }
.asx-candpop__summary { font-size: .82rem; color: #3a4650; margin: 8px 0 0; }
.asx-candpop__skills { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.asx-candpop__cv { flex: 1; min-height: 0; overflow: auto; } .asx-candpop__cv iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Compact form sidebar: an icon-only rail by default (Assign / Attachments /
   Tags / Share + their avatars), with a small toggle to expand back to the
   normal labelled sidebar when it's actually needed. Remembered per browser.
   ========================================================================== */
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section:has(> .form-sidebar) {
  width: 54px !important; min-width: 54px !important; max-width: 54px !important;
}
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar {
  width: 54px;
}
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .sidebar-section { padding: 10px 6px; }
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .sidebar-image-section,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .sidebar-meta-details,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .sidebar-rating,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .user-actions,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .followed-by-section,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .sidebar-section.text-muted,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .show-all-btn { display: none !important; }
/* collapse text (font-size:0) but keep icons/avatars, which are sized in px and unaffected */
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .form-sidebar-items,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .assignments,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .attachment-row,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .shares,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .user-action-link {
  font-size: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .form-sidebar-items { flex-direction: column; }
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .data-pill,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .avatar,
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .avatar-frame { margin: 0 auto; }
body[data-route^="Form"]:not(.asx-sidebar-full) .layout-side-section > .form-sidebar .data-pill .pill-label { display: none; }

.asx-sb-toggle {
  position: sticky; top: 8px; float: right; margin: 6px 6px 0; z-index: 3;
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border-color, #d1d8dd);
  background: var(--fg-color, #fff); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.asx-sb-toggle:hover { background: var(--btn-default-hover-bg, #f0f2f4); }
body.asx-sidebar-full .asx-sb-toggle svg { transform: rotate(180deg); }

/* ---- work dashboard */
.asx-work__head { font-weight: 700; font-size: 1.05rem; margin: 6px 0 10px; }
.asx-work__sub { font-weight: 600; margin: 10px 0 4px; }
.asx-minis { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.asx-mini__v { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.asx-mini__l { font-size: .78rem; color: var(--text-muted, #6b7a86); }
.asx-mini.bad .asx-mini__v { color: #b3261e; }

/* ---- Agent Registry */
.asx-ar-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.asx-ar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.asx-ar-card { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e3e8ec); border-radius: 12px; padding: 18px; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.asx-ar-card:hover { box-shadow: 0 2px 10px rgba(20, 30, 60, .08); border-color: #c7d0da; }
.asx-ar-cardtop { display: flex; gap: 14px; margin-bottom: 12px; }
.asx-ar-badge { flex: none; width: 46px; height: 46px; border-radius: 10px; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; }
.asx-ar-cardhead { min-width: 0; }
.asx-ar-name { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asx-ar-desc { color: var(--text-muted, #6b7a86); font-size: .86rem; margin-top: 2px; }
.asx-ar-pill { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.asx-ar-caps { list-style: none; margin: 0 0 12px; padding: 0; }
.asx-ar-caps li { position: relative; padding-left: 18px; font-size: .86rem; color: var(--text-color, #333); margin-bottom: 5px; }
.asx-ar-caps li::before { content: "•"; position: absolute; left: 4px; color: var(--asx-blue); font-weight: 700; }
.asx-ar-caps li.asx-ar-planned { color: var(--text-muted, #8b97a2); }
.asx-ar-caps li.asx-ar-planned::before { color: #b8c0c9; }
.asx-ar-caps li.asx-ar-planned span { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; }
.asx-ar-cardfoot { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-color, #eef1f3); flex-wrap: wrap; }

.asx-ar-backrow { margin-bottom: 10px; }
.asx-ar-detailhead { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.asx-ar-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.asx-ar-wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.asx-ar-wf { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #e3e8ec); border-radius: 10px; padding: 14px; cursor: pointer; }
.asx-ar-wf:hover { border-color: #c7d0da; }
.asx-ar-wf-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.asx-ar-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--control-bg, #f3f4f6); border-radius: 999px; padding: 3px 10px; font-size: .8rem; margin: 0 6px 6px 0; }
.asx-ar-chip a { color: #a33; text-decoration: none; font-weight: 700; }
