/* Time & Task Core — UI Prototype
   Visual language distilled from Octohub Canvas (@octohub98/ui-lib + theme-lib):
   indigo-500 #5B5BD6 primary, oh-* component classes, oi oi-* icon set, Poppins + Octohub Arabic type.
   This file approximates Canvas tokens for demo purposes — swap for the real theme-lib on implementation.
   Bilingual: every user-facing string is authored twice via [data-lang="ar"|"en"] siblings,
   toggled purely in CSS off the <html dir> attribute — see the "Bilingual toggle" block below. */

@import url('assets/icons/oh-icons.css');

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Medium-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Octohub Arabic';
  src: url('assets/fonts/arabic/Octohub-Arabic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Octohub Arabic';
  src: url('assets/fonts/arabic/Octohub-Arabic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Indigo ramp — anchored on the real Canvas token: indigo.500 = #5B5BD6 */
  --oh-color-indigo-50: #f1f0fd;
  --oh-color-indigo-100: #e1dffb;
  --oh-color-indigo-200: #c7c3f6;
  --oh-color-indigo-300: #aaa3ef;
  --oh-color-indigo-400: #8880e6;
  --oh-color-indigo-500: #5b5bd6;
  --oh-color-indigo-600: #4a48c4;
  --oh-color-indigo-700: #3d3aa8;
  --oh-color-indigo-800: #302d84;
  --oh-color-indigo-900: #211f5c;

  --oh-primary: var(--oh-color-indigo-500);
  --oh-primary-hover: var(--oh-color-indigo-600);
  --oh-primary-soft: var(--oh-color-indigo-50);
  --oh-text-on-primary: #ffffff;

  --oh-success: #16a34a;
  --oh-success-soft: #e7f8ee;
  --oh-danger: #e11d48;
  --oh-danger-soft: #fde8ec;
  --oh-warning: #d97706;
  --oh-warning-soft: #fdf1de;
  --oh-info: #0284c7;
  --oh-info-soft: #e4f4fb;
  --oh-secondary: #64748b;
  --oh-secondary-soft: #eef0f4;

  /* Extra role tokens for this product's task/topic taxonomy (kept on the same soft/solid pattern) */
  --oh-violet: #7c3aed;
  --oh-violet-soft: #f1eafe;
  --oh-teal: #0d9488;
  --oh-teal-soft: #e2f6f4;

  --oh-bg-base: #f4f5fb;
  --oh-bg-raised: #ffffff;
  --oh-bg-elevated: #fbfbfe;
  --oh-border-default: #e6e7f2;
  --oh-border-strong: #cfd1e6;
  --oh-hairline: 1px solid var(--oh-border-default);

  --oh-text-default: #1e2032;
  --oh-text-muted: #666a80;
  --oh-text-subtle: #9295a8;
  --oh-text-disabled: #b4b6c6;

  --oh-aside-bg: linear-gradient(180deg, #2c2789 0%, #423ec2 55%, #342fac 100%);
  --oh-aside-text: #d9d7fa;
  --oh-aside-text-muted: #b3affa;
  --oh-aside-text-active: #ffffff;
  --oh-aside-section-label: #a29cf0;
  --oh-aside-border: rgba(255, 255, 255, 0.16);
  --oh-aside-bg-hover: rgba(255, 255, 255, 0.09);
  --oh-aside-bg-active: rgba(255, 255, 255, 0.16);
  --oh-aside-accent: #ffffff;

  --oh-radius-sm: 6px;
  --oh-radius-md: 10px;
  --oh-card-radius: 14px;
  --oh-radius-full: 999px;

  --oh-elevation-1: 0 1px 2px rgba(30, 26, 90, 0.06);
  --oh-elevation-2: 0 10px 30px rgba(30, 26, 90, 0.08);
  --oh-elevation-3: 0 20px 45px rgba(30, 26, 90, 0.14);

  --oh-font-size-xs: 12px;
  --oh-font-size-sm: 13px;
  --oh-font-size-base: 14.5px;
  --oh-font-size-md: 16px;
  --oh-font-size-lg: 19px;
  --oh-font-size-xl: 24px;
  --oh-font-size-2xl: 30px;
  --oh-font-mono: 'Consolas', 'SFMono-Regular', monospace;

  --oh-icon-sm: 15px;
  --oh-icon-md: 19px;

  --oh-layout-topbar-height: 66px;
  --oh-layout-aside-width: 264px;
  --oh-layout-aside-width-collapsed: 76px;

  --oh-z-base: 0;
  --oh-z-raised: 1;
  --oh-z-sticky: 30;
  --oh-z-overlay: 60;
  --oh-z-modal: 70;

  --oh-space-1: 4px;
  --oh-space-2: 8px;
  --oh-space-3: 12px;
  --oh-space-4: 16px;
  --oh-space-5: 24px;
  --oh-space-6: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oh-bg-base);
  color: var(--oh-text-default);
  font-family: 'Octohub Arabic', 'Poppins', sans-serif;
  font-size: var(--oh-font-size-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html[dir='ltr'] body { font-family: 'Poppins', 'Octohub Arabic', sans-serif; }
.oh-mono, .oh-nums { font-family: 'Poppins', var(--oh-font-mono); direction: ltr; unicode-bidi: isolate; }

h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ============ Bilingual toggle ============ */
/* Every bilingual string is authored as two siblings; only the one matching <html dir> renders. */
html[dir='rtl'] [data-lang='en'] { display: none !important; }
html[dir='ltr'] [data-lang='ar'] { display: none !important; }
[data-lang] { unicode-bidi: isolate; }
/* Directional glyphs (breadcrumb separators, prev/next arrows) authored RTL-first; mirrored in LTR. */
.oh-flip-rtl { display: inline-block; }
html[dir='ltr'] .oh-flip-rtl { transform: scaleX(-1); }

/* ============ Layout shell ============ */
.oh-shell { display: flex; flex-direction: column; min-height: 100vh; }
.oh-topbar {
  position: sticky; top: 0; z-index: var(--oh-z-sticky);
  height: var(--oh-layout-topbar-height);
  background: var(--oh-bg-raised);
  box-shadow: var(--oh-elevation-2);
  display: flex; align-items: center; justify-content: space-between; gap: var(--oh-space-4);
  padding-inline: var(--oh-space-4);
}
.oh-topbar__lead { display: flex; align-items: center; gap: var(--oh-space-3); min-width: 0; }
.oh-topbar__menu-btn {
  width: 38px; height: 38px; border-radius: var(--oh-radius-full); border: none;
  background: transparent; color: var(--oh-text-muted); display: none;
  align-items: center; justify-content: center; cursor: pointer; font-size: var(--oh-icon-md);
}
.oh-topbar__menu-btn:hover { background: var(--oh-bg-elevated); }
.oh-topbar__brand-logo { height: 22px; width: auto; }
.oh-topbar__divider { width: 1px; height: 28px; background: var(--oh-border-default); flex-shrink: 0; }
.oh-topbar__app { display: flex; align-items: center; gap: var(--oh-space-2); min-width: 0; }
.oh-topbar__app-mark {
  width: 34px; height: 34px; border-radius: var(--oh-card-radius); background: var(--oh-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: var(--oh-icon-sm);
}
.oh-topbar__app-mark img { width: 22px; height: 22px; object-fit: contain; }
.oh-topbar__app-name { font-size: var(--oh-font-size-md); font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-topbar__app-subtitle { font-size: var(--oh-font-size-xs); color: var(--oh-text-muted); display: block; white-space: nowrap; }
.oh-topbar__user { display: flex; align-items: center; gap: var(--oh-space-3); }
.oh-topbar__tenant {
  display: inline-flex; align-items: center; gap: var(--oh-space-2); height: 36px; padding-inline: var(--oh-space-3);
  border: var(--oh-hairline); border-radius: var(--oh-radius-full); background: var(--oh-bg-raised); cursor: pointer;
  font-size: var(--oh-font-size-sm); color: var(--oh-text-default);
}
.oh-topbar__tenant i:first-child { color: var(--oh-primary); }
.oh-topbar__tenant i:last-child { color: var(--oh-text-subtle); font-size: var(--oh-font-size-xs); }
.oh-lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: var(--oh-space-3);
  border: var(--oh-hairline); border-radius: var(--oh-radius-full); background: var(--oh-bg-raised); cursor: pointer;
  font-size: var(--oh-font-size-sm); font-weight: 700; color: var(--oh-primary);
}
.oh-lang-toggle:hover { background: var(--oh-primary-soft); }
.oh-notif { position: relative; }
.oh-notif__btn {
  width: 38px; height: 38px; border-radius: var(--oh-radius-full); border: none; background: transparent;
  color: var(--oh-text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: var(--oh-icon-md); position: relative;
}
.oh-notif__btn:hover { background: var(--oh-bg-elevated); }
.oh-notif__badge {
  position: absolute; top: 3px; inset-inline-end: 3px; min-width: 16px; height: 16px; border-radius: var(--oh-radius-full);
  background: var(--oh-danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; padding: 0 3px; line-height: 1; border: 2px solid var(--oh-bg-raised);
}
.oh-notif__panel {
  position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 360px; max-width: 88vw;
  background: var(--oh-bg-raised); border-radius: var(--oh-card-radius); box-shadow: var(--oh-elevation-3);
  border: var(--oh-hairline); z-index: var(--oh-z-modal); display: none; overflow: hidden;
}
.oh-notif__panel.is-open { display: block; }
.oh-notif__head { padding: 14px 16px; border-bottom: var(--oh-hairline); display: flex; align-items: center; justify-content: space-between; }
.oh-notif__head strong { font-size: var(--oh-font-size-sm); }
.oh-notif__list { max-height: 340px; overflow-y: auto; }
.oh-notif__item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: var(--oh-hairline); text-decoration: none; color: inherit; align-items: flex-start; }
.oh-notif__item:last-child { border-bottom: none; }
.oh-notif__item:hover { background: var(--oh-bg-elevated); }
.oh-notif__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--oh-danger-soft); color: var(--oh-danger); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: var(--oh-font-size-sm); }
.oh-notif__foot { padding: 10px 16px; text-align: center; border-top: var(--oh-hairline); }

.oh-avatar {
  width: 36px; height: 36px; border-radius: var(--oh-radius-full); background: var(--oh-primary-soft); color: var(--oh-primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--oh-font-size-sm); flex-shrink: 0;
}
.oh-avatar--lg { width: 52px; height: 52px; font-size: var(--oh-font-size-md); }
.oh-avatar--xl { width: 64px; height: 64px; font-size: var(--oh-font-size-lg); }

.oh-body { display: flex; flex: 1; min-height: 0; }
.oh-aside {
  width: var(--oh-layout-aside-width); flex-shrink: 0; background: var(--oh-aside-bg); color: var(--oh-aside-text);
  display: flex; flex-direction: column; position: sticky; top: var(--oh-layout-topbar-height);
  height: calc(100vh - var(--oh-layout-topbar-height)); box-shadow: var(--oh-elevation-2); overflow-y: auto;
}
.oh-aside__nav { flex: 1; padding-block: var(--oh-space-3); }
.oh-aside__section-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--oh-aside-section-label); padding: var(--oh-space-4) var(--oh-space-4) var(--oh-space-2);
  display: block;
}
.oh-aside__item {
  display: flex; align-items: center; gap: var(--oh-space-3); padding: 9px var(--oh-space-3); margin-inline: var(--oh-space-2);
  border-radius: var(--oh-radius-md); text-decoration: none; color: var(--oh-aside-text); font-size: var(--oh-font-size-sm);
  cursor: pointer; position: relative; transition: background-color .12s ease, color .12s ease;
}
.oh-aside__item i { color: var(--oh-aside-text-muted); font-size: var(--oh-icon-sm); flex-shrink: 0; transition: color .12s ease; }
.oh-aside__item:hover { background: var(--oh-aside-bg-hover); color: var(--oh-aside-text-active); }
.oh-aside__item:hover i { color: var(--oh-aside-text-active); }
.oh-aside__item--active { background: var(--oh-aside-bg-active); color: var(--oh-aside-text-active); font-weight: 600; }
.oh-aside__item--active i { color: var(--oh-aside-text-active); }
.oh-aside__item--active::before {
  content: ''; position: absolute; inset-block: var(--oh-space-1); inset-inline-start: -8px; width: 3px; border-radius: 2px; background: #fff;
}
.oh-aside__footer { border-top: 1px solid var(--oh-aside-border); padding: var(--oh-space-4); font-size: var(--oh-font-size-xs); color: var(--oh-aside-text-muted); }

.oh-main { flex: 1; min-width: 0; }
.oh-page { padding: var(--oh-space-5); max-width: 1360px; margin-inline: auto; }

.oh-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--oh-space-4); flex-wrap: wrap; margin-bottom: var(--oh-space-5); }
.oh-breadcrumb { display: flex; align-items: center; gap: var(--oh-space-1); font-size: var(--oh-font-size-xs); color: var(--oh-text-subtle); margin-bottom: var(--oh-space-1); }
.oh-breadcrumb i { font-size: 10px; }
.oh-page-header h1 { font-size: var(--oh-font-size-xl); font-weight: 700; display: flex; align-items: center; gap: var(--oh-space-2); }
.oh-page-header p { color: var(--oh-text-muted); font-size: var(--oh-font-size-sm); margin-top: 4px; }
.oh-page-header__actions { display: flex; gap: var(--oh-space-2); flex-wrap: wrap; }

