/* Spaces "Studio" app layer (light only), 2026-11-10.
   Loaded on every signed-in page from board/partials/top_nav.blade.php, after the page's own CSS.
   Brings the top bar, Bootstrap parts (buttons, forms, modals, menus, cards, tables, tabs)
   and page headers in line with the Studio dashboard. Same tokens as the dashboard (--sd-*). */

html[data-bs-theme] body.page-shell {
  --st-bg: #f6f4ef; --st-surface: #ffffff; --st-surface-2: #f4f1ea; --st-line: #e9e4da; --st-line-2: #ddd6c8;
  --st-text: #1d1b17; --st-muted: #6f695e; --st-faint: #a39c8f; --st-ink: #1d1b17; --st-focus: #5b5bd6;
  --st-red: #e5484d; --st-green: #10b981; --st-orange: #f59e0b; --st-pink: #ec4899;
  --st-shadow: 0 1px 2px rgba(40,30,10,.05), 0 6px 18px rgba(40,30,10,.05);
  --st-shadow-lg: 0 2px 6px rgba(40,30,10,.06), 0 18px 40px rgba(40,30,10,.12);
  --bs-body-font-family: Manrope, Inter, system-ui, sans-serif;
  --bs-body-color: #1d1b17; --bs-body-bg: #f6f4ef; --bs-emphasis-color: #1d1b17;
  --bs-secondary-color: #6f695e; --bs-tertiary-color: #a39c8f;
  --bs-secondary-bg: #f4f1ea; --bs-tertiary-bg: #faf8f4;
  --bs-border-color: #e9e4da; --bs-border-color-translucent: rgba(40,30,10,.1);
  --bs-primary: #1d1b17; --bs-primary-rgb: 29,27,23; --bs-primary-text-emphasis: #1d1b17;
  --bs-primary-bg-subtle: #f4f1ea; --bs-primary-border-subtle: #ddd6c8;
  --bs-link-color: #1d1b17; --bs-link-color-rgb: 29,27,23; --bs-link-hover-color: #000; --bs-link-hover-color-rgb: 0,0,0;
  --bs-focus-ring-color: rgba(91,91,214,.2);
  --bs-border-radius: 12px; --bs-border-radius-sm: 9px; --bs-border-radius-lg: 18px; --bs-border-radius-xl: 22px;
  background: var(--st-bg) !important; background-image: none !important;
  color: var(--st-text);
  font-family: Manrope, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-bs-theme] body.page-shell :focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; }

/* ================= Top bar ================= */
html[data-bs-theme] body.page-shell .ustk-top-nav.navbar {
  background: rgba(246,244,239,.86) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--st-line) !important; box-shadow: none !important; padding: 0 !important; min-height: 62px;
}
html[data-bs-theme] body.page-shell .ustk-top-nav__inner { min-height: 62px; gap: 14px !important; flex-wrap: nowrap !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .navbar-brand { display: flex !important; align-items: center; gap: 9px; margin: 0 !important; padding: 0 !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .sd-logo-dot { width: 24px; height: 24px; border-radius: 50%; display: block; flex: none; background: conic-gradient(from 200deg, #6366f1, #10b981, #f59e0b, #ec4899, #6366f1); }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-brand-title { font: 800 17px/1 Manrope, Inter, sans-serif !important; letter-spacing: -.02em !important; color: var(--st-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }

html[data-bs-theme] body.page-shell .sd-pills { display: flex; align-items: center; gap: 2px; flex: none; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 99px; padding: 4px; margin-left: 6px; }
html[data-bs-theme] body.page-shell .sd-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; font: 600 14px/1.3 Manrope, Inter, sans-serif; color: var(--st-muted); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
html[data-bs-theme] body.page-shell .sd-pill:hover { color: var(--st-text); }
html[data-bs-theme] body.page-shell .sd-pill.is-on { background: var(--st-ink); color: #fff; }
html[data-bs-theme] body.page-shell .sd-pill__ns { display: inline-flex; gap: 3px; }
html[data-bs-theme] body.page-shell .sd-pill__n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 99px; font: 800 10.5px/1 Manrope, Inter, sans-serif; color: #fff; background: var(--st-red); }
html[data-bs-theme] body.page-shell .sd-pill__n--green { background: var(--st-green); }
html[data-bs-theme] body.page-shell .sd-pill__n--orange { background: var(--st-orange); }
html[data-bs-theme] body.page-shell .sd-pill__n--pink { background: var(--st-pink); }
html[data-bs-theme] body.page-shell .sd-pill.is-on .sd-pill__n { box-shadow: 0 0 0 1.5px var(--st-ink); }

/* board picker: the old "Home ›" crumb becomes a single select pill */
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb { margin: 0 !important; min-width: 0; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__track { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 0 !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__link,
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__current,
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb .ustk-crumb-sep { display: none !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav #boardSelect.ustk-top-breadcrumb__board-select,
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__board-select {
  height: 40px; max-width: 260px !important; min-width: 0; padding: 0 36px 0 16px !important; border-radius: 99px !important;
  border: 1px solid var(--st-line) !important; background-color: var(--st-surface) !important; box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f695e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important; background-position: right 13px center !important; background-size: 14px !important;
  font: 600 14px Manrope, Inter, sans-serif !important; color: var(--st-text) !important; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
}
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__board-select:hover { border-color: var(--st-line-2) !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__board-select:focus { border-color: var(--st-focus) !important; outline: 0; }

html[data-bs-theme] body.page-shell .ustk-top-nav__actions,
html[data-bs-theme] body.page-shell .ustk-top-nav__actions-scroll { gap: 8px !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-nav-badge-wrap { position: relative; display: inline-flex; }
html[data-bs-theme] body.page-shell .ustk-top-nav .sd-icon-btn.btn { width: 38px !important; height: 38px !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--st-line) !important; background: var(--st-surface) !important; color: var(--st-muted) !important; display: grid !important; place-items: center; box-shadow: none !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .sd-icon-btn.btn:hover { color: var(--st-text) !important; border-color: var(--st-line-2) !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .sd-icon-btn svg { width: 17px; height: 17px; }
html[data-bs-theme] body.page-shell .ustk-top-nav .sd-icon-btn__dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--st-red); color: #fff; font: 800 10px/1 Manrope, Inter, sans-serif; align-items: center; justify-content: center; border: 2px solid var(--st-bg); pointer-events: none; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn {
  display: inline-flex !important; align-items: center; gap: 8px; height: 40px; padding: 3px 12px 3px 3px !important; border-radius: 99px !important;
  border: 1px solid var(--st-line) !important; background: var(--st-surface) !important; color: var(--st-text) !important; box-shadow: none !important; font: 700 14px Manrope, Inter, sans-serif !important;
}
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn:hover,
html[data-bs-theme] body.page-shell .ustk-top-nav .show > .ustk-profile-trigger.btn { border-color: var(--st-line-2) !important; background: var(--st-surface) !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger .ustk-avatar--sm { width: 32px !important; height: 32px !important; border-radius: 50% !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-avatar--initial { background: #e9e1d1 !important; color: #4b4232 !important; font-weight: 800; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger__text { color: var(--st-text) !important; font-weight: 700 !important; }
html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger__chev { color: var(--st-faint) !important; width: 16px; height: 16px; }
html[data-bs-theme] body.page-shell .ustk-nav-tracking__btn { height: 40px; border-radius: 99px; border: 1px solid #bfe9d6; background: #e7f8f1; color: #047857; font: 700 13px Manrope, Inter, sans-serif; padding: 0 14px 0 12px; }
html[data-bs-theme] body.page-shell .ustk-nav-tracking__btn:hover { background: #d9f3e8; border-color: #9fdcc1; }
html[data-bs-theme] body.page-shell .ustk-nav-tracking__dot { background: var(--st-green); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }

/* profile menu */
html[data-bs-theme] body.page-shell .ustk-profile-menu.dropdown-menu { min-width: 240px; }
html[data-bs-theme] body.page-shell .ustk-profile-menu .dropdown-item svg,
html[data-bs-theme] body.page-shell .ustk-profile-menu .dropdown-item svg * { stroke: currentColor !important; fill: none !important; }
html[data-bs-theme] body.page-shell .ustk-profile-menu .dropdown-item svg { color: var(--st-faint); }
html[data-bs-theme] body.page-shell .ustk-profile-menu .dropdown-item.text-danger svg { color: var(--st-red); }
html[data-bs-theme] body.page-shell .ustk-profile-menu__name { font-weight: 800; }

@media (max-width: 767.98px) {
  html[data-bs-theme] body.page-shell .ustk-top-nav.navbar { padding: 8px 0 !important; }
  html[data-bs-theme] body.page-shell .ustk-top-nav__inner { flex-wrap: wrap !important; gap: 8px !important; min-height: 0; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .navbar-brand { order: 1; margin-right: auto !important; }
  html[data-bs-theme] body.page-shell .ustk-top-nav__actions { order: 2; }
  html[data-bs-theme] body.page-shell .sd-pills { order: 3; margin-left: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html[data-bs-theme] body.page-shell .sd-pills::-webkit-scrollbar { display: none; }
  html[data-bs-theme] body.page-shell .sd-pill { padding: 6px 12px; font-size: 13.5px; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb { order: 4; flex: 1 1 100% !important; width: 100%; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-top-breadcrumb__board-select { max-width: none !important; width: 100%; height: 38px; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .sd-icon-btn.btn { width: 36px !important; height: 36px !important; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn { padding: 2px !important; height: 38px; }
  html[data-bs-theme] body.page-shell .ustk-top-nav .ustk-profile-trigger__chev { display: none; }
  html[data-bs-theme] body.page-shell .ustk-top-nav__actions-scroll { max-width: none; padding: 0 !important; overflow: visible; }
}

/* ================= Buttons ================= */
html[data-bs-theme] body.page-shell .btn { font-family: Manrope, Inter, sans-serif; font-weight: 700; letter-spacing: -.005em; }
html[data-bs-theme] body.page-shell :not(.btn-group):not(.input-group) > .btn:is(.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark, .btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-success, .btn-outline-dark) { border-radius: 99px; }
html[data-bs-theme] body.page-shell .btn-primary { --bs-btn-bg: #1d1b17; --bs-btn-border-color: #1d1b17; --bs-btn-color: #fff; --bs-btn-hover-bg: #000; --bs-btn-hover-border-color: #000; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #000; --bs-btn-active-border-color: #000; --bs-btn-disabled-bg: #1d1b17; --bs-btn-disabled-border-color: #1d1b17; background: var(--bs-btn-bg) !important; border-color: var(--bs-btn-border-color) !important; color: #fff !important; box-shadow: none !important; background-image: none !important; }
html[data-bs-theme] body.page-shell .btn-primary:hover { background: #000 !important; }
html[data-bs-theme] body.page-shell .btn-outline-primary { --bs-btn-color: #1d1b17; --bs-btn-border-color: #ddd6c8; --bs-btn-hover-bg: #f4f1ea; --bs-btn-hover-color: #1d1b17; --bs-btn-hover-border-color: #ddd6c8; --bs-btn-active-bg: #1d1b17; --bs-btn-active-color: #fff; background: var(--st-surface) !important; color: var(--st-text) !important; border-color: var(--st-line-2) !important; box-shadow: none !important; }
html[data-bs-theme] body.page-shell .btn-outline-primary:hover { background: var(--st-surface-2) !important; }
html[data-bs-theme] body.page-shell .btn-outline-primary.active,
html[data-bs-theme] body.page-shell .btn-check:checked + .btn-outline-primary { background: var(--st-ink) !important; color: #fff !important; border-color: var(--st-ink) !important; }
html[data-bs-theme] body.page-shell .btn-secondary,
html[data-bs-theme] body.page-shell .btn-light { --bs-btn-bg: #f4f1ea; --bs-btn-border-color: #e9e4da; --bs-btn-color: #1d1b17; --bs-btn-hover-bg: #ece7dc; --bs-btn-hover-border-color: #ddd6c8; --bs-btn-hover-color: #1d1b17; --bs-btn-active-bg: #e4ddcf; --bs-btn-active-color: #1d1b17; }
html[data-bs-theme] body.page-shell .btn-outline-secondary { --bs-btn-color: #6f695e; --bs-btn-border-color: #ddd6c8; --bs-btn-hover-bg: #f4f1ea; --bs-btn-hover-color: #1d1b17; --bs-btn-hover-border-color: #ddd6c8; --bs-btn-active-bg: #1d1b17; --bs-btn-active-color: #fff; --bs-btn-active-border-color: #1d1b17; }
html[data-bs-theme] body.page-shell .btn-danger { --bs-btn-bg: #e5484d; --bs-btn-border-color: #e5484d; --bs-btn-hover-bg: #d23c41; --bs-btn-hover-border-color: #d23c41; }
html[data-bs-theme] body.page-shell .btn-outline-danger { --bs-btn-color: #b42318; --bs-btn-border-color: #f3c4c5; --bs-btn-hover-bg: #fde7e7; --bs-btn-hover-color: #b42318; --bs-btn-hover-border-color: #f3c4c5; --bs-btn-active-bg: #b42318; --bs-btn-active-color: #fff; }
html[data-bs-theme] body.page-shell .btn-success { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #0ea271; --bs-btn-hover-border-color: #0ea271; }
html[data-bs-theme] body.page-shell .btn-link { color: var(--st-text); font-weight: 700; text-underline-offset: 3px; }
html[data-bs-theme] body.page-shell .btn:focus-visible { box-shadow: 0 0 0 3px rgba(91,91,214,.25) !important; }

/* ================= Forms ================= */
html[data-bs-theme] body.page-shell .form-control,
html[data-bs-theme] body.page-shell .form-select {
  border: 1px solid var(--st-line-2); border-radius: 12px; background-color: var(--st-surface); color: var(--st-text);
  font-family: Manrope, Inter, sans-serif; font-weight: 500; box-shadow: none;
}
html[data-bs-theme] body.page-shell .form-control::placeholder { color: var(--st-faint); }
html[data-bs-theme] body.page-shell .form-control:focus,
html[data-bs-theme] body.page-shell .form-select:focus { border-color: var(--st-focus); box-shadow: 0 0 0 3px rgba(91,91,214,.15); }
html[data-bs-theme] body.page-shell .form-control-sm,
html[data-bs-theme] body.page-shell .form-select-sm { border-radius: 10px; }
html[data-bs-theme] body.page-shell .input-group > .form-control,
html[data-bs-theme] body.page-shell .input-group > .form-select { border-radius: 0; }
html[data-bs-theme] body.page-shell .input-group > :first-child { border-top-left-radius: 12px !important; border-bottom-left-radius: 12px !important; }
html[data-bs-theme] body.page-shell .input-group > :last-child { border-top-right-radius: 12px !important; border-bottom-right-radius: 12px !important; }
html[data-bs-theme] body.page-shell .input-group-text { background: var(--st-surface-2); border-color: var(--st-line-2); color: var(--st-muted); font-weight: 600; }
html[data-bs-theme] body.page-shell .form-label,
html[data-bs-theme] body.page-shell label.form-label { font-weight: 700; font-size: 13px; color: var(--st-muted); margin-bottom: 6px; }
html[data-bs-theme] body.page-shell .form-text { color: var(--st-faint); }
html[data-bs-theme] body.page-shell .form-check-input { border-color: var(--st-line-2); }
html[data-bs-theme] body.page-shell .form-check-input:checked { background-color: var(--st-ink); border-color: var(--st-ink); }
html[data-bs-theme] body.page-shell .form-check-input:focus { box-shadow: 0 0 0 3px rgba(91,91,214,.15); border-color: var(--st-focus); }
html[data-bs-theme] body.page-shell .form-switch .form-check-input:not(:checked):not(:focus) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ddd6c8'/%3e%3c/svg%3e"); }

/* ================= Modals ================= */
html[data-bs-theme] body.page-shell .modal-backdrop { --bs-backdrop-bg: #1d1b17; }
html[data-bs-theme] body.page-shell .modal-backdrop.show { --bs-backdrop-opacity: .32; opacity: .32; }
html[data-bs-theme] body.page-shell .modal-content {
  border: 1px solid var(--st-line) !important; border-radius: 22px !important; background: var(--st-surface) !important;
  box-shadow: 0 30px 80px rgba(30,20,0,.22) !important; color: var(--st-text); font-family: Manrope, Inter, sans-serif;
}
html[data-bs-theme] body.page-shell .modal-header { border-bottom: 1px solid var(--st-line) !important; padding: 18px 22px !important; background: transparent !important; border-radius: 22px 22px 0 0; }
html[data-bs-theme] body.page-shell .modal-title { font: 800 19px/1.25 Manrope, Inter, sans-serif !important; letter-spacing: -.02em; color: var(--st-text) !important; }
html[data-bs-theme] body.page-shell .modal-footer { border-top: 1px solid var(--st-line) !important; padding: 14px 22px !important; gap: 8px; background: transparent !important; border-radius: 0 0 22px 22px; }
html[data-bs-theme] body.page-shell .modal-footer > * { margin: 0; }
html[data-bs-theme] body.page-shell .modal .btn-close { width: 32px; height: 32px; padding: 0; border-radius: 50%; background-color: var(--st-surface-2); background-size: 11px; opacity: .75; box-shadow: none; }
html[data-bs-theme] body.page-shell .modal .btn-close:hover { opacity: 1; }
html[data-bs-theme] body.page-shell .modal-header .btn-close { margin: -4px -6px -4px auto; }

/* ================= Menus, cards, tables, tabs ================= */
html[data-bs-theme] body.page-shell .dropdown-menu {
  --bs-dropdown-link-active-bg: #1d1b17; --bs-dropdown-link-hover-bg: #f4f1ea; --bs-dropdown-link-color: #1d1b17;
  border: 1px solid var(--st-line); border-radius: 16px; box-shadow: var(--st-shadow-lg); padding: 6px; font-family: Manrope, Inter, sans-serif; background: var(--st-surface);
}
html[data-bs-theme] body.page-shell .dropdown-item { border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
html[data-bs-theme] body.page-shell .dropdown-divider { border-color: var(--st-line); margin: 6px 4px; }
html[data-bs-theme] body.page-shell .card { --bs-card-border-color: #e9e4da; --bs-card-border-radius: 20px; --bs-card-inner-border-radius: 19px; --bs-card-cap-bg: transparent; border-color: var(--st-line); border-radius: 20px; box-shadow: var(--st-shadow); background: var(--st-surface); }
html[data-bs-theme] body.page-shell .card-header { font-weight: 800; letter-spacing: -.01em; border-bottom-color: var(--st-line); }
html[data-bs-theme] body.page-shell .card-footer { border-top-color: var(--st-line); }
html[data-bs-theme] body.page-shell .table { --bs-table-border-color: #e9e4da; --bs-table-bg: transparent; --bs-table-hover-bg: #faf8f4; --bs-table-striped-bg: #faf8f4; --bs-table-color: #1d1b17; }
html[data-bs-theme] body.page-shell .table > thead th,
html[data-bs-theme] body.page-shell .table > thead td { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--st-faint); border-bottom-color: var(--st-line); background: transparent; }
html[data-bs-theme] body.page-shell .nav-tabs { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
html[data-bs-theme] body.page-shell .nav-tabs .nav-link { border: 1px solid var(--st-line); border-radius: 99px; background: var(--st-surface); color: var(--st-muted); font-weight: 600; padding: 6px 14px; margin: 0; }
html[data-bs-theme] body.page-shell .nav-tabs .nav-link:hover { color: var(--st-text); border-color: var(--st-line-2); }
html[data-bs-theme] body.page-shell .nav-tabs .nav-link.active { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
html[data-bs-theme] body.page-shell .nav-pills { --bs-nav-pills-link-active-bg: #1d1b17; --bs-nav-pills-border-radius: 99px; }
html[data-bs-theme] body.page-shell .nav-pills .nav-link { font-weight: 600; color: var(--st-muted); }
html[data-bs-theme] body.page-shell .nav-pills .nav-link.active { color: #fff; }
html[data-bs-theme] body.page-shell .list-group { --bs-list-group-border-color: #e9e4da; --bs-list-group-border-radius: 16px; --bs-list-group-active-bg: #1d1b17; --bs-list-group-active-border-color: #1d1b17; }
html[data-bs-theme] body.page-shell .alert { border-radius: 16px; }
html[data-bs-theme] body.page-shell .badge { font-weight: 700; }
html[data-bs-theme] body.page-shell .pagination { --bs-pagination-border-radius: 99px; --bs-pagination-active-bg: #1d1b17; --bs-pagination-active-border-color: #1d1b17; --bs-pagination-color: #1d1b17; --bs-pagination-border-color: #e9e4da; gap: 4px; }
html[data-bs-theme] body.page-shell .pagination .page-link { border-radius: 99px !important; }
html[data-bs-theme] body.page-shell .progress { background: var(--st-surface-2); border-radius: 99px; }
html[data-bs-theme] body.page-shell .text-muted { color: var(--st-muted) !important; }

/* ================= Page headers (board/partials/page_header) ================= */
html[data-bs-theme] body.page-shell .ustk-dashboard-header { padding: 34px 0 22px !important; margin: 0 0 6px !important; border: 0 !important; background: none !important; box-shadow: none !important; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
html[data-bs-theme] body.page-shell .ustk-dashboard-header__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--st-surface) !important; border: 1px solid var(--st-line) !important; color: var(--st-text) !important; display: grid; place-items: center; box-shadow: var(--st-shadow); flex: none; }
html[data-bs-theme] body.page-shell .ustk-dashboard-header__icon svg { width: 22px; height: 22px; }
html[data-bs-theme] body.page-shell .ustk-dashboard-header__title { font: 800 clamp(28px, 3.4vw, 40px)/1.05 Manrope, Inter, sans-serif !important; letter-spacing: -.035em !important; color: var(--st-text) !important; margin: 0 !important; }
html[data-bs-theme] body.page-shell .ustk-dashboard-header__subtitle { color: var(--st-muted) !important; font-size: 15px; margin: 8px 0 0 !important; }

/* ================= Old theme variables, warmed up ================= */
html[data-bs-theme="light"], html[data-bs-theme] {
  --ustk-bg: #f6f4ef; --ustk-surface: #ffffff; --ustk-surface-2: #f4f1ea; --ustk-surface-3: #ece7dc;
  --ustk-border: rgba(40,30,10,.10); --ustk-border-strong: rgba(40,30,10,.17);
  --ustk-text: #1d1b17; --ustk-muted: rgba(29,27,23,.6); --ustk-muted-2: rgba(29,27,23,.74);
  --ustk-primary: #1d1b17; --ustk-primary-600: #000000; --ustk-success: #10b981; --ustk-danger: #e5484d;
  --ustk-shadow-sm: 0 1px 2px rgba(40,30,10,.05); --ustk-shadow-md: 0 18px 40px rgba(40,30,10,.10);
}
html[data-bs-theme] body.page-shell .user-badge { background: var(--st-surface-2) !important; border-color: var(--st-line) !important; color: var(--st-text) !important; }

/* ================= Task modal (styles injected by board-task.js) ================= */
html body.page-shell #unitEditModal.ustk-task-edit .modal-content { border-color: var(--st-line) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__top,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-section-head,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-more-menu hr { border-color: var(--st-line) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__crumb { color: var(--st-muted) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__crumb b,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-who,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-cmt .comment-body,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor h1,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor h2,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor strong { color: var(--st-text) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__dot,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-group > h3,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-prop > svg,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-hours small,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-when,
html body.page-shell #unitEditModal.ustk-task-edit .description-original__label,
html body.page-shell #unitEditModal.ustk-task-edit #commentInput:empty:before { color: var(--st-faint) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-mini-label,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-section-head h6,
html body.page-shell #unitEditModal.ustk-task-edit .description-original__text,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-icon-btn { color: var(--st-muted) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-icon-btn:hover,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-menu-item:hover { background: var(--st-surface-2) !important; color: var(--st-text) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .task-modal-tabs-wrapper { background: var(--st-surface-2) !important; border-color: var(--st-line) !important; border-radius: 99px !important; }
html body.page-shell #unitEditModal.ustk-task-edit .task-modal-tabs .nav-link { color: var(--st-muted) !important; font-weight: 700 !important; border-radius: 99px !important; border: 0 !important; background: transparent !important; }
html body.page-shell #unitEditModal.ustk-task-edit .task-modal-tabs .nav-link:hover { color: var(--st-text) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .task-modal-tabs .nav-link.active { background: var(--st-ink) !important; color: #fff !important; box-shadow: none !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-status-btn.is-idle { background: var(--st-surface-2) !important; color: var(--st-muted) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-status-icon--confirm { color: #7c5cf0 !important; }
html body.page-shell #unitEditModal.ustk-task-edit .description-display,
html body.page-shell #unitEditModal.ustk-task-edit .description-original,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-cmt,
html body.page-shell #unitEditModal.ustk-task-edit #askClientForm,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor pre,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-recent-changes__item { background: #faf8f4 !important; border-color: var(--st-line) !important; color: var(--st-text) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .description-display { border-radius: 14px !important; }
html body.page-shell #unitEditModal.ustk-task-edit .description-editor-wrapper,
html body.page-shell #unitEditModal.ustk-task-edit #commentForm,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-box,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-prop + .ustk-prop,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor td,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-ghost-icon { border-color: var(--st-line) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-box { border-radius: 16px !important; }
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor th,
html body.page-shell #unitEditModal.ustk-task-edit #descriptionEditor code,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-count { background: var(--st-surface-2) !important; border-color: var(--st-line) !important; color: var(--st-muted) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__rail { background: #faf8f4 !important; border-left-color: var(--st-line) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__rail .form-select,
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__rail .form-control { background-color: var(--st-surface) !important; border-color: var(--st-line-2) !important; color: var(--st-text) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__rail .btn-outline-secondary { color: var(--st-text) !important; background: transparent !important; border: 0 !important; font-weight: 700 !important; padding-left: 0 !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__rail .btn-outline-secondary:hover { text-decoration: underline; text-underline-offset: 3px; }
html body.page-shell #unitEditModal.ustk-task-edit #attachmentsInput { background: var(--st-surface-2) !important; border-color: var(--st-line) !important; color: var(--st-muted) !important; }
html body.page-shell #unitEditModal.ustk-task-edit #cancelCommentReplyBtn,
html body.page-shell #unitEditModal.ustk-task-edit #commentInput .mention { color: var(--st-focus) !important; }
html body.page-shell #unitEditModal.ustk-task-edit .ustk-task-edit__title,
html body.page-shell #unitEditModal.ustk-task-edit #unitTitle { font-family: Manrope, Inter, sans-serif !important; font-weight: 800 !important; letter-spacing: -.025em !important; }
/* Admin/PM badge: same yellow as the dashboard note badge */
html[data-bs-theme] body.page-shell .ustk-admin-pm-badge.badge { background: #f5b301 !important; color: #2b2100 !important; border: 0 !important; font: 800 10.5px/1.5 Manrope, Inter, sans-serif !important; letter-spacing: .02em; padding: 1px 7px !important; text-transform: none; }
/* Reports page tabs: active tab is solid ink, like the dashboard tabs */
html[data-bs-theme] body.page-shell .ustk-reports-tab { border-radius: 99px !important; font-weight: 600; }
html[data-bs-theme] body.page-shell .ustk-reports-tab--active { background: var(--st-ink) !important; color: #fff !important; box-shadow: none !important; }
html[data-bs-theme] body.page-shell .ustk-reports-tab--active .badge:not([class*="bg-"]) { background: rgba(255,255,255,.18) !important; color: #fff !important; }
@media (max-width: 767.98px) {
  html[data-bs-theme] body.page-shell .ustk-top-nav #boardSelect.ustk-top-breadcrumb__board-select { max-width: none !important; width: 100% !important; }
}

/* Selected toggle buttons (btn-check / .active) are always solid ink with white text */
html[data-bs-theme] body.page-shell .btn-check:checked + .btn:is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark),
html[data-bs-theme] body.page-shell .btn:is(.btn-outline-primary, .btn-outline-secondary, .btn-outline-dark).active { background: var(--st-ink) !important; border-color: var(--st-ink) !important; color: #fff !important; }