/* ============ Utilities ============ */
.oh-flex { display: flex; }
.oh-inline-flex { display: inline-flex; }
.oh-flex-column { flex-direction: column; }
.oh-flex-wrap { flex-wrap: wrap; }
.oh-flex-1 { flex: 1 1 auto; }
.oh-flex-shrink-0 { flex-shrink: 0; }
.oh-align-items-center { align-items: center; }
.oh-align-items-start { align-items: flex-start; }
.oh-align-items-end { align-items: flex-end; }
.oh-justify-content-between { justify-content: space-between; }
.oh-justify-content-end { justify-content: flex-end; }
.oh-justify-content-center { justify-content: center; }
.oh-min-w-0 { min-width: 0; }
.oh-w-full { width: 100%; }
.oh-h-full { height: 100%; }
.oh-text-center { text-align: center; }
.oh-text-right { text-align: end; }
.oh-text-left { text-align: start; }
.oh-block { display: block; }

.oh-gap-1 { gap: var(--oh-space-1); } .oh-gap-2 { gap: var(--oh-space-2); } .oh-gap-3 { gap: var(--oh-space-3); }
.oh-gap-4 { gap: var(--oh-space-4); } .oh-gap-5 { gap: var(--oh-space-5); } .oh-gap-6 { gap: var(--oh-space-6); }

.oh-m-0 { margin: 0; }
.oh-mt-1 { margin-top: var(--oh-space-1); } .oh-mt-2 { margin-top: var(--oh-space-2); } .oh-mt-3 { margin-top: var(--oh-space-3); }
.oh-mt-4 { margin-top: var(--oh-space-4); } .oh-mt-5 { margin-top: var(--oh-space-5); } .oh-mt-6 { margin-top: var(--oh-space-6); }
.oh-mb-0 { margin-bottom: 0; } .oh-mb-1 { margin-bottom: var(--oh-space-1); } .oh-mb-2 { margin-bottom: var(--oh-space-2); }
.oh-mb-3 { margin-bottom: var(--oh-space-3); } .oh-mb-4 { margin-bottom: var(--oh-space-4); } .oh-mb-5 { margin-bottom: var(--oh-space-5); }

.oh-p-0 { padding: 0; } .oh-p-2 { padding: var(--oh-space-2); } .oh-p-3 { padding: var(--oh-space-3); } .oh-p-4 { padding: var(--oh-space-4); }
.oh-px-2 { padding-inline: var(--oh-space-2); } .oh-px-3 { padding-inline: var(--oh-space-3); } .oh-px-4 { padding-inline: var(--oh-space-4); }
.oh-py-1 { padding-block: var(--oh-space-1); } .oh-py-2 { padding-block: var(--oh-space-2); } .oh-py-3 { padding-block: var(--oh-space-3); } .oh-py-4 { padding-block: var(--oh-space-4); }

.oh-text-xs { font-size: var(--oh-font-size-xs); } .oh-text-sm { font-size: var(--oh-font-size-sm); }
.oh-text-base { font-size: var(--oh-font-size-base); } .oh-text-md { font-size: var(--oh-font-size-md); }
.oh-text-lg { font-size: var(--oh-font-size-lg); } .oh-text-xl { font-size: var(--oh-font-size-xl); } .oh-text-2xl { font-size: var(--oh-font-size-2xl); }
.oh-font-medium { font-weight: 500; } .oh-font-semibold { font-weight: 600; } .oh-font-bold { font-weight: 700; }
.oh-text-muted { color: var(--oh-text-muted); } .oh-text-subtle { color: var(--oh-text-subtle); }
.oh-text-primary { color: var(--oh-primary); } .oh-text-success { color: var(--oh-success); }
.oh-text-danger { color: var(--oh-danger); } .oh-text-warning { color: var(--oh-warning); }
.oh-text-violet { color: var(--oh-violet); } .oh-text-teal { color: var(--oh-teal); }
.oh-line-height-3 { line-height: 1.7; }
.oh-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.oh-row { display: flex; flex-wrap: wrap; margin-inline: -10px; }
.oh-row > [class*='oh-col'] { padding-inline: 10px; box-sizing: border-box; }
.oh-col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 640px) {
  .oh-col-6-sm { flex: 0 0 50%; max-width: 50%; }
  .oh-col-4-sm { flex: 0 0 33.333%; max-width: 33.333%; }
}
@media (min-width: 960px) {
  .oh-col-3-md { flex: 0 0 25%; max-width: 25%; }
  .oh-col-4-md { flex: 0 0 33.333%; max-width: 33.333%; }
  .oh-col-6-md { flex: 0 0 50%; max-width: 50%; }
  .oh-col-8-md { flex: 0 0 66.666%; max-width: 66.666%; }
}
@media (min-width: 1200px) {
  .oh-col-3-lg { flex: 0 0 25%; max-width: 25%; }
  .oh-col-4-lg { flex: 0 0 33.333%; max-width: 33.333%; }
  .oh-col-5-lg { flex: 0 0 41.666%; max-width: 41.666%; }
  .oh-col-7-lg { flex: 0 0 58.333%; max-width: 58.333%; }
  .oh-col-8-lg { flex: 0 0 66.666%; max-width: 66.666%; }
  .oh-col-6-lg { flex: 0 0 50%; max-width: 50%; }
  .oh-col-9-lg { flex: 0 0 75%; max-width: 75%; }
}

/* ============ Card ============ */
.oh-card {
  background: var(--oh-bg-raised); border-radius: var(--oh-card-radius); box-shadow: var(--oh-elevation-1);
  border: var(--oh-hairline); padding: var(--oh-space-5);
}
.oh-card--flat { box-shadow: none; background: var(--oh-bg-elevated); }
.oh-card__title { font-size: var(--oh-font-size-md); font-weight: 700; margin-bottom: 2px; }
.oh-card__subtitle { font-size: var(--oh-font-size-sm); color: var(--oh-text-muted); margin-bottom: var(--oh-space-3); }
.oh-card__bleed { margin: calc(var(--oh-space-5) * -1); margin-bottom: var(--oh-space-4); border-bottom: var(--oh-hairline); }

/* ============ Buttons ============ */
.oh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--oh-space-2);
  height: 40px; padding-inline: var(--oh-space-4); border-radius: var(--oh-radius-md); border: none;
  background: var(--oh-primary); color: #fff; font-size: var(--oh-font-size-sm); font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background-color .12s ease, box-shadow .12s ease; white-space: nowrap;
}
.oh-btn:hover { background: var(--oh-primary-hover); }
.oh-btn i { font-size: var(--oh-icon-sm); }
.oh-btn--sm { height: 33px; padding-inline: var(--oh-space-3); font-size: var(--oh-font-size-xs); }
.oh-btn--lg { height: 46px; padding-inline: var(--oh-space-5); font-size: var(--oh-font-size-md); }
.oh-btn--secondary { background: var(--oh-secondary-soft); color: var(--oh-text-default); }
.oh-btn--secondary:hover { background: var(--oh-border-default); }
.oh-btn--success { background: var(--oh-success); } .oh-btn--success:hover { filter: brightness(0.92); }
.oh-btn--danger { background: var(--oh-danger); } .oh-btn--danger:hover { filter: brightness(0.92); }
.oh-btn--outlined { background: transparent; border: 1.5px solid var(--oh-primary); color: var(--oh-primary); }
.oh-btn--outlined:hover { background: var(--oh-primary-soft); }
.oh-btn--outlined.oh-btn--secondary { border-color: var(--oh-border-strong); color: var(--oh-text-muted); }
.oh-btn--text { background: transparent; color: var(--oh-text-muted); }
.oh-btn--text:hover { background: var(--oh-bg-elevated); color: var(--oh-text-default); }
.oh-btn--icon-only { width: 40px; padding-inline: 0; }
.oh-btn--icon-only.oh-btn--sm { width: 33px; }
.oh-btn--rounded { border-radius: var(--oh-radius-full); }
.oh-btn[disabled], .oh-btn--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.oh-action-btn {
  width: 32px; height: 32px; border-radius: var(--oh-radius-md); border: none; background: transparent;
  color: var(--oh-text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.oh-action-btn:hover { background: var(--oh-bg-elevated); color: var(--oh-primary); }
.oh-action-btn--danger:hover { color: var(--oh-danger); }

/* ============ Tags / badges ============ */
.oh-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--oh-radius-sm);
  font-size: var(--oh-font-size-xs); font-weight: 600; background: var(--oh-secondary-soft); color: var(--oh-text-muted);
  line-height: 1.4;
}
.oh-tag i { font-size: 11px; }
.oh-tag--rounded { border-radius: var(--oh-radius-full); }
.oh-tag--primary { background: var(--oh-primary-soft); color: var(--oh-primary-hover); }
.oh-tag--success { background: var(--oh-success-soft); color: var(--oh-success); }
.oh-tag--danger { background: var(--oh-danger-soft); color: var(--oh-danger); }
.oh-tag--warning { background: var(--oh-warning-soft); color: var(--oh-warning); }
.oh-tag--info { background: var(--oh-info-soft); color: var(--oh-info); }
.oh-tag--violet { background: var(--oh-violet-soft); color: var(--oh-violet); }
.oh-tag--teal { background: var(--oh-teal-soft); color: var(--oh-teal); }
.oh-tag--secondary { background: var(--oh-secondary-soft); color: var(--oh-secondary); }
.oh-tag--solid.oh-tag--primary { background: var(--oh-primary); color: #fff; }
.oh-tag--solid.oh-tag--success { background: var(--oh-success); color: #fff; }
.oh-tag--solid.oh-tag--danger { background: var(--oh-danger); color: #fff; }
.oh-tag--solid.oh-tag--warning { background: var(--oh-warning); color: #fff; }
.oh-tag--solid.oh-tag--info { background: var(--oh-info); color: #fff; }
.oh-tag--solid.oh-tag--violet { background: var(--oh-violet); color: #fff; }
.oh-tag--solid.oh-tag--teal { background: var(--oh-teal); color: #fff; }
.oh-tag--dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; }
.oh-tag--counter { border-radius: var(--oh-radius-full); min-width: 20px; height: 20px; justify-content: center; padding: 0 6px; }

/* ============ KPI / Stats tiles ============ */
.oh-stats { display: grid; gap: var(--oh-space-4); grid-template-columns: repeat(4, 1fr); }
.oh-stats--3 { grid-template-columns: repeat(3, 1fr); }
.oh-stats--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .oh-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .oh-stats { grid-template-columns: 1fr; } }

.oh-stat-tile {
  background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius);
  padding: var(--oh-space-4); display: flex; align-items: center; gap: var(--oh-space-3); box-shadow: var(--oh-elevation-1);
}
.oh-stat-tile__icon {
  width: 46px; height: 46px; border-radius: var(--oh-radius-md); display: flex; align-items: center; justify-content: center;
  font-size: var(--oh-icon-md); flex-shrink: 0; background: var(--oh-primary-soft); color: var(--oh-primary);
}
.oh-stat-tile--success .oh-stat-tile__icon { background: var(--oh-success-soft); color: var(--oh-success); }
.oh-stat-tile--warning .oh-stat-tile__icon { background: var(--oh-warning-soft); color: var(--oh-warning); }
.oh-stat-tile--info .oh-stat-tile__icon { background: var(--oh-info-soft); color: var(--oh-info); }
.oh-stat-tile--danger .oh-stat-tile__icon { background: var(--oh-danger-soft); color: var(--oh-danger); }
.oh-stat-tile--violet .oh-stat-tile__icon { background: var(--oh-violet-soft); color: var(--oh-violet); }
.oh-stat-tile__value { font-size: var(--oh-font-size-xl); font-weight: 700; line-height: 1.2; }
.oh-stat-tile__label { font-size: var(--oh-font-size-xs); color: var(--oh-text-muted); margin-top: 2px; }

.oh-stat-solid {
  border-radius: var(--oh-card-radius); padding: var(--oh-space-4); color: #fff; box-shadow: var(--oh-elevation-2);
  display: flex; flex-direction: column; gap: var(--oh-space-2); min-height: 108px; justify-content: space-between;
}
.oh-stat-solid--indigo { background: linear-gradient(135deg, #6a63e0, #423ec2); }
.oh-stat-solid--emerald { background: linear-gradient(135deg, #22b57a, #0d8f5e); }
.oh-stat-solid--rose { background: linear-gradient(135deg, #f3486a, #c81e46); }
.oh-stat-solid--amber { background: linear-gradient(135deg, #f5a742, #d97706); }
.oh-stat-solid i { font-size: var(--oh-icon-md); opacity: 0.9; }
.oh-stat-solid__value { font-size: var(--oh-font-size-xl); font-weight: 700; }
.oh-stat-solid__label { font-size: var(--oh-font-size-xs); opacity: 0.85; }

.oh-progress-stat { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); padding: var(--oh-space-4); }
.oh-progress-bar { height: 8px; border-radius: var(--oh-radius-full); background: var(--oh-border-default); overflow: hidden; margin-top: var(--oh-space-2); }
.oh-progress-bar > span { display: block; height: 100%; background: var(--oh-primary); border-radius: var(--oh-radius-full); }
.oh-progress-bar--success > span { background: var(--oh-success); }
.oh-progress-bar--warning > span { background: var(--oh-warning); }
.oh-progress-bar--danger > span { background: var(--oh-danger); }

/* ============ Table ============ */
.oh-table-box { border: var(--oh-hairline); border-radius: var(--oh-radius-md); overflow: hidden auto; }
.oh-table { width: 100%; border-collapse: collapse; font-size: var(--oh-font-size-sm); }
.oh-table th {
  text-align: start; font-size: var(--oh-font-size-xs); text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--oh-text-subtle); font-weight: 700; padding: var(--oh-space-3) var(--oh-space-3); background: var(--oh-bg-elevated);
  border-bottom: var(--oh-hairline); white-space: nowrap;
}
.oh-table th i { font-size: 11px; margin-inline-end: 4px; }
.oh-table td { padding: var(--oh-space-3); border-bottom: var(--oh-hairline); vertical-align: middle; }
.oh-table tbody tr:last-child td { border-bottom: none; }
.oh-table--striped tbody tr:nth-child(even) { background: var(--oh-bg-elevated); }
.oh-table tbody tr.is-overdue { background: var(--oh-danger-soft); }
.oh-table tbody tr:hover { background: var(--oh-primary-soft); }
.oh-table__empty { text-align: center; padding: var(--oh-space-6); color: var(--oh-text-subtle); }
.oh-table--sm td, .oh-table--sm th { padding: 8px var(--oh-space-3); }

/* ============ Forms ============ */
.oh-field { display: flex; flex-direction: column; gap: 6px; }
.oh-field-label { font-size: var(--oh-font-size-sm); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.oh-field-label i { color: var(--oh-text-muted); font-size: var(--oh-font-size-sm); }
.oh-field-hint { font-size: var(--oh-font-size-xs); color: var(--oh-text-muted); }
.oh-input, .oh-select, textarea.oh-input {
  height: 42px; border-radius: var(--oh-radius-md); border: 1.5px solid var(--oh-border-default);
  padding-inline: var(--oh-space-3); background: var(--oh-bg-raised); font-size: var(--oh-font-size-sm); width: 100%; color: var(--oh-text-default);
}
textarea.oh-input { height: auto; padding-block: var(--oh-space-3); resize: vertical; }
.oh-input:focus, .oh-select:focus { outline: none; border-color: var(--oh-primary); box-shadow: 0 0 0 3px var(--oh-primary-soft); }
.oh-input-group { position: relative; display: flex; align-items: center; }
.oh-input-group__icon { position: absolute; inset-inline-start: 13px; color: var(--oh-text-subtle); font-size: var(--oh-font-size-sm); }
.oh-input-group .oh-input { padding-inline-start: 36px; }
.oh-input-group__affix { position: absolute; inset-inline-end: 13px; color: var(--oh-text-subtle); font-size: var(--oh-font-size-sm); }
.oh-checkbox { width: 18px; height: 18px; accent-color: var(--oh-primary); cursor: pointer; }

.oh-segmented { display: inline-flex; background: var(--oh-bg-elevated); border-radius: var(--oh-radius-md); padding: 3px; border: var(--oh-hairline); }
.oh-segmented button {
  border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: var(--oh-font-size-xs); font-weight: 600;
  color: var(--oh-text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.oh-segmented button.is-active { background: var(--oh-bg-raised); color: var(--oh-primary); box-shadow: var(--oh-elevation-1); }

/* ============ Tabs ============ */
.oh-tabs__nav { display: flex; gap: var(--oh-space-2); border-bottom: var(--oh-hairline); margin-bottom: var(--oh-space-4); flex-wrap: wrap; }
.oh-tabs__btn {
  border: none; background: transparent; padding: 10px 6px; font-size: var(--oh-font-size-sm); font-weight: 600; color: var(--oh-text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px;
}
.oh-tabs__btn.is-active { color: var(--oh-primary); border-color: var(--oh-primary); }
.oh-tab-panel { display: none; }
.oh-tab-panel.is-active { display: block; }

/* ============ Stepper (wizard) ============ */
.oh-stepper { display: flex; align-items: center; gap: 0; margin-bottom: var(--oh-space-5); overflow-x: auto; }
.oh-stepper__step { display: flex; align-items: center; gap: var(--oh-space-2); flex-shrink: 0; }
.oh-stepper__circle {
  width: 34px; height: 34px; border-radius: 50%; background: var(--oh-bg-elevated); border: 1.5px solid var(--oh-border-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--oh-font-size-sm); color: var(--oh-text-subtle); flex-shrink: 0;
}
.oh-stepper__step.is-done .oh-stepper__circle { background: var(--oh-success); border-color: var(--oh-success); color: #fff; }
.oh-stepper__step.is-active .oh-stepper__circle { background: var(--oh-primary); border-color: var(--oh-primary); color: #fff; }
.oh-stepper__label { font-size: var(--oh-font-size-xs); font-weight: 600; color: var(--oh-text-subtle); white-space: nowrap; }
.oh-stepper__step.is-active .oh-stepper__label, .oh-stepper__step.is-done .oh-stepper__label { color: var(--oh-text-default); }
.oh-stepper__line { width: 42px; height: 2px; background: var(--oh-border-strong); margin-inline: var(--oh-space-2); flex-shrink: 0; }
.oh-stepper__step.is-done + .oh-stepper__line { background: var(--oh-success); }

/* ============ Alert ============ */
.oh-alert { display: flex; align-items: flex-start; gap: var(--oh-space-3); padding: var(--oh-space-3) var(--oh-space-4); border-radius: var(--oh-radius-md); font-size: var(--oh-font-size-sm); }
.oh-alert--info { background: var(--oh-info-soft); color: #075985; }
.oh-alert--warning { background: var(--oh-warning-soft); color: #92400e; }
.oh-alert--danger { background: var(--oh-danger-soft); color: #9f1239; }
.oh-alert--success { background: var(--oh-success-soft); color: #166534; }
.oh-alert i { font-size: var(--oh-icon-sm); margin-top: 2px; }

/* Open-question flag: mirrors the client's own "open question" callouts */
.oh-flag-open {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--oh-warning);
  background: var(--oh-warning-soft); padding: 3px 9px; border-radius: var(--oh-radius-full);
}

/* ============ Drawer / Modal ============ */
.oh-overlay { position: fixed; inset: 0; background: rgba(20, 18, 60, 0.35); z-index: var(--oh-z-overlay); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.oh-overlay.is-open { opacity: 1; pointer-events: auto; }
:root { --oh-drawer-hidden: translateX(105%); }
html[dir='rtl'] { --oh-drawer-hidden: translateX(-105%); }
.oh-drawer {
  position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: min(420px, 92vw); background: var(--oh-bg-raised);
  z-index: var(--oh-z-modal); box-shadow: var(--oh-elevation-3); transform: var(--oh-drawer-hidden); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.oh-drawer--wide { width: min(560px, 94vw); }
.oh-drawer.is-open { transform: translateX(0); }
.oh-drawer--modal { top: 50%; left: 50%; right: auto; height: auto; max-height: 90vh; width: min(580px, 94vw); border-radius: var(--oh-card-radius); opacity: 0; pointer-events: none; transform: translate(-50%, -46%); transition: opacity .18s ease, transform .18s ease; }
.oh-drawer--modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.oh-drawer__header { padding: var(--oh-space-4) var(--oh-space-5); border-bottom: var(--oh-hairline); display: flex; align-items: center; justify-content: space-between; }
.oh-drawer__body { padding: var(--oh-space-5); overflow-y: auto; flex: 1; }

/* Small centered confirm dialog — used for a required confirm step before a state change (e.g. completing a task by drag). */
.oh-confirm-modal { position: fixed; inset: 0; z-index: var(--oh-z-modal); background: rgba(20, 18, 60, 0.35); display: flex; align-items: center; justify-content: center; padding: var(--oh-space-4); opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.oh-confirm-modal.is-open { opacity: 1; pointer-events: auto; }
.oh-confirm-modal__card { background: var(--oh-bg-raised); border-radius: var(--oh-card-radius); box-shadow: var(--oh-elevation-3); width: min(380px, 100%); padding: var(--oh-space-5); text-align: center; transform: translateY(8px); transition: transform .15s ease; }
.oh-confirm-modal.is-open .oh-confirm-modal__card { transform: translateY(0); }
.oh-confirm-modal__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--oh-success-soft); color: var(--oh-success); display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto var(--oh-space-3); }

/* ============ Time-tracking floating widget (persists across pages via localStorage) ============ */
.tt-widget {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: var(--oh-z-modal);
  display: flex; align-items: center; gap: 12px; background: var(--oh-text-default); color: #fff;
  border-radius: var(--oh-radius-full); padding: 8px 10px; box-shadow: var(--oh-elevation-3);
  max-width: min(320px, calc(100vw - 36px));
}
.tt-widget[hidden] { display: none; }
.tt-widget__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oh-danger); flex-shrink: 0; margin-inline-start: 6px; animation: tt-pulse 1.4s ease-in-out infinite; }
@keyframes tt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tt-widget__info { flex: 1; min-width: 0; }
.tt-widget__title { display: block; font-size: 11px; color: #fff; text-decoration: none; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-widget__title:hover { text-decoration: underline; }
.tt-widget__time { display: block; font-family: 'Poppins', var(--oh-font-mono); font-weight: 700; font-size: 15px; direction: ltr; unicode-bidi: isolate; }
.tt-widget__stop { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 15px; }
.tt-widget__stop:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 960px) { .tt-widget { bottom: 12px; inset-inline-end: 12px; } }

/* A card/row currently being timed */
.is-tracking { outline: 2px solid var(--oh-danger); outline-offset: 1px; }

/* ============ Misc ============ */
.oh-divider { height: 1px; background: var(--oh-border-default); border: none; margin: 0; }
.oh-list-plain { list-style: none; margin: 0; padding: 0; }
.oh-motif-dot-grid {
  background-image: radial-gradient(var(--oh-border-default) 1px, transparent 1px);
  background-size: 16px 16px;
}
.oh-hierarchy-tree { list-style: none; margin: 0; padding: 0; }
.oh-hierarchy-tree ul { list-style: none; padding-inline-start: var(--oh-space-5); margin-top: var(--oh-space-2); border-inline-start: 2px dashed var(--oh-border-default); }
.oh-hierarchy-node { display: flex; align-items: center; gap: var(--oh-space-2); padding: var(--oh-space-2) var(--oh-space-3); border-radius: var(--oh-radius-md); margin-bottom: var(--oh-space-2); }
.oh-hierarchy-node:hover { background: var(--oh-bg-elevated); }

/* Responsive shell */
@media (max-width: 960px) {
  .oh-aside { position: fixed; top: var(--oh-layout-topbar-height); inset-inline-start: 0; z-index: var(--oh-z-modal);
    transform: translateX(-105%); transition: transform .2s ease; }
  html[dir='rtl'] .oh-aside { transform: translateX(105%); }
  .oh-aside.is-open { transform: translateX(0); }
  .oh-topbar__menu-btn { display: inline-flex; }
  .oh-topbar__tenant span { display: none; }
  .oh-page { padding: var(--oh-space-4); }
}

/* Print (agenda / minutes document) */
@media print {
  .oh-topbar, .oh-aside, .oh-page-header__actions, .oh-no-print, .oh-notif, .oh-overlay, .oh-drawer { display: none !important; }
  .oh-body { display: block !important; }
  .oh-page { padding: 0; max-width: none; }
  body { background: #fff; }
  .oh-card { box-shadow: none !important; border-color: #999 !important; }
  .doc-sheet { border: 1px solid #999 !important; padding: 18px !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  @page { margin: 14mm; }
}

/* New-meeting popup: Google Meet */
.nm-meet-add { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; border: 1.5px dashed var(--oh-border-default); background: var(--oh-bg-elevated); border-radius: var(--oh-radius-md); padding: 10px 12px; cursor: pointer; font: inherit; color: var(--oh-text-default); }
.nm-meet-add:hover { border-color: #1a73e8; background: #f1f6fe; }
.nm-meet-add small { display: block; color: var(--oh-text-muted); font-size: 11.5px; margin-top: 2px; }
.nm-meet-add[hidden], .nm-meet-card[hidden] { display: none; }
.nm-meet-logo { width: 34px; height: 34px; border-radius: 9px; background: #1a73e8; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.nm-meet-card { display: flex; align-items: center; gap: 10px; border: 1.5px solid #c6dafc; background: #f1f6fe; border-radius: var(--oh-radius-md); padding: 10px 12px; }
.nm-meet-link { color: #1a73e8; font-size: 13px; font-weight: 600; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-meet-link:hover { text-decoration: underline; }
.nm-summary { background: var(--oh-bg-elevated); border: var(--oh-hairline); border-radius: var(--oh-radius-md); padding: 14px 16px; text-align: start; }
.nm-summary__title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.nm-summary__row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--oh-text-muted); margin-top: 4px; }
.nm-guest { gap: 5px; }
.nm-guest__x { border: none; background: none; padding: 0; margin-inline-start: 2px; color: inherit; opacity: .6; cursor: pointer; display: inline-flex; font-size: 10px; }
.nm-guest__x:hover { opacity: 1; }
.nm-summary__emails { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.nm-summary__emails span { font-size: 11.5px; background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: 12px; padding: 1px 8px; color: var(--oh-text-muted); }

/* Meeting detail card (Google Calendar style) */
.mc-card { position: fixed; z-index: 85; width: min(440px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; background: #f0f4fa; border-radius: 22px; box-shadow: 0 12px 40px rgba(20, 18, 60, .28); font-size: 14px; color: var(--oh-text-default); }
.mc-top { display: flex; justify-content: flex-end; gap: 4px; padding: 10px 12px 0; }
.mc-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: #444746; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; text-decoration: none; flex-shrink: 0; }
.mc-icon-btn:hover { background: rgba(20, 18, 60, .08); }
.mc-body { padding: 2px 16px 12px; }
.mc-row { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.mc-lead { width: 24px; flex-shrink: 0; display: flex; justify-content: center; color: #444746; font-size: 18px; padding-top: 2px; }
.mc-swatch { width: 15px; height: 15px; border-radius: 4px; background: var(--oh-violet); margin-top: 6px; }
.mc-swatch.is-past { background: var(--oh-info); }
.mc-title { font-size: 22px; line-height: 1.3; font-weight: 500; }
.mc-sub { font-size: 12.5px; color: #5f6368; margin-top: 2px; }
.mc-strong { font-weight: 500; }
.mc-pill { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #747775; background: transparent; border-radius: 20px; padding: 8px 18px; color: #0b57d0; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.mc-pill:hover { background: rgba(11, 87, 208, .07); }
.mc-meet { width: 24px; height: 18px; border-radius: 4px; background: #fbbc04; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mc-join { color: #0b57d0; font-weight: 500; text-decoration: none; }
.mc-join:hover { text-decoration: underline; }
.mc-link { color: #0b57d0; text-decoration: none; }
.mc-link:hover { text-decoration: underline; }
.mc-guests { padding-inline-start: 38px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.mc-guest { display: flex; align-items: center; gap: 12px; }
.mc-guest__av { position: relative; flex-shrink: 0; }
.mc-guest__name { font-size: 13.5px; }
.mc-av { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mc-av--ext { background: #dde3ea; color: #5f6368; }
.mc-rsvp { position: absolute; bottom: -2px; inset-inline-end: -3px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #f0f4fa; display: flex; align-items: center; justify-content: center; font-size: 8px; color: #fff; }
.mc-rsvp--yes { background: #188038; }
.mc-rsvp--no { background: #d93025; }
.mc-rsvp--maybe { background: #5f6368; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e1e7f0; padding: 12px 16px; border-radius: 0 0 22px 22px; font-size: 13.5px; }
.mc-rsvp-btn { border: 1px solid #747775; background: transparent; border-radius: 18px; padding: 6px 18px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--oh-text-default); }
.mc-rsvp-btn:hover { background: rgba(20, 18, 60, .06); }
.mc-rsvp-btn.is-active { background: #c2e7ff; border-color: #c2e7ff; color: #001d35; }
.mc-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); background: #1f1d3d; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 95; opacity: 0; transition: all .2s; }
.mc-toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* Shared avatar for people across screens */
.ttc-av { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ttc-av--none { background: var(--oh-border-default); color: var(--oh-text-muted); }

/* Prototype notes: business-rule explanations, hidden unless the reviewer turns them on */
html:not(.show-notes) .ttc-note, html:not(.show-notes) [data-note] { display: none !important; }
html.show-notes .ttc-note, html.show-notes [data-note] { outline: 1.5px dashed #d97706; outline-offset: 3px; border-radius: 6px; }
.ttc-notes-toggle { gap: 6px; }
html.show-notes .ttc-notes-toggle { background: #fff7e6; border-color: #d97706; color: #b45309; }
.ttc-notes-banner { display: flex; align-items: center; gap: 12px; background: #fff7e6; color: #7c4a03; border-radius: var(--oh-radius-md); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
@media (max-width: 700px) { .ttc-notes-toggle > span { display: none !important; } }

/* New meeting: template preview + conflict warning */
.nm-template-preview { background: var(--oh-bg-elevated); border: var(--oh-hairline); border-radius: var(--oh-radius-md); padding: 10px 12px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nm-template-preview > div { width: 100%; }
.nm-tpl-topic { font-size: 12px; background: #fff; border: var(--oh-hairline); border-radius: 12px; padding: 2px 9px; }
.nm-conflict { display: flex; gap: 8px; align-items: flex-start; background: var(--oh-warning-soft); color: #92400e; border-radius: var(--oh-radius-md); padding: 8px 12px; font-size: 12.5px; }
.nm-conflict[hidden] { display: none; }

/* ============ Work items: board / list / timeline / summary / detail (Tasks + Project spaces) ============ */

.ps-head { margin-bottom: var(--oh-space-3); }
.ps-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--oh-space-3); flex-wrap: wrap; margin-top: 6px; }
.ps-head__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ps-head__title h1 { margin: 0; font-size: 22px; }
.ps-space-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.ps-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--oh-border-default); background: var(--oh-bg-raised); color: var(--oh-text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ps-icon-btn:hover { border-color: var(--oh-primary); color: var(--oh-primary); }
.ps-icon-btn--ghost { border-color: transparent; background: transparent; width: 26px; height: 26px; }
.ps-tabs { margin-bottom: var(--oh-space-3); }
.ps-tabs .oh-tabs__btn { padding-inline: 10px; }

.ps-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--oh-space-4); }
.ps-search { position: relative; width: 220px; }
.ps-search i { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: var(--oh-text-subtle); }
.ps-search input { padding-inline-start: 32px; height: 34px; }
.ps-av { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-av--lg { width: 30px; height: 30px; font-size: 11px; }
.ps-av--none { background: var(--oh-border-default); color: var(--oh-text-muted); }
.ps-av-filter { display: flex; align-items: center; }
.ps-av-filter button { border: 2px solid var(--oh-bg-page, #f6f6fb); border-radius: 50%; padding: 0; background: none; cursor: pointer; margin-inline-start: -6px; transition: transform .1s; }
.ps-av-filter button:first-child { margin-inline-start: 0; }
.ps-av-filter button:hover { transform: translateY(-2px); z-index: 1; }
.ps-av-filter button.is-active { border-color: var(--oh-primary); z-index: 2; }
.ps-av-filter button.is-active .ps-av { box-shadow: 0 0 0 2px #fff inset; }
.ps-filter-wrap { position: relative; }
.ps-filter-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 280px; max-height: 420px; overflow-y: auto; background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); box-shadow: var(--oh-elevation-3); z-index: var(--oh-z-modal); padding: 12px; }
.ps-filter-pop h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--oh-text-subtle); margin: 10px 0 6px; }
.ps-filter-pop h4:first-child { margin-top: 0; }
.ps-filter-pop label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.ps-filter-pop label:hover { background: var(--oh-bg-elevated); }
.ps-badge { background: var(--oh-primary); color: #fff; border-radius: 10px; font-size: 10px; padding: 0 6px; min-width: 18px; text-align: center; }

/* Type / priority / labels / lozenges */
.ps-type { width: 16px; height: 16px; border-radius: 4px; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-prio { font-size: 14px; font-weight: 700; display: inline-flex; }
.ps-label { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--lc); background: var(--lcs); color: var(--oh-text-default); border-radius: 4px; font-size: 11px; line-height: 1.6; padding: 0 6px; max-width: 150px; white-space: nowrap; }
.ps-label > span { overflow: hidden; text-overflow: ellipsis; }
.ps-label__sw { width: 8px; height: 8px; border-radius: 2px; background: var(--lc); flex-shrink: 0; }
.ps-label__x { border: none; background: none; padding: 0; margin-inline-start: 2px; color: var(--oh-text-muted); cursor: pointer; font-size: 10px; display: inline-flex; }
.ps-label__x:hover { color: var(--oh-danger); }
.ps-lozenge { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 3px 8px; border: none; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ps-lozenge--todo { background: #eceef5; color: #44475a; }
.ps-lozenge--progress { background: var(--oh-primary-soft); color: var(--oh-primary); }
.ps-lozenge--done { background: var(--oh-success-soft); color: var(--oh-success); }
.ps-lozenge--lg { font-size: 13px; padding: 7px 12px; }
.ps-lozenge i { font-size: 10px; }
.ps-due { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; border: 1px solid var(--oh-border-default); border-radius: 4px; padding: 0 6px; color: var(--oh-text-muted); }
.ps-due.is-overdue { border-color: var(--oh-danger); color: var(--oh-danger); background: var(--oh-danger-soft); }
.ps-logged { font-size: 11px; color: var(--oh-text-muted); display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.ps-logged.is-running { color: var(--oh-danger); font-weight: 700; }

/* Board */
.ps-board { overflow-x: auto; padding-bottom: 8px; }
.ps-lane-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin: 14px 0 8px; }
.ps-lane-head:first-child { margin-top: 0; }
.ps-cols { display: flex; gap: 12px; align-items: flex-start; }
.ps-col { width: 272px; flex-shrink: 0; background: #eef0fb; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; transition: background .12s, box-shadow .12s; }
.ps-col.is-over { background: #e2e5fb; box-shadow: inset 0 0 0 2px var(--oh-primary); }
.ps-col__head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 8px; font-size: 12px; font-weight: 700; color: var(--oh-text-muted); text-transform: uppercase; letter-spacing: .02em; }
.ps-col__name { cursor: text; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-col__head .ps-icon-btn--ghost { margin-inline-start: auto; opacity: .6; }
.ps-col__head:hover .ps-icon-btn--ghost { opacity: 1; }
.ps-col__name-input { font: inherit; font-size: 12px; font-weight: 700; border: 1.5px solid var(--oh-primary); border-radius: 5px; padding: 2px 6px; width: 150px; background: #fff; }
.ps-count { background: rgba(20,18,60,.07); color: var(--oh-text-muted); border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.ps-col__list { display: flex; flex-direction: column; gap: 6px; min-height: 36px; }
.ps-col__empty { border: 1.5px dashed rgba(20,18,60,.15); border-radius: 8px; padding: 14px 8px; text-align: center; font-size: 12px; color: var(--oh-text-subtle); }
.ps-col__add { margin-top: 6px; border: none; background: transparent; color: var(--oh-text-muted); font: inherit; font-size: 13px; font-weight: 600; text-align: start; padding: 6px 8px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ps-col__add:hover { background: rgba(20,18,60,.06); color: var(--oh-text-default); }
.ps-col--new { background: transparent; padding: 0; width: auto; }
.ps-inline-create { background: #fff; border-radius: 8px; box-shadow: var(--oh-elevation-1); border: 1.5px solid var(--oh-primary); padding: 8px; margin-top: 6px; }
.ps-inline-create textarea, .ps-inline-create input { width: 100%; border: none; outline: none; resize: none; font: inherit; font-size: 13px; background: transparent; }
.ps-inline-create__hint { font-size: 10.5px; color: var(--oh-text-subtle); margin-top: 4px; }
.ps-card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(20,18,60,.12); cursor: pointer; display: flex; flex-direction: column; gap: 7px; border: 1px solid transparent; }
.ps-card:hover { background: #fbfbff; border-color: var(--oh-border-default); }
.ps-card.is-dragging { opacity: .35; }
.ps-card__title { font-size: 13px; line-height: 1.5; color: var(--oh-text-default); word-break: break-word; }
.ps-card__labels { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ps-card__key { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--oh-text-muted); }
.ps-card__key.is-done { text-decoration: line-through; }
.ps-drop-line { height: 3px; border-radius: 2px; background: var(--oh-primary); margin: -1px 2px; }

/* List */
.ps-list { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); overflow-x: auto; }
.ps-list table { width: 100%; border-collapse: collapse; min-width: 880px; }
.ps-list th { text-align: start; font-size: 11.5px; color: var(--oh-text-muted); font-weight: 700; padding: 10px 10px; border-bottom: var(--oh-hairline); white-space: nowrap; background: var(--oh-bg-elevated); cursor: pointer; user-select: none; }
.ps-list th .oi { font-size: 10px; }
.ps-list td { padding: 7px 8px; border-bottom: var(--oh-hairline); font-size: 13px; vertical-align: middle; }
.ps-list tbody tr { cursor: pointer; }
.ps-list tbody tr:hover { background: #fafaff; }
.ps-list .ps-cell-key { white-space: nowrap; color: var(--oh-text-muted); font-weight: 600; font-size: 12px; }
.ps-summary-cell { display: flex; align-items: center; gap: 6px; min-width: 200px; }
.ps-summary-cell .ps-summary-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.ps-summary-cell .ps-icon-btn--ghost { opacity: 0; }
.ps-list tr:hover .ps-summary-cell .ps-icon-btn--ghost { opacity: 1; }
.ps-cell-btn { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 6px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--oh-text-default); white-space: nowrap; }
.ps-cell-btn:hover { border-color: var(--oh-border-default); background: #fff; }
.ps-date-input { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 3px 4px; font: inherit; font-size: 12px; color: var(--oh-text-default); cursor: pointer; }
.ps-date-input:hover, .ps-date-input:focus { border-color: var(--oh-border-default); background: #fff; }
.ps-date-input.is-overdue { color: var(--oh-danger); font-weight: 600; }
.ps-list .ps-label { max-width: 84px; }
.ps-list .ps-date-input { width: 118px; }
.ps-list-create td { padding: 0; }
.ps-list-create button { width: 100%; text-align: start; border: none; background: none; padding: 10px 12px; font: inherit; font-size: 13px; color: var(--oh-text-muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ps-list-create button:hover { background: var(--oh-bg-elevated); color: var(--oh-text-default); }
.ps-list-create__form { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.ps-list-create__form input { flex: 1; }
.ps-inline-rename { font: inherit; font-size: 13px; border: 1.5px solid var(--oh-primary); border-radius: 6px; padding: 3px 8px; width: 100%; min-width: 240px; }

/* Summary */
.ps-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ps-kpi { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.ps-kpi__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--oh-bg-elevated); color: var(--oh-text-muted); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ps-kpi__value { font-size: 16px; font-weight: 700; }
.ps-kpi__sub { font-size: 12px; color: var(--oh-text-muted); }
.ps-sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ps-sum-card { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); padding: 18px; min-width: 0; }
.ps-sum-card h3 { margin: 0 0 2px; font-size: 15px; }
.ps-sum-card > p { margin: 0 0 14px; font-size: 12px; color: var(--oh-text-muted); }
.ps-donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ps-donut circle.seg { cursor: pointer; transition: opacity .12s; }
.ps-donut:hover circle.seg { opacity: .45; }
.ps-donut circle.seg:hover { opacity: 1; }
.ps-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ps-legend__row { display: flex; align-items: center; gap: 8px; }
.ps-legend__sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ps-bar-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 9px; }
.ps-bar-row__label { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-bar { height: 8px; background: var(--oh-bg-elevated); border-radius: 4px; overflow: hidden; }
.ps-bar > span { display: block; height: 100%; background: var(--oh-primary); border-radius: 4px; min-width: 2px; }
.ps-bar-row__val { text-align: end; font-variant-numeric: tabular-nums; color: var(--oh-text-muted); font-size: 12px; }
.ps-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.ps-activity li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; }
.ps-activity time { display: block; font-size: 11px; color: var(--oh-text-subtle); }

/* Timeline */
.ps-tl { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); overflow-x: auto; }
.ps-tl__row { display: flex; border-bottom: var(--oh-hairline); min-height: 38px; }
.ps-tl__row:last-child { border-bottom: none; }
.ps-tl__side { position: sticky; inset-inline-start: 0; z-index: 2; width: 280px; flex-shrink: 0; background: var(--oh-bg-raised); border-inline-end: var(--oh-hairline); display: flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 13px; cursor: pointer; min-width: 0; }
.ps-tl__side span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-tl__grid { display: grid; grid-template-columns: repeat(var(--days), 30px); grid-template-rows: 1fr; flex-shrink: 0; }
.ps-tl__cell { grid-row: 1; border-inline-start: 1px solid #f1f2f8; }
.ps-tl__cell.is-weekend { background: #fafafd; }
.ps-tl__cell.is-today { background: var(--oh-primary-soft); border-inline-start: 2px solid var(--oh-primary); }
.ps-tl__head .ps-tl__cell { font-size: 10.5px; color: var(--oh-text-muted); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.ps-tl__head .ps-tl__cell.is-today { color: var(--oh-primary); }
.ps-tl__head .ps-tl__side { font-weight: 700; font-size: 12px; color: var(--oh-text-muted); cursor: default; }
.ps-tl__bar { grid-row: 1; align-self: center; height: 20px; border-radius: 5px; margin: 0 2px; z-index: 1; cursor: pointer; font-size: 10.5px; color: #fff; font-weight: 700; padding-inline: 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.ps-tl__bar.is-nodue { background: repeating-linear-gradient(45deg, #c8cbe0, #c8cbe0 4px, #dadcec 4px, #dadcec 8px) !important; color: var(--oh-text-muted); }
.ps-tl__bar:hover { filter: brightness(1.08); box-shadow: 0 2px 6px rgba(20,18,60,.25); }

/* Menus / modals */
.ps-menu { position: fixed; z-index: 90; min-width: 190px; max-height: 320px; overflow-y: auto; background: #fff; border: var(--oh-hairline); border-radius: 10px; box-shadow: var(--oh-elevation-3); padding: 5px; }
.ps-menu__item { width: 100%; display: flex; align-items: center; gap: 8px; border: none; background: none; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 6px; cursor: pointer; text-align: start; color: var(--oh-text-default); }
.ps-menu__item:hover { background: var(--oh-bg-elevated); }
.ps-menu__item.is-active { background: var(--oh-primary-soft); color: var(--oh-primary); font-weight: 600; }
.ps-menu__item.is-danger { color: var(--oh-danger); }
.ps-menu__sep { height: 1px; background: var(--oh-border-default); margin: 4px 0; }
.ps-menu__check { margin-inline-start: auto; color: var(--oh-primary); }

.ps-modal { position: fixed; inset: 0; z-index: var(--oh-z-modal); background: rgba(20,18,60,.4); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ps-modal.is-open { opacity: 1; pointer-events: auto; }
.ps-modal__card { background: var(--oh-bg-raised); border-radius: 12px; box-shadow: var(--oh-elevation-3); width: min(640px, 100%); }
.ps-modal__card--wide { width: min(1040px, 100%); }
.ps-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: var(--oh-hairline); }
.ps-modal__crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--oh-text-muted); min-width: 0; }
.ps-modal__body { padding: 18px 22px 22px; }
.ps-modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: var(--oh-hairline); }
.ps-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; }
.ps-title-input { width: 100%; font: inherit; font-size: 21px; font-weight: 700; border: 1.5px solid transparent; border-radius: 8px; padding: 4px 8px; margin-inline-start: -8px; resize: none; overflow: hidden; background: transparent; color: var(--oh-text-default); line-height: 1.4; }
.ps-title-input:hover { background: var(--oh-bg-elevated); }
.ps-title-input:focus { border-color: var(--oh-primary); background: #fff; outline: none; }
.ps-sec-title { font-size: 13px; font-weight: 700; margin: 18px 0 8px; display: flex; align-items: center; gap: 6px; }
.ps-desc { width: 100%; min-height: 110px; font: inherit; font-size: 13.5px; line-height: 1.8; border: 1.5px solid var(--oh-border-default); border-radius: 8px; padding: 10px 12px; resize: vertical; }
.ps-desc:focus { border-color: var(--oh-primary); outline: none; }
.ps-side-box { border: var(--oh-hairline); border-radius: 10px; }
.ps-side-box__head { padding: 10px 14px; font-weight: 700; font-size: 13px; border-bottom: var(--oh-hairline); }
.ps-field-row { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; }
.ps-field-row > label { color: var(--oh-text-muted); font-size: 12.5px; font-weight: 600; }
.ps-field-row .oh-input { height: 32px; font-size: 13px; }
.ps-labels-edit { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ps-labels-edit input { border: 1px dashed var(--oh-border-default); border-radius: 5px; font: inherit; font-size: 12px; padding: 2px 6px; width: 120px; background: transparent; }
.ps-labels-edit input:focus { border-style: solid; border-color: var(--oh-primary); outline: none; background: #fff; }
.ps-timer-box { border: var(--oh-hairline); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.ps-timer-box.is-running { border-color: var(--oh-danger); background: #fff7f8; }
.ps-timer-box__time { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-comment { display: flex; gap: 10px; margin-bottom: 12px; }
.ps-comment__body { flex: 1; background: var(--oh-bg-elevated); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ps-act-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.ps-act-tabs button { border: 1.5px solid var(--oh-border-default); background: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--oh-text-muted); }
.ps-act-tabs button.is-active { background: var(--oh-primary-soft); border-color: var(--oh-primary); color: var(--oh-primary); }
.ps-chip-toggle { border: 1px solid var(--oh-border-default); background: #fff; border-radius: 14px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ps-chip-toggle.is-on { border-color: var(--oh-primary); background: var(--oh-primary-soft); color: var(--oh-primary); font-weight: 600; }
.ps-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: #1f1d3d; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 95; opacity: 0; pointer-events: none; transition: all .2s; display: flex; align-items: center; gap: 10px; }
.ps-toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ps-toast a { color: #b9b9ff; font-weight: 700; }
.ps-view { display: none; }
.ps-view.is-active { display: block; }

@media (max-width: 980px) {
  .ps-detail { grid-template-columns: 1fr; }
  .ps-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-sum-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ps-kpis { grid-template-columns: 1fr; }
  .ps-search { width: 100%; }
  .ps-tl__side { width: 170px; }
}
  .ps-kpi { font: inherit; text-align: start; cursor: pointer; width: 100%; color: inherit; }
.ps-kpi:hover { border-color: var(--oh-primary); }
.ps-proj-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--oh-text-muted); background: var(--oh-bg-elevated); border: 1px solid var(--oh-border-default); border-radius: 4px; padding: 0 6px; line-height: 1.6; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ps-proj-chip__dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.ps-col__hint { font-size: 11px; color: var(--oh-text-subtle); padding: 0 6px 8px; margin-top: -4px; }
.ps-card__cm { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.ps-menu__head { font-size: 11px; font-weight: 700; color: var(--oh-text-subtle); padding: 6px 10px 2px; }
.ps-filter-pop .ps-filter-overdue { font-weight: 600; border-bottom: var(--oh-hairline); border-radius: 0; margin-bottom: 4px; padding-bottom: 8px; }
.dt-source { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--oh-text-muted); background: var(--oh-violet-soft); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.dt-source a { color: var(--oh-violet); font-weight: 600; text-decoration: none; }
.dt-time-actions { margin-top: 6px; }
.dt-manual { background: #fff; border: var(--oh-hairline); border-radius: 8px; padding: 10px; margin-top: 6px; }
.dt-manual .oh-input, .dt-manual .oh-select { height: 32px; font-size: 13px; }
.dt-entries { margin-top: 8px; border-top: var(--oh-hairline); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.dt-entry { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ps-tl__legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px; font-size: 12px; color: var(--oh-text-muted); border-top: var(--oh-hairline); }
.ps-tl__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ps-tl__legend i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
.ps-tl__legend i.is-nodue { background: repeating-linear-gradient(45deg, #c8cbe0, #c8cbe0 3px, #dadcec 3px, #dadcec 6px); }
.ps-meet-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: var(--oh-hairline); color: inherit; text-decoration: none; font-size: 13px; }
.ps-meet-row:hover { color: var(--oh-primary); }
.st-color { width: 28px; height: 28px; border-radius: 8px; border: 3px solid transparent; cursor: pointer; }
.st-color.is-on { border-color: #fff; box-shadow: 0 0 0 2px var(--oh-text-default); }
.ps-quick { display: inline-flex; gap: 4px; background: var(--oh-bg-elevated); border: var(--oh-hairline); border-radius: 10px; padding: 3px; }
.ps-quick button { border: none; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--oh-text-muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ps-quick button.is-active { background: #fff; color: var(--oh-primary); box-shadow: var(--oh-elevation-1); }

/* ============ Time tracking (timer popup, day list, timesheet) ============ */
.te-duration { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--oh-bg-elevated); border: 1.5px dashed var(--oh-border-default); border-radius: var(--oh-radius-md); padding: 10px 14px; font-size: 13px; color: var(--oh-text-muted); }
.te-duration.is-set { border-style: solid; border-color: var(--oh-primary); background: var(--oh-primary-soft); color: var(--oh-text-default); }
.te-duration strong { font-size: 18px; color: var(--oh-primary); font-family: 'Poppins', var(--oh-font-mono); }
.te-billable { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.te-billable__icon, .tt-bill { width: 20px; height: 20px; border-radius: 50%; background: var(--oh-success-soft); color: var(--oh-success); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tt-bill.is-off { background: var(--oh-bg-elevated); color: var(--oh-text-subtle); }
.ttc-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oh-primary); flex-shrink: 0; }
.ttc-mention { color: var(--oh-primary); font-weight: 700; background: var(--oh-primary-soft); border-radius: 4px; padding: 0 3px; }
/* Sub-tasks, links, watchers */
.dt-subs { display: flex; flex-direction: column; gap: 4px; }
.dt-sub { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: var(--oh-hairline); border-radius: 8px; font-size: 13px; }
.dt-sub a { color: inherit; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-sub a:hover { color: var(--oh-primary); }
.dt-link-group { margin-bottom: 8px; }
.dt-link-group__title { font-size: 12px; font-weight: 700; color: var(--oh-text-muted); margin-bottom: 4px; }
.dt-parent { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--oh-text-muted); text-decoration: none; margin-bottom: 4px; }
.dt-parent:hover { color: var(--oh-primary); }
.dt-blocked { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--oh-danger-soft); color: var(--oh-danger); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.dt-blocked a { color: inherit; }
.dt-watch { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--oh-border-default); background: #fff; border-radius: 16px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; color: var(--oh-text-muted); cursor: pointer; }
.dt-watch.is-on { border-color: var(--oh-primary); color: var(--oh-primary); background: var(--oh-primary-soft); }
.dt-watch span { background: rgba(20,18,60,.08); border-radius: 8px; padding: 0 6px; }
.ps-card__parent { font-size: 11px; color: var(--oh-text-subtle); display: flex; align-items: center; gap: 4px; margin-bottom: -4px; }
.ps-blocked { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--oh-danger); background: var(--oh-danger-soft); border-radius: 4px; padding: 0 6px; }
.ps-bill-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--oh-success-soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }

/* ============ Backlog & sprints ============ */
.bl-section { background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); margin-bottom: 14px; overflow: hidden; }
.bl-section.is-active { border-color: #c9c9f3; }
.bl-section--backlog { background: var(--oh-bg-elevated); }
.bl-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.bl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.bl-dates { font-size: 12.5px; color: var(--oh-text-muted); }
.bl-goal { font-size: 12px; color: var(--oh-text-muted); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.bl-pill { min-width: 22px; height: 20px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.bl-pill--todo { background: #eceef5; color: #44475a; }
.bl-pill--progress { background: var(--oh-primary-soft); color: var(--oh-primary); }
.bl-pill--done { background: var(--oh-success-soft); color: var(--oh-success); }
.bl-body { border-top: var(--oh-hairline); min-height: 44px; overflow-x: auto; transition: background .12s; }
.bl-body.is-over { background: var(--oh-primary-soft); box-shadow: inset 0 0 0 2px var(--oh-primary); }
.bl-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; background: var(--oh-bg-raised); }
.bl-table td { padding: 5px 6px; border-bottom: var(--oh-hairline); font-size: 13px; vertical-align: middle; overflow: hidden; }
.bl-table tr:last-child td { border-bottom: none; }
.bl-table tr[data-id] { cursor: pointer; }
.bl-table tr[data-id]:hover { background: #fafaff; }
.bl-table tr.is-dragging { opacity: .4; }
.bl-table tr.is-done .ps-summary-text { color: var(--oh-text-subtle); }
.bl-table .ps-summary-cell { min-width: 0; }
.bl-table .ps-summary-text { max-width: none; }
.bl-grip { color: var(--oh-text-subtle); cursor: grab; text-align: center; }
.bl-empty td { text-align: center; color: var(--oh-text-subtle); font-size: 12.5px; padding: 16px !important; border: 1.5px dashed var(--oh-border-default) !important; }
.bl-create { width: 100%; border: none; border-top: var(--oh-hairline); background: transparent; padding: 10px 14px; font: inherit; font-size: 13px; color: var(--oh-text-muted); text-align: start; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.bl-create:hover { background: var(--oh-bg-raised); color: var(--oh-text-default); }
.sp-warn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; font-size: 13px; font-weight: 600; border-top: var(--oh-hairline); }
.sp-warn span { flex: 1; }
.sp-warn--danger { background: var(--oh-danger-soft); color: var(--oh-danger); }
.sp-warn--warning { background: var(--oh-warning-soft); color: #92400e; }
.sp-warn--info { background: var(--oh-primary-soft); color: var(--oh-primary); font-weight: 500; }
.sp-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: var(--oh-card-radius); padding: 10px 14px; margin-bottom: 10px; font-size: 13px; border: 1.5px solid; }
.sp-strip--danger { background: var(--oh-danger-soft); border-color: var(--oh-danger); color: var(--oh-danger); }
.sp-strip--warning { background: var(--oh-warning-soft); border-color: var(--oh-warning); color: #92400e; }
.sp-strip--info { background: var(--oh-primary-soft); border-color: #c9c9f3; color: var(--oh-primary); }
.sp-strip strong { color: var(--oh-text-default); }
.sp-strip__txt { font-weight: 600; }
.sp-strip__bar { height: 5px; background: rgba(20,18,60,.08); border-radius: 3px; margin-top: 6px; max-width: 360px; overflow: hidden; }
.sp-strip__bar span { display: block; height: 100%; background: var(--oh-success); }
.sp-only { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--oh-text-muted); margin-bottom: 10px; cursor: pointer; }
.sp-complete { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.sp-complete > div { background: var(--oh-bg-elevated); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--oh-text-muted); }
.sp-complete strong { display: block; font-size: 26px; color: var(--oh-text-default); }

/* ============ Test management ============ */
.tst-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tst-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.tst-badge--passed { background: var(--oh-success-soft); color: var(--oh-success); }
.tst-badge--failed { background: var(--oh-danger-soft); color: var(--oh-danger); }
.tst-badge--blocked { background: var(--oh-warning-soft); color: #92400e; }
.tst-badge--not_executed { background: #eceef5; color: #44475a; }
.tst-pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tst-pill { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.tst-pill--passed { background: var(--oh-success-soft); color: var(--oh-success); }
.tst-pill--failed { background: var(--oh-danger-soft); color: var(--oh-danger); }
.tst-pill--blocked { background: var(--oh-warning-soft); color: #92400e; }
.tst-pill--not_executed { background: #eceef5; color: #44475a; }
.tst-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--oh-bg-elevated); }
.tst-bar span { display: block; height: 100%; }
.tst-bar--lg { height: 16px; border-radius: 6px; margin: 6px 0 10px; }
.tst-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tst-kpi--passed .ps-kpi__icon { background: var(--oh-success-soft); color: var(--oh-success); }
.tst-kpi--failed .ps-kpi__icon { background: var(--oh-danger-soft); color: var(--oh-danger); }
.tst-kpi--blocked .ps-kpi__icon { background: var(--oh-warning-soft); color: var(--oh-warning); }
.tst-kpi .ps-kpi__value { font-size: 22px; }
.tst-hrow { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; padding: 6px 0; border-bottom: var(--oh-hairline); }
.tst-hrow:hover { background: #fafaff; }
.tst-hrow__label { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tst-hrow__val { text-align: end; color: var(--oh-text-muted); font-variant-numeric: tabular-nums; }
.tst-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--oh-text-muted); margin-top: 10px; }
.tst-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tst-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tst-table td { vertical-align: middle; }
.tst-steps td { vertical-align: top; font-size: 13px; }
.tst-steps .oh-input { height: 32px; font-size: 13px; }
.tst-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--oh-text-default); text-decoration: none; border: 1px solid var(--oh-border-default); border-radius: 4px; padding: 0 5px 0 3px; white-space: nowrap; }
.tst-link:hover { border-color: var(--oh-primary); color: var(--oh-primary); }
.tst-file { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: var(--oh-bg-elevated); border: var(--oh-hairline); border-radius: 6px; padding: 2px 8px; margin: 2px; }
.tst-seg { display: inline-flex; gap: 3px; }
.tst-seg button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--oh-border-default); background: #fff; color: var(--oh-text-subtle); cursor: pointer; }
.tst-seg .tst-seg__passed.is-on { background: var(--oh-success); border-color: var(--oh-success); color: #fff; }
.tst-seg .tst-seg__failed.is-on { background: var(--oh-danger); border-color: var(--oh-danger); color: #fff; }
.tst-seg .tst-seg__blocked.is-on { background: var(--oh-warning); border-color: var(--oh-warning); color: #fff; }
.tst-result { display: flex; gap: 8px; flex-wrap: wrap; border-radius: 10px; }
.tst-result__btn { flex: 1; min-width: 110px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 10px; border: 1.5px solid var(--oh-border-default); background: #fff; font: inherit; font-weight: 700; font-size: 13px; color: var(--oh-text-muted); cursor: pointer; }
.tst-result__btn--passed.is-on { background: var(--oh-success-soft); border-color: var(--oh-success); color: var(--oh-success); }
.tst-result__btn--failed.is-on { background: var(--oh-danger-soft); border-color: var(--oh-danger); color: var(--oh-danger); }
.tst-result__btn--blocked.is-on { background: var(--oh-warning-soft); border-color: var(--oh-warning); color: #92400e; }
.tst-runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tst-run { text-align: start; font: inherit; color: inherit; background: var(--oh-bg-raised); border: var(--oh-hairline); border-radius: var(--oh-card-radius); padding: 16px; cursor: pointer; }
.tst-run:hover { border-color: var(--oh-primary); box-shadow: var(--oh-elevation-1); }
.tst-pick { max-height: 260px; overflow-y: auto; border: var(--oh-hairline); border-radius: 8px; padding: 4px; }
.tst-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.tst-pick label:hover { background: var(--oh-bg-elevated); }
.tst-pick .tst-badge { margin-inline-start: auto; }
.tst-chip { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font: inherit; font-size: 11px; font-weight: 600; color: var(--oh-text-muted); background: var(--oh-bg-elevated); border: 1px solid var(--oh-border-default); border-radius: 12px; padding: 1px 8px; cursor: pointer; }
.tst-chip:hover { border-color: var(--oh-primary); color: var(--oh-primary); }
.tst-chip__p { color: var(--oh-success); }
.tst-chip__f { color: var(--oh-danger); }
.tst-chip__n { color: #92400e; }
#dt-tests.is-flash { animation: tst-flash 1.5s ease; border-radius: 8px; }
@keyframes tst-flash { 0%, 60% { background: var(--oh-primary-soft); } 100% { background: transparent; } }
@media (max-width: 980px) { .tst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
