/* Hulk Workforce OS design system (blueprint v1.0): tokens, materials and components.
   Loaded after app.css. Changes look only; every page keeps its markup and behaviour. */

:root {
  /* page and surfaces */
  --hk-color-bg: #F5F7FB; --hk-color-bg-plain: #F8FAFC;
  --hk-surface-card: rgba(255,255,255,0.88); --hk-surface-solid: #FFFFFF; --hk-surface-float: rgba(255,255,255,0.65);
  --hk-surface-modal: rgba(255,255,255,0.96); --hk-surface-ink: #0B1220;
  --hk-color-track: #EBEFF7; --hk-color-divider: rgba(15,23,42,0.06);
  --hk-ink-a3: rgba(15,23,42,0.03); --hk-ink-a4: rgba(15,23,42,0.04); --hk-ink-a6: rgba(15,23,42,0.06); --hk-ink-a8: rgba(15,23,42,0.08); --hk-ink-a12: rgba(15,23,42,0.12);
  --hk-border-glass: 1px solid rgba(255,255,255,0.55); --hk-border-input: 1px solid rgba(15,23,42,0.10);
  --hk-focus-ring: 2px solid #2563EB;
  /* ink and text */
  --hk-color-ink-900: #0B1220; --hk-color-ink-950: #050B18;
  --hk-color-text: #0F172A; --hk-color-text-2: #475569; --hk-color-text-3: #64748B; --hk-color-link: #2563EB;
  /* department hues */
  --hk-hue-design: #EC4899; --hk-hue-design-100: #FDDBE5; --hk-hue-design-400: #F472B6; --hk-hue-design-700: #BE185D;
  --hk-hue-development: #2563EB; --hk-hue-development-100: #DCE7FD; --hk-hue-development-400: #5286FD; --hk-hue-development-700: #1E40AF;
  --hk-hue-marketing: #8B5CF6; --hk-hue-marketing-100: #E7DCFC; --hk-hue-marketing-400: #A78BFA; --hk-hue-marketing-700: #6D28D9;
  --hk-hue-seo: #F59E0B; --hk-hue-seo-100: #FDEBDD; --hk-hue-seo-400: #FBBF24; --hk-hue-seo-700: #B45309;
  --hk-hue-sales: #22C55E; --hk-hue-sales-100: #CBF8E5; --hk-hue-sales-400: #4ADE80; --hk-hue-sales-700: #15803D;
  --hk-hue-operations: #14B8A6; --hk-hue-operations-100: #D1F2FA; --hk-hue-operations-400: #2DD4BF; --hk-hue-operations-700: #0F766E;
  /* states */
  --hk-state-success: #22C55E; --hk-state-success-tint: #D1FAE5; --hk-state-success-text: #047857;
  --hk-state-warning: #F59E0B; --hk-state-warning-tint: #FEF3C7; --hk-state-warning-text: #B45309;
  --hk-state-danger: #EF4444; --hk-state-danger-tint: #FEE2E2; --hk-state-danger-text: #B91C1C;
  --hk-state-info: #64748B; --hk-state-info-tint: #F1F5F9; --hk-state-info-text: #334155;
  --hk-state-ai-text: #6D28D9;
  /* type */
  --hk-font-sans: "Inter", "Noto Sans Arabic", -apple-system, "Segoe UI", sans-serif;
  /* radius */
  --hk-radius-sm: 8px; --hk-radius-tile: 10px; --hk-radius-input: 12px; --hk-radius-md: 16px; --hk-radius-card: 24px; --hk-radius-pill: 9999px;
  /* shadow */
  --hk-shadow-hairline: 0 1px 2px rgba(15,23,42,0.04), inset 0 0 0 1px rgba(255,255,255,0.55);
  --hk-shadow-float: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --hk-shadow-float-hover: 0 2px 4px rgba(15,23,42,0.05), 0 16px 40px rgba(15,23,42,0.10);
  --hk-shadow-feature: 0 2px 6px rgba(11,18,32,0.12), 0 24px 48px -12px rgba(11,18,32,0.35);
  --hk-shadow-overlay: 0 24px 64px -16px rgba(15,23,42,0.28);
  --hk-gradient-aurora: radial-gradient(60% 55% at 72% 18%, #C9D6F2, transparent 70%), radial-gradient(38% 60% at 88% 48%, #B7C3E4, transparent 72%), radial-gradient(30% 40% at 62% 62%, #DCD3F3, transparent 70%);
  --hk-gradient-ai: linear-gradient(105deg, #F1EAFE 0%, #E2DCFD 48%, #CED5FD 100%);
  --hk-gradient-quote-tile: radial-gradient(45% 35% at 70% 12%, #CFDBEF, transparent 70%), linear-gradient(180deg, #F0F5FC, #E0E8F8);
  --hk-motion-fast: 150ms; --hk-motion-base: 200ms; --hk-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* the app's own variables, mapped onto the system */
  --page: #FFFFFF;
  --canvas: #F8FAFC;
  --line: rgba(15,23,42,0.07);
  --line-strong: rgba(15,23,42,0.12);
  --text: #0F172A;
  --muted: #475569;
  --fill: #F1F5F9;
  --fill-hover: #E8EDF5;
  --ink: #0B1220;
  --brand: #22C55E;
  --danger: #B91C1C;
  --danger-fill: #FEE2E2;
  --ok-fill: #D1FAE5;
  --radius: 12px;
  --sidebar: 260px;
  --control: 38px;
}

/* ---------- Base ---------- */

html { background: var(--hk-color-bg); }
body {
  font-family: var(--hk-font-sans);
  font-size: 14px;
  color: var(--hk-color-text);
  background: var(--hk-color-bg);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { letter-spacing: -0.01em; color: var(--hk-color-text); }
:focus-visible { outline: var(--hk-focus-ring); outline-offset: 2px; }
::selection { background: #DCE7FD; }
.sub, .hint, .muted { color: var(--hk-color-text-2); }
strong, b { font-weight: 600; }
a.link, .content p a:not(.button), .hint a, .page-hint a { color: var(--hk-color-link); }

/* ---------- Shell (blueprint 2.3, 4.2, 4.7) ---------- */

.app { background: transparent; }
.sidebar {
  width: var(--sidebar);
  padding: 0;
  background: var(--hk-surface-float);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  backdrop-filter: saturate(160%) blur(28px);
  border-right: 0;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.55), 1px 0 0 rgba(15,23,42,0.04), 8px 0 32px rgba(15,23,42,0.03);
}
.brand.hk-brand { display: flex; align-items: center; gap: 12px; background: transparent; padding: 24px 24px 20px; text-decoration: none; }
.hk-mark { flex: none; width: 40px; height: 40px; color: var(--hk-color-ink-900); }
.hk-word { display: grid; gap: 2px; min-width: 0; }
.brand.hk-brand .hk-word strong { display: block; margin: 0; color: var(--hk-color-text); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.brand.hk-brand .hk-word span { display: block; margin: 0; color: var(--hk-color-text-2); font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 1.3; white-space: nowrap; }

.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 16px 16px; }
.nav::-webkit-scrollbar { display: none; }
.nav-caption { display: none !important; }
.nav .nav-caption.is-split { display: block !important; height: 0; margin: 12px 0 !important; padding: 0 !important; border: 0 !important; font-size: 0; overflow: hidden; }
.nav a, .nav-group > summary {
  display: flex; align-items: center;
  height: 36px;
  margin: 0 0 12px;
  padding: 0 16px;
  border-radius: var(--hk-radius-pill);
  color: #1E293B;
  font-size: 14px;
  font-weight: 500;
  gap: 14px;
  transition: background-color var(--hk-motion-fast) var(--hk-ease-out), color var(--hk-motion-fast) var(--hk-ease-out);
}
.nav a .icon, .nav-group > summary .icon { width: 20px; height: 20px; flex: none; color: #334155; stroke-width: 1.5; }
.nav a:hover, .nav-group > summary:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.nav a.is-current, .nav-group-items .nav-group-link.is-current {
  background: var(--hk-color-ink-900);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -8px rgba(11,18,32,0.55);
}
.nav a.is-current .icon { color: #FFFFFF; }
.nav a.is-current::before { display: none; }
.nav-group[open] > summary { background: transparent; margin-bottom: 6px; }
.nav-group.is-active > summary { color: var(--hk-color-text); }
.nav-group-chevron { margin-left: auto; color: var(--hk-color-text-3); }
.nav-group-items { margin: 0 0 12px; padding-left: 18px; border-left: 0 !important; }
.nav-group-items .nav-group-link { height: 32px; margin-bottom: 4px; padding: 0 14px; gap: 12px; font-size: 13.5px; color: #334155; }
.nav-group-items .nav-group-link .icon { width: 16px; height: 16px; }
.nav-count, .nav-group-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; box-shadow: 0 0 0 2px #fff; }
.nav a.is-current .nav-count { background: #FFFFFF; color: var(--hk-color-ink-900); box-shadow: none; }
.nav-group-count.is-new { background: var(--hk-color-ink-900); color: #fff; }
.hk-side-foot { flex: none; overflow: visible; padding: 8px 16px 16px; }
.hk-side-foot a { margin-bottom: 0; }

.hk-quote-tile {
  position: relative; flex: none; margin: 8px 16px 4px; padding: 20px; border-radius: var(--hk-radius-card);
  background: var(--hk-gradient-quote-tile); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.hk-quote-tile p { margin: 0 0 16px; color: var(--hk-color-text); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.hk-quote-tile a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-color-ink-900); color: #fff; }
.hk-quote-tile a:hover { background: var(--hk-color-ink-950); }
@media (max-height: 979px) { .hk-quote-tile { display: none; } }

.main { background: transparent; }
.topbar {
  height: 64px;
  padding: 0 24px;
  gap: 16px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transition: background-color var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out);
}
.topbar.is-scrolled {
  background: var(--hk-surface-float);
  -webkit-backdrop-filter: saturate(160%) blur(28px);
  backdrop-filter: saturate(160%) blur(28px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.04);
}
.topbar h1 { display: none; }
.topbar .button.icon-only:not(.menu-button), .topbar .bell .button.icon-only { width: 40px; height: 40px; border-radius: 50%; background: transparent; box-shadow: none; color: #1E293B; }
.topbar .button.icon-only:hover, .topbar .bell .button.icon-only:hover { background: var(--hk-ink-a6); }
.topbar .badge { top: 2px; right: auto; left: 22px; min-width: 16px; height: 16px; padding: 0 4px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; box-shadow: 0 0 0 2px #F5F7FB; }
.account .avatar.hk-account { display: inline-flex; align-items: center; gap: 10px; width: auto; height: 44px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; cursor: pointer; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
.account .avatar.hk-account:hover, .account .avatar.hk-account[aria-expanded="true"] { background: var(--hk-ink-a4); }
.hk-account .pic { width: 36px !important; height: 36px !important; font-size: 13px !important; }
.hk-account-who { display: grid; text-align: left; line-height: 1.25; max-width: 170px; }
.hk-account-who strong { font-size: 13px; font-weight: 600; color: var(--hk-color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-account-who small { font-size: 12px; color: var(--hk-color-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-account > .icon { color: var(--hk-color-text-2); margin-left: 6px; transition: transform var(--hk-motion-fast) var(--hk-ease-out); }
.hk-account[aria-expanded="true"] > .icon { transform: rotate(180deg); }
@media (max-width: 1100px) { .hk-account-who, .hk-account > .icon { display: none; } .account .avatar.hk-account { padding: 4px; } }

/* Global search (SearchField, glass-float unfiltered at rest) */
.hk-topsearch { position: relative; display: flex; align-items: center; flex: 0 1 480px; min-width: 0; height: 40px; padding: 0 10px 0 42px; border-radius: 999px; background: var(--hk-surface-float); box-shadow: var(--hk-shadow-hairline), 0 0 0 1px rgba(15,23,42,0.05); transition: box-shadow var(--hk-motion-fast) var(--hk-ease-out); }
.hk-topsearch:hover { box-shadow: var(--hk-shadow-float), 0 0 0 1px rgba(15,23,42,0.05); }
.hk-topsearch > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hk-color-text-3); pointer-events: none; }
.hk-topsearch input[type="search"] { flex: 1; min-width: 0; height: 38px !important; padding: 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; font-size: 14px; }
.hk-topsearch:focus-within { box-shadow: 0 0 0 2px #2563EB; background: rgba(255,255,255,0.96); }
.hk-topsearch kbd { flex: none; padding: 2px 7px; border-radius: 6px; background: rgba(15,23,42,0.06); box-shadow: inset 0 0 0 1px rgba(15,23,42,0.08); color: var(--hk-color-text-2); font: 500 11px/1.4 var(--hk-font-sans); }
@media (max-width: 1279px) { .hk-topsearch { flex-basis: 400px; } }
@media (max-width: 1023px) { .hk-topsearch { flex-basis: 320px; } }

/* Page header (PageHeader) on every page except Home */
.content { padding: 8px 24px 48px; max-width: 1440px; }
@media (min-width: 1680px) { .content { padding-left: 32px; padding-right: 32px; } }
.hk-pagehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 24px; min-height: 72px; margin: 4px 0 24px; }
.hk-pagehead-text { display: grid; gap: 8px; min-width: 0; }
.hk-pagehead h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--hk-color-text); }
.hk-pagehead-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hk-pagehead-actions.is-home { margin-bottom: 16px; }
.hk-pagehead .time-zone-strip { margin: 0; padding: 0; background: none; border: 0; color: var(--hk-color-text-2); font-size: 13px; }
.hk-pagehead .time-zone-strip a { color: var(--hk-color-text); text-decoration: underline; text-decoration-color: rgba(15,23,42,0.25); text-underline-offset: 3px; }
.time-zone-strip { color: var(--hk-color-text-2); font-size: 12px; }
.time-zone-strip a { color: var(--hk-color-text); }

/* ---------- Surfaces (ContentCard) ---------- */

.box, .card, .list, .empty, .day, .day-wrap, .minimal-hero, .minimal-primary-list, .minimal-secondary { border-color: transparent; }
.box, .card, .list {
  background: var(--hk-surface-solid);
  border: 0;
  border-radius: var(--hk-radius-card);
  box-shadow: var(--hk-shadow-float);
}
.card { padding: 24px; margin-bottom: 24px; }
.box { margin-bottom: 24px; }
.box > header { padding: 20px 24px 12px; background: transparent; border-bottom: 0; }
.box > header h2, .card-head h2, .card > h2:first-child { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.box > header span, .box > header a:not(.button) { color: var(--hk-color-text-2); font-size: 13px; }
.box-foot { border-top: 0; padding: 12px 24px 20px; }
.card .card, .box .card, .card .box, .box .box, .card .list, .box .list, .list .list, dialog .card, dialog .box, dialog .list { box-shadow: none; border: 0; background: var(--hk-ink-a3); border-radius: var(--hk-radius-md); }
.empty { background: var(--hk-surface-solid); border: 0; border-radius: var(--hk-radius-card); box-shadow: var(--hk-shadow-float); padding: 48px 24px; }
.empty h2 { font-size: 16px; font-weight: 600; }
.empty p { color: var(--hk-color-text-2); }
.form-title { border-top-color: transparent; font-size: 16px; font-weight: 600; }
.sub, .hint, small { color: var(--hk-color-text-2); }

/* ---------- Buttons (Button, IconButton) ---------- */

.button {
  height: 36px;
  padding: 0 20px;
  gap: 8px;
  border: 0;
  border-radius: var(--hk-radius-pill);
  background: var(--hk-ink-a8);
  color: var(--hk-color-text);
  font-weight: 600;
  font-size: 13px;
  box-shadow: none;
  transition: background-color var(--hk-motion-fast) var(--hk-ease-out), box-shadow var(--hk-motion-fast) var(--hk-ease-out), transform var(--hk-motion-fast) var(--hk-ease-out);
}
.button:hover { background: var(--hk-ink-a12); box-shadow: none; }
.button:active { transform: scale(0.98); background: rgba(15,23,42,0.16); }
.button .icon { width: 16px; height: 16px; }
.button.primary { background: var(--hk-color-ink-900); color: #FFFFFF; box-shadow: 0 8px 18px -10px rgba(11,18,32,0.6); }
.button.primary:hover { background: var(--hk-color-ink-950); }
.button.primary:active { background: var(--hk-color-ink-950); }
.button.danger { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); box-shadow: none; }
.button.danger:hover { background: #FECACA; }
dialog .button.danger, .dialog-foot .button.danger { background: #DC2626; color: #FFFFFF; }
dialog .button.danger:hover { background: #B91C1C; }
.button.icon-only { width: 36px; padding: 0; border-radius: 50%; background: var(--hk-ink-a8); box-shadow: none; }
.button.icon-only:hover { background: var(--hk-ink-a12); }
table .button.icon-only, .list .button.icon-only, .menu-button.button.icon-only { background: transparent; }
table .button.icon-only:hover, .list .button.icon-only:hover { background: var(--hk-ink-a6); }
.button.small-text { height: 32px; padding: 0 16px; font-size: 12.5px; }
.button.small { border-radius: 50%; }
.button[disabled], .button:disabled { opacity: .4; cursor: not-allowed; }
.link-button, .button.link { color: var(--hk-color-link); background: transparent; }
@media (pointer: coarse) { .button { min-height: 44px; } .button.small-text { min-height: 40px; } }

/* ---------- Fields (FormField: tinted, no border at rest) ---------- */

input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="search"],
input[type="number"], input[type="url"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], select, textarea {
  border: 0;
  border-radius: var(--hk-radius-input);
  background-color: var(--hk-ink-a4);
  box-shadow: none;
  color: var(--hk-color-text);
  font-size: 14px;
  transition: background-color var(--hk-motion-fast) var(--hk-ease-out), box-shadow var(--hk-motion-fast) var(--hk-ease-out);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select { height: 40px; padding: 0 14px; }
form .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), form .field select, dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), dialog select { height: 44px; }
select { padding-right: 34px; }
input:hover, select:hover, textarea:hover { background-color: var(--hk-ink-a8); border-color: transparent; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible,
select:focus, select:focus-visible, textarea:focus, textarea:focus-visible {
  outline: none; background-color: #FFFFFF; box-shadow: inset 0 0 0 2px #2563EB;
}
input[disabled], select[disabled], textarea[disabled] { background-color: var(--hk-ink-a4); color: var(--hk-color-text-3); }
textarea { padding: 12px 14px; }
input::placeholder, textarea::placeholder { color: var(--hk-color-text-3); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--hk-color-ink-900); width: 18px; height: 18px; }
.field label, label.field > span, .field > span:first-child { color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.field .hint, .field small { font-size: 12px; color: var(--hk-color-text-2); }
.search input[type="search"] { border-radius: var(--hk-radius-pill); padding-left: 40px !important; background-color: var(--hk-surface-float); box-shadow: var(--hk-shadow-hairline), 0 0 0 1px rgba(15,23,42,0.05); }
.box .search input[type="search"], .card .search input[type="search"], dialog .search input[type="search"] { background-color: var(--hk-ink-a4); box-shadow: none; }
.search input[type="search"]:hover { box-shadow: var(--hk-shadow-float), 0 0 0 1px rgba(15,23,42,0.05); }
.search input[type="search"]:focus { box-shadow: inset 0 0 0 2px #2563EB; background-color: #fff; }
.search > .icon, .search > span.icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--hk-color-text-3); pointer-events: none; }
.search > span.icon { display: grid; place-items: center; width: 16px; height: 16px; }
.search > span.icon > .icon { position: static; transform: none; }
.list-tools select, .filters select, .list-tools input:not([type="search"]):not([type="checkbox"]), .filters input:not([type="search"]):not([type="checkbox"]) { background-color: rgba(255,255,255,0.75); box-shadow: 0 0 0 1px rgba(15,23,42,0.05); }
.list-tools select:hover, .filters select:hover { background-color: #fff; }

/* ---------- Tables (DataTable) ---------- */

.list { overflow: visible; }
@supports (overflow: clip) { .list { overflow: clip; } }
.project-directory-table th { top: 64px; }
@media (max-width: 860px) { .project-directory-table th { top: 60px; } }
.list th, .box th, table th {
  height: 44px;
  background: transparent;
  color: var(--hk-color-text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hk-color-divider);
}
.list th { padding: 0 16px; }
.list td { height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--hk-color-divider); }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr:hover, .box tbody tr:hover { background: var(--hk-ink-a4); }
.list tbody tr:nth-child(even), .box tbody tr:nth-child(even) { background-color: transparent; }
.list tbody tr:nth-child(even):hover, .box tbody tr:nth-child(even):hover { background: var(--hk-ink-a4); }
.list .name { font-weight: 600; color: var(--hk-color-text); }

/* ---------- Chips and states (StatusChip, FilterChip, TrendChip) ---------- */

.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.tag.late { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.tag.paused { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.tag.shared, .tag.ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.tag.info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.tag.team, .tag.fixed { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.status::before { width: 8px; height: 8px; }
.status.active::before, .status.done::before, .status.completed::before, .status.approved::before { background: var(--hk-state-success); }
.status.in_progress::before { background: #2563EB; }
.status.review::before, .status.on_hold::before, .status.idle::before { background: var(--hk-state-warning); }
.badge { background: #DC2626; }
.chip, .filter-chip, .team-position-tabs a, .chips a, .chip-row a { min-height: 28px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.team-position-tabs a:hover, .chips a:hover, .chip-row a:hover { background: var(--hk-ink-a8); }
.team-position-tabs a.is-on, .chips a.is-on, .chip.is-on, .chip-row a.is-on { background: var(--hk-color-ink-900); color: #fff; }
.team-position-tabs a b { color: var(--hk-color-text-2); font-weight: 500; }
.team-position-tabs a.is-on b { color: rgba(255,255,255,0.72); }

/* ---------- Notices (InlineBanner) ---------- */

.notice { border-radius: var(--hk-radius-md); padding: 14px 16px; background: var(--hk-state-success-tint); color: var(--hk-state-success-text); font-size: 13px; font-weight: 500; box-shadow: none; border: 0; }
.notice.error { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.notice.warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.notice.info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.nudge { border-radius: var(--hk-radius-md); background: var(--hk-surface-solid); border: 0; color: var(--hk-color-text); box-shadow: var(--hk-shadow-float); padding: 12px 14px 12px 16px; }
.nudge > .icon { color: var(--hk-color-text-2); }

/* ---------- Overlays (Modal, DropdownMenu) ---------- */

dialog {
  border: 0;
  border-radius: var(--hk-radius-card);
  background: var(--hk-surface-modal);
  box-shadow: var(--hk-shadow-overlay);
  color: var(--hk-color-text);
}
dialog::backdrop { background: rgba(15,23,42,0.40); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dialog-head { padding: 24px 20px 8px 32px; border-bottom: 0; }
.dialog-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.dialog-body { padding: 16px 32px 24px; }
.dialog-foot { padding: 16px 32px 28px; border-top: 0; background: transparent; }
.account-menu, .bell-menu {
  border: 0; border-radius: var(--hk-radius-md);
  background: rgba(255,255,255,0.985);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  box-shadow: var(--hk-shadow-overlay), 0 0 0 1px rgba(15,23,42,0.05);
}
.account-menu { top: 52px; width: 248px; padding: 8px; }
.account-menu a, .account-menu button { border-radius: 10px; height: 40px; }
.account-menu a:hover, .account-menu button:hover { background: var(--hk-ink-a4); }
.bell-menu { top: 50px; }

/* ---------- Tabs (PageTabs: white pill on the page, no track) ---------- */

.tabs-row .tabs, .team-nav, nav.tabs, .project-tabs, .page-tabs, .team-views, .project-overview-tabs {
  display: inline-flex; gap: 8px; padding: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.tabs-row .tabs a, .team-nav a, nav.tabs a, .project-tabs a, .page-tabs a, .content .team-views a, .content .project-overview-tabs a { height: 36px; padding: 0 16px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 14px; font-weight: 500; background: transparent; box-shadow: none; }
.tabs-row .tabs a:hover, .team-nav a:hover, nav.tabs a:hover, .project-tabs a:hover, .page-tabs a:hover, .content .team-views a:hover, .content .project-overview-tabs a:hover { color: var(--hk-color-text); background: rgba(255,255,255,0.6); }
.tabs-row .tabs a.is-on, .tabs-row .tabs a[aria-current], .team-nav a.is-on, .team-nav a[aria-current], nav.tabs a.is-on, nav.tabs a[aria-current], .project-tabs a.is-on, .project-tabs a[aria-current], .page-tabs a.is-on, .page-tabs a[aria-current], .content .team-views a.is-on, .content .project-overview-tabs a.is-on {
  background: #FFFFFF; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 6px 16px -8px rgba(15,23,42,0.18);
}

.content .team-views, .content .project-overview-tabs { margin: 0 0 24px; border: 0; overflow-x: auto; scrollbar-width: none; }
.content .team-views a, .content .project-overview-tabs a { display: inline-flex; align-items: center; gap: 8px; border: 0; }
/* SegmentedControl */
.content .toggle { display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: 999px; background: var(--hk-ink-a6); }
.content .toggle a, .content .toggle button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--hk-color-text-2); font-size: 13px; font-weight: 500; box-shadow: none; }
.content .toggle a.is-on, .content .toggle a[aria-current], .content .toggle button.is-on { background: #FFFFFF; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,0.08), 0 4px 10px -6px rgba(15,23,42,0.2); }

/* ---------- Avatars (initials on a hue tint, 700 text) ---------- */

span.pic { background: #E7DCFC; color: #6D28D9; font-weight: 600; }
span.pic.hue-0 { background: #FDDBE5; color: #BE185D; }
span.pic.hue-1 { background: #DCE7FD; color: #1E40AF; }
span.pic.hue-2 { background: #E7DCFC; color: #6D28D9; }
span.pic.hue-3 { background: #FDEBDD; color: #B45309; }
span.pic.hue-4 { background: #CBF8E5; color: #15803D; }
span.pic.hue-5 { background: #D1F2FA; color: #0F766E; }
.logo-tile { background: #F1F5F9; color: #334155; border-radius: 10px; }

/* ---------- Phone and tablet ---------- */

@media (max-width: 860px) {
  .sidebar { background: rgba(255,255,255,0.96); }
  .topbar { height: 60px; padding: 0 12px; gap: 8px; background: rgba(245,247,251,0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .content { padding: 8px 16px 40px; }
  .hk-pagehead { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 8px 0 18px; align-items: start; }
  .hk-pagehead .time-zone-strip { font-size: 12px; }
  .hk-pagehead h1 { font-size: 26px; }
  .hk-pagehead-actions { width: 100%; justify-content: flex-start; }
  .box, .card, .list, .empty { border-radius: 20px; }
  .card { padding: 16px; }
  dialog { border-radius: 20px 20px 0 0; }
  .hk-quote-tile { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar, .topbar.is-scrolled, .account-menu, .bell-menu, .hk-topsearch { background: rgba(255,255,255,0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar, .topbar.is-scrolled { background: rgba(255,255,255,0.96); }
}
@media print {
  html, body { background: #fff; }
  .box, .card, .list { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* ---------- Panels used across pages: white surface, no grey frame ---------- */
.access-grid-wrap,
.activity-log,
.approval-card,
.att-wrap,
.attendance-grid-wrap,
.client-more-tools,
.client-profile-head,
.client-update-client-head,
.client-update-filters,
.client-update-settings,
.column,
.correction-filter-form,
.dashboard-attention-group,
.dashboard-more,
.dashboard-reminder-group,
.day,
.day-wrap,
.device,
.employee-editor-section,
.employee-more-details,
.employee-profile-hero,
.employee-profile-metrics,
.hours-policy-strip,
.invoice-paper,
.leave-filter-form,
.leave-own-balance,
.leave-secondary-section,
.live-card,
.log-total,
.meeting-full-detail,
.minimal-hero,
.minimal-primary-list,
.minimal-secondary,
.number-card,
.pcard,
.plan-day,
.plan-save,
.project-card,
.project-head,
.project-manager-card,
.project-overview-meta,
.project-social-planner,
.seo-activity-editor,
.seo-target,
.social-creative-editor,
.social-quick-links,
.timesheet-table-wrap,
.update-card,
.update-project,
.web-stats > *
 { background: var(--hk-surface-solid); border-color: transparent; border-radius: 20px; box-shadow: var(--hk-shadow-float); }

/* ---------- Dashboard cards ---------- */

.dashboard-minimal .dashboard-attention-group, .dashboard-minimal .dashboard-reminder-group { border-radius: var(--hk-radius-card); }
.dashboard-more { border-radius: var(--hk-radius-card); }
.dashboard-minimal .box > header, .dashboard-minimal .dashboard-attention-group > header { padding: 20px 24px; }

/* ---------- Sign-in and public pages ---------- */

.auth.hk-auth { position: relative; overflow: hidden; background: var(--hk-color-bg, #F5F7FB); padding: 32px 16px; }
.auth.hk-auth::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: var(--hk-gradient-aurora); filter: blur(48px); opacity: .95; pointer-events: none;
}
.hk-auth .auth-card {
  position: relative; width: 420px; border: 0; border-radius: var(--hk-radius-card, 24px); overflow: visible;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: saturate(160%) blur(28px); backdrop-filter: saturate(160%) blur(28px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 24px 60px -24px rgba(15,23,42,0.22), 0 2px 8px rgba(15,23,42,0.05);
}
.hk-auth .auth-brand.hk-auth-brand { display: flex; align-items: center; gap: 12px; background: transparent; padding: 32px 32px 4px; }
.hk-auth .auth-brand .hk-mark { width: 40px; height: 40px; }
.hk-auth .auth-brand .hk-word strong { display: block; color: var(--hk-color-text); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.hk-auth .auth-brand .hk-word > span { display: block; margin: 2px 0 0; color: var(--hk-color-text-2); font-size: 11px; font-weight: 500; }
.hk-auth .auth-body { padding: 24px 32px 32px; gap: 16px; }
.hk-auth .auth-body h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--hk-color-text); }
.hk-auth .auth-body .button { height: 44px; border-radius: 999px; }
.hk-auth .auth-body input { height: 44px; }
@media (max-width: 480px) {
  .hk-auth .auth-brand.hk-auth-brand { padding: 24px 22px 0; }
  .hk-auth .auth-body { padding: 20px 22px 24px; }
}
@media (prefers-reduced-transparency: reduce) { .hk-auth .auth-card { background: #FFFFFF; } }

/* ---------- Compact section selectors ---------- */

.workspace-selector > summary, .report-selector > summary {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border: 0; border-radius: var(--hk-radius-pill);
  background: var(--hk-surface-solid); box-shadow: var(--hk-shadow-hairline), 0 1px 3px rgba(15,23,42,0.06);
  transition: box-shadow var(--hk-motion-fast) var(--hk-ease-out);
}
.workspace-selector > summary:hover, .report-selector > summary:hover { box-shadow: var(--hk-shadow-hairline), 0 4px 12px rgba(15,23,42,0.08); }
.workspace-selector > summary > .icon { flex: none; color: var(--hk-color-text-3); }
.workspace-selector > summary > span, .report-selector > summary > span { flex: none; color: var(--hk-color-text-3); font-size: 12px; font-weight: 500; }
.workspace-selector > summary > strong, .report-selector > summary > strong { flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--hk-color-text); }
.workspace-selector > summary::after, .report-selector > summary::after,
.workspace-selector[open] > summary::after, .report-selector[open] > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: -3px 2px 0 6px; border: solid var(--hk-color-text-3); border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg); transition: transform var(--hk-motion-fast) var(--hk-ease-out);
}
.workspace-selector[open] > summary::after, .report-selector[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.workspace-selector nav, .report-selector > div {
  top: calc(100% + 8px); padding: 6px; border: 0; border-radius: var(--hk-radius-md);
  background: var(--hk-surface-modal); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: var(--hk-shadow-hairline), 0 24px 48px -16px rgba(15,23,42,0.22);
}
.workspace-selector nav a, .report-selector > div a { min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: #1E293B; }
.workspace-selector nav a.is-current, .report-selector > div a.is-current { background: var(--hk-color-ink-900); color: #FFFFFF; font-weight: 600; }
.workspace-selector nav a.is-current .icon, .report-selector > div a.is-current .icon { color: #FFFFFF; }
.workspace-selector nav a:hover:not(.is-current), .report-selector > div a:hover:not(.is-current) { background: rgba(15,23,42,0.05); }

/* ---------- Posting schedules: content-type chips follow the hue map ---------- */

.content .ps-chip { padding: 3px 10px; font-weight: 600; background: #F1F5F9; color: #334155; }
.content .ps-chip.t-static-image { background: #DBEAFE; color: #1D4ED8; }
.content .ps-chip.t-carousel { background: #EDE9FE; color: #6D28D9; }
.content .ps-chip.t-video { background: #FFEDD5; color: #C2410C; }
.content .ps-chip.t-reel { background: #FCE7F3; color: #BE185D; }
.content .ps-chip.t-animated { background: #CCFBF1; color: #0F766E; }
.content .ps-chip.t-story { background: #DCFCE7; color: #15803D; }
.content .ps-none { color: var(--hk-color-text-3); }
.content .ps-day.is-today { background: rgba(37,99,235,0.04); }
.content .ps-day-name em { padding: 1px 8px; border-radius: 999px; background: var(--hk-color-ink-900); color: #FFFFFF; font-size: 11px; font-weight: 600; }
.content .ps-post { border: 0; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04); }
.content .ps-total { background: var(--hk-color-ink-900); color: #FFFFFF; }
.content .pss-table th.is-today { color: var(--hk-color-ink-900); }
.content .pss-table td.is-today { background: rgba(37,99,235,0.04); }
.content .ps-plat input { accent-color: var(--hk-color-ink-900); }
.content .tv-service { background: #DCFCE7; color: #15803D; }
.content .tpl2 .tpl-num { background: var(--hk-color-ink-900); color: #FFFFFF; }

/* ---------- Phone extras ---------- */

@media (max-width: 600px) {
  .auth.hk-auth { padding: 20px 16px; }
  .hk-auth .auth-card { width: 100%; }
  .nudge { flex-wrap: wrap; align-items: flex-start; }
  .nudge > span { flex: 1 1 calc(100% - 40px); }
  .nudge > .button { margin-left: 26px; }
  .hk-pagehead-actions .button.primary:has(> svg.icon) { flex: 1 1 100%; justify-content: center; }
  .hk-pagehead-actions .button:not(.primary) { flex: 1 1 auto; justify-content: center; padding: 0 12px; white-space: nowrap; }
  .hk-pagehead-actions .button .hide-small { display: inline !important; }
  .hk-topsearch { flex: 1 1 auto; }
  .hk-topsearch kbd { display: none; }
  .topbar .hk-apps-button { display: none; }
}

/* ---------- Team pages ---------- */

.content .team-position-tabs a.is-on b { color: rgba(255,255,255,0.7); }
.content .tv-hero { border-radius: var(--hk-radius-card); background: radial-gradient(60% 120% at 100% 0, rgba(139,92,246,0.28), transparent 60%), radial-gradient(50% 100% at 0 100%, rgba(37,99,235,0.22), transparent 60%), linear-gradient(135deg, #1A2230, #0B1220); box-shadow: 0 24px 48px -24px rgba(11,18,32,0.6); }
.content .tv-service { background: rgba(255,255,255,0.14); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.content .tv-stats > div { border-color: rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.content .tv-card { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 14px 36px -18px rgba(15,23,42,0.18); }
.content .tv-card:hover { box-shadow: 0 2px 4px rgba(15,23,42,0.05), 0 22px 44px -18px rgba(15,23,42,0.26); }
.content .tv-photo { border-radius: 14px; background: linear-gradient(140deg, #F1ECFE, #E2E8FB); }
.content .tv-initials { color: #6D28D9; }
.content .tv-level.free { background: #DCFCE7; color: #15803D; }
.content .tv-level.ok { background: #DBEAFE; color: #1D4ED8; }
.content .tv-level.full { background: #FEF3C7; color: #B45309; }
.content .tv-level.over { background: #FEE2E2; color: #B91C1C; }
.content .tv-project { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 10px 28px -18px rgba(15,23,42,0.2); }
.content .tv-progress .bar > span { background: linear-gradient(90deg, #5286FD, #2563EB); }
.content .am-person:has(input:checked), .team-editor-member:has(input:checked), dialog .am-person:has(input:checked) { background: #EEF2FF; box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18); }
.project-member-option.is-selected { background: #EEF2FF; }

/* ======================================================================
   Home (blueprint §3.1): GreetingBand, KPI row, 5/4/3, 5/4/3, 4/4/4
   ====================================================================== */

/* GreetingBand */
.hk-greeting { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 120px; margin: 0 0 32px; padding: 12px 0 0; isolation: isolate; }
.hk-greeting::before {
  content: ""; position: absolute; z-index: -1; inset: -140px -48px -40px 30%;
  background: var(--hk-gradient-aurora); filter: blur(36px); opacity: .95; pointer-events: none;
}
.hk-greeting h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--hk-color-text); }
.hk-greeting-text p { margin: 12px 0 0; color: var(--hk-color-text-2); font-size: 14px; font-weight: 400; }
.hk-wave { width: 36px; height: 36px; flex: none; }
.hk-greeting-aside { display: grid; justify-items: end; align-content: start; gap: 20px; text-align: right; padding-top: 8px; }
.hk-greeting-date { font-size: 14px; font-weight: 500; color: var(--hk-color-text); }
.hk-greeting-quote { margin: 0; max-width: 260px; color: var(--hk-color-text); font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-align: center; }
.hk-greeting-quote::after { content: ""; display: block; width: 24px; height: 2px; margin: 12px auto 0; border-radius: 2px; background: var(--hk-color-ink-900); }
.hk-greeting > .hk-greeting-quote { margin-left: auto; align-self: center; }
.hk-greeting.has-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "text quote aside" "controls quote aside"; column-gap: 48px; }
.hk-greeting.has-overview .hk-greeting-text { grid-area: text; }
.hk-greeting.has-overview .hk-greeting-quote { grid-area: quote; align-self: center; margin: 0; }
.hk-greeting.has-overview .hk-greeting-aside { grid-area: aside; }
.hk-greeting-controls { grid-area: controls; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; }
.hk-tabs { display: inline-flex; gap: 8px; }
.hk-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color var(--hk-motion-fast) var(--hk-ease-out), color var(--hk-motion-fast) var(--hk-ease-out); }
.hk-tabs a:hover { color: var(--hk-color-text); background: rgba(255,255,255,0.5); }
.hk-tabs a.is-current { background: rgba(255,255,255,0.92); color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 6px 16px -8px rgba(15,23,42,0.2); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
.hk-tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--hk-color-ink-900); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.hk-period { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.55); box-shadow: var(--hk-shadow-hairline), 0 0 0 1px rgba(15,23,42,0.04); }
.hk-period a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.hk-period a:hover { color: var(--hk-color-text); }
.hk-period a.is-on { background: var(--hk-color-ink-900); color: #fff; }
.hk-weather { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--hk-radius-md); background: var(--hk-surface-float); box-shadow: var(--hk-shadow-hairline), 0 8px 24px -12px rgba(15,23,42,0.18); }
.hk-weather[hidden] { display: none; }
.hk-weather strong { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hk-weather small { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.hk-weather-icon { display: inline-grid; color: #F59E0B; }
.hk-weather-icon .icon { width: 20px; height: 20px; }
.hk-weather-icon .is-cloud { display: none; color: #64748B; }
.hk-weather.is-cloudy .is-sun { display: none; }
.hk-weather.is-cloudy .is-cloud { display: inline-grid; }
@media (max-width: 1279px) {
  .hk-greeting-quote, .hk-weather { display: none !important; }
  .hk-greeting.has-overview { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text aside" "controls aside"; }
  .hk-greeting h1 { font-size: 32px; }
}
@media (max-width: 860px) {
  .hk-greeting, .hk-greeting.has-overview { display: flex; flex-direction: column; gap: 6px; min-height: 0; margin-bottom: 20px; }
  .hk-greeting h1 { font-size: 28px; }
  .hk-greeting-aside { justify-items: start; text-align: left; padding: 0; order: -1; }
  .hk-greeting-date { font-size: 13px; color: var(--hk-color-text-2); }
  .hk-greeting-controls { margin-top: 14px; }
  .hk-greeting::before { inset: -120px -16px -20px 10%; }
}

/* Shared widget anatomy */
.wf { display: grid; gap: 24px; margin-bottom: 32px; }
.wf-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--hk-radius-card); background: rgba(255,255,255,0.92); color: var(--hk-color-text); text-decoration: none; box-shadow: var(--hk-shadow-float); }
a.wf-card { transition: transform var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out); }
a.wf-card:hover { transform: translateY(-2px); box-shadow: var(--hk-shadow-float-hover); }
.wf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 20px; margin-bottom: 8px; }
.wf-head h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--hk-color-text); }
.wf-sub { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wf-viewall { flex: none; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.wf-viewall:hover { color: var(--hk-color-text); text-decoration: underline; text-underline-offset: 3px; }
.wf-empty { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.wf-empty strong { display: block; font-size: 14px; font-weight: 600; }
.wf-empty p { margin: 2px 0 6px; color: var(--hk-color-text-2); font-size: 13px; }

/* IconTile (tint pattern; sm 24/8, md 32/10, lg 40/12) */
.hk-icon-tile { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--hue-tile, #F1F5F9); color: var(--hue-glyph, #334155); }
.hk-icon-tile.is-sm { width: 24px; height: 24px; border-radius: 8px; }
.hk-icon-tile.is-md { width: 32px; height: 32px; border-radius: 10px; }
.hk-icon-tile.is-lg { width: 40px; height: 40px; border-radius: 12px; }
.hk-icon-tile .icon { stroke-width: 2; }
.hk-icon-tile.is-neutral, .hk-icon-tile.tone-neutral, .hk-icon-tile.tone-info { background: #F1F5F9; color: #334155; }
.hk-icon-tile.tone-success { background: #D1FAE5; color: #047857; }
.hk-icon-tile.tone-warning { background: #FEF3C7; color: #B45309; }
.hk-icon-tile.tone-danger { background: #FEE2E2; color: #B91C1C; }

/* StatusDot and StatusChip */
.wf-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #64748B; }
.wf-dot.tone-success { background: #22C55E; }
.wf-dot.tone-warning { background: #F59E0B; }
.wf-dot.tone-danger { background: #EF4444; }
.wf-chip { display: inline-flex; align-items: center; flex: none; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #F1F5F9; color: #475569; }
.wf-chip.tone-success { background: #D1FAE5; color: #047857; }
.wf-chip.tone-warning { background: #FEF3C7; color: #B45309; }
.wf-chip.tone-parttime { background: #FFEDD5; color: #C2410C; }
.wf-chip.tone-neutral { background: rgba(15,23,42,0.06); color: #475569; }

/* KpiCard row: four across, tinted glow, sparkline beside the metric */
.wf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* Four cards in a row, or two by two: never three with one left on its own. */
.wf-kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1300px) { .wf-kpis:not(:has(> :nth-child(3):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wf-kpi { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 160px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 16px 40px -12px color-mix(in srgb, var(--hue) 18%, transparent); }
.wf-kpi::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(60% 70% at 85% 85%, color-mix(in srgb, var(--hue) 16%, transparent), transparent 70%); }
a.wf-kpi:hover { box-shadow: 0 2px 4px rgba(15,23,42,0.05), 0 20px 44px -12px color-mix(in srgb, var(--hue) 24%, transparent); }
.wf-kpi-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.wf-kpi-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--hk-color-text); }
.wf-kpi-body { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wf-kpi-main { display: grid; gap: 8px; min-width: 0; }
.wf-kpi-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.wf-kpi-metric strong { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-trend { font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-trend.is-up { color: #047857; }
.wf-trend.is-down { color: #B91C1C; }
.wf-trend.is-flat { color: #475569; }
.wf-kpi-caption { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wf-spark { display: flex; align-items: flex-end; gap: 6px; flex: none; height: 72px; }
.wf-spark i { width: 10px; min-height: 6px; border-radius: 999px; background: linear-gradient(to top, color-mix(in srgb, var(--hue) 6%, transparent), color-mix(in srgb, var(--hue-bar) 95%, transparent)); }
.wf-spark i:last-child { background: linear-gradient(to top, color-mix(in srgb, var(--hue) 20%, transparent), var(--hue)); }

/* Rows: 5/4/3, 5/4/3, 4/4/4 on a 12-column grid */
.wf-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.wf-row-a > :nth-child(1), .wf-row-b > :nth-child(1) { grid-column: span 5; }
.wf-row-a > :nth-child(2), .wf-row-b > :nth-child(2) { grid-column: span 4; }
.wf-row-a > :nth-child(3), .wf-row-b > :nth-child(3) { grid-column: span 3; }
.wf-row-c > * { grid-column: span 4; }
.wf-row-a > * { min-height: 320px; }
.wf-row-b > * { min-height: 224px; }
.wf-row-c > * { min-height: 256px; }

/* Team capacity: ProgressRow x 6 at a 44 px pitch */
.wf-progress-list { display: grid; align-content: start; margin: 12px 0 0; padding: 0; list-style: none; }
.wf-progress-list li { display: grid; grid-template-columns: 24px minmax(80px, 116px) minmax(0, 1fr) 44px 44px; align-items: center; gap: 12px; height: 44px; }
.wf-progress-label { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wf-bar { position: relative; height: 8px; border-radius: 999px; background: #EBEFF7; overflow: hidden; }
.wf-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--hue-bar); }
.wf-progress-pct { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wf-progress-frac { color: var(--hk-color-text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* HeroCard: the one dark verdict */
.wf-hero { align-items: center; justify-content: space-between; gap: 16px; overflow: hidden; background: #0B1220; color: #FFFFFF; box-shadow: var(--hk-shadow-feature); }
.wf-hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-gauge { position: relative; display: grid; place-items: center; width: 192px; height: 192px; margin-top: 4px; }
.wf-gauge::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: rgba(11,18,32,0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wf-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-gauge-text { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.wf-gauge-text strong { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wf-gauge-text span { color: rgba(255,255,255,0.86); font-size: 13px; font-weight: 500; }
.wf-hero-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; }
.wf-status-row { display: grid; gap: 4px; min-width: 0; }
.wf-status-word { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.wf-status-word .wf-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.wf-status-line { color: rgba(255,255,255,0.72); font-size: 13px; }
.wf-glass-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.28); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55); transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
a.wf-hero:hover .wf-glass-btn, a.wf-glass-btn:hover { background: rgba(255,255,255,0.4); }

/* ActivityRow and UpcomingRow (52 px pitch) */
.wf-rows { display: grid; margin: 8px -8px 0; padding: 0; list-style: none; }
.wf-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 14px; color: inherit; text-decoration: none; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
a.wf-item:hover { background: var(--hk-ink-a4); }
a.wf-item:hover .wf-chev { transform: translateX(2px); }
.wf-item > .pic { width: 40px !important; height: 40px !important; font-size: 14px !important; }
.wf-row-copy { display: grid; gap: 2px; min-width: 0; }
.wf-row-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; font-weight: 400; line-height: 1.3; }
.wf-row-title strong { font-weight: 600; }
.wf-row-copy small { overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wf-chev { display: inline-grid; color: var(--hk-color-text-3); transition: transform var(--hk-motion-fast) var(--hk-ease-out); }
.wf-chev .icon { transform: rotate(-90deg); }
.wf-date { position: relative; display: grid; justify-items: center; align-content: center; width: 40px; height: 44px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04); overflow: hidden; }
.wf-date.is-today::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 3px; border-radius: 0 3px 3px 0; background: #64748B; }
.wf-date strong { font-size: 18px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.wf-date small { margin-top: 3px; color: var(--hk-color-text-2); font-size: 10px; font-weight: 500; letter-spacing: .04em; }

/* Leaderboard */
.wf-podium { display: grid; grid-template-columns: repeat(5, minmax(80px, 1fr)); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.wf-podium li { display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center; }
.wf-podium-face { position: relative; display: inline-grid; padding-top: 14px; }
.wf-podium-face .pic { width: 64px !important; height: 64px !important; border-radius: 50%; font-size: 20px !important; }
.wf-podium .rank-1 .pic, .wf-podium .rank-2 .pic, .wf-podium .rank-3 .pic { outline: 3px solid var(--ring); outline-offset: 2px; }
.wf-podium .rank-1 { --ring: #F5B301; }
.wf-podium .rank-2 { --ring: #C0C6D1; }
.wf-podium .rank-3 { --ring: #D28A5A; }
.wf-rank { position: absolute; z-index: 1; top: 0; left: 50%; display: inline-grid; place-items: center; width: 28px; height: 28px; transform: translateX(-50%); filter: drop-shadow(0 3px 6px rgba(15,23,42,0.18)); }
.wf-rank svg { width: 28px; height: 28px; }
.wf-rank.is-plain { width: 24px; height: 24px; top: 2px; border-radius: 50%; background: #F1F5F9; color: var(--hk-color-text); font-size: 12px; font-weight: 600; box-shadow: 0 0 0 2px #fff; filter: none; }
.wf-podium strong { margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.wf-podium li > span:last-child { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* AiInsightCard: the one tinted surface */
.wf-ai { gap: 8px; overflow: hidden; background: radial-gradient(50% 60% at 12% 10%, rgba(255,255,255,0.55), transparent 70%), var(--hk-gradient-ai); box-shadow: var(--hk-shadow-float); }
.wf-ai-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.wf-ai-eyebrow .icon { color: #6D28D9; }
.wf-ai-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.55); color: var(--hk-color-text-2); cursor: pointer; }
.wf-ai-close:hover { background: rgba(255,255,255,0.85); color: var(--hk-color-text); }
.wf-ai-close:focus-visible { outline: 2px solid #0B1220; }
.wf-ornament { position: absolute; top: 28px; right: 22px; width: 96px; height: 96px; filter: drop-shadow(0 16px 22px rgba(79,70,229,0.35)); transition: transform var(--hk-motion-base) var(--hk-ease-out); }
.wf-ai:hover .wf-ornament { transform: translateY(-4px); }
.wf-ornament svg { width: 100%; height: 100%; }
.wf-ai-body { display: grid; gap: 8px; margin-top: 8px; }
.wf-ai h3 { max-width: calc(100% - 100px); margin: 8px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--hk-color-text); }
.wf-ai p { max-width: calc(100% - 64px); margin: 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.wf-ai-action { justify-self: start; height: 40px; margin-top: 8px; padding: 0 20px; }
.wf-ai-action:focus-visible { outline-color: #0B1220; }
.wf-ai-meta { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wf-ai-empty { display: grid; gap: 4px; margin-top: 16px; }
.wf-ai-empty p { margin: 0; font-size: 14px; font-weight: 600; color: var(--hk-color-text); }
.wf-ai.is-dismissed .wf-ai-close { display: none; }

/* SpotlightCard */
.wf-spotlight { gap: 16px; }
.wf-spot-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.wf-spot-photo .pic { width: 72px !important; height: 72px !important; border-radius: 16px; font-size: 22px !important; object-fit: cover; }
.wf-spot-who { display: grid; gap: 2px; min-width: 0; padding-top: 4px; }
.wf-spot-who strong { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.wf-spot-role { color: var(--hk-color-text-2); font-size: 13px; }
.wf-spot-place { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wf-spot-quote { margin: 0; color: var(--hk-color-text); font-size: 13px; font-style: italic; line-height: 1.5; }
.wf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; text-align: center; }
.wf-stats dt { font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wf-stats dd { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wf-spot-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.wf-spot-actions .button { height: 40px; }
.wf-spot-actions .button:not(.icon-only) { flex: 1; justify-content: center; }
.wf-spot-actions .button.icon-only { width: 40px; }

/* Resource bank mini */
.wf-bank { gap: 0; }
.wf-scoped-search { position: relative; display: flex; align-items: center; height: 36px; margin: 12px 0 12px; padding: 0 14px 0 40px; border-radius: 999px; background: var(--hk-ink-a4); }
.wf-scoped-search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hk-color-text-3); }
.wf-scoped-search input[type="search"] { flex: 1; min-width: 0; height: 34px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 13px; }
.wf-scoped-search:focus-within { box-shadow: inset 0 0 0 2px #2563EB; background: #fff; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wf-chips a { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 12px; font-weight: 600; text-decoration: none; }
.wf-chips a:hover { background: var(--hk-ink-a8); }
.wf-talent { display: grid; margin: 0 -8px; padding: 0; list-style: none; }
.wf-talent li + li { border-top: 1px solid var(--hk-color-divider); }
.wf-talent-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
a.wf-talent-row:hover { background: var(--hk-ink-a4); }
.wf-talent-row .pic { width: 32px !important; height: 32px !important; }
.wf-talent-who { display: grid; min-width: 0; }
.wf-talent-who strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wf-talent-who small { overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wf-talent-match { color: var(--hk-color-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.wf-talent-rate { color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* EditorialTile (photo variant) */
.wf-editorial { justify-content: space-between; overflow: hidden; background: #26303F; color: #FFFFFF; box-shadow: var(--hk-shadow-feature); }
.wf-editorial.is-hidden { display: none; }
.wf-editorial-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-editorial-copy { position: relative; display: grid; gap: 8px; max-width: 70%; }
.wf-editorial-copy small { color: rgba(255,255,255,0.86); font-size: 14px; font-weight: 500; }
.wf-editorial-copy h3 { margin: 0; color: #FFFFFF; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.wf-editorial-copy p { margin: 0; color: rgba(255,255,255,0.72); font-size: 13px; line-height: 1.5; }
.wf-editorial-close { position: absolute; z-index: 2; top: 16px; right: 16px; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; cursor: pointer; }
.wf-editorial-close:hover { background: rgba(255,255,255,0.35); }
.wf-editorial-close:focus-visible, .wf-editorial-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wf-editorial-go { position: relative; margin-top: 24px; }

/* Me scope: the work queue strip (compact KPI tiles, no glow) */
.hk-queue-title { margin: 32px 0 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hk-kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 24px; }
.hk-kpi { position: relative; display: grid; gap: 10px; align-content: start; padding: 16px 20px; border-radius: var(--hk-radius-card); background: #fff; color: var(--hk-color-text); text-decoration: none; box-shadow: var(--hk-shadow-float); transition: transform var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out); }
.hk-kpi:hover { transform: translateY(-2px); box-shadow: var(--hk-shadow-float-hover); }
.hk-kpi-head { display: flex; align-items: center; gap: 10px; }
.hk-kpi-head .hk-icon-tile { width: 24px; height: 24px; border-radius: 8px; }
.hk-kpi-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.hk-kpi-value { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hk-kpi-foot { display: none; }

/* Home below 1280: 8-column pairs with the spine at the inline-end (§4.2) */
@media (max-width: 1279px) {
  .wf-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .wf-row-a > :nth-child(1), .wf-row-b > :nth-child(1) { grid-column: span 5; }
  .wf-row-a > :nth-child(2), .wf-row-b > :nth-child(2) { grid-column: span 3; }
  .wf-row-a > :nth-child(3), .wf-row-b > :nth-child(3) { grid-column: span 8; }
  .wf-row-c > :nth-child(1), .wf-row-c > :nth-child(2) { grid-column: span 4; }
  .wf-row-c > :nth-child(3) { display: none; }
  .wf-ai h3 { max-width: none; padding-right: 64px; }
}
@media (max-width: 860px) {
  .wf, .wf-row, .wf-kpis { gap: 12px; }
  .wf-row { grid-template-columns: minmax(0, 1fr); }
  .wf-row > * { grid-column: auto !important; min-height: 0 !important; }
  .wf-card { padding: 16px; border-radius: 20px; }
  .wf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-kpi { min-height: 112px; gap: 14px; box-shadow: var(--hk-shadow-float); }
  .wf-kpi::after { display: none; }
  .wf-kpi-metric strong { font-size: 28px; }
  .wf-kpi .wf-spark { display: none; }
  .wf-hero { min-height: 320px; }
  .wf-podium { grid-template-columns: repeat(5, 72px); overflow-x: auto; padding-bottom: 4px; }
  .wf-progress-list li { grid-template-columns: 24px minmax(64px, 96px) minmax(0, 1fr) 40px 36px; gap: 8px; }
  .wf-talent-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .wf-talent-match, .wf-talent-rate { display: none; }
  .wf-row-c > :nth-child(3) { display: flex; min-height: 220px !important; }
}
@media (prefers-reduced-motion: reduce) { .wf-card, .wf-ornament, .wf-chev { transition: none !important; } }

/* Me scope details */
.hk-kpi-row.is-queue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .hk-kpi-row.is-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dashboard-attention .dashboard-attention-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; margin: 0 16px; padding: 8px; border: 0; border-radius: 14px; }
.dashboard-attention .dashboard-attention-row + .dashboard-attention-row { border-top: 0; }
.dashboard-attention .dashboard-attention-row:hover { background: var(--hk-ink-a4); }
.dashboard-attention .dashboard-attention-row .pic { width: 40px !important; height: 40px !important; font-size: 14px !important; }
.dashboard-attention-copy strong { font-size: 13px; font-weight: 600; }
.dashboard-attention-copy span, .dashboard-attention-copy small { color: var(--hk-color-text-2); font-size: 12px; }
.dashboard-attention-open { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--hk-ink-a8); color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.dashboard-attention-row:hover .dashboard-attention-open { background: var(--hk-ink-a12); }
.dashboard-attention-links { display: flex; flex-wrap: wrap; gap: 16px; }
.dashboard-attention-links a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }

/* People directory: EmployeeCard grid (cards by default, table on request) */
.tm-view-row { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.tm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-bottom: 16px; }
.tm-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 260px; padding: 20px; border-radius: var(--hk-radius-card); background: #fff; box-shadow: var(--hk-shadow-float); cursor: pointer; transition: transform var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out); }
.tm-card:hover { transform: translateY(-2px); box-shadow: var(--hk-shadow-float-hover); }
.tm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tm-card-top .pic { width: 64px !important; height: 64px !important; font-size: 20px !important; }
.tm-card-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: #F1F5F9; color: #475569; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tm-card-who { display: grid; gap: 2px; }
.tm-card-who strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tm-card-who span { color: var(--hk-color-text-2); font-size: 13px; }
.tm-card-teams { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-card-teams span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 12px; font-weight: 600; }
.tm-card-teams .is-none { color: var(--hk-color-text-2); font-weight: 500; }
.tm-card-meta { display: grid; gap: 4px; color: var(--hk-color-text-2); font-size: 12px; }
.tm-card-meta a, .tm-card-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--hk-color-text-2); text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.tm-card-meta a:hover { color: var(--hk-color-text); text-decoration: underline; }
.tm-card-view { margin-top: auto; align-self: stretch; justify-content: center; }
.content .team-views { padding: 0; background: transparent; border-radius: 0; }
.content .team-position-tabs a { border: 0; background: var(--hk-ink-a4); box-shadow: none; }
.content .team-position-tabs a:hover { background: var(--hk-ink-a8); }
.content .team-position-tabs a.is-on { background: var(--hk-color-ink-900); color: #fff; }

/* Greeting ribbon: the glass silk wave behind the quote (Home only) */
.hk-ribbon { position: absolute; z-index: -1; top: -52px; right: 170px; width: 680px; height: 312px; pointer-events: none; }
.hk-greeting::before { inset: -150px -48px -40px 22%; }
@media (max-width: 1279px) { .hk-ribbon { right: 40px; width: 600px; height: 275px; top: -80px; opacity: .85; } }
@media (max-width: 860px) { .hk-ribbon { right: -120px; top: -70px; width: 460px; height: 210px; opacity: .6; } }
@media print { .hk-ribbon { display: none; } }
.wf-dot.tone-info { background: #94A3B8; }
.wf-progress-list li[data-href] { cursor: pointer; margin: 0 -8px; padding: 0 8px; border-radius: 12px; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
.wf-progress-list li[data-href]:hover { background: var(--hk-ink-a4); }
.wf-progress-list li > .pic { width: 24px !important; height: 24px !important; font-size: 10px !important; }
.wf-progress-list li { grid-template-columns: 24px minmax(80px, 116px) minmax(0, 1fr) 44px 56px; }
.wf-spot-reason { display: inline-flex; align-items: center; gap: 6px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.wf-spot-reason .icon { color: #F5B301; }

/* Operations overview: online list, projects by type, updates, away, waiting */
.wf-face-dot { position: relative; display: inline-grid; width: 40px; height: 40px; }
.wf-face-dot .pic { width: 40px !important; height: 40px !important; font-size: 14px !important; }
.wf-face-dot .wf-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; box-shadow: 0 0 0 2px #fff; }
.wf-dot.is-online { background: #22C55E; }
.wf-dot.is-idle { background: #F59E0B; }
.wf-dot.is-break { background: #F59E0B; }
.wf-person-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
.wf-person-side { display: grid; justify-items: end; gap: 4px; }
.wf-person-side small { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-more-link { display: inline-block; margin-top: 8px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
a.wf-more-link:hover { color: var(--hk-color-text); text-decoration: underline; }
.wf-gauge-text strong small { font-size: 22px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0; }
.wf-late { color: #B91C1C; font-style: normal; font-weight: 600; }
.wf-bar-lg { display: block; height: 8px; margin: 8px 0 8px; }
.wf-item > .logo-tile, .wf-item > img.logo { width: 32px; height: 32px; }
.wf-updates .wf-item, .wf-away .wf-item, .wf-waiting .wf-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
.wf-updates .wf-item > :first-child { justify-self: center; }
.wf-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #F1F5F9; color: #475569; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wf-count.is-on { background: var(--hk-color-ink-900); color: #fff; }
.wf-online .wf-rows, .wf-updates .wf-rows, .wf-away .wf-rows, .wf-waiting .wf-rows { margin-top: 4px; }

/* Team right now: one full-width row with everyone's live status */
.wf-team-now { gap: 20px; }
.wf-team-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.wf-team-head > div { flex: 1 1 220px; min-width: 0; }
.wf-team-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.wf-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-filter-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 13px/1 var(--hk-font-sans); cursor: pointer; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
.wf-filter-chip:hover { background: var(--hk-ink-a8); }
.wf-filter-chip b { font-weight: 600; color: var(--hk-color-text-2); font-variant-numeric: tabular-nums; }
.wf-filter-chip i { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.wf-filter-chip.is-working i { background: #22C55E; }
.wf-filter-chip.is-break i { background: #F59E0B; }
.wf-filter-chip.is-not_started i { background: #EF4444; }
.wf-filter-chip.is-on { background: var(--hk-color-ink-900); color: #fff; }
.wf-filter-chip.is-on b { color: rgba(255,255,255,0.72); }
.wf-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wf-team-grid > li[hidden] { display: none; }
.wf-person { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 14px 16px; border-radius: 18px; background: #F8FAFC; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05); color: inherit; text-decoration: none; transition: background-color var(--hk-motion-fast) var(--hk-ease-out), box-shadow var(--hk-motion-fast) var(--hk-ease-out), transform var(--hk-motion-base) var(--hk-ease-out); }
a.wf-person:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06), var(--hk-shadow-float); transform: translateY(-1px); }
.wf-team-grid .is-working .wf-person { background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(34,197,94,0.25), 0 1px 2px rgba(15,23,42,0.04); }
.wf-team-grid .is-leave .wf-person, .wf-team-grid .is-off .wf-person, .wf-team-grid .is-finished .wf-person { opacity: .78; }
.wf-person-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wf-person .wf-face-dot { width: 44px; height: 44px; flex: none; }
.wf-person .wf-face-dot .pic { width: 44px !important; height: 44px !important; font-size: 15px !important; }
.wf-dot.is-working { background: #22C55E; }
.wf-dot.is-not_started { background: #EF4444; }
.wf-dot.is-leave, .wf-dot.is-finished, .wf-dot.is-off { background: #94A3B8; }
.wf-person-who { display: grid; min-width: 0; }
.wf-person-who strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wf-person-who small { overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wf-person-doing { display: -webkit-box; min-height: 2.7em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--hk-color-text); font-size: 13px; line-height: 1.35; }
.is-leave .wf-person-doing, .is-off .wf-person-doing, .is-finished .wf-person-doing, .is-not_started .wf-person-doing { color: var(--hk-color-text-2); }
.wf-person-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.wf-person-time { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.wf-chip.tone-danger { background: #FEE2E2; color: #B91C1C; }
.wf-team-empty { margin: 0; color: var(--hk-color-text-2); font-size: 13px; }
@media (max-width: 860px) { .wf-team-grid { grid-template-columns: minmax(0, 1fr); } .wf-team-head .button { width: 100%; justify-content: center; } }
.wf-row-c .wf-progress-list li { grid-template-columns: 24px minmax(72px, 1fr) minmax(64px, 1.3fr) 24px 44px; gap: 10px; }
@media (max-width: 860px) { .wf-person { gap: 6px; padding: 12px 14px; } .wf-person-doing { min-height: 0; } }

/* Team right now: a single row of faces with a status dot */
.wf-team-now { gap: 16px; }
.wf-strip-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-legend { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 13px/1 var(--hk-font-sans); cursor: pointer; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
.wf-legend:hover:not(:disabled) { background: var(--hk-ink-a8); }
.wf-legend:disabled { opacity: .45; cursor: default; }
.wf-legend b { font-weight: 600; color: var(--hk-color-text-2); font-variant-numeric: tabular-nums; }
.wf-legend i { width: 9px; height: 9px; border-radius: 50%; }
.wf-legend.is-online i, .wf-sdot.is-online { background: #22C55E; }
.wf-legend.is-break i, .wf-sdot.is-break { background: #F59E0B; }
.wf-legend.is-leave i, .wf-sdot.is-leave { background: #8B5CF6; }
.wf-legend.is-offline i, .wf-sdot.is-offline { background: #CBD5E1; }
.wf-legend.is-on { background: var(--hk-color-ink-900); color: #fff; }
.wf-legend.is-on b { color: rgba(255,255,255,0.72); }
.wf-strip-wrap { position: relative; margin: 0 -24px; padding: 0 24px; overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.wf-strip { display: flex; gap: 8px; margin: 0; padding: 4px 0 8px; list-style: none; }
.wf-strip > li { flex: none; }
.wf-strip > li[hidden] { display: none; }
.wf-strip-person { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 10px 4px; border-radius: 16px; color: inherit; text-decoration: none; text-align: center; transition: background-color var(--hk-motion-fast) var(--hk-ease-out); }
a.wf-strip-person:hover { background: var(--hk-ink-a4); }
.wf-strip-face { position: relative; display: inline-grid; width: 48px; height: 48px; }
.wf-strip-face .pic { width: 48px !important; height: 48px !important; font-size: 16px !important; }
.wf-sdot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff; }
.wf-strip .is-online .wf-strip-face .pic { outline: 2px solid #22C55E; outline-offset: 2px; }
.wf-strip .is-offline .wf-strip-face .pic { filter: grayscale(.6); opacity: .7; }
.wf-strip-name { max-width: 100%; overflow: hidden; margin-top: 4px; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wf-strip-state { color: var(--hk-color-text-2); font-size: 11px; font-weight: 500; white-space: nowrap; }
.is-online .wf-strip-state { color: #047857; }
.is-break .wf-strip-state { color: #B45309; }
.is-leave .wf-strip-state { color: #6D28D9; }
@media (max-width: 860px) { .wf-strip-wrap { margin: 0 -16px; padding: 0 16px; } .wf-strip-person { width: 72px; } }
.wf-row-c .wf-progress-list li { grid-template-columns: 24px minmax(96px, 1.3fr) minmax(56px, 1fr) 24px 40px; }

/* Two-up rows below the team row */
.wf-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.wf-row-2 > :only-child { grid-column: 1 / -1; }
.wf-row-2 > .wf-card { min-height: 300px; }
.wf-row-2 .wf-head { margin-bottom: 12px; }
@media (max-width: 1023px) { .wf-row-2 { grid-template-columns: minmax(0, 1fr); } .wf-row-2 > .wf-card { min-height: 0; } }

/* Needs your attention */
.wf-insight-strip { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 28px; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: radial-gradient(50% 80% at 10% 0, rgba(255,255,255,0.6), transparent 70%), var(--hk-gradient-ai); }
.wf-insight-strip[hidden] { display: none; }
.wf-insight-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,0.7); color: #6D28D9; }
.wf-insight-copy { display: grid; gap: 2px; min-width: 0; }
.wf-insight-copy strong { font-size: 14px; font-weight: 600; }
.wf-insight-copy small { color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.4; }
.wf-insight-close { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.55); color: var(--hk-color-text-2); cursor: pointer; }
.wf-insight-close:hover { background: #fff; color: var(--hk-color-text); }
.wf-queue .wf-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
.wf-queue-end { display: inline-flex; align-items: center; gap: 12px; }
.wf-queue-go { display: inline-flex; align-items: center; gap: 2px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.wf-queue-go .icon { transform: rotate(-90deg); }
a.wf-item:hover .wf-queue-go { color: var(--hk-color-text); }
.wf-count.is-danger { background: #DC2626; }

/* Projects today */
.wf-type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.wf-type-chips a { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.wf-type-chips a:hover { background: var(--hk-ink-a8); }
.wf-type-chips .hk-icon-tile.is-sm { width: 22px; height: 22px; border-radius: 999px; }
.wf-type-chips b { color: var(--hk-color-text-2); font-weight: 600; }
.wf-project-row { grid-template-columns: 36px minmax(0, 1fr) 120px 28px 82px !important; }
.wf-project-row > .logo-tile, .wf-project-row > img { width: 36px; height: 36px; }
.wf-project-progress { display: grid; gap: 4px; }
.wf-project-progress .wf-bar { height: 6px; }
.wf-project-progress small { color: var(--hk-color-text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.wf-update-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F1F5F9; color: #94A3B8; }
.wf-update-mark.is-done { background: #D1FAE5; color: #047857; }
.wf-project-row .wf-chip { justify-self: end; }

/* Coming up */
.wf-days { display: grid; gap: 12px; }
.wf-day-label { margin: 0 0 2px; color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wf-day-label.is-today { color: var(--hk-color-text); }
.wf-day .wf-rows { margin-top: 0; }
.wf-event { grid-template-columns: 72px minmax(0, 1fr) auto !important; min-height: 44px !important; }
.wf-event-time { color: var(--hk-color-text); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Social and celebrations */
.wf-social .wf-item, .wf-celebrate .wf-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
.wf-social .wf-item > .logo-tile, .wf-social .wf-item > img { width: 36px; height: 36px; }
.wf-celebrate-when { display: inline-flex; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wf-celebrate-when.is-today { color: var(--hk-color-text); }
@media (max-width: 860px) {
  .wf-project-row { grid-template-columns: 36px minmax(0, 1fr) auto !important; }
  .wf-project-progress, .wf-update-mark { display: none; }
  .wf-insight-strip { grid-template-columns: 32px minmax(0, 1fr) 28px; }
  .wf-insight-strip .button { grid-column: 2; justify-self: start; }
  .wf-queue-go { display: none; }
}
.wf-clear-line { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.5; }
.wf-clear-line .icon { flex: none; margin-top: 2px; color: #047857; }
.wf-event .wf-row-copy small { color: var(--hk-color-text-2); }

/* ===== My calendar ===== */
.k-meeting { --k: var(--hk-hue-development); --k-bg: var(--hk-hue-development-100); --k-tx: var(--hk-hue-development-700); }
.k-hr { --k: var(--hk-hue-marketing); --k-bg: var(--hk-hue-marketing-100); --k-tx: var(--hk-hue-marketing-700); }
.k-interview { --k: var(--hk-hue-design); --k-bg: var(--hk-hue-design-100); --k-tx: var(--hk-hue-design-700); }
.k-event { --k: var(--hk-hue-seo); --k-bg: var(--hk-hue-seo-100); --k-tx: var(--hk-hue-seo-700); }
.k-leave { --k: var(--hk-hue-operations); --k-bg: var(--hk-hue-operations-100); --k-tx: var(--hk-hue-operations-700); }
.k-holiday { --k: var(--hk-hue-sales); --k-bg: var(--hk-hue-sales-100); --k-tx: var(--hk-hue-sales-700); }
.k-task { --k: #64748B; --k-bg: #EEF1F5; --k-tx: #334155; }
.k-project { --k: var(--hk-state-danger); --k-bg: var(--hk-state-danger-tint); --k-tx: var(--hk-state-danger-text); }

.pc-person select { height: 40px; min-width: 200px; padding: 0 36px 0 14px; border: 1px solid var(--hk-border-input); border-radius: var(--hk-radius-pill); background: #fff; color: var(--hk-color-text); font: 500 14px/1 var(--hk-font-sans); }
.pc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.pc-side { display: grid; gap: 24px; min-width: 0; }
.pc-month { padding: 20px 20px 16px; }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.pc-nav { display: flex; align-items: center; gap: 8px; }
.pc-nav h2 { margin: 0 6px; min-width: 150px; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pc-navbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); text-decoration: none; transition: background var(--hk-motion-fast); }
.pc-navbtn:hover { background: var(--hk-ink-a8); }
.pc-navbtn .icon { transform: rotate(-90deg); }
.pc-navbtn.is-prev .icon { transform: rotate(90deg); }
.pc-today { margin-left: 4px; padding: 8px 14px; border-radius: var(--hk-radius-pill); background: var(--hk-surface-ink, #0B0F19); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.pc-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--hk-color-divider); border-radius: var(--hk-radius-pill); background: #fff; color: var(--hk-color-text-3); font: 500 12px/1 var(--hk-font-sans); cursor: pointer; transition: all var(--hk-motion-fast); }
.pc-chip b { font-weight: 600; color: inherit; opacity: .7; }
.pc-chip .pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-color-divider); }
.pc-chip.is-on { border-color: transparent; background: var(--k-bg); color: var(--k-tx); }
.pc-chip.is-on .pc-dot { background: var(--k); }
.pc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pc-dow { padding: 0 8px 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pc-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 118px; padding: 8px; border: 1px solid var(--hk-color-divider); border-radius: 14px; background: #fff; color: var(--hk-color-text); text-align: left; font: inherit; cursor: pointer; transition: border-color var(--hk-motion-fast), box-shadow var(--hk-motion-fast); }
.pc-day:hover { border-color: var(--hk-ink-a12); box-shadow: var(--hk-shadow-hairline); }
.pc-day.is-off { background: repeating-linear-gradient(135deg, #fafbfc 0 8px, #f4f6f9 8px 9px); }
.pc-day.is-out { opacity: .45; }
.pc-day.is-selected { border-color: var(--hk-color-ink-900, #111827); box-shadow: 0 0 0 1px var(--hk-color-ink-900, #111827); }
.pc-num { display: inline-grid; place-items: center; align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--hk-radius-pill); font-size: 13px; font-weight: 600; }
.pc-day.is-today .pc-num { background: var(--hk-color-ink-900, #111827); color: #fff; }
.pc-offtag { position: absolute; top: 12px; right: 10px; color: var(--hk-color-text-3); font-size: 10.5px; font-weight: 500; }
.pc-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-ev { display: block; min-width: 0; padding: 3px 6px 3px 8px; border-radius: 6px; background: var(--k-bg); box-shadow: inset 2px 0 0 var(--k); color: var(--k-tx); font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.pc-ev em, .pc-ev time { display: block; overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.pc-ev time { font-size: 10.5px; font-weight: 700; opacity: .85; }
.pc-ev.is-done { opacity: .6; }
.pc-ev.is-done em { text-decoration: line-through; }
.pc-ev[hidden], .pc-row[hidden], .pc-dots i[hidden] { display: none !important; }
.pc-more { padding: 0 6px; color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; }
.pc-dots { display: none; }

.pc-dayview .wf-head, .pc-soon .wf-head, .pc-link .wf-head { margin-bottom: 14px; }
.pc-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-row-in { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--hk-ink-a3); box-shadow: inset 3px 0 0 var(--k); color: var(--hk-color-text); text-decoration: none; transition: background var(--hk-motion-fast); }
a.pc-row-in:hover { background: var(--k-bg); }
.pc-row-time { display: grid; gap: 1px; color: var(--hk-color-text); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.pc-row-time small { color: var(--hk-color-text-3); font-size: 11px; font-weight: 500; }
.pc-row-copy { display: grid; min-width: 0; gap: 2px; }
.pc-row-copy strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pc-row-copy small { overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.pc-row.is-done .pc-row-copy strong { color: var(--hk-color-text-3); text-decoration: line-through; }
.pc-join { padding: 5px 10px; border-radius: var(--hk-radius-pill); background: var(--k); color: #fff; font-size: 11.5px; font-weight: 600; }
.pc-free { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--hk-ink-a3); }
.pc-free p { margin: 0; color: var(--hk-color-text-2); font-size: 13px; }
.pc-free[hidden] { display: none; }
.pc-soon-days { display: grid; gap: 14px; max-height: 460px; overflow: auto; margin-right: -8px; padding-right: 8px; }
.pc-soon-day h3 { margin: 0 0 6px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pc-soon-day h3.is-today { color: var(--hk-color-text); }
.pc-link-copy { margin: 0 0 14px; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.pc-wide { width: 100%; justify-content: center; }
.pc-url { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--hk-border-input); border-radius: 14px; background: #fff; }
.pc-url.is-new { border-color: var(--hk-state-success); box-shadow: 0 0 0 3px var(--hk-state-success-tint); }
.pc-url input { flex: 1; min-width: 0; padding: 0 8px; border: 0; background: none; color: var(--hk-color-text-2); font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; outline: none; }
.pc-open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pc-open .button { justify-content: center; }
.pc-how { margin-top: 14px; font-size: 13px; }
.pc-how summary { cursor: pointer; color: var(--hk-color-text); font-weight: 600; }
.pc-how ol { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 18px; color: var(--hk-color-text-2); line-height: 1.45; }
.pc-note { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12px; line-height: 1.45; }
.pc-note .icon { flex: none; margin-top: 1px; }
.pc-link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-link-actions form { margin: 0; }

@media (max-width: 1279px) {
  .pc { grid-template-columns: minmax(0, 1fr) 320px; }
  .pc-day { min-height: 104px; }
}
@media (max-width: 1023px) {
  .pc { grid-template-columns: minmax(0, 1fr); }
  .pc-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 640px) {
  .pc-month { padding: 16px 12px 12px; }
  .pc-head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .pc-head > * { min-width: 0; }
  .pc-nav { justify-content: space-between; }
  .pc-nav h2 { min-width: 0; font-size: 16px; }
  .pc-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; scrollbar-width: none; }
  .pc-chip { flex: none; }
  .pc-grid { gap: 4px; }
  .pc-dow { padding: 0 0 4px; text-align: center; font-size: 10px; }
  .pc-day { align-items: center; min-height: 54px; padding: 6px 2px; border-radius: 10px; }
  .pc-num { align-self: center; min-width: 24px; height: 24px; font-size: 12px; }
  .pc-evs, .pc-more, .pc-offtag { display: none !important; }
  .pc-dots { display: flex; justify-content: center; gap: 3px; height: 6px; }
  .pc-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--k); }
  .pc-side { grid-template-columns: 1fr; }
  .pc-person, .pc-person select { width: 100%; }
}

/* Calendar week view */
.cw-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cw-seg a { height: 32px; padding: 0 16px; }
.cw-addbtn { height: 38px; }
.pc-head > .pc-filters { flex-basis: 100%; }
.pc.is-week { grid-template-columns: minmax(0, 1fr) 320px; }
.pc-nav h2.cw-title { min-width: 190px; }
.cw { --cw-gut: 56px; border: 1px solid var(--hk-ink-a8); border-radius: 16px; overflow: hidden; background: #fff; }
.cw-head, .cw-all, .cw-body { display: grid; grid-template-columns: var(--cw-gut) repeat(7, minmax(0, 1fr)); }
.cw-head { border-bottom: 1px solid var(--hk-ink-a8); background: var(--hk-ink-a2, #FAFBFC); }
.cw-dh { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 0; border-left: 1px solid var(--hk-ink-a6); background: none; color: var(--hk-color-text-2); font: 500 12px/1 var(--hk-font-sans); cursor: pointer; }
.cw-dh b { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; color: var(--hk-color-text); font-size: 19px; font-weight: 600; }
.cw-dh:hover b { background: var(--hk-ink-a4); }
.cw-dh.is-today b { background: var(--hk-state-danger, #DC2626); color: #fff; }
.cw-dh.is-selected { box-shadow: inset 0 -2px 0 var(--hk-color-text); color: var(--hk-color-text); }
.cw-dh.is-off { color: var(--hk-color-text-3, #94A3B8); }
.cw-all { border-bottom: 1px solid var(--hk-ink-a8); }
.cw-lab { padding: 8px 6px; color: var(--hk-color-text-2); font-size: 10.5px; font-weight: 600; text-align: right; }
.cw-allcell { display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 34px; padding: 4px; border-left: 1px solid var(--hk-ink-a6); }
.cw-allcell[data-cw-add-day] { padding-bottom: 12px; cursor: copy; }
.cw-allcell[data-cw-add-day]:hover { background: var(--hk-ink-a3); }
.cw-pill { display: block; min-width: 0; overflow: hidden; padding: 3px 7px; border-radius: 6px; background: var(--k-bg); box-shadow: inset 2px 0 0 var(--k); color: var(--k-tx); font-size: 11.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; cursor: pointer; }
.cw-pill.is-done { opacity: .6; text-decoration: line-through; }
.cw-body { position: relative; }
.cw-hours > div { height: var(--row); padding-right: 8px; color: var(--hk-color-text-2); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; transform: translateY(-6px); }
.cw-hours > div:first-child { transform: none; padding-top: 2px; }
.cw-col { position: relative; height: calc(var(--rows) * var(--row)); border-left: 1px solid var(--hk-ink-a6); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--hk-ink-a6) calc(var(--row) - 1px), var(--hk-ink-a6) var(--row)); }
.cw-col.is-off { background-color: var(--hk-ink-a3); }
.cw-col[title] { cursor: copy; }
.cw-work { position: absolute; left: 0; right: 0; background: rgba(37, 99, 235, .035); pointer-events: none; }
.cw-ev { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; padding: 4px 7px; border-radius: 8px; background: var(--k-bg); box-shadow: inset 3px 0 0 var(--k), 0 0 0 1px #fff; color: var(--k-tx); font-size: 11.5px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.cw-ev b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.cw-ev span { overflow: hidden; font-size: 10.5px; font-weight: 600; opacity: .8; white-space: nowrap; text-overflow: ellipsis; }
a.cw-ev:hover { z-index: 2; filter: brightness(.97); }
.cw-ev.is-flow { position: static; padding: 8px 10px; font-size: 13px; }
.cw-ev[hidden], .cw-pill[hidden], .cw-ghost[hidden] { display: none !important; }
.cw-now { position: absolute; z-index: 3; left: -1px; right: 0; height: 2px; background: var(--hk-state-danger, #DC2626); pointer-events: none; }
.cw-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.cw-ghost { position: absolute; z-index: 0; left: 3px; right: 3px; height: calc(var(--row) / 2 - 2px); padding: 3px 7px; border: 1.5px dashed var(--hk-ink-a12, rgba(15,23,42,.18)); border-radius: 8px; color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; pointer-events: none; }
.cw-mobile { display: none; }
.cw-mdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.cw-mdays button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 0 10px; border: 0; border-radius: 12px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font: 600 10.5px/1 var(--hk-font-sans); text-transform: uppercase; cursor: pointer; }
.cw-mdays b { color: var(--hk-color-text); font-size: 15px; text-transform: none; }
.cw-mdays i { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--hk-color-text-2); }
.cw-mdays button.is-on { background: var(--hk-surface-ink, #0B0F19); color: rgba(255,255,255,.75); }
.cw-mdays button.is-on b { color: #fff; }
.cw-mdays button.is-on i { background: #fff; }
.cw-mlist { display: grid; gap: 8px; }
.cw-mrow { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 10px; }
.cw-mrow > .t { padding-top: 9px; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cw-mrow > span:last-child { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cw-mrow .cw-ev.is-flow { flex: 1; }
.cw-gap { display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 12px; border: 1.5px dashed var(--hk-ink-a12, rgba(15,23,42,.18)); border-radius: 10px; background: none; color: var(--hk-color-text-2); font: 500 12.5px/1.3 var(--hk-font-sans); text-align: left; cursor: pointer; }
.cw-gap:hover { background: var(--hk-ink-a3); color: var(--hk-color-text); }
.pc-dayview .wf-head { align-items: flex-start; }
/* Quick add */
.cw-add .dialog-head .hint:empty { display: none; }
.cw-tabs { display: flex; gap: 4px; margin: 0 32px 4px; padding: 3px; border-radius: var(--hk-radius-pill); background: var(--hk-ink-a4); }
.cw-tabs button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; border-radius: var(--hk-radius-pill); background: none; color: var(--hk-color-text-2); font: 600 13px/1 var(--hk-font-sans); cursor: pointer; }
.cw-tabs button.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.cw-add form[hidden], .cw-add [data-cw-half][hidden] { display: none !important; }
.cw-row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.cw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cw-zone { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.cw-people { margin-bottom: 16px; border-radius: 12px; background: var(--hk-ink-a4); }
.cw-people > summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; }
.cw-people > summary::-webkit-details-marker { display: none; }
.cw-people > summary b { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.cw-plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; max-height: 180px; overflow: auto; padding: 4px 14px 12px; border-top: 1px solid var(--hk-ink-a8); }
.cw-plist label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
@media (max-width: 1023px) { .pc.is-week { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .cw { display: none; }
  .cw-mobile { display: block; }
  .pc.is-week .pc-dayview { display: none; }
}
@media (max-width: 640px) {
  .cw-tools { margin: 0; }
  .cw-tools .cw-seg { flex: 1; }
  .cw-tools .cw-seg a { flex: 1; justify-content: center; }
  .pc-nav h2.cw-title { min-width: 0; flex: 1; white-space: nowrap; }
  .cw-yr { display: none; }
  .cw-row3 { grid-template-columns: 1fr 1fr; }
  .cw-row3 > .field:first-child { grid-column: 1 / -1; }
  .cw-plist { grid-template-columns: 1fr; }
}

/* ===== Client health ===== */
@media (min-width: 861px) { .client-summary-strip.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hl-card { margin: 0 0 16px; padding: 22px 24px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.hl-top { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.hl-badge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; }
.hl-badge.is-good { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.hl-badge.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.hl-badge.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.hl-head { flex: 1; min-width: 0; }
.hl-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hl-head p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; }
.hl-trend { display: flex; align-items: center; gap: 6px; flex: none; }
.hl-trend span { margin-right: 4px; color: var(--hk-color-text-2); font-size: 12.5px; }
.hl-trend i { width: 26px; height: 8px; border-radius: 4px; }
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-sig { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text); text-decoration: none; transition: filter var(--hk-motion-fast); }
a.hl-sig:hover { filter: brightness(.98); }
.hl-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; color: var(--hk-color-text-2); box-shadow: var(--hk-shadow-hairline); }
.hl-copy { min-width: 0; }
.hl-copy b { display: block; font-size: 13.5px; font-weight: 600; }
.hl-copy small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; line-height: 1.4; }
.hl-sig.is-risk { background: var(--hk-state-danger-tint); }
.hl-sig.is-risk .hl-ic { color: var(--hk-state-danger-text); }
.hl-sig.is-watch { background: var(--hk-state-warning-tint); }
.hl-sig.is-watch .hl-ic { color: var(--hk-state-warning-text); }
.hl-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hl-go .icon { transform: rotate(-90deg); }
.hl-ok { display: inline-flex; color: var(--hk-state-success-text); }
.hl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.hl-foot a { color: var(--hk-color-text); font-weight: 600; }
.hl-foot > span:last-child { flex: none; }
/* In the clients list */
.hl-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hl-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hl-chip.is-good { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.hl-chip.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.hl-chip.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.client-health-cell .sub { display: block; max-width: 240px; margin-top: 5px; white-space: normal !important; line-height: 1.35; }
.hl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hl-filters a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: #fff; box-shadow: var(--hk-shadow-hairline); color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.hl-filters a:hover { color: var(--hk-color-text); }
.hl-filters a.is-on { background: var(--hk-surface-ink, #0B0F19); color: #fff; }
.hl-filters a b { font-weight: 700; }
.hl-filters i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 860px) {
  .client-directory-table.has-health tbody tr { grid-template-areas: "client client" "health health" "contact status" "projects portal"; }
  .client-directory-table .client-health-cell { grid-area: health; height: auto !important; }
  .client-health-cell .sub { max-width: none; }
  .hl-grid { grid-template-columns: minmax(0, 1fr); }
  .hl-top { flex-wrap: wrap; }
  .hl-trend { width: 100%; }
}
@media (max-width: 540px) {
  .client-directory-table.has-health tbody tr { grid-template-areas: "client" "health" "contact" "projects" "portal" "status"; }
}
@media (max-width: 640px) {
  .hl-card { padding: 18px; }
  .hl-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===== Settings: rules and alerts ===== */
.ru-intro { margin: 0 0 16px; color: var(--hk-color-text-2); font-size: 13.5px; }
.ru { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.ru-main { min-width: 0; }
.ru-card { margin: 0 0 16px; padding: 22px 24px 8px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ru-h { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.ru-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ru-h small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ru-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; }
.ru-ic.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ru-ic.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.ru-ic.is-info { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.ru-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hk-ink-a6); }
.ru-h + .ru-row { border-top: 0; }
.ru-row p { flex: 1; margin: 0; font-size: 14px; line-height: 2; }
.ru-box { position: relative; display: inline-flex; align-items: center; margin: 0 3px; vertical-align: middle; }
.ru-box input { width: 62px; height: 34px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 14px/1 var(--hk-font-sans); text-align: center; -moz-appearance: textfield; }
.ru-box i + input, .ru-box input:has(+ i) { padding-right: 20px; }
.ru-box i { position: absolute; right: 9px; color: var(--hk-color-text-2); font-size: 12.5px; font-style: normal; font-weight: 600; pointer-events: none; }
.ru-box input::-webkit-outer-spin-button, .ru-box input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.ru-box input:focus { outline: none; box-shadow: 0 0 0 2px var(--hk-color-focus, #2563EB); }
.ru-box.is-changed input { background: #EEF2FF; box-shadow: inset 0 0 0 1.5px #6366F1; color: #3730A3; }
.ru-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; line-height: 1; vertical-align: 1px; }
.ru-tag.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.ru-tag.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ru-def { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--hk-color-text-2); font: 500 12px/1.2 var(--hk-font-sans); white-space: nowrap; cursor: default; }
.ru-def .icon { display: none; }
.ru-def.is-on { color: #4338CA; font-weight: 600; cursor: pointer; }
.ru-def.is-on .icon { display: inline-block; }
.ru-def.is-on:hover { background: #EEF2FF; }
.ru-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px 10px 20px; border-radius: 20px; background: var(--hk-surface-ink, #0B0F19); color: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .28); font-size: 13.5px; }
.ru-bar[hidden] { display: none; }
.ru-sp { flex: 1; }
.ru-bar .button { background: rgba(255, 255, 255, .12); color: #fff; }
.ru-bar .button.primary { background: #fff; color: #0B0F19; }
.ru-side { position: sticky; top: 20px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ru-side h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.ru-side p { margin: 0 0 12px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.ru-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hk-ink-a6); font-size: 13.5px; }
.ru-stat b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ru-stat s { margin-right: 8px; color: var(--hk-color-text-3, #94A3B8); font-size: 12.5px; }
.ru-side .ru-note { margin: 14px 0 12px; }
.ru-all { width: 100%; justify-content: center; }
@media (max-width: 1100px) {
  .ru { grid-template-columns: minmax(0, 1fr); }
  .ru-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .ru-card { padding: 18px 18px 6px; }
  .ru-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ru-def { padding-left: 0; }
}

/* ===== Billing: profitability ===== */
.pf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.pf-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.pf-tile { min-width: 0; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); }
.pf-tile b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-tile b.is-gain { color: var(--hk-state-success-text); }
.pf-tile b.is-loss { color: var(--hk-state-danger-text); }
.pf-tile span { color: var(--hk-color-text-2); font-size: 12.5px; }
.pf-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; }
.pf-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; }
.pf-in b { display: block; font-size: 13.5px; }
.pf-in small { color: var(--hk-color-text-2); font-size: 12.5px; }
.pf-in small a { color: inherit; text-decoration: underline; }
.pf-in-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fff; }
.pf-in.is-risk { background: var(--hk-state-danger-tint); } .pf-in.is-risk .pf-in-ic { color: var(--hk-state-danger-text); }
.pf-in.is-watch { background: var(--hk-state-warning-tint); } .pf-in.is-watch .pf-in-ic { color: var(--hk-state-warning-text); }
.pf-in.is-ok { background: var(--hk-state-success-tint); } .pf-in.is-ok .pf-in-ic { color: var(--hk-state-success-text); }
.pf-card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.pf-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.pf-card > header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.pf-card > header span { color: var(--hk-color-text-2); font-size: 12.5px; }
.pf-wrap { overflow-x: auto; }
.pf-t { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; }
.pf-t th { padding: 10px 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.pf-t th:first-child, .pf-t td:first-child { padding-left: 24px; }
.pf-t td { padding: 12px 14px; border-top: 1px solid var(--hk-ink-a6); font-variant-numeric: tabular-nums; }
.pf-t .num { text-align: right; white-space: nowrap; }
.pf-row { cursor: pointer; }
.pf-row:hover td { background: var(--hk-ink-a2, #FAFBFC); }
.pf-row:focus-visible { outline: 2px solid var(--hk-color-focus, #2563EB); outline-offset: -2px; }
.pf-caret { display: inline-flex; margin-right: 6px; color: var(--hk-color-text-2); vertical-align: -2px; transform: rotate(-90deg); transition: transform var(--hk-motion-fast); }
.pf-row[aria-expanded="true"] .pf-caret { transform: none; }
.pf-row.is-loss .pf-p, .pf-t td.is-loss { color: var(--hk-state-danger-text); font-weight: 600; }
.pf-fee { margin-left: 8px; color: var(--hk-color-text-2); font-size: 11.5px; font-style: italic; }
.pf-sub td { padding-top: 8px; padding-bottom: 8px; background: #FAFBFC; color: var(--hk-color-text-2); font-size: 12.5px; }
.pf-sub td:first-child { padding-left: 46px; }
.pf-people td { color: var(--hk-color-text-2); }
.pf-people td > * { margin-right: 14px; }
.pf-people b { color: var(--hk-color-text); font-weight: 600; }
.pf-rate { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.pf-rate.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.pf-rate.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.pf-rate.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.pf-rate.is-none { background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-weight: 600; }
.pf-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; vertical-align: middle; }
.pf-bars i { width: 9px; border-radius: 2px; }
.pf-bars i.is-gain { background: #22C55E; }
.pf-bars i.is-loss { background: #EF4444; }
.pf-bars i.is-none { background: var(--hk-ink-a8); }
.pf-bars i.is-dim { opacity: .4; }
@media (max-width: 1100px) { .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-tile b { font-size: 18px; }
  .pf-card > header span { display: none; }
  .pf-t td:first-child { min-width: 190px; }
  .pf-fee { display: block; margin: 2px 0 0 20px; }
}

/* ===== Billing: client contract ===== */
.ct { margin: 0 0 16px; padding: 22px 24px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ct-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ct-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.ct-head form { margin: 0; }
.ct-sp { flex: 1; }
.ct-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.ct-sum { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); }
.ct-sum.is-watch { background: var(--hk-state-warning-tint); }
.ct-sum.is-risk { background: var(--hk-state-danger-tint); }
.ct-sum.is-ok { background: var(--hk-state-success-tint); }
.ct-days { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 16px; background: #fff; font-size: 20px; font-weight: 700; line-height: 1.05; text-align: center; }
.ct-days small { display: block; font-size: 10.5px; font-weight: 600; }
.ct-sum.is-watch .ct-days { color: var(--hk-state-warning-text); }
.ct-sum.is-risk .ct-days { color: var(--hk-state-danger-text); }
.ct-sum.is-ok .ct-days { color: var(--hk-state-success-text); }
.ct-sum b { display: block; font-size: 14.5px; }
.ct-sum span { color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; }
.ct-empty { margin: 0 0 14px; color: var(--hk-color-text-2); font-size: 13.5px; }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.ct-grid .field { min-width: 0; }
.ct-wide { grid-column: span 2; }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--hk-ink-a6); }
.ct-foot .hint { margin: 0; }
.ct-hist { margin: 14px 0 0; padding: 0; color: var(--hk-color-text-2); font-size: 12.5px; list-style: none; }
.ct-hist li + li { margin-top: 4px; }
.ct-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ct-chip.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.ct-chip.is-risk { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ct-chip.is-ok { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
@media (max-width: 860px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-wide { grid-column: auto; } .ct-head { flex-wrap: wrap; } }

/* ===== Reports: utilisation ===== */
.ut-target-note { margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; }
.ut-target-note a { color: inherit; text-decoration: underline; }
.ut-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.ut-tile { min-width: 0; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ut-tile b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ut-tile b.is-ok { color: var(--hk-state-success-text); }
.ut-tile b.is-watch { color: var(--hk-state-warning-text); }
.ut-tile b.is-low { color: var(--hk-state-danger-text); }
.ut-tile span { color: var(--hk-color-text-2); font-size: 12.5px; }
.ut-ins { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; }
.ut-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; }
.ut-in b { display: block; font-size: 13.5px; }
.ut-in small { color: var(--hk-color-text-2); font-size: 12.5px; }
.ut-in-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #fff; }
.ut-in.is-low { background: var(--hk-state-danger-tint); } .ut-in.is-low .ut-in-ic { color: var(--hk-state-danger-text); }
.ut-in.is-watch { background: var(--hk-state-warning-tint); } .ut-in.is-watch .ut-in-ic { color: var(--hk-state-warning-text); }
.ut-in.is-ok { background: var(--hk-state-success-tint); } .ut-in.is-ok .ut-in-ic { color: var(--hk-state-success-text); }
.ut-card { overflow: hidden; margin: 0 0 16px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ut-card > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 20px 24px 10px; }
.ut-card > header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ut-card > header span { color: var(--hk-color-text-2); font-size: 12.5px; }
.ut-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 0 24px 12px; color: var(--hk-color-text-2); font-size: 12px; }
.ut-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.ut-legend i.is-client, .ut-bar .is-client { background: #22C55E; }
.ut-legend i.is-internal, .ut-bar .is-internal { background: #60A5FA; }
.ut-legend i.is-idle { background: var(--hk-ink-a8); }
.ut-legend i.is-line { width: 2px; background: #0F172A; }
.ut-rows { overflow-x: auto; }
.ut-row { display: grid; grid-template-columns: 240px minmax(220px, 1fr) 80px 80px 150px; align-items: center; gap: 16px; min-width: 820px; padding: 12px 24px; border-top: 1px solid var(--hk-ink-a6); font-size: 13.5px; }
.ut-row.is-head { padding-top: 10px; padding-bottom: 10px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ut-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.ut-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--hk-color-text); text-decoration: none; }
.ut-who b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ut-who small { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ut-who:hover b { text-decoration: underline; }
.ut-mid { min-width: 0; }
.ut-mid small { display: block; margin-top: 5px; color: var(--hk-color-text-2); font-size: 11.5px; }
.ut-bar { position: relative; display: flex; height: 14px; overflow: visible; border-radius: 7px; background: var(--hk-ink-a4); }
.ut-bar span { height: 100%; }
.ut-bar span:first-child { border-radius: 7px 0 0 7px; }
.ut-target { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #0F172A; }
.ut-score { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ut-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 26px; padding: 0 8px; border-radius: 13px; font-size: 12.5px; font-weight: 700; }
.ut-pill.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.ut-pill.is-watch { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.ut-pill.is-low { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ut-pill.is-none { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.ut-trend { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; }
.ut-trend i { width: 8px; border-radius: 2px; }
.ut-trend i.is-ok { background: #22C55E; } .ut-trend i.is-watch { background: #F59E0B; } .ut-trend i.is-low { background: #EF4444; } .ut-trend i.is-none { background: var(--hk-ink-a8); }
.ut-trend i.is-dim { opacity: .55; }
@media (max-width: 1100px) { .ut-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ut-tile b { font-size: 20px; } .ut-target-note { margin-left: 0; width: 100%; } }

/* ===== Estimates: suggestions and kinds of task ===== */
.es-hint { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; padding: 10px 12px; border-radius: 12px; background: #EEF2FF; color: #3730A3; font-size: 12.5px; line-height: 1.4; }
.es-hint[hidden] { display: none; }
.es-ic { display: inline-flex; flex: none; }
.es-copy { flex: 1; min-width: 0; }
.es-copy b { display: block; font-size: 13px; }
.es-copy small { display: block; color: #4F46E5; }
.es-hint .button { flex: none; background: #fff; color: #3730A3; box-shadow: 0 0 0 1px #C7D2FE; }
.es-card { overflow: hidden; margin: 0 0 16px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.es-card > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 20px 24px 12px; }
.es-card > header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.es-card > header span { color: var(--hk-color-text-2); font-size: 12.5px; }
.es-wrap { overflow-x: auto; }
.es-t { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.es-t th { padding: 10px 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.es-t th:first-child, .es-t td:first-child { padding-left: 24px; }
.es-t td { padding: 12px 14px; border-top: 1px solid var(--hk-ink-a6); font-variant-numeric: tabular-nums; }
.es-t .num { text-align: right; white-space: nowrap; }
.es-scale { position: relative; display: inline-block; width: 160px; height: 10px; border-radius: 5px; background: var(--hk-ink-a4); vertical-align: middle; }
.es-scale i { position: absolute; top: -3px; left: 50%; width: 2px; height: 16px; background: #0F172A; }
.es-scale b { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.es-scale b.is-ok, .es-acc.is-ok { background: var(--hk-state-success-tint); }
.es-scale b.is-ok { background: #22C55E; } .es-scale b.is-warn { background: #F59E0B; } .es-scale b.is-bad { background: #EF4444; }
.es-acc { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 26px; padding: 0 8px; border-radius: 13px; font-size: 12.5px; font-weight: 700; }
.es-acc.is-ok { color: var(--hk-state-success-text); }
.es-acc.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.es-acc.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.es-foot { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--hk-ink-a6); color: var(--hk-color-text-2); font-size: 12.5px; }

/* ===== Settings: setup checklist ===== */
.su { margin: 0 0 16px; padding: 22px 24px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.su-top { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; }
.su-ring { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#22C55E 0 var(--p), #E2E8F0 var(--p) 100%); }
.su-ring > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.05; text-align: center; }
.su-ring small { display: block; color: var(--hk-color-text-2); font-size: 9.5px; font-weight: 600; }
.su-top h2 { margin: 0; font-size: 18px; font-weight: 600; }
.su-top p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; }
.su-g { margin: 16px 0 0; }
.su-g h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.su-r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--hk-ink-a6); }
.su-st { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12px; font-weight: 700; }
.su-r.is-done .su-st { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.su-copy b { display: block; font-size: 14px; font-weight: 600; }
.su-r.is-done .su-copy b { color: var(--hk-color-text-2); font-weight: 500; }
.su-copy small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.su-list { display: flex; flex-wrap: wrap; grid-column: 2 / 4; gap: 6px; }
.su-list a, .su-list span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 12px; font-weight: 600; text-decoration: none; }
.su-list a .icon { transform: rotate(-90deg); }
.su-list a:hover { background: var(--hk-ink-a8); }
.su-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: var(--hk-shadow-float); font-size: 14px; }
.su-strip-ic { display: inline-flex; color: var(--hk-state-success-text); }
.su-bar { flex: 1 1 120px; max-width: 220px; height: 8px; overflow: hidden; border-radius: 4px; background: var(--hk-ink-a4); }
.su-bar i { display: block; height: 100%; background: #22C55E; }
.su-miss { color: var(--hk-color-text-2); font-size: 13px; }
.su-sp { flex: 1; }
.su-hide { margin: 0; }
@media (max-width: 640px) { .su { padding: 18px; } .su-r { grid-template-columns: 30px minmax(0, 1fr); } .su-r > .button { grid-column: 2; justify-self: start; } .su-list { grid-column: 2; } .su-sp { display: none; } }

/* ===== Extra work ===== */
.ex-box { margin: 0 0 16px; border-radius: 16px; background: var(--hk-ink-a3); }
.ex-box > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; list-style: none; cursor: pointer; }
.ex-box > summary::-webkit-details-marker { display: none; }
.ex-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: #fff; color: #4338CA; box-shadow: var(--hk-shadow-hairline); }
.ex-sum b { display: block; font-size: 14px; }
.ex-sum small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.ex-sum small.is-ok { color: var(--hk-state-success-text); }
.ex-sum small.is-wait { color: var(--hk-state-warning-text); }
.ex-sum small.is-off { color: var(--hk-color-text-2); }
.ex-body { padding: 0 14px 14px; }
.ex-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #EEF2FF; color: #3730A3; font-size: 12.5px; }
.ex-note.is-off { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.ex-locked { margin: 0; font-size: 13.5px; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ex-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ex-sp { flex: 1; }
.requests-page .ex-box, .minimal-request-summary + .ex-box { margin-top: 16px; }
.ex-list { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ex-list > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 20px 24px 12px; }
.ex-list > header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ex-list > header span { color: var(--hk-color-text-2); font-size: 12.5px; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 14px; }
.ex-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.ex-tabs a.is-on { background: var(--hk-surface-ink, #0B0F19); color: #fff; }
.ex-empty { margin: 0; padding: 20px 24px; border-top: 1px solid var(--hk-ink-a6); color: var(--hk-color-text-2); font-size: 13.5px; }
.ex-r { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(140px, auto) auto; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--hk-ink-a6); font-size: 13.5px; }
.ex-what b { display: block; font-weight: 600; }
.ex-what b a { color: inherit; text-decoration: none; }
.ex-what b a:hover { text-decoration: underline; }
.ex-what small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.ex-price { font-variant-numeric: tabular-nums; text-align: right; }
.ex-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ex-tag.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.ex-tag.is-wait { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.ex-tag.is-info { background: #EEF2FF; color: #3730A3; }
.ex-form { display: flex; gap: 6px; margin: 0; }
.ex-foot-note { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--hk-ink-a6); color: var(--hk-color-text-2); font-size: 12.5px; }
.pt-ex { margin: 0 0 20px; padding: 22px 24px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.pt-ex h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.pt-ex > p { margin: 0 0 14px; color: var(--hk-color-text-2); font-size: 13px; }
.pt-ex-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; margin: 0 0 10px; padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); }
.pt-ex-copy b { display: block; font-size: 14.5px; }
.pt-ex-copy small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.pt-ex-amt { font-size: 18px; font-weight: 700; white-space: nowrap; }
.pt-ex-amt small { font-size: 12px; font-weight: 500; color: var(--hk-color-text-2); }
.pt-ex-act { display: flex; flex-wrap: wrap; grid-column: 1 / 3; gap: 8px; }
.pt-ex-act form { display: flex; gap: 8px; margin: 0; }
.pf-extras { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; color: var(--hk-color-text-2); font-size: 13px; }
.pf-extras b { color: var(--hk-color-text); }
.pf-extras a { color: inherit; text-decoration: underline; }
@media (max-width: 760px) { .ex-r { grid-template-columns: minmax(0, 1fr) auto; } .ex-state, .ex-act { grid-column: 1 / 3; } .ex-grid { grid-template-columns: 1fr; } }

/* ===== My day (employees) ===== */
.my-day { max-width: 1200px; }
.my-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.my-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.my-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.my-chips a, .my-chips span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; box-shadow: var(--hk-shadow-hairline); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.my-chips a.is-bad { color: var(--hk-state-danger-text); }
.my-chips a:hover { box-shadow: var(--hk-shadow-float); }
.my-date { color: var(--hk-color-text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.my-card { margin: 0 0 16px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.my-card h2 { margin: 0; font-size: 16px; font-weight: 600; }
.my-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.my-h .sub { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.my-h > a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.my-h-actions { display: flex; gap: 8px; }
.my-card-foot { margin-top: 12px; }
.my-empty { margin: 0; color: var(--hk-color-text-2); font-size: 13px; }
.my-card .box-empty { margin: 4px 0 0; padding: 0; text-align: left; }

.my-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: 12px 28px; align-items: center; }
.my-start h2 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.01em; }
.my-start p { margin: 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.my-start .own-work-status { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.my-start .own-work-status [data-status-updated], .my-start .own-work-status [data-status-interval] { display: none; }
.my-start [data-own-work-content] { display: flex; }
.my-start .work-status-block { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.my-start .work-status-block .sub { display: inline; margin: 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.my-alert { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.my-alert svg { flex: none; }
.my-start-form label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.my-start-row { display: flex; gap: 8px; }
.my-start-row input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; }
.my-start-row .button { height: 46px; padding: 0 20px; }
.my-foot { margin: 8px 0 0 !important; color: var(--hk-color-text-3) !important; font-size: 11.5px !important; }
.my-clock-row { display: flex; align-items: center; gap: 8px; }
.my-clock-row form { margin: 0; }
.my-clock { flex: 1; display: flex; align-items: center; height: 46px; padding: 0 16px; border-radius: 14px; background: var(--hk-ink-a4); font-size: 22px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.my-clock-row .button { height: 46px; }
.my-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.my-note label { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.my-note input { flex: 1; min-width: 0; height: 36px; border-radius: 12px; font-size: 13px; }
.my-start .idle-banner { grid-column: 1 / -1; margin: 0; }
.my-start .idle-banner[hidden] { display: none; }

.my-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.my-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.my-pair.is-single { grid-template-columns: 1fr; }
.my-big { display: block; font-size: 24px; letter-spacing: -.01em; }
.my-big small { color: var(--hk-color-text-2); font-size: 14px; font-weight: 600; }
.my-wbar { position: relative; height: 10px; margin: 12px 0 8px; border-radius: 5px; background: var(--hk-ink-a4); }
.my-wbar span { display: block; height: 100%; border-radius: 5px; background: #2563EB; }
.my-wbar i { position: absolute; top: -4px; width: 2px; height: 18px; border-radius: 1px; background: var(--hk-color-ink-900); }
.my-pace { margin: 0; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.my-pace.is-ok { color: var(--hk-state-success-text); }
.my-pace.is-bad { color: var(--hk-state-danger-text); }
.my-week .week { height: 104px; gap: 6px; padding: 12px 0 0; }
.my-week .week .d i { max-width: 26px; background: #BFDBFE; }
.my-week .week .d.now i { background: #2563EB; }
.my-week .week .d b { font-size: 10px; color: var(--hk-color-text-2); }
.my-todo-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.my-todo .my-h + .my-todo-row { border-top: 0; padding-top: 2px; }
.my-todo-row .grow { flex: 1; min-width: 0; }
.my-tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1.5px solid #CBD5E1; border-radius: 7px; }
.my-todo-row.is-done .my-tick { border-color: #22C55E; background: #22C55E; color: #fff; }
.my-todo-row.is-done .grow { color: var(--hk-color-text-3); text-decoration: line-through; }

.my-wait-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.my-wait .my-h + .my-wait-row { border-top: 0; padding-top: 0; }
.my-wait-row b { display: block; font-size: 14px; }
.my-wait-row small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.my-wic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; }
.my-wic.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.my-wic.is-pur { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.my-wic.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }

.my-grp { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.my-grp.is-bad { color: var(--hk-state-danger-text); }
.my-grp em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-style: normal; }
.my-task { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 120px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); }
.my-grp + .my-task { border-top: 0; }
.my-task-go form { margin: 0; }
.my-task-copy { min-width: 0; }
.my-task-copy .name { color: var(--hk-color-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.my-task-copy .name:hover { text-decoration: underline; }
.my-task-copy .sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.my-task-spent small { display: block; margin: 0 0 5px; color: var(--hk-color-text-2); font-size: 12px; }
.my-bar { display: block; height: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.my-bar span { display: block; height: 100%; border-radius: 3px; background: #2563EB; }
.my-bar span.is-over { background: #DC2626; }
.my-task > .my-chip { justify-self: end; }
.my-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.my-task-copy .my-chip { height: 20px; padding: 0 8px; font-size: 11px; }
.my-chip.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.my-chip.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.my-chip.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.my-chip.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.my-more { margin: 10px 0 0; font-size: 13px; }

.my-list { margin: 0; padding: 0; list-style: none; }
.my-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); }
.my-list li:first-child { border-top: 0; }
.my-list .grow { flex: 1; min-width: 0; }
.my-list b { font-size: 14px; }
.my-list small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.my-list small.inline { display: inline; }
.my-time .log { margin: 0; }

.my-ev { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); color: inherit; text-decoration: none; }
.my-side .my-h + .my-ev { border-top: 0; padding-top: 0; }
.my-ev time { font-size: 13px; font-weight: 700; }
.my-ev b { display: block; font-size: 13.5px; font-weight: 600; }
.my-ev small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12px; }
a.my-ev:hover b { text-decoration: underline; }
.my-tiles { display: flex; gap: 10px; }
.my-tiles div { flex: 1; min-width: 0; padding: 12px; border-radius: 16px; background: var(--hk-ink-a4); }
.my-tiles b { display: block; font-size: 20px; }
.my-tiles small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }

@media (max-width: 1180px) {
  .my-grid { grid-template-columns: 1fr; }
  .my-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
}
@media (max-width: 900px) {
  .my-start { grid-template-columns: 1fr; }
  .my-pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .my-top { flex-direction: column; align-items: flex-start; }
  .my-top h1 { font-size: 26px; }
  .my-card { padding: 18px 16px; border-radius: 20px; }
  .my-task { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .my-task-spent { grid-column: 2 / 3; grid-row: 2; }
  .my-task > .my-chip { grid-row: 1; grid-column: 3; }
  .my-start-row { flex-direction: column; }
  .my-clock-row { flex-wrap: wrap; }
  .my-clock { flex-basis: 100%; }
  .my-h { flex-wrap: wrap; }
  .my-note { flex-wrap: wrap; }
}

/* ===== Rich text (task briefs) ===== */
.rt-ed { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hk-color-divider); transition: box-shadow var(--hk-motion-fast) var(--hk-ease-out); }
.rt-ed:focus-within { box-shadow: inset 0 0 0 1.5px #2563EB, 0 0 0 4px rgba(37, 99, 235, .12); }
.rt-tb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--hk-color-divider); }
.rt-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--hk-color-text-2); cursor: pointer; }
.rt-btn:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.rt-btn.is-on { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.rt-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--hk-color-divider); }
.rt-tpl { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 9px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.rt-tpl:hover { background: var(--hk-ink-a6); }
.rt-doc { position: relative; min-height: 150px; max-height: 420px; overflow-y: auto; padding: 12px 16px 14px; outline: none; font-size: 14px; line-height: 1.55; }
.rt-doc.is-empty::before { content: attr(data-placeholder); position: absolute; left: 16px; right: 16px; color: var(--hk-color-text-3); pointer-events: none; }
.rt-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 6px 0 0; color: var(--hk-color-text-3); font-size: 11.5px; }
.rich h4 { margin: 12px 0 4px; font-size: 14.5px; font-weight: 700; }
.rich blockquote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--hk-ink-a12, #CBD5E1); color: var(--hk-color-text-2); }
.rich code { padding: 1px 5px; border-radius: 5px; background: var(--hk-ink-a6); font-size: .92em; }
.rich a { color: #2563EB; }
.rt-doc ul.rt-check, .rich ul.rt-checks { padding-left: 0; list-style: none; }
.rt-doc ul.rt-check li { position: relative; padding-left: 28px; }
.rt-doc ul.rt-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 1.5px solid #94A3B8; border-radius: 5px; background: #fff; cursor: pointer; box-sizing: border-box; }
.rt-doc ul.rt-check li[data-done="1"]::before { border-color: #22C55E; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rt-doc ul.rt-check li[data-done="1"] { color: var(--hk-color-text-3); text-decoration: line-through; }
.rich .rt-ci { display: flex; align-items: flex-start; gap: 9px; margin: 3px 0; }
.rich .rt-ci form { display: contents; }
.rt-box { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; padding: 0; border: 1.5px solid #94A3B8; border-radius: 5px; background: #fff; color: #fff; font-size: 11px; line-height: 1; }
button.rt-box { cursor: pointer; }
button.rt-box:hover { border-color: #22C55E; }
.rich .rt-ci.is-done .rt-box { border-color: #22C55E; background: #22C55E; }
.rich .rt-ci.is-done > span:last-child { color: var(--hk-color-text-3); text-decoration: line-through; }

/* ===== Task messages ===== */
.rt-msg { font-size: 14px; line-height: 1.6; }
.rt-msg > :last-child { margin-bottom: 0; }
.rt-msg p { margin: 0 0 6px; }
.rt-msg ul, .rt-msg ol { margin: 4px 0 6px; padding-left: 20px; }
.rt-msg li { margin: 2px 0; }
.rt-msg h4, .rt-msg h5 { margin: 8px 0 4px; font-size: 14px; font-weight: 700; }
.rt-msg a { color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }
.rt-msg code { padding: 1px 6px; border-radius: 6px; background: var(--hk-ink-a6); font-size: 12.5px; }
.rt-msg blockquote { margin: 4px 0 8px; padding: 6px 12px; border-left: 3px solid rgba(15,23,42,.18); border-radius: 0 10px 10px 0; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; }
.rt-msg blockquote strong { color: var(--hk-color-text); }
.rt-msg ul.rt-checks { padding-left: 0; list-style: none; }
.rt-msg .rt-ci { display: flex; align-items: flex-start; gap: 8px; margin: 3px 0; }
.rt-msg .rt-ci .rt-box { width: 17px; height: 17px; margin-top: 3px; border-color: rgba(15,23,42,.28); }
.rt-msg .rt-ci.is-done .rt-box { border-color: #16A34A; background: #16A34A; }
.rt-msg .rt-ci.is-done > span:last-child { color: var(--hk-color-text-3); text-decoration: line-through; }
.rt-msg .mention, .cm-preview .mention { padding: 1px 6px; border-radius: 6px; background: #DBEAFE; color: #1D4ED8; font-weight: 600; }
.rt-msg .mention.is-me { background: #FEF3C7; color: #92400E; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.cm-head h3.section-title { margin: 0; padding-top: 0; border-top: 0; }
.cm-msg .task-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.cm-msg .task-file { position: relative; grid-template-columns: 40px minmax(0, 1fr) auto; width: 240px; max-width: 100%; padding: 8px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--hk-shadow-hairline); }
.cm-msg .task-file:has(.is-media) { grid-template-columns: 1fr; width: 170px; padding: 0; overflow: hidden; }
.cm-msg .task-file:has(.is-media) .task-file-preview { width: 100%; height: 112px; border-radius: 0; }
.cm-msg .task-file:has(.is-media) .task-file-copy { padding: 6px 10px 8px; }
.cm-msg .task-file:has(.is-media) form { position: absolute; top: 6px; right: 6px; }
.cm-msg .task-file .task-file-preview { width: 40px; height: 40px; border-radius: 9px; }
.cm-msg .task-file form .button { opacity: 0; }
.cm-msg .task-file:hover form .button { opacity: 1; background: #fff; }
.task-page .cm-head h3.section-title { color: var(--hk-color-text); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.cm-filter { display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--hk-ink-a4); }
.cm-filter button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-filter button.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline); }
.cm-filter em { font-style: normal; color: var(--hk-color-text-3); }
.cm-day { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cm-day::before, .cm-day::after { content: ""; flex: 1; height: 1px; background: var(--hk-color-divider); }
.cm-day.is-new { color: #DC2626; }
.cm-day.is-new::before, .cm-day.is-new::after { background: #FCA5A5; }
.cm-day[hidden] { display: none; }
.comment.cm-msg { position: relative; gap: 12px; margin: 0 -10px 2px; padding: 10px; border-radius: 16px; }
.comment.cm-msg[hidden] { display: none; }
.comment.cm-msg:hover { background: var(--hk-ink-a3); }
.cm-msg .comment-head { min-height: 22px; gap: 8px; }
.cm-msg .comment-head strong { font-size: 13.5px; }
.cm-msg .comment-head .sub { color: var(--hk-color-text-3); font-size: 12px; }
.cm-msg .comment-body { margin-top: 3px; }
.cm-msg.is-update { background: #F0FDF4; box-shadow: inset 3px 0 0 #16A34A; border-radius: 4px 16px 16px 4px; }
.cm-msg.is-update:hover { background: #E7F9EE; }
.comment.cm-msg.is-update .comment-body, .comment.cm-msg.from-client .comment-body { padding: 0; border: 0; border-radius: 0; background: none; }
.cm-msg .tag.update { display: inline-flex; align-items: center; gap: 3px; }
.cm-acts { position: absolute; top: -10px; right: 10px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #fff; box-shadow: var(--hk-shadow-float); opacity: 0; pointer-events: none; transition: opacity .12s; }
.cm-acts form { margin: 0; display: contents; }
.cm-msg:hover .cm-acts, .cm-acts:focus-within { opacity: 1; pointer-events: auto; }
.cm-act { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; border-radius: 9px; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-act:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
@media (hover: none) { .cm-acts { position: static; opacity: 1; pointer-events: auto; box-shadow: none; background: none; padding: 4px 0 0; } }
.cm-composer .cm-box { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15,23,42,.12); transition: box-shadow .12s; }
.cm-composer .cm-box:focus-within { box-shadow: inset 0 0 0 1.5px #2563EB; }
.cm-composer.is-drop .cm-box { box-shadow: inset 0 0 0 2px #2563EB; background: #EFF6FF; }
.cm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--hk-color-divider); }
.cm-tools > button, .cm-attach { display: inline-grid; place-items: center; position: relative; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 14px; cursor: pointer; }
.cm-tools > button:hover, .cm-attach:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.cm-tools > button:disabled { opacity: .35; cursor: default; background: none; }
.cm-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cm-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--hk-color-divider); }
.cm-q { font-size: 20px; line-height: 1; font-weight: 700; transform: translateY(3px); }
.cm-code { font-size: 11px; font-weight: 700; }
.cm-tabs { display: flex; gap: 2px; margin-left: auto; padding: 2px; border-radius: 9px; background: var(--hk-ink-a4); }
.cm-tabs button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-tabs button.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline); }
.cm-composer .mention-box textarea { display: block; width: 100%; min-height: 72px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; padding: 12px 14px; font-size: 14px; line-height: 1.6; resize: vertical; }
.cm-composer .mention-box[hidden] { display: none; }
.cm-preview { min-height: 72px; padding: 12px 14px; }
.cm-preview[hidden] { display: none; }
.cm-pend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.cm-pend[hidden] { display: none; }
.cm-pend span { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 4px 0 10px; border-radius: 10px; background: var(--hk-ink-a4); font-size: 12.5px; }
.cm-pend b { overflow: hidden; max-width: 220px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cm-pend small { color: var(--hk-color-text-3); }
.cm-pend button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--hk-color-text-3); font-size: 15px; cursor: pointer; }
.cm-pend button:hover { background: var(--hk-ink-a8); color: var(--hk-color-text); }
.cm-composer .upload-bar { margin: 0 14px 10px; }
.cm-foot.composer-foot { flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 10px 12px 10px 14px; border-top: 1px solid var(--hk-color-divider); }
.cm-foot [data-chosen] { display: none; }
.cm-foot .check { font-size: 13px; font-weight: 500; }
.cm-foot .cm-hint { flex: 1; min-width: 120px; color: var(--hk-color-text-3); font-size: 12px; }
.cm-composer .mention-menu { bottom: auto; top: 100%; }
#task-panel .cm-composer { padding: 12px 16px 14px; }
#task-panel .cm-composer .mention-box textarea { min-height: 58px; }
@media (max-width: 640px) { .cm-hint { display: none; } .cm-tabs { margin-left: 0; } }

/* ===== Task panel and task page ===== */
.panel-head.tp-head { display: block; padding: 16px 20px 14px; }
.tp-head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; color: var(--hk-color-text-2); font-size: 13px; font-weight: 500; }
.tp-crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--hk-color-text-2); text-decoration: none; }
.tp-crumb a:hover { color: var(--hk-color-text); }
.tp-head-actions { display: flex; align-items: center; gap: 4px; }
.tp-head-actions form { margin: 0; }
.panel-head.tp-head h2 { margin: 10px 0 8px; padding: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chips .my-chip { gap: 5px; }
.tp-cols { display: flex; flex-direction: column; }
.tp-main, .tp-side { display: contents; }
.tp-side > * { order: 5; }
.tp-main > * { order: 8; }
.tp-time { order: 1 !important; }
.tp-brief { order: 2 !important; }
.tp-files { order: 3 !important; }
.tp-details { order: 4 !important; }
.tp-cols .ex-box { order: 6 !important; }
.tp-cols .history { order: 7 !important; }
.tp-sec { margin: 0 0 18px; }
.tp-sec > h3, .tp-discuss > h3.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tp-sec > h3 small, .tp-discuss > h3 small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tp-brief-body { padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); font-size: 14px; line-height: 1.6; }
.tp-brief-body > :last-child { margin-bottom: 0; }
.tp-brief-body h4:first-child { margin-top: 0; }

.tp-time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border-radius: 20px; background: var(--hk-ink-a3); }
.tp-time.is-on { background: linear-gradient(180deg, #F0FDF4, #fff); box-shadow: inset 0 0 0 1px #BBF7D0; }
.tp-go-form { margin: 0; }
.tp-go { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--hk-color-ink-900); color: #fff; cursor: pointer; }
.tp-go:hover { transform: scale(1.04); }
.tp-go.is-on { background: #16A34A; box-shadow: 0 6px 16px rgba(22, 163, 74, .35); }
.tp-go.is-on i { width: 14px; height: 14px; border-radius: 3px; background: #fff; }
.tp-go.is-off { background: var(--hk-ink-a6); color: var(--hk-color-text-2); cursor: default; }
.tp-go .play { margin-left: 3px; }
.tp-time-main b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.tp-time small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.tp-time small.is-bad { color: var(--hk-state-danger-text); font-weight: 600; }
.tp-time-total { text-align: right; }
.tp-time-total b { font-size: 15px; }
.tp-time-total b span { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.tp-meter { grid-column: 1 / -1; }
.tp-bar { position: relative; height: 8px; border-radius: 4px; background: var(--hk-ink-a6); overflow: hidden; }
.tp-bar span { position: absolute; top: 0; bottom: 0; }
.tp-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: #DC2626; }
.tp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--hk-color-text-2); font-size: 12px; }
.tp-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.tp-legend a { margin-left: auto; color: var(--hk-color-text-2); }

.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-grid > div { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--hk-ink-a3); }
.tp-grid > div.tp-wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.tp-grid > div.tp-wide small { flex-basis: 100%; }
.tp-grid small { display: block; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; }
.tp-grid b { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13.5px; font-weight: 600; }

/* The full page */
.task-page { max-width: 1240px; }
.task-page .panel-head.tp-head { padding: 4px 0 20px; border: 0; }
.task-page .panel-head.tp-head h2 { margin: 12px 0 10px; font-size: 30px; letter-spacing: -.02em; }
.task-page .panel-body { overflow: visible; padding: 0; }
.task-page .status-row { margin: 0 0 16px; }
.task-page .tp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.task-page .tp-main, .task-page .tp-side { display: block; min-width: 0; }
.task-page .tp-main { grid-column: 1; grid-row: 1; }
.task-page .tp-side { grid-column: 2; grid-row: 1; }
.task-page .tp-sec, .task-page .tp-time, .task-page .tp-discuss, .task-page .tp-side .task-panel-more, .task-page .tp-side .history { margin: 0 0 16px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.task-page .tp-time { background: #fff; }
.task-page .tp-time.is-on { background: linear-gradient(180deg, #F0FDF4, #fff); box-shadow: inset 0 0 0 1px #BBF7D0, var(--hk-shadow-float); }
.task-page .tp-side .tp-time { grid-template-columns: auto minmax(0, 1fr); }
.task-page .tp-side .tp-time-total { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
.task-page .tp-side .tp-time-total small { margin: 0; }
.task-page .tp-sec > h3, .task-page .tp-discuss > h3.section-title { color: var(--hk-color-text); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.task-page .tp-brief-body { padding: 0; background: none; }
.task-page .tp-grid > div { background: var(--hk-ink-a3); }
.task-page .tp-discuss .composer { margin: 14px 0 0; padding: 0; border: 0; background: none; box-shadow: none; position: static; }
.task-page .tp-discuss > h3.section-title { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 1100px) {
  .task-page .tp-cols { grid-template-columns: 1fr; }
  .task-page .tp-main, .task-page .tp-side { grid-column: 1; grid-row: auto; }
  .task-page .tp-side { grid-row: 1; }
}
@media (max-width: 640px) {
  .tp-time { grid-template-columns: auto minmax(0, 1fr); }
  .tp-time-total { grid-column: 1 / -1; text-align: left; }
  .task-page .panel-head.tp-head h2 { font-size: 24px; }
  .tp-grid { grid-template-columns: 1fr; }
}

/* Task sheet: project and people side by side */
#task .tk-sheet-group[aria-label="Who and where"] { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#task .tk-sheet-group[aria-label="Who and where"] .field { margin: 0; }
@media (max-width: 640px) { #task .tk-sheet-group[aria-label="Who and where"] { grid-template-columns: 1fr; } }

/* Add task on a full page */
.tk-sheet-head [hidden] { display: none !important; }
.ntk-page { max-width: 1240px; }
.ntk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 12px 0 20px; }
.ntk-top h1 { margin: 0 0 6px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.ntk-top p { margin: 0; color: var(--hk-color-text-2); font-size: 14px; }
.ntk-actions { display: flex; gap: 8px; flex: none; }
.ntk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ntk-main .rt-doc { min-height: 320px; max-height: 60vh; }
.ntk-title { height: 50px; font-size: 16px; font-weight: 600; }
.ntk-page .field { margin: 0 0 16px; }
.ntk-page .field:last-child, .ntk-page .my-card > .field:last-child { margin-bottom: 0; }
.ntk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ntk-side .field:last-child { margin-bottom: 0; }
.task-page .tp-side .task-panel-more, .task-page .tp-side .history { padding: 14px 22px; }
@media (max-width: 1000px) { .ntk-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ntk-top { flex-direction: column; } }

/* ===== My time ===== */
.mt-page { max-width: 1240px; }
.mt-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 18px; }
.mt-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.mt-top p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.mt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.mt-tile { min-width: 0; padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: var(--hk-shadow-float); }
.mt-tile small { display: block; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.mt-tile b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.01em; }
.mt-tile b span { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.mt-tile em { display: block; margin-top: 4px; color: var(--hk-color-text-2); font-size: 12.5px; font-style: normal; font-weight: 600; }
.mt-tile em.is-ok { color: var(--hk-state-success-text); }
.mt-tile em.is-bad { color: var(--hk-state-danger-text); }
.mt-tile em.is-warn { color: var(--hk-state-warning-text); }
.mt-bar { position: relative; height: 8px; margin-top: 10px; border-radius: 4px; background: var(--hk-ink-a4); }
.mt-bar span { display: block; height: 100%; border-radius: 4px; background: #2563EB; }
.mt-bar i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--hk-color-ink-900); }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.mt-wk { display: flex; align-items: center; gap: 6px; }
.mt-wk b { padding: 0 4px; font-size: 13.5px; white-space: nowrap; }
.mt-wk .is-disabled { opacity: .35; pointer-events: none; }
.mt-wk .is-next svg { transform: rotate(180deg); }
.mt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mt-d { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 172px; padding: 12px 6px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text); text-align: center; text-decoration: none; }
.mt-d:hover { background: var(--hk-ink-a6); }
.mt-d.is-today { background: #EFF6FF; box-shadow: inset 0 0 0 1.5px #93C5FD; }
.mt-d.is-future { opacity: .7; }
.mt-d small { color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mt-d .dt { color: var(--hk-color-text-3); font-size: 12px; }
.mt-col { position: relative; flex: 1; width: 26px; min-height: 48px; margin: 8px 0 6px; border-radius: 7px; background: var(--hk-ink-a6); overflow: hidden; }
.mt-col span { position: absolute; right: 0; bottom: 0; left: 0; border-radius: 7px; background: #2563EB; }
.mt-col span.is-extra { background: #16A34A; }
.mt-col span.is-short { background: #F59E0B; }
.mt-d b { font-size: 13.5px; }
.mt-d .my-chip { max-width: 100%; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; height: 22px; padding: 0 8px; }
.my-chip.is-pur { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.my-chip.is-mut { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.mt-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 12px; color: var(--hk-color-text-2); font-size: 12.5px; }
.mt-note a, .mt-note .link-button { color: #2563EB; font-weight: 600; }
.mt-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 6px; padding: 4px; border-radius: 999px; background: var(--hk-ink-a4); }
.mt-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mt-tabs button.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline); }
.mt-tabs em { padding: 0 6px; border-radius: 9px; background: var(--hk-ink-a6); font-size: 11px; font-style: normal; }
.mt-r { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.mt-r[hidden] { display: none; }
.mt-r form { margin: 0; }
.mt-r b { display: block; font-size: 14px; }
.mt-r small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.my-wic.is-mut { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.mt-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-bal > div { min-width: 0; padding: 12px; border-radius: 16px; background: var(--hk-ink-a4); }
.mt-bal b { display: block; font-size: 20px; }
.mt-bal small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.mt-mini { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--hk-ink-a8); overflow: hidden; }
.mt-mini span { display: block; height: 100%; background: #22C55E; }
.mt-ev { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); }
.mt-side .my-h + .mt-ev { border-top: 0; }
.mt-date { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--hk-ink-a4); line-height: 1.05; }
.mt-date b { font-size: 16px; }
.mt-date small { color: var(--hk-color-text-2); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.mt-ev > div b { display: block; font-size: 13.5px; }
.mt-ev > div small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.mt-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 13px; }
.mt-dl dt { color: var(--hk-color-text-2); }
.mt-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 1180px) { .mt-grid { grid-template-columns: 1fr; } .mt-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .mt-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mt-r { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .mt-r > :last-child { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 520px) { .mt-tiles { grid-template-columns: 1fr 1fr; } .mt-tile b { font-size: 20px; } .mt-days { gap: 6px; } .mt-d { min-height: 128px; padding: 10px 4px; } .mt-col { min-height: 30px; } .mt-bal { grid-template-columns: 1fr; } }

/* ===== My tasks (employees) ===== */
.mt-list { padding: 4px 22px 12px; }
.mt-grp { display: flex; align-items: center; gap: 8px; margin: 16px 0 2px; }
.mt-grp h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mt-grp.is-bad h3 { color: var(--hk-state-danger-text); }
.mt-grp h3 em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-style: normal; }
.mt-grp > span { margin-left: auto; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.mt-task { display: grid; grid-template-columns: 38px minmax(0, 1fr) 170px 130px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); cursor: pointer; }
.mt-grp + .mt-task, .mt-done-list > .mt-task:first-child { border-top: 0; }
.mt-task:hover .mt-task-main > b { text-decoration: underline; }
.mt-task.is-done { opacity: .75; }
.mt-task-go form { margin: 0; }
.mt-task-go .go.is-review { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.mt-task-main { min-width: 0; }
.mt-task-main > b { font-size: 14.5px; font-weight: 600; }
.mt-task-main > p { margin: 2px 0 0; overflow: hidden; color: var(--hk-color-text-2); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.mt-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; color: var(--hk-color-text-2); font-size: 12.5px; }
.mt-task-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.mt-task-meta .my-chip { height: 21px; padding: 0 8px; font-size: 11.5px; gap: 5px; }
.mt-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.mt-task-time small { display: block; margin: 0 0 5px; color: var(--hk-color-text-2); font-size: 12px; }
.mt-task-due { text-align: right; }
.mt-task-due small { display: block; margin-top: 4px; color: var(--hk-color-text-3); font-size: 11.5px; }
.mt-done { margin: 14px 0 0; padding: 0; }
.mt-done > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.mt-done > summary::-webkit-details-marker { display: none; }
.mt-done > summary span { display: inline-flex; align-items: center; gap: 8px; }
.mt-done > summary b { color: var(--hk-color-text-2); font-size: 13px; }
.mt-done[open] > summary b { visibility: hidden; }
.mt-done-list { padding-top: 0; }
.tk-pick { flex: 0 1 220px; width: auto; height: 40px; min-width: 140px; border-radius: 14px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 760px) {
  .mt-list { padding: 4px 14px 10px; }
  .mt-task { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .mt-task-time { grid-column: 2 / 3; grid-row: 2; }
  .mt-task-due { grid-column: 3; grid-row: 1; }
  .tk-pick { flex: 1 1 100%; max-width: none; }
}

/* ===== Today's update ===== */
.dl-page { max-width: 1240px; }
.dl-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 18px; }
.dl-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.dl-top p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.dl-top-side { display: flex; align-items: center; gap: 14px; }
.dl-prog { display: inline-flex; align-items: center; gap: 10px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dl-prog .my-bar { width: 140px; height: 8px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.dl-mini { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.dl-mini .grow, .dl-ph .grow { flex: 1; min-width: 0; }
.dl-mini b, .dl-ph b { display: block; font-size: 15px; }
.dl-mini small, .dl-ph small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.dl-card { padding: 0; }
.dl-card > summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; list-style: none; cursor: pointer; }
.dl-card > summary::-webkit-details-marker { display: none; }
.dl-card[open] > summary { padding-bottom: 8px; cursor: default; }
.dl-card[open] .dl-change { display: none; }
.dl-card > .my-empty { padding: 0 22px 18px; }
.dl-form { padding: 0 22px 20px; }
.dl-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 8px; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dl-lab span { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dl-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0 0 8px; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); }
.dl-item.is-off .dl-body { opacity: .5; }
.dl-check { margin-top: 3px; }
.dl-check input { width: 18px; height: 18px; accent-color: #2563EB; }
.dl-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dl-t b { font-size: 14px; }
.dl-t small { color: var(--hk-color-text-2); font-size: 12.5px; }
.dl-title-in { width: 100%; height: 38px; border-radius: 12px; font-weight: 600; }
.dl-row { display: grid; grid-template-columns: 170px 160px minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.dl-row select, .dl-row input { height: 38px; border-radius: 12px; font-size: 13px; background: #fff; }
.dl-add { margin: 2px 0 6px; }
.dl-field { margin: 0 0 10px; }
.dl-field textarea { border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.dl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.dl-foot .grow { flex: 1; min-width: 200px; color: var(--hk-color-text-3); font-size: 12px; }
.dl-foot .grow a { color: #2563EB; font-weight: 600; }
.dl-todo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); font-size: 13.5px; text-decoration: none; }
.dl-side .my-h + .dl-todo { border-top: 0; }
.dl-todo .grow { flex: 1; }
.dl-todo.is-done .my-tick { border-color: #22C55E; background: #22C55E; color: #fff; }
.dl-todo.is-done .grow { color: var(--hk-color-text-3); text-decoration: line-through; }
.dl-tl { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.dl-side .my-h + .dl-tl { border-top: 0; }
.dl-tl time { font-weight: 700; }
.dl-tl small { color: var(--hk-color-text-2); }
.dl-y { margin: 0 0 8px; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.dl-y b { color: var(--hk-color-text); }
.dl-y ul { margin: 2px 0 0; padding-left: 18px; }
@media (max-width: 1100px) { .dl-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .dl-row, .dl-two { grid-template-columns: 1fr; }
  .dl-card > summary { flex-wrap: wrap; padding: 16px; }
  .dl-form { padding: 0 16px 16px; }
}

/* ===== My weekly update ===== */
.wu-page { max-width: 1240px; }
.wu-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 4px 0 18px; }
.wu-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.wu-top p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.wu-top-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wu-state { height: 30px; padding: 0 12px; font-size: 13px; }
.wu-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.wu-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.wu-form { margin: 0; }
.wu-p { margin: 0 0 10px; padding: 14px 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.wu-ph { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.wu-ph b { font-size: 14.5px; }
.wu-ph small { color: var(--hk-color-text-2); font-size: 12.5px; }
.wu-ph .r { margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.wu-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.wu-facts span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: #fff; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.wu-p textarea, .wu-field textarea { box-sizing: border-box; width: 100%; min-height: 56px; border-radius: 14px; background: #fff; font-size: 13.5px; line-height: 1.55; resize: vertical; }
.wu-field { margin: 12px 0 0; }
.wu-form .wu-field textarea { min-height: 56px; background: var(--hk-ink-a4); }
.wu-days { display: flex; gap: 6px; }
.wu-days span { display: grid; flex: 1; place-items: center; height: 30px; border-radius: 9px; font-size: 11.5px; font-weight: 700; }
.wu-days .is-on { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.wu-days .is-miss { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.wu-days .is-today { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.wu-days .is-future { background: var(--hk-ink-a4); color: var(--hk-color-text-3); }
.wu-days-note { margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.wu-y { color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.wu-y p { margin: 0 0 8px; }
.wu-y b { color: var(--hk-color-text); }
.wu-who { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.wu-who small { margin-left: auto; color: var(--hk-color-text-2); font-size: 12px; }
@media (max-width: 1100px) { .wu-grid { grid-template-columns: 1fr; } .wu-tiles { grid-template-columns: 1fr 1fr; } }

.cron-nudge { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.cron-nudge > span { display: inline-flex; align-items: center; gap: 8px; }
.cron-nudge .button { flex: none; }
.cron-jobs th[colspan] { padding-top: 14px; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
/* ===== HR home ===== */
.hh-page { max-width: 1240px; }
.hh-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 4px 0 16px; }
.hh-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.hh-top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hh-date { color: var(--hk-color-text-2); font-size: 14px; font-weight: 600; }
.hh-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hh-sum span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 13px; font-weight: 600; }
.hh-sum span.is-bad { color: var(--hk-state-danger-text); }
.hh-sum span.is-ok { color: var(--hk-state-success-text); }
.hh-card { margin: 0 0 16px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.hh-card h2 { margin: 0; font-size: 16px; font-weight: 600; }
.hh-card .sub { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.hh-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hh-h > a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hh-me { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; }
.hh-me form { margin: 0; }
.hh-me .sub { margin: 0; }
.hh-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--hk-state-success-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hh-dot i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hh-dot.is-off { color: var(--hk-color-text-2); }
.hh-dot.is-off i { background: #94A3B8; box-shadow: none; }
.hh-dot.is-break { color: var(--hk-state-warning-text); }
.hh-dot.is-break i { background: #F59E0B; box-shadow: none; }
.hh-clock { margin-left: auto; font-size: 20px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hh-start { display: flex; flex: 1; gap: 8px; min-width: 260px; }
.hh-start input { flex: 1; min-width: 0; height: 36px; }
.hh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.hh-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; }
.hh-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.hh-tabs button.is-on { background: var(--hk-color-ink-900, #0F172A); color: #fff; }
.hh-tabs em { font-style: normal; opacity: .7; }
.hh-req { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.hh-tabs + .hh-req, .hh-h + .hh-req { border-top: 0; }
.hh-req[hidden] { display: none; }
.hh-req-t b { font-size: 14px; }
.hh-req-t b a { color: inherit; text-decoration: none; }
.hh-req-t b a:hover { text-decoration: underline; }
.hh-req-t p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; }
.hh-req-t p strong { color: var(--hk-color-text); }
.hh-req-t q { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; }
.hh-warn { display: flex; align-items: center; gap: 5px; color: var(--hk-state-warning-text) !important; font-weight: 600; }
.hh-k { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.hh-k.is-leave { background: #F3E8FF; color: #6B21A8; }
.hh-k.is-fix { background: #DBEAFE; color: #1D4ED8; }
.hh-k.is-extra { background: #FEF3C7; color: #92400E; }
.hh-k.is-bank { background: #DCFCE7; color: #166534; }
.hh-acts { display: flex; gap: 8px; }
.hh-acts form { margin: 0; }
.hh-ok { background: #16A34A !important; color: #fff !important; }
.hh-ok:hover { background: #15803D !important; }
.hh-empty { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--hk-state-success-text); font-size: 13.5px; font-weight: 600; }
.hh-empty.is-small { color: var(--hk-color-text-2); font-weight: 500; font-size: 13px; }
.hh-fu { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.hh-h + .hh-fu { border-top: 0; }
.hh-fu form { margin: 0; }
.hh-fu b { font-size: 13.5px; }
.hh-fu small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.hh-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.hh-ic.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.hh-ic.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.hh-ic.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.hh-ic.is-pur { background: #F3E8FF; color: #6B21A8; }
.hh-stack { display: inline-flex; align-items: center; margin-top: 6px; }
.hh-stack .pic, .hh-stack img { box-shadow: 0 0 0 2px #fff; }
.hh-stack > * + * { margin-left: -6px; }
.hh-more { display: inline-grid; place-items: center; height: 24px; min-width: 24px; padding: 0 6px; border-radius: 12px; background: var(--hk-ink-a6); font-size: 11px; font-weight: 700; color: var(--hk-color-text-2); }
.hh-cnt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 8px; }
.hh-cnt div { padding: 10px 4px; border-radius: 14px; background: var(--hk-ink-a3); text-align: center; }
.hh-cnt div.is-warn { background: var(--hk-state-warning-tint); }
.hh-cnt b { display: block; font-size: 20px; }
.hh-cnt small { color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; }
.hh-lab { margin: 12px 0 2px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hh-p { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: inherit; font-size: 13px; text-decoration: none; }
.hh-p small { margin-left: auto; color: var(--hk-color-text-2); font-size: 12px; text-align: right; }
a.hh-p:hover span { text-decoration: underline; }
.hh-ev { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); color: inherit; font-size: 13px; text-decoration: none; }
.hh-h + .hh-ev { border-top: 0; }
.hh-ev time { font-size: 12.5px; font-weight: 700; }
.hh-ev small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.hh-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hh-qa a { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.hh-qa a:hover { background: var(--hk-ink-a8); }
@media (max-width: 1100px) { .hh-grid { grid-template-columns: 1fr; } .hh-top-side { align-items: flex-start; } }
@media (max-width: 640px) { .hh-req { grid-template-columns: 40px minmax(0, 1fr); } .hh-acts { grid-column: 2; } .hh-fu { grid-template-columns: 36px minmax(0, 1fr); } .hh-fu > :last-child { grid-column: 2; justify-self: start; } .hh-clock { margin-left: 0; } }

/* ===== Employee record ===== */
.er-page { max-width: 1240px; }
.er-crumb { display: flex; gap: 8px; margin: 2px 0 12px; color: var(--hk-color-text-2); font-size: 13.5px; }
.er-page .er-crumb a { color: var(--hk-color-text-2) !important; text-decoration: none; }
.er-page .er-crumb a:hover { color: var(--hk-color-text) !important; }
.er-crumb span:last-child { color: var(--hk-color-text); font-weight: 600; }
.er-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 0 0 16px; padding: 24px 26px; border-radius: 26px; background: #fff; box-shadow: var(--hk-shadow-float); }
.er-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.er-name h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.er-who > p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14.5px; }
.er-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.er-chips a, .er-chips span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.er-chips a:hover { background: var(--hk-ink-a6); }
.er-chips svg { color: var(--hk-color-text-2); }
.er-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.er-tabs { margin-bottom: 16px; }
.er-tabs em.is-warn { background: #F59E0B; }
.er-alerts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.er-alert { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--hk-state-warning-tint); box-shadow: inset 0 0 0 1px rgba(245,158,11,.35); color: var(--hk-state-warning-text); font-size: 13.5px; font-weight: 600; }
.er-alert form { margin: 0; }
.er-alert .button { height: 32px; background: #fff; }
.er-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.er-tiles .mt-tile b.er-status { font-size: 20px; line-height: 1.25; }
.er-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.er-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.er-d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text); text-align: center; text-decoration: none; }
.er-d:hover { background: var(--hk-ink-a6); }
.er-d.is-today { background: #EFF6FF; box-shadow: inset 0 0 0 1.5px #93C5FD; }
.er-d.is-future { opacity: .7; }
.er-d small { color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; }
.er-d b { font-size: 14px; }
.er-d > span { max-width: 100%; overflow: hidden; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.er-d > span.is-ok { color: var(--hk-state-success-text); }
.er-d > span.is-warn, .er-d > span.is-bad { color: var(--hk-state-danger-text); }
.er-d > span.is-info { color: #2563EB; }
.er-d > span.is-pur { color: var(--hk-hue-marketing-700); }
.er-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.my-h + .er-row, .er-prog + .er-row { border-top: 0; }
a.er-row:hover b { text-decoration: underline; }
.er-row.is-plain { grid-template-columns: 36px minmax(0, 1fr); }
.er-row form { margin: 0; }
.er-row b { display: block; font-size: 14px; font-weight: 600; }
.er-row small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.er-pi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--hk-state-info-tint); color: var(--hk-state-info-text); font-size: 12px; font-weight: 700; }
.er-row:nth-of-type(3n+2) .er-pi { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.er-row:nth-of-type(3n) .er-pi { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.my-wic.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.my-wic.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.er-acts-row { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.er-more-link { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--hk-color-text-2); }
.er-more-link:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.er-more { margin-top: 8px; }
.er-prog { height: 6px; margin: 0 0 12px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.er-prog span { display: block; height: 100%; border-radius: 3px; background: #16A34A; }
.er-tick { margin: 0; padding: 6px 0; }
.er-tick label, .er-check label { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.er-tick input, .er-check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: #16A34A; }
.er-link { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--hk-color-text); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.my-h .er-link { margin: 0; color: var(--hk-color-text-2); }
.er-link:hover { text-decoration: underline; }
.er-check { margin: 0; padding: 0; list-style: none; }
.er-check li { padding: 6px 0; }
.er-check li form { margin: 0; }
.er-check li.is-done span { color: var(--hk-color-text-3); text-decoration: line-through; }
.er-check li small { display: block; margin: 2px 0 0 27px; color: var(--hk-color-text-3); font-size: 11.5px; }
.er-check.is-cut li[data-er-extra] { display: none; }
.er-inline { display: flex; gap: 8px; margin: 12px 0 0; }
.er-inline input[type=text] { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border: 1px solid var(--hk-color-border); border-radius: 10px; font: inherit; font-size: 13px; }
.er-gap { margin: 0 0 10px; }
.er-facts { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 16px; margin: 4px 0 0; font-size: 14px; }
.er-facts dt { color: var(--hk-color-text-2); }
.er-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.er-facts.is-narrow { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; font-size: 13px; }
.er-facts.is-narrow dd { text-align: right; }
.er-facts .is-mut, .er-page .is-mut { color: var(--hk-color-text-3); font-weight: 500; }
.er-facts .my-chip { height: 22px; margin-left: 6px; vertical-align: 1px; }
.er-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.er-tags .my-chip { margin: 0; }
.er-emp .er-form { display: none; }
.er-emp.is-editing .er-facts, .er-emp.is-editing .my-h [data-er-edit] { display: none; }
.er-emp.is-editing .er-form { display: block; }
.er-form form { margin: 0; }
.er-add { margin-top: 12px; border: 1.5px dashed var(--hk-color-border); border-radius: 16px; }
.er-add summary { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; color: var(--hk-color-text-2); font-size: 13.5px; cursor: pointer; list-style: none; }
.er-add summary::-webkit-details-marker { display: none; }
.er-add summary span { flex: 1; }
.er-add[open] summary b { display: none; }
.er-add > form, .er-add > .hint { margin: 0; padding: 0 16px 14px; }
.er-doc-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.er-doc-form select, .er-doc-form input[type=text], .er-doc-form input[type=date] { height: 36px; }
.er-doc-form input[type=text] { flex: 1 1 220px; }
.er-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--hk-ink-a3); }
.er-plan[hidden] { display: none; }
.er-plan select, .er-plan input { height: 36px; }
.er-give { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.er-give[hidden] { display: none; }
.er-give .sub { width: 100%; margin: 0; }
.er-flag { display: flex; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 13px; font-weight: 600; }
.er-flag a { color: inherit; }
.er-money { font-size: 14px; font-weight: 700; white-space: nowrap; }
.er-history { margin-top: 14px; }
.er-history summary { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.er-stack > .card, .er-stack > form > .card { margin: 0 0 16px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.er-stack > form { margin: 0; }
@media (max-width: 1180px) { .er-grid { grid-template-columns: 1fr; } .er-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .er-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .er-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .er-hero { grid-template-columns: 1fr; }
  .er-hero > .pic, .er-hero > img, .er-hero > span:first-child { width: 64px !important; height: 64px !important; }
  .er-name h1 { font-size: 23px; }
  .er-tiles .mt-tile b span { display: block; margin-top: 2px; }
  .er-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .er-facts { grid-template-columns: 1fr; gap: 2px; }
  .er-facts dd { margin-bottom: 10px; }
  .er-row { grid-template-columns: 36px minmax(0, 1fr); }
  .er-row > :last-child:not(div) { grid-column: 2; justify-self: start; }
  .er-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .er-tabs a { white-space: nowrap; }
}

/* ===== Employees list ===== */
.em-page { max-width: 1320px; }
.em-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 4px 0 16px; }
.em-head h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.em-head p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.em-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.em-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.em-tile { display: block; min-width: 0; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); color: var(--hk-color-text); text-decoration: none; }
.em-tile:hover { box-shadow: inset 0 0 0 1px var(--hk-color-border), var(--hk-shadow-float); }
.em-tile.is-on { box-shadow: inset 0 0 0 1.5px var(--hk-color-ink-900), var(--hk-shadow-float); }
.em-tile small { display: flex; align-items: center; gap: 6px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.em-tile b { display: block; margin-top: 4px; font-size: 24px; }
.em-tile em { display: block; margin-top: 2px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.em-tile em.is-warn { color: var(--hk-state-warning-text); }
.em-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.em-dot.is-green { background: #16A34A; }
.em-dot.is-amber { background: #F59E0B; }
.em-dot.is-purple { background: #8B5CF6; }
.em-card { padding: 18px 22px; }
.em-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.em-tool select { width: auto; min-width: 0; max-width: 190px; height: 34px; padding: 0 30px 0 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.em-chips .em-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.em-chips .em-chip em { font-size: 11px; font-style: normal; opacity: .75; }
.em-chips .em-chip.is-on { background: var(--hk-color-ink-900); color: #fff; }
.em-sp { flex: 1; }
.em-view { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--hk-ink-a4); }
.em-view a { display: grid; place-items: center; width: 32px; height: 28px; border-radius: 9px; color: var(--hk-color-text-2); }
.em-view a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline); }
.em-clear { margin: 0; }
.em-presence .employee-status-feedback { margin: 0; }
.em-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.em-t th { padding: 0 10px 10px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.em-t td { padding: 10px; border-top: 1px solid var(--hk-color-divider); vertical-align: middle; }
.em-t th:first-child, .em-t td:first-child { padding-left: 0; }
.em-t td:last-child, .em-t th:last-child { padding-right: 0; text-align: right; }
.em-t tbody tr { cursor: pointer; }
.em-t tbody tr:hover td { background: var(--hk-ink-a3); }
.em-t tr.is-off { opacity: .6; }
.em-p { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.em-name { display: block; color: var(--hk-color-text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.em-name:hover { text-decoration: underline; }
.em-p small, .em-pc small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.em-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.em-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--hk-ink-a4); font-size: 12px; font-weight: 600; white-space: nowrap; }
.em-tag i { color: #B45309; font-style: normal; }
.em-today { min-width: 170px; }
.em-today .work-status-block { display: inline-flex; flex-direction: column; gap: 1px; }
.em-today .work-status-block .status { padding: 0; background: none; font-size: 13px; font-weight: 600; }
.em-today .work-status-detail { font-size: 12px; }
.em-today > small { display: block; max-width: 240px; margin-top: 2px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.em-wk { min-width: 130px; }
.em-wk small { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.em-wk small span { color: var(--hk-color-text-3); font-weight: 500; }
.em-wk .bar { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.em-wk .bar i { display: block; height: 100%; border-radius: 3px; background: var(--hk-color-ink-900); }
.em-wk .bar i.is-behind { background: #F59E0B; }
.em-act .project-row-menu { display: inline-block; }
.em-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.em-empty { padding: 30px 0; text-align: center; }
.em-empty h2 { margin: 0 0 6px; font-size: 16px; }
.em-grp { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; }
.em-grp b { font-size: 15px; }
.em-grp small { color: var(--hk-color-text-2); font-size: 12.5px; }
.em-gi { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hk-state-info-tint); color: var(--hk-state-info-text); font-size: 11.5px; font-weight: 700; }
.em-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.em-pc { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 12px; border-radius: 16px; background: var(--hk-ink-a3); cursor: pointer; }
.em-pc:hover { background: var(--hk-ink-a6); }
.em-pc.is-off { opacity: .6; }
.em-pc .em-today { min-width: 0; margin-top: 6px; }
.em-quick.panel { width: min(460px, 100vw); }
.em-qh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: flex-start; padding: 22px 22px 6px; }
.em-qh h2 { margin: 0; font-size: 20px; }
.em-qh p { margin: 2px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.em-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.em-qbody { padding: 6px 22px; }
.em-box { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); }
.em-box h3 { margin: 0 0 8px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.em-box .my-empty { font-size: 13px; }
.em-qrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--hk-color-text); font-size: 13px; text-decoration: none; }
.em-qrow + .em-qrow { border-top: 1px solid var(--hk-color-divider); }
.em-qrow form { margin: 0; }
.em-qrow .er-link { margin: 0; }
.em-grow { flex: 1; min-width: 0; }
.er-pi.is-small { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.em-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.em-week a { display: block; padding: 6px 0; border-radius: 10px; background: #fff; color: var(--hk-color-text); text-align: center; text-decoration: none; }
.em-week a.is-today { box-shadow: inset 0 0 0 1.5px #93C5FD; }
.em-week a.is-future { opacity: .55; }
.em-week small { display: block; color: var(--hk-color-text-2); font-size: 10.5px; font-weight: 700; }
.em-week b { display: block; margin-top: 2px; font-size: 11.5px; }
.em-week i { display: block; margin-top: 1px; color: var(--hk-color-text-3); font-size: 10px; font-style: normal; font-weight: 700; }
.em-week i.is-ok { color: var(--hk-state-success-text); }
.em-week i.is-warn, .em-week i.is-bad { color: var(--hk-state-danger-text); }
.em-week i.is-info { color: #2563EB; }
.em-week i.is-pur { color: var(--hk-hue-marketing-700); }
.em-qacts { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 22px; }
.em-qacts .button.primary { flex: 1; justify-content: center; }
@media (max-width: 1180px) { .em-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .em-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .em-tiles { grid-template-columns: 1fr 1fr; } .em-cards { grid-template-columns: 1fr; } .em-sp { display: none; } }

/* ===== Finance (overview, tabs, dashboard card) ===== */
.fm-card { margin: 0 0 16px; padding: 18px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.fm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.fm-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.fm-head small { color: var(--hk-color-text-2); font-size: 12.5px; }
.fm-ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #DCFCE7; color: #15803D; }
.fm-sp { flex: 1; }
.fm-lock { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 700; }
.fm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fm-t { display: block; min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text); text-decoration: none; }
.fm-t:hover { background: var(--hk-ink-a4); }
.fm-t small { display: block; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.fm-t b { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -.01em; }
.fm-t em { display: block; margin-top: 2px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.fm-t .is-good, .fin-good { color: #15803D; }
.fm-t .is-bad, .fin-bad { color: #B91C1C; }
.fm-t .is-warn { color: #B45309; }
.fin-head .fin-mon { flex: none; }
.fin-tabs { margin-top: 0; }
a.fin-tile { color: var(--hk-color-text); text-decoration: none; }
.pc-st.is-red { background: #FEE2E2; color: #B91C1C; }
.fin-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 220px; padding-top: 8px; }
.fin-bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; color: var(--hk-color-text-2); text-align: center; text-decoration: none; }
.fin-bar small { font-size: 12px; font-weight: 600; }
.fin-bar.is-on small { color: var(--hk-color-text); font-weight: 700; }
.fin-cols { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; padding: 0 4px; border-bottom: 1px solid var(--hk-color-divider); }
.fin-bar.is-on .fin-cols { border-radius: 10px 10px 0 0; background: var(--hk-ink-a3); }
.fin-cols i { display: block; width: min(22px, 40%); min-height: 2px; border-radius: 6px 6px 0 0; }
.fin-cols .is-in, .fin-legend .is-in { background: #16A34A; }
.fin-cols .is-out, .fin-legend .is-out { background: #F87171; }
.fin-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--hk-color-text-2); font-size: 12px; }
.fin-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fin-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.fin-row > span { text-align: right; }
.fin-row > span:first-child { text-align: left; }
.fin-row.is-head { padding-top: 0; border-top: 0; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fin-row a { color: var(--hk-color-text); text-decoration: none; }
.fin-row b { font-weight: 600; }
.fin-row small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.fin-owe { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; font-size: 13.5px; }
.my-h + .fin-owe { border-top: 0; }
.fin-owe > span:first-child { min-width: 0; }
.fin-owe b { display: block; font-weight: 600; }
.fin-owe small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.fin-amt { display: grid; justify-items: end; gap: 3px; flex: none; }
.fin-fix { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.my-h + .fin-fix { border-top: 0; }
.fin-fix .pc-ico { width: 36px; height: 36px; }
.fin-fix b { display: block; }
.fin-fix small { display: block; margin: 2px 0 8px; color: var(--hk-color-text-2); font-size: 12.5px; }
.fin-how { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.55; }
.fin-how b { color: var(--hk-color-text); }
@media (max-width: 1180px) { .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fm-grid { grid-template-columns: 1fr 1fr; }
  .fm-lock { display: none; }
  .fin-bars { gap: 6px; height: 170px; }
  .fin-row { grid-template-columns: minmax(0, 1fr) 80px 84px; gap: 8px; }
}

/* ===== Client portal: home, project and task ===== */
.pc-page { max-width: 1320px; }
.pc-crumb { margin: 0 0 6px; color: var(--hk-color-text-2); font-size: 13px; }
.pc-crumb a { color: var(--hk-color-text-2); }
.pc-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 4px 0 16px; }
.pc-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.pc-head h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pc-head p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pc-grid > aside, .pc-grid > div { min-width: 0; }
.pc-proj { display: grid; gap: 16px; }
.pc-proj > .my-card { margin: 0; }
.pc-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.pc-pn { min-width: 0; flex: 1 1 260px; }
.pc-pn a { color: var(--hk-color-text); text-decoration: none; }
.pc-pn b { display: block; font-size: 17px; }
.pc-pn h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.pc-pn small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 4px; color: var(--hk-color-text-2); font-size: 12.5px; }
.pc-pn small > span + span::before { content: "·"; margin: 0 7px; color: var(--hk-color-text-3); }
.pc-who { display: inline-flex; align-items: center; gap: 6px; }
.pc-pct { min-width: 200px; margin-left: auto; text-align: right; }
.pc-pct b { font-size: 20px; }
.pc-pct small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.pc-bar { display: block; height: 8px; margin: 6px 0 4px; overflow: hidden; border-radius: 4px; background: rgba(15,23,42,.08); }
.pc-bar i { display: block; height: 100%; border-radius: 4px; background: #16A34A; }
.pc-req { margin-left: 4px; }
.pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pc-box { min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); }
.pc-box h3 { margin: 0 0 6px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pc-li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--hk-color-text); font-size: 13.5px; text-decoration: none; }
a.pc-li:hover span { text-decoration: underline; }
.pc-li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-li span b { font-weight: 600; }
.pc-li em { flex: none; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; }
.pc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #2563EB; }
.pc-dot.is-grey { background: #94A3B8; }
.pc-dot.is-flag { border-radius: 2px; background: #16A34A; }
.pc-none { margin: 4px 0; color: var(--hk-color-text-2); font-size: 13px; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text-2); font-size: 13px; }
.pc-foot > span { flex: 1; min-width: 0; }
.pc-foot a:not(.button) { color: var(--hk-color-text); }
.pc-foot b { font-weight: 600; }
.pc-up { display: flex; align-items: flex-start; gap: 12px; }
.pc-up b { display: block; font-size: 14px; }
.pc-up small { display: block; margin: 2px 0 10px; color: var(--hk-color-text-2); font-size: 12.5px; }
.pc-ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #DBEAFE; color: #1D4ED8; }
.pc-ico.is-pink { width: 36px; height: 36px; background: #FCE7F3; color: #BE185D; }
.pc-act { display: block; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); font-size: 13px; text-decoration: none; }
.my-h + .pc-act { border-top: 0; }
a.pc-act:hover { color: var(--hk-color-text-2); }
.pc-act small { display: block; color: var(--hk-color-text-3); font-size: 11.5px; }
.pc-top .pc-pct { min-width: 220px; }
.pc-ms { display: flex; margin: 18px 0 0; padding: 0; list-style: none; }
.pc-ms li { position: relative; flex: 1; min-width: 0; padding: 24px 10px 0 0; font-size: 12.5px; }
.pc-ms li::before { content: ""; position: absolute; top: 7px; right: 0; left: 0; height: 3px; background: rgba(15,23,42,.08); }
.pc-ms li.is-done::before { background: #16A34A; }
.pc-ms li i { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #CBD5E1; }
.pc-ms li.is-done i { background: #16A34A; box-shadow: none; }
.pc-ms li.is-next i { box-shadow: inset 0 0 0 3px #2563EB; }
.pc-ms b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pc-ms small { color: var(--hk-color-text-2); font-size: 11.5px; }
.pc-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 16px; padding: 4px; border-radius: 22px; background: var(--hk-ink-a4); }
.pc-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pc-tabs a:hover { color: var(--hk-color-text); }
.pc-tabs a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,.08), var(--hk-shadow-hairline); }
.pc-tabs em { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F59E0B; color: #fff; font-size: 10.5px; font-style: normal; }
.pc-sec { margin: 18px 0 2px; color: var(--hk-color-text-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pc-work .pc-sec:first-child { margin-top: 0; }
.pc-t { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px 60px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.pc-t:hover .pc-tt b { text-decoration: underline; }
.pc-tt { min-width: 0; }
.pc-tt b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pc-tt small { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12px; }
.pc-st { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: #DBEAFE; color: #1E40AF; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pc-st.is-todo { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.pc-st.is-done { background: #DCFCE7; color: #166534; }
.pc-st.is-big { height: 30px; padding: 0 14px; font-size: 13px; }
.pc-due { font-size: 13px; }
.pc-due small { display: block; color: var(--hk-color-text-2); font-size: 11.5px; }
.pc-open { color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-align: right; }
.pc-fold { margin-top: 12px; }
.pc-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); font-size: 13.5px; font-weight: 600; list-style: none; cursor: pointer; }
.pc-fold summary::-webkit-details-marker { display: none; }
.pc-fold summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pc-fold[open] summary { margin-bottom: 4px; }
.pc-fold[open] .pc-show { visibility: hidden; }
.pc-steps { display: flex; gap: 6px; }
.pc-steps span { flex: 1; padding-top: 10px; border-top: 4px solid rgba(15,23,42,.08); color: var(--hk-color-text-3); font-size: 12px; font-weight: 600; }
.pc-steps span.is-done { border-color: #16A34A; color: var(--hk-color-text-2); }
.pc-steps span.is-on { border-color: #2563EB; color: var(--hk-color-text); }
.pc-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; margin: 16px 0 0; font-size: 13.5px; }
.pc-dl dt { color: var(--hk-color-text-2); }
.pc-dl dd { margin: 0; font-weight: 500; }
.pc-dl dd small { color: var(--hk-color-text-2); font-weight: 400; }
.pc-brief { font-size: 14px; line-height: 1.6; }
.pc-file { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.my-h + .pc-file { border-top: 0; }
.pc-file > span:last-child { min-width: 0; }
.pc-file b { display: block; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pc-file small { color: var(--hk-color-text-2); font-size: 12px; }
.pq-more { display: inline-block; margin: 6px 0 0; padding: 4px 0; border: 0; background: none; color: var(--hk-color-text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pq-more:hover { color: var(--hk-color-text); }
@media (max-width: 1180px) { .pc-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pc-head h1 { font-size: 26px; }
  .pc-cols { grid-template-columns: 1fr; }
  .pc-pct, .pc-top .pc-pct { width: 100%; min-width: 0; margin-left: 0; text-align: left; }
  .pc-req { width: 100%; justify-content: center; margin-left: 0; }
  .pc-pn small { gap: 2px 12px; }
  .pc-pn small > span + span::before { display: none; }
  .pc-ms { flex-direction: column; gap: 10px; }
  .pc-ms li { padding: 0 0 0 26px; }
  .pc-ms li::before { top: 17px; bottom: -10px; left: 7px; right: auto; width: 3px; height: auto; }
  .pc-ms li:last-child::before { display: none; }
  .pc-ms b { white-space: normal; }
  .pc-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pc-t { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .pc-t > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .pc-t .pc-due { grid-column: 1 / -1; }
  .pc-t .pc-open { display: none; }
  .pc-dl { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Client approval page */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ap-grid > * { min-width: 0; }
.ap-stage { position: relative; display: grid; place-items: center; max-height: 640px; overflow: hidden; border-radius: 18px; background: #0F172A; }
.ap-slide { display: grid; place-items: center; width: 100%; }
.ap-slide[hidden] { display: none; }
.ap-slide img, .ap-slide video { display: block; max-width: 100%; max-height: 640px; object-fit: contain; }
.ap-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #0F172A; transform: translateY(-50%); cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,.2); }
.ap-nav.is-prev { left: 14px; }
.ap-nav.is-next { right: 14px; }
.ap-nav.is-next svg { transform: rotate(180deg); }
.ap-count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 600; }
.ap-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ap-th { display: grid; place-items: center; width: 60px; height: 72px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); cursor: pointer; }
.ap-th img { width: 100%; height: 100%; object-fit: cover; }
.ap-th.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563EB; }
.ap-sp { flex: 1; }
.ap-files { margin-top: 12px; }
.ap-cap { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.ap-cap > small { display: block; margin-bottom: 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ap-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.ap-empty h2 { margin: 6px 0 0; font-size: 17px; }
.ap-empty p { max-width: 420px; margin: 0; color: var(--hk-color-text-2); font-size: 13.5px; }
.ap-ver { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.my-h + .ap-ver { border-top: 0; }
.ap-ver > i { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #2563EB; }
.ap-ver > i.is-red { background: #E11D48; }
.ap-ver > i.is-green { background: #16A34A; }
.ap-ver > div { min-width: 0; flex: 1; }
.ap-ver b { display: block; font-size: 13.5px; }
.ap-ver small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.ap-ver .ap-by { margin-top: 8px; }
.ap-q { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--hk-ink-a3); overflow-wrap: anywhere; }
.ap-q.is-answer { background: #EFF6FF; }
.ap-side { position: sticky; top: 16px; }
.ap-st { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: #FEF3C7; color: #92400E; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ap-st.is-changes { background: #FFE4E6; color: #BE123C; }
.ap-st.is-approved { background: #DCFCE7; color: #166534; }
.ap-dl { margin: 0 0 14px; grid-template-columns: 100px minmax(0, 1fr); }
.ap-form { position: relative; }
.ap-form textarea { width: 100%; min-height: 96px; }
.ap-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ap-btns .button { justify-content: center; height: 44px; }
.ap-btns .is-go { background: #16A34A; color: #fff; }
.ap-btns .is-go:hover { background: #15803D; }
.ap-hint { margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
/* Client Reports tab */
.rp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 16px; }
.rp-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hk-ink-a4); }
.rp-seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rp-seg a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.rp-mon { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-float); }
.rp-mon b { padding: 0 8px; font-size: 14px; white-space: nowrap; }
.rp-mon a, .rp-mon span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); }
.rp-mon .is-off { opacity: .35; }
.rp-mon .is-next svg { transform: rotate(180deg); }
.rp-tiles .mt-tile em.is-up { color: var(--hk-state-success-text); }
.rp-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.rp-day { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.my-h + .rp-day { border-top: 0; }
.rp-date b { display: block; font-size: 20px; line-height: 1.1; }
.rp-date small { color: var(--hk-color-text-2); font-size: 12px; }
.rp-it { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.rp-it > i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #16A34A; }
.rp-it > i.is-blue { background: #2563EB; }
.rp-it > div { min-width: 0; overflow-wrap: anywhere; }
.rp-it small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.rp-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.rp-links a { color: #1D4ED8; font-size: 12.5px; font-weight: 600; }
.rp-more > summary { margin-top: 10px; list-style: none; cursor: pointer; }
.rp-more > summary::-webkit-details-marker { display: none; }
.rp-more[open] > summary { display: none; }
.rp-cat { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 60px; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.rp-cat b { font-weight: 600; overflow-wrap: anywhere; }
.rp-cat em { color: var(--hk-color-text-2); font-size: 12.5px; font-style: normal; text-align: right; }
.rp-b { height: 10px; overflow: hidden; border-radius: 5px; background: rgba(15,23,42,.06); }
.rp-b i { display: block; height: 100%; border-radius: 5px; background: #2563EB; }
.rp-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-fig > div { padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); }
.rp-fig small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.rp-fig b { font-size: 18px; }
.rp-note { margin: 12px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.rp-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; }
.rp-empty h2 { margin: 6px 0 0; font-size: 17px; }
.rp-empty p { max-width: 460px; margin: 0 0 6px; color: var(--hk-color-text-2); font-size: 13.5px; }
@media (max-width: 1180px) { .ap-grid, .rp-grid { grid-template-columns: 1fr; } .ap-side { position: static; } }
@media (max-width: 760px) { .ap-th { width: 50px; height: 60px; } .rp-cat { grid-template-columns: 100px minmax(0, 1fr) 54px; } .rp-day { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; } }
@media print { .rp-top .button, .pc-tabs, .pc-req, .sidebar, .topbar { display: none !important; } }

/* Client Posted tab, Requests and Updates */
.pc-ico.is-amber { background: #FEF3C7; color: #B45309; }
.pc-ico.is-green { background: #DCFCE7; color: #15803D; }
.pc-st.is-amber { background: #FEF3C7; color: #92400E; }
.pc-new { display: inline-flex; align-items: center; height: 18px; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: #2563EB; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.ps-next { font-size: 18px !important; margin-top: 8px !important; }
.ps-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ps-p { display: flex; gap: 10px; min-width: 0; padding: 10px; border-radius: 16px; background: var(--hk-ink-a3); }
.ps-p > div { min-width: 0; }
.ps-p b { display: block; font-size: 13.5px; }
.ps-p small { display: block; margin: 2px 0 6px; color: var(--hk-color-text-2); font-size: 12px; }
.ps-th { position: relative; display: grid; flex: none; place-items: center; width: 64px; height: 80px; overflow: hidden; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-3); }
.ps-th img, .ps-th video { width: 100%; height: 100%; object-fit: cover; }
.ps-th i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,.25); color: #fff; }
.ps-links { display: flex; flex-wrap: wrap; gap: 5px; }
.ps-pl { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; background: #475569; color: #fff; font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.ps-pl:hover { filter: brightness(1.1); }
.ps-pl.is-instagram { background: linear-gradient(45deg, #F59E0B, #DB2777, #7C3AED); }
.ps-pl.is-facebook { background: #1877F2; }
.ps-pl.is-tiktok, .ps-pl.is-x, .ps-pl.is-threads { background: #0F172A; }
.ps-pl.is-linkedin { background: #0A66C2; }
.ps-pl.is-youtube { background: #DC2626; }
.ps-pl.is-pinterest { background: #BD081C; }
.ps-pl.is-gbp { background: #16A34A; }
.ps-plan { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px dashed rgba(15,23,42,.18); border-radius: 16px; color: var(--hk-color-text-2); font-size: 13px; }
.ps-li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.my-h + .ps-li { border-top: 0; }
.ps-li b { font-weight: 600; }
.rq-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px 60px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.em-tool + .rq-row { border-top: 0; }
.rq-row:hover .rq-t b { text-decoration: underline; }
.rq-row .pc-ico { width: 44px; height: 44px; }
.rq-t { min-width: 0; }
.rq-t b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.rq-t small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rq-t q { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: var(--hk-ink-a3); color: var(--hk-color-text); font-size: 12.5px; quotes: none; overflow-wrap: anywhere; }
.rq-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.rq-done { margin: 12px 0 0 !important; color: var(--hk-color-text-2); font-size: 13px; }
.rq-done a { color: var(--hk-color-text); font-weight: 600; }
.rq-none { margin: 10px 0 0; }
.rq-foot { margin-top: 12px; }
.up-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: center; }
.up-hero > div { min-width: 0; }
.up-hero h2 { margin: 10px 0 0; font-size: 20px; }
.up-hero .sub { display: block; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12.5px; }
.up-hero ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.up-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.up-figs { align-self: stretch; align-content: center; }
.up-next { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 18px; background: #EFF6FF; color: #1E3A8A; font-size: 13.5px; }
.up-next svg { flex: none; }
.up-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 60px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.pc-sec + .up-row { border-top-color: var(--hk-color-divider); }
.up-row:hover .up-t b { text-decoration: underline; }
.up-t { min-width: 0; }
.up-t b { display: block; font-size: 14px; }
.up-t small, .up-when small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.up-when { color: var(--hk-color-text-2); font-size: 12.5px; }
@media (max-width: 760px) {
  .up-hero { grid-template-columns: 1fr; }
  .rq-row, .up-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .rq-row .pc-open, .up-row .pc-open { display: none; }
  .up-row .up-when { grid-column: 2 / -1; }
  .rq-row .pc-ico, .up-row .pc-ico { width: 40px; height: 40px; }
  .ps-posts { grid-template-columns: 1fr; }
}

/* ===== Team tasks ===== */
.tt-page { max-width: 1320px; }
a.tt-tile { display: block; color: var(--hk-color-text); text-decoration: none; }
.tt-tile.is-on { box-shadow: inset 0 0 0 1.5px #2563EB, var(--hk-shadow-float); }
.mt-tile em.is-info { color: #1D4ED8; }
.tt-f { display: inline-flex; margin: 0; }
.tt-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.tt-act .is-go { background: #16A34A; color: #fff; }
.tt-act .is-go:hover { background: #15803D; }
.tt-act [data-task] { cursor: pointer; }
.tt-t { min-width: 0; }
.tt-t b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tt-t small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12px; }
.tt-tag { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 7px; border-radius: 6px; background: #DBEAFE; color: #1E40AF; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tt-tag.is-grey { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.tt-ap { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.tt-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 500; }
.tt-time { font-size: 12.5px; }
.tt-time b { font-weight: 600; }
.tt-time small { color: var(--hk-color-text-2); font-size: 11.5px; }
.tt-ap .tt-time b, .tt-ap .tt-time small { display: block; }
.tt-time.is-over b { color: var(--hk-state-warning-text); }
.tt-more { display: inline-block; padding: 4px 0 8px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.tt-more:hover { color: var(--hk-color-text); }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hk-ink-a4); }
.tt-seg a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tt-seg a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.tt-focus { margin: 0 0 4px; color: var(--hk-color-text-2); font-size: 13px; }
.tt-focus a { color: var(--hk-color-text); font-weight: 600; }
.tt-g { margin-top: 14px; padding: 4px 16px 8px; border-radius: 18px; background: var(--hk-ink-a3); }
.tt-gh { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0 10px; }
.tt-gh .er-pi { width: 36px; height: 36px; flex: none; }
.tt-gh b { display: block; font-size: 14.5px; }
.tt-gh small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.tt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.tt-meta .is-bad { color: var(--hk-state-danger-text); }
.tt-bar { display: inline-block; width: 90px; height: 6px; margin-left: 8px; overflow: hidden; border-radius: 3px; background: rgba(15,23,42,.08); vertical-align: middle; }
.tt-bar > i { display: block; height: 100%; border-radius: 3px; background: #2563EB; }
.tt-bar > i.is-bad { background: #DC2626; }
.tt-bar > i.is-ok { background: #16A34A; }
.tt-r { display: grid; grid-template-columns: minmax(0, 1fr) 120px 130px 120px 80px 200px; gap: 14px; align-items: center; margin: 0 -10px 6px; padding: 11px 12px; border-radius: 12px; background: #fff; }
.tt-r.is-head { margin-bottom: 0; padding: 0 12px 6px; background: none; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tt-due { font-size: 13px; font-weight: 500; }
.tt-due small { display: block; color: var(--hk-color-text-2); font-size: 11.5px; }
.tt-due.is-late, .tt-due.is-late small { color: var(--hk-state-danger-text); }
.tt-st { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tt-st.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.tt-st.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.tt-st.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.tt-live { display: inline-flex; align-items: center; gap: 6px; color: #16A34A; font-size: 12px; font-weight: 600; }
.tt-live i { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.tt-trunc { margin: 12px 0 0; }
@media (max-width: 1180px) {
  .tt-r { grid-template-columns: minmax(0, 1fr) 120px 120px auto; }
  .tt-r > .tt-time, .tt-r > .tt-live, .tt-r.is-head > span:nth-child(4), .tt-r.is-head > span:nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  .tt-ap { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .tt-ap .tt-act { grid-column: 1 / -1; justify-content: flex-start; }
  .tt-r { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .tt-r.is-head { display: none; }
  .tt-r > .tt-due { grid-column: 2; grid-row: 1; text-align: right; }
  .tt-r > .tt-act { grid-column: 1 / -1; justify-content: flex-start; }
  .tt-meta { margin-left: 0; width: 100%; }
  .tt-chips { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tt-chips .em-chip { flex: none; white-space: nowrap; }
  .tt-g { padding: 4px 12px 8px; }
}

/* ===== Client updates ===== */
.cu-page { max-width: 1240px; }
a.cu-tile { display: block; color: var(--hk-color-text); text-decoration: none; }
.cu-tile.is-on { box-shadow: inset 0 0 0 1.5px #F59E0B, var(--hk-shadow-float); }
.cu-tile em.is-bad { color: var(--hk-state-danger-text); }
.em-dot.is-blue { background: #2563EB; }
.em-dot.is-red { background: #DC2626; }
.cu-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.cu-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.cu-row.is-head { padding: 0 0 10px; border-top: 0; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cu-row.is-head + .cu-row { border-top: 1px solid var(--hk-color-divider); }
.cu-c { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cu-c .er-pi { width: 40px; height: 40px; flex: none; }
.cu-c b { display: block; font-size: 14px; }
.cu-c small, .cu-st small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.cu-st { min-width: 0; }
.cu-st b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.cu-st b.is-plain { display: block; font-weight: 500; }
.cu-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.cu-act form { margin: 0; }
.cu-act .is-go { background: #16A34A; color: #fff; }
.cu-menu { width: 250px; padding: 6px; }
.cu-menu.is-small { width: 230px; }
.cu-menu form { margin: 0; }
.cu-mh { margin: 6px 10px 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cu-mi { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--hk-color-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cu-mi:hover { background: var(--hk-ink-a4); }
.cu-mi b { display: block; font-size: 13.5px; }
.cu-mi small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.cu-u { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 170px 60px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text); text-decoration: none; }
.cu-u:hover .cu-ut b { text-decoration: underline; }
.cu-ut b { display: block; font-size: 14px; }
.cu-ut small, .cu-when small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.cu-when { color: var(--hk-color-text-2); font-size: 12.5px; }
.cu-open { color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-align: right; }
@media (max-width: 1180px) { .cu-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .cu-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cu-row.is-head { display: none; }
  .cu-row > .cu-st { grid-column: 1 / -1; }
  .cu-row > .cu-act { grid-column: 2; grid-row: 1; }
  .cu-u { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cu-u .cu-when { grid-column: 2 / -1; }
  .cu-u .cu-open { display: none; }
}

/* ===== Salaries and payslips ===== */
.sl-page, .ps-page { max-width: 1240px; }
.sl-crumb { margin: 2px 0 4px; color: var(--hk-color-text-2); font-size: 13px; }
.sl-crumb a { color: var(--hk-color-text-2) !important; text-decoration: none; }
.sl-crumb a:hover { color: var(--hk-color-text) !important; }
.sl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.sl-tiles .mt-tile em.is-bad { color: var(--hk-state-danger-text); }
.sl-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.sl-t td { white-space: nowrap; }
.sl-t td:first-child, .sl-t td[colspan] { white-space: normal; }
.sl-t .hf-p { min-width: 180px; }
.sl-t tr.is-missing td { background: #FFFBEB; }
.sl-t tr.is-focus td { box-shadow: inset 0 1px 0 #93C5FD, inset 0 -1px 0 #93C5FD; }
.sl-t .hf-p small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.sl-tax { display: block; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 500; }
.sl-dialog { width: min(600px, calc(100vw - 32px)); }
.sl-dh { display: flex; align-items: center; gap: 12px; }
.sl-dh h2 { margin: 0; }
.sl-now { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--hk-ink-a3); }
.sl-now small { display: block; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.sl-now b { display: block; margin-top: 2px; font-size: 20px; }
.sl-now em { display: block; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; font-weight: 600; }
.sl-now em.is-up { color: var(--hk-state-success-text); }
.sl-now em.is-dn { color: var(--hk-state-danger-text); }
.sl-hist { margin-top: 14px; }
.sl-hist h3 { margin: 0 0 4px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sl-hr { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.sl-hr small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.sl-hr .er-link { margin: 0; }
.ps-who { display: flex; align-items: center; gap: 14px; }
.ps-who h1 { font-size: 28px; }
.ps-who p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pr-month .is-disabled { opacity: .35; pointer-events: none; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 16px; align-items: start; }
.ps-sec { display: flex; justify-content: space-between; margin: 14px 0 2px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.my-h + .ps-sec { margin-top: 0; }
.ps-line { display: grid; grid-template-columns: minmax(0, 1fr) 150px 32px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); }
.ps-line b { font-size: 13.5px; }
.ps-line small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12px; }
.ps-line input[type=text] { width: 100%; box-sizing: border-box; height: 38px; text-align: right; font-weight: 600; }
.ps-line.is-new input[data-ps-label] { text-align: left; font-weight: 500; }
.ps-line.is-removed > div, .ps-line.is-removed input[data-ps-amount] { opacity: .4; text-decoration: line-through; }
.ps-line.is-read { grid-template-columns: minmax(0, 1fr) auto 0; }
.ps-val { font-weight: 600; text-align: right; }
.ps-by { height: 20px; margin-left: 4px; padding: 0 8px; font-size: 11px; vertical-align: 1px; }
.ps-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--hk-color-text-3); cursor: pointer; }
.ps-x:hover { background: var(--hk-ink-a4); color: var(--hk-state-danger-text); }
.ps-x input { position: absolute; opacity: 0; pointer-events: none; }
.ps-line.is-removed .ps-x { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ps-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ps-note { margin-top: 16px; }
.ps-note textarea { width: 100%; box-sizing: border-box; }
.ps-chk { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; }
.ps-chk b { color: var(--hk-color-text); }
.ps-chk.is-on { background: #F0FDF4; box-shadow: inset 0 0 0 1px #BBF7D0; color: #166534; }
.ps-chk.is-on b { color: #14532D; }
.ps-paper { padding: 26px 28px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); font-size: 13px; }
.ps-ph { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hk-color-divider); }
.ps-ph b { font-size: 15px; }
.ps-ph small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.ps-pt { text-align: right; }
.ps-pt h2 { margin: 0; font-size: 22px; }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.ps-cols h4 { margin: 0 0 6px; color: var(--hk-color-text-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ps-r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--hk-color-divider); }
.ps-r span:last-child { white-space: nowrap; }
.ps-r.is-tot { font-weight: 700; }
.ps-net { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #F0FDF4; color: #14532D; font-size: 16px; font-weight: 700; }
.ps-facts { margin-top: 12px; font-size: 12.5px; }
.ps-pnote { margin: 10px 0 0; white-space: pre-line; }
.ps-pnote[hidden] { display: none; }
.ps-hint { margin: 10px 4px 0; }
@media (max-width: 1180px) { .sl-grid, .ps-grid { grid-template-columns: 1fr; } .sl-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ps-line { grid-template-columns: minmax(0, 1fr) 110px 32px; } .ps-cols { grid-template-columns: 1fr; } .sl-now { grid-template-columns: 1fr; } .sl-now > span { display: none; } }

/* ===== Payroll month ===== */
.pr-page { max-width: 1240px; }
.pr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 4px 0 16px; }
.pr-head h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.pr-head p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.pr-month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-month > b { padding: 0 4px; font-size: 15px; white-space: nowrap; }
.pr-month .is-next svg { transform: rotate(180deg); }
.pr-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 16px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--hk-shadow-float); list-style: none; }
.pr-step { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 16px; }
.pr-step.is-on { background: #EFF6FF; box-shadow: inset 0 0 0 1.5px #93C5FD; }
.pr-step .n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 13px; font-weight: 700; }
.pr-step.is-done .n { background: #16A34A; color: #fff; }
.pr-step.is-on .n { background: #2563EB; color: #fff; }
.pr-step b { display: block; font-size: 13.5px; }
.pr-step small { display: block; margin-top: 1px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.pr-step.is-done small { color: var(--hk-state-success-text); }
.pr-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.pr-chk { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.my-h + .pr-chk { border-top: 0; padding-top: 4px; }
.pr-chk .my-wic { width: 40px; height: 40px; }
.pr-chk.is-small { grid-template-columns: 34px minmax(0, 1fr); padding: 10px 0; }
.pr-chk.is-small .my-wic { width: 34px; height: 34px; }
.pr-chk.is-small > :last-child:not(div) { grid-column: 2; justify-self: start; }
.pr-chk.is-small > span:last-child:empty { display: none; }
.pr-chk b { display: block; font-size: 14px; }
.pr-chk small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.pr-chk form { margin: 0; }
.pr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--hk-color-divider); }
.pr-foot form { margin: 0; }
.pr-foot .my-empty { flex: 1; min-width: 220px; }
.pr-dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; margin: 0; font-size: 13.5px; }
.pr-dl dt { color: var(--hk-color-text-2); }
.pr-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pr-big { margin: 2px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.pr-gap { margin-bottom: 14px; }
.pr-prog { display: flex; align-items: center; gap: 10px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pr-prog .bar { width: 150px; height: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.pr-prog .bar i { display: block; height: 100%; border-radius: 3px; background: #16A34A; transition: width .2s; }
.pr-filters { margin: 0 0 12px; }
.pr-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.pr-t th { padding: 0 10px 10px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.pr-t td { padding: 10px; border-top: 1px solid var(--hk-color-divider); vertical-align: middle; }
.pr-t th:first-child, .pr-t td:first-child { padding-left: 0; }
.pr-t th:last-child, .pr-t td:last-child { padding-right: 0; }
.pr-t .r { text-align: right; white-space: nowrap; }
.pr-t tr[hidden] { display: none; }
.pr-t .hf-p { min-width: 150px; }
.pr-t .hf-needs .my-chip { white-space: normal; height: auto; min-height: 22px; padding-top: 2px; padding-bottom: 2px; }
.pr-tick, .pr-tick-h { width: 34px; }
.pr-tick form { margin: 0; }
.pr-box { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid rgba(15,23,42,.24); border-radius: 7px; background: #fff; color: transparent; cursor: pointer; }
.pr-box:hover { border-color: #16A34A; }
.pr-box.is-on { border-color: #16A34A; background: #16A34A; color: #fff; }
.pr-ch { color: var(--hk-color-text-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pr-ch.is-up { color: var(--hk-state-success-text); }
.pr-ch.is-dn { color: var(--hk-state-danger-text); }
.pr-done { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: #F0FDF4; box-shadow: inset 0 0 0 1px #BBF7D0; }
.pr-done > div { flex: 1; min-width: 220px; }
.pr-done b { color: #14532D; font-size: 14.5px; }
.pr-done small { display: block; margin-top: 2px; color: #166534; font-size: 12.5px; }
.pr-done form { margin: 0; }
.pr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pr-paid { display: flex; align-items: center; gap: 8px; margin: 0; }
.pr-paid input { width: 150px; height: 36px; }
.pr-paid .button { white-space: nowrap; }
.pr-slip b a { color: var(--hk-color-text); text-decoration: none; }
.pr-slip[hidden] { display: none; }
.my-wic.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
@media (max-width: 1180px) { .pr-grid { grid-template-columns: 1fr; } .pr-steps { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; } }
@media (max-width: 760px) {
  .pr-tiles { grid-template-columns: 1fr; }
  .pr-chk { grid-template-columns: 40px minmax(0, 1fr); }
  .pr-chk > :last-child:not(div) { grid-column: 2; justify-self: start; }
  .pr-step { padding: 10px; }
}

/* ===== HR files ===== */
.hf-page { max-width: 1240px; }
.hf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 4px 0 16px; }
.hf-head h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.hf-head p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.hf-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-wait { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--hk-state-info-tint); color: var(--hk-state-info-text); font-size: 13.5px; }
.hf-wait a { color: inherit; font-weight: 600; }
.hf-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.hf-tile { display: block; min-width: 0; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); color: var(--hk-color-text); text-decoration: none; }
.hf-tile:hover { box-shadow: inset 0 0 0 1px var(--hk-color-border), var(--hk-shadow-float); }
.hf-tile.is-on { box-shadow: inset 0 0 0 1.5px #F59E0B, var(--hk-shadow-float); }
.hf-tile small { display: flex; align-items: center; gap: 6px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.hf-tile b { display: block; margin-top: 4px; font-size: 24px; }
.hf-tile em { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; font-weight: 600; }
.hf-tile em.is-warn { color: var(--hk-state-warning-text); }
.hf-tile em.is-bad { color: var(--hk-state-danger-text); }
.hf-tabs { margin-bottom: 16px; }
.ac-tabs.hf-tabs em { background: var(--hk-ink-a6); color: var(--hk-color-text-2); }
.ac-tabs.hf-tabs em.is-warn { background: #F59E0B; color: #fff; }
.hf-t td:nth-child(2), .hf-t td:nth-child(5), .hf-t td:nth-child(6) { white-space: nowrap; }
.hf-t td:first-child { min-width: 210px; }
.hf-t td:nth-child(7) { min-width: 200px; }
.hf-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.hf-search { display: flex; align-items: center; gap: 8px; width: 270px; max-width: 100%; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-3); }
.hf-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--hk-color-text); font: inherit; font-size: 13px; outline: none; box-shadow: none; }
.hf-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-filters button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 17px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.hf-filters button em { font-size: 11px; font-style: normal; opacity: .75; }
.hf-filters button.is-on { background: var(--hk-color-ink-900); color: #fff; }
.hf-table-wrap { position: relative; overflow-x: auto; }
.hf-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.hf-t th { padding: 0 10px 10px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.hf-t td { padding: 11px 10px; border-top: 1px solid var(--hk-color-divider); vertical-align: middle; }
.hf-t th:first-child, .hf-t td:first-child { padding-left: 0; }
.hf-t td:last-child { padding-right: 0; }
.hf-t tr[hidden] { display: none; }
.hf-t tbody tr { cursor: pointer; }
.hf-t tbody tr:hover td { background: var(--hk-ink-a3); }
.hf-p { display: flex; align-items: center; gap: 10px; color: var(--hk-color-text); text-decoration: none; }
.hf-p b { display: block; font-size: 13.5px; }
.hf-p small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.hf-mini { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.hf-mini .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.hf-mini .bar i { display: block; height: 100%; border-radius: 3px; background: #16A34A; }
.hf-mini .bar i.is-bad { background: #DC2626; }
.hf-mini small { color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.hf-warn { color: var(--hk-state-warning-text); font-weight: 600; }
.hf-needs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hf-needs .my-chip { height: 22px; font-size: 11.5px; }
.hf-go { color: var(--hk-color-text-3); text-align: right; }
.hf-go svg { transform: rotate(180deg); }
.hf-page .is-mut { color: var(--hk-color-text-3); }
.hf-foot { margin-top: 12px; }
.hf-doc[hidden] { display: none; }
.hf-doc small a { color: var(--hk-color-text); font-weight: 600; text-decoration: none; }
.hf-pol { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--hk-color-divider); }
.my-h + .hf-pol { border-top: 0; padding-top: 4px; }
.hf-pol.is-off { opacity: .6; }
.hf-pol b { font-size: 14.5px; }
.hf-pol .sub-inline { color: var(--hk-color-text-2); font-size: 12.5px; }
.hf-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.hf-ic.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.hf-ic.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.hf-bar { max-width: 420px; height: 6px; margin: 9px 0 8px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.hf-bar i { display: block; height: 100%; border-radius: 3px; background: #16A34A; }
.hf-bar i.is-warn { background: #F59E0B; }
.hf-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 12.5px; }
.hf-stack { display: inline-flex; }
.hf-stack a { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.hf-stack a + a { margin-left: -7px; }
.hf-sum { margin-top: 6px; }
.hf-sum summary { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.hf-sum p { margin: 6px 0 0; font-size: 13px; }
.hf-pol .er-acts-row form { margin: 0; }
.hf-menu { position: relative; }
.hf-menu summary { list-style: none; cursor: pointer; }
.hf-menu summary::-webkit-details-marker { display: none; }
.hf-menu-panel { position: absolute; top: 36px; right: 0; z-index: 20; width: 320px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--hk-shadow-overlay, 0 12px 40px rgba(15,23,42,.18)); }
.hf-menu-panel form { margin: 0; }
.hf-menu-panel > form + form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hk-color-divider); }
.hf-form { display: flex; flex-direction: column; gap: 10px; }
.hf-form > label:not(.attach):not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; }
.hf-form input[type=text], .hf-form textarea { width: 100%; box-sizing: border-box; }
.hf-drop { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border: 1.5px dashed var(--hk-color-border); border-radius: 14px; color: var(--hk-color-text-2); font-size: 13px; }
.hf-drop span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-drop .button { cursor: pointer; }
.hf-wide { width: 100%; justify-content: center; }
.hf-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 170px auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.my-h + .hf-row { border-top: 0; }
.hf-row b, .hf-row2 b { display: block; font-size: 13.5px; }
.hf-row small, .hf-row2 small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.hf-row2 { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hk-color-divider); }
.hf-grp + .hf-row2, .my-h + .hf-row2 { border-top: 0; }
.hf-grp { margin: 12px 0 2px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.my-h + .hf-grp { margin-top: 0; }
.hf-date { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hk-ink-a4); line-height: 1.05; }
.hf-date b { margin: 0; font-size: 15px; }
.hf-date small { margin: 0 !important; color: inherit !important; font-size: 10px !important; font-weight: 700; text-transform: uppercase; }
.hf-date.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.hf-date.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.hf-dialog { width: min(640px, calc(100vw - 32px)); }
.hf-dialog.is-small { width: min(460px, calc(100vw - 32px)); }
.hf-dialog textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 1180px) { .hf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hf-tiles { grid-template-columns: 1fr 1fr; }
  .hf-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .hf-row .hf-mini { grid-column: 2; grid-row: 2; }
  .hf-row > .button { grid-row: 1; grid-column: 3; }
  .hf-pol { grid-template-columns: 44px minmax(0, 1fr); }
  .hf-pol > .er-acts-row { grid-column: 2; justify-content: flex-start; }
  .hf-menu-panel { right: auto; left: 0; }
  .hf-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .hf-tabs a { white-space: nowrap; }
}

/* ===== Notifications ===== */
.bell-menu[hidden] { display: none; }
.bell-menu { width: 420px; max-height: min(640px, 80vh); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.bell-menu .bell-head { flex: none; border-bottom: 0; padding: 14px 16px 8px; }
.bell-menu .bell-head strong { font-size: 15px; }
.nt-tabs { flex: none; display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--hk-color-divider); }
.nt-tabs button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.nt-tabs button.is-on { background: var(--hk-color-ink-900, #0F172A); color: #fff; }
.nt-tabs em { font-style: normal; opacity: .7; }
.nt-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 6px; }
.nt-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--hk-color-divider); font-size: 13px; font-weight: 600; }
.nt-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--hk-color-text); text-decoration: none; }
.nt-foot a + a { color: var(--hk-color-text-2); font-weight: 500; font-size: 12.5px; }
.bell-menu .bell-tools { flex: none; }
.nt-day { margin: 10px 8px 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nt-day[hidden], .nt-row[hidden] { display: none; }
.nt-row { position: relative; display: flex; align-items: flex-start; gap: 10px; border-radius: 14px; }
.nt-row + .nt-row { margin-top: 2px; }
.nt-row:hover { background: var(--hk-ink-a3); }
.nt-row.is-unread { background: #F5F9FF; }
.nt-row.is-unread:hover { background: #EDF4FF; }
.nt-row.is-unread::before { content: ""; position: absolute; left: -1px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: #2563EB; }
.nt-link { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; color: inherit; text-decoration: none; }
.nt-pic { position: relative; flex: none; }
.nt-badge { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.nt-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; }
.nt-ic.is-small { width: 26px; height: 26px; border-radius: 8px; }
.is-at { background: #FEF3C7; color: #92400E; }
.is-task { background: #DBEAFE; color: #1D4ED8; }
.is-cli { background: #CFFAFE; color: #155E75; }
.is-time { background: #FFE4E6; color: #BE123C; }
.is-upd { background: #DCFCE7; color: #166534; }
.is-hr { background: #F3E8FF; color: #6B21A8; }
.is-other { background: var(--hk-ink-a6); color: var(--hk-color-text-2); }
.nt-text { flex: 1; min-width: 0; display: block; }
.nt-main { display: block; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.nt-row.is-unread .nt-main { font-weight: 600; }
.nt-prev { display: block; margin-top: 5px; padding: 6px 10px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-when { display: block; margin-top: 3px; color: var(--hk-color-text-3); font-size: 12px; white-space: nowrap; }
.nt-page { max-width: 1240px; }
.nt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.nt-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.nt-top p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.nt-top form { margin: 0; }
.nt-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.nt-card { padding: 14px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.nt-nav { position: sticky; top: 80px; }
.nt-nav a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.nt-nav a:hover { background: var(--hk-ink-a3); color: var(--hk-color-text); }
.nt-nav a.is-on { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.nt-nav a em { margin-left: auto; color: var(--hk-color-text-3); font-size: 12px; font-style: normal; }
.nt-nav a em.is-red { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #DC2626; color: #fff; font-size: 11px; }
.nt-nav hr { height: 1px; margin: 8px 6px; border: 0; background: var(--hk-color-divider); }
.nt-dot { display: grid; place-items: center; width: 16px; }
.nt-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2563EB; }
.nt-list { padding: 8px 10px; }
.nt-list .nt-row { align-items: center; }
.nt-side { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 0; }
.nt-side form { margin: 0; }
.nt-side .nt-when { margin: 0; }
.nt-mark { opacity: 0; transition: opacity .12s; }
.nt-row:hover .nt-mark, .nt-mark:focus-within { opacity: 1; }
.nt-list .nt-prev { white-space: normal; }
.nt-empty { margin: 0; padding: 24px 10px; color: var(--hk-color-text-2); font-size: 13.5px; text-align: center; }
.nt-more { padding: 12px; text-align: center; }
.nt-set { padding: 18px 20px; }
.nt-set h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.nt-set .sub { margin: 0 0 6px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.nt-set form { margin: 0; }
.nt-set .ac-switch.is-sub { padding-left: 14px; }
.nt-set .button { margin-top: 8px; }
@media (max-width: 1100px) { .nt-grid { grid-template-columns: 1fr; } .nt-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .nt-nav hr { display: none; } .nt-nav a { height: 34px; } }
@media (max-width: 640px) { .bell-menu { width: auto; } .nt-side .nt-mark { display: none; } .nt-list .nt-row { align-items: flex-start; } .nt-side { flex-direction: column; align-items: flex-end; } }

/* ===== Notifications: needs you, for your information, sign-ins ===== */
.nt-grid.is-two { grid-template-columns: minmax(0, 1fr) 320px; }
.nt-grid.is-two > * { min-width: 0; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.nt-box { padding: 18px 20px; margin: 0 0 16px; }
.nt-box-h { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.nt-box-h > div { flex: 1; min-width: 0; }
.nt-box-h h2 { margin: 0; font-size: 16px; font-weight: 600; }
.nt-box-h p { margin: 1px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.nt-box-h form { margin: 0; }
.nt-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--hk-ink-a4); font-size: 12px; font-weight: 700; }
.nt-count.is-red { background: #FEE2E2; color: #B91C1C; }
.nt-box .nt-list { padding: 0; }
.nt-box .nt-row { border-top: 1px solid var(--hk-color-divider); border-radius: 0; }
.nt-box .nt-row:first-child { border-top: 0; }
.nt-box .nt-row.is-unread, .nt-box .nt-row:hover { background: transparent; }
.nt-box .nt-row.is-unread::before { left: -10px; }
.nt-box .nt-link { padding: 12px 0; }
.nt-times { display: inline-flex; align-items: center; height: 20px; margin-left: 4px; padding: 0 8px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.nt-prev.is-plain { margin-top: 2px; padding: 0; background: none; white-space: normal; }
.nt-act { display: flex; gap: 6px; margin: 0; }
.nt-act .nt-ok, .bell-menu .nt-ok { background: #16A34A; color: #fff; }
.nt-act .nt-ok:hover { background: #15803D; }
.bell-menu .nt-row { align-items: center; }
.bell-menu .nt-side { padding: 0 8px 0 0; }
.nt-tabs em.is-red { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #EF4444; color: #fff; font-size: 10.5px; opacity: 1; }
.nt-sign { margin-top: 8px; padding: 14px 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.nt-sign-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-sign-h b { flex: 1 1 240px; font-size: 14px; }
.nt-sign-h form { margin: 0; }
.nt-ppl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nt-ppl span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: #fff; font-size: 12.5px; font-weight: 600; }
.nt-ppl em { color: var(--hk-color-text-3); font-style: normal; }
.nt-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.nt-note .mk-i, .nt-note svg { flex: none; margin-top: 1px; }
.nt-done { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.nt-seg { display: inline-flex; gap: 3px; padding: 3px; margin: 6px 0 0; border-radius: 999px; background: var(--hk-ink-a4); }
.nt-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.nt-seg button.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.nt-set .nt-seg-hint { margin: 8px 0 0; }
.nt-set + .nt-set { margin-top: 16px; }
@media (max-width: 1100px) { .nt-grid.is-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nt-top { flex-direction: row; flex-wrap: wrap; align-items: flex-end; } .nt-top > div:first-child { flex: 1 1 100%; } .nt-box .nt-row, .nt-row:has(.nt-act) { flex-wrap: wrap; } .nt-box .nt-side, .nt-list .nt-row:has(.nt-act) .nt-side { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 8px 12px 54px; width: 100%; } .nt-box .nt-side { padding-left: 46px; } .nt-box .nt-side .nt-when { display: none; } .nt-box .nt-link { padding-bottom: 8px; } }

.hk-greet-ask { display: inline-flex; align-items: center; gap: 7px; height: 32px; margin: 8px 0 0; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-hairline); color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; position: relative; z-index: 2; }
.hk-greet-ask:hover { color: var(--hk-color-text); }
.hk-greet-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.hk-greet-name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ===== Reports: tabs and filter row ===== */
.hk-pagehead-sub { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.rh-tabs { margin-bottom: 14px; }
.rh-tabs a svg { flex: none; }
.rh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.rh-bar .rp-mon { flex: none; }
.rp-mon.is-text b { padding: 6px 12px; }
.content .rh-units { flex: none; padding: 4px; background: var(--hk-ink-a4); }
.content .rh-units a, .content .rh-units button { height: 32px; font-weight: 600; cursor: pointer; }
.rh-filters { display: contents; }
.rh-filters select { width: auto; max-width: 240px; height: 40px; border-radius: 999px; background-color: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 13px; font-weight: 600; }
.rh-filters .toggle { flex: none; }
.rh-filters .ut-target-note { color: var(--hk-color-text-2); font-size: 12.5px; }
.rh-zone { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--hk-color-text-3); font-size: 12px; white-space: nowrap; }
.rh-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 16px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--hk-shadow-float); font-size: 13px; font-weight: 600; }
.rh-dates[hidden] { display: none; }
.rh-dates label { display: inline-flex; align-items: center; gap: 8px; }
.rh-dates input[type=date] { width: auto; height: 38px; }
.rh-dates .sub { color: var(--hk-color-text-3); font-weight: 500; }
.rh-fit table { width: 100%; }
.rh-fit td, .rh-fit th { padding-left: 10px; padding-right: 10px; }
.rh-fit td .sub { white-space: normal; }
.sub.is-good { color: #15803D; font-weight: 600; }
.es-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.es-more { display: flex; justify-content: center; padding: 14px; }
#estimates tr[hidden] { display: none; }
@media print { .report-title.print-only { display: flex !important; } }
.rh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rh-budget { display: flex; align-items: center; gap: 8px; }
.rh-budget .bar { flex: none; width: 64px; height: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.rh-budget .bar span { display: block; height: 100%; border-radius: 3px; background: #22C55E; }
.rh-budget.is-near .bar span { background: #F59E0B; } .rh-budget.is-over .bar span { background: #DC2626; }
.rh-budget b { font-size: 13px; } .rh-budget.is-near b { color: #B45309; } .rh-budget.is-over b { color: #B91C1C; }
@media (max-width: 760px) { .rh-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .rh-zone { display: none; } .rh-filters select { max-width: 100%; } }

/* ===== Activity history ===== */
.ah-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
.ah-search { flex: 0 1 300px; min-width: 220px; }
.ah-bar select { width: auto; max-width: 220px; height: 40px; border-radius: 999px; background-color: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 13px; font-weight: 600; }
.content .ah-periods { flex: none; padding: 4px; background: var(--hk-ink-a4); }
.content .ah-periods a, .content .ah-periods button { height: 32px; font-weight: 600; cursor: pointer; }
.ah-switch { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-hairline); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ah-switch i { position: relative; width: 32px; height: 18px; border-radius: 9px; background: #CBD5E1; transition: background .15s; }
.ah-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.ah-switch.is-on i { background: #16A34A; } .ah-switch.is-on i::after { left: 16px; }
.ah-switch em { color: var(--hk-color-text-3); font-style: normal; }
.ah-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: -6px 0 16px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--hk-shadow-float); font-size: 13px; font-weight: 600; }
.ah-dates[hidden] { display: none; }
.ah-date { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ah-in { position: relative; display: inline-flex; align-items: center; }
.ah-in input[type=text] { width: 150px; height: 40px; padding-right: 40px; font-variant-numeric: tabular-nums; }
.ah-cal { position: absolute; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--hk-color-text-2); cursor: pointer; }
.ah-cal:hover { background: var(--hk-ink-a4); }
.ah-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ah-hint { color: var(--hk-color-text-3); font-weight: 500; }
.ah-card { padding: 6px 20px 14px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ah-day { margin: 14px 0 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ah-row { display: grid; grid-template-columns: 56px 200px minmax(0, 1fr) 150px 56px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.ah-day + .ah-row { border-top: 0; }
.ah-t { color: var(--hk-color-text-2); font-variant-numeric: tabular-nums; }
.ah-p { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.ah-app { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.ah-a { min-width: 0; overflow-wrap: anywhere; }
.ah-a b { font-weight: 600; }
.ah-a small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.ah-x { display: inline-flex; align-items: center; height: 20px; margin-left: 4px; padding: 0 8px; border-radius: 10px; background: #EEF2FF; color: #3730A3; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.ah-details { margin-top: 4px; font-size: 12.5px; }
.ah-details summary { color: var(--hk-color-text-2); cursor: pointer; font-weight: 600; }
.ah-details > div { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); line-height: 1.5; }
.ah-ip { display: block; color: var(--hk-color-text-3); }
.nt-ic.ah-tag { display: inline-flex; width: auto; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ah-go { justify-self: end; }
.ah-go a { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.ah-empty { padding: 40px 10px; text-align: center; color: var(--hk-color-text-2); }
.ah-empty b { display: block; margin-bottom: 4px; color: var(--hk-color-text); font-size: 15px; }
.ah-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text-2); font-size: 12.5px; }
@media (max-width: 760px) { .ah-search { flex: 1 1 100%; } .content .ah-periods { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .content .ah-periods a, .content .ah-periods button { flex: none; padding: 0 11px; } .ah-bar select { flex: 1 1 40%; max-width: none; } .ah-row { grid-template-columns: 48px minmax(0, 1fr); row-gap: 4px; } .ah-p, .ah-a { grid-column: 2; } .ah-k, .ah-go { display: none; } }

/* ===== Settings side menu ===== */
.sx { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.sx > * { min-width: 0; }
.sx-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 12px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); scrollbar-width: thin; }
.sx-find { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 0 4px; padding: 0 12px; border-radius: 12px; background: var(--hk-ink-a3); color: var(--hk-color-text-3); }
.sx-find input { flex: 1; min-width: 0; height: 36px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; }
.sx-find input:focus { outline: 0; box-shadow: none; }
.sx-g { margin: 12px 8px 4px; color: var(--hk-color-text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sx-g[hidden], .sx-i[hidden] { display: none; }
.sx-i { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 10px; border-radius: 11px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.sx-i:hover { background: var(--hk-ink-a3); color: var(--hk-color-text); }
.sx-i.is-on { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.sx-ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--hk-ink-a3); }
.sx-i.is-on .sx-ic { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.sx-l { flex: 1; min-width: 0; }
.sx-i em { flex: none; padding: 2px 7px; border-radius: 9px; font-size: 11px; font-style: normal; font-weight: 700; }
.sx-i em.is-bad { background: #FEE2E2; color: #B91C1C; } .sx-i em.is-warn { background: #FEF3C7; color: #92400E; } .sx-i em.is-ok { background: #DCFCE7; color: #166534; }
.sx-i.is-danger { color: #B91C1C; } .sx-i.is-danger .sx-ic { background: #FEF2F2; }
.sx-none { margin: 10px 8px; color: var(--hk-color-text-3); font-size: 12.5px; }
.sx-head { margin: 0 0 14px; }
.sx-crumb { margin: 0 0 4px; color: var(--hk-color-text-3); font-size: 12px; font-weight: 600; }
.sx-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.sx-head p { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.sx-mob { display: none; }
.sx-main .workspace-selector-row { display: none; }
@media (max-width: 900px) {
  .sx { grid-template-columns: 1fr; }
  .sx-nav { display: none; position: static; max-height: none; }
  .sx-nav.is-open { display: block; margin: 0 0 12px; }
  .sx-mob { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; margin: 0 0 12px; padding: 0 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: var(--hk-shadow-float); color: var(--hk-color-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .sx-mob small { margin-right: 8px; color: var(--hk-color-text-3); font-weight: 600; }
  .sx-mob svg { transform: rotate(-90deg); } .sx-mob[aria-expanded="true"] svg { transform: rotate(90deg); }
  .sx-head { display: none; }
}

/* ===== Daily log feed ===== */
.dl-tiles { margin-bottom: 16px; }
.dl-red { color: #B91C1C; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.dl-grid > * { min-width: 0; }
.dl-day { margin: 4px 0 8px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dl-card { margin: 0 0 12px; padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: var(--hk-shadow-float); }
.dl-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dl-ht b { display: block; font-size: 15px; }
.dl-ht small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.dl-sp { flex: 1; }
.dl-open { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.dl-who { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hk-color-divider); }
.dl-tx { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; }
.dl-tx b { font-weight: 600; }
.dl-tx small { margin-left: 6px; color: var(--hk-color-text-3); font-size: 12px; }
.dl-tx p { margin: 2px 0 0; overflow-wrap: anywhere; }
.dl-k { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-weight: 700; }
.dl-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dl-it { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: 13px; background: var(--hk-ink-a3); font-size: 12px; font-weight: 600; }
.dl-it i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; }
.dl-it i.is-done { background: #16A34A; } .dl-it i.is-review { background: #2563EB; } .dl-it i.is-bad { background: #DC2626; } .dl-it i.is-wait { background: #F59E0B; }
.dl-it em { color: #B91C1C; font-style: normal; }
.dl-block { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #FEF2F2; color: #991B1B; font-size: 12.5px; font-weight: 600; }
.dl-block svg { flex: none; margin-top: 2px; }
.dl-next { margin-top: 6px; color: var(--hk-color-text-2); font-size: 12.5px; }
.dl-more { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.dl-side .my-card { margin: 0 0 16px; }
.dl-miss-f { margin: 0; }
.dl-miss { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); color: inherit; font-size: 13px; text-decoration: none; }
.dl-miss > div { flex: 1; min-width: 0; }
.dl-miss b { font-weight: 600; }
.dl-miss small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.dl-all { margin-top: 10px; }
.dl-note { margin: 10px 0 0; color: var(--hk-color-text-3); font-size: 12px; }
.dl-dl { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1000px) { .dl-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dl-open { display: none; } .dl-card { padding: 14px; } }

/* ===== Project daily updates: quick review ===== */
.ar-bar { margin-top: 4px; }
.ar-span { margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.ar-f { display: inline-flex; margin: 0; }
.ar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ar-ok, .content .button.ar-ok { background: #16A34A; color: #fff; }
.ar-ok:hover { background: #15803D; }
.ar-changes { position: relative; }
.ar-changes > summary { list-style: none; cursor: pointer; }
.ar-changes > summary::-webkit-details-marker { display: none; }
.ar-changes[open] { flex: 1 1 100%; }
.ar-changes[open] > summary { display: none; }
.ar-note { display: flex; gap: 6px; margin: 0; }
.ar-note input { flex: 1; min-width: 0; height: 36px; box-shadow: inset 0 0 0 1.5px #F59E0B; }
.ar-done { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: 12.5px; font-weight: 700; }
.ar-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 16px; background: #FEF2F2; color: #991B1B; font-size: 12.5px; font-weight: 600; }
.content .button.ar-undo, .content .button.ar-eye { background: transparent; box-shadow: none; color: var(--hk-color-text-2); }
.content .button.ar-undo:hover, .content .button.ar-eye:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.agency-update-day-head .ar-f, .agency-update-day-head .pc-st { margin-left: auto; }

/* ===== Team lead: Your team, team tasks, team leave ===== */
.tl-card { margin: 0 0 16px; }
.tl-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tl-h h2 { margin: 0; font-size: 17px; }
.tl-h .sub { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.tl-h a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.tl-ic { background: #EEF2FF; color: #3730A3; }
.tl-sp { flex: 1; }
.tl-ask { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #FFFBEB; box-shadow: inset 0 0 0 1.5px #FCD34D; }
.tl-ask b { display: block; font-size: 14px; }
.tl-ask small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.tl-act { display: flex; gap: 6px; margin-top: 8px; }
.tl-f { display: inline-flex; margin: 0; }
.tl-g { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.tl-g > * { min-width: 0; }
.tl-sec { margin: 2px 0 4px; color: var(--hk-color-text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tl-gap { margin-top: 14px; }
.tl-p, .tl-l { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.tl-sec + .tl-p, .tl-sec + .tl-l, .tl-sec + .tl-none + .tl-p { border-top: 0; }
.tl-tx { flex: 1; min-width: 0; }
.tl-tx b { font-weight: 600; }
.tl-tx small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12.5px; }
.tl-l a { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tl-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #16A34A; vertical-align: 1px; }
.tl-dot.is-idle { background: #F59E0B; }
.tl-when { flex: none; min-width: 64px; justify-content: center; }
.tl-none { margin: 4px 0 6px; color: var(--hk-color-text-2); font-size: 13px; }
.tl-more { display: inline-block; margin-top: 6px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.tl-red { color: #B91C1C; }
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.tl-bar-top { margin-bottom: 12px; }
.content .tl-sw { flex: none; padding: 4px; background: var(--hk-ink-a4); }
.content .tl-sw a { height: 32px; font-weight: 600; }
.tl-sw em { margin-left: 2px; font-size: 11px; font-style: normal; opacity: .7; }
.tl-filters { display: contents; }
.tl-filters select { width: auto; max-width: 260px; height: 40px; border-radius: 999px; background-color: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 13px; font-weight: 600; }
.tl-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; }
.tl-tasks { padding-top: 6px; }
.tl-who { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.tl-who b { font-size: 14.5px; }
.tl-who small { color: var(--hk-color-text-2); font-size: 12.5px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 180px 120px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.tl-row .pc-st { justify-self: start; }
.tl-est small, .tl-due { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.tl-bar-x { display: block; height: 6px; margin-bottom: 4px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.tl-bar-x i { display: block; height: 100%; background: #2563EB; }
.tl-bar-x.is-over i { background: #DC2626; }
.lt-page .my-card { margin: 0 0 16px; }
.lt-wrap { overflow-x: auto; }
.lt-grid { display: grid; grid-template-columns: 190px repeat(var(--n), minmax(34px, 1fr)); gap: 3px; align-items: center; min-width: 700px; font-size: 12px; }
.lt-hd { color: var(--hk-color-text-2); font-weight: 700; text-align: center; line-height: 1.2; }
.lt-hd b { display: block; color: var(--hk-color-text); }
.lt-hd.is-today b { color: #2563EB; }
.lt-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; }
.lt-c { display: grid; place-items: center; height: 34px; border-radius: 8px; background: var(--hk-ink-a3); font-weight: 700; }
.lt-c.is-today { box-shadow: inset 0 0 0 1.5px #93C5FD; }
.lt-c.is-off, .lt-key i.is-off { background: #F1F5F9; opacity: .6; }
.lt-c.is-holiday, .lt-key i.is-holiday { background: #E0E7FF; color: #3730A3; }
.lt-c.is-leave, .lt-key i.is-leave { background: #FDE68A; color: #92400E; }
.lt-c.is-waiting, .lt-key i.is-waiting { background: repeating-linear-gradient(45deg, #FEF3C7, #FEF3C7 4px, #fff 4px, #fff 8px); color: #92400E; }
.lt-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--hk-color-text-2); font-size: 12px; }
.lt-key span { display: inline-flex; align-items: center; gap: 6px; }
.lt-key i { width: 12px; height: 12px; border-radius: 4px; }
@media (max-width: 900px) { .tl-g { grid-template-columns: 1fr; } .tl-row { grid-template-columns: minmax(0, 1fr) auto; } .tl-row .tl-est { display: none; } .tl-row .tl-due { grid-column: 1 / -1; } .tl-note { margin-left: 0; } }
@media (max-width: 640px) { .tl-p { flex-wrap: wrap; } .tl-p .tl-tx { flex: 1 1 calc(100% - 44px); } .tl-p .pc-st { margin-left: 40px; } }

/* ===== Projects with more than one service ===== */
.np-also .np-also-hint { margin: 2px 0 12px; color: var(--hk-color-text-2); font-size: 13px; }
.np-also-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.np-also-ch { --c: var(--hk-color-text-3); display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; transition: background var(--hk-motion-fast), box-shadow var(--hk-motion-fast); }
.np-also-ch[hidden] { display: none; }
.np-also-ch.hue-development { --c: var(--hk-hue-development); } .np-also-ch.hue-seo { --c: var(--hk-hue-seo); } .np-also-ch.hue-marketing { --c: var(--hk-hue-marketing); }
.np-also-ch.hue-design { --c: var(--hk-hue-design); } .np-also-ch.hue-operations { --c: var(--hk-hue-operations); }
.np-also-ch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.np-also-box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--hk-surface-solid); box-shadow: inset 0 0 0 1.5px var(--hk-ink-a12); color: transparent; }
.np-also-ch.is-on { background: var(--hk-surface-solid); color: var(--hk-color-text); box-shadow: inset 0 0 0 1.5px var(--c); }
.np-also-ch.is-on .np-also-box { background: var(--c); box-shadow: none; color: #fff; }
.np-also-ch:has(input:focus-visible) { outline: 2px solid var(--hk-color-link); outline-offset: 2px; }
.np-also-notes { display: grid; gap: 8px; margin-top: 12px; }
.np-also-notes:not(:has(.np-also-note:not([hidden]))) { display: none; }
.np-also-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; }
.np-also-note[hidden] { display: none; }
.np-also-note b { color: var(--hk-color-text); font-weight: 600; }
.np-also-note i { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--hk-color-text-3); }
.np-also-note i.hue-development { background: var(--hk-hue-development); } .np-also-note i.hue-seo { background: var(--hk-hue-seo); } .np-also-note i.hue-marketing { background: var(--hk-hue-marketing); }
.np-also-note i.hue-design { background: var(--hk-hue-design); } .np-also-note i.hue-operations { background: var(--hk-hue-operations); }
.pl-types .pl-types-note { margin-left: auto; color: var(--hk-color-text-3); }
@media (max-width: 900px) { .pl-types .pl-types-note { display: none; } }
.pj-tabs details.pj-tabmenu { flex: none; }
.pj-tabs details.pj-tabmenu > summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 15px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }
.pj-tabs details.pj-tabmenu > summary::-webkit-details-marker { display: none; }
.pj-tabs details.pj-tabmenu > summary:hover { color: var(--hk-color-text); background: rgba(255,255,255,.6); }
.pj-tabs details.pj-tabmenu > summary.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.pj-tabs details.pj-tabmenu > summary i { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-color-text-3); }
.pj-tabs details.pj-tabmenu > summary i.hue-seo { background: var(--hk-hue-seo); } .pj-tabs details.pj-tabmenu > summary i.hue-marketing { background: var(--hk-hue-marketing); }
.pj-tabs details.pj-tabmenu > summary i.hue-development { background: var(--hk-hue-development); } .pj-tabs details.pj-tabmenu > summary i.hue-design { background: var(--hk-hue-design); } .pj-tabs details.pj-tabmenu > summary i.hue-operations { background: var(--hk-hue-operations); }
.pj-tabs details.pj-tabmenu > summary svg { transition: transform var(--hk-motion-fast); }
.pj-tabs details.pj-tabmenu[open] > summary svg { transform: rotate(180deg); }
.pj-tabpanel { position: fixed; z-index: 80; min-width: 230px; padding: 8px; border-radius: 18px; background: var(--hk-surface-modal); box-shadow: var(--hk-shadow-overlay, 0 18px 48px rgba(15,23,42,.18)); }
.pj-tabs .pj-tabpanel a { display: flex; width: 100%; align-items: center; height: auto; min-height: 40px; padding: 10px 12px; border-radius: 12px; box-shadow: none; color: var(--hk-color-text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pj-tabs .pj-tabpanel a:hover, .pj-tabs .pj-tabpanel a.is-on { background: var(--hk-ink-a4); box-shadow: none; }
.pj-tabpanel { display: grid; gap: 2px; }
.pj-chip.is-extra { opacity: .95; }
.ps-card .ps-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.ps-card .ps-row:first-of-type { border-top: 0; }
.ps-card .ps-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; }
.ps-card .ps-ic.hue-development { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); } .ps-card .ps-ic.hue-seo { background: var(--hk-hue-seo-100); color: var(--hk-hue-seo-700); }
.ps-card .ps-ic.hue-marketing { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); } .ps-card .ps-ic.hue-design { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.ps-card .ps-ic.hue-operations { background: var(--hk-hue-operations-100); color: var(--hk-hue-operations-700); } .ps-card .ps-ic.hue-neutral { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.ps-card .ps-tx { flex: 1; min-width: 0; } .ps-card .ps-tx b { font-weight: 600; } .ps-card .ps-tx small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ps-card .ps-main { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.dl-covers { margin: 0 0 14px; }
.dl-covers .dl-covers-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dl-covers .dl-covers-row a, .dl-covers .dl-covers-row span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.dl-covers .dl-covers-row .is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.dl-covers .dl-covers-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-color-text-3); }
.dl-covers .dl-covers-row i.hue-seo { background: var(--hk-hue-seo); } .dl-covers .dl-covers-row i.hue-marketing { background: var(--hk-hue-marketing); } .dl-covers .dl-covers-row i.hue-development { background: var(--hk-hue-development); } .dl-covers .dl-covers-row i.hue-design { background: var(--hk-hue-design); } .dl-covers .dl-covers-row i.hue-operations { background: var(--hk-hue-operations); }
.dl-covers .dl-covers-row em { font-style: normal; font-weight: 500; color: var(--hk-color-text-3); }

/* ===== Deleting ===== */
.tp-del { position: relative; }
.tp-del > summary { list-style: none; cursor: pointer; }
.tp-del > summary::-webkit-details-marker { display: none; }
.tp-del-box { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 340px; padding: 14px 16px; border-radius: 18px; background: var(--hk-surface-modal); box-shadow: var(--hk-shadow-overlay, 0 18px 48px rgba(15,23,42,.18)); text-align: left; }
.tp-del-box > b { display: block; font-size: 14.5px; }
.tp-del-box p { margin: 4px 0 10px; color: var(--hk-color-text-2); font-size: 12.5px; }
.tp-del-opt { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--hk-ink-a3); cursor: pointer; font-size: 13px; }
.tp-del-opt:has(input:checked) { background: var(--hk-surface-solid); box-shadow: inset 0 0 0 1.5px var(--hk-color-ink-900); }
.tp-del-opt input { margin-top: 3px; accent-color: var(--hk-color-ink-900); }
.tp-del-opt b { display: block; font-weight: 600; } .tp-del-opt small { display: block; color: var(--hk-color-text-2); font-size: 12px; margin-top: 1px; }
.tp-del-act { display: flex; justify-content: flex-end; margin-top: 10px; }
.log-del { display: inline-block; position: relative; margin-left: 6px; vertical-align: middle; }
.log-del > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--hk-color-text-3); }
.log-del > summary::-webkit-details-marker { display: none; }
.log-del > summary:hover, .log-del[open] > summary { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.log-del-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; padding: 12px 14px; border-radius: 16px; background: var(--hk-surface-modal); box-shadow: var(--hk-shadow-overlay, 0 18px 48px rgba(15,23,42,.18)); text-align: left; white-space: normal; font-variant-numeric: normal; }
.log-del-box form { display: grid; gap: 8px; }
.log-del-box b { font-size: 13px; font-weight: 600; color: var(--hk-color-text); }
.log-del-box input { height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--hk-ink-a4); font: inherit; font-size: 13px; }
.log-del-box .button { justify-self: end; }
.uf-delete { display: flex; justify-content: flex-end; margin: 10px 0 0; }
.dl-del { display: inline; margin-left: 6px; }
.dl-del button { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--hk-color-text-3); cursor: pointer; vertical-align: middle; }
.dl-del button:hover { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }

/* ===== Calendar (day, week, month, list) ===== */
.kc { --kc-line: #E6EAF0; display: grid; gap: 20px; min-width: 0; }
.kc .kc-main { min-width: 0; padding: 16px 18px 16px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.kc .kc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.kc .kc-bar h2 { flex: 0 1 auto; min-width: 0; margin: 0 4px; overflow: hidden; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.kc .kc-sp { flex: 1 1 auto; }
.kc .kc-arrows { display: inline-flex; gap: 6px; }
.kc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 13.5px/1 var(--hk-font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.kc-btn:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.kc-btn.is-pri { background: var(--hk-color-ink-900); color: #fff; }
.kc-btn.is-pri:hover { background: #000; color: #fff; }
.kc-btn:disabled { opacity: .5; cursor: default; }
.kc .kc-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); }
.kc .kc-ico:hover { background: var(--hk-ink-a6); }
.kc .kc-ico svg { width: 16px; height: 16px; }
.kc .kc-ico.is-next svg { transform: rotate(180deg); }
.kc .kc-show { position: relative; display: inline-flex; align-items: center; }
.kc .kc-show-ic { position: absolute; left: 14px; display: inline-grid; color: var(--hk-color-text-2); pointer-events: none; }
.kc .kc-show select { height: 38px; min-width: 150px; max-width: 220px; padding: 0 34px 0 38px; border: 0; border-radius: 999px; background-color: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 13.5px/1 var(--hk-font-sans); cursor: pointer; }
.kc .kc-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hk-ink-a4); }
.kc .kc-seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.kc .kc-seg a:hover { color: var(--hk-color-text); }
.kc .kc-seg a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,.08), var(--hk-shadow-hairline); }
.kc .kc-loading { padding: 60px 0; text-align: center; color: var(--hk-color-text-3); }

/* Status and kind colours */
.kc, .kc-pop { --late-b: #FEE2E2; --late-c: #DC2626; --late-t: #991B1B; --prog-b: #DBEAFE; --prog-c: #2563EB; --prog-t: #1E3A8A; --review-b: #EDE9FE; --review-c: #7C3AED; --review-t: #4C1D95;
  --todo-b: #F1F5F9; --todo-c: #94A3B8; --todo-t: #334155; --done-b: #DCFCE7; --done-c: #16A34A; --done-t: #166534; --leave-b: #FEF3C7; --leave-c: #D97706; --leave-t: #92400E; --holiday-b: #FCE7F3; --holiday-c: #DB2777; --holiday-t: #9D174D; }
.kc .g-late, .kc-pop .g-late { --b: var(--late-b); --c: var(--late-c); --t: var(--late-t); }
.kc .g-prog, .kc-pop .g-prog { --b: var(--prog-b); --c: var(--prog-c); --t: var(--prog-t); }
.kc .g-review, .kc-pop .g-review { --b: var(--review-b); --c: var(--review-c); --t: var(--review-t); }
.kc .g-todo, .kc-pop .g-todo { --b: var(--todo-b); --c: var(--todo-c); --t: var(--todo-t); }
.kc .g-done, .kc-pop .g-done { --b: var(--done-b); --c: var(--done-c); --t: var(--done-t); }
.kc .g-leave, .kc-pop .g-leave { --b: var(--leave-b); --c: var(--leave-c); --t: var(--leave-t); }
.kc .g-holiday, .kc-pop .g-holiday { --b: var(--holiday-b); --c: var(--holiday-c); --t: var(--holiday-t); }
.kc .g-meeting, .kc-pop .g-meeting { --b: #2563EB; --c: #2563EB; --t: #fff; }
.kc .g-hr, .kc-pop .g-hr { --b: #0F766E; --c: #0F766E; --t: #fff; }
.kc .g-event, .kc-pop .g-event { --b: #F59E0B; --c: #F59E0B; --t: #3B2405; }
.kc .g-project, .kc-pop .g-project { --b: #111827; --c: #111827; --t: #fff; }

/* Month */
.kc .kc-month { border-top: 1px solid var(--kc-line); border-left: 1px solid var(--kc-line); }
.kc .kc-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kc .kc-dows span { padding: 8px 8px 6px; border-right: 1px solid var(--kc-line); border-bottom: 1px solid var(--kc-line); background: #FBFCFE; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kc .kc-week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 30px repeat(3, 24px) 20px minmax(4px, 1fr); row-gap: 2px; min-height: 124px; }
.kc .kc-cell { grid-row: 1 / -1; position: relative; min-width: 0; border-right: 1px solid var(--kc-line); border-bottom: 1px solid var(--kc-line); cursor: pointer; }
.kc .kc-cell.is-out { background: #FAFBFC; }
.kc .kc-cell.is-out .kc-n { color: #B6BECB; }
.kc .kc-cell.is-off { background: repeating-linear-gradient(135deg, #fff 0 9px, #F6F7FA 9px 10px); }
.kc .kc-cell.is-drop, .kc .kc-tg-allcell.is-drop, .kc .kc-tg-col.is-drop { background: #EFF6FF; box-shadow: inset 0 0 0 2px #93C5FD; }
.kc .kc-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin: 3px 0 0 4px; padding: 0 6px; border-radius: 13px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.kc .kc-n:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.kc .kc-cell.is-today .kc-n { background: #2563EB; color: #fff; }
.kc .kc-ev { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; min-width: 0; height: 22px; margin: 0 4px; padding: 0 7px; border: 0; border-radius: 6px; background: var(--b); color: var(--t); font: 600 11.5px/22px var(--hk-font-sans); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
.kc .kc-ev:hover { outline: 1px solid rgba(15,23,42,.14); outline-offset: 0; }
.kc .kc-ev:focus-visible, .kc .kc-blk:focus-visible, .kc .kc-row:focus-visible { outline: 2px solid #2563EB; outline-offset: 1px; }
.kc .kc-ev b { flex: none; font-size: 10.5px; font-weight: 700; opacity: .92; }
.kc .kc-ev .kc-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kc .kc-ev.is-task { box-shadow: inset 3px 0 0 var(--c); padding-left: 8px; }
.kc .kc-ev.is-bar { box-shadow: inset 3px 0 0 var(--c); font-weight: 700; }
.kc .kc-ev.is-bar.is-cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
.kc .kc-ev.is-bar.is-cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.kc .kc-ev.is-done .kc-tt { text-decoration: line-through; opacity: .75; }
.kc .kc-chk { flex: none; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.5px currentColor; }
.kc .kc-ev.is-done .kc-chk { background: var(--c); box-shadow: none; color: #fff; }
.kc .kc-chk svg { width: 9px; height: 9px; stroke-width: 3.2; }
.kc .kc-ev[draggable="true"] { cursor: grab; }
.kc .is-dragging { opacity: .4; }
.kc .kc-more { position: relative; z-index: 1; align-self: center; justify-self: start; margin: 0 4px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--hk-color-text-2); font: 700 11.5px/18px var(--hk-font-sans); cursor: pointer; }
.kc .kc-more:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }

/* Week and day */
.kc .kc-tg { border-top: 1px solid var(--kc-line); }
.kc .kc-tg-head, .kc .kc-tg-all, .kc .kc-tg-body { display: grid; }
.kc .kc-tg-head > *, .kc .kc-tg-hours, .kc .kc-tg-lab { border-right: 1px solid var(--kc-line); }
.kc .kc-tg-head > span { border-left: 1px solid var(--kc-line); }
.kc .kc-dh { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-bottom: 1px solid var(--kc-line); color: var(--hk-color-text); text-decoration: none; }
.kc .kc-dh small { color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kc .kc-dh b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; font-weight: 600; }
.kc .kc-dh:hover b { background: var(--hk-ink-a4); }
.kc .kc-dh.is-today b { background: #2563EB; color: #fff; }
.kc .kc-dh.is-off { background: #FBFCFD; }
.kc .kc-tg.is-day .kc-dh { align-items: flex-start; padding-left: 14px; }
.kc .kc-tg-all { position: relative; row-gap: 2px; padding: 4px 0; border-bottom: 2px solid var(--kc-line); border-left: 1px solid var(--kc-line); min-height: 34px; }
.kc .kc-tg-lab { grid-column: 1; padding: 4px 8px 0 0; color: var(--hk-color-text-3); font-size: 10.5px; text-align: right; }
.kc .kc-tg-allcell { border-right: 1px solid var(--kc-line); margin: -4px 0; cursor: pointer; }
.kc .kc-tg-allcell.is-off { background: #FBFCFD; }
.kc .kc-tg-body { border-left: 1px solid var(--kc-line); }
.kc .kc-tg-hours div { padding: 0 8px 0 0; color: var(--hk-color-text-3); font-size: 10.5px; text-align: right; transform: translateY(-6px); }
.kc .kc-tg-hours div:first-child { transform: none; }
.kc .kc-tg-col { position: relative; border-right: 1px solid var(--kc-line); background: repeating-linear-gradient(#fff 0 calc(var(--row) - 1px), #EEF1F5 calc(var(--row) - 1px) var(--row)); cursor: copy; }
.kc .kc-tg-col.is-off { background: repeating-linear-gradient(#FAFBFC 0 calc(var(--row) - 1px), #EEF1F5 calc(var(--row) - 1px) var(--row)); }
.kc .kc-blk { position: absolute; z-index: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 4px 7px; border: 0; border-radius: 8px; background: var(--b); color: var(--t); font: 600 11.5px/1.3 var(--hk-font-sans); text-align: left; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px #fff; }
.kc .kc-blk b { color: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc .kc-blk small { color: inherit; font-size: 11px; font-weight: 500; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc .kc-now { position: absolute; z-index: 2; left: 0; right: 0; height: 2px; background: #DC2626; pointer-events: none; }
.kc .kc-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #DC2626; }
.kc .kc-ghost { position: absolute; left: 3px; right: 3px; z-index: 0; padding: 3px 7px; border-radius: 8px; background: #EFF6FF; box-shadow: inset 0 0 0 1px #BFDBFE; color: #1D4ED8; font-size: 11px; font-weight: 700; pointer-events: none; }

/* List and agenda rows */
.kc .kc-list { display: grid; gap: 4px; }
.kc .kc-lday { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 12px 4px; border-top: 1px solid var(--kc-line); }
.kc .kc-lday:first-child { border-top: 0; }
.kc .kc-lday h3 { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.kc .kc-lday h3 small { display: block; color: var(--hk-color-text-3); font-size: 12px; font-weight: 500; }
.kc .kc-lday h3 em { margin-left: 6px; vertical-align: 1px; padding: 1px 8px; border-radius: 10px; background: #DBEAFE; color: #1E3A8A; font-size: 11px; font-style: normal; font-weight: 700; }
.kc .kc-lnum { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--hk-ink-a4); font-size: 15px; }
.kc .kc-lday.is-today .kc-lnum { background: #2563EB; color: #fff; }
.kc .kc-row, .kc-pop .kc-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 12px; background: none; color: var(--hk-color-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.kc .kc-row:hover, .kc-pop .kc-row:hover { background: var(--hk-ink-a3); }
.kc .kc-row-tm, .kc-pop .kc-row-tm { flex: none; width: 52px; padding-top: 1px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 700; }
.kc .kc-bar-c, .kc-pop .kc-bar-c { flex: none; width: 4px; align-self: stretch; min-height: 32px; border-radius: 2px; background: var(--c); }
.kc .kc-row-tx, .kc-pop .kc-row-tx { flex: 1 1 auto; min-width: 0; }
.kc .kc-row-tx b, .kc-pop .kc-row-tx b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.kc .kc-row-tx small, .kc-pop .kc-row-tx small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12px; }
.kc .kc-row.is-done b, .kc-pop .kc-row.is-done b { text-decoration: line-through; color: var(--hk-color-text-2); }
.kc-st { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--b); color: var(--t); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.kc-st.is-kind.g-meeting, .kc-st.is-kind.g-hr, .kc-st.is-kind.g-project { background: var(--hk-ink-a4); color: var(--hk-color-text); box-shadow: inset 3px 0 0 var(--c); }
.kc .kc-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 0; color: var(--hk-color-text-2); text-align: center; }
.kc .kc-empty p { margin: 0; }

/* Legend */
.kc .kc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.kc .kc-lg { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font: 600 12px/1 var(--hk-font-sans); cursor: pointer; }
.kc .kc-lg:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.kc .kc-lg i { width: 10px; height: 10px; border-radius: 3px; }
.kc .kc-lg b { color: var(--hk-color-text-3); font-weight: 600; }
.kc .kc-lg.is-off { opacity: .5; text-decoration: line-through; }

/* Cards below */
.kc .kc-below { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }
.kc .kc-stack { display: grid; gap: 20px; min-width: 0; }
.kc .kc-card { min-width: 0; padding: 16px 18px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.kc .kc-card h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.kc .kc-sub { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.kc .kc-none { margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.kc .kc-agenda, .kc-pop .kc-agenda { display: grid; margin-top: 6px; }
.kc .kc-mm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 10px; text-align: center; font-size: 12px; }
.kc .kc-mm b { padding: 2px 0; color: var(--hk-color-text-3); font-size: 10.5px; font-weight: 700; }
.kc .kc-mm a { position: relative; display: grid; place-items: center; height: 32px; border-radius: 50%; color: var(--hk-color-text); font-weight: 600; text-decoration: none; }
.kc .kc-mm a:hover { background: var(--hk-ink-a4); }
.kc .kc-mm a.is-out { color: #C3CAD5; }
.kc .kc-mm a.is-today { background: #2563EB; color: #fff; }
.kc .kc-mm a.is-sel { box-shadow: inset 0 0 0 1.5px #2563EB; }
.kc .kc-mm a.has::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #94A3B8; }
.kc .kc-mm a.is-late::after { background: #DC2626; }
.kc .kc-mm a.is-today::after { background: #fff; }
.kc .kc-wk-l { margin: 12px 0 6px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.kc .kc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kc .pc-link h3 { margin-bottom: 2px; }
.kc .pc-link .pc-link-copy { margin: 10px 0 12px; }
.kc .pc-link .pc-url { margin-top: 12px; }

/* Details */
.kc-pop { position: fixed; z-index: 80; width: 410px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.24), var(--hk-shadow-hairline); color: var(--hk-color-text); }
.kc-pop.is-sheet { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 75vh; }
.kc-pop .kc-sp { flex: 1 1 auto; }
.kc-pop-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kc-pop-h h4 { margin: 0; }
.kc-pop h4 { margin: 10px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.kc-pop .kc-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); cursor: pointer; }
.kc-pr { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13px; }
.kc-pr > svg { flex: none; margin-top: 1px; color: var(--hk-color-text-3); }
.kc-who { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.kc-who > span { display: inline-flex; align-items: center; gap: 6px; }
.kc-pop-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kc-pop-a .kc-btn svg { width: 14px; height: 14px; }
.kc-pop-date { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hk-color-divider); }
.kc-pop-date label { font-size: 12.5px; font-weight: 600; }
.kc-pop-date span { display: flex; gap: 8px; }
.kc-pop-date input { flex: 1 1 auto; height: 38px; padding: 0 12px; border: 1px solid var(--hk-border-input, #D7DCE3); border-radius: 12px; font: inherit; }
.kc-pop.is-day { width: 380px; }
.kc-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 14px; background: #111827; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.kc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.kc-toast.is-bad { background: #991B1B; }

/* Phone */
.kc .kc-pm-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.kc .kc-pm-grid > b { padding: 4px 0; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; }
.kc .kc-pm-d { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 48px; padding: 4px 0 0; border: 0; border-radius: 12px; background: none; color: var(--hk-color-text); font: inherit; cursor: pointer; }
.kc .kc-pm-d em { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-style: normal; font-weight: 600; }
.kc .kc-pm-d span { display: flex; gap: 2px; height: 5px; }
.kc .kc-pm-d i { width: 5px; height: 5px; border-radius: 50%; }
.kc .kc-pm-d.is-out em { color: #C3CAD5; }
.kc .kc-pm-d.is-sel { background: #EFF6FF; }
.kc .kc-pm-d.is-today em { background: #2563EB; color: #fff; }
.kc .kc-pm-day { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--kc-line); }
.kc .kc-pm-day h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.kc .kc-pm-day h3 small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.kc .kc-pm-add { margin-top: 8px; width: 100%; }
.kc.is-phone[data-view="month"] .kc-card[data-kc-today] { display: none; }

@media (max-width: 1240px) {
  .kc .kc-below { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kc .kc-stack { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 1100px) {
  .kc .kc-bar h2 { order: -1; flex: 1 1 100%; margin: 0 0 2px; }
}
@media (max-width: 760px) {
  .kc { gap: 12px; }
  .kc .kc-main { padding: 12px; border-radius: 20px; }
  .kc .kc-bar { gap: 8px; }
  .kc .kc-bar h2 { font-size: 19px; }
  .kc .kc-show { order: 5; flex: 1 1 100%; }
  .kc .kc-show select { width: 100%; max-width: none; }
  .kc .kc-seg { order: 4; }
  .kc .kc-seg a { padding: 0 11px; }
  .kc .kc-seg a.v-day { display: none; }
  .kc .kc-below { grid-template-columns: minmax(0, 1fr); }
  .kc .kc-mini-card { display: none; }
  .kc .kc-stack { grid-template-columns: minmax(0, 1fr); }
  .kc .kc-lday { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0; }
  .kc .kc-row-tm { width: 46px; }
}

/* ===== Google Maps key (Settings, Tracker) ===== */
dialog.dl-loc { width: 480px; }
dialog.dl-loc .dialog-foot { flex-wrap: wrap; }
.maps-key .maps-key-row { display: flex; gap: 8px; align-items: center; }
.maps-key .maps-key-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.maps-key .maps-key-row .button { flex: none; }
.maps-key .check.plain { margin-top: 8px; }
.maps-key .maps-how { margin-top: 10px; font-size: 13.5px; }
.maps-key .maps-how summary { cursor: pointer; font-weight: 600; color: var(--hk-color-text); }
.maps-key .maps-how ol { margin: 8px 0 6px; padding-left: 20px; display: grid; gap: 4px; }
.maps-key .maps-test { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.maps-key .maps-test li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.maps-key .maps-test li.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.maps-key .maps-test li.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.maps-key .maps-test svg { flex: none; margin-top: 1px; }
@media (max-width: 600px) { .maps-key .maps-key-row { flex-wrap: wrap; } .maps-key .maps-key-row .button { width: 100%; } }

/* ===== Quick assign ===== */
.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.qa .qa-main, .qa .qa-check { min-width: 0; padding: 20px 22px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.qa .qa-defaults { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 12px 16px; margin: 0 0 14px; }
.qa .qa-defaults .field { margin: 0; }
.qa .qa-each { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.qa .qa-ed { position: relative; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hk-border-input, #D7DCE3); }
.qa .qa-ed:focus-within { box-shadow: inset 0 0 0 2px #111827; }
.qa .qa-hl, .qa .qa-ed textarea { margin: 0; padding: 14px 16px; border: 0; font: 400 15px/1.75 var(--hk-font-sans); letter-spacing: normal; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; }
.qa .qa-hl { position: absolute; inset: 0; overflow: hidden; color: var(--hk-color-text); pointer-events: none; }
.qa .qa-ed textarea { position: relative; display: block; width: 100%; min-height: 260px; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: #111827; outline: 0; box-shadow: none; }
.qa .qa-ed textarea::placeholder { color: #9AA4B2; }
.qa .qa-ed textarea::selection { background: rgba(37,99,235,.22); color: transparent; }
.qa .qa-hl mark { border-radius: 5px; color: inherit; font-weight: inherit; }
.qa .qa-hl mark.k-person { background: #DBEAFE; box-shadow: 0 0 0 2px #DBEAFE; color: #1E3A8A; }
.qa .qa-hl mark.k-project { background: #EDE9FE; box-shadow: 0 0 0 2px #EDE9FE; color: #4C1D95; }
.qa .qa-hl mark.k-day { background: #DCFCE7; box-shadow: 0 0 0 2px #DCFCE7; color: #166534; }
.qa .qa-hl mark.k-bad { background: none; color: #B91C1C; text-decoration: underline wavy #DC2626; font-weight: 400; }
.qa .qa-menu { position: absolute; z-index: 30; width: 280px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(15,23,42,.2), var(--hk-shadow-hairline); }
.qa .qa-menu li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.qa .qa-menu li.qa-mh { padding: 8px 10px 4px; color: var(--hk-color-text-3); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: default; }
.qa .qa-menu li.is-on { background: var(--hk-state-info-tint, #EFF6FF); }
.qa .qa-menu li > i { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 8px; }
.qa .qa-menu li.k-project > i { background: #EDE9FE; }
.qa .qa-menu li.k-day > i { background: #DCFCE7; }
.qa .qa-menu li span { display: grid; min-width: 0; }
.qa .qa-menu li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa .qa-menu li small { color: var(--hk-color-text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa .qa-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 2px 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.qa .qa-help kbd { padding: 1px 6px; border-radius: 6px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: 600 12px/1.4 var(--hk-font-sans); }
.qa .qa-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hk-color-divider); }
.qa .qa-count { color: var(--hk-color-text-2); font-size: 13.5px; }
.qa .qa-check { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
.qa .qa-check header { margin: 0 0 10px; }
.qa .qa-check h2 { margin: 0; font-size: 16px; font-weight: 600; }
.qa .qa-none { margin: 8px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.qa .qa-line { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.qa .qa-line:first-child { border-top: 0; }
.qa .qa-line > div { flex: 1 1 auto; min-width: 0; }
.qa .qa-line b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.qa .qa-line em { color: var(--hk-color-text-3); font-weight: 500; }
.qa .qa-line > div > small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.qa .qa-n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #DCFCE7; color: #166534; font-size: 11.5px; font-weight: 700; }
.qa .qa-line.is-warn .qa-n { background: #FEF3C7; color: #92400E; }
.qa .qa-line.is-bad .qa-n { background: #FEE2E2; color: #991B1B; }
.qa .qa-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.qa .qa-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.qa .qa-chip.k-person { background: #DBEAFE; color: #1E3A8A; }
.qa .qa-chip.k-project { background: #EDE9FE; color: #4C1D95; }
.qa .qa-chip.k-day { background: #DCFCE7; color: #166534; }
.qa .qa-chip.k-hours { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.qa .qa-chip.k-urgent { background: #FEE2E2; color: #991B1B; }
.qa .qa-chip.k-low { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.qa .qa-chip.is-guess { background: #fff; outline: 1.5px dashed currentColor; outline-offset: -1.5px; }
.qa .qa-chip.is-default { opacity: .75; }
.qa .qa-line ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.qa .qa-line li { position: relative; padding-left: 14px; color: #92400E; font-size: 12.5px; }
.qa .qa-line li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }
.qa .qa-line li.is-error { color: #991B1B; }
.qa .qa-line li.is-error::before { background: #DC2626; }
.qa .qa-line li.is-guess { color: var(--hk-color-text-2); }
.qa .qa-line li.is-guess::before { background: #94A3B8; }
.qa-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--hk-state-success-tint); color: var(--hk-state-success-text); font-size: 14px; font-weight: 600; }
.qa-undo > span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .qa { grid-template-columns: minmax(0, 1fr); } .qa .qa-check { position: static; max-height: none; } }
@media (max-width: 640px) { .qa .qa-defaults { grid-template-columns: minmax(0, 1fr); } .qa .qa-main, .qa .qa-check { padding: 16px; border-radius: 20px; } .qa .qa-foot { flex-direction: column; align-items: stretch; } .qa .qa-foot .button { justify-content: center; } }

/* ===== Who is told ===== */
.wtold-health { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; font-size: 13.5px; line-height: 1.5; }
.wtold-health.is-bad { background: #FEF2F2; color: #991B1B; }
.wtold-health.is-warn { background: #FFFBEB; color: #92400E; }
.wtold-health b { display: block; color: inherit; }
.wtold-health > span:nth-child(2) { flex: 1 1 auto; }
.wtold-health .wtold-hi { flex: none; display: inline-grid; padding-top: 1px; }
.wtold-health .button { flex: none; background: #fff; }
.wtold-card { padding: 18px 20px; }
.wtold-table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.wtold-table col.wtold-c { width: 56px; } .wtold-table col.wtold-how { width: 142px; } .wtold-table col.wtold-when { width: 118px; }
.wtold-table th { padding: 0 2px 10px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.wtold-table th:first-child, .wtold-table td:first-child { text-align: left; padding-left: 0; }
.wtold-table td { padding: 10px 6px; border-top: 1px solid var(--hk-color-divider); text-align: center; vertical-align: middle; }
.wtold-table td b { display: block; font-weight: 600; }
.wtold-table td small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12px; }
.wtold-table tr.wtold-g td { padding: 18px 0 6px; border-top: 0; text-align: left; font-size: 13px; font-weight: 700; }
.wtold-table .wtold-l { text-align: left; }
.wtold-table .wtold-wh { color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.35; }
.wtold-box { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; cursor: pointer; }
.wtold-box input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.wtold-box span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #CBD5E1; color: transparent; }
.wtold-box input:checked + span { background: #111827; box-shadow: none; color: #fff; }
.wtold-box input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 2px; }
.wtold-na { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--hk-ink-a4); color: var(--hk-color-text-3); font-size: 12px; }
.wtold-sel { width: 100%; height: 34px; padding: 0 26px 0 10px; border: 0; border-radius: 999px; background-color: var(--hk-ink-a4); font: 600 12.5px/1 var(--hk-font-sans); color: var(--hk-color-text); }
.wtold-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.wtold-foot .hint { margin: 0; }
@media (max-width: 760px) { .wtold-foot { flex-direction: column; align-items: stretch; } .wtold-health { flex-wrap: wrap; } }
/* ===== Morning summary page ===== */
.ts .ts-sub { margin: -6px 0 16px; color: var(--hk-color-text-2); font-size: 14px; }
.ts .ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.ts .ts-card { padding: 16px 18px; }
.ts .ts-card header { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.ts .ts-card h2 { flex: 1 1 auto; margin: 0; font-size: 15px; font-weight: 600; }
.ts .ts-n { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.ts .is-bad .ts-n { background: #FEE2E2; color: #991B1B; }
.ts .is-warn .ts-n { background: #FEF3C7; color: #92400E; }
.ts .is-info .ts-n { background: #DBEAFE; color: #1E3A8A; }
.ts .ts-card ul { margin: 0; padding: 0; list-style: none; }
.ts .ts-card li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.ts .ts-card li:first-child { border-top: 0; }
.ts .ts-card li b { font-weight: 600; }
.ts .ts-card li span { color: var(--hk-color-text-2); }
.ts .ts-empty { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.ts .ts-empty p { margin: 0; }

/* ===== Clean up ===== */
.cln { position: relative; padding: 18px 20px; }
.cln .cln-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cln .cln-kinds a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.cln .cln-kinds a:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.cln .cln-kinds a.is-on { background: #111827; color: #fff; }
.cln .cln-kinds b { font-weight: 600; opacity: .7; }
.cln .cln-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0 0 14px; }
.cln .cln-filters .field { flex: 0 1 200px; margin: 0; min-width: 150px; }
.cln .cln-filters .cln-q { flex: 1 1 220px; }
.cln .cln-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; font-size: 14px; }
.cln .cln-count .link-button { color: #1D4ED8; font-weight: 600; }
.cln .cln-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cln .cln-table th { padding: 8px 10px; border-bottom: 1px solid var(--hk-color-divider); color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.cln .cln-table td { padding: 10px; border-bottom: 1px solid var(--hk-color-divider); vertical-align: middle; }
.cln .cln-table td b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cln .cln-table td small { display: block; color: var(--hk-color-text-2); font-size: 12px; overflow-wrap: anywhere; }
.cln .cln-table td small.cln-why { color: #92400E; }
.cln .cln-table .cln-c { width: 34px; }
.cln .cln-table tr.is-on td { background: #F8FAFF; }
.cln .cln-table tr.is-blocked td { color: var(--hk-color-text-2); }
.cln .cln-date { white-space: nowrap; }
.cln .cln-goes { color: var(--hk-color-text-2); font-size: 12.5px; }
.cln .cln-chip.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.cln .cln-chip.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.cln .cln-chip.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.cln .cln-chip.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.cln .cln-empty { display: flex; align-items: center; gap: 12px; padding: 30px 6px; color: var(--hk-color-text-2); }
.cln .cln-empty p { margin: 0; }
.cln .cln-pages { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.cln .cln-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: #111827; color: #fff; font-size: 13.5px; box-shadow: 0 12px 30px rgba(15,23,42,.25); }
.cln .cln-bar b { white-space: nowrap; }
.cln .cln-bar-sub { opacity: .75; }
.cln .cln-sp { flex: 1 1 auto; }
.cln .cln-bar .cln-clear { background: rgba(255,255,255,.12); color: #fff; }
.cln .cln-bar .cln-del { background: #DC2626; color: #fff; }
.cln-dlg { width: 540px; }
.cln-dlg .cln-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #FEE2E2; color: #B91C1C; }
.cln-dlg h2 { margin: 12px 0 4px; font-size: 20px; font-weight: 600; }
.cln-dlg .cln-sum { margin: 12px 0 0; padding: 2px 14px; border-radius: 16px; background: var(--hk-ink-a3); }
.cln-dlg .cln-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; }
.cln-dlg .cln-sum div:first-child { border-top: 0; }
.cln-dlg .cln-sum b { font-weight: 600; text-align: right; }
.cln-dlg .cln-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.cln-dlg .cln-note svg { flex: none; margin-top: 1px; }
.cln-dlg [data-cu-type] { margin-top: 12px; }
.cln-dlg [data-cu-type] input { font-weight: 600; letter-spacing: .08em; }
.cln-dlg .cln-red { background: #DC2626; color: #fff; }
.cln-dlg .cln-red:disabled { opacity: .45; }
@media (max-width: 640px) { .cln .cln-filters .field { flex: 1 1 100%; } .cln .cln-table th:nth-child(5), .cln .cln-table td:nth-child(5) { display: none; } }

/* ===== Message reactions and deleting several messages ===== */
.rx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rx-chips[hidden] { display: none; }
.rx-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
span.rx-chip { cursor: default; }
.rx-chip:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.rx-chip.is-mine { background: #EEF2FF; box-shadow: inset 0 0 0 1.5px #818CF8; color: #3730A3; }
.rx-e { font-size: 14px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.rx-tip { position: absolute; left: -4px; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: 240px; padding: 8px 11px; border-radius: 12px; background: #111827; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none; }
.rx-tip b { display: block; margin-bottom: 1px; font-weight: 600; font-size: 12.5px; }
.rx-tip::after { content: ""; position: absolute; top: 100%; left: 16px; border: 6px solid transparent; border-top-color: #111827; }
.rx-chip:hover .rx-tip, .rx-chip:focus-visible .rx-tip, .rx-chip.is-tip .rx-tip { opacity: 1; visibility: visible; transform: none; transition-delay: .25s; }
.rx-chip.is-tip .rx-tip { transition-delay: 0s; }

.rx-react, .rx-more { position: relative; display: inline-flex; }
.rx-bar { position: absolute; right: -6px; bottom: 100%; z-index: 40; display: flex; gap: 2px; padding: 0 0 8px; opacity: 0; visibility: hidden; transform: translateY(4px) scale(.96); transform-origin: bottom right; transition: opacity .14s, transform .14s, visibility .14s; }
.rx-bar::before { content: ""; position: absolute; inset: 0 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 14px 36px rgba(15,23,42,.2), var(--hk-shadow-hairline); }
.rx-bar button { position: relative; display: grid; place-items: center; width: 42px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; cursor: pointer; transition: transform .12s; }
.rx-bar button:first-child { margin-left: 6px; } .rx-bar button:last-child { margin-right: 6px; }
.rx-bar button:hover, .rx-bar button:focus-visible { transform: scale(1.3) translateY(-5px); outline: 0; }
.rx-bar button:hover::before, .rx-bar button:focus-visible::before { content: attr(data-l); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%) scale(.77); padding: 5px 8px; border-radius: 8px; background: #111827; color: #fff; font: 600 12px/1 var(--hk-font-sans); white-space: nowrap; }
.rx-bar button.is-mine::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #6366F1; }
.rx-react.is-down .rx-bar { bottom: auto; top: 100%; padding: 8px 0 0; transform-origin: top right; }
.rx-react.is-down .rx-bar::before { inset: 8px 0 0; }
@media (hover: hover) { .rx-react:hover .rx-bar { opacity: 1; visibility: visible; transform: none; transition-delay: .35s; } }
.rx-react.is-open .rx-bar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.rx-react.is-gone .rx-bar { opacity: 0 !important; visibility: hidden !important; }
.cm-acts.is-open { opacity: 1; pointer-events: auto; }
.cm-acts .rx-more .cm-act[aria-expanded="true"] { background: var(--hk-ink-a4); color: var(--hk-color-text); }

.rx-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 45; display: flex; flex-direction: column; min-width: 200px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(15,23,42,.2), var(--hk-shadow-hairline); }
.rx-menu[hidden] { display: none; }
.rx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--hk-color-text); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.rx-menu button:hover, .rx-menu button:focus-visible { background: var(--hk-ink-a4); outline: 0; }
.rx-menu button.is-red { color: #DC2626; }
.rx-menu button small { margin-left: auto; padding-left: 12px; color: var(--hk-color-text-3); font-size: 12px; }
.rx-menu form { display: contents; }
.rx-sep { display: block; height: 1px; margin: 5px 6px; background: var(--hk-color-divider); }
.rx-mh { display: block; padding: 8px 12px 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.rx-hwrap { position: relative; display: inline-flex; margin-left: auto; }
.cm-head .cm-filter + .rx-hwrap { margin-left: 0; }
.rx-hmore { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); cursor: pointer; }
.rx-hmore:hover, .rx-hmore[aria-expanded="true"], .cm-thread.is-selecting .rx-hmore { background: #111827; color: #fff; }
.rx-hmenu { min-width: 240px; }

.rx-pick { display: none; position: relative; flex: none; width: 22px; height: 22px; margin: 6px 0 0; cursor: pointer; }
.rx-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rx-pick span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #CBD5E1; color: transparent; }
.rx-pick input:checked + span { background: #111827; box-shadow: none; color: #fff; }
.rx-pick input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 2px; }
.cm-thread.is-selecting .rx-pick { display: inline-block; }
.cm-thread.is-selecting .cm-acts, .cm-thread.is-selecting .cm-composer, .cm-thread.is-selecting ~ .cm-composer { display: none !important; }
.cm-thread.is-selecting .cm-msg { cursor: pointer; }
.cm-thread.is-selecting .cm-msg.is-picked { background: #F5F7FF; }
.rx-selhead { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 10px 14px; border-radius: 14px; background: #F5F7FF; color: #3730A3; font-size: 13px; font-weight: 600; }
.rx-selhead[hidden] { display: none; }
.rx-selhead span { flex: 1; }
.rx-selhead .link { color: #3730A3; font-weight: 600; white-space: nowrap; }
.rx-selbar { position: sticky; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 8px 8px 18px; border-radius: 999px; background: #111827; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 36px rgba(15,23,42,.3); }
.rx-selbar[hidden] { display: none; }
.rx-selbar .rx-g { flex: 1; }
.rx-selbar button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.rx-selbar .rx-ghost { background: rgba(255,255,255,.12); }
.rx-selbar .rx-red { background: #DC2626; }
.rx-selbar .rx-red:disabled { opacity: .45; cursor: default; }

.rx-sheet-dim { position: fixed; inset: 0; z-index: 900; background: rgba(15,23,42,.28); }
.rx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 905; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(15,23,42,.2); animation: rx-up .18s ease-out; }
@keyframes rx-up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.rx-sheet .rx-grab { width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 9px; background: #D1D5DB; }
.rx-sheet-bar { display: flex; justify-content: space-between; padding: 6px 8px; margin: 0 0 8px; border-radius: 999px; background: var(--hk-ink-a4); }
.rx-sheet-bar button { position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; font-size: 28px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.rx-sheet-bar button.is-mine { background: #fff; box-shadow: 0 0 0 2px #818CF8; }
.rx-sheet-acts button { display: flex; align-items: center; gap: 12px; width: 100%; height: 50px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--hk-color-divider); background: none; color: var(--hk-color-text); font: inherit; font-size: 15px; font-weight: 500; text-align: left; }
.rx-sheet-acts button:last-child { border-bottom: 0; }
.rx-sheet-acts button.is-red { color: #DC2626; }
.cm-msg.is-pressed { position: relative; z-index: 902; background: #fff !important; box-shadow: 0 10px 30px rgba(15,23,42,.18); }
@media (hover: none) {
  .rx-bar { right: auto; left: -6px; transform-origin: bottom left; }
  .rx-react.is-down .rx-bar { transform-origin: top left; }
  .cm-acts .rx-react .cm-act { padding: 0 9px; }
  .rx-chip .rx-tip { left: -4px; }
}
.nx-dark .rx-bar::before, .nx-dark .rx-menu, .nx-dark .rx-sheet { background: var(--hk-surface-float, #1F2937); }

/* ===== Staff notices: add and manage from the board ===== */
.sn-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sn-actions .button { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .workspace-selector-row:has(.sn-actions) { flex-wrap: wrap; } .sn-actions { width: 100%; } .sn-actions .button { flex: 1 1 0; justify-content: center; } }

/* ===== Show or hide a password ===== */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 46px !important; }
.pw-wrap > input::-ms-reveal, .pw-wrap > input::-ms-clear { display: none; }
.pw-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--hk-color-text-3, #6B7280); cursor: pointer; transform: translateY(-50%); }
.pw-eye:hover { background: var(--hk-ink-a4, rgba(15,23,42,.06)); color: var(--hk-color-text, #111827); }
.pw-eye:focus-visible { outline: 2px solid #2563EB; outline-offset: 1px; }

/* ===== Meeting lists: the status never breaks inside a word ===== */
.meeting-status-cell { min-width: 112px; }
.meeting-status-cell .status { white-space: normal; word-break: keep-all; overflow-wrap: normal; align-items: baseline; }

/* ===== Timesheets and attendance fit a laptop screen without cutting off the last column ===== */
.timesheet-directory-table { min-width: 960px; }
.timesheet-directory-table th:first-child, .timesheet-person-cell { width: 196px; }
.timesheet-day-heading { width: 70px; }
.attendance-directory-table { min-width: 980px; }
.attendance-person-heading, .attendance-person-cell { width: 156px; }

/* ===== Side-panel content opened as its own page ===== */
.panel-page { max-width: 760px; }
.panel-page-back { margin: 4px 0 14px; }
.panel-page-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.panel-page-body { padding: 8px 4px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.panel-page-body [aria-label^="Close"], .panel-page-body [data-panel-close], .panel-page-body [data-close-panel], .panel-page-body [data-attendance-person-close], .panel-page-body [data-client-update-close], .panel-page-body [data-correction-close], .panel-page-body [data-hours-person-close], .panel-page-body [data-hr-meeting-close], .panel-page-body [data-leave-request-close], .panel-page-body [data-meeting-close], .panel-page-body [data-timesheet-day-close] { display: none !important; }
.panel-page-body .dialog-foot, .panel-page-body .panel-foot { position: static; }

/* ===== Small fixes from the layout check ===== */
/* Task week view: the day name shortens instead of running under the Today badge. */
.tk-week .tk-col-head .tk-day { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-week .tk-col-head .tk-today, .tk-week .tk-col-head .count { flex: none; }
/* My time week: a long holiday name ends with … inside its day. */
.mt-d .my-chip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 24px; }

/* Today's update: the header buttons wrap on a phone instead of running off the side. */
.dl-top-side { flex-wrap: wrap; min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .dl-top-side { width: 100%; } .dl-top-side > * { flex: 1 1 auto; } }

/* Clients list on laptops and tablets: with the Health column there is no room for Portal, so it moves to the client page. */
@media (max-width: 1180px) and (min-width: 861px) {
  .client-directory-table.has-health col.portal-col, .client-directory-table.has-health thead th:nth-child(5), .client-directory-table.has-health td.client-portal-cell { display: none; }
  .client-directory-table.has-health col.client-col { width: 25%; }
  .client-directory-table.has-health col.contact-col { width: 21%; }
  .client-directory-table.has-health col.health-col { width: 22% !important; }
  .client-directory-table.has-health col.projects-col { width: 13%; }
  .client-directory-table.has-health col.status-col { width: 12%; }
  .client-directory-table.has-health th, .client-directory-table.has-health td { padding-left: 8px; padding-right: 8px; }
  .client-directory-table.has-health th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== Task requests: pick, review, delete ===== */
.tk-req-tabs { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 12px; background: var(--hk-color-surface, #fff); }
.tk-req-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; color: var(--hk-state-warning-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.tk-req-tabs a b { font-weight: 600; opacity: .8; }
.tk-req-tabs a:hover { background: var(--hk-ink-a3); }
.tk-req-tabs a.is-on { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.tk-req-check { display: grid; place-items: center; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.tk-req-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--hk-color-text, #0F172A); cursor: pointer; }
.tk-list-head .tk-req-check { text-transform: none; }
.tk-row > .tk-req-check { margin-top: 0; }
.tk-row.is-picked { background: var(--hk-ink-a3); }
.tk-req-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tk-req-open { height: 30px; padding: 0 12px; pointer-events: none; }
.tk-row:hover .tk-req-open { background: var(--hk-ink-a5, rgba(15,23,42,.08)); }
.tk-req-bin { display: grid; place-items: center; flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); cursor: pointer; }
.tk-req-bin:hover, .tk-req-bin.is-on { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.tk-req-bin:focus-visible { outline: none; box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.tk-req-pop { position: absolute; z-index: 880; width: min(330px, calc(100vw - 24px)); padding: 16px; border-radius: 16px; background: var(--hk-color-surface, #fff); box-shadow: 0 12px 40px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.06); }
.tk-req-pop[hidden] { display: none; }
.tk-req-pop b { display: block; margin-bottom: 8px; color: var(--hk-color-text); font-size: 14px; }
.tk-req-pop p { margin: 0 0 12px; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.tk-req-live { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--hk-state-success-tint, #DCFCE7); color: var(--hk-state-success-text, #166534) !important; font-weight: 600; }
.tk-req-live i { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #22C55E; }
.tk-req-pop-act { display: flex; justify-content: flex-end; gap: 8px; }
.tk-req-go { background: #DC2626 !important; color: #fff !important; }
.tk-req-go:hover { background: #B91C1C !important; }
.tk-req-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 8px; margin: 10px 8px 4px; padding: 10px 10px 10px 18px; border-radius: 16px; background: #0F172A; color: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.25); }
.tk-req-bar[hidden] { display: none; }
.tk-req-bar strong { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.tk-req-bar .button { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.tk-req-bar .button:hover { background: rgba(255,255,255,.2); }
.tk-req-bar .button.danger { background: #DC2626; color: #fff; }
.tk-req-bar .button.danger:hover { background: #B91C1C; }
.tk-req-all-del { display: flex; justify-content: flex-end; margin: 10px 8px 0; }
@media (max-width: 860px) {
  .tk-list.is-requests .tk-row { grid-template-areas: "state main main" "state time status"; }
  .tk-list.is-requests .tk-row .tk-due { display: none; }
  .tk-row > .tk-req-check { grid-area: state; }
}
@media (max-width: 640px) {
  .tk-banner .tk-req-tabs { order: 3; width: 100%; }
  .tk-banner .tk-req-tabs a { flex: 1; justify-content: center; }
  .tk-banner .tk-req-back { order: 4; }
  .tk-req-bar { flex-wrap: wrap; padding: 10px 12px; }
  .tk-req-bar strong { flex: 1 1 100%; }
  .tk-req-bar .button { flex: 1 1 0; justify-content: center; min-width: 0; }
  .tk-req-bar .button.danger { flex: 1 1 100%; order: 3; }
}

.creation-review .hint.is-warn { color: var(--hk-state-warning-text); font-weight: 500; }

/* Client request delete */
.cr-dialog { width: min(520px, calc(100vw - 32px)); }
.cr-dialog .dialog-head h2 { margin-top: 12px; }
.cr-went { display: grid; margin: 0; border-radius: 14px; background: var(--hk-ink-a3); }
.cr-went > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; font-size: 14px; }
.cr-went > div + div { box-shadow: inset 0 1px 0 var(--hk-color-divider); }
.cr-went dt { color: var(--hk-color-text); }
.cr-went dd { margin: 0; color: var(--hk-color-text); font-weight: 600; text-align: right; }
.cr-went dd small { color: var(--hk-color-text-3); font-weight: 500; }
.cr-note { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; }
.cr-note .icon { flex: none; margin-top: 3px; }

/* ===== Fresh start: time and leave ===== */
.fs { display: grid; gap: 14px; }
.fs-card, .fs .fs-card { margin: 0; padding: 20px 22px; }
.fs-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.fs-card > .hint { margin: 0; }
.fs-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-top: 16px; }
.fs-row .field { margin: 0; }
.fs-date { flex: 1 1 260px; }
.fs-when { flex: 0 1 auto; min-width: 0; padding: 0; border: 0; }
.fs-when legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.fs-seg { clear: both; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 14px; background: var(--hk-ink-a4); }
.fs-seg label { position: relative; margin: 0; cursor: pointer; }
.fs-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.fs-seg span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 11px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.fs-seg b { font-weight: 600; }
.fs-seg input:checked + span { background: var(--hk-color-surface, #fff); color: var(--hk-color-text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.fs-seg input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 1px; }
.fs-seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.fs-when-hint { margin: 10px 0 0 !important; }
.fs-blocked { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); font-size: 13px; font-weight: 500; }
.fs-blocked[hidden] { display: none; }
.fs-blocked .icon, .fs-blocked svg { flex: none; margin-top: 2px; }
.fs-list { display: grid; margin-top: 12px; }
.fs-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 12px; margin: 0; padding: 12px 0; cursor: pointer; }
.fs-list .fs-item + .fs-item { box-shadow: inset 0 1px 0 var(--hk-color-divider); }
.fs-item .wtold-box { margin-top: 0; }
.fs-item-copy { display: grid; gap: 2px; min-width: 0; }
.fs-item-copy b { color: var(--hk-color-text); font-size: 14px; font-weight: 600; }
.fs-item-copy small { color: var(--hk-color-text-2); font-size: 12.5px; }
.fs-item-n { color: var(--hk-color-text-2); font-size: 12.5px; white-space: nowrap; }
.fs-tell { padding: 0; }
.fs-kept { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 13px; line-height: 1.5; }
.fs-kept svg { flex: none; margin-top: 3px; }
.fs-foot { display: flex; justify-content: flex-end; gap: 8px; }
.fs-go { background: #DC2626; color: #fff; }
.fs-go:hover { background: #B91C1C; color: #fff; }
.fs-go:disabled { opacity: .45; cursor: not-allowed; }
.fs-dlg .field { margin: 12px 0 0; }
.fs-plan { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px 18px; border-radius: 20px; background: #EEF2FF; color: #3730A3; }
.fs-plan-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--hk-color-surface, #fff); }
.fs-plan-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.fs-plan-copy strong { font-size: 14.5px; font-weight: 600; }
.fs-plan-copy small { font-size: 12.5px; line-height: 1.5; opacity: .9; }
.fs-plan form { margin: 0; flex: none; }
.fs-plan-cancel { background: var(--hk-color-surface, #fff); color: var(--hk-color-text); }
.fs-last { margin-top: 14px; }
.fs-sum-last { margin: 12px 0 0; padding: 2px 14px; border-radius: 16px; background: var(--hk-ink-a3); }
.fs-sum-last div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.fs-sum-last div + div { border-top: 1px solid var(--hk-color-divider); }
.fs-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; }
.fs-backup a { color: #1D4ED8; font-weight: 600; }
@media (max-width: 640px) {
  .fs-card { padding: 16px; }
  .fs-when, .fs-seg { width: 100%; }
  .fs-seg label { flex: 1; }
  .fs-seg span { justify-content: center; width: 100%; padding: 0 10px; }
  .fs-item { grid-template-columns: 22px minmax(0, 1fr); }
  .fs-item-n { grid-column: 2; }
  .fs-plan { flex-wrap: wrap; }
  .fs-plan form { width: 100%; }
  .fs-plan-cancel { width: 100%; justify-content: center; }
  .fs-foot .button { flex: 1; justify-content: center; }
}

/* ===== Screenshots per person ===== */
.sc-card { padding: 22px 24px; }
.sc-h { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.sc-ii { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #EEF2FF; color: #4F46E5; }
.sc-h h2 { margin: 0 0 3px; font-size: 16px; font-weight: 600; }
.sc-h p { margin: 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.sc-form { margin-top: 14px; }
.sc-form[hidden] { display: none; }
.sc-on + .sc-form, .sc-card > .sc-form:first-of-type { margin-top: 14px; }
.sc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.sc-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px #E2E8F0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; cursor: pointer; }
.sc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sc-opt b { display: block; margin-bottom: 2px; color: var(--hk-color-text); font-size: 14px; font-weight: 600; }
.sc-opt:hover { box-shadow: inset 0 0 0 1.5px #CBD5E1; }
.sc-opt.is-on { background: #F8F9FF; box-shadow: inset 0 0 0 2px #4F46E5; }
.sc-opt input:focus-visible ~ .sc-rad { outline: 2px solid #2563EB; outline-offset: 2px; }
.sc-rad { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #CBD5E1; }
.sc-opt.is-on .sc-rad { box-shadow: inset 0 0 0 5px #4F46E5; }
.sc-more { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--hk-ink-a3); }
.sc-more[hidden] { display: none; }
.sc-more .field { margin: 0 0 14px; }
.sc-more .field:last-child { margin-bottom: 0; }
.sc-more textarea, .sc-more input[type=date], .sc-more .dz-text { background: #fff; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 14px; }
.sc-lab { display: block; margin: 0 0 6px; color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sc-chips button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0; color: var(--hk-color-text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sc-chips button.is-on { background: #111827; box-shadow: none; color: #fff; }
.sc-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0; }
.sc-seg label { position: relative; margin: 0; cursor: pointer; }
.sc-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sc-seg span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sc-seg input:checked + span { background: #111827; color: #fff; }
.sc-seg input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 1px; }
.sc-tell { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: #EEF2FF; color: #3730A3; font-size: 13px; line-height: 1.5; }
.sc-tell.is-grey { background: #F1F5F9; color: #334155; }
.sc-tell svg { flex: none; margin-top: 3px; }
.sc-tick { margin-top: 12px; font-size: 13.5px; }
.sc-ft { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.sc-on { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: #EEF2FF; color: #3730A3; }
.sc-on.is-off { background: #F1F5F9; color: #334155; }
.sc-on .sc-ii { background: #fff; }
.sc-on-copy { display: grid; flex: 1 1 300px; gap: 2px; min-width: 0; }
.sc-on-copy b { font-size: 15px; font-weight: 600; }
.sc-on-copy span { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.sc-on .button.sc-light { background: #fff; color: var(--hk-color-text); }
.sc-on .button.sc-end { background: #FEE2E2; color: #B91C1C; }
.sc-inline { margin: 0; }
.sc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sc-facts div { padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12.5px; }
.sc-facts b { display: block; margin-top: 2px; color: var(--hk-color-text); font-size: 14.5px; font-weight: 600; }
.sc-links { margin: 10px 0 0; font-size: 13px; }
.sc-links a { color: #1D4ED8; font-weight: 600; }
.sc-hist { margin-top: 16px; }
.sc-hist h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.sc-hist div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.sc-hist div span:first-child { flex: none; width: 140px; color: var(--hk-color-text-3); }
.sc-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sc-tag.is-watch { background: #EEF2FF; color: #4338CA; }
.sc-tag.is-off { background: #F1F5F9; color: #475569; }
@media (max-width: 900px) { .sc-opts { grid-template-columns: 1fr; } .sc-grid { grid-template-columns: 1fr; } .sc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sc-card { padding: 16px; }
  .sc-more { padding: 14px; }
  .sc-seg { display: flex; }
  .sc-seg label { flex: 1; }
  .sc-seg span { justify-content: center; width: 100%; padding: 0 8px; }
  .sc-on .button, .sc-inline { flex: 1 1 auto; }
  .sc-inline .button { width: 100%; justify-content: center; }
  .sc-hist div { flex-direction: column; gap: 2px; }
  .sc-hist div span:first-child { width: auto; }
  .sc-ft .button { flex: 1; justify-content: center; }
}

/* ===== Time correction: pick only free time ===== */
.correction-period-fields.tc-fields { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.tc-fields select option:disabled { color: #94A3B8; }
.tc-strip { margin: 12px 0 0; }
.tc-strip[hidden] { display: none; }
.tc-strip-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; color: var(--hk-color-text-2); font-size: 12.5px; }
.tc-strip-h b { color: var(--hk-color-text); font-weight: 600; }
.tc-bar { position: relative; height: 34px; overflow: hidden; border-radius: 10px; background: #F1F5F9; box-shadow: inset 0 0 0 1px #E2E8F0; }
.tc-b { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; justify-content: center; min-width: 3px; overflow: hidden; border-radius: 6px; background: #CBD5E1 repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); color: #334155; font-size: 11px; font-weight: 600; }
.tc-b em { overflow: hidden; padding: 0 4px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tc-b.is-pick { z-index: 1; background: #4F46E5; box-shadow: 0 0 0 2px #C7D2FE; color: #fff; }
.tc-b.is-cut { z-index: 1; background: #DC2626; box-shadow: 0 0 0 2px #FECACA; color: #fff; }
.tc-ticks { display: flex; justify-content: space-between; margin-top: 4px; color: var(--hk-color-text-3); font-size: 11px; }
.tc-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--hk-color-text-2); font-size: 12px; }
.tc-key i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.tc-key i.is-done { background: #CBD5E1; }
.tc-key i.is-pick { background: #4F46E5; }
.tc-say { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.tc-say[hidden] { display: none; }
.tc-say.is-ok { background: #F0FDF4; color: #166534; }
.tc-say.is-warn { background: #FFFBEB; color: #92400E; }
@media (max-width: 640px) { .correction-period-fields.tc-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .correction-period-fields.tc-fields > .field:first-child { grid-column: 1 / -1; } }

/* ===== Reset work data ===== */
.rw-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: #FEF2F2; color: #991B1B; font-size: 13.5px; line-height: 1.5; }
.rw-warn svg { flex: none; margin-top: 3px; }
.rw-warn b { display: block; margin-bottom: 2px; font-size: 14.5px; }
.rw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rw-card, .rw-two .rw-card { margin: 0; padding: 20px 22px; }
.rw-card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.rw-card > .hint { margin: 0 0 8px; }
.rw-li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13.5px; }
.rw-li + .rw-li { box-shadow: inset 0 1px 0 var(--hk-color-divider); }
.rw-li b { display: block; font-weight: 600; }
.rw-li small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rw-n { margin-left: auto; padding-left: 8px; color: var(--hk-color-text-2); font-size: 12.5px; white-space: nowrap; }
.rw-dot { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; }
.rw-dot.is-keep { background: #DCFCE7; color: #166534; }
.rw-dot.is-go { background: #FEE2E2; color: #B91C1C; }
.rw-kept-n { margin: 8px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }
.rw-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0; }
.rw-red { background: #DC2626; color: #fff; }
.rw-red:hover { background: #B91C1C; color: #fff; }
.rw-done { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding: 16px 18px; border-radius: 20px; background: #F0FDF4; color: #166534; }
.rw-done .rw-ii { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.rw-done b { display: block; font-size: 14.5px; }
.rw-done span span { font-size: 13px; }
.rw-sum { padding: 2px 14px; border-radius: 16px; background: var(--hk-ink-a3); columns: 2; column-gap: 28px; }
.rw-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; break-inside: avoid; }
.rw-sum b { font-weight: 600; }
.rw-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; }
.rw-backup a { color: #1D4ED8; font-weight: 600; }
.rw-field { margin: 12px 0 0; }
@media (max-width: 900px) { .rw-two { grid-template-columns: 1fr; } .rw-sum { columns: 1; } }
@media (max-width: 640px) { .rw-card, .rw-two .rw-card { padding: 16px; } .rw-foot .button { flex: 1; justify-content: center; } }

/* ===== Testing fixes (2.24.85) ===== */
.lvh-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lvh-times[hidden] { display: none; }
.lvh-times .field { margin: 0; }
.lvh-times .hint { grid-column: 1 / -1; margin: 0; }
/* Message box that formats as you type */
.cm-composer .cm-mbox { position: relative; }
.cm-doc { position: relative; min-height: 72px; max-height: 320px; overflow-y: auto; padding: 12px 14px; outline: none; word-break: break-word; overflow-wrap: anywhere; cursor: text; }
#task-panel .cm-doc { min-height: 58px; }
.cm-doc.is-empty::before { content: attr(data-placeholder); position: absolute; left: 14px; right: 14px; color: var(--hk-color-text-3); pointer-events: none; }
.cm-doc ul.rt-check { padding-left: 0; list-style: none; }
.cm-doc ul.rt-check li { position: relative; padding-left: 28px; }
.cm-doc ul.rt-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border: 1.5px solid #94A3B8; border-radius: 5px; background: #fff; cursor: pointer; box-sizing: border-box; }
.cm-doc ul.rt-check li[data-done="1"]::before { border-color: #22C55E; background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cm-doc ul.rt-check li[data-done="1"] { color: var(--hk-color-text-3); text-decoration: line-through; }
.cm-doc .mention { padding: 1px 6px; border-radius: 6px; background: #DBEAFE; color: #1D4ED8; font-weight: 600; white-space: nowrap; }
.cm-tools [data-md].is-on { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.cm-mm { position: fixed; z-index: 2147483000; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 14px 36px rgba(15,23,42,.18); }
.cm-mm-h { padding: 4px 8px 6px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; }
.cm-mm-i { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; cursor: pointer; }
.cm-mm-i:hover, .cm-mm-i.is-on { background: var(--hk-ink-a4); }
.cm-mm-av { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #E0E7FF; color: #3730A3; font-size: 10.5px; font-weight: 700; }
.mention-menu { max-height: 260px; overflow-y: auto; }
/* Add a link */
.lk-pop { position: fixed; z-index: 2147483000; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 18px 44px rgba(15,23,42,.2); }
.lk-l { display: grid; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--hk-color-text-2); }
.lk-l input { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(15,23,42,.16); font: inherit; font-size: 13.5px; font-weight: 400; color: var(--hk-color-text); }
.lk-l input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.lk-err { margin: -4px 0 0; color: #B91C1C; font-size: 12px; }
.lk-err[hidden] { display: none; }
.lk-foot { display: flex; align-items: center; gap: 8px; }
.lk-grow { flex: 1; }
.lk-rm { border: 0; background: none; color: #B91C1C; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
/* Dark mode for the whole window (the menu keeps its own dark design) */
html.hk-dark { --hk-color-bg: #DCE1E8; filter: invert(1) hue-rotate(180deg); }
html.hk-dark dialog[open] { filter: invert(1) hue-rotate(180deg); }
html.hk-dark img, html.hk-dark video, html.hk-dark iframe, html.hk-dark picture, html.hk-dark .sidebar.nx, html.hk-dark [data-keep-colours] { filter: invert(1) hue-rotate(180deg); }
html.hk-dark .sidebar.nx img, html.hk-dark .sidebar.nx video, html.hk-dark [data-keep-colours] img, html.hk-dark picture img { filter: none; }
/* Files open inside the app */
.lb-dlg { width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(820px, calc(100vh - 32px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 22px; background: #0F172A; color: #F8FAFC; overflow: hidden; box-shadow: 0 30px 80px rgba(2,6,23,.45); }
.lb-dlg[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-dlg::backdrop { background: rgba(2,6,23,.72); backdrop-filter: blur(3px); }
.lb-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 12px 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lb-head b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.lb-n { flex: 0 0 auto; color: #94A3B8; font-size: 12.5px; }
.lb-grow { flex: 1; }
.lb-btn { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #E2E8F0; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 18px 64px; overflow: hidden; }
.lb-media { max-width: 100%; max-height: 100%; border-radius: 14px; }
.lb-media.is-image { object-fit: contain; background: rgba(255,255,255,.04); }
.lb-media.is-audio { width: min(520px, 100%); }
.lb-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -2px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.is-prev { left: 14px; } .lb-nav.is-next { right: 14px; }
.lb-nav[hidden] { display: none; }
@media (max-width: 640px) { .lb-stage { padding: 12px; } .lb-nav { top: auto; bottom: 14px; } }
html.hk-dark .lb-dlg[open] { filter: none; }
html.hk-dark .lb-dlg img, html.hk-dark .lb-dlg video { filter: none; }

.sc-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #ECFDF3; color: #166534; font-size: 13px; font-weight: 600; }
.sc-note.is-bad { background: #FEF2F2; color: #B91C1C; }
.sc-note[hidden] { display: none; }
/* Screenshots card: the chosen option and its details show by style alone, so it works even if a script does not run */
.sc-form .sc-more { display: none; }
.sc-form:has(input[name="mode"][value="watch"]:checked) .sc-more[data-sc-for="watch"],
.sc-form:has(input[name="mode"][value="off"]:checked) .sc-more[data-sc-for="off"] { display: block; }
.sc-opt:has(input:checked) { background: #F8F9FF; box-shadow: inset 0 0 0 2px #4F46E5; }
.sc-opt:has(input:checked) .sc-rad { box-shadow: inset 0 0 0 5px #4F46E5; }
.sc-opt:not(:has(input:checked)).is-on { background: none; box-shadow: inset 0 0 0 1.5px #E2E8F0; }
.sc-opt:not(:has(input:checked)).is-on .sc-rad { box-shadow: inset 0 0 0 1.5px #CBD5E1; }
.su#setup { scroll-margin-top: 90px; }
/* ===== Testing fixes (2.24.91) ===== */
/* Long tags ("Waiting to be accepted") wrap inside their column instead of touching the card edge */
.mt-task { grid-template-columns: 38px minmax(0, 1fr) 170px 150px; }
.my-task { grid-template-columns: 36px minmax(0, 1fr) 150px 140px; }
.mt-task-due .my-chip, .my-task > .my-chip { max-width: 100%; height: auto; min-height: 24px; padding: 4px 10px; line-height: 1.3; white-space: normal; text-align: center; }
.my-chip { max-width: 100%; }
@media (max-width: 760px) { .mt-task { grid-template-columns: 36px minmax(0, 1fr) auto; } .my-task { grid-template-columns: 36px minmax(0, 1fr) auto; } }
/* Popups scroll inside, with the scroll bar kept clear of the rounded corners */
dialog[open] { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(15,23,42,.22) transparent; }
dialog[open]::-webkit-scrollbar { width: 12px; }
dialog[open]::-webkit-scrollbar-track { margin: 22px 0; background: transparent; }
dialog[open]::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: rgba(15,23,42,.22); background-clip: padding-box; }
dialog[open]::-webkit-scrollbar-thumb:hover { background-color: rgba(15,23,42,.35); }
/* Greeting: the waving hand sits right after the name */
.hk-greeting h1 { display: block; }
.hk-hi { white-space: nowrap; }
.hk-wave { display: inline-block; width: auto; height: auto; margin-left: 6px; font-size: .9em; line-height: 1; transform-origin: 70% 75%; animation: hk-wave 2.2s ease-in-out 1; }
@keyframes hk-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .hk-wave { animation: none; } }
/* Close (x) added to any popup that has none */
dialog > .dialog-x { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--hk-ink-a4, rgba(15,23,42,.06)); color: var(--hk-color-text-2, #475569); cursor: pointer; }
dialog > .dialog-x:hover { background: var(--hk-ink-a6, rgba(15,23,42,.1)); color: var(--hk-color-text, #0f172a); }
dialog:has(> .dialog-x) .dialog-head, dialog:has(> .dialog-x) .dialog-body:first-child { padding-right: 64px; }
/* Weather: choose the city */
.hk-wx { position: relative; display: inline-flex; }
button.hk-weather { border: 0; font: inherit; color: inherit; cursor: pointer; }
button.hk-weather:hover { box-shadow: var(--hk-shadow-float); }
.hk-wx-pick { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: grid; gap: 6px; width: 230px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 14px 36px rgba(15,23,42,.16); }
.hk-wx-pick[hidden] { display: none; }
.hk-wx-pick label { color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.hk-wx-pick select { height: 38px; }
/* Work tracker: day boxes and their headings centred; the week fits better */
.wt-cell { text-align: center; min-width: 64px; }
.wt-table th.wt-c { text-align: center; }
.wt-table td .wt-prog-top { justify-content: space-between; }
.wt-scroll .wt-table td:last-child, .wt-scroll .wt-table th:last-child { padding-right: 20px; }
/* Updates list: names and dates show in full (they wrap instead of being cut off) */
.updates-table td > strong, .updates-table td .person > span > strong { white-space: normal; overflow: visible; text-overflow: clip; }
.updates-table th:nth-child(1) { width: 10%; }
.updates-table th:nth-child(5) { width: 24%; }
/* Timesheets: holiday and leave names show in full; the status tag keeps clear of the card edge */
.timesheet-day-state { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.timesheet-status-cell { width: 120px; padding-right: 18px !important; }
.timesheet-status-cell .chip { max-width: none; overflow: visible; white-space: nowrap; }

/* ===== Testing fixes (2.24.93) ===== */
/* My time: the label under each day shows in full */
.mt-d .my-chip { display: block; height: auto; min-height: 22px; padding: 3px 6px; line-height: 1.25; white-space: normal; overflow: visible; text-overflow: clip; }
/* Morning: handled list opens with an arrow */
.mv-show { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hk-ink-a4); transition: transform .15s; }
.mv-foot[open] .mv-show { transform: rotate(180deg); }
.hh-more-list summary { margin: 6px 0; color: var(--hk-color-link, #2563EB); font-size: 13px; font-weight: 600; cursor: pointer; }
/* Team row: everyone's photo is shown clearly (no fading for people not at work) */
.wf-strip .is-offline .wf-strip-face .pic { filter: none; opacity: 1; }
img.pic { image-rendering: auto; object-fit: cover; }
/* Policies: who confirmed, and the document on the page */
.hf-acks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hf-acks li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hf-acks small { margin-left: auto; color: var(--hk-color-text-3); }
.hf-doc iframe { display: block; width: 100%; height: 560px; margin-top: 8px; border: 1px solid var(--hk-color-divider); border-radius: 12px; background: #fff; }
/* HR meeting replies and attendance */
.smr-people{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.smr-people li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.smr-tag{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--surface-2,#f1f1f1);color:var(--muted,#666)}
.smr-tag.is-ok{background:#e7f6ec;color:#17733a}
.smr-tag.is-bad{background:#fdecec;color:#b42318}
.smr-tag.is-warn{background:#fff4e0;color:#9a5b00}
.smr-note{flex-basis:100%;margin-left:36px;font-size:13px;color:var(--muted,#666);overflow-wrap:anywhere}
.smr-form{display:grid;gap:12px}
.smr-choices{display:flex;flex-wrap:wrap;gap:8px}
.smr-choice{cursor:pointer}
.smr-choice input{position:absolute;opacity:0;pointer-events:none}
.smr-choice span{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line,#e2e2e2);border-radius:10px;font-weight:600;font-size:14px}
.smr-choice input:checked + span{border-color:var(--ink,#171717);background:var(--ink,#171717);color:#fff}
.smr-choice input:focus-visible + span{outline:2px solid var(--focus,#2563eb);outline-offset:2px}
.smr-when{display:none;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.smr-form:has(input[value="new_time"]:checked) .smr-when{display:grid}
.smr-form:has(input[value="declined"]:checked) .smr-opt{display:none}
.smr-att-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;margin-bottom:12px}
.smr-att-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line,#e2e2e2);border-radius:10px;cursor:pointer}
.smr-att-row:has(input:not(:checked)){opacity:.6}
[data-theme="dark"] .smr-tag.is-ok{background:#123d22;color:#7ee2a1}
[data-theme="dark"] .smr-tag.is-bad{background:#4a1714;color:#ffb4ab}
[data-theme="dark"] .smr-tag.is-warn{background:#40300a;color:#ffd27a}
[data-theme="dark"] .smr-choice input:checked + span{background:#fff;color:#111;border-color:#fff}
/* Meeting panels: the content wrapper passes the height on, so long details scroll above the action bar */
.meeting-detail-panel > [data-hr-meeting-content],
.meeting-detail-panel > [data-meeting-content]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
/* My notes */
.pn{max-width:1100px}
.pn-lead{margin:0 0 14px;color:var(--muted)}
.pn-new{display:grid;gap:10px;max-width:640px;padding:12px 14px;border-radius:14px;border:1px solid rgba(15,23,42,.08);box-shadow:0 1px 2px rgba(15,23,42,.05)}
.pn-new textarea,.pn-body{width:100%;border:0;background:transparent;resize:none;font:inherit;font-size:15px;line-height:1.5;color:#1f2937;outline:none;padding:0;min-height:60px;box-shadow:none}
.pn-new textarea::placeholder{color:rgba(31,41,55,.55)}
.pn-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pn-colours{display:flex;gap:6px}
.pn-dot{width:20px;height:20px;border-radius:50%;border:1px solid rgba(15,23,42,.18);padding:0;cursor:pointer}
.pn-dot[aria-pressed="true"]{outline:2px solid #1f2937;outline-offset:2px}
.pn-msg{margin:8px 0 0;font-size:13px;color:var(--muted)}
.pn-msg.is-bad{color:#b42318}
.pn-search{display:flex;align-items:center;gap:8px;max-width:340px;margin:20px 0 14px;padding:0 12px;border:1px solid var(--line-strong,#ddd);border-radius:10px;background:var(--page,#fff);color:var(--muted)}
.pn-search input{border:0;background:transparent;outline:none;padding:9px 0;width:100%;font:inherit;color:inherit;box-shadow:none}
.pn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;align-items:start}
.pn-card{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:14px;border:1px solid rgba(15,23,42,.08);box-shadow:0 1px 2px rgba(15,23,42,.05);transition:box-shadow .15s}
.pn-card:focus-within{box-shadow:0 6px 18px rgba(15,23,42,.12)}
.pn-card[aria-busy="true"] .pn-when{opacity:.6}
.pn-card.is-done .pn-body{text-decoration:line-through;color:rgba(31,41,55,.6)}
.pn-top{display:flex;align-items:center;gap:8px}
.pn-when{flex:1;font-size:12px;color:rgba(31,41,55,.65)}
.pn-ic{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;border:0;background:transparent;color:rgba(31,41,55,.6);cursor:pointer;padding:0}
.pn-ic:hover{background:rgba(15,23,42,.07);color:#1f2937}
.pn-ic[aria-pressed="true"]{background:rgba(15,23,42,.12);color:#1f2937}
.pn-done[aria-pressed="true"]{background:#16a34a;color:#fff}
.pn-del:hover{color:#b42318}
.pn-card .pn-foot{opacity:.55;transition:opacity .15s}
.pn-card:hover .pn-foot,.pn-card:focus-within .pn-foot{opacity:1}
.pn-empty{color:var(--muted);margin:6px 0}
.pn-done-list{margin-top:24px}
.pn-done-list>summary{cursor:pointer;font-weight:600;margin-bottom:12px}
.pn-done-list>summary span{display:inline-block;min-width:20px;padding:0 6px;margin-left:4px;border-radius:999px;background:var(--surface-2,#eef0f3);font-size:12px;text-align:center}
.pn-yellow{background:#fff6c7}.pn-green{background:#ddf5e3}.pn-blue{background:#dcebff}.pn-pink{background:#fde2ec}.pn-purple{background:#ece3ff}.pn-grey{background:#eef0f3}
.pn-card.is-pinned{border-color:rgba(15,23,42,.22)}
@media (max-width:600px){.pn-grid{grid-template-columns:1fr}.pn-card .pn-foot{opacity:1}}
/* Announcements running across the dashboard */
.hk-ticker{display:flex;align-items:stretch;gap:0;margin:0 0 16px;border-radius:12px;overflow:hidden;border:1px solid rgba(15,23,42,.08);background:var(--page,#fff);box-shadow:0 1px 2px rgba(15,23,42,.04);min-width:0}
.hk-tk-label{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:9px 14px;background:#171717;color:#fff;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.hk-tk-label:hover{color:#fff;background:#000}
.hk-tk-view{flex:1;min-width:0;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.hk-tk-track{display:flex;width:max-content;animation:hk-tk var(--hk-tk-time,40s) linear infinite}
.hk-ticker:hover .hk-tk-track,.hk-ticker:focus-within .hk-tk-track{animation-play-state:paused}
.hk-tk-run{display:flex;align-items:center;flex:0 0 auto;padding-left:16px}
.hk-tk-item{display:inline-flex;align-items:center;gap:8px;padding:9px 0;white-space:nowrap;color:var(--ink,#171717);text-decoration:none;font-size:14px}
.hk-tk-item strong{font-weight:700}
.hk-tk-item span{color:var(--muted,#475569)}
.hk-tk-item:hover strong{text-decoration:underline}
.hk-tk-new{display:inline-block;padding:1px 7px;border-radius:999px;background:#e11d48;color:#fff !important;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.hk-tk-sep{margin:0 16px;color:var(--muted,#94a3b8)}
@keyframes hk-tk{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .hk-tk-track{animation:none;width:auto;flex-wrap:wrap}
  .hk-tk-run[aria-hidden]{display:none}
  .hk-tk-run{flex-wrap:wrap;white-space:normal}
  .hk-tk-item{white-space:normal}
  .hk-tk-view{-webkit-mask-image:none;mask-image:none}
}
:root[data-theme="dark"] .hk-ticker{background:var(--hk-surface,#0f172a);border-color:rgba(255,255,255,.08)}
:root[data-theme="dark"] .hk-tk-item{color:#e5e7eb}
:root[data-theme="dark"] .hk-tk-label{background:#fff;color:#111}
/* Payslip: attendance and hours */
.ps-hours{width:100%;margin:14px 0 6px;border-collapse:collapse;font-size:13px}
.ps-hours caption{text-align:left;font-weight:700;font-size:13px;margin-bottom:6px;caption-side:top}
.ps-hours th,.ps-hours td{padding:5px 0;border-top:1px solid var(--line,#eee);text-align:left;font-weight:400;text-transform:none;letter-spacing:0;font-size:13px;color:inherit;background:none}
.ps-hours td{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.ps-hours-note{margin:4px 0 0;font-size:12px}
.ip-hours{max-width:420px}
/* Payroll: who is not on it */
.pr-left-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pr-left-list li{display:flex;align-items:center;gap:10px}
.pr-left-list span{display:grid;min-width:0}
.pr-left-list small{color:var(--muted);font-size:12px}
/* Payslip and invoice pages: the Back and Print buttons stand out on the black bar */
.public-head .button{background:#fff;color:#111;border-color:#fff}
.public-head .button:hover{background:#e9e9e9;color:#000}
.payslip-paper .ip-hours{margin:18px 28px 8px;width:calc(100% - 56px);max-width:440px}
/* HR desk: summary chips and today's counts open what they count */
.hh-sum a{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;background:#fff;box-shadow:var(--hk-shadow-hairline);font-size:13px;font-weight:600;color:inherit;text-decoration:none}
.hh-sum a.is-bad{color:var(--hk-state-danger-text)}
.hh-sum a.is-ok{color:var(--hk-state-success-text)}
.hh-sum a:hover{box-shadow:0 0 0 1px rgba(15,23,42,.18)}
.hh-cnt a{display:block;padding:10px 4px;border-radius:14px;background:var(--hk-ink-a3);text-align:center;color:inherit;text-decoration:none;transition:background .15s}
.hh-cnt a:hover{background:var(--hk-ink-a5,rgba(15,23,42,.09))}
.hh-cnt a.is-warn{background:var(--hk-state-warning-tint)}
:root[data-theme="dark"] .hh-sum a{background:var(--hk-surface,#1e293b)}
/* Attendance key: every mark on the grid is explained */
.attendance-key .cell.none{background:transparent;box-shadow:inset 0 0 0 1px var(--line-strong,#d5d9e0)}
.attendance-key .cell.none.future{box-shadow:none;border:1px dashed var(--line-strong,#d5d9e0)}
.attendance-key{font-size:11px}
/* ===== End testing fixes (2.24.93) ===== */

/* ===== Missing time reminders ===== */
.rm-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px 14px 18px; border-radius: 20px; background: var(--hk-state-warning-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hk-state-warning-text) 22%, transparent); color: var(--hk-color-text); }
.rm-bar[hidden] { display: none; }
.rm-bar-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--hk-state-warning-text) 14%, transparent); color: var(--hk-state-warning-text); }
.rm-bar-tx { flex: 1; min-width: 0; }
.rm-bar-tx b { display: block; font-size: 14.5px; }
.rm-bar-tx p { margin: 2px 0 0; color: var(--hk-state-warning-text); font-size: 12.5px; line-height: 1.45; }
.rm-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.rm-pick form { margin: 0; }
.rm-pick .button { gap: 6px; background: #fff; box-shadow: var(--hk-shadow-hairline); }
.rm-pick .button.is-go { background: #16A34A; color: #fff; box-shadow: none; }
.rm-pick .button.is-go:hover { background: #15803D; }
.rm-break { color: var(--hk-state-warning-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .rm-bar { flex-wrap: wrap; } .rm-pick { justify-content: flex-start; width: 100%; } }
.rm-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.rm-card .my-h + .rm-row { border-top: 0; padding-top: 2px; }
.rm-d { display: grid; place-items: center; align-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--hk-ink-a4); line-height: 1.15; text-align: center; }
.rm-d small { color: var(--hk-color-text-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rm-d b { font-size: 18px; }
.rm-t b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.rm-t small { display: block; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rm-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rm-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text-2); font-size: 12.5px; }
@media (max-width: 700px) { .rm-row { grid-template-columns: 44px minmax(0, 1fr); } .rm-d { width: 44px; height: 44px; } .rm-act { grid-column: 2; justify-content: flex-start; } }
.rm-dialog { width: min(720px, calc(100vw - 32px)); }
.rm-off { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12.5px; font-weight: 600; }
.rm-it { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.rm-off + .rm-it, .dialog-body > .rm-it:first-of-type { border-top: 0; }
.rm-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.rm-ic.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.rm-ic.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.rm-ic.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.rm-it b { display: block; font-size: 14px; }
.rm-it small { display: block; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.rm-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rm-when input[type="number"] { width: 72px; height: 32px; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.rm-lead { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.rm-sw { position: relative; display: inline-block; flex: none; width: 42px; height: 24px; margin-top: 8px; cursor: pointer; }
.rm-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rm-sw span { position: absolute; inset: 0; border-radius: 12px; background: rgba(15,23,42,.2); transition: background .15s; pointer-events: none; }
.rm-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.rm-sw input:checked + span { background: #16A34A; }
.rm-sw input:checked + span::after { left: 21px; }
.rm-sw input:focus-visible + span { outline: 2px solid var(--hk-color-focus, #2563EB); outline-offset: 2px; }
.rm-dialog .dialog-foot .grow { flex: 1; }
.rm-note { color: var(--hk-color-text-2); font-size: 12.5px; }

/* ===== My account ===== */
.ac-page { max-width: 1240px; }
.ac-top { margin: 4px 0 16px; }
.ac-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.ac-top p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.ac-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 4px; border-radius: 999px; background: var(--hk-ink-a4); }
.ac-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ac-tabs a:hover { color: var(--hk-color-text); }
.ac-tabs a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: 0 1px 2px rgba(15,23,42,.08), var(--hk-shadow-hairline); }
.ac-tabs em { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #DC2626; color: #fff; font-size: 10.5px; font-style: normal; }
.ac-card { margin: 0 0 16px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ac-card h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ac-card .sub { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.ac-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ac-h > a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ac-count { color: var(--hk-color-text-2); font-size: 12.5px; white-space: nowrap; }
.ac-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ac-form { margin: 0; }
.ac-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 380px); gap: 22px; align-items: center; }
.ac-hero.is-plain { grid-template-columns: auto minmax(0, 1fr); }
.ac-pic, .ac-pic.photo-field { position: relative; display: block; width: 88px; height: 88px; margin: 0; }
.ac-pic img.pic { width: 88px !important; height: 88px !important; object-fit: cover; }
.ac-pic .pic, .ac-pic img { width: 88px !important; height: 88px !important; border-radius: 50%; }
.ac-cam { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-color-ink-900, #0F172A); color: #fff; box-shadow: 0 0 0 3px #fff; cursor: pointer; }
.ac-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ac-who h2 { font-size: 24px; letter-spacing: -.01em; }
.ac-who > p:not(.ac-note) { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 14px; }
.ac-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ac-facts span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.ac-note { margin: 10px 0 0; color: var(--hk-color-text-3); font-size: 12px; line-height: 1.45; }
.ac-remove { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: var(--hk-color-text-2); font-weight: 600; cursor: pointer; }
.ac-done { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.ac-ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#16A34A calc(var(--p) * 1%), var(--hk-ink-a8) 0); }
.ac-ring b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; font-size: 14px; }
.ac-done h3 { margin: 0; font-size: 14px; }
.ac-done small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; }
.ac-miss { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-miss a, .ac-miss span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 600; text-decoration: none; }
.ac-miss a { background: #fff; box-shadow: var(--hk-shadow-hairline); color: var(--hk-color-text); }
.ac-miss a:hover { box-shadow: inset 0 0 0 1px #F59E0B; }
.ac-miss .is-ok { color: var(--hk-state-success-text); }
.ac-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ac-fields.is-three { grid-template-columns: 1.3fr 1fr 1fr; }
.ac-fields .wide { grid-column: 1 / -1; }
.ac-fields textarea { min-height: 76px; }
.ac-fields .is-missing { background: #FFFBEB; box-shadow: inset 0 0 0 1.5px #F59E0B; }
.ac-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border-radius: 14px; background: var(--hk-ink-a4); cursor: text; }
.ac-tags span { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 9px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 12.5px; font-weight: 600; }
.ac-tags span button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--hk-color-text-3); font-size: 14px; cursor: pointer; }
.ac-tags span button:hover { background: var(--hk-ink-a6); color: var(--hk-color-text); }
.ac-tags input { flex: 1; min-width: 120px; height: 30px !important; padding: 0 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.ac-save { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px 12px 20px; border-radius: 20px; background: #fff; box-shadow: var(--hk-shadow-float); }
.ac-save .grow { flex: 1; color: var(--hk-color-text-2); font-size: 13px; }
.ac-save.is-dirty { position: sticky; bottom: 16px; z-index: 5; background: var(--hk-color-ink-900, #0F172A); box-shadow: var(--hk-shadow-overlay); }
.ac-save.is-dirty .grow { color: #fff; font-weight: 600; }
.ac-save.is-dirty .button:not(.primary) { background: rgba(255,255,255,.12); color: #fff; }
.ac-save.is-dirty .button.primary { background: #fff; color: #0F172A; }
.ac-prev { padding: 22px 18px; border-radius: 20px; background: linear-gradient(180deg, var(--hk-ink-a4), transparent); text-align: center; }
.ac-prev .pic, .ac-prev img { margin: 0 auto; }
.ac-prev b { display: block; margin-top: 10px; font-size: 15px; }
.ac-prev small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ac-prev p { margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.ac-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.ac-chips span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 12px; font-weight: 600; }
.ac-val { margin: 0; font-size: 13.5px; font-weight: 600; }
.ac-empty { margin: 0; color: var(--hk-color-text-2); font-size: 13px; }
.ac-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 14px; margin: 0; font-size: 13.5px; }
.ac-dl.is-tight { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); margin-bottom: 14px; }
.ac-dl dt { color: var(--hk-color-text-2); }
.ac-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ac-dl a { color: var(--hk-color-text-2); }
.ac-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ac-table th { padding: 0 0 8px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.ac-table td { padding: 11px 0; border-top: 1px solid var(--hk-color-divider); vertical-align: middle; }
.ac-table .num { text-align: right; }
.ac-flag { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.ac-flag.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.ac-flag.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.ac-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--hk-color-divider); }
.ac-h + .ac-row, .ac-row:first-child { border-top: 0; padding-top: 0; }
.ac-row.is-slim { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 9px 0; }
.ac-row b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.ac-row small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.ac-row > a { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.ac-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.ac-ic.is-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.ac-ic.is-warn { background: color-mix(in srgb, var(--hk-state-warning-text) 16%, transparent); color: var(--hk-state-warning-text); }
.ac-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ac-act form { margin: 0; }
.ac-card > .ac-act { justify-content: flex-start; margin-top: 12px; }
.ac-pol { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 10px; padding: 14px; border-radius: 18px; background: var(--hk-state-warning-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hk-state-warning-text) 22%, transparent); }
.ac-pol b { display: block; font-size: 14px; }
.ac-pol small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ac-pol p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.5; }
.ac-up { margin-top: 12px; padding: 14px; border: 1.5px dashed rgba(15,23,42,.16); border-radius: 16px; }
.ac-up-head { display: flex; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 13px; }
.ac-up-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ac-up-fields select { width: 150px; }
.ac-up-fields input[type="text"] { flex: 1; min-width: 160px; }
.ac-exp { display: inline-flex; align-items: center; gap: 6px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.ac-exp input { width: 150px; }
.ac-rev { border-top: 1px solid var(--hk-color-divider); }
.ac-h + .ac-rev { border-top: 0; }
.ac-rev summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; list-style: none; cursor: pointer; }
.ac-rev summary::-webkit-details-marker { display: none; }
.ac-rev summary b { display: block; font-size: 14px; }
.ac-rev summary small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ac-rev > p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.ac-rev-form { display: grid; gap: 8px; margin: 0 0 12px; }
.ac-rev-form button { justify-self: start; }
.ac-2fa { margin: 4px 0 0; padding: 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.ac-2fa[hidden] { display: none; }
.ac-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); cursor: pointer; }
.ac-h + .ac-switch { border-top: 0; padding-top: 0; }
.ac-switch b { display: block; font-size: 13.5px; }
.ac-switch small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.ac-switch .rm-sw { margin-top: 0; }
.ac-side select { width: 100%; }
.ac-codes .recovery-codes { margin: 0 0 12px; }
.ac-dialog { width: min(560px, calc(100vw - 32px)); }
.ac-dialog .dialog-body > .field + .field { margin-top: 14px; }
@media (max-width: 1100px) { .ac-grid { grid-template-columns: 1fr; } .ac-hero { grid-template-columns: auto minmax(0, 1fr); } .ac-hero .ac-done { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ac-fields, .ac-fields.is-three { grid-template-columns: 1fr; } .ac-hero { grid-template-columns: 1fr; } .ac-tabs { border-radius: 18px; } .ac-tabs a { padding: 0 12px; } .ac-dl { grid-template-columns: 1fr; gap: 2px; } .ac-dl dd { margin-bottom: 10px; } .ac-pol { grid-template-columns: 40px minmax(0, 1fr); } .ac-pol .ac-act { grid-column: 2; justify-content: flex-start; } }

/* ===== Tasks ===== */
.tk { --s-todo: #94A3B8; --s-in_progress: var(--hk-hue-development); --s-review: var(--hk-state-warning); --s-done: var(--hk-state-success); display: grid; gap: 16px; min-width: 0; }
.tk .s-todo { --s: var(--s-todo); } .tk .s-in_progress { --s: var(--s-in_progress); } .tk .s-review { --s: var(--s-review); } .tk .s-done { --s: var(--s-done); }

/* Project context */
.tk-context { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--hk-radius-card); background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); }
.tk-context-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--hk-color-text); text-decoration: none; }
.tk-context-copy { display: grid; min-width: 0; }
.tk-context-copy strong { font-size: 16px; font-weight: 600; }
.tk-context-copy span { color: var(--hk-color-text-2); font-size: 12.5px; }
.tk-context-all { color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }

/* Summary tiles */
.tk-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tk-stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); color: var(--hk-color-text); text-decoration: none; transition: transform var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out); }
.tk-stat:hover { transform: translateY(-1px); box-shadow: var(--hk-shadow-float-hover); }
.tk-stat.is-on { box-shadow: 0 0 0 2px var(--hk-color-ink-900, #111827), var(--hk-shadow-float); }
.tk-stat-copy { display: grid; min-width: 0; line-height: 1.2; }
.tk-stat-copy strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tk-stat-copy span { overflow: hidden; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tk-stat.tone-danger:not(.is-zero) strong { color: var(--hk-state-danger-text); }
.tk-stat.is-zero .hk-icon-tile { filter: grayscale(1); opacity: .55; }
.tk-stat.tone-ai .hk-icon-tile { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }

/* Banner */
.tk-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 18px; background: var(--hk-state-warning-tint); }
.tk-banner-copy { display: grid; flex: 1; min-width: 0; }
.tk-banner-copy strong { color: var(--hk-state-warning-text); font-size: 13.5px; font-weight: 600; }
.tk-banner-copy small { color: var(--hk-state-warning-text); opacity: .85; font-size: 12px; }

/* Filters bar */
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; padding: 10px; border-radius: 22px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); }
.tk-search { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 200px; }
.tk-search > .icon { position: absolute; left: 14px; color: var(--hk-color-text-3); pointer-events: none; }
.tk-search input[type="search"] { width: 100%; height: 40px; padding-left: 38px !important; border-radius: var(--hk-radius-pill); background: var(--hk-ink-a4) !important; box-shadow: none !important; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.tk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--hk-radius-pill); background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--hk-motion-fast); }
.tk-chip:hover { background: var(--hk-ink-a8); }
.tk-chip b { color: var(--hk-color-text-2); font-weight: 600; }
.tk-chip.is-on { background: var(--hk-color-ink-900, #111827); color: #fff; }
.tk-chip.is-on b { color: rgba(255,255,255,.75); }
.tk-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tk-seg { display: inline-flex; padding: 3px; border-radius: var(--hk-radius-pill); background: var(--hk-ink-a4); }
.tk-seg a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--hk-radius-pill); color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.tk-seg a:hover { color: var(--hk-color-text); }
.tk-seg a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.tk-more { position: relative; }
.tk-more > summary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--hk-radius-pill); background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.tk-more > summary::-webkit-details-marker { display: none; }
.tk-more > summary:hover, .tk-more[open] > summary { background: var(--hk-ink-a8); }
.tk-more > summary b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hk-color-ink-900, #111827); color: #fff; font-size: 11px; }
.tk-more-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; gap: 12px; width: 320px; padding: 18px; border-radius: 20px; background: var(--hk-surface-modal, #fff); box-shadow: var(--hk-shadow-overlay); }
.tk-more-panel .field { display: grid; gap: 6px; margin: 0; }
.tk-more-panel select { width: 100%; }
.tk-more-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.tk-weeknav { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.tk-weeknav strong { min-width: 150px; text-align: center; font-size: 15px; font-weight: 600; }
.tk-round { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); text-decoration: none; }
.tk-round:hover { background: var(--hk-ink-a8); }
.tk-round .icon { transform: rotate(-90deg); }
.tk-round.is-prev .icon { transform: rotate(90deg); }
.tk-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -6px; }
.tk-active-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 12px; border-radius: var(--hk-radius-pill); background: var(--hk-state-info-tint); color: var(--hk-state-info-text); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.tk-active-chip .icon { opacity: .7; }
.tk-active-chip:hover .icon { opacity: 1; }
.tk-clear { margin-left: 4px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.tk-hint { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; color: var(--hk-color-text-2); font-size: 12.5px; }

/* List */
.tk-list { padding: 8px 8px 4px; }
.tk-list-head, .tk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 190px 78px 92px 118px; align-items: center; gap: 14px; }
.tk-list-head { padding: 10px 14px 6px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tk-group + .tk-group { margin-top: 6px; }
.tk-group-label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 14px 6px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tk-group-label span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; letter-spacing: 0; }
.tk-group-overdue .tk-group-label { color: var(--hk-state-danger-text); }
.tk-group-overdue .tk-group-label span { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.tk-group-today .tk-group-label { color: var(--hk-color-text); }
.tk-row { min-height: 60px; padding: 10px 14px; border-radius: 14px; cursor: pointer; transition: background var(--hk-motion-fast); }
.tk-row:hover { background: var(--hk-ink-a3); }
.tk-row:focus-visible { outline: none; box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.tk-state { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--s); border-radius: 50%; color: #fff; }
.tk-row .s-in_progress { background: conic-gradient(var(--s) 0 50%, transparent 50% 100%); }
.tk-row .s-review { background: conic-gradient(var(--s) 0 80%, transparent 80% 100%); }
.tk-row .s-done { background: var(--s); }
.tk-main { display: grid; gap: 3px; min-width: 0; }
.tk-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-title-text { overflow: hidden; color: var(--hk-color-text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tk-row.is-done .tk-title-text { color: var(--hk-color-text-3); text-decoration: line-through; }
.tk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--hk-color-text-2); font-size: 12.5px; }
.tk-proj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tk-meta { display: inline-flex; align-items: center; gap: 3px; color: var(--hk-color-text-3); font-size: 12px; }
.tk-flag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 11px; font-weight: 600; }
.tk-people { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-people .pic + .pic { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.tk-people-name { overflow: hidden; color: var(--hk-color-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tk-muted { color: var(--hk-color-text-3); font-size: 12.5px; }
.tk-pri { display: inline-flex; align-items: center; justify-self: start; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; }
.tk-pri.p-high { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.tk-pri.p-normal { background: transparent; padding: 0; color: var(--hk-color-text-2); font-weight: 500; }
.tk-pri.p-low { background: transparent; padding: 0; color: var(--hk-color-text-3); font-weight: 500; }
.tk-due { color: var(--hk-color-text); font-size: 13px; font-weight: 500; }
.tk-due .late, .tk-card-due .late { color: var(--hk-state-danger-text); font-weight: 600; }
.tk-due .today, .tk-card-due .today { color: var(--hk-state-warning-text); font-weight: 600; }
.tk-status .status { font-size: 12px; }
.tk-list-foot { margin: 6px 14px 10px; color: var(--hk-color-text-3); font-size: 12px; }

/* Board and week */
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding: 2px 2px 10px; }
.tk .tk-col { min-height: 220px; margin: 0; padding: 12px; border: 0; border-radius: 22px; background: rgba(15,23,42,0.035); box-shadow: none; }
.tk .tk-col.is-over { background: var(--hk-state-info-tint); box-shadow: inset 0 0 0 2px var(--hk-hue-development-400); }
.tk .tk-col-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 12px; font-size: 13.5px; font-weight: 600; }
.tk-col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s, var(--hk-color-text-3)); }
.tk-col-name { flex: 1; }
.tk .tk-col-head .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 7px; border-radius: 11px; background: #fff; color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; }
.tk .cards-stack { display: grid; gap: 10px; min-height: 48px; }
.tk .tk-card { display: grid; gap: 8px; padding: 14px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04); cursor: grab; transition: box-shadow var(--hk-motion-fast), transform var(--hk-motion-fast); }
.tk .tk-card[draggable="false"] { cursor: pointer; }
.tk .tk-card:hover { box-shadow: var(--hk-shadow-float-hover); transform: translateY(-1px); }
.tk .tk-card:focus-visible { outline: none; box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.tk .tk-card.p-high { box-shadow: inset 3px 0 0 var(--hk-state-danger), 0 1px 2px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04); }
.tk .tk-card h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tk .tk-card.is-done { opacity: .7; }
.tk .tk-card.is-done h3 { color: var(--hk-color-text-3); text-decoration: line-through; }
.tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-card-proj { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.tk-card-proj > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.tk-card-people { display: flex; align-items: center; }
.tk-card-people .pic + .pic { margin-left: -7px; box-shadow: 0 0 0 2px #fff; }
.tk-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; }
.tk-card-meta .status { font-size: 11.5px; }
.tk-card-due { display: inline-flex; align-items: center; gap: 4px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.tk-col-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 10px; border: 1.5px dashed var(--hk-ink-a12); border-radius: 14px; background: transparent; color: var(--hk-color-text-2); font: 600 13px/1 var(--hk-font-sans); cursor: pointer; }
.tk-col-add:hover { border-color: var(--hk-color-text-3); background: #fff; color: var(--hk-color-text); }
.tk-col-foot { margin: 12px 6px 2px; color: var(--hk-color-text-2); font-size: 12px; }
.tk-col-foot a { color: inherit; }
.tk-week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(178px, 1fr); }
.tk-week .tk-col.is-today { background: #fff; box-shadow: 0 0 0 2px var(--hk-color-ink-900, #111827); }
.tk-week .tk-col.is-past:not(.is-today) { opacity: .8; }
.tk-week .tk-col.is-overdue { background: var(--hk-state-danger-tint); }
.tk-week .tk-col.is-overdue .tk-col-head { color: var(--hk-state-danger-text); }
.tk-week .tk-col.is-overdue .tk-col-dot { background: var(--hk-state-danger); }
.tk-week .tk-col.is-undated { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hk-ink-a12); }
.tk-day { display: flex; align-items: baseline; gap: 6px; flex: 1; }
.tk-day span { color: var(--hk-color-text-2); font-weight: 500; }
.tk-today { height: 20px; padding: 0 8px; border-radius: 10px; background: var(--hk-color-ink-900, #111827); color: #fff; font-size: 11px; line-height: 20px; }

/* Empty */
.tk-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.tk-empty h2 { margin: 8px 0 0; font-size: 18px; font-weight: 600; }
.tk-empty p { max-width: 420px; margin: 0 0 8px; color: var(--hk-color-text-2); font-size: 14px; }

@media (max-width: 1279px) {
  .tk-list-head, .tk-row { grid-template-columns: 28px minmax(0, 1fr) 150px 70px 86px 110px; }
  .tk-people-name { display: none; }
}
@media (max-width: 1100px) {
  .tk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-bar-end { margin-left: 0; }
}
@media (max-width: 860px) {
  .tk-list-head { display: none; }
  .tk-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "state main due" "state meta meta"; gap: 4px 12px; align-items: start; padding: 12px; }
  .tk-row .tk-state { grid-area: state; margin-top: 2px; }
  .tk-row .tk-main { grid-area: main; }
  .tk-row .tk-due { grid-area: due; text-align: right; }
  .tk-row .tk-people, .tk-row .tk-pri, .tk-row .tk-status { grid-area: meta; }
  .tk-row .tk-people { display: none; }
  .tk-row .tk-pri.p-normal, .tk-row .tk-pri.p-low { display: none; }
  .tk-row .tk-status { justify-self: start; }
  .tk-row .tk-pri.p-high { justify-self: end; }
  .tk-title-text { white-space: normal; }
}
@media (max-width: 640px) {
  .tk-stats { display: flex; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; }
  .tk-stat { flex: 0 0 150px; padding: 12px; }
  .tk-bar { padding: 10px; border-radius: 20px; }
  .tk-search { flex: 1 1 100%; }
  .tk-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -10px; padding: 0 10px 2px; scrollbar-width: none; }
  .tk-bar-end { width: 100%; justify-content: space-between; }
  .tk-seg a span { display: none; }
  .tk-seg a { padding: 0 12px; }
  .tk-more-panel { left: 0; right: auto; width: min(320px, calc(100vw - 48px)); }
  .tk-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82vw; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 2px 14px 10px; }
  .tk .tk-col { scroll-snap-align: start; }
  .tk-weeknav strong { min-width: 0; }
}
.tk-day { white-space: nowrap; min-width: 0; }
.tk .tk-card > .tag, .tk .tk-card > .creation-badge, .tk .tk-card > span[class*="creation"] { justify-self: start; max-width: 100%; white-space: normal; line-height: 1.3; padding-top: 3px; padding-bottom: 3px; height: auto; }

/* ===== Sheet (Add task, Create my task) ===== */
dialog.tk-sheet { position: fixed; inset: 12px 12px 12px auto; width: min(560px, calc(100vw - 24px)); max-width: none; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; margin: 0; padding: 0; overflow: hidden; border-radius: 28px; background: var(--hk-surface-modal, #fff); box-shadow: var(--hk-shadow-overlay); }
dialog.tk-sheet[open] { display: flex; flex-direction: column; animation: tk-sheet-in var(--hk-motion-base, .22s) var(--hk-ease-out, ease-out); }
@keyframes tk-sheet-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
dialog.tk-sheet > form { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; }
.tk-sheet-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 20px 18px 28px !important; border-bottom: 1px solid var(--hk-color-divider) !important; }
.tk-sheet-head > .hk-icon-tile { flex: none; width: 40px; height: 40px; border-radius: 14px; }
.tk-sheet-titles { flex: 1; min-width: 0; }
.tk-sheet-titles h2 { margin: 0; font-size: 20px !important; font-weight: 600; letter-spacing: -0.01em; }
.tk-sheet-titles p { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13px; line-height: 1.45; }
.tk-sheet-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 18px !important; padding: 22px 28px 24px !important; }
.tk-sheet-body .field { display: grid; gap: 7px; margin: 0; }
.tk-sheet-body .field > label, .tk-sheet-body legend { color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.tk-sheet-body input[type="text"], .tk-sheet-body input[type="date"], .tk-sheet-body select { height: 44px; }
.tk-field-title input[type="text"] { height: 52px !important; font-size: 16px; font-weight: 500; }
.tk-sheet-group { display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.tk-sheet-group input[type="text"], .tk-sheet-group input[type="date"], .tk-sheet-group select, .tk-sheet-group .tk-picker { background-color: #fff !important; }
.tk-sheet-cols { grid-template-columns: 1fr 1fr; }
.tk-span { grid-column: 1 / -1; }
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field legend { margin-bottom: 7px; padding: 0; }
.tk-radio-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--hk-radius-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--hk-color-divider); }
.tk-radio-seg label { position: relative; margin: 0; cursor: pointer; }
.tk-radio-seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tk-radio-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: var(--hk-radius-pill); color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; transition: background var(--hk-motion-fast), color var(--hk-motion-fast); }
.tk-radio-seg span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hk-color-text-3); }
.tk-radio-seg .p-high span::before { background: var(--hk-state-danger); }
.tk-radio-seg .p-normal span::before { background: var(--hk-hue-development); }
.tk-radio-seg input:checked + span { background: var(--hk-color-ink-900, #111827); color: #fff; }
.tk-radio-seg input:focus-visible + span { box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.tk-picker { border-radius: var(--hk-radius-input, 12px); }
.tk-picker summary { gap: 8px; height: 44px !important; padding: 0 34px 0 14px !important; color: var(--hk-color-text); font-size: 14px; }
.tk-picker summary .icon { flex: none; color: var(--hk-color-text-3); }
.tk-picker[open] { box-shadow: 0 0 0 2px var(--hk-color-link, #2563EB) !important; }
.tk-picker .picker-list { max-height: 230px; padding: 6px; border-top: 1px solid var(--hk-color-divider); }
.tk-picker .picker-list label { gap: 10px !important; padding: 7px 8px !important; border-radius: 10px !important; font-size: 13.5px !important; }
.tk-picker .picker-list label:has(input:checked) { background: var(--hk-state-info-tint); }
.tk-switch { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); cursor: pointer; }
.tk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--hk-ink-a12); transition: background var(--hk-motion-fast); }
.tk-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.2); transition: transform var(--hk-motion-fast); }
.tk-switch input:checked + .tk-switch-track { background: var(--hk-color-ink-900, #111827); }
.tk-switch input:checked + .tk-switch-track::after { transform: translateX(16px); }
.tk-switch input:focus-visible + .tk-switch-track { box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.tk-switch-copy { display: grid; }
.tk-switch-copy strong { font-size: 13.5px; font-weight: 600; }
.tk-switch-copy small { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.tk-drop { position: relative; display: flex !important; align-items: center; gap: 12px; height: auto !important; padding: 16px !important; border: 1.5px dashed var(--hk-ink-a12) !important; border-radius: 16px !important; background: transparent !important; color: var(--hk-color-text) !important; cursor: pointer; }
.tk-drop:hover { border-color: var(--hk-color-text-3) !important; background: var(--hk-ink-a3) !important; }
.tk-drop-copy { display: grid; min-width: 0; text-align: left; }
.tk-drop-copy strong { font-size: 13.5px; font-weight: 600; }
.tk-drop-copy small { color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.tk-sheet-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.tk-sheet-note .icon { flex: none; margin-top: 2px; }
.tk-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 28px 20px !important; border-top: 1px solid var(--hk-color-divider) !important; background: var(--hk-surface-modal, #fff) !important; }
.tk-sheet .hint { color: var(--hk-color-text-2); font-size: 12px; }
@media (max-width: 640px) {
  dialog.tk-sheet { inset: 0; width: 100vw; height: 100%; border-radius: 0; }
  .tk-sheet-head { padding: 18px 14px 14px 18px !important; }
  .tk-sheet-body { padding: 18px !important; }
  .tk-sheet-cols { grid-template-columns: 1fr; }
  .tk-sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)) !important; }
  .tk-sheet-foot .button { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .tk-banner { flex-wrap: wrap; }
  .tk-banner-copy { flex: 1 1 calc(100% - 52px); }
  .tk-banner .button { width: 100%; justify-content: center; }
}

/* Tasks list: full detail rows */
.tk-list-head, .tk-row { grid-template-columns: 24px minmax(0, 1fr) 176px 118px 62px 108px 112px; gap: 14px; }
.tk-row { align-items: start; min-height: 0; padding: 14px; }
.tk-row > .tk-state { margin-top: 1px; }
.tk-row > .tk-people, .tk-row > .tk-time, .tk-row > .tk-pri, .tk-row > .tk-due, .tk-row > .tk-status { padding-top: 1px; }
.tk-group .tk-row + .tk-row { box-shadow: inset 0 1px 0 var(--hk-color-divider); border-radius: 0; }
.tk-group .tk-row + .tk-row:hover, .tk-group .tk-row:hover + .tk-row { box-shadow: none; }
.tk-group .tk-row:hover { border-radius: 14px; }
.tk-main { gap: 4px; }
.tk-title { flex-wrap: wrap; row-gap: 4px; }
.tk-title-text { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.tk-desc { display: -webkit-box; overflow: hidden; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tk-sub { gap: 4px 14px; margin-top: 1px; }
.tk-dim { color: var(--hk-color-text-3); }
.tk-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tk-tag.is-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.tk-live { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--hk-state-success-tint); color: var(--hk-state-success-text); font-size: 11px; font-weight: 600; }
.tk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hk-state-success); animation: tk-pulse 1.6s ease-in-out infinite; }
@keyframes tk-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); } }
.tk-row.is-live { background: linear-gradient(90deg, rgba(34,197,94,.06), transparent 40%); }
.tk-flag { gap: 4px; }
.tk-time { display: grid; gap: 6px; min-width: 0; }
.tk-time-text { font-size: 13px; white-space: nowrap; }
.tk-time-text strong { font-weight: 600; }
.tk-time-text small { color: var(--hk-color-text-2); font-size: 12px; }
.tk-bar-track { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: var(--hk-ink-a6); }
.tk-bar-track span { display: block; height: 100%; border-radius: 3px; background: var(--hk-hue-development); }
.tk-time.is-over .tk-bar-track span { background: var(--hk-state-danger); }
.tk-time.is-over strong { color: var(--hk-state-danger-text); }
.tk-due { display: grid; gap: 2px; }
.tk-due small { color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 500; }
.tk-due small.is-late { color: var(--hk-state-danger-text); font-weight: 600; }
.tk-people { align-items: center; }
.tk-people-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: 12.5px; }
@media (max-width: 1360px) {
  .tk-list-head, .tk-row { grid-template-columns: 24px minmax(0, 1fr) 96px 108px 58px 100px 108px; }
  .tk-people-name { display: none; }
}
@media (max-width: 1100px) {
  .tk-list-head, .tk-row { grid-template-columns: 24px minmax(0, 1fr) 84px 100px 96px 104px; }
  .tk-list-head > :nth-child(5), .tk-row > .tk-pri { display: none; }
}
@media (max-width: 860px) {
  .tk-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "state main due" "state time status"; }
  .tk-row .tk-time { grid-area: time; }
  .tk-row .tk-status { grid-area: status; justify-self: end; }
  .tk-row .tk-pri { display: none !important; }
  .tk-group .tk-row + .tk-row { box-shadow: inset 0 1px 0 var(--hk-color-divider); }
}

/* ===== Sidebar, refined ===== */
.sidebar { transition: width .2s var(--hk-ease-out, ease-out), margin .2s var(--hk-ease-out, ease-out), box-shadow .2s; }
.brand.hk-brand { padding: 22px 22px 18px; }
.nav { padding: 2px 14px 12px; }
.nav a, .nav-group > summary { position: relative; height: 40px; margin: 0 0 4px; padding: 0 12px; gap: 12px; color: #334155; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a .icon, .nav-group > summary .icon { color: #475569; }
.nav a:hover, .nav-group > summary:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.nav a:hover .icon, .nav-group > summary:hover .icon { color: var(--hk-color-text); }
.nav a:focus-visible, .nav-group > summary:focus-visible { outline: none; box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }
.nav > .nav-primary > a.is-current, .nav a.nav-primary-link.is-current, .hk-side-foot a.is-current { background: var(--hk-color-ink-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(11,18,32,.6); }
.nav-link-label, .nav-group-label { overflow: hidden; text-overflow: ellipsis; }
.nav .nav-caption.is-split { margin: 10px 4px 14px !important; height: 1px !important; background: var(--hk-color-divider); }

/* Groups: a guide line, no second black capsule */
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group[open] > summary { margin-bottom: 2px; background: transparent; }
.nav-group[open] > summary:hover { background: var(--hk-ink-a4); }
.nav-group.is-active > summary { color: var(--hk-color-text); font-weight: 600; }
.nav-group.is-active > summary .icon { color: var(--hk-color-ink-900); }
.nav-group-chevron { display: inline-flex; margin-left: auto; color: var(--hk-color-text-3); transform: rotate(-90deg); transition: transform var(--hk-motion-fast); }
.nav-group[open] > summary .nav-group-chevron { transform: none; }
.nav-group-count { margin-left: auto; }
.nav-group-count + .nav-group-chevron { margin-left: 6px; }
.nav-group[open] > summary .nav-group-count { display: none; }
.nav-group-items { position: relative; margin: 0 0 10px 22px !important; padding: 2px 0 2px 12px !important; border-left: 1.5px solid var(--hk-color-divider) !important; }
.nav-group-items .nav-group-link { height: 34px; margin: 0 0 2px; padding: 0 10px; border-radius: 10px; color: #475569; font-size: 13.5px; font-weight: 500; }
.nav-group-items .nav-group-link .icon { display: none; }
.nav-group-items .nav-group-link:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.nav-group-items .nav-group-link.is-current { background: var(--hk-ink-a6); color: var(--hk-color-text); font-weight: 600; box-shadow: none; }
.nav-group-items .nav-group-link.is-current::before { content: ""; display: block !important; position: absolute; left: -13.5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--hk-color-ink-900); }
.nav-group-items .nav-group-link.is-current .nav-count { background: #DC2626; color: #fff; }
.nav .nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: none; }

/* Footer */
.hk-quote-tile { margin: 8px 14px 6px; padding: 18px; }
.hk-quote-tile p { font-size: 16px; margin-bottom: 14px; }
.hk-side-foot-row { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 14px; border-top: 1px solid var(--hk-color-divider); }
.hk-side-foot-row .hk-side-foot { flex: 1; min-width: 0; padding: 0; overflow: visible; }
.hk-side-foot-row .hk-side-foot a { margin: 0; }
.hk-rail-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; color: #475569; cursor: pointer; transition: background var(--hk-motion-fast); }
.hk-rail-toggle:hover { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.hk-rail-toggle:focus-visible { outline: none; box-shadow: var(--hk-focus-ring, 0 0 0 2px #2563EB); }

/* Icon rail (desktop): collapsed to icons, opens over the page on hover */
@media (min-width: 861px) {
  .app.is-rail { --rail: 84px; }
  .app.is-rail .sidebar { width: var(--rail); }
  .app.is-rail .sidebar:hover, .app.is-rail .sidebar:has(:focus-visible) { width: 260px; margin-right: calc(var(--rail) - 260px); z-index: 45; box-shadow: var(--hk-shadow-overlay); background: rgba(255,255,255,0.97); }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .hk-word,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-link-label,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group-label,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group-chevron,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group-items,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .hk-quote-tile,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-new-total { display: none !important; }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav a, .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group > summary { padding: 0 18px; }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group.is-active > summary { background: var(--hk-ink-a6); }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-count,
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group-count { position: absolute; top: 7px; left: 32px; min-width: 9px; width: 9px; height: 9px; padding: 0; border: 2px solid #fff; font-size: 0; line-height: 0; }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .nav-group[open] > summary .nav-group-count { display: block; }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .hk-side-foot-row { flex-direction: column; align-items: stretch; padding: 8px 14px 14px; }
  .app.is-rail .sidebar:not(:hover):not(:has(:focus-visible)) .hk-rail-toggle { margin: 0 auto; }
  .app.is-rail .hk-rail-toggle .icon { transform: scaleX(-1); }
}
@media (max-width: 860px) { .hk-rail-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
.nav-sub-sep { display: block; height: 1px; margin: 6px 10px 6px 10px; background: var(--hk-color-divider); }
.nav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); padding-bottom: 24px; }
@media (max-height: 1079px) { .hk-quote-tile { display: none; } }

/* ===== Work tracker ===== */
.wt { display: grid; gap: 16px; min-width: 0; }
.wt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 10px; border-radius: 22px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); }
.wt-datenav { display: flex; align-items: center; gap: 8px; }
.wt-datenav strong { min-width: 190px; text-align: center; font-size: 15px; font-weight: 600; }
.wt-round { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); text-decoration: none; }
.wt-round:hover { background: var(--hk-ink-a8); }
.wt-round.is-off { opacity: .35; pointer-events: none; }
.wt-round .icon { transform: rotate(-90deg); }
.wt-round.is-prev .icon { transform: rotate(90deg); }
.wt-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hk-ink-a4); }
.wt-seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.wt-seg a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.wt-bar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wt-search { position: relative; display: flex; align-items: center; }
.wt-search > .icon { position: absolute; left: 14px; color: var(--hk-color-text-3); pointer-events: none; }
.wt-search input[type="search"] { width: 230px; height: 40px; padding-left: 38px !important; border-radius: 999px; background: var(--hk-ink-a4) !important; box-shadow: none !important; }
.wt-bar select { height: 40px; min-width: 150px; border-radius: 999px; background-color: var(--hk-ink-a4) !important; box-shadow: none !important; }
.wt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wt-stats.is-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wt-stat { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); min-width: 0; }
.wt-stat span { display: block; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.wt-stat strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-stat strong small { color: var(--hk-color-text-2); font-size: 14px; font-weight: 500; }
.wt-stat em { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wt-stat.is-warn strong { color: var(--hk-state-warning-text); }
.wt-card { padding: 22px; border-radius: 24px; background: rgba(255,255,255,0.94); box-shadow: var(--hk-shadow-float); min-width: 0; }
.wt-card.is-flush { padding: 8px 10px; }
.wt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wt-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.wt-head small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.wt-scroll { overflow-x: auto; }
.wt-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.wt-table th { padding: 12px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; background: transparent !important; border: 0 !important; }
.wt-table td { padding: 12px; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; vertical-align: middle; white-space: nowrap; background: transparent !important; }
.wt-table tbody tr { cursor: pointer; transition: background var(--hk-motion-fast); }
.wt-table tbody tr:hover td { background: var(--hk-ink-a3) !important; }
.wt-table tbody tr:hover td:first-child { border-radius: 14px 0 0 14px; }
.wt-table tbody tr:hover td:last-child { border-radius: 0 14px 14px 0; }
.wt-person { display: flex; align-items: center; gap: 10px; color: var(--hk-color-text); text-decoration: none; }
.wt-person b { display: block; font-weight: 600; }
.wt-ava { position: relative; flex: none; }
.wt-ava i { position: absolute; right: -1px; bottom: 0; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #94A3B8; }
.wt-ava i.t-ok { background: #22C55E; } .wt-ava i.t-warn { background: #F59E0B; } .wt-ava i.t-info { background: #2563EB; } .wt-ava i.t-pur { background: #8B5CF6; }
.wt-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; margin-top: 3px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.wt-chip.t-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.wt-chip.t-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.wt-chip.t-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.wt-chip.t-pur { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.wt-chip.t-mut { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.wt-chip.t-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.wt-muted { color: var(--hk-color-text-3); }
.wt-sub { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.wt-sub.is-warn { color: var(--hk-state-warning-text); font-weight: 600; }
.wt-prog { display: grid; gap: 6px; min-width: 170px; }
.wt-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wt-prog-top b { font-weight: 600; }
.wt-track { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--hk-ink-a6); }
.wt-track > span { display: block; height: 100%; border-radius: 3px; background: var(--hk-hue-development); }
.wt-act { display: inline-flex; align-items: center; gap: 8px; }
.wt-act-ring { --p: 0; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--c, var(--hk-hue-development)) calc(var(--p) * 1%), var(--hk-ink-a6) 0); display: grid; place-items: center; }
.wt-act-ring::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.wt-act b { font-weight: 600; }
.wt-now { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.wt-now b { display: block; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; }
.wt-thumb { display: block; width: 92px; height: 54px; overflow: hidden; border-radius: 10px; background: var(--hk-ink-a4); box-shadow: 0 0 0 1px rgba(15,23,42,.06); }
.wt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wt-chev { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.wt-chev .icon { transform: rotate(-90deg); }
.wt-cell { display: grid; gap: 5px; min-width: 76px; padding: 8px 10px; border-radius: 12px; background: var(--hk-ink-a3); color: var(--hk-color-text); text-decoration: none; }
.wt-cell b { font-size: 13px; font-weight: 600; }
.wt-cell.is-off { background: repeating-linear-gradient(135deg, #fafbfc 0 8px, #f1f4f8 8px 9px); color: var(--hk-color-text-3); }
.wt-cell.is-leave { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.wt-cell.is-today { box-shadow: inset 0 0 0 2px var(--hk-color-ink-900, #111827); }
.wt-cell .wt-track { height: 4px; }
.wt-strip { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.wt-strip i { flex: 1; min-width: 3px; border-radius: 2px; background: var(--hk-hue-development); }
.wt-strip i.is-off { background: var(--hk-ink-a6); height: 3px !important; }
.wt-strip i.is-leave { background: var(--hk-hue-marketing-400); height: 6px !important; }
.wt-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.wt-empty h2 { margin: 6px 0 0; font-size: 18px; font-weight: 600; }
.wt-empty p { max-width: 460px; margin: 0; color: var(--hk-color-text-2); }

/* Person */
.wt-crumb { display: flex; align-items: center; gap: 6px; margin: -6px 0 0; color: var(--hk-color-text-2); font-size: 13px; font-weight: 500; }
.wt-crumb a { color: inherit; text-decoration: none; }
.wt-crumb a:hover { color: var(--hk-color-text); }
.wt-crumb .icon { transform: rotate(-90deg); }
.wt-crumb b { color: var(--hk-color-text); font-weight: 600; }
.wt-hero { display: flex; align-items: center; gap: 16px; }
.wt-hero h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.wt-hero-copy { flex: 1; min-width: 0; }
.wt-hero-copy .wt-chip { margin: 0; height: 24px; font-size: 12px; }
.wt-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wt-tl { position: relative; height: 40px; margin: 28px 0 8px; border-radius: 10px; background: var(--hk-ink-a3); }
.wt-tl span { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.wt-tl span.is-work { top: 14px; bottom: 14px; background: var(--hk-ink-a8); border-radius: 3px; }
.wt-tl span.is-break { background: #CBD5E1; }
.wt-tl span.is-task { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.wt-tl span.is-task.is-idle-end::after { content: ""; position: absolute; right: -3px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: #F59E0B; }
.wt-tl .wt-tl-now { top: -6px; bottom: -6px; width: 2px; border-radius: 1px; background: var(--hk-color-ink-900, #111827); }
.wt-tl .wt-tl-now::before { content: "Now"; position: absolute; top: -18px; left: -12px; font-size: 11px; font-weight: 600; color: var(--hk-color-text); }
.wt-hours { display: flex; justify-content: space-between; color: var(--hk-color-text-3); font-size: 11.5px; }
.wt-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: 12px; }
.wt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wt-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.wt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.wt-task { padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.wt-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wt-task-top a { color: var(--hk-color-text); font-size: 14px; font-weight: 600; text-decoration: none; }
.wt-task-top a:hover { text-decoration: underline; }
.wt-task .wt-track { margin: 8px 0 0 17px; }
.wt-task-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--hk-color-divider); }
.wt-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wt-shot { display: block; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.08); color: var(--hk-color-text); text-decoration: none; transition: box-shadow var(--hk-motion-fast), transform var(--hk-motion-fast); }
.wt-shot:hover { transform: translateY(-1px); box-shadow: var(--hk-shadow-float-hover); }
.wt-shot-img { position: relative; height: 96px; background: var(--hk-ink-a4); box-shadow: inset 0 -3px 0 var(--c, transparent); }
.wt-shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wt-shot-img .wt-chip { position: absolute; top: 6px; right: 6px; margin: 0; }
.wt-shot-cap { display: grid; gap: 2px; padding: 8px 10px; font-size: 12px; }
.wt-shot-cap b { font-weight: 600; white-space: nowrap; }
.wt-shot-cap span { overflow: hidden; color: var(--hk-color-text-2); text-overflow: ellipsis; white-space: nowrap; }
.wt-shot[hidden] { display: none; }
.wt-note { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; }

@media (max-width: 1279px) {
  .wt-stats.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-split { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) { .wt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wt-bar-end { margin-left: 0; } }
@media (max-width: 640px) {
  .wt-stats, .wt-stats.is-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-datenav strong { min-width: 0; flex: 1; }
  .wt-datenav { width: 100%; }
  .wt-bar-end, .wt-search, .wt-search input[type="search"], .wt-bar select { width: 100%; }
  .wt-bar-end { flex-wrap: wrap; }
  .wt-hero { flex-wrap: wrap; }
  .wt-shots { grid-template-columns: repeat(2, 1fr); }
}
.wt-table th, .wt-table td { padding-left: 10px; padding-right: 10px; }
.wt-table th:first-child, .wt-table td:first-child { padding-left: 14px; }
.wt-prog { min-width: 150px; }
.wt-thumb { width: 80px; height: 46px; }
.wt-now { max-width: 180px; }
@media (max-width: 1360px) { .wt-table td .wt-sub { white-space: normal; max-width: 150px; } }
.wt-shot-img, .wt-shot-cap { display: block; }
.wt-shot-cap b, .wt-shot-cap span { display: block; }
.wt-shot-img { height: 84px; overflow: hidden; }
.wt-shots { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.wt-hour + .wt-hour { margin-top: 14px; }
.wt-hour h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.wt-hour h3 span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hk-ink-a4); font-size: 11px; letter-spacing: 0; }
.wt-hour:has(.wt-shots > .wt-shot:not([hidden])) { display: block; }
.wt-split { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
@media (max-width: 1100px) { .wt-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .wt-hours span:nth-child(even) { visibility: hidden; } .wt-legend { justify-content: flex-start; } .wt-head { flex-wrap: wrap; } }

/* ===== Project shell (header and tabs on every project page) ===== */
.pj-shell { display: grid; gap: 14px; margin-bottom: 18px; min-width: 0; }
.pj-crumb { display: flex; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 500; }
.pj-crumb a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.pj-crumb a:hover { color: var(--hk-color-text); }
.pj-crumb a .icon { transform: rotate(90deg); }
.pj-crumb b { color: var(--hk-color-text); font-weight: 600; }
.pj-hero { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 24px; background: rgba(255,255,255,0.94); box-shadow: var(--hk-shadow-float); min-width: 0; }
.pj-logo .logo-tile { border-radius: 18px !important; font-weight: 700; }
.pj-logo.hue-development .logo-tile:not(img) { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.pj-logo.hue-marketing .logo-tile:not(img) { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.pj-logo.hue-seo .logo-tile:not(img) { background: var(--hk-hue-seo-100); color: var(--hk-hue-seo-700); }
.pj-logo.hue-design .logo-tile:not(img) { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.pj-logo.hue-operations .logo-tile:not(img) { background: var(--hk-hue-operations-100); color: var(--hk-hue-operations-700); }
.pj-hero-copy { flex: 1; min-width: 0; }
.pj-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pj-hero-line h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.pj-hero-copy p { margin: 6px 0 0; color: var(--hk-color-text-2); font-size: 13.5px; }
.pj-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pj-chip.t-ok { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
.pj-chip.t-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.pj-chip.t-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.pj-chip.t-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.pj-chip.t-mut, .pj-chip.hue-neutral { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.pj-chip.hue-development { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.pj-chip.hue-marketing { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.pj-chip.hue-seo { background: var(--hk-hue-seo-100); color: var(--hk-hue-seo-700); }
.pj-chip.hue-design { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.pj-chip.hue-operations { background: var(--hk-hue-operations-100); color: var(--hk-hue-operations-700); }
.pj-ring { --p: 0; flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--hk-ink-a6) 0); }
.pj-ring > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; text-align: center; line-height: 1.05; }
.pj-ring b { font-size: 16px; font-weight: 600; }
.pj-ring small { color: var(--hk-color-text-2); font-size: 9.5px; font-weight: 500; }
.pj-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.pj-tabs { display: flex; gap: 2px; padding: 4px; overflow-x: auto; border-radius: 999px; background: var(--hk-ink-a4); width: max-content; max-width: 100%; scrollbar-width: none; }
.pj-tabs::-webkit-scrollbar { display: none; }
.pj-tabs a { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--hk-motion-fast), color var(--hk-motion-fast); }
.pj-tabs a:hover { color: var(--hk-color-text); background: rgba(255,255,255,.6); }
.pj-tabs a.is-on { background: #fff; color: var(--hk-color-text); box-shadow: var(--hk-shadow-hairline), 0 1px 2px rgba(15,23,42,.08); }
.pj-tabs b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hk-ink-a6); color: var(--hk-color-text-2); font-size: 11px; }
.pj-tabs b.red { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.pj-tabs b.amb { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }

/* The old per-page project headers are replaced by the shell. */
.content:has(.pj-shell) .project-line > .logo-tile,
.content:has(.pj-shell) .project-line > a:not([class]),
.content:has(.pj-shell) .project-line + .list-tools.tabs-row,
.content:has(.pj-shell) .project-line + .list-tools.filters:not(:has(.toggle, form, select, input, button)),
.content:has(.pj-shell) .project-overview-hero,
.content:has(.pj-shell) .project-overview-tabs,
.content:has(.pj-shell) .tk-context,
.content:has(.pj-shell) .social-simple-heading,
.content:has(.pj-shell) .agency-simple-heading,
.content:has(.pj-shell) .seo-simple-heading { display: none !important; }
.content:has(.pj-shell) .social-simple-hero, .content:has(.pj-shell) .agency-simple-hero, .content:has(.pj-shell) .seo-simple-hero { justify-content: flex-end; padding: 12px 16px; }

/* Overview summary */
.pj-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pj-tile { display: block; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.94); box-shadow: var(--hk-shadow-float); color: var(--hk-color-text); text-decoration: none; transition: transform var(--hk-motion-base) var(--hk-ease-out), box-shadow var(--hk-motion-base) var(--hk-ease-out); min-width: 0; }
.pj-tile:hover { transform: translateY(-1px); box-shadow: var(--hk-shadow-float-hover); }
.pj-tile > span:first-child { display: block; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.pj-tile strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.pj-tile strong.is-text { overflow: hidden; margin-top: 8px; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.pj-tile strong.is-warn { color: var(--hk-state-warning-text); }
.pj-tile em { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.pj-tile em.is-bad { color: var(--hk-state-danger-text); font-weight: 600; }
.pj-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.pj-col { display: grid; gap: 16px; min-width: 0; }
.pj-task { display: flex; align-items: center; gap: 12px; padding: 11px 8px; margin: 0 -8px; border-top: 1px solid var(--hk-color-divider); border-radius: 0; color: var(--hk-color-text); text-decoration: none; transition: background var(--hk-motion-fast); }
.pj-task:hover:not(.is-static) { background: var(--hk-ink-a3); border-radius: 12px; }
.pj-task-state { flex: none; width: 18px; height: 18px; border: 2px solid; border-radius: 50%; }
.pj-task-copy { display: grid; flex: 1; min-width: 0; }
.pj-task-copy b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pj-task-copy small { color: var(--hk-color-text-2); font-size: 12px; }
.pj-task .tk-people .pic + .pic { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.pj-task .wt-chip { margin: 0; flex: none; }
.pj-hours { font-size: 13px; font-weight: 600; }
.pj-ms { padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.pj-ms-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pj-ms-top b { font-size: 14px; font-weight: 600; }
.pj-ms-top .wt-chip { margin: 0; }
.pj-ms-bar { display: flex; align-items: center; gap: 12px; }
.pj-ms-bar .wt-track { flex: 1; }
.pj-ms-bar small { width: 110px; color: var(--hk-color-text-2); font-size: 12px; text-align: right; }
.pj-section-title { margin: 4px 0 12px; font-size: 18px; font-weight: 600; }
@media (max-width: 1100px) { .pj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-two { grid-template-columns: 1fr; } .pj-ring { display: none; } }
@media (max-width: 640px) {
  .pj-hero { flex-wrap: wrap; padding: 16px; }
  .pj-hero-line h1 { font-size: 22px; }
  .pj-hero-actions { width: 100%; justify-content: flex-start; }
  .pj-logo .logo-tile { width: 48px !important; height: 48px !important; }
  .pj-tabs { border-radius: 18px; }
}

.content:has(.pj-shell) .project-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 0; }
.content:has(.pj-shell) .project-line > * { font-size: 13px; }
.content:has(.pj-shell) .project-line:not(:has(> :not(.logo-tile):not(a:not([class])))) { display: none; }
.pj-hero { flex-wrap: wrap; }
.pj-hero-copy { min-width: min(100%, 340px); }

/* ===== Projects list ===== */
.pl-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pl-tiles .pj-tile strong.is-bad, .pj-tile strong.is-bad { color: var(--hk-state-danger-text); }
.pl-bar { margin-bottom: 12px; }
.pl-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.pl-types .wt-sub { margin-right: 4px; font-size: 12.5px; }
.pl-type { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.pl-type b { font-weight: 600; opacity: .75; }
.pl-type.hue-development { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.pl-type.hue-marketing { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.pl-type.hue-seo { background: var(--hk-hue-seo-100); color: var(--hk-hue-seo-700); }
.pl-type.hue-design { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.pl-type.hue-operations { background: var(--hk-hue-operations-100); color: var(--hk-hue-operations-700); }
.pl-type.is-on { background: var(--hk-color-ink-900, #111827); color: #fff; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pl-card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 24px; background: rgba(255,255,255,0.94); box-shadow: var(--hk-shadow-float); min-width: 0; transition: box-shadow var(--hk-motion-base) var(--hk-ease-out), transform var(--hk-motion-base) var(--hk-ease-out); }
.pl-card:hover { transform: translateY(-2px); box-shadow: var(--hk-shadow-float-hover); }
.pl-card[hidden] { display: none; }
.pl-card-top { display: flex; align-items: flex-start; gap: 12px; }
.pl-card-top .pj-logo .logo-tile { border-radius: 14px !important; }
.pl-card-name { display: grid; flex: 1; min-width: 0; }
.pl-card-name a { overflow: hidden; color: var(--hk-color-text); font-size: 15.5px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-name a::after { content: ""; position: absolute; inset: 0; }
.pl-card { position: relative; }
.pl-card-name span { overflow: hidden; color: var(--hk-color-text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pl-menu { position: relative; z-index: 2; margin: -4px -6px 0 -4px; }
.pl-menu-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--hk-color-text-2); cursor: pointer; list-style: none; }
.pl-menu-btn::-webkit-details-marker { display: none; }
.pl-menu-btn:hover, .pl-menu[open] .pl-menu-btn { background: var(--hk-ink-a4); color: var(--hk-color-text); }
.pl-menu-panel { position: absolute; right: 0; top: 34px; z-index: 5; display: grid; min-width: 170px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--hk-shadow-overlay); }
.pl-menu-panel a { padding: 9px 12px; border-radius: 9px; color: var(--hk-color-text); font-size: 13.5px; text-decoration: none; }
.pl-menu-panel a:hover { background: var(--hk-ink-a4); }
.pl-menu-panel a.pl-danger { color: var(--hk-state-danger-text); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips .pj-chip { gap: 5px; }
.pl-progress { display: grid; gap: 6px; }
.pl-progress-top { display: flex; justify-content: space-between; color: var(--hk-color-text-2); font-size: 12.5px; }
.pl-progress-top b { color: var(--hk-color-text); font-weight: 600; }
.pl-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-kv > div { min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--hk-ink-a3); }
.pl-kv span { display: block; color: var(--hk-color-text-2); font-size: 11.5px; }
.pl-kv b { display: flex; align-items: center; gap: 6px; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pl-budget { margin-top: -6px; }
.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-faces { display: flex; align-items: center; }
.pl-faces .pic + .pic { margin-left: -7px; box-shadow: 0 0 0 2px #fff; }
.pl-card .pj-chip .icon { width: 12px; height: 12px; }
@media (max-width: 1279px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pl-grid { grid-template-columns: 1fr; } .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-ell { overflow: hidden; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 640px) { .pj-hero-copy { min-width: 0; flex: 1 1 calc(100% - 70px); } .pj-hero-copy p { font-size: 12.5px; } .pl-bar .tk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.pj-shell { grid-template-columns: minmax(0, 1fr); } .pj-tabs { justify-self: start; }

/* ---------- Project form (np-*): numbered steps, side summary ---------- */
.np-form .plain-fieldset { min-width: 0; }
.np-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.np-main { display: grid; gap: 16px; min-width: 0; counter-reset: npstep; }
.np-set { display: grid; gap: 16px; }
.np-set[hidden], .np-card[hidden] { display: none; }
.np-card { min-width: 0; padding: 22px 24px 24px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); counter-increment: npstep; }
.np-step { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; }
.np-step h2 { margin: 3px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.np-step p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.np-num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hk-color-ink-900); color: #fff; font-size: 13px; font-weight: 600; }
.np-num::before { content: counter(npstep); }
.np-num .icon { display: none; }
.np-card.is-done .np-num { background: #16A34A; }
.np-card.is-done .np-num::before { content: none; }
.np-card.is-done .np-num .icon { display: block; }
.np-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.np-f { grid-column: span 2; min-width: 0; display: grid; gap: 7px; align-content: start; }
.np-f.w3 { grid-column: span 3; } .np-f.w6 { grid-column: 1 / -1; }
.np-f[hidden] { display: none; }
.np-f > label, .np-lab { color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.np-opt { margin-left: 4px; color: var(--hk-color-text-3); font-weight: 500; }
.np-form .np-f input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .np-form .np-f select { width: 100%; height: 46px; border-radius: 14px; }
.np-form .np-f textarea { width: 100%; border-radius: 14px; }
.np-form input.np-big { font-size: 16px; font-weight: 600; }
.np-hint { margin: 8px 0 0; color: var(--hk-color-text-3); font-size: 12px; }
.np-f .np-hint { margin: 0; }
.np-static { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 14px; }
.np-icon-select { position: relative; }
.np-icon-select .np-ti { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 9px; pointer-events: none; }
.np-form .np-icon-select select { padding-left: 48px; font-weight: 600; }
.np-ti { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.np-ti.hue-development, .np-chip.hue-development { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.np-ti.hue-marketing, .np-chip.hue-marketing { background: var(--hk-hue-marketing-100); color: var(--hk-hue-marketing-700); }
.np-ti.hue-seo, .np-chip.hue-seo { background: var(--hk-hue-seo-100); color: var(--hk-hue-seo-700); }
.np-ti.hue-design, .np-chip.hue-design { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.np-ti.hue-operations, .np-chip.hue-operations { background: var(--hk-hue-operations-100); color: var(--hk-hue-operations-700); }
.np-ti.hue-sales, .np-chip.hue-sales { background: var(--hk-hue-sales-100); color: var(--hk-hue-sales-700); }
.np-form[data-np-type="seo"] [data-np-subtype] { display: none; }
.np-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hk-color-divider); }
.np-sub[hidden] { display: none; }
.np-pair { display: flex; gap: 8px; }
.np-pair > * { min-width: 0; }
.np-pair > input { flex: 0 0 42%; }
.np-pair > select { flex: 1; }
.np-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--hk-state-info-tint); color: var(--hk-state-info-text); font-size: 12.5px; line-height: 1.45; }
.np-note .icon { flex: none; margin-top: 1px; }
.np-actions { display: none; gap: 10px; }
/* Generic per-type fields keep their markup; give them the step grid look. */
.np-card .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.np-card .fields .field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.np-card .fields .field input:not([type="checkbox"]):not([type="radio"]), .np-card .fields .field select { width: 100%; height: 46px; border-radius: 14px; }
.np-card .project-type-divider { height: 1px; margin: 16px 0; background: var(--hk-color-divider); }
.np-card .project-type-heading h3 { margin: 0 0 4px; font-size: 14px; }
.np-card .project-type-heading p { margin: 0 0 10px; color: var(--hk-color-text-2); font-size: 12.5px; }
/* Social: platforms */
.np-platforms { display: grid; gap: 8px; margin-top: 16px; }
.np-prow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px 36px; gap: 10px; align-items: center; }
.np-prow.has-followers { grid-template-columns: 190px minmax(0, 1fr) 180px 110px 36px; }
.np-prow[hidden] { display: none; }
.np-prow-head span { color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.np-pname { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.np-pname b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.np-glyph { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 11.5px; font-weight: 700; }
.np-pcell input, .np-pcell select { width: 100%; height: 42px !important; border-radius: 12px !important; }
.np-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); cursor: pointer; }
.np-x:hover { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
.np-empty { margin: 0; padding: 18px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; text-align: center; }
.np-empty[hidden] { display: none; }
/* Social: weekly posting plan */
.np-sched-top { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.np-sched-top .field { display: grid; gap: 7px; width: 280px; max-width: 100%; }
.np-sched-top select { width: 100%; height: 46px; border-radius: 14px; }
.np-total { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-left: auto; padding: 0 14px; border-radius: 999px; background: var(--hk-color-ink-900); color: #fff; font-size: 13px; }
.np-total b { font-weight: 700; }
.np-week { display: grid; gap: 0; border-radius: 16px; background: var(--hk-ink-a3); }
.np-day { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--hk-color-divider); }
.np-day:first-child { border-top: 0; }
.np-day > b { padding-top: 11px; font-size: 13px; font-weight: 600; }
.np-slots { display: grid; gap: 8px; }
.np-slot { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.np-slot[hidden] { display: none; }
.np-slot select, .np-slot input[type="time"] { width: 100%; height: 40px; border-radius: 12px; background-color: #fff; }
.np-slot.is-off input[type="time"], .np-slot.is-off .np-pills { opacity: .35; pointer-events: none; }
.np-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.np-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 12px; font-weight: 600; cursor: pointer; }
.np-pill[hidden] { display: none; }
.np-pill input { position: absolute; opacity: 0; pointer-events: none; }
.np-pill:has(input:checked) { background: var(--hk-color-ink-900); color: #fff; box-shadow: none; }
.np-pill:has(input:focus-visible) { outline: 2px solid #2563EB; outline-offset: 2px; }
.np-week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.np-week-strip > div { display: grid; gap: 4px; align-content: start; min-height: 74px; padding: 10px; border-radius: 14px; background: var(--hk-ink-a3); }
.np-week-strip b { color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.np-week-strip span { font-size: 12.5px; font-weight: 600; }
.np-week-strip em { color: var(--hk-color-text-3); font-size: 12px; font-style: normal; }
.np-sched-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.np-sched-foot .np-total { margin-left: 0; }
/* Switches and checks */
.np-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.np-switch b { font-weight: 600; }
.np-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.np-switch > span { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--hk-ink-a12, #CBD5E1); transition: background .15s; }
.np-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.25); transition: left .15s; }
.np-switch input:checked + span { background: #16A34A; }
.np-switch input:checked + span::after { left: 19px; }
.np-switch input:focus-visible + span { outline: 2px solid #2563EB; outline-offset: 2px; }
.np-sched-top .np-switch { height: 46px; }
.np-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.np-check { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--hk-ink-a3); font-size: 13px; font-weight: 600; cursor: pointer; }
.np-check:has(input:checked) { background: var(--hk-state-success-tint); color: var(--hk-state-success-text); }
/* Team */
.np-person { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: 14px; background: var(--hk-ink-a3); font-size: 14px; }
.np-members-head { margin-bottom: 10px; }
.np-members { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.np-members .project-member-chip { gap: 8px; height: 38px; padding: 0 6px 0 5px; border: 0; background: #fff; box-shadow: var(--hk-shadow-hairline); }
.np-members .project-member-chip > span:not(.pic):not(.avatar) { font-size: 13px; }
.np-members .project-member-empty { color: var(--hk-color-text-3); font-size: 13px; }
.np-add { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1.5px dashed var(--hk-ink-a12, #94A3B8); border-radius: 999px; background: transparent; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.np-add:hover { border-color: var(--hk-color-ink-900); color: var(--hk-color-text); }
/* More settings rows */
.np-rows { display: grid; }
.np-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.np-row:first-child { border-top: 0; padding-top: 0; }
.np-row-copy { flex: 1; min-width: 0; }
.np-row-copy b { display: block; font-size: 14px; font-weight: 600; }
.np-row-copy small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12.5px; }
.np-row-end { flex: none; }
.np-row-end select, .np-row-end input:not([type="checkbox"]):not([type="file"]) { height: 40px; border-radius: 12px; }
.np-row-end > select { width: 240px; }
.np-row-end.np-pair { width: 260px; }
.np-logo .photo-field { margin: 0; gap: 10px; }
.np-logo .photo-field .hint { display: none; }
/* Side summary */
.np-side { position: sticky; top: 20px; display: grid; gap: 14px; }
.np-prev { padding: 18px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.np-label { color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.np-pcard { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--hk-ink-a3); }
.np-pcard-top { display: flex; align-items: center; gap: 12px; }
.np-pcard-name { flex: 1; min-width: 0; }
.np-pcard-name b { display: block; overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.np-pcard-name small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.np-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.np-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--hk-ink-a6); color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.np-chip[hidden] { display: none; }
.np-chip.t-info { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.np-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--hk-color-text-2); font-size: 12px; }
.np-faces { display: flex; align-items: center; min-height: 26px; }
.np-faces .pic, .np-faces .avatar { width: 26px !important; height: 26px !important; font-size: 10px !important; }
.np-faces > * + * { margin-left: -7px; box-shadow: 0 0 0 2px var(--hk-ink-a3, #f1f5f9); }
.np-checklist { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.np-checklist li { display: flex; align-items: center; gap: 10px; color: var(--hk-color-text-2); font-size: 13.5px; font-weight: 500; }
.np-checklist li span { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hk-ink-a12, #94A3B8); }
.np-checklist li.is-done { color: var(--hk-color-text); }
.np-checklist li.is-done span { background: #16A34A; box-shadow: none; }
.np-checklist li.is-done span::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.np-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-radius: 999px; background: var(--hk-color-ink-900); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.np-go:hover { background: #000; }
.np-go-note { margin: 10px 0 0; color: var(--hk-color-text-2); font-size: 12px; text-align: center; }
.np-bar { display: none; }
@media (max-width: 1100px) {
  .np-wrap { grid-template-columns: minmax(0, 1fr); }
  .np-side { display: none; }
  .np-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -1px 0 var(--hk-color-divider); backdrop-filter: blur(10px); }
  .np-bar > div { flex: 1; min-width: 0; }
  .np-bar b { display: block; font-size: 14px; font-weight: 600; }
  .np-bar small { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 900px) {
  .np-prow, .np-prow.has-followers { grid-template-columns: minmax(0, 1fr) 36px; padding: 12px; border-radius: 16px; background: var(--hk-ink-a3); }
  .np-prow-head { display: none !important; }
  .np-prow .np-pcell { grid-column: 1 / -1; }
  .np-prow .np-x { grid-column: 2; grid-row: 1; }
  .np-slot { grid-template-columns: minmax(0, 1fr) 110px; }
  .np-slot .np-pills { grid-column: 1 / -1; }
  .np-week-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .np-card { padding: 18px 16px 20px; border-radius: 20px; }
  .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-f, .np-f.w3 { grid-column: 1 / -1; }
  .np-card .fields { grid-template-columns: 1fr; }
  .np-day { grid-template-columns: 1fr; gap: 6px; }
  .np-day > b { padding-top: 0; }
  .np-total { margin-left: 0; }
  .np-row { flex-wrap: wrap; }
  .np-row-end, .np-row-end > select, .np-row-end.np-pair { width: 100%; }
  .np-row .np-switch.np-row-end { width: auto; }
  .np-sched-foot { flex-wrap: wrap; }
}
.np-form[data-np-type=""] [data-project-timing-field], .np-form[data-np-type=""] [data-project-timing-note] { display: none; }
.np-warn { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12.5px; font-weight: 500; }
.np-warn[hidden] { display: none; }
.np-form .seo-tag-field { display: grid; gap: 7px; }
.np-form .seo-tag-field > label { color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.np-form .seo-tag-field > label .sub { color: var(--hk-color-text-3); font-weight: 500; }
.np-form .seo-tag-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border: 0; border-radius: 14px; background: var(--hk-ink-a4); }
.np-form .seo-tag-box:focus-within { background: #fff; box-shadow: inset 0 0 0 2px #2563EB; }
.np-form .seo-tag-list { display: contents; }
.np-form .seo-tag-box > input { flex: 1 1 140px; width: auto; height: 32px !important; margin: 0; padding: 0 6px; background: transparent !important; box-shadow: none !important; }
.np-form .seo-tag-chip { gap: 4px; height: 30px; padding: 0 4px 0 11px; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 12.5px; font-weight: 600; }
.np-check input { margin: 0; }
.sp-pack { margin-bottom: 16px; }
.sp-pack .np-glyph { width: 32px; height: 32px; }
.sp-pack .pj-task-copy small a { color: var(--hk-color-text-2); }
.sp-kv { display: grid; gap: 0; margin: 0; }
.sp-kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); }
.sp-kv dt { color: var(--hk-color-text-2); font-size: 13px; }
.sp-kv dd { margin: 0; font-size: 13.5px; font-weight: 600; text-align: right; }
.sp-brand { margin-bottom: 16px; }
.sp-brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sp-brand-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); }
.sp-brand-grid span { display: block; margin-bottom: 4px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sp-brand-grid p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sp-brand-grid .sp-avoid { grid-column: 1 / -1; background: var(--hk-state-warning-tint); }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tags em { padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: var(--hk-shadow-hairline); font-size: 12.5px; font-style: normal; font-weight: 600; }
@media (max-width: 900px) { .sp-brand-grid { grid-template-columns: 1fr; } }
.np-check input[type="checkbox"] { position: static; flex: none; width: 18px; height: 18px; margin: 0 !important; vertical-align: middle; top: auto; }
.np-form .field label.np-check { display: inline-flex; align-items: center; gap: 8px; }
.np-form .field label.np-pill { display: inline-flex; align-items: center; }
.sp-brand .wf-viewall { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* SEO: tools and setup */
.np-form[data-np-type="seo"] [data-np-status] { display: none; }
.np-tools-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.np-tools-top .np-total { margin-left: 0; }
.np-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--hk-color-text-2); font-size: 13px; font-weight: 600; }
.np-inline select { width: 190px; height: 40px; border-radius: 12px; }
.np-tools { display: grid; border-radius: 16px; background: var(--hk-ink-a3); padding: 4px 14px 10px; }
.np-tools-group { padding: 12px 0 6px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.np-tool { display: grid; grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 6px 0; }
.np-tool b { font-size: 13.5px; font-weight: 600; }
.np-tool select, .np-tool input { width: 100%; height: 40px; border-radius: 12px; background-color: #fff; }
.np-tool select.is-done { background-color: var(--hk-state-success-tint); color: var(--hk-state-success-text); font-weight: 600; }
.np-tool select.is-waiting { background-color: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-weight: 600; }
.np-tool select.is-na { color: var(--hk-color-text-3); }
.np-tools-tasks { margin-top: 14px; }
@media (max-width: 760px) { .np-tool { grid-template-columns: minmax(0, 1fr) 160px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); } .np-tool input { grid-column: 1 / -1; } .np-inline { width: 100%; } .np-inline select { flex: 1; } }
.ss-bar { display: block; margin: 0 0 8px; }
.ss-list { display: grid; }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); }
.ss-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.ss-name a { color: var(--hk-color-text); text-decoration: underline; text-decoration-color: var(--hk-color-divider); text-underline-offset: 3px; }
.ss-name small { display: block; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.ss-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--hk-ink-a12, #94A3B8); }
.ss-dot.t-ok { background: var(--hk-state-success); } .ss-dot.t-warn { background: var(--hk-state-warning); } .ss-dot.t-info { background: var(--hk-hue-development); }
.sp-kv dd a { color: var(--hk-color-text); }
/* Agency type details */
.np-card .project-type-group + .project-type-group, .np-card .project-type-group + .np-sub { margin-top: 14px; }
.np-card .project-type-group[hidden] { display: none; }
.np-group-title { padding-top: 6px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.np-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.np-fieldset legend { margin-bottom: 7px; padding: 0; color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.np-switch-field { align-content: center; min-height: 46px; }
.np-form .field label.np-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.np-form .field label.np-switch b { font-weight: 600; }
.np-tool[hidden] { display: none; }
.sc-long { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); }
.sc-long span { display: block; margin-bottom: 4px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sc-long p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sp-kv dd { max-width: 60%; overflow-wrap: anywhere; }
.np-tools-group[hidden] { display: none; }

/* ---------- Daily update forms (uf-*): date bar, work items, summary, project panel ---------- */
.uf-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.uf-date-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.uf-date-form label { font-size: 13px; font-weight: 600; }
.uf-date-form input { width: 170px; height: 40px; border-radius: 12px; }
.uf-state { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.uf-state.is-edit { background: var(--hk-state-info-tint); color: var(--hk-state-info-text); }
.uf-state.is-warn { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.uf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.uf-main { display: grid; gap: 16px; min-width: 0; }
.uf-card { min-width: 0; padding: 20px 22px 22px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.uf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.uf-card-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.uf-card-head p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.uf-card-head .button { flex: none; }
.uf-hint { margin: 10px 0 0; color: var(--hk-color-text-3); font-size: 12px; }
.uf-items { display: grid; gap: 12px; }
.uf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.uf-f { display: grid; gap: 7px; min-width: 0; }
.uf-f.w2 { grid-column: 1 / -1; }
.uf-form textarea { width: 100%; border-radius: 14px; }
.uf-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--hk-shadow-float); backdrop-filter: blur(10px); }
.uf-actions .uf-hint { flex: 1; margin: 0; }
.uf-warn { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 13px; }
.uf-warn a { color: inherit; font-weight: 600; }
/* Each work item / creative / activity as an inner panel */
.uf-form .agency-entry-editor, .uf-form .social-creative-editor, .uf-form .seo-activity-editor { margin: 0; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--hk-ink-a3); box-shadow: none; }
.uf-form .agency-entry-head, .uf-form .social-creative-editor-head, .uf-form .seo-activity-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0; border: 0; }
.uf-form .agency-entry-head h3, .uf-form .social-creative-editor-head h3, .uf-form .seo-activity-editor-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.uf-form .agency-entry-editor .fields, .uf-form .social-creative-editor .fields, .uf-form .seo-activity-editor .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uf-form .agency-entry-editor .field, .uf-form .social-creative-editor .field, .uf-form .seo-activity-editor .field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.uf-form .agency-entry-editor input:not([type="checkbox"]):not([type="file"]), .uf-form .agency-entry-editor select,
.uf-form .social-creative-editor input:not([type="checkbox"]):not([type="file"]), .uf-form .social-creative-editor select,
.uf-form .seo-activity-editor input:not([type="checkbox"]):not([type="file"]), .uf-form .seo-activity-editor select { width: 100%; height: 42px; border-radius: 12px; background-color: #fff; }
.uf-form .agency-entry-editor textarea, .uf-form .social-creative-editor textarea, .uf-form .seo-activity-editor textarea { width: 100%; min-height: 64px; border-radius: 12px; background-color: #fff; }
.uf-form .project-type-divider { height: 1px; margin: 14px 0; background: var(--hk-color-divider); }
.uf-form .agency-metrics { margin: 12px 0; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; }
.uf-form .agency-metrics summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.uf-form .agency-metrics .fields { margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uf-form input[type="file"] { padding: 10px; border: 1.5px dashed var(--hk-ink-a12, #94A3B8); border-radius: 12px; background: #fff; font-size: 13px; }
.uf-form .field label .sub, .uf-form label .sub { color: var(--hk-color-text-3); font-weight: 500; }
.uf-form .is-readonly { opacity: .92; }
/* Project panel */
.uf-side { position: sticky; top: 16px; display: grid; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.uf-panel { padding: 16px 16px 14px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.uf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.uf-panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.uf-panel-head a { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.uf-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 11.5px; font-weight: 700; }
.uf-help { margin: -4px 0 8px; color: var(--hk-color-text-2); font-size: 12px; }
.uf-pending { display: grid; }
.uf-tick { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; cursor: pointer; }
.uf-tick input { flex: none; }
.uf-tick span { flex: 1; min-width: 0; font-weight: 500; }
.uf-tick em { font-style: normal; font-size: 11px; }
.uf-tick:has(input:checked) span { color: var(--hk-state-success-text); text-decoration: line-through; }
.uf-facts { display: grid; margin: 0; }
.uf-facts > div { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); }
.uf-facts dt { color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; }
.uf-facts dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.uf-avoid { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--hk-state-warning-tint); }
.uf-avoid span { display: block; color: var(--hk-state-warning-text); font-size: 11.5px; font-weight: 700; }
.uf-avoid p { margin: 2px 0 0; font-size: 12.5px; }
.uf-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--hk-color-text); font-size: 12.5px; font-weight: 600; }
.uf-meter { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--hk-color-divider); }
.uf-meter > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.uf-meter > div span { color: var(--hk-color-text-2); }
.uf-meter b { font-weight: 600; white-space: nowrap; }
.uf-track { display: block; height: 6px; border-radius: 3px; background: var(--hk-ink-a6); overflow: hidden; }
.uf-track > span { display: block; height: 100%; border-radius: 3px; background: var(--hk-hue-development); }
.uf-meter.is-met .uf-track > span { background: var(--hk-state-success); }
.uf-meter.is-over .uf-track > span, .uf-meter.is-behind .uf-track > span { background: var(--hk-state-danger); }
.uf-meter.is-over b { color: var(--hk-state-danger-text); }
.uf-slot { display: grid; gap: 2px; padding: 9px 12px; margin-top: 6px; border-radius: 12px; background: var(--hk-hue-marketing-100); }
.uf-slot b { color: var(--hk-hue-marketing-700); font-size: 13px; }
.uf-slot small { color: var(--hk-color-text-2); font-size: 12px; }
.uf-empty { margin: 0; color: var(--hk-color-text-3); font-size: 12.5px; }
.uf-brief summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.uf-brief p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 1100px) {
  .uf-wrap { grid-template-columns: minmax(0, 1fr); }
  .uf-side { position: static; max-height: none; order: -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 700px) {
  .uf-card { padding: 16px 14px 18px; border-radius: 20px; }
  .uf-card-head { flex-wrap: wrap; }
  .uf-grid, .uf-form .agency-entry-editor .fields, .uf-form .social-creative-editor .fields, .uf-form .seo-activity-editor .fields, .uf-form .agency-metrics .fields { grid-template-columns: 1fr; }
  .uf-actions { flex-wrap: wrap; bottom: 0; border-radius: 16px 16px 0 0; }
  .uf-actions .uf-hint { flex-basis: 100%; }
  .uf-date-form input { width: 150px; }
}
@media (max-width: 700px) { .uf-side { order: 1; grid-template-columns: 1fr; } }
/* Agency update history: review form and entry layout in line with SEO */
.agency-feed-entry { position: relative; }
.agency-review-form { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--hk-ink-a3); }
.agency-review-form label { display: grid; gap: 5px; margin: 0; font-size: 12px; font-weight: 600; color: var(--hk-color-text-2); }
.agency-review-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; height: 40px; color: var(--hk-color-text); font-size: 13px; }
.agency-review-form select, .agency-review-form input[name="review_note"] { width: 100%; height: 40px; border-radius: 12px; background-color: #fff; }
.agency-review-form .button { height: 40px; }
.agency-feed-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 10px 0; }
.agency-feed-detail-grid > div { padding: 10px 12px; border-radius: 12px; background: var(--hk-ink-a3); border: 0; }
.agency-feed-detail-grid span { display: block; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; }
.agency-feed-detail-grid strong { font-size: 13.5px; font-weight: 600; }
.agency-day-summary { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hk-ink-a3); }
.agency-day-summary strong { display: block; color: var(--hk-color-text-3); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.agency-day-summary p { margin: 4px 0 0; }
@media (max-width: 760px) { .agency-review-form { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .uf-actions { flex-wrap: nowrap; padding: 10px 12px; } .uf-actions .uf-hint { display: none; } .uf-actions .button { flex: 1; justify-content: center; } }

/* ---------- Waiting on clients (wq-*) and the portal card (pq-*) ---------- */
.wq-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.wq-t { display: block; padding: 16px 18px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); color: inherit; text-decoration: none; }
.wq-t span { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.wq-t b { display: block; margin-top: 4px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.wq-t b.is-red { color: var(--hk-state-danger-text); } .wq-t b.is-green { color: var(--hk-state-success-text); }
.wq-t em { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wq-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.wq-search { display: flex; align-items: center; gap: 8px; width: 280px; max-width: 100%; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--hk-ink-a4); color: var(--hk-color-text-3); }
.wq-search input { flex: 1; min-width: 0; height: 38px !important; padding: 0 !important; border: 0; background: transparent !important; box-shadow: none !important; }
.wq-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wq-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.wq-chip.on { background: var(--hk-color-ink-900); color: #fff; }
.wq-chip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hk-ink-a6); font-size: 11px; }
.wq-chip.on b { background: rgba(255,255,255,.2); }
.wq-gap { flex: 1; }
.wq-bar select { width: auto; flex: 0 0 auto; min-width: 150px; height: 40px; border-radius: 12px; }
.wq-client { margin-bottom: 14px; overflow: hidden; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.wq-ch { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hk-color-divider); }
.wq-ch-copy { flex: 1; min-width: 0; }
.wq-ch h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.wq-ch small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.wq-count { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--hk-ink-a4); color: var(--hk-color-text-2); font-size: 11.5px; font-weight: 600; }
.wq-inline { display: inline-flex; margin: 0; }
.wq-colh, .wq-row { display: grid; grid-template-columns: 28px minmax(0, 2.2fr) minmax(0, 1.3fr) 110px 140px 130px; gap: 12px; align-items: center; }
.wq-colh { padding: 10px 20px 4px; color: var(--hk-color-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.wq-row { padding: 11px 20px; border-top: 1px solid var(--hk-color-divider); }
.wq-colh + .wq-row { border-top: 0; }
.wq-row.is-sent { background: color-mix(in srgb, var(--hk-state-success-tint) 45%, transparent); }
.wq-kind { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
.k-acc { background: var(--hk-hue-development-100); color: var(--hk-hue-development-700); }
.k-file { background: var(--hk-hue-design-100); color: var(--hk-hue-design-700); }
.k-appr { background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); }
.wq-ttl { min-width: 0; }
.wq-ttl b { display: block; font-size: 14px; font-weight: 600; }
.wq-ttl small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.wq-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; color: var(--hk-state-success-text); font-size: 12px; font-weight: 600; }
.wq-sent a { color: inherit; }
.wq-sent em { flex-basis: 100%; color: var(--hk-color-text-2); font-weight: 500; }
.wq-proj { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.wq-proj span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wq-age { font-size: 13px; font-weight: 600; }
.wq-age small { display: block; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 500; }
.wq-age.is-red { color: var(--hk-state-danger-text); } .wq-age.is-amb { color: var(--hk-state-warning-text); }
.wq-who { overflow: hidden; color: var(--hk-color-text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.wq-act { display: flex; justify-content: flex-end; }
.wq-ok { background: var(--hk-state-success-tint) !important; color: var(--hk-state-success-text) !important; }
.wq-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 20px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); text-align: center; }
.wq-empty h2 { margin: 6px 0 0; font-size: 17px; } .wq-empty p { margin: 0; color: var(--hk-color-text-2); font-size: 13.5px; }
.wq-dash { margin-bottom: 16px; padding: 18px 20px; }
.wq-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.wq-dash-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.wq-mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); color: inherit; text-decoration: none; }
.wq-mini-copy { flex: 1; min-width: 0; }
.wq-mini b { display: block; font-size: 13.5px; font-weight: 600; }
.wq-mini small { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .wq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wq-colh { display: none; } .wq-row { grid-template-columns: 28px minmax(0, 1fr) auto; } .wq-row .wq-proj { grid-column: 2; } .wq-row .wq-age { grid-column: 3; grid-row: 1; text-align: right; } .wq-row .wq-who { display: none; } .wq-row .wq-act { grid-column: 3; } }
@media (max-width: 640px) { .wq-ch { flex-wrap: wrap; } .wq-ch-copy { flex-basis: calc(100% - 60px); } .wq-search { width: 100%; } .wq-gap { display: none; } }
/* Portal: We need from you */
.pq-card { padding: 18px 20px; border-radius: 24px; box-shadow: inset 0 0 0 2px var(--hk-state-warning), var(--hk-shadow-float); }
.pq-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; }
.pq-head p { margin: 4px 0 6px; color: var(--hk-color-text-2); font-size: 13px; }
.pq-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--hk-state-warning-tint); color: var(--hk-state-warning-text); font-size: 12px; font-weight: 700; }
.pq-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--hk-color-divider); }
.pq-icon { width: 36px; height: 36px; border-radius: 11px; }
.pq-copy b { display: block; font-size: 14.5px; font-weight: 600; }
.pq-copy small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.pq-copy .pq-how { color: var(--hk-color-text-3); }
.pq-done { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--hk-state-success-text); font-size: 12.5px; font-weight: 600; }
.pq-send { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.pq-send input[type="text"] { flex: 1 1 220px; height: 38px; border-radius: 11px; }
.pq-file { position: relative; overflow: hidden; }
.pq-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pq-ok { background: var(--hk-state-success-tint) !important; color: var(--hk-state-success-text) !important; }
.pq-act form { margin: 0; }
@media (max-width: 640px) { .pq-row { grid-template-columns: 36px minmax(0, 1fr); } .pq-act { grid-column: 2; } }
.pq-card > .pq-head { padding: 0; margin: 0; border: 0; background: none; }

/* ---------- Automatic reminders (wq-*) ---------- */
.wq-on { color: var(--hk-state-success-text); } .wq-off { color: var(--hk-color-text-2); }
.wq-auto { display: inline-flex; align-items: center; height: 24px; margin: 0; padding: 0 10px; border: 0; border-radius: 12px; background: var(--hk-state-success-tint); color: var(--hk-state-success-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
span.wq-auto { cursor: default; }
.wq-auto.is-off { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.wq-auto.is-bad { background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); }
button.wq-auto:hover { box-shadow: inset 0 0 0 1px currentColor; }
.wq-ch h2 { flex-wrap: wrap; }
.wq-call { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--hk-state-danger-tint); color: var(--hk-state-danger-text); font-size: 13px; font-weight: 600; }
.wq-call span { flex: 1; } .wq-call a { color: inherit; }
.wq-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 600; }
.wq-note.is-amb { color: var(--hk-state-warning-text); } .wq-note.is-red { color: var(--hk-state-danger-text); }
.wq-note em { font-weight: 500; }
.wq-dialog { width: min(620px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.wq-dhead { display: flex; gap: 14px; align-items: flex-start; }
.wq-switch { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; background: var(--hk-ink-a3); cursor: pointer; }
.wq-switch:has(input:checked) { background: var(--hk-state-success-tint); }
.wq-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wq-switch b { display: block; font-size: 14.5px; } .wq-switch small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.wq-tg { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--hk-ink-a10, #CBD5E1); transition: background .15s; }
.wq-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.wq-switch input:checked + .wq-tg { background: #16A34A; }
.wq-switch input:checked + .wq-tg::after { transform: translateX(18px); }
.wq-switch input:focus-visible + .wq-tg { outline: 3px solid var(--hk-focus-ring, #93C5FD); outline-offset: 2px; }
.wq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.wq-fields .field.wide { grid-column: 1 / -1; }
.wq-fields .field[hidden] { display: none; }
.wq-preview { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 13px; }
.wq-preview b { color: var(--hk-color-text); }
.wq-dfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--hk-color-divider); }
.wq-dfoot .form-actions { margin: 0; }
@media (max-width: 640px) { .wq-fields { grid-template-columns: 1fr; } .wq-dfoot { flex-direction: column; align-items: stretch; } }

/* ---------- Client project setup form (os-*) ---------- */
.os-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 22px 24px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.os-hero-copy { min-width: 0; }
.os-crumb { margin: 0 0 4px; color: var(--hk-color-text-2); font-size: 13px; } .os-crumb a { color: inherit; } .os-crumb b { color: var(--hk-color-text); }
.os-hero h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.os-hero p { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13.5px; }
.os { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.os-main { min-width: 0; }
.os-sec { margin-bottom: 14px; overflow: hidden; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.os-sh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--hk-color-divider); }
.os-sh h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.os-sh small { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 600; }
.os-it { padding: 16px 20px; border-top: 1px solid var(--hk-color-divider); }
.os-sh + .os-it { border-top: 0; }
.os-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) 270px; gap: 14px; align-items: center; }
.os-top select { height: 42px; border-radius: 12px; }
.os-name b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.os-name small { display: block; margin-top: 1px; color: var(--hk-color-text-2); font-size: 12.5px; }
.os-ic { display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 11px; }
.os-done { display: inline-flex; align-items: center; gap: 4px; color: var(--hk-state-success-text); font-size: 12px; font-weight: 600; }
.os-locked { justify-self: end; color: var(--hk-state-success-text); font-size: 13px; font-weight: 600; }
.os-more { margin: 12px 0 0 50px; padding: 14px; border-radius: 16px; background: var(--hk-ink-a3); }
.os-more[hidden] { display: none; }
.os-more .field { margin: 0; }
.os-more input[type="text"], .os-more input[type="password"], .os-more input[type="date"], .os-more textarea { width: 100%; background: #fff; }
.os-grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.os-grid2 { display: grid; grid-template-columns: 200px 1fr; gap: 10px; }
.os-note { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; color: var(--hk-color-text-2); font-size: 12px; }
.os-sub { margin: 0 0 8px; color: var(--hk-color-text-2); font-size: 13px; }
.os-copy { display: flex; align-items: center; gap: 10px; }
.os-copy code { flex: 1; display: flex; align-items: center; min-height: 40px; padding: 0 12px; overflow-wrap: anywhere; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--hk-color-divider); font: 600 13.5px/1.3 ui-monospace, Menlo, monospace; }
.os-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.os-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.os-file { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--hk-color-divider); font-size: 12.5px; font-weight: 600; }
.os-pick { position: relative; overflow: hidden; }
.os-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.os-about summary { list-style: none; cursor: pointer; border-bottom: 0; }
.os-about summary::-webkit-details-marker { display: none; }
.os-about[open] summary { border-bottom: 1px solid var(--hk-color-divider); }
.os-about[open] .os-open { display: none; }
.os-about-body { display: grid; gap: 4px; padding: 16px 20px; }
.os-about-body textarea { width: 100%; }
.os-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 6px 0 30px; }
.os-side { position: sticky; top: 20px; }
.os-prog { padding: 20px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.os-prog-top { display: flex; align-items: center; gap: 16px; }
.os-prog-top b { display: block; font-size: 16px; } .os-prog-top small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.os-ring { --p: 0; display: grid; flex: none; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#16A34A calc(var(--p) * 1%), var(--hk-ink-a6) 0); }
.os-ring span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--hk-surface-float, #fff); font-size: 18px; font-weight: 700; }
.os-list { margin: 14px 0 0; padding: 0; list-style: none; }
.os-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13.5px; font-weight: 600; }
.os-list li span { margin-left: auto; color: var(--hk-color-text-2); font-size: 12.5px; }
.os-list li.ok span { color: var(--hk-state-success-text); }
.os-send { width: 100%; justify-content: center; margin-top: 16px; }
.os-safe { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12.5px; }
.os-safe .icon, .os-safe svg { flex: none; margin-top: 1px; }
.os-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 20px; border-radius: 24px; background: var(--hk-surface-float, #fff); box-shadow: inset 0 0 0 2px var(--hk-hue-development, #2563EB), var(--hk-shadow-float); }
.os-banner-ic { width: 44px; height: 44px; border-radius: 14px; }
.os-banner-copy { flex: 1; min-width: 0; }
.os-banner h2 { margin: 0; font-size: 17px; font-weight: 600; }
.os-banner p { margin: 3px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.os-banner-prog { text-align: right; } .os-banner-prog small { display: block; margin-bottom: 6px; color: var(--hk-color-text-2); font-size: 12.5px; }
.os-bar { display: block; width: 180px; height: 8px; overflow: hidden; border-radius: 4px; background: var(--hk-ink-a6); }
.os-bar > span { display: block; height: 100%; border-radius: 4px; background: #16A34A; }
@media (max-width: 900px) {
  .os { grid-template-columns: 1fr; } .os-side { position: static; order: -1; }
  .os-top { grid-template-columns: 36px minmax(0, 1fr); } .os-top select, .os-locked { grid-column: 1 / -1; justify-self: stretch; }
  .os-more { margin-left: 0; } .os-grid3, .os-grid2 { grid-template-columns: 1fr; }
  .os-hero { padding: 18px; } .os-hero h1 { font-size: 20px; }
  .os-sh { flex-wrap: wrap; } .os-sh small { order: 3; flex-basis: 100%; padding-left: 46px; }
  .os-banner { flex-wrap: wrap; } .os-banner-prog { text-align: left; flex-basis: 100%; } .os-bar { width: 100%; }
  .os-actions { flex-direction: column-reverse; } .os-actions .button { justify-content: center; }
}

/* ---------- Client setup form on the project Overview (cs-*) ---------- */
.cs-strip { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.cs-copy { flex: 1; min-width: 0; }
.cs-copy b { display: block; font-size: 14.5px; }
.cs-copy small { display: block; color: var(--hk-color-text-2); font-size: 12.5px; }
.cs-bad { color: var(--hk-state-danger-text); font-weight: 600; }
.cs-bar { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--hk-ink-a6); }
.cs-bar > span { display: block; height: 100%; border-radius: 3px; background: #16A34A; }
.cs-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.cs-ans { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 500; }
.cs-ans a { color: var(--hk-color-text); font-weight: 600; text-decoration: underline; }
.cs-quote { font-style: italic; }
.cs-recv { height: 26px !important; padding: 0 10px !important; background: var(--hk-state-success-tint) !important; color: var(--hk-state-success-text) !important; }
.cs-logins { margin-bottom: 16px; }
.cs-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.cs-row b { font-weight: 600; } .cs-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row code { padding: 4px 8px; overflow-wrap: anywhere; border-radius: 8px; background: var(--hk-ink-a3); font: 600 12.5px/1.3 ui-monospace, Menlo, monospace; user-select: all; }
.ss-item .wq-inline { margin-left: 4px; }
@media (max-width: 760px) { .cs-strip { flex-wrap: wrap; } .cs-acts { flex-basis: 100%; justify-content: flex-start; } .cs-row { grid-template-columns: 1fr 1fr; } }
dialog.wq-dialog .wq-dfoot { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
dialog.wq-dialog .wq-dfoot > .hint { flex: 1; margin: 0; }
dialog.wq-dialog .wq-dfoot .form-actions { display: flex; flex: none; gap: 8px; margin: 0; padding: 0; border: 0; }
@media (max-width: 640px) { dialog.wq-dialog .wq-dfoot { flex-direction: column; align-items: stretch; } }

/* =====================================================================
   Form system v2: one rhythm for every form and dialog.
   Label 8px above its control, hint 6px below, every control fills its
   field, 20px between rows and 16px between columns, actions on the
   right with the main button last.
   ===================================================================== */
.fields { column-gap: 16px; row-gap: 20px; align-items: start; }
.fields > .field, .fields > fieldset.field { min-width: 0; margin: 0; }
.field > label:first-child:not(.check):not(.np-check):not(.np-switch):not(.np-pill):not(.attach):not(.os-check):not(.wq-switch):not(.button),
.field > .field-label, fieldset.field > legend {
  display: block; margin: 0; padding: 0; color: var(--hk-color-text); font-size: 13px; font-weight: 600; line-height: 1.35;
}
.field, label.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field[hidden], label.field[hidden], fieldset.field[hidden] { display: none !important; }
.field > p, .field > small, .field > .hint { margin-top: 0; margin-bottom: 0; }
.field > .hint:first-child { margin: 0; }
.np-f > .np-lab:first-child { margin: 0; line-height: 1.35; }
.np-f, .np-card .fields .field, .uf-form .field, .tk-more-panel .field, .tk-sheet-body .field { gap: 8px; }
.np-form .np-f input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .np-form .np-f select,
.np-card .fields .field input:not([type="checkbox"]):not([type="radio"]), .np-card .fields .field select { height: 44px; border-radius: 12px; }
.field > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="hidden"]),
.field > select, .field > textarea { display: block; width: 100%; }
.field > select[multiple] { height: auto !important; min-height: 132px; padding: 6px; }
.field > select[multiple] option { padding: 6px 8px; border-radius: 8px; }
.field > .hint, .field > p.hint, .field > small.hint, .field > small:not(.optional) { display: block; margin: 0; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.optional, .np-opt { margin-left: 4px; color: var(--hk-color-text-3); font-size: 12.5px; font-weight: 500; }
.field textarea { min-height: 96px; line-height: 1.5; resize: vertical; }

/* Actions: right-aligned, Cancel before the main button, delete on the far left. */
form .form-actions:not(.dialog-foot *):not(.np-actions):not(.staff-team-form-actions) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--hk-color-divider);
}
form .form-actions > *, .dialog-foot > * { order: 2; }
form .form-actions > .primary, form .form-actions > button.primary, .dialog-foot > .primary, .dialog-foot > button.primary,
.dialog-foot .form-actions > .primary { order: 3; }
form .form-actions > .danger, .dialog-foot > .danger,
form .form-actions > .hint, form .form-actions > p, form .form-actions > span:not(.button), .dialog-foot > .hint, .dialog-foot > p, .dialog-foot > span:not(.button) { order: 1; margin-right: auto; }
.dialog-foot { align-items: center; gap: 10px; }

/* Cards that hold a form get the same inner spacing everywhere. */
.box > .box-pad > form, .box > form > .box-pad { margin: 0; }
.box:has(> .box-pad form, > form) > header { padding: 18px 24px 14px; }
.box:has(> .box-pad form) > .box-pad, .box > form > .box-pad { padding: 20px 24px 24px; }
.box-pad > p.hint:first-child { margin: 0 0 18px; font-size: 13px; line-height: 1.5; }

/* Groups of check boxes and radios line up as tidy rows. */
.field .check-row, .check-row { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.field label.check.plain, .check.plain { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
fieldset.field { border: 0; }

/* Form system v2: rows of three, pickers, file inputs, settings cards. */
.fields > .fields-3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.client-update-form-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; align-items: start; }
.client-update-form-grid > .field { grid-column: span 3; }
.client-update-form-grid > .field:nth-child(3), .client-update-form-grid > .field:nth-child(4), .client-update-form-grid > .field:nth-child(5) { grid-column: span 2; }
.client-update-form-grid > .field.wide { grid-column: 1 / -1; }
label.field > span:first-child { display: block; margin: 0; }
label.field > input:not([type="checkbox"]):not([type="radio"]), label.field > select, label.field > textarea { display: block; width: 100%; }
dialog.client-dialog .client-password-field { grid-column: auto; }
dialog.client-dialog .fields:has([data-when="edit"]:not([hidden])) .client-password-field { grid-column: 1 / -1; }
.picker > summary, .picker summary { height: 44px; padding: 0 34px 0 14px; border-radius: var(--hk-radius-input); background-color: var(--hk-ink-a4); font-size: 14px; }
.picker[open] > summary { background-color: #fff; box-shadow: inset 0 0 0 2px #2563EB; }
input[type="file"] { max-width: 100%; color: var(--hk-color-text-2); font-size: 13px; }
input[type="file"]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--hk-ink-a6); color: var(--hk-color-text); font: inherit; font-weight: 600; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--hk-ink-a8); }
.minimal-admin-workspace > .card, .minimal-admin-workspace > form > .card, .minimal-admin-workspace > section.card, .minimal-admin-workspace > .box { padding: 24px; margin-bottom: 16px; }
.minimal-admin-workspace .card-head { margin-bottom: 18px; }
.minimal-admin-workspace .card-head h2, .card-head h2 { font-size: 16px; font-weight: 600; }
.form-title { margin: 28px 0 6px; padding-top: 24px; font-size: 15px; font-weight: 600; }
.form-title + .hint { margin: 0 0 16px; font-size: 13px; line-height: 1.5; }
.minimal-secondary { border-radius: 20px; }
.minimal-secondary > summary { min-height: 54px; padding: 14px 20px; font-size: 14px; font-weight: 600; }
.minimal-secondary > div, .minimal-secondary-body { padding: 20px 24px 24px; }
.card > .fields + .fields, .box-pad > .fields + .fields { margin-top: 20px; }
@media (max-width: 760px) {
  .fields > .fields-3 { grid-template-columns: 1fr; }
  .client-update-form-grid > .field, .client-update-form-grid > .field:nth-child(n) { grid-column: 1 / -1; }
}
.box > form.box-pad { padding: 20px 24px 24px; }
.box:has(> form.box-pad) > header { padding: 18px 24px 14px; }
.fields.narrow { grid-template-columns: minmax(0, 480px); }
.dialog-head p, .dialog-head .hint { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13.5px; line-height: 1.45; }
/* Work-alert settings: one tidy card per alert type, text lined up under its title. */
.work-alert-settings { display: grid; gap: 12px; }
.work-alert-settings > .box { margin: 0; padding: 20px 24px; }
.work-alert-settings .work-alert-enable { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; cursor: pointer; }
.work-alert-settings .work-alert-enable strong { flex: 1; font-size: 15px; }
.work-alert-settings .box > p { margin: 0 0 6px 30px; color: var(--hk-color-text-2); font-size: 13.5px; line-height: 1.5; }
.work-alert-settings .box > p.hint { margin-bottom: 0; font-size: 12.5px; color: var(--hk-color-text-3); }
.work-alert-settings > button[type="submit"] { justify-self: end; margin-top: 4px; }
.work-alert-history { margin-top: 20px; padding: 20px 24px !important; }
@media (max-width: 640px) {
  .daily-log-filters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .daily-log-filters > * { min-width: 0; }
  .daily-log-filters .daily-log-search, .daily-log-filters .daily-log-filter-actions { grid-column: 1 / -1; }
  .daily-log-filters input, .daily-log-filters select { width: 100%; }
}
@media (max-width: 700px) { .uf-actions.social-daily-actions, .uf-actions.seo-daily-actions, .uf-actions.agency-daily-actions { flex-direction: row; align-items: center; } .uf-actions .button { min-height: 44px; width: auto; } }

/* =====================================================================
   Main menu (nx-*): floating panel, duotone icons with one colour per
   area, light or dark per person, collapsible to an icon rail.
   ===================================================================== */
.nx { --c: #475569; --t: #EEF1F5; --d: #CBD5E1; }
.nx .h-indigo { --c: #4F46E5; --t: #EEF0FF; --d: #A5B4FC; } .nx .h-teal { --c: #0D9488; --t: #E3F6F4; --d: #5EEAD4; }
.nx .h-blue { --c: #2563EB; --t: #E8F0FE; --d: #93C5FD; } .nx .h-violet { --c: #7C3AED; --t: #F1EAFE; --d: #C4B5FD; }
.nx .h-orange { --c: #EA580C; --t: #FFEFE5; --d: #FDBA74; } .nx .h-amber { --c: #D97706; --t: #FEF4DE; --d: #FCD34D; }
.nx .h-sky { --c: #0284C7; --t: #E3F3FC; --d: #7DD3FC; } .nx .h-rose { --c: #E11D48; --t: #FFE8ED; --d: #FDA4AF; }
.nx .h-cyan { --c: #0891B2; --t: #E1F5F9; --d: #67E8F9; } .nx .h-pink { --c: #DB2777; --t: #FDE9F3; --d: #F9A8D4; }
.nx .h-emerald { --c: #059669; --t: #E2F6EE; --d: #6EE7B7; } .nx .h-slate { --c: #475569; --t: #EEF1F5; --d: #CBD5E1; }
.app > .sidebar.nx {
  position: sticky; top: 12px; flex: none; display: flex; flex-direction: column; width: 272px; height: calc(100vh - 24px); height: calc(100dvh - 24px);
  margin: 12px 0 12px 12px; padding: 0; overflow: hidden; border: 1px solid rgba(15,23,42,.05); border-radius: 26px;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 28px rgba(15,23,42,.06); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nx *, .nx *::before, .nx *::after { box-sizing: border-box; }
.nx-top { display: flex; align-items: center; gap: 10px; padding: 20px 18px 10px; color: inherit; text-decoration: none; }
.nx-mark { display: grid; flex: none; place-items: center; width: 38px; height: 38px; color: #0F172A; }
.nx-mark .nx-hole { fill: #FFFFFF; }
.nx-brand { min-width: 0; line-height: 1.15; }
.nx-brand b { display: block; color: #0F172A; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.nx-brand small { display: block; overflow: hidden; color: #64748B; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.nx-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 12px; scrollbar-width: none; }
.nx-nav::-webkit-scrollbar { display: none; }
.nx-cap { display: flex; align-items: center; gap: 8px; margin: 14px 8px 6px; color: #98A2B3; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.nx-cap::after { content: ""; flex: 1; height: 1px; background: #EEF1F5; }
.nx-link {
  position: relative; display: flex; align-items: center; gap: 11px; height: 42px; margin: 1px 0; padding: 0 10px 0 6px; border-radius: 13px;
  color: #344054; font-size: 14px; font-weight: 550; text-decoration: none; list-style: none; cursor: pointer; transition: background-color .15s, color .15s;
}
.nx-link::-webkit-details-marker { display: none; }
.nx-link:hover { background: #F5F6F8; color: #101828; }
.nx-link:focus-visible, .nx-sublink:focus-visible, .nx-iconbtn:focus-visible { outline: 3px solid #93C5FD; outline-offset: 1px; }
.nx-ic { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #F2F4F7; color: #475467; box-shadow: inset 0 0 0 1px rgba(16,24,40,.04); transition: background-color .15s, color .15s, box-shadow .15s; }
.nx-svg { display: block; flex: none; }
.nx-ic .du { fill: var(--c); opacity: .42; }
.nx-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-link.is-on { background: #F4F6FA; color: #101828; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(16,24,40,.04); }
.nx-link.is-on .nx-ic { background: var(--c); color: #FFFFFF; box-shadow: 0 6px 14px -5px var(--c); }
.nx-link.is-on .nx-ic .du { fill: #FFFFFF; opacity: .35; }
.nx-link.is-on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.nx-group[open] > .nx-link { color: #101828; font-weight: 650; }
.nx-group[open] > .nx-link .nx-ic .du { opacity: .6; }
.nx-caret { display: grid; flex: none; place-items: center; color: #98A2B3; transition: transform .15s; }
.nx-group[open] > .nx-link .nx-caret { transform: rotate(180deg); }
.nx-badge, .nx .nav-count, .nx .nav-group-count { display: inline-grid; flex: none; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #EF4444; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1; box-shadow: none; }
.nx-badge[hidden], .nx .nav-group-count[hidden] { display: none; }
.nx .nav-new-dot { display: none; }
.nx .nav-count.is-sub { background: #F2F4F7; color: #475467; }
.nx-live { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 10px; background: #E6F6EC; color: #15803D; font-size: 11px; font-weight: 700; }
.nx-live i { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.nx .nav-group-items.nx-sub { position: relative; margin: 2px 0 8px 22px; padding: 0 0 0 16px; border: 0; }
.nx-sub::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 8px; width: 1.5px; border-radius: 2px; background: #E8ECF1; }
.nx-sublink { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; margin: 1px 0; padding: 0 10px; border-radius: 10px; color: #475467; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.nx-sublink .nx-svg { color: #98A2B3; }
.nx-sublink .nx-svg .du { fill: var(--c); opacity: .3; }
.nx-sublink:hover { background: #F5F6F8; color: #101828; }
.nx-sublink.is-on { background: #F4F6FA; color: #101828; font-weight: 650; }
.nx-sublink.is-on .nx-svg { color: var(--c); }
.nx-sublink.is-on::before { content: ""; position: absolute; left: -17px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--c); }
.nx-sep { display: block; height: 1px; margin: 6px 10px; background: #EEF1F5; }
.nx-foot { display: flex; flex: none; align-items: center; gap: 4px; padding: 10px 12px 12px; border-top: 1px solid #EEF1F5; }
.nx-foot .nx-link { flex: 1; min-width: 0; margin: 0; }
.nx-spacer { flex: 1; }
.nx-iconbtn { display: grid; flex: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #64748B; cursor: pointer; }
.nx-iconbtn:hover { background: #F2F4F7; color: #0F172A; }
.nx-when-dark { display: none; }
.nx-dark .nx-when-dark { display: grid; } .nx-dark .nx-when-light { display: none; }

/* Dark menu */
.app > .sidebar.nx.nx-dark { border-color: rgba(255,255,255,.04); background: radial-gradient(120% 60% at 0% 0%, #1E293B 0%, #0B1120 55%), #0B1120; box-shadow: 0 12px 32px rgba(2,6,23,.25); }
.nx-dark .nx-mark { color: #F8FAFC; } .nx-dark .nx-mark .nx-hole { fill: #131B2E; }
.nx-dark .nx-brand b { color: #F8FAFC; } .nx-dark .nx-brand small { color: #94A3B8; }
.nx-dark .nx-cap { color: #64748B; } .nx-dark .nx-cap::after { background: rgba(255,255,255,.06); }
.nx-dark .nx-link { color: #CBD5E1; }
.nx-dark .nx-link:hover { background: rgba(255,255,255,.05); color: #FFFFFF; }
.nx-dark .nx-ic { background: rgba(255,255,255,.05); color: #CBD5E1; box-shadow: none; }
.nx-dark .nx-ic .du { fill: var(--d); opacity: .5; }
.nx-dark .nx-link.is-on { background: rgba(255,255,255,.08); color: #FFFFFF; box-shadow: none; }
.nx-dark .nx-link.is-on .nx-ic { background: var(--c); color: #FFFFFF; box-shadow: 0 6px 18px -4px var(--c); }
.nx-dark .nx-group[open] > .nx-link { color: #FFFFFF; }
.nx-dark .nx-sub::before { background: rgba(255,255,255,.08); }
.nx-dark .nx-sublink { color: #94A3B8; } .nx-dark .nx-sublink .nx-svg { color: #64748B; } .nx-dark .nx-sublink .nx-svg .du { fill: var(--d); }
.nx-dark .nx-sublink:hover { background: rgba(255,255,255,.05); color: #FFFFFF; }
.nx-dark .nx-sublink.is-on { background: rgba(255,255,255,.08); color: #FFFFFF; } .nx-dark .nx-sublink.is-on .nx-svg { color: var(--d); }
.nx-dark .nx-sep { background: rgba(255,255,255,.06); }
.nx-dark .nav-count.is-sub { background: rgba(255,255,255,.1); color: #E2E8F0; }
.nx-dark .nx-live { background: rgba(34,197,94,.14); color: #86EFAC; }
.nx-dark .nx-foot { border-top-color: rgba(255,255,255,.06); }
.nx-dark .nx-iconbtn { color: #94A3B8; } .nx-dark .nx-iconbtn:hover { background: rgba(255,255,255,.06); color: #FFFFFF; }

/* Collapsed to an icon rail: it opens over the page while the pointer is on it. */
@media (min-width: 861px) {
  .app.is-rail > .sidebar.nx { width: 84px; }
  .app.is-rail > .sidebar.nx:hover, .app.is-rail > .sidebar.nx:has(:focus-visible) { width: 272px; margin-right: -188px; z-index: 45; box-shadow: var(--hk-shadow-overlay); }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) :is(.nx-brand, .nx-label, .nx-caret, .nx-live, .nx-sub, .nx-cap span) { display: none !important; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-top { justify-content: center; padding: 20px 0 10px; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-cap { margin: 10px 14px; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-link { justify-content: center; width: 52px; margin: 3px auto; padding: 0; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-link.is-on::before { left: -16px; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-link .nx-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px #FFFFFF; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-foot { flex-direction: column; padding: 10px 0 12px; }
  .app.is-rail > .sidebar.nx:not(:hover):not(:has(:focus-visible)) .nx-foot .nx-link { flex: none; }
  .app.is-rail .nx .hk-rail-toggle .nx-svg { transform: scaleX(-1); }
}

/* Phones and tablets: the menu slides in from the left. */
@media (max-width: 860px) {
  .app > .sidebar.nx { position: fixed; left: 0; top: 0; z-index: 30; width: 288px; max-width: 86vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0 24px 24px 0; transform: translateX(-105%); }
  .app.menu-open > .sidebar.nx { transform: none; box-shadow: 0 0 48px rgba(0,0,0,.25); }
  .nx .hk-rail-toggle { display: none; }
}

/* Live now: same tiles and filter bar as the Work tracker overview. */
.lv-page .team-summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; border: 0; background: none; box-shadow: none; }
.lv-page .team-summary-strip > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; padding: 16px 18px; border: 0 !important; border-radius: 20px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); }
.lv-page .team-summary-strip span { color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.lv-page .team-summary-strip strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lv-page .lv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px; border-radius: 22px; background: rgba(255,255,255,0.92); box-shadow: var(--hk-shadow-float); }
.lv-page .lv-tools .search { flex: 1 1 260px; }
.lv-page .lv-tools select { width: auto; min-width: 150px; }
.lv-page .lv-intro { margin: 0 0 14px; font-size: 13.5px; }
@media (max-width: 760px) { .lv-page .team-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-page .team-summary-strip > div:last-child { grid-column: 1 / -1; } .lv-page .lv-tools select { flex: 1 1 140px; } }

/* Tasks: search, status chips, filters and views on one line when there is room. */
@media (min-width: 1101px) {
  .tk-bar { flex-wrap: nowrap; }
  .tk-bar .tk-search { flex: 1 1 200px; min-width: 160px; }
  .tk-bar .tk-chips { flex: 0 1 auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tk-bar .tk-chips::-webkit-scrollbar { display: none; }
  .tk-bar .tk-bar-end { flex: none; }
}
@media (min-width: 1101px) and (max-width: 1379px) { .tk-bar .tk-seg a span { display: none; } .tk-bar .tk-seg a { padding: 0 12px; } }

/* Dashboard: full-width cards use their width instead of leaving empty space. */
.wf-row-2 > .wf-card:only-child { min-height: 0; }
@media (min-width: 1200px) {
  .wq-dash .wq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .wq-dash .wq-list .wq-mini:nth-child(2) { border-top: 1px solid var(--hk-color-divider); }
}
.wf-card.wq-dash { margin-bottom: 0; padding: 24px; }
.wq-dash .wq-dash-head { margin-bottom: 8px; }

/* ---------- Ctrl K quick jump (qj-*) ---------- */
.hk-topsearch input[readonly] { cursor: pointer; }
.qj-back { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-start; justify-content: center; padding: 88px 16px 16px; background: rgba(15,23,42,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.qj-back[hidden] { display: none; }
html.qj-open { overflow: hidden; }
.qj { display: flex; flex-direction: column; width: 680px; max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow: hidden; border-radius: 24px; background: #FFFFFF; box-shadow: 0 24px 64px rgba(15,23,42,.28), 0 0 0 1px rgba(15,23,42,.06); animation: qj-in .14s ease-out; }
@keyframes qj-in { from { opacity: 0; transform: translateY(-6px) scale(.99); } to { opacity: 1; transform: none; } }
.qj-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-bottom: 1px solid #EEF1F5; color: #64748B; }
.qj-in .qj-input { flex: 1; min-width: 0; height: 40px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #0F172A; font-size: 17px; }
.qj-in .qj-input:focus { box-shadow: none !important; }
.qj kbd, .qj-esc { padding: 4px 7px; border: 0; border-radius: 6px; background: #F2F4F7; color: #475467; font: 600 11px/1 Inter, system-ui, sans-serif; box-shadow: inset 0 -1px 0 rgba(16,24,40,.08); }
.qj-esc { cursor: pointer; }
.qj-scopes { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; border-bottom: 1px solid #EEF1F5; scrollbar-width: none; }
.qj-scopes::-webkit-scrollbar { display: none; }
.qj-chip { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 14px; background: #F2F4F7; color: #475467; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qj-chip:hover { background: #E8EBF0; }
.qj-chip.on { background: #0F172A; color: #FFFFFF; }
.qj-chip b { font-weight: 600; opacity: .7; } .qj-chip b:empty { display: none; }
.qj-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 8px; overscroll-behavior: contain; }
.qj-list.is-loading { opacity: .85; }
.qj-cap { padding: 12px 10px 6px; color: #98A2B3; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.qj-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 12px; color: #101828; text-decoration: none; }
.qj-row.sel { background: #F1F5FF; box-shadow: inset 0 0 0 1px #DCE6FD; }
.qj-ic, .qj-av, .qj-logo { display: grid; flex: none; place-items: center; width: 32px; height: 32px; overflow: hidden; font-size: 12px; font-weight: 700; }
.qj-ic { border-radius: 10px; background: var(--t, #EEF1F5); color: var(--c, #475569); }
.qj-ic .du { fill: var(--c, #475569); opacity: .35; }
.qj-av { border-radius: 50%; background: #E0E7FF; color: #3730A3; }
.qj-logo { border-radius: 10px; background: #EEF2FF; color: #3730A3; }
.qj-av img, .qj-logo img { width: 100%; height: 100%; object-fit: cover; }
.qj-t { flex: 1; min-width: 0; }
.qj-t b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.qj-t small { display: block; overflow: hidden; color: #667085; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.qj-t mark { padding: 0 1px; border-radius: 3px; background: #FDF0C4; color: inherit; font-weight: 700; }
.qj-tag { display: inline-flex; flex: none; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.qj-tag.t-ok { background: #E6F6EC; color: #15803D; } .qj-tag.t-warn { background: #FEF4DE; color: #B45309; } .qj-tag.t-bad { background: #FFE8ED; color: #BE123C; }
.qj-tag.t-info { background: #E8F0FE; color: #1D4ED8; } .qj-tag.t-mut { background: #F2F4F7; color: #475467; }
.qj-go { display: flex; flex: none; align-items: center; gap: 6px; color: #98A2B3; font-size: 12px; font-weight: 600; }
.qj-row:not(.sel) .qj-go { visibility: hidden; }
.qj-empty { padding: 28px 20px 12px; color: #667085; font-size: 13.5px; text-align: center; }
.qj-empty b { display: block; margin-bottom: 4px; color: #101828; font-size: 15px; }
.qj-foot { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid #EEF1F5; background: #FAFBFC; color: #667085; font-size: 12px; }
.qj-foot span { display: inline-flex; align-items: center; gap: 4px; } .qj-sp { flex: 1; }
.qj .h-indigo { --c: #4F46E5; --t: #EEF0FF; } .qj .h-teal { --c: #0D9488; --t: #E3F6F4; } .qj .h-blue { --c: #2563EB; --t: #E8F0FE; } .qj .h-violet { --c: #7C3AED; --t: #F1EAFE; }
.qj .h-orange { --c: #EA580C; --t: #FFEFE5; } .qj .h-amber { --c: #D97706; --t: #FEF4DE; } .qj .h-sky { --c: #0284C7; --t: #E3F3FC; } .qj .h-rose { --c: #E11D48; --t: #FFE8ED; }
.qj .h-cyan { --c: #0891B2; --t: #E1F5F9; } .qj .h-pink { --c: #DB2777; --t: #FDE9F3; } .qj .h-emerald { --c: #059669; --t: #E2F6EE; } .qj .h-slate { --c: #475569; --t: #EEF1F5; }
@media (max-width: 640px) {
  .qj-back { padding: 0; align-items: stretch; }
  .qj { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .qj-foot { display: none; }
  .qj-go { display: none; }
}

/* ---------- Projects at risk (rk-*) ---------- */
.rk-intro { margin: -6px 0 16px; color: var(--hk-color-text-2); font-size: 13.5px; }
.rk-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.rk-t { display: block; min-width: 0; padding: 16px 18px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); color: inherit; text-decoration: none; }
.rk-t:hover { box-shadow: inset 0 0 0 1px var(--hk-ink-a10, #CBD5E1), var(--hk-shadow-float); }
.rk-t.on { box-shadow: inset 0 0 0 2px var(--hk-color-ink-900, #0F172A), var(--hk-shadow-float); }
.rk-t span { display: flex; align-items: center; gap: 8px; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.rk-t b { display: block; margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.rk-t em { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.rk-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.rk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.rk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.rk-chip.on { background: var(--hk-color-ink-900); color: #fff; }
.rk-chip b { font-weight: 600; opacity: .7; }
.rk-gap { flex: 1; }
.rk-bar select { width: auto; min-width: 150px; height: 40px; border-radius: 12px; }
.rk-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 20px; align-items: center; margin: 0 0 12px; padding: 18px 20px 18px 24px; overflow: hidden; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.rk-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sev); }
.rk-card.crit { --sev: #DC2626; } .rk-card.watch { --sev: #F59E0B; } .rk-card.is-checked { --sev: #CBD5E1; }
.rk-main { min-width: 0; }
.rk-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-name { min-width: 0; }
.rk-name h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 600; }
.rk-name h3 a { color: inherit; text-decoration: none; } .rk-name h3 a:hover { text-decoration: underline; }
.rk-name small { display: block; margin-top: 2px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rk-sev { display: inline-flex; flex: none; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; }
.rk-sev.crit { background: #FFE8ED; color: #BE123C; } .rk-sev.watch { background: #FEF4DE; color: #B45309; }
.rk-prog { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--hk-color-text-2); font-size: 12px; }
.rk-prog .wt-track { flex: 1; max-width: 220px; }
.rk-checked { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--hk-ink-a3); color: var(--hk-color-text-2); font-size: 12px; line-height: 1.45; }
.rk-checked b { color: var(--hk-color-text); }
.rk-why { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rk-why li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.4; color: var(--hk-color-text-2); }
.rk-why li b { color: var(--hk-color-text); font-weight: 600; }
.rk-why li i { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 8px; }
.r-late i { background: #FFE8ED; color: #BE123C; } .r-hours i { background: #FFEFE5; color: #C2410C; } .r-quiet i { background: #EEF1F5; color: #475569; }
.r-tasks i { background: #FEF4DE; color: #B45309; } .r-client i { background: #F1EAFE; color: #6D28D9; }
.rk-act { display: grid; gap: 10px; justify-items: end; }
.rk-owner { display: flex; align-items: center; gap: 8px; max-width: 240px; color: var(--hk-color-text-2); font-size: 12.5px; }
.rk-owner > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-btns { display: flex; gap: 8px; }
.rk-ok, .rk-empty { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); color: var(--hk-color-text-2); font-size: 13.5px; }
.rk-ok b { color: var(--hk-color-text); }
.rk-empty { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; }
.rk-empty h2 { margin: 6px 0 0; color: var(--hk-color-text); font-size: 17px; } .rk-empty p { margin: 0; }
.rk-move { margin: 0; }
.wf-card.rk-dash { margin-bottom: 0; padding: 24px; }
@media (max-width: 1180px) { .rk-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .rk-act { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; } }
@media (max-width: 760px) {
  .rk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rk-tiles .rk-t:first-child { grid-column: 1 / -1; }
  .rk-card { grid-template-columns: 1fr; gap: 14px; padding: 16px 16px 16px 20px; }
  .rk-act { grid-auto-flow: row; justify-items: stretch; }
  .rk-btns .button, .rk-btns form, .rk-btns form .button { flex: 1; justify-content: center; }
  .rk-bar select { flex: 1 1 140px; }
}

/* ---------- Monthly allowances ---------- */
.r-allowance i { background: #E8F0FE; color: #1D4ED8; }
.al-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.al-month { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.al-month b { min-width: 128px; padding: 0 8px; font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; }
.al-mbtn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text); }
.al-mbtn:hover { background: var(--hk-ink-a8, rgba(15,23,42,.08)); }
.al-mbtn.is-prev .icon { transform: rotate(90deg); } .al-mbtn.is-next .icon { transform: rotate(-90deg); }
.al-mbtn.is-off { opacity: .35; }
.al-filter select { width: auto; min-width: 160px; height: 36px; border-radius: 999px; }
.al-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.al-t { min-width: 0; padding: 16px 18px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.al-t span { display: block; color: var(--hk-color-text-2); font-size: 12.5px; font-weight: 500; }
.al-t b { display: block; margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.al-t b.is-good { color: #15803D; } .al-t b.is-bad { color: #BE123C; }
.al-t em { display: block; overflow: hidden; color: var(--hk-color-text-2); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.al-legend { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 12px; border-radius: 12px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); color: var(--hk-color-text-2); font-size: 12px; }
.al-legend u { display: inline-block; width: 2px; height: 12px; border-radius: 1px; background: var(--hk-color-text); opacity: .55; }
.al-card { margin: 0 0 12px; padding: 18px 20px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.al-ch { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.al-name { flex: 1; min-width: 0; }
.al-name h3 { margin: 0; font-size: 15.5px; font-weight: 600; } .al-name h3 a { color: inherit; text-decoration: none; } .al-name h3 a:hover { text-decoration: underline; }
.al-name small { display: block; margin-top: 2px; overflow: hidden; color: var(--hk-color-text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.al-st { display: inline-flex; flex: none; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.s-on { background: #E6F6EC; color: #15803D; } .s-behind { background: #FFE8ED; color: #BE123C; } .s-met { background: #E8F0FE; color: #1D4ED8; } .s-over { background: #FFEFE5; color: #C2410C; }
.al-link { flex: none; padding: 4px 6px; color: var(--hk-color-text); font-size: 13px; font-weight: 600; text-decoration: none; }
.al-link:hover { text-decoration: underline; }
.al-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.al-i { min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--hk-ink-a4, #F7F8FA); }
.al-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.al-top b { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.al-top span { flex: none; font-size: 13px; font-weight: 700; }
.al-bar { position: relative; display: block; width: 100%; height: 8px; margin: 10px 0 6px; border-radius: 4px; background: var(--hk-ink-a8, #E6E9EE); }
.al-bar i { display: block; height: 100%; border-radius: 4px; background: #22C55E; }
.al-bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--hk-color-text); opacity: .55; }
.al-i small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.c-behind .al-bar i, .c-short .al-bar i { background: #EF4444; } .c-met .al-bar i { background: #3B82F6; } .c-over .al-bar i { background: #F97316; }
.c-behind .al-top span, .c-short .al-top span { color: #BE123C; } .c-over .al-top span { color: #C2410C; }
.al-bar.is-calm i { background: #3B82F6; }
/* Project form */
.al-flabels, .al-frow { display: grid; grid-template-columns: minmax(0, 1.4fr) 96px minmax(0, 1.6fr) 36px; gap: 10px; align-items: center; }
.al-flabels { margin: 4px 0 6px; color: var(--hk-color-text); font-size: 13px; font-weight: 600; }
.al-frows { display: grid; gap: 10px; }
.al-frow[hidden] { display: none; }
.al-fname { display: flex; align-items: center; height: 44px; margin: 0; padding: 0 14px; border-radius: 12px; background: var(--hk-ink-a4); font-size: 14px; font-weight: 500; }
.al-frow input { height: 44px; text-align: left; }
.al-from { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.3; }
.al-from .icon { flex: none; }
.al-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); cursor: pointer; }
.al-x:hover { background: #FFE8ED; color: #BE123C; }
.al-fadd { margin-top: 10px; }
.al-fadd select { width: auto; min-width: 180px; height: 38px; border: 1px dashed #CBD5E1; border-radius: 999px; background-color: transparent; font-size: 13px; font-weight: 600; }
.al-hours { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.al-client { margin-top: 12px; }
/* Client portal */
.al-portal .al-pgrid { display: grid; gap: 4px; padding: 0 20px; }
.al-prows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
#allowance { scroll-margin-top: 88px; }
.al-pname { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px; font-size: 13.5px; }
.al-prow { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hk-color-divider); }
.al-pt { flex: 1; min-width: 0; } .al-pt b { display: block; font-size: 14px; font-weight: 600; }
.al-pt .al-bar { height: 6px; margin: 8px 0 0; }
.al-pn { flex: none; font-size: 14px; font-weight: 700; }
.al-pfoot { margin: 0; padding: 12px 20px 16px; color: var(--hk-color-text-2); font-size: 12.5px; }
@media (max-width: 1100px) { .al-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .al-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-items { grid-template-columns: 1fr; }
  .al-ch { flex-wrap: wrap; row-gap: 8px; } .al-name { flex: 1 1 calc(100% - 52px); } .al-name small { white-space: normal; }
  .al-st { margin-left: 52px; } .al-link { margin-left: auto; }
  .al-flabels { display: none; }
  .al-frow { grid-template-columns: minmax(0, 1fr) 80px 36px; }
  .al-frow .al-from { grid-column: 1 / -1; grid-row: 2; margin-top: -4px; }
  .al-head .rk-gap { display: none; }
}

/* ---------- Client report (staff, portal, email link and PDF) ---------- */
.rp { max-width: 900px; margin: 0 auto; color: #0F172A; }
.rp-sheet { overflow: hidden; border-radius: 28px; background: #fff; box-shadow: var(--hk-shadow-float); }
.rp-cover { position: relative; overflow: hidden; padding: 30px 36px 28px; background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #4C1D95 130%); color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-cover::after { content: ""; position: absolute; top: -120px; right: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,.45), rgba(167,139,250,0) 70%); pointer-events: none; }
.rp-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.rp-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #0F172A; font-size: 15px; font-weight: 800; }
.rp-lab { margin: 26px 0 4px; color: #C4B5FD; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rp-cover h1 { margin: 0; color: #fff; font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.rp-who { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: #E2E8F0; font-size: 14px; }
.rp-who b { color: #fff; }
.rp-pm { display: flex; align-items: center; gap: 10px; } .rp-pm > span:last-child { line-height: 1.35; }
.rp-pm small { display: block; color: #CBD5E1; font-size: 12px; }
.rp-pm .pic { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.rp-body { display: grid; gap: 0; padding: 26px 36px 32px; }
.rp-note { display: flex; gap: 14px; margin: 0 0 22px; padding: 18px 20px; border-radius: 20px; background: #F5F3FF; }
.rp-note p { margin: 0; color: #312E81; font-size: 14.5px; line-height: 1.6; }
.rp-note small { display: block; margin-top: 8px; color: #6D28D9; font-size: 12.5px; font-weight: 600; }
.rp-h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #64748B; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rp-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 26px; }
.rp-hl > div { padding: 14px 14px 12px; border: 1px solid #EEF2F7; border-radius: 18px; background: #F8FAFC; }
.rp-hl i { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 10px; }
.rp-hl b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.rp-hl span { display: block; margin-top: 4px; color: #475569; font-size: 12.5px; }
.rp-hl em { display: block; margin-top: 6px; color: #15803D; font-size: 11.5px; font-style: normal; font-weight: 700; }
.rp i.t-pink { background: #FCE7F3; color: #BE185D; } .rp i.t-orange { background: #FFEDD5; color: #C2410C; } .rp i.t-indigo { background: #EEF2FF; color: #4338CA; }
.rp i.t-sky { background: #E0F2FE; color: #0369A1; } .rp i.t-green { background: #DCFCE7; color: #15803D; } .rp i.t-amber { background: #FEF3C7; color: #B45309; }
.rp-proj { margin: 0 0 18px; overflow: hidden; border: 1px solid #EEF2F7; border-radius: 22px; break-inside: avoid-page; }
.rp-ph { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #EEF2F7; }
.rp-pt { flex: 1; min-width: 0; } .rp-pt h3 { margin: 0; font-size: 17px; font-weight: 600; } .rp-pt small { display: block; margin-top: 1px; color: #64748B; font-size: 12.5px; }
.rp-flag { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12px; font-weight: 700; }
.rp-flag.is-ok { background: #DCFCE7; color: #15803D; } .rp-flag.is-info { background: #E0F2FE; color: #0369A1; }
.rp-pb { display: grid; gap: 18px; padding: 16px 18px 18px; }
.rp-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: #0F172A; font-size: 13px; font-weight: 700; }
.rp-sub span { color: #64748B; font-size: 12.5px; font-weight: 500; }
.rp-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.rp-plan > div { padding: 12px 14px; border-radius: 14px; background: #F0F9FF; }
.rp-plan > div.is-met { background: #F0FDF4; }
.rp-plt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.rp-plt b { font-weight: 600; } .rp-plt span { color: #0369A1; font-weight: 700; } .is-met .rp-plt span { color: #15803D; }
.rp-bar { display: block; width: 100%; height: 6px; margin-top: 9px; border-radius: 3px; background: #E0F2FE; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-bar i { display: block; height: 100%; border-radius: 3px; background: #3B82F6; }
.is-met .rp-bar { background: #DCFCE7; } .is-met .rp-bar i { background: #22C55E; }
.rp-posts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rp-posts > a, .rp-posts > span { display: block; color: #fff; text-decoration: none; }
.rp-post { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 14px; background: #E2E8F0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rp-art { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.rp-ty { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.9); color: #0F172A; }
.rp-ov { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 4px; padding: 22px 8px 7px; background: linear-gradient(transparent, rgba(15,23,42,.72)); font-size: 10.5px; font-weight: 600; }
.rp-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rp-counts > div { padding: 10px 12px; border-radius: 14px; background: #F8FAFC; }
.rp-counts b { display: block; font-size: 18px; font-weight: 650; } .rp-counts span { color: #64748B; font-size: 12px; }
.rp-fol { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rp-fol.is-col { grid-template-columns: 1fr; }
.rp-fol > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #F8FAFC; }
.rp-fol b { display: block; font-size: 15px; } .rp-fol small { color: #64748B; font-size: 12px; } .rp-fol em { margin-left: auto; font-size: 12.5px; font-style: normal; font-weight: 700; }
.rp-good { color: #15803D; } .rp-bad { color: #B91C1C; } .rp-mut { margin: 0; color: #64748B; font-size: 12.5px; }
.rp-kw { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-kw th { padding: 0 0 8px; color: #64748B; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.rp-kw td { padding: 9px 0; border-top: 1px solid #F1F5F9; vertical-align: middle; }
.rp-kw td small { display: block; color: #64748B; font-size: 12px; }
.rp-kw .n { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.rp-mv { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.rp-mv.is-up, .rp-chip.is-up { background: #DCFCE7; color: #15803D; } .rp-mv.is-down, .rp-chip.is-down { background: #FEE2E2; color: #B91C1C; }
.rp-mv.is-up .icon, .rp-chip.is-up .icon { transform: rotate(-90deg); } .rp-mv.is-down .icon, .rp-chip.is-down .icon { transform: rotate(90deg); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.rp-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: #F1F5F9; font-size: 12.5px; font-weight: 600; }
.rp-list { display: grid; margin: 0; padding: 0; list-style: none; }
.rp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #F1F5F9; font-size: 13.5px; line-height: 1.4; }
.rp-list li:first-child { border-top: 0; }
.rp-list li > span { flex: 1; min-width: 0; }
.rp-list li i { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #EEF2FF; color: #4338CA; }
.rp-list li small { flex: none; margin-left: auto; color: #64748B; font-size: 12px; white-space: nowrap; }
.rp-list a, .rp-box a { color: #4338CA; font-weight: 600; text-decoration: none; } .rp-list a:hover { text-decoration: underline; }
.rp-grp { display: flex; gap: 6px; margin: 10px 0 2px; color: #334155; font-size: 12.5px; font-weight: 700; } .rp-grp span { color: #94A3B8; }
.rp-grp:first-of-type { margin-top: 0; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .rp-two.is-one { grid-template-columns: 1fr; }
.rp-tail { margin-top: 4px; gap: 14px; }
.rp-box { padding: 16px 18px; border-radius: 20px; background: #F8FAFC; font-size: 13.5px; }
.rp-box.is-warn { background: #FFFBEB; } .rp-box.is-warn .rp-list li i { background: #FEF3C7; color: #B45309; }
.rp-ms { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: #F8FAFC; }
.rp-ms.is-done { background: #F0F9FF; }
.rp-ms b { display: block; font-size: 13.5px; } .rp-ms small { color: #64748B; font-size: 12.5px; }
.rp-ring { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: conic-gradient(#3B82F6 0 var(--p), #E2E8F0 var(--p) 100%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-ring span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-size: 11.5px; font-weight: 700; }
.rp-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 36px; border-top: 1px solid #EEF2F7; color: #64748B; font-size: 12px; }
@media (max-width: 760px) {
  .rp-cover { padding: 22px 20px; } .rp-cover h1 { font-size: 30px; }
  .rp-who { flex-direction: column; align-items: flex-start; }
  .rp-body { padding: 18px 16px; } .rp-hl { grid-template-columns: 1fr 1fr; }
  .rp-two { grid-template-columns: 1fr; } .rp-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-ph { flex-wrap: wrap; } .rp-foot { flex-direction: column; padding: 14px 16px; }
}

/* Check and send */
.rv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rv .rp { max-width: none; }
.rv-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.rv-card { padding: 18px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.rv-card h3 { margin: 0 0 4px; font-size: 15px; } .rv-card > p { margin: 0; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.5; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-steps { display: grid; margin: 12px 0 0; }
.rv-step { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 13px; }
.rv-step > i { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E2E8F0; color: #64748B; font-size: 11px; font-style: normal; font-weight: 700; }
.rv-step.is-done > i { background: #16A34A; color: #fff; } .rv-step.is-now > i { background: var(--hk-color-ink-900, #0F172A); color: #fff; }
.rv-step small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.rv-card textarea { min-height: 120px; margin-top: 10px; font-size: 13px; line-height: 1.5; }
.rv-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.rv-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; cursor: pointer; }
.rv-tog:first-of-type { border-top: 0; }
.rv-chk { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; color: var(--hk-color-text-2); font-size: 12.5px; line-height: 1.45; }
.rv-chk .icon { flex: none; margin-top: 1px; color: #16A34A; } .rv-chk.is-warn .icon { color: #D97706; }
.rv-btns { display: grid; gap: 8px; margin-top: 12px; }
.rv-btns form, .rv-btns .button { width: 100%; } .rv-btns .button { justify-content: center; }
.rv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-more { margin-top: 10px; font-size: 12.5px; } .rv-more summary { cursor: pointer; color: var(--hk-color-text-2); font-weight: 600; }
.rv-more form { margin-top: 8px; }
@media (max-width: 1180px) { .rv { grid-template-columns: 1fr; } .rv-side { position: static; order: -1; } }

/* Portal report switcher */
.rp-months { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 auto 16px; max-width: 900px; }
.rp-months .gap { flex: 1; }

/* Print and PDF */
.rp-print-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto 16px; }
.rp-print-page { padding: 24px 16px; background: #E2E8F0; min-height: 100vh; }
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff !important; }
  .rp-print-page { padding: 0; background: #fff; }
  .rp-print-bar, .no-print { display: none !important; }
  .rp { max-width: none; } .rp-sheet { border-radius: 0; box-shadow: none; }
  .rp-cover { border-radius: 14px; } .rp-body { padding: 18px 4px; } .rp-foot { padding: 12px 4px; }
  .rp-posts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rp-hl > div, .rp-plan > div, .rp-ms, .rp-box, .rp-tail { break-inside: avoid; }
  .rp-h2, .rp-sub { break-after: avoid; }
  a { color: inherit; }
}
.rp-back .icon { transform: rotate(90deg); }
.cu-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 20px; background: #F5F3FF; color: #4C1D95; font-size: 13.5px; text-decoration: none; }
.cu-banner > span:nth-child(2) { flex: 1; }
.cu-banner-ic { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: #6D28D9; }
.rp-list li > span small { display: block; margin: 2px 0 0; white-space: normal; }

/* ---------- Manager morning view (dashboard) ---------- */
.mv { margin: 0 0 24px; padding: 22px 24px 16px; border-radius: 28px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.mv-top { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; }
.mv-ring { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#22C55E 0 var(--p), var(--hk-ink-a8, #E2E8F0) var(--p) 100%); }
.mv-ring > span { display: grid; place-items: center; align-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--hk-surface-float, #fff); font-size: 13px; font-weight: 700; line-height: 1.05; }
.mv-ring small { color: var(--hk-color-text-2); font-size: 9.5px; font-weight: 600; }
.mv-intro { flex: 1; min-width: 0; }
.mv-intro h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.mv-intro p { margin: 4px 0 0; color: var(--hk-color-text-2); font-size: 13.5px; } .mv-intro p b { color: var(--hk-color-text); font-weight: 600; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.mv-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: var(--hk-ink-a4); color: var(--hk-color-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mv-chip.is-on { background: var(--hk-color-ink-900, #0F172A); color: #fff; } .mv-chip b { font-weight: 600; opacity: .65; }
.mv-list { margin: 6px 0 0; padding: 0; list-style: none; }
.mv-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--hk-color-divider); }
.mv-row:first-child { border-top: 0; } .mv-row[hidden] { display: none; }
.mv-row > form.mv-leave { display: none; }
.mv-row.is-open { margin: 4px -8px; padding: 14px 12px; border-radius: 16px; border-top-color: transparent; background: var(--hk-ink-a2, #FAFAFF); }
.mv-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; }
.k-risk { background: #FFE8ED; color: #BE123C; } .k-leave { background: #FEF3C7; color: #B45309; } .k-task { background: #EEF2FF; color: #4338CA; } .k-time { background: #E0F2FE; color: #0369A1; }
.k-client { background: #F3E8FF; color: #7E22CE; } .k-report { background: #E0F2FE; color: #0369A1; } .k-late { background: #FEE2E2; color: #B91C1C; }
.mv-t { min-width: 0; }
.mv-t b, .mv-title { display: block; font-size: 14px; font-weight: 600; }
.mv-title { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.mv-title:hover { text-decoration: underline; }
.mv-t small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--hk-color-text-2); font-size: 12.5px; }
.mv-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.t-bad.mv-tag { background: #FFE8ED; color: #BE123C; } .t-warn.mv-tag { background: #FEF3C7; color: #B45309; } .t-ok.mv-tag { background: #DCFCE7; color: #15803D; } .t-mut.mv-tag { background: var(--hk-ink-a4); color: var(--hk-color-text-2); }
.mv-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.mv-act form { margin: 0; }
.mv-act .button { height: 34px; }
.mv-act .mv-ok { background: #16A34A; color: #fff; } .mv-act .mv-ok:hover { background: #15803D; }
.mv-later { position: relative; }
.mv-later > summary { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--hk-ink-a4); color: var(--hk-color-text-2); list-style: none; cursor: pointer; }
.mv-later > summary::-webkit-details-marker { display: none; }
.mv-menu { position: absolute; top: 40px; right: 0; z-index: 20; display: grid; width: 220px; padding: 6px; border-radius: 16px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-overlay); }
.mv-menu-h { padding: 6px 10px 4px; color: var(--hk-color-text-3); font-size: 11.5px; font-weight: 600; }
.mv-menu button { padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--hk-color-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mv-menu button:hover { background: var(--hk-ink-a4); }
.mv-detail { display: grid; grid-column: 2 / -1; gap: 10px; }
.mv-detail[hidden] { display: none; }
.mv-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--hk-color-text-2); font-size: 12.5px; }
.mv-facts b { display: block; color: var(--hk-color-text); font-size: 13px; }
.mv-reason { margin: 0; color: var(--hk-color-text-2); font-size: 13px; font-style: italic; }
.mv-detail input { height: 42px; }
.mv-clear { display: flex; align-items: center; gap: 14px; padding: 8px 4px 12px; } .mv-clear p { margin: 2px 0 0; color: var(--hk-color-text-2); font-size: 13px; }
.mv-foot { margin-top: 6px; padding: 12px 4px 2px; border-top: 1px solid var(--hk-color-divider); color: var(--hk-color-text-2); font-size: 12.5px; }
.mv-foot > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.mv-foot > summary::-webkit-details-marker { display: none; }
.mv-show { margin-left: auto; color: var(--hk-color-text); font-weight: 600; }
.mv-done { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7; color: #15803D; }
.mv-handled { margin: 8px 0 0; padding: 0; list-style: none; }
.mv-handled li { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .mv-handled small { margin-left: auto; }
@media (max-width: 760px) {
  .mv { padding: 18px 14px 12px; } .mv-top { gap: 12px; } .mv-intro h2 { font-size: 17px; }
  .mv-row { grid-template-columns: 40px minmax(0, 1fr); } .mv-act { grid-column: 2 / -1; justify-content: flex-start; }
  .mv-detail { grid-column: 1 / -1; }
  .mv-menu { right: auto; left: 0; }
}
.mv .mv-later > .mv-menu { width: 230px; min-width: 230px; max-width: none; margin: 0; background: #fff; backdrop-filter: none; }
:root[data-theme="dark"] .mv .mv-later > .mv-menu { background: var(--hk-surface-float, #1E293B); }

/* ---------- Workload planner ---------- */
.wp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.wp-t { padding: 14px 18px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.wp-t span { display: block; color: var(--hk-color-text-2); font-size: 12.5px; } .wp-t b { display: block; margin-top: 2px; font-size: 24px; font-weight: 600; }
.wp-t b.is-good { color: #15803D; } .wp-t b.is-bad { color: #BE123C; }
.wp-hint { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; background: #F5F3FF; color: #4C1D95; font-size: 13.5px; }
.wp-hint-ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #fff; color: #6D28D9; }
.wp-hint-t { flex: 1; } .wp-hint-t b { font-weight: 600; }
.wp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.wp-bar select { width: auto; min-width: 160px; height: 38px; border-radius: 999px; }
.wp-scroll { overflow-x: auto; border-radius: 24px; box-shadow: var(--hk-shadow-float); }
.wp-grid { min-width: 980px; background: var(--hk-surface-float, #fff); }
.wp-row { display: grid; border-top: 1px solid var(--hk-color-divider); }
.wp-row:first-child { border-top: 0; }
.wp-head { background: var(--hk-ink-a2, #FAFBFC); }
.wp-head > div { padding: 12px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 700; }
.wp-head > .is-today { color: #4338CA; }
.wp-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border-right: 1px solid var(--hk-color-divider); }
.wp-person > div { min-width: 0; }
.wp-person a { color: inherit; text-decoration: none; } .wp-person a:hover b { text-decoration: underline; }
.wp-person b { display: block; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.wp-person small { display: block; color: var(--hk-color-text-2); font-size: 12px; }
.wp-wk { display: block; width: 120px; max-width: 100%; height: 5px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: var(--hk-ink-a8, #E2E8F0); }
.wp-wk i { display: block; height: 100%; background: #22C55E; }
.wp-wk.l-near i { background: #F59E0B; } .wp-wk.l-over i { background: #EF4444; }
.wp-cell { position: relative; min-width: 0; min-height: 92px; padding: 8px; border-right: 1px solid var(--hk-color-divider); }
.wp-cell.is-today { background: rgba(99,102,241,.04); }
.wp-cell.is-over { background: #FFF5F6; }
.wp-cell.is-off { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--hk-ink-a4) 8px 16px); }
.wp-cell.is-past { opacity: .55; }
.wp-cell.is-drop { outline: 2px dashed #6366F1; outline-offset: -4px; background: #EEF2FF; }
.wp-off { display: grid; place-items: center; height: 70px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; }
.wp-hrs { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #94A3B8; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wp-m { display: block; flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: var(--hk-ink-a8, #E2E8F0); }
.wp-m i { display: block; height: 100%; background: #CBD5E1; }
.wp-hrs.l-ok { color: #15803D; } .wp-hrs.l-ok .wp-m i { background: #22C55E; }
.wp-hrs.l-near { color: #B45309; } .wp-hrs.l-near .wp-m i { background: #F59E0B; }
.wp-hrs.l-over { color: #BE123C; } .wp-hrs.l-over .wp-m i { background: #EF4444; }
.wp-chip { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0 0 5px; padding: 5px 7px; border: 0; border-left: 3px solid var(--c); border-radius: 9px; background: var(--hk-ink-a2, #F8FAFC); color: var(--hk-color-text); font: inherit; font-size: 11.5px; line-height: 1.25; text-align: left; cursor: grab; }
.wp-chip:hover { background: var(--hk-ink-a4); }
.wp-chip.is-locked { cursor: default; opacity: .8; }
.wp-chip.is-static { width: auto; max-width: 220px; cursor: default; }
.wp-chip > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-chip em { color: var(--hk-color-text-2); font-style: normal; font-weight: 700; }
.wp-chip.is-late em { color: #BE123C; }
.wp-chip.is-late { border-left-color: #E11D48; background: #FFF1F2; }
.wp-chip.is-late:hover { background: #FFE4E6; }
.wp-hint.is-week { background: #EFF6FF; color: #1E3A8A; }
.wp-hint.is-week .wp-hint-ic { color: #1D4ED8; }
.wp-wkname { display: inline-flex; align-items: center; height: 22px; margin-right: 8px; padding: 0 8px; border-radius: 7px; background: #DBEAFE; color: #1E40AF; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.wp-trk { display: grid; place-content: center; height: 70px; color: var(--hk-color-text-2); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; }
.wp-trk small { display: block; color: var(--hk-color-text-3); font-size: 11px; font-weight: 500; }
.wp-late-h { margin: 2px 0 6px; color: #BE123C; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wp-late-h.is-plain { margin-top: 10px; color: var(--hk-color-text-3); }
.wp-chip.is-ghost { opacity: .35; }
.wp-loose { min-width: 0; padding: 8px; background: var(--hk-ink-a2, #FCFCFD); }
.wp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 4px 18px; color: var(--hk-color-text-2); font-size: 12px; }
.wp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.wp-legend .l-ok { background: #22C55E; } .wp-legend .l-near { background: #F59E0B; } .wp-legend .l-over { background: #EF4444; }
.wp-legend .l-late { background: #E11D48; }
.wp-est { max-width: 860px; padding: 18px 20px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.wp-est-h h2 { margin: 0; font-size: 16px; } .wp-est-h p { margin: 2px 0 8px; color: var(--hk-color-text-2); font-size: 12.5px; }
.wp-est-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.wp-est-row > span { flex: 1; min-width: 0; } .wp-est-row input { width: 90px; height: 36px; }
.wp-est-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.wp-effect { margin: 0; font-size: 13px; font-weight: 600; } .wp-effect.is-ok { color: #15803D; } .wp-effect.is-bad { color: #BE123C; }
.wp-sg { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-top: 1px solid var(--hk-color-divider); font-size: 13px; }
.wp-sg:first-child { border-top: 0; } .wp-sg .wp-chip { margin: 0; flex: none; } .wp-sg-t { flex: 1; }
.wt-chip.t-ok { background: #DCFCE7; color: #15803D; }
@media (max-width: 760px) { .wp-tiles { grid-template-columns: 1fr 1fr; } .wp-hint { flex-wrap: wrap; } }
.wp-mobile { display: none; }
.wp-mdays { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; }
.wp-mdays button { display: grid; flex: none; place-items: center; width: 52px; height: 56px; border: 0; border-radius: 16px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); color: var(--hk-color-text-2); font: inherit; font-size: 11px; }
.wp-mdays button b { display: block; color: var(--hk-color-text); font-size: 16px; }
.wp-mdays button.is-on { background: var(--hk-color-ink-900, #0F172A); color: #CBD5E1; } .wp-mdays button.is-on b { color: #fff; }
.wp-mp { margin: 0 0 10px; padding: 14px; border-radius: 20px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.wp-mp-top { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; } .wp-mp-top b { font-size: 14px; }
.wp-off.is-inline { display: block; height: auto; padding: 4px 0; text-align: left; }
@media (max-width: 760px) { .wp-scroll { display: none; } .wp-mobile { display: block; } .wp-legend .wp-legend-t { display: none; } }

/* ===== Testing fixes (2.24.94) ===== */
/* Tasks: six summary tiles, and labels wrap instead of being cut off */
.tk-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.tk-stat-copy span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.tk-stat-copy small{color:var(--hk-color-text-3,#64748b);font-size:11.5px;margin-top:2px}
@media (max-width:1280px){.tk-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.tk-stats{display:flex}}
/* HR desk: five counts for today */
.hh-cnt{grid-template-columns:repeat(5,minmax(0,1fr))}
.hh-cnt small{display:block;line-height:1.2}
.hh-cnt a.is-live b{color:var(--hk-state-success-text,#15803d)}
/* Timesheet: screenshots on a day */
.ts-shots{display:inline-flex;align-items:center;gap:3px;margin-top:3px;font-size:11px;font-weight:600;color:var(--hk-color-text-2,#475569)}
/* My day: meeting titles open the meeting */
.my-ev-link{color:inherit;text-decoration:none}
.my-ev-link:hover b{text-decoration:underline}
/* Back button at the top of every page opened from another one */
.topbar .hk-back{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;font-weight:600;flex:0 0 auto}
.topbar .hk-back[hidden]{display:none}
@media (max-width:640px){.topbar .hk-back span{display:none}.topbar .hk-back{padding:0 11px}}
/* Dark mode: menu icons brighter and easier to pick out */
.nx-dark .nx-ic{color:#F1F5F9}
.nx-dark .nx-ic .du{opacity:.85}
.nx-dark .nx-sublink{color:#CBD5E1}
.nx-dark .nx-sublink .nx-svg{color:#E2E8F0}
.nx-dark .nx-sublink .nx-svg .du{fill:var(--d);opacity:.9}
.nx-dark .nx-sublink.is-on .nx-svg{color:var(--d)}
/* Project services: has each one started? */
.ps-state{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:600;vertical-align:1px}
.ps-state.is-ok{background:#e7f6ec;color:#17733a}
.ps-state.is-mut{background:#eef0f3;color:#475569}
.ps-state.is-warn{background:#fff4e0;color:#9a5b00}
.ps-state.is-done{background:#e6eefc;color:#1d4ed8}
.ps-row.is-not_started .ps-ic,.ps-row.is-done .ps-ic{opacity:.55}
.ps-pick select{height:34px;padding:0 30px 0 10px;border-radius:10px;font-size:13px;font-weight:600}
.ps-msg{margin:8px 0 0;font-size:13px;color:var(--muted)}
.ps-msg.is-ok{color:#17733a}.ps-msg.is-bad{color:#b42318}
@media (max-width:640px){.ps-row{flex-wrap:wrap}.ps-pick{order:3;margin-left:44px}}
.pj-chip[hidden]{display:none}
/* Announcements bar: close button */
.hk-tk-x{flex:0 0 auto;display:inline-grid;place-items:center;width:40px;border:0;border-left:1px solid rgba(15,23,42,.08);background:transparent;color:var(--muted,#475569);cursor:pointer;padding:0}
.hk-tk-x:hover{background:rgba(15,23,42,.06);color:var(--ink,#171717)}
.hk-tk-x:focus-visible{outline:2px solid var(--focus,#2563eb);outline-offset:-2px}
/* ===== End testing fixes (2.24.94) ===== */

/* ===== Testing fixes (2.24.97) ===== */
.smr-accept{display:inline-flex;margin:6px 0 0 8px;vertical-align:middle}
/* Notes: reminders */
.pn-bell[aria-pressed="true"]{background:#1f2937;color:#fff}
.pn-reminder{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 4px 3px 9px;border-radius:999px;background:rgba(15,23,42,.08);font-size:12px;font-weight:600;color:#1f2937}
.pn-reminder.is-sent{opacity:.6}
.pn-rx{display:inline-grid;place-items:center;width:20px;height:20px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;padding:0}
.pn-rx:hover{background:rgba(15,23,42,.12)}
.pn-remind-set{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pn-remind-set[hidden]{display:none}
.pn-remind-set input{height:34px;padding:0 8px;border-radius:8px;border:1px solid rgba(15,23,42,.15);background:rgba(255,255,255,.7);font:inherit;font-size:13px}
/* Client portal: where each service is */
.pc-svc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.pc-svc-item{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:12px;background:var(--page,#fff);box-shadow:0 1px 2px rgba(15,23,42,.06);border:1px solid rgba(15,23,42,.06);font-size:13px}
.pc-svc-item span{color:var(--muted,#475569)}
.pc-svc-item.is-started span{color:#17733a}
.pc-svc-item.is-on_hold span{color:#9a5b00}
/* Project services card on phones: status picker on its own line */
.ps-state{white-space:nowrap}
@media (max-width:640px){
  .ps-card .ps-row{flex-wrap:wrap;align-items:flex-start}
  .ps-card .ps-tx{flex:1 1 calc(100% - 60px)}
  .ps-card .ps-pick{order:3;flex:1 1 auto;margin-left:46px}
  .ps-card .ps-pick select{width:100%}
  .ps-card .ps-row > .wf-viewall{order:4;align-self:center}
}
.pn-card .pn-body,.pn-card .pn-body:focus,.pn-card .pn-body:hover,.pn-new textarea:focus{background:transparent;box-shadow:none;outline:none;border:0}
.launch-options .launch-sub{margin-left:26px}
.launch-options label.is-off{opacity:.5}
/* Deleting an employee */
.er-del{color:#b42318}
.er-del:hover{background:#fdecec;color:#912018}
.er-del-dialog{width:min(620px,calc(100vw - 32px))}
.er-del-dialog .dialog-body{display:grid;gap:12px}
.er-del-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.er-del-cols h3{margin:0 0 6px;font-size:13px}
.er-del-cols ul{margin:0;padding-left:18px;font-size:13px;display:grid;gap:4px}
@media (max-width:560px){.er-del-cols{grid-template-columns:1fr}}
.er-del-list{margin:0;padding-left:18px;font-size:13px;display:grid;gap:5px}
.er-del-list li.is-kept{text-decoration:line-through;opacity:.55}
.employee-row-menu-panel .em-del-item{color:#b42318}
.employee-row-menu-panel .em-del-item:hover{background:#fdecec}

/* Image cropper for photos and logos (2.25.4) */
dialog.ic-dlg{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.ic-body{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:20px;padding:20px;align-items:start}
.ic-stage{position:relative;width:100%;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#0f172a;cursor:grab;touch-action:none;user-select:none;outline:none}
.ic-stage:focus-visible{box-shadow:0 0 0 3px rgba(37,99,235,.45)}
.ic-stage.is-dragging{cursor:grabbing}
.ic-stage canvas{display:block}
.ic-side{display:grid;gap:16px;align-content:start}
.ic-tip{margin:0;color:var(--muted,#64748b);font-size:13px;line-height:1.5}
.ic-zoom{display:flex;align-items:center;gap:10px;color:var(--muted,#64748b)}
.ic-zoom input{flex:1;min-width:0;accent-color:#2563eb}
.ic-tools{display:flex;flex-wrap:wrap;gap:8px}
.ic-tools .button{display:inline-flex;align-items:center;gap:6px}
.ic-preview{display:grid;gap:8px}
.ic-preview-label{font-size:12px;font-weight:600;color:var(--muted,#64748b);text-transform:uppercase;letter-spacing:.04em}
.ic-previews{display:flex;align-items:flex-end;gap:12px}
.ic-previews canvas{display:block;border:1px solid var(--line,#e2e8f0);background:#fff}
@media (max-width:640px){
  .ic-body{grid-template-columns:1fr;padding:14px;gap:14px}
  .ic-stage{max-width:360px;margin:0 auto}
  .ic-tip{font-size:12px}
}

/* ===== Planner calendar (2.26.0) ===== */
.gc { --gc-line: #E6EAF0; --gc-soft: #F6F8FB; --gc-text2: #5B6474; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
.gc-side { position: sticky; top: 12px; display: grid; gap: 14px; max-height: calc(100vh - 24px); overflow: auto; padding: 4px 4px 16px; scrollbar-width: thin; }
.gc-side-head { display: none; }
.gc-create { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 48px; padding: 0 22px 0 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.12), 0 4px 14px rgba(15,23,42,.08); font: inherit; font-weight: 600; font-size: 15px; color: #0F172A; cursor: pointer; }
.gc-create:hover { box-shadow: 0 2px 4px rgba(15,23,42,.14), 0 8px 22px rgba(15,23,42,.12); }
.gc-mini { padding: 4px 2px; }
.gc-mini-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px 8px; font-size: 14px; }
.gc-mini-head button, .gc-ico { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #334155; cursor: pointer; }
.gc-mini-head button:hover, .gc-ico:hover { background: #EEF2F7; }
.gc-mini-head .is-next svg, .gc-ico.is-next svg { transform: scaleX(-1); }
.gc-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.gc-mini-dow { font-size: 11px; color: #94A3B8; font-weight: 600; padding: 2px 0 4px; }
.gc-mini-grid button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font: inherit; font-size: 12px; color: #1E293B; cursor: pointer; padding: 0; }
.gc-mini-grid button:hover { background: #EEF2F7; }
.gc-mini-grid .is-out { color: #B6BFCC; }
.gc-mini-grid .is-range { background: #EAF1FF; border-radius: 0; }
.gc-mini-grid .is-today { background: #2563EB !important; color: #fff; font-weight: 700; border-radius: 50%; }
.gc-mini-grid .is-sel:not(.is-today) { box-shadow: inset 0 0 0 2px #2563EB; border-radius: 50%; font-weight: 700; }
.gc-sec h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; padding: 0 6px; font-size: 13px; font-weight: 700; color: #334155; }
.gc-mini-btn { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #475569; cursor: pointer; }
.gc-mini-btn:hover { background: #EEF2F7; }
.gc-cals { display: grid; gap: 1px; }
.gc-cals-sub { margin: 8px 6px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #94A3B8; }
.gc-cal { position: relative; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 3px 4px 3px 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.gc-cal:hover { background: #F1F5F9; }
.gc-cal input { position: absolute; opacity: 0; pointer-events: none; }
.gc-cal > i { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--c); background: var(--c); position: relative; }
.gc-cal > i::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gc-cal input:not(:checked) + i { background: transparent; }
.gc-cal input:not(:checked) + i::after { display: none; }
.gc-cal input:focus-visible + i { outline: 2px solid #93C5FD; outline-offset: 2px; }
.gc-cal > span { flex: 1; min-width: 0; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.gc-cal small { display: block; color: #94A3B8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-row-btn { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #64748B; cursor: pointer; opacity: 0; }
.gc-cal:hover .gc-row-btn, .gc-group:hover .gc-row-btn, .gc-row-btn:focus-visible { opacity: 1; }
.gc-row-btn:hover { background: #E2E8F0; color: #0F172A; }
.gc-scope { display: grid; gap: 4px; margin: 8px 6px 0; font-size: 12px; color: #64748B; }
.gc-scope select { height: 32px; font-size: 13px; }
.gc-empty-side { margin: 0; padding: 2px 8px; font-size: 12.5px; color: #94A3B8; line-height: 1.45; }
.gc-link { border: 0; background: none; padding: 0; color: #2563EB; font: inherit; cursor: pointer; text-decoration: underline; }
.gc-find { position: relative; margin: 0 2px 6px; }
.gc-find > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94A3B8; display: flex; }
.gc-find input { width: 100%; height: 36px; padding-left: 32px; border-radius: 10px; font-size: 13px; }
.gc-find-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--gc-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 4px; }
.gc-find-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; cursor: pointer; }
.gc-find-list button:hover, .gc-find-list button:focus { background: #F1F5F9; }
.gc-find-list button span { min-width: 0; line-height: 1.25; }
.gc-find-list b { display: block; font-size: 13.5px; font-weight: 600; }
.gc-find-list small { display: block; color: #94A3B8; font-size: 12px; }
.gc-find-list p { margin: 0; padding: 8px 10px; color: #64748B; font-size: 13px; }
.gc-group { display: flex; align-items: center; gap: 10px; padding: 3px 4px 3px 6px; border-radius: 8px; }
.gc-group:hover { background: #F1F5F9; }
.gc-group > i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); flex: none; }
.gc-group-name { flex: 1; min-width: 0; border: 0; background: none; padding: 2px 0; text-align: left; font: inherit; cursor: pointer; }
.gc-group-name b { display: block; font-size: 13.5px; font-weight: 600; }
.gc-group-name small { display: block; font-size: 11.5px; color: #94A3B8; }
.gc-links { display: grid; gap: 2px; border-top: 1px solid var(--gc-line); padding-top: 10px; }
.gc-links button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; color: #334155; cursor: pointer; text-align: left; }
.gc-links button:hover { background: #F1F5F9; color: #0F172A; }

.gc-main { min-width: 0; padding: 12px 14px 14px; border-radius: 22px; background: var(--hk-surface-float, #fff); box-shadow: var(--hk-shadow-float); }
.gc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.gc-bar h2 { margin: 0 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.gc-sp { flex: 1; }
.gc-menu { display: none; }
.gc-bar .gc-bar-new { display: none; }
.gc-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #DCE2EA; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #0F172A; cursor: pointer; }
.gc-btn:hover { background: #F8FAFC; }
.gc-btn.is-pri { background: #0F172A; border-color: #0F172A; color: #fff; }
.gc-btn.is-pri:hover { background: #000; }
.gc-arrows { display: inline-flex; }
.gc-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #EEF2F7; }
.gc-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; }
.gc-seg button.is-on { background: #fff; color: #0F172A; box-shadow: 0 1px 2px rgba(15,23,42,.12); }
.gc-free-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #166534; cursor: pointer; }
.gc-free-toggle input { accent-color: #16A34A; width: 16px; height: 16px; }
.gc-board { position: relative; min-height: 420px; transition: opacity .15s; }
.gc-board.is-busy { opacity: .6; }
.gc-loading, .gc-empty { padding: 40px 12px; text-align: center; color: #64748B; margin: 0; }

/* Day and week */
.gc-grid { --gw: 58px; display: grid; grid-template-rows: auto auto 1fr; border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; background: #fff; }
.gc-ghead, .gc-allday { display: grid; grid-template-columns: var(--gw) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--gc-line); padding-right: var(--sbw, 0px); }
.gc-gutter-h { display: flex; align-items: flex-end; justify-content: flex-end; padding: 4px 8px; font-size: 10.5px; color: #94A3B8; text-align: right; line-height: 1.2; }
.gc-allday .gc-gutter-h { align-items: center; }
.gc-colh { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border: 0; border-left: 1px solid var(--gc-line); background: none; font: inherit; cursor: pointer; color: #64748B; min-width: 0; }
.gc-colh:hover { background: #F8FAFC; }
.gc-colh span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gc-colh b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 21px; font-weight: 500; color: #0F172A; }
.gc-colh.is-today span { color: #2563EB; }
.gc-colh.is-today b { background: #2563EB; color: #fff; }
.gc-colh.is-weekend span { color: #94A3B8; }
.gc-colh.is-person { grid-auto-flow: row; padding: 8px 4px; }
.gc-colh-av { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.gc-colh-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: #0F172A; }
.gc-adcell { min-height: 30px; padding: 3px; border-left: 1px solid var(--gc-line); display: grid; gap: 2px; align-content: start; min-width: 0; cursor: pointer; }
.gc-adcell:hover { background: #FAFBFD; }
.gc-scroll { overflow-y: auto; max-height: calc(100vh - 290px); min-height: 360px; scrollbar-width: thin; }
.gc-body { position: relative; display: grid; grid-template-columns: var(--gw) repeat(var(--cols), minmax(0, 1fr)); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #EEF1F5 47px, #EEF1F5 48px); }
.gc-gutter { position: relative; }
.gc-gutter span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: #94A3B8; white-space: nowrap; }
.gc-col { position: relative; border-left: 1px solid var(--gc-line); cursor: cell; touch-action: pan-y; min-width: 0; }
.gc-col.is-today { background: rgba(37,99,235,.025); }
.gc-off { position: absolute; left: 0; right: 0; background: rgba(148,163,184,.10); pointer-events: none; }
.gc-freeblock { position: absolute; left: 0; right: 0; background: rgba(22,163,74,.07); border-left: 3px solid rgba(22,163,74,.55); pointer-events: none; }
.gc-freeblock span { position: absolute; top: 3px; right: 6px; font-size: 10.5px; font-weight: 700; color: #15803D; letter-spacing: .03em; text-transform: uppercase; }
.gc-now { position: absolute; left: -1px; right: 0; height: 2px; background: #EA4335; z-index: 4; pointer-events: none; }
.gc-now::before { content: ''; position: absolute; left: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #EA4335; }
.gc-ev { position: absolute; z-index: 2; overflow: hidden; padding: 3px 7px; border-radius: 7px; background: var(--c); color: #fff; font-size: 12px; line-height: 1.3; cursor: pointer; box-shadow: 0 0 0 1px #fff; user-select: none; }
.gc-ev:hover { z-index: 3; box-shadow: 0 0 0 1px #fff, 0 4px 14px rgba(15,23,42,.22); }
.gc-ev:focus-visible { outline: 2px solid #0F172A; outline-offset: 1px; }
.gc-ev-t { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev-time { display: block; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.gc-ev.is-short { padding-top: 1px; padding-bottom: 1px; }
.gc-ev.is-short .gc-ev-t { display: inline; }
.gc-ev.is-short .gc-ev-time { display: inline; margin-left: 6px; }
.gc-ev.is-other { background: color-mix(in srgb, var(--c) 18%, #fff); color: #0F172A; border-left: 3px solid var(--c); }
.gc-ev.is-priv, .gc-chip.is-priv { background: repeating-linear-gradient(135deg, #E2E8F0 0 6px, #EEF2F7 6px 12px); color: #475569; border-left: 3px solid var(--c); }
.gc-ev.is-needs { background: #fff; color: color-mix(in srgb, var(--c) 80%, #000); border: 1.5px dashed var(--c); }
.gc-ev.is-no, .gc-chip.is-no { opacity: .55; text-decoration: line-through; }
.gc-ev.is-auto { background: color-mix(in srgb, var(--c) 14%, #fff); color: #0F172A; border-left: 3px solid var(--c); }
.gc-ev.is-todo { background: color-mix(in srgb, var(--c) 14%, #fff); color: #0F172A; border-left: 3px solid var(--c); }
.gc-ev.is-done .gc-ev-t, .gc-chip.is-done span { text-decoration: line-through; opacity: .65; }
.gc-ev.is-dragging { opacity: .35; }
.gc-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.gc-rs::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: rgba(255,255,255,.7); opacity: 0; }
.gc-ev:hover .gc-rs::after { opacity: 1; }
.gc-ghost { position: absolute; left: 2px; right: 4px; z-index: 5; padding: 3px 7px; border-radius: 7px; background: var(--c, #2563EB); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 18px rgba(37,99,235,.35); pointer-events: none; }
.gc-tick { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 5px; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: -1px; position: relative; cursor: pointer; }
.gc-tick.is-on { background: currentColor; }
.gc-tick.is-on::after { content: ''; position: absolute; left: 3px; top: 0; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
body.gc-dragging, body.gc-dragging * { cursor: grabbing !important; user-select: none; }

/* Chips: all-day row, month and lists */
.gc-chip { display: flex; align-items: center; gap: 5px; min-width: 0; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; }
.gc-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-chip.is-timed { background: transparent; color: #1E293B; font-weight: 500; padding-left: 4px; }
.gc-chip.is-timed:hover, .gc-chip.is-other:hover { background: #F1F5F9; }
.gc-chip .gc-pip { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gc-chip.is-other:not(.is-timed) { background: color-mix(in srgb, var(--c) 18%, #fff); color: #0F172A; border-left: 3px solid var(--c); }
.gc-chip.is-late:not(.is-timed) { box-shadow: inset 0 0 0 1.5px #DC2626; }
.gc-chip[data-drag] { cursor: grab; }
.gc-chip .gc-tick { color: inherit; }
.gc-more { justify-self: start; border: 0; background: none; padding: 1px 6px; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 700; color: #334155; cursor: pointer; }
.gc-more:hover { background: #E2E8F0; }

/* Month */
.gc-month { border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; background: #fff; }
.gc-mhead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--gc-line); }
.gc-mhead span { padding: 8px; text-align: center; font-size: 11.5px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .04em; }
.gc-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(112px, 1fr); }
.gc-mcell { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 4px 4px 6px; border-right: 1px solid var(--gc-line); border-bottom: 1px solid var(--gc-line); cursor: pointer; }
.gc-mcell:nth-child(7n) { border-right: 0; }
.gc-mcell:hover { background: #FAFBFD; }
.gc-mcell.is-out { background: #FAFBFC; }
.gc-mcell.is-out .gc-mnum { color: #B6BFCC; }
.gc-mcell.is-offday { background-image: linear-gradient(rgba(148,163,184,.06), rgba(148,163,184,.06)); }
.gc-mcell.is-drop, .gc-adcell.is-drop { background: #EAF1FF; box-shadow: inset 0 0 0 2px #93C5FD; }
.gc-mnum { justify-self: center; min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 13px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: #1E293B; cursor: pointer; }
.gc-mnum:hover { background: #E2E8F0; }
.gc-mcell.is-today .gc-mnum { background: #2563EB; color: #fff; }

/* List */
.gc-agenda { display: grid; border: 1px solid var(--gc-line); border-radius: 14px; overflow: hidden; background: #fff; }
.gc-ag-day { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--gc-line); }
.gc-ag-day:last-child { border-bottom: 0; }
.gc-ag-date { display: flex; align-items: baseline; gap: 8px; align-self: start; border: 0; background: none; padding: 6px 4px; font: inherit; cursor: pointer; text-align: left; }
.gc-ag-date b { font-size: 22px; font-weight: 500; line-height: 1; }
.gc-ag-date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: #64748B; }
.gc-ag-day.is-today .gc-ag-date b { color: #2563EB; }
.gc-ag-list { display: grid; gap: 2px; min-width: 0; }
.gc-ag-row { display: grid; grid-template-columns: 132px 14px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; cursor: pointer; color: #0F172A; }
.gc-ag-row:hover { background: #F1F5F9; }
.gc-ag-time { font-size: 13px; color: #475569; white-space: nowrap; }
.gc-ag-row > i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.gc-ag-row > i.is-todo { border-radius: 4px; background: transparent; border: 2px solid var(--c); }
.gc-ag-row > i.is-todo.is-on { background: var(--c); }
.gc-ag-t { min-width: 0; }
.gc-ag-t b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-ag-t small { display: block; font-size: 12px; color: #64748B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-ag-row.is-done b { text-decoration: line-through; color: #94A3B8; }
.gc-ag-row.is-no { opacity: .55; }

/* Under the calendar */
.gc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.gc-free-card { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 360px; padding: 10px 14px; border-radius: 14px; background: #F0FDF4; border: 1px solid #DCFCE7; }
.gc-free-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #DCFCE7; color: #15803D; flex: none; }
.gc-free-card b { font-size: 14px; }
.gc-free-card p { margin: 2px 0 0; font-size: 13px; color: #166534; }
.gc-free-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 !important; }
.gc-free-list button { border: 1px solid #BBF7D0; background: #fff; color: #166534; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.gc-free-list button:hover { background: #16A34A; color: #fff; border-color: #16A34A; }
.gc-zone-note { flex-basis: 100%; font-size: 12px; color: #94A3B8; }

/* Quick create */
.gc-pop { position: fixed; z-index: 1000; width: 340px; max-width: calc(100vw - 16px); padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(15,23,42,.24), 0 0 0 1px rgba(15,23,42,.05); display: grid; gap: 10px; }
.gc-pop-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #64748B; cursor: pointer; }
.gc-pop-x:hover { background: #F1F5F9; }
.gc-pop-title { border: 0 !important; border-bottom: 2px solid #E2E8F0 !important; border-radius: 0 !important; padding: 6px 2px !important; font-size: 19px !important; box-shadow: none !important; background: transparent !important; width: calc(100% - 30px); }
.gc-pop-title:focus { border-bottom-color: #2563EB !important; outline: 0; }
.gc-pop-title.is-bad { border-bottom-color: #DC2626 !important; }
.gc-pop-tabs, .gc-pop-kind { display: flex; gap: 6px; }
.gc-pop-tabs button, .gc-pop-kind button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
.gc-pop-tabs button.is-on { background: #E8F0FE; border-color: #C7D7FE; color: #1D4ED8; }
.gc-pop-kind i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.gc-pop-kind button.is-on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); color: #0F172A; }
.gc-pop-when { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: #334155; }
.gc-pop-when svg { flex: none; color: #64748B; }
.gc-pop-foot { display: flex; justify-content: flex-end; gap: 8px; }
.gc-menu-pop { width: 260px; gap: 2px; padding: 8px; }
.gc-menu-pop button { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; color: #1E293B; }
.gc-menu-pop button:hover { background: #F1F5F9; }
.gc-menu-h { margin: 0 0 4px; padding: 4px 10px 8px; border-bottom: 1px solid #EEF2F7; }
.gc-menu-h small { display: block; color: #64748B; font-size: 12px; }

/* Details panel */
.gc-detail { position: fixed; z-index: 900; top: 12px; right: 12px; bottom: 12px; width: 400px; max-width: calc(100vw - 24px); overflow-y: auto; padding: 0 20px 20px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(15,23,42,.24), 0 0 0 1px rgba(15,23,42,.05); transform: translateX(24px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.gc-detail.is-open { transform: none; opacity: 1; }
.gc-d-bar { height: 6px; margin: 0 -20px 0; background: var(--c); }
.gc-d-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 0 8px; background: #fff; }
.gc-d-type { flex: 1; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, #000); text-transform: uppercase; letter-spacing: .04em; }
.gc-d-acts { display: flex; gap: 2px; }
.gc-d-title { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 4px; font-size: 21px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.gc-d-title.is-done { text-decoration: line-through; color: #94A3B8; }
.gc-tick-big { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border: 2px solid #94A3B8; border-radius: 50%; background: #fff; color: transparent; cursor: pointer; }
.gc-tick-big:hover { border-color: #16A34A; color: #16A34A; }
.gc-tick-big.is-on { background: #16A34A; border-color: #16A34A; color: #fff; }
.gc-d-when { margin: 0 0 14px; font-size: 14px; color: #334155; }
.gc-d-when span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #64748B; }
.gc-d-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid #F1F5F9; font-size: 14px; }
.gc-d-ic { color: #64748B; padding-top: 1px; display: flex; }
.gc-d-row small { display: block; font-size: 12.5px; color: #64748B; }
.gc-d-row a { color: #2563EB; overflow-wrap: anywhere; }
.gc-d-url { margin-top: 6px; overflow-wrap: anywhere; }
.gc-join { display: inline-flex !important; color: #fff !important; text-decoration: none; }
.gc-d-desc { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.gc-d-people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.gc-d-people li { display: flex; align-items: center; gap: 10px; position: relative; }
.gc-d-people li > .gc-d-pt { flex: 1; min-width: 0; line-height: 1.25; }
.gc-d-people b { display: block; font-size: 13.5px; font-weight: 600; }
.gc-ext-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E2E8F0; color: #475569; font-size: 11px; font-weight: 700; flex: none; }
.gc-ext-av svg { width: 14px; height: 14px; }
.gc-r { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #CBD5E1; }
.gc-r.is-yes { background: #16A34A; }
.gc-r.is-no { background: #DC2626; }
.gc-r.is-maybe { background: #F59E0B; }
.gc-rsvp { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #F8FAFC; }
.gc-rsvp b { font-size: 14px; }
.gc-rsvp span { display: flex; gap: 6px; margin-left: auto; }
.gc-rsvp button { height: 32px; padding: 0 14px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gc-rsvp button.is-yes { background: #16A34A; border-color: #16A34A; color: #fff; }
.gc-rsvp button.is-no { background: #DC2626; border-color: #DC2626; color: #fff; }
.gc-rsvp button.is-maybe { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.gc-late { color: #DC2626 !important; font-weight: 600; }
.gc-d-task-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #F1F5F9; }
.gc-due { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.gc-due input { height: 34px; width: auto; }
.gc-d-open, .gc-d-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #F1F5F9; }

/* Dialogs */
dialog.gc-dlg { padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 64px rgba(15,23,42,.26); }
dialog.gc-editor { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog.gc-day-dlg { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog.gc-panel-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; }
dialog.gc-ask { width: min(420px, calc(100vw - 24px)); }
.gc-ed-tabs { display: flex; gap: 6px; padding: 10px 20px 0; flex-wrap: wrap; }
.gc-ed-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; }
.gc-ed-tabs button.is-on { background: #E8F0FE; border-color: #C7D7FE; color: #1D4ED8; }
.gc-ed-body { gap: 14px; }
.gc-ed-title { border: 0 !important; border-bottom: 2px solid #E2E8F0 !important; border-radius: 0 !important; padding: 6px 2px !important; font-size: 22px !important; font-weight: 500; background: transparent !important; box-shadow: none !important; }
.gc-ed-title:focus { border-bottom-color: #2563EB !important; outline: 0; }
.gc-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-kind button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #E2E8F0; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.gc-kind button i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.gc-kind button b { display: block; font-size: 14px; }
.gc-kind button small { display: block; font-size: 12px; color: #64748B; }
.gc-kind button.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); }
.gc-when, .gc-ed-sec { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.gc-ed-ic { display: flex; padding-top: 9px; color: #64748B; }
.gc-ed-ic.sm { padding-top: 0; }
.gc-when-main { display: grid; gap: 8px; min-width: 0; }
.gc-when-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gc-when-row input[type="date"] { width: auto; min-width: 150px; }
.gc-when-row input[type="time"] { width: auto; min-width: 116px; }
[data-gc-timebox], [data-gc-endbox], [data-gc-until] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
[data-gc-timebox][hidden], [data-gc-endbox][hidden], [data-gc-until][hidden], .gc-to[hidden], [data-gc-multi-box][hidden] { display: none; }
.gc-to { color: #64748B; font-size: 13.5px; }
.gc-when-opts { gap: 14px; }
.gc-zone { font-size: 12px; color: #94A3B8; }
.gc-repeat select { width: auto; }
.gc-ed-grow { min-width: 0; display: grid; gap: 8px; }
.gc-two { grid-template-columns: 1fr 1fr; }
.gc-guest-add { position: relative; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-chips:empty { display: none; }
.gc-chip-g { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 4px 3px 4px; border-radius: 999px; background: #F1F5F9; font-size: 13px; }
.gc-chip-g > span { min-width: 0; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-chip-g small { display: block; font-size: 11px; color: #64748B; }
.gc-chip-g button { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #64748B; cursor: pointer; }
.gc-chip-g button:hover { background: #E2E8F0; color: #0F172A; }
.gc-chip-g button svg { width: 12px; height: 12px; }
.gc-findtime { display: grid; gap: 8px; }
.gc-findtime > .button { justify-self: start; }
.gc-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-slots p { flex-basis: 100%; margin: 0; }
.gc-slots button { border: 1px solid #BBF7D0; background: #F0FDF4; color: #166534; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gc-slots button:hover, .gc-slots button.is-on { background: #16A34A; color: #fff; border-color: #16A34A; }
.gc-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-sw { display: inline-block; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); position: relative; padding: 0; }
.gc-sw.is-on, .gc-sw-l input:checked + .gc-sw { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.gc-sw.is-default::after { content: 'A'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.gc-sw-l { position: relative; display: inline-flex; cursor: pointer; }
.gc-sw-l input { position: absolute; opacity: 0; pointer-events: none; }
.gc-sw-l input:focus-visible + .gc-sw { outline: 2px solid #0F172A; outline-offset: 3px; }
.gc-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--c, #3F51B5); margin-top: 5px; }
form.is-todo [data-gc-guests-sec], form.is-todo .gc-ed-sec:has([name="meeting_url"]) { display: none; }
.gc-ed-foot { align-items: center; }
.gc-errors { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FEF2F2; color: #991B1B; font-size: 13.5px; }
.gc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gc-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gc-day-body { gap: 12px; }
.gc-day-list { display: grid; gap: 2px; margin: 0 -8px; }
.gc-day-list .gc-ag-row { grid-template-columns: 110px 14px minmax(0, 1fr); }
.gc-day-free { padding: 10px 12px; border-radius: 12px; background: #F0FDF4; }
.gc-day-free b { font-size: 13.5px; color: #166534; }
.gc-pform { gap: 14px; }
.gc-flabel { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.gc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-days label { position: relative; cursor: pointer; }
.gc-days input { position: absolute; opacity: 0; pointer-events: none; }
.gc-days span { display: inline-grid; place-items: center; min-width: 48px; height: 34px; padding: 0 10px; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 13px; font-weight: 600; color: #475569; }
.gc-days input:checked + span { background: #0F172A; border-color: #0F172A; color: #fff; }
.gc-days input:focus-visible + span { outline: 2px solid #93C5FD; outline-offset: 2px; }
.gc-url { display: flex; gap: 8px; align-items: center; }
.gc-url input { flex: 1; min-width: 0; font-size: 13px; }
.gc-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-how { font-size: 13.5px; color: #334155; }
.gc-how summary { cursor: pointer; font-weight: 600; }
.gc-how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.gc-src-list, .gc-share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gc-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 12px; }
.gc-src > i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.gc-src > span { flex: 1 1 200px; min-width: 0; }
.gc-src small, .gc-share small { display: block; font-size: 12px; color: #64748B; overflow-wrap: anywhere; }
.gc-src-form { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: #F8FAFC; }
.gc-src-form h3 { margin: 0; font-size: 15px; }
.gc-share { display: grid; gap: 8px; padding: 12px; border: 1px solid #E2E8F0; border-radius: 12px; }
.gc-share-send { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-share-send input { flex: 1 1 200px; min-width: 0; font-size: 13px; }
.gc-g-search { margin-bottom: 6px; }
.gc-g-list { display: grid; gap: 2px; max-height: 240px; overflow: auto; padding: 4px; border: 1px solid #E2E8F0; border-radius: 12px; }
.gc-g-list label { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.gc-g-list label:hover { background: #F8FAFC; }
.gc-g-list label[hidden] { display: none; }
.gc-g-list span { min-width: 0; line-height: 1.2; }
.gc-g-list b { display: block; font-size: 13.5px; font-weight: 600; }
.gc-g-list small { display: block; font-size: 12px; color: #94A3B8; }
.gc-scope-list { display: grid; gap: 10px; }
.gc-clash { margin: 6px 0 10px; padding-left: 18px; }
.gc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: #0F172A; color: #fff; font-size: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.3); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .2s ease; }
.gc-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.gc-toast.is-bad { background: #B91C1C; }

@media (max-width: 1100px) {
  .gc { grid-template-columns: minmax(0, 1fr); }
  .gc-side { position: fixed; z-index: 950; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; max-height: none; padding: 14px; background: #fff; box-shadow: 0 0 40px rgba(15,23,42,.25); transform: translateX(-105%); transition: transform .2s ease; }
  .gc-side.is-open { transform: none; }
  .gc-side-head { display: flex; align-items: center; justify-content: space-between; }
  .gc-scrim { position: fixed; inset: 0; z-index: 940; background: rgba(15,23,42,.35); }
  .gc-menu { display: inline-grid; }
  .gc-bar .gc-bar-new { display: inline-flex; }
}
@media (max-width: 760px) {
  .gc-main { padding: 8px 6px 10px; border-radius: 16px; }
  .gc-bar { gap: 6px; }
  .gc-bar h2 { order: 9; flex-basis: 100%; margin: 2px 4px 0; font-size: 17px; white-space: normal; }
  .gc-sp { display: none; }
  .gc-seg { order: 10; flex: 1 1 100%; }
  .gc-seg button { flex: 1; padding: 0 6px; }
  .gc-free-toggle span { display: none; }
  .gc-free-toggle::after { content: 'Free'; }
  .gc-bar-new { margin-left: auto; }
  .gc-bar-new span { display: none; }
  .gc-bar-new { width: 36px; padding: 0; justify-content: center; }
  .gc-grid { --gw: 44px; }
  .gc-colh b { width: 32px; height: 32px; font-size: 17px; }
  .gc-gutter span { right: 4px; font-size: 9.5px; }
  .gc-scroll { max-height: calc(100dvh - 260px); }
  .gc-ev { padding: 2px 4px; font-size: 11px; }
  .gc-ev-time { display: none; }
  .gc-mgrid { grid-auto-rows: minmax(84px, 1fr); }
  .gc-mcell { padding: 2px 1px 4px; }
  .gc-chip { height: 18px; padding: 0 3px; font-size: 10.5px; gap: 3px; }
  .gc-chip .gc-pip { display: none; }
  .gc-more { font-size: 10.5px; padding: 0 3px; }
  .gc-ag-day { grid-template-columns: 1fr; gap: 2px; padding: 8px; }
  .gc-ag-row, .gc-day-list .gc-ag-row { grid-template-columns: 84px 12px minmax(0, 1fr); gap: 8px; }
  .gc-ag-time { font-size: 12px; white-space: normal; }
  .gc-detail { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 82dvh; border-radius: 18px; transform: translateY(24px); }
  .gc-two, .gc-row2, .gc-row3, .gc-kind { grid-template-columns: 1fr; }
  .gc-when-row input[type="date"], .gc-when-row input[type="time"] { min-width: 0; flex: 1 1 130px; }
  .gc-ed-tabs { padding: 10px 14px 0; }
  .gc-ed-tabs button { padding: 0 10px; font-size: 13px; }
  .gc-rsvp { flex-wrap: wrap; }
  .gc-rsvp span { margin-left: 0; }
}
/* Team leads: only the project's people in "Assigned to" (2.26.2) */
.picker-list label[hidden] { display: none !important; }
.tk-lead-hint { margin: 6px 0 0; }
/* Calendar extras (2.27.0): second clock, search, undo, out of office, repeats */
.gc-grid.has-z2 { --gw: 92px; }
.gc-grid.has-z2 .gc-gutter span { display: flex; gap: 8px; justify-content: flex-end; }
.gc-grid.has-z2 .gc-gutter span i { font-style: normal; color: #B6BFCC; min-width: 36px; text-align: right; }
.gc-grid.has-z2 .gc-ghead .gc-gutter-h { gap: 8px; justify-content: flex-end; }
.gc-grid.has-z2 .gc-ghead .gc-gutter-h span:first-child { color: #B6BFCC; }
.gc-search { position: relative; display: inline-flex; align-items: center; }
.gc-search input { width: 0; padding: 0; border: 0; opacity: 0; transition: width .15s ease, opacity .15s ease; height: 36px; font-size: 13.5px; }
.gc-search.is-open input { width: 220px; padding: 0 10px; opacity: 1; border: 1px solid #DCE2EA; border-radius: 10px; }
.gc-search.is-open [data-gc-search-open] { display: none; }
.gc-search-list { left: auto; right: 0; width: 340px; max-width: calc(100vw - 24px); }
.gc-hit-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.gc-toast { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.gc-toast.is-on { pointer-events: auto; }
.gc-undo { flex: none; border: 0; background: transparent; color: #93C5FD; font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.gc-undo:hover { color: #fff; text-decoration: underline; }
.gc-ev.is-ooo, .gc-chip.is-ooo { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #fff) 0 8px, color-mix(in srgb, var(--c) 12%, #fff) 8px 16px); color: #0F172A; border-left: 3px solid var(--c); }
.gc-repeat-more { padding-left: 32px; }
.gc-repeat-more[hidden], [data-gc-count][hidden] { display: none; }
.gc-num { width: 76px !important; min-width: 0 !important; }
.gc-repeat-more select, .gc-repeat select { width: auto !important; flex: 0 0 auto; }
.gc-repeat-more [data-gc-until] .dz { width: auto; }
@media (max-width: 760px) {
  .gc-grid.has-z2 { --gw: 70px; }
  .gc-grid.has-z2 .gc-gutter span i { min-width: 28px; }
  .gc-search.is-open input { width: 150px; }
  .gc-repeat-more { padding-left: 0; }
}
.pr-halfrule { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.pr-halfrule .check { margin:0; }
.pr-halfrule select { width:auto; min-width:0; flex:0 0 auto; padding-top:6px; padding-bottom:6px; }
.attendance-grid-wrap .cell.short-half, .attendance-person-day.short-half strong, .attendance-mobile-day.short-half strong { font-weight:800; }
.attendance-grid-wrap .cell.signed, .attendance-key .cell.signed, .attendance-person-day.signed, .attendance-mobile-day.signed { box-shadow: inset 0 -3px 0 #16a34a; }
.ts-signoff { border:1px solid var(--line, #e5e7eb); border-radius:12px; padding:12px 14px; margin:0 0 16px; display:grid; gap:10px; background:#fffbeb; }
.ts-signoff.is-signed { background:#f0fdf4; grid-template-columns:1fr auto; align-items:center; }
.ts-signoff-text { display:grid; gap:2px; font-size:13px; }
.ts-signoff-text strong { display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.ts-signoff-form { display:flex; flex-wrap:wrap; gap:8px; }
.ts-signoff-form input[type=text] { flex:1 1 180px; min-width:0; }
.ts-signoff-error { grid-column:1 / -1; margin:0; color:#b91c1c; font-size:13px; }
.hk-dark .ts-signoff, .nx-dark .ts-signoff { background:rgba(245,158,11,.08); }
.hk-dark .ts-signoff.is-signed, .nx-dark .ts-signoff.is-signed { background:rgba(22,163,74,.1); }
.hk-stopped-bar { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:9999; width:min(640px, calc(100% - 32px)); background:#b91c1c; color:#fff; border-radius:12px; padding:12px 16px; box-shadow:0 10px 30px rgba(0,0,0,.25); font-size:14px; line-height:1.45; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; }
.hk-stopped-bar span { flex:1 1 260px; }
.hk-stopped-bar .button { background:#fff; color:#b91c1c; border-color:#fff; }
.tp-part-done { display:inline-block; margin-left:4px; padding:1px 7px; border-radius:999px; background:#dcfce7; color:#166534; font-size:11px; font-weight:600; }
.hk-dark .tp-part-done, .nx-dark .tp-part-done { background:rgba(22,163,74,.2); color:#86efac; }
.tk-more { border:1px solid var(--line, #e5e7eb); border-radius:12px; background:var(--surface-2, #f8fafc); }
.tk-more > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:8px; padding:12px 14px; font-weight:600; font-size:14px; }
.tk-more > summary::-webkit-details-marker { display:none; }
.tk-more > summary svg { transition:transform .15s; transform:rotate(-90deg); }
.tk-more[open] > summary svg { transform:none; }
.tk-more > summary .optional { font-weight:400; }
.tk-more-body { padding:0 14px 14px; display:grid; gap:14px; }
.np-more { border:1px solid var(--line, #e5e7eb); border-radius:16px; background:var(--surface, #fff); }
.np-more > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; padding:16px 20px; font-weight:600; }
.np-more > summary::-webkit-details-marker { display:none; }
.np-more > summary svg { transition:transform .15s; transform:rotate(-90deg); }
.np-more[open] > summary svg { transform:none; }
.np-more > summary small { font-weight:400; color:var(--muted); display:block; }
.np-more-body { padding:0 12px 12px; display:grid; gap:16px; }
#task-title, #self-title { min-height:48px; height:auto; field-sizing:content; max-height:120px; resize:none; }
/* Add project, quick mode: only the essentials until "More details" is opened */
.np-form.is-quick [data-np-extra] { display: none !important; }
.np-form.is-quick .np-wrap { grid-template-columns: minmax(0, 1fr); width: 100%; }
.np-form.is-quick .np-side, .np-form.is-quick .np-bar { display: none !important; }
.np-form.is-quick .np-actions { display: flex; }
.np-form.is-quick .np-step p { display: none; }
.np-form.is-quick [data-np-card="basics"] { order: -2; }
.np-form.is-quick [data-np-card="type"] { order: -1; }
.np-form.is-quick .np-card { padding: 18px 22px 20px; }
.np-form.is-quick .np-num { display: none; }
/* Pickers with many people chosen: one line, never wider than the field */
.picker, .tk-picker { min-width: 0; max-width: 100%; }
.picker > summary, .tk-picker summary { min-width: 0; overflow: hidden; }
.picker [data-picker-text] { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-sheet-body { overflow-x: hidden; }
.np-form.is-quick [data-np-team-field]:not(.np-needed) { display: none; }
.np-services { display: grid; gap: 8px; }
.np-form:not(.is-quick) .np-services { display: none; }
.np-svc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.np-svc { position: relative; display: inline-flex !important; align-items: center; gap: 8px !important; margin: 0 !important; padding: 8px 12px; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); cursor: pointer; font-size: 13.5px; font-weight: 500; user-select: none; }
.np-svc input[type=checkbox] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
.np-form.is-quick .np-main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.np-svc-box { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hk-color-divider, #cbd5e1); color: transparent; }
.np-svc.is-on { background: var(--hk-state-info-tint, #e0ecff); }
.np-svc.is-on .np-svc-box { background: var(--hk-color-link, #2563eb); box-shadow: none; color: #fff; }
.np-svc input:focus-visible + .np-svc-box { outline: 2px solid var(--hk-color-link, #2563eb); outline-offset: 2px; }
.np-svc em { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--hk-color-link, #2563eb); color: #fff; }
/* Project phases */
.ph-card { padding: 18px 20px; display: grid; gap: 14px; }
.ph-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ph-head h2 { margin: 0; font-size: 17px; }
.ph-head .sub { margin: 4px 0 0; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-actions form { margin: 0; }
.ph-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; counter-reset: none; }
.ph-step { position: relative; display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--hk-ink-a4, #f1f5f9); min-width: 0; }
.ph-step.is-current { background: var(--hk-state-info-tint, #e0ecff); box-shadow: inset 0 0 0 2px var(--hk-color-link, #2563eb); }
.ph-step.is-done { background: rgba(22,163,74,.09); }
.ph-move { margin: 0; }
.ph-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hk-color-divider, #cbd5e1); font-size: 12px; font-weight: 700; color: var(--hk-color-text-2, #475569); cursor: default; }
button.ph-dot { cursor: pointer; }
button.ph-dot:hover { box-shadow: inset 0 0 0 2px var(--hk-color-link, #2563eb); }
.ph-step.is-current .ph-dot { background: var(--hk-color-link, #2563eb); color: #fff; box-shadow: none; }
.ph-step.is-done .ph-dot { background: #16a34a; color: #fff; box-shadow: none; }
.ph-name { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ph-name em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--hk-color-link, #2563eb); color: #fff; }
.ph-tasks { font-size: 12.5px; color: var(--hk-color-text-2, #475569); text-decoration: none; }
.ph-tasks:hover { text-decoration: underline; }
.ph-bar { display: block; height: 4px; border-radius: 4px; background: rgba(0,0,0,.08); overflow: hidden; }
.ph-bar i { display: block; height: 100%; background: #16a34a; }
.ph-editor { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--hk-color-divider, #e5e7eb); }
.ph-editor[hidden] { display: none; }
.ph-edit-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.ph-edit-list li { display: flex; gap: 6px; align-items: center; }
.ph-edit-list input[type=text] { flex: 1; min-width: 0; }
.ph-edit-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-empty { margin: 0; }
/* Area switcher on a project with several services */
.area-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.area-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.area-tabs a.is-on { background: var(--hk-color-text, #0f172a); color: #fff; }
.area-tabs a.is-on small { color: inherit; }
.area-tabs a small { font-weight: 500; opacity: .75; }
.area-pick-list { display: grid; gap: 10px; }
.area-pick-list a.area-pick-all { background: transparent; box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); font-weight: 500; }
.pj-areas { margin: 14px 0 0; }
.pj-areas a i { width: 8px; height: 8px; border-radius: 50%; background: var(--hk-color-text-3, #94a3b8); flex: none; }
.pj-areas a i.hue-seo { background: var(--hk-hue-seo); } .pj-areas a i.hue-marketing { background: var(--hk-hue-marketing); }
.pj-areas a i.hue-development { background: var(--hk-hue-development); } .pj-areas a i.hue-design { background: var(--hk-hue-design); } .pj-areas a i.hue-operations { background: var(--hk-hue-operations); }
.pj-areas a.pj-area-all { background: transparent; box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); font-weight: 500; }
.pj-areas a.pj-area-all.is-on { background: var(--hk-color-text, #0f172a); box-shadow: none; }
.area-pick-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--hk-ink-a4, #f1f5f9); color: inherit; text-decoration: none; font-weight: 600; }
.area-pick-list a:hover { box-shadow: inset 0 0 0 2px var(--hk-color-link, #2563eb); }
.area-pick-list a small { font-weight: 500; color: var(--hk-color-text-2, #475569); }
/* Settings: project phases (2.31.0) */
.phs-intro { margin: 0 0 12px; }
.phs-list { display: grid; gap: 10px; }
.phs-item { padding: 0; }
.phs-item > summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.phs-item > summary::-webkit-details-marker { display: none; }
.phs-item > summary svg { margin-left: auto; flex: none; transition: transform .15s; }
.phs-item[open] > summary svg { transform: rotate(180deg); }
.phs-name { font-weight: 600; flex: none; }
.phs-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phs-form { padding: 10px 14px 14px; }
/* Monthly SEO plan (2.32.0) */
.wp-card { padding: 18px 20px; display: grid; gap: 12px; }
.wp-card .ph-head h2 { margin: 0; }
.wp-card .sub b { color: var(--hk-color-text, #0f172a); }
.wp-card-today > .sub { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
[data-wp] .wp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 6px; background: none; }
.wp-month { display: flex; align-items: center; gap: 8px; }
.wp-month h2 { margin: 0; font-size: 20px; min-width: 150px; text-align: center; }
.wp-next svg { transform: rotate(180deg); }
.wp-sum { margin: 0; flex: 1; color: var(--hk-color-text-muted, #64748b); }
.wp-sum b { color: var(--hk-color-text, #0f172a); }
[data-wp] .wp-hint { margin: 0 0 12px; }
.wp-views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); }
.wp-views a { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: inherit; text-decoration: none; }
.wp-views a.is-on { background: var(--hk-surface, #fff); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.wp-week .wp-date b { font-size: 15px; }
.wp-week .wp-day.is-empty { padding-top: 10px; padding-bottom: 10px; }
.wp-tag { font-size: 11px; font-weight: 600; color: var(--hk-color-text-muted, #64748b); background: var(--hk-surface, #fff); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.wp-warn { font-style: normal; font-size: 11px; color: #b91c1c; }
.wp-item.is-skipped { opacity: .6; }
.wp-daily { display: grid; gap: 8px; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.wp-daily-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.wp-daily-head > div { display: grid; gap: 2px; }
.wp-daily-head small { font-size: 12.5px; color: var(--hk-color-text-2, #64748b); }
.wp-daily-row.is-editing { background: transparent; padding: 0; display: block; }
.wp-daily-row.is-editing > span { display: none; }
.wp-daily-none { margin: 0; }
.wp-days .wp-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto auto auto; }
.wp-days .wp-item:not(:has(.wp-topic, .wp-topic-text)) { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.wp-topic { width: 100%; min-width: 0; height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 8px; border: 1px solid transparent; background: var(--hk-surface, #fff); transition: box-shadow .2s, border-color .2s; }
.wp-topic:focus { border-color: var(--hk-color-link, #2563eb); outline: none; }
.wp-topic.is-saved { box-shadow: 0 0 0 2px rgba(22,163,74,.45); }
.wp-topic.is-bad { box-shadow: 0 0 0 2px rgba(220,38,38,.5); }
.wp-topic-text { font-size: 13px; color: var(--hk-color-text-2, #475569); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .wp-days .wp-item, .wp-days .wp-item:not(:has(.wp-topic, .wp-topic-text)) { grid-template-columns: minmax(0, 1fr) auto; }
  .wp-topic, .wp-topic-text { grid-column: 1 / -1; order: 1; }
}
.wp-item.is-skipped .wp-title { text-decoration: line-through; }
.wp-msg { margin: 0 0 10px; }
.wp-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wp-day { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; background: var(--hk-surface, #fff); border: 1px solid var(--hk-color-divider, #e5e7eb); border-radius: 12px; }
.wp-day.is-empty { padding-top: 6px; padding-bottom: 6px; }
.wp-day.is-off { background: var(--hk-ink-a4, #f1f5f9); }
.wp-day.is-past { opacity: .62; }
.wp-day.is-past.is-empty { display: none; }
.wp-day.is-today { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb inset; }
.wp-date { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.2; padding-top: 4px; }
.wp-date b { font-size: 17px; }
.wp-date span { font-size: 12px; color: var(--hk-color-text-muted, #64748b); }
.wp-date em { font-style: normal; font-size: 11px; font-weight: 600; color: #2563eb; width: 100%; }
.wp-items { display: grid; gap: 6px; min-width: 0; }
.wp-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 8px 6px 10px; border-radius: 8px; background: var(--hk-ink-a4, #f1f5f9); }
.wp-item.is-editing { background: transparent; padding: 0; display: block; }
.wp-item.is-editing > span { display: none; }
.wp-title { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.wp-title a { color: inherit; }
.wp-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.wp-st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.wp-item.is-planned .wp-st { background: #ede9fe; color: #5b21b6; }
.wp-item.is-in_progress .wp-st, .wp-item.is-review .wp-st { background: #dbeafe; color: #1d4ed8; }
.wp-item.is-done .wp-st { background: #dcfce7; color: #166534; }
.wp-item.is-done .wp-title { text-decoration: line-through; color: var(--hk-color-text-muted, #64748b); }
.wp-item.is-removed .wp-st { background: #fee2e2; color: #991b1b; }
.wp-acts { display: inline-flex; gap: 4px; }
.wp-add { align-self: start; }
.wp-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; background: var(--hk-ink-a4, #f1f5f9); }
.wp-form > input[type=text] { flex: 1 1 260px; }
.wp-form > select, .wp-form > .wp-move { flex: 0 1 190px; }
.wp-form > .wp-more, .wp-form > .wp-form-foot { flex: 1 1 100%; }
.wp-form input[type=text], .wp-form select, .wp-form input[type=date] { width: 100%; min-width: 0; }
.wp-form [hidden] { display: none !important; }
.wp-move { display: block; min-width: 0; }
.wp-more { grid-column: 1 / -1; font-size: 13px; }
.wp-more summary { cursor: pointer; color: var(--hk-color-text-muted, #64748b); }
.wp-more textarea { width: 100%; margin-top: 6px; }
.wp-form-foot { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.wp-err { flex: 1; color: #b91c1c; font-size: 13px; }
@media (max-width: 720px) {
  .wp-day { grid-template-columns: 44px 1fr; }
  .wp-add { grid-column: 2; justify-self: start; }
  .wp-item { grid-template-columns: minmax(0, 1fr) auto; }
  .wp-who { grid-column: 1; }
  .wp-form { grid-template-columns: 1fr; }
  .wp-month h2 { min-width: 0; font-size: 18px; }
  .wp-sum { flex-basis: 100%; }
}
/* Charge the full time (2.36.0) */
.tp-credit { display: grid; gap: 10px; }
.tp-credit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--hk-ink-a4, #f1f5f9); }
.tp-credit-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tp-credit-note { flex: 1; min-width: 160px; font-size: 13px; color: var(--hk-color-text-2, #475569); }
.tp-credit-form { display: inline-flex; align-items: center; gap: 8px; }
.tp-credit-form label { display: inline-flex; align-items: center; gap: 4px; }
.tp-credit-form input[type=number] { width: 76px; }
.tp-credit .sub { margin: 0; font-size: 12px; }
/* Minimal project overview (2.36.0) */
.ph-card { padding: 14px 18px; gap: 10px; margin-bottom: 16px; }
.ph-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-step { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; }
.ph-step .ph-bar { display: none; }
.ph-step .ph-tasks { font-size: 12px; }
.ph-step .ph-tasks::before { content: "· "; }
.ph-dot { width: 24px; height: 24px; }
.ph-name { font-size: 13.5px; white-space: nowrap; }
.ph-name em { display: none; }
.ph-step.is-current .ph-name { color: var(--hk-color-link, #1d4ed8); }
.ov-more { margin: 0 0 16px; border-radius: 16px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.ov-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ov-more > summary::-webkit-details-marker { display: none; }
.ov-more > summary span { display: grid; gap: 2px; }
.ov-more > summary small { color: var(--hk-color-text-2, #64748b); font-size: 12.5px; }
.ov-more > summary svg { transition: transform .15s; flex: none; }
.ov-more[open] > summary svg { transform: rotate(180deg); }
.ov-more-body { padding: 0 14px 14px; display: grid; gap: 14px; }
.ov-more-body > * { margin-top: 0; margin-bottom: 0; }
.wp-card .pj-task { align-items: center; }
/* Each person's part of a shared task (2.37.0) */
.tp-parts { display: grid; gap: 6px; margin: 10px 0 4px; }
.tp-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--hk-ink-a4, #f1f5f9); }
.tp-part b { font-weight: 600; font-size: 13.5px; }
.tp-part .wt-chip { margin-left: auto; }
.tp-part form { margin: 0; }
/* SEO plan sheet (2.40.0) */
[data-wp] .wp-hint { margin: 0 0 10px; padding: 0; font-size: 13px; background: none; color: var(--hk-color-text-2, #64748b); }
.sp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.sp-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--hk-color-text-2, #64748b); }
.sp-legend .sp-dot { margin-right: -6px; }
.sp-sheet-wrap { overflow-x: auto; border-radius: 14px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.sp-sheet { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.sp-sheet th { text-transform: none; letter-spacing: normal; height: auto; color: inherit; font-size: 13px; background: var(--hk-surface, #fff); text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--hk-color-divider, #e5e7eb); vertical-align: bottom; }
.sp-sheet th.sp-c-date { width: 84px; color: var(--hk-color-text-2, #64748b); font-size: 12px; font-weight: 500; }
.sp-sheet th.sp-c-other { width: 24%; color: var(--hk-color-text-2, #64748b); font-size: 12px; font-weight: 500; }
.sp-colhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.sp-colhead > span:first-child { display: grid; gap: 1px; min-width: 0; }
.sp-colhead b { font-size: 13.5px; }
.sp-colhead small { font-weight: 500; font-size: 11.5px; color: var(--hk-color-text-2, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sheet td { padding: 3px 8px; border-bottom: 1px solid var(--hk-color-divider, #eef0f3); vertical-align: middle; height: 40px; }
.sp-sheet tr.sp-slot-row td { padding: 0; height: 0; border: 0; }
.sp-sheet tr.sp-slot-row td:has(form) { padding: 8px; border-bottom: 1px solid var(--hk-color-divider, #eef0f3); background: var(--hk-ink-a4, #f8fafc); }
.sp-sheet td.sp-c-date { white-space: nowrap; padding-left: 12px; }
.sp-sheet td.sp-c-date b { font-size: 14px; }
.sp-sheet td.sp-c-date span { font-size: 12px; color: var(--hk-color-text-2, #64748b); }
.sp-sheet td.sp-c-date em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--hk-color-link, #2563eb); border-radius: 999px; padding: 1px 6px; }
.sp-sheet tr.is-today td { background: rgba(37, 99, 235, .05); }
.sp-sheet tr.is-off td { background: var(--hk-ink-a4, #f8fafc); }
.sp-sheet tr.is-past td { opacity: .55; }
.sp-sheet tr:hover td { background: rgba(15, 23, 42, .025); }
.sp-off { font-size: 11.5px; color: var(--hk-color-text-3, #94a3b8); }
.sp-cell-in { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sp-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; display: inline-block; margin: 0 6px; }
.sp-dot.is-todo { background: #3b82f6; } .sp-dot.is-in_progress, .sp-dot.is-review { background: #f59e0b; }
.sp-dot.is-done { background: #16a34a; } .sp-dot.is-blocked, .sp-dot.is-removed { background: #dc2626; } .sp-dot.is-skipped { background: transparent; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.sp-cell .wp-topic { flex: 1; height: 30px; padding: 4px 8px; background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 13.5px; }
.sp-cell .wp-topic:hover { border-color: var(--hk-color-divider, #e5e7eb); background: var(--hk-surface, #fff); }
.sp-cell .wp-topic:focus { border-color: var(--hk-color-link, #2563eb); background: var(--hk-surface, #fff); }
.sp-cell .wp-topic::placeholder { color: var(--hk-color-text-3, #b6bfcc); }
.sp-cell-text { flex: 1; min-width: 0; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
a.sp-cell-text:hover { text-decoration: underline; }
.sp-cell.is-done .sp-cell-text { color: var(--hk-color-text-2, #64748b); }
.sp-muted { color: var(--hk-color-text-3, #94a3b8); font-size: 12.5px; text-decoration: line-through; }
.sp-ini { flex: none; font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #ede9fe; color: #5b21b6; }
.sp-hover { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .12s; flex: none; }
tr:hover .sp-hover, th:hover .sp-hover, .sp-chip:hover .sp-hover, .sp-hover:focus-within { opacity: 1; }
@media (hover: none) { .sp-hover { opacity: 1; } }
.sp-ib { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--hk-color-text-2, #64748b); cursor: pointer; padding: 0; }
.sp-ib:hover { background: var(--hk-ink-a6, #e2e8f0); color: var(--hk-color-text, #0f172a); }
.sp-link { border: 0; background: none; padding: 0 4px; color: var(--hk-color-link, #2563eb); font-size: 12.5px; cursor: pointer; }
.sp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sp-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 2px 4px 2px 0; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); font-size: 12.5px; }
.sp-chip > a, .sp-chip > span:not(.sp-hover) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.sp-chip small { color: var(--hk-color-text-2, #64748b); margin-left: 4px; }
.sp-chip.is-skipped > span:not(.sp-hover) { text-decoration: line-through; color: var(--hk-color-text-3, #94a3b8); }
.sp-add-mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px dashed var(--hk-color-divider, #cbd5e1); border-radius: 6px; background: transparent; color: var(--hk-color-text-2, #64748b); cursor: pointer; opacity: 0; padding: 0; }
tr:hover .sp-add-mini, .sp-add-mini:focus { opacity: 1; }
@media (hover: none) { .sp-add-mini { opacity: 1; } }
.sp-cell .wp-topic { order: 0; grid-column: auto; }
@media (max-width: 720px) { .sp-sheet { min-width: 560px; } .sp-sheet th.sp-c-date { width: 64px; } .sp-sheet td.sp-c-date { padding-left: 8px; } }
/* SEO setup and started questions (2.41.0) */
.sp-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #FFFBEB; box-shadow: inset 0 0 0 1px #FDE68A; font-size: 13.5px; }
.sp-ask-btns { display: inline-flex; gap: 8px; }
.sp-cell.is-wait .sp-cell-in { opacity: .4; }
.sp-wait { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 1px 8px; text-decoration: none; width: max-content; }
.np-started { display: grid; gap: 8px; }
.np-started-list { display: grid; gap: 6px; }
.np-st-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 12px; border-radius: 10px; background: var(--hk-ink-a4, #f1f5f9); font-size: 13.5px; font-weight: 500; }
.np-seg, .ssu-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.np-seg label { margin: 0; cursor: pointer; }
.np-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.np-seg span, .ssu-seg button { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--hk-color-text-2, #475569); border: 0; background: transparent; cursor: pointer; }
.np-seg input:checked + span, .ssu-seg button.is-on { background: var(--hk-color-text, #0f172a); color: #fff; }
.np-seg input:focus-visible + span { outline: 2px solid var(--hk-color-link, #2563eb); }
.ssu { display: grid; gap: 14px; }
.ssu-card { padding: 16px 18px; border-radius: 16px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); display: grid; gap: 10px; }
.ssu-card h2 { margin: 0; font-size: 16px; }
.ssu-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--hk-color-divider, #eef0f3); }
.ssu-name { display: grid; gap: 2px; }
.ssu-name small { color: var(--hk-color-text-2, #64748b); font-size: 12.5px; }
.ssu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ssu-count { font-size: 13px; color: var(--hk-color-text-2, #64748b); }
.ssu-count b { color: var(--hk-color-text, #0f172a); }
.ssu-bar { display: block; height: 6px; border-radius: 6px; background: var(--hk-ink-a6, #e2e8f0); overflow: hidden; }
.ssu-bar > span { display: block; height: 100%; background: #16a34a; transition: width .3s; }
.ssu-missing { margin: 0; font-size: 13px; color: var(--hk-color-text-2, #475569); }
.ssu-missing b { color: #b45309; font-weight: 600; } .ssu-missing em { font-style: normal; color: #92400e; }
.ssu-allset { margin: 0; font-size: 13px; font-weight: 600; color: #15803d; }
.ssu-group { margin: 8px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--hk-color-text-2, #64748b); }
.ssu-list { display: grid; }
.ssu-tool { display: grid; grid-template-columns: 10px minmax(160px, 1.1fr) 170px minmax(0, 1.4fr) 24px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hk-color-divider, #eef0f3); transition: background .3s; }
.ssu-tool:last-child { border-bottom: 0; }
.ssu-tool.is-saved { background: rgba(22,163,74,.07); }
.ssu-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; }
.ssu-tool.is-done .ssu-dot { background: #16a34a; } .ssu-tool.is-waiting .ssu-dot { background: #f59e0b; } .ssu-tool.is-na .ssu-dot { background: #cbd5e1; }
.ssu-tname { font-weight: 500; font-size: 13.5px; }
.ssu-tool select, .ssu-tool input { height: 34px; font-size: 13px; min-width: 0; width: 100%; }
.ssu-open { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--hk-color-text-2, #64748b); }
.ssu-ltext { font-size: 13px; color: var(--hk-color-text-2, #64748b); overflow-wrap: anywhere; }
@media (max-width: 720px) { .ssu-tool { grid-template-columns: 10px 1fr 24px; } .ssu-tool select, .ssu-tool input, .ssu-tool .wt-chip, .ssu-ltext { grid-column: 2 / 4; } }
/* SEO work types (2.42.0) */
.sp-type { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 7px; margin: 0 4px; border-radius: 999px; background: #e0f2fe; color: #075985; white-space: nowrap; vertical-align: middle; }
.sp-colhead .sp-type { margin: 2px 0; justify-self: start; }
.sp-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sp-type-sum { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); font-size: 13px; font-weight: 700; }
.sp-type-sum b { font-weight: 500; color: var(--hk-color-text-2, #475569); }
.sp-type-sum small { font-weight: 500; color: #15803d; font-size: 11.5px; }
@media (max-width: 720px) { .wp-form > select, .wp-form > .wp-move { flex: 1 1 100%; } }
/* Friendlier plan (2.45.0) */
.wp-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--hk-color-text-2, #475569); }
.wp-steps li { display: inline-flex; align-items: center; gap: 7px; }
.wp-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--hk-color-text, #0f172a); color: #fff; font-size: 11px; }
.wp-steps small { color: var(--hk-color-text-3, #94a3b8); }
.sp-add-mini { width: auto; gap: 3px; padding: 0 8px; font-size: 12px; opacity: .55; display: inline-flex; align-items: center; }
.sp-add-mini:hover { opacity: 1; border-color: var(--hk-color-link, #2563eb); color: var(--hk-color-link, #2563eb); }
.sp-sheet tr.is-off td { height: 28px; padding-top: 0; padding-bottom: 0; }
.sp-sheet tr.is-off td.sp-c-date b { font-size: 12.5px; font-weight: 500; }
.sp-cell .wp-topic::placeholder { font-size: 13px; }
.wp-form.is-any { box-shadow: inset 0 0 0 1px var(--hk-color-link, #2563eb); }
/* Work report (2.43.0) */
.wr { display: grid; gap: 12px; }
.wr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.wr-periods { flex-wrap: wrap; }
.wr-dates { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hk-color-text-2, #64748b); }
.wr-dates[hidden] { display: none; }
.wr-dates input { height: 34px; font-size: 13px; width: auto; }
.wr-client { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.wr-client input { width: 16px; height: 16px; margin: 0; }
.wr-gap { flex: 1; }
.wr-dl { display: inline-flex; gap: 6px; }
.wr-body { display: grid; gap: 12px; transition: opacity .15s; }
.wr-body.is-loading { opacity: .5; pointer-events: none; }
.wr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.wr-head h2 { margin: 0; font-size: 18px; }
.wr-head p { margin: 2px 0 0; font-size: 13px; color: var(--hk-color-text-2, #64748b); }
.wr-pct { font-size: 13px; color: var(--hk-color-text-2, #64748b); }
.wr-pct b { font-size: 20px; color: #15803d; margin-right: 2px; }
.wr-sum { display: flex; flex-wrap: wrap; gap: 8px; }
.wr-sum > span { display: grid; gap: 1px; min-width: 92px; padding: 8px 12px; border-radius: 12px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); font-size: 12px; color: var(--hk-color-text-2, #64748b); }
.wr-sum > span b { font-size: 18px; color: var(--hk-color-text, #0f172a); }
.wr-sum > span.is-ok b { color: #15803d; } .wr-sum > span.is-warn b { color: #b45309; } .wr-sum > span.is-bad b { color: #b91c1c; }
.wr-types { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-types > span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); font-size: 12.5px; font-weight: 700; }
.wr-types > span b { font-weight: 500; color: var(--hk-color-text-2, #475569); }
.wr-types small { font-weight: 500; color: var(--hk-color-text-2, #64748b); }
.wr-wrap { overflow-x: auto; border-radius: 14px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.wr-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13.5px; }
.wr-table th { text-transform: none; letter-spacing: normal; height: auto; text-align: left; font-size: 12px; font-weight: 600; color: var(--hk-color-text-2, #64748b); padding: 10px 12px; border-bottom: 1px solid var(--hk-color-divider, #e5e7eb); background: var(--hk-surface, #fff); white-space: nowrap; }
.wr-table td { padding: 8px 12px; border-bottom: 1px solid var(--hk-color-divider, #eef0f3); vertical-align: middle; }
.wr-table tbody tr:last-child td { border-bottom: 0; }
.wr-table tbody tr:nth-child(even) td { background: rgba(15, 23, 42, .018); }
.wr-table .wr-date { white-space: nowrap; color: var(--hk-color-text-2, #475569); }
.wr-table .wr-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-table .sp-type { margin: 0; }
.wr-work a { color: inherit; text-decoration: none; font-weight: 500; }
.wr-work a:hover { text-decoration: underline; }
.wr-work small { display: block; font-size: 12px; color: var(--hk-color-text-2, #64748b); }
.wr-mut { color: var(--hk-color-text-3, #94a3b8); font-size: 12.5px; }
.wr-late { font-size: 10.5px; font-weight: 700; color: #b91c1c; }
.wr-empty { margin: 0; padding: 24px; text-align: center; color: var(--hk-color-text-2, #64748b); border-radius: 14px; background: var(--hk-surface, #fff); box-shadow: inset 0 0 0 1px var(--hk-color-divider, #e5e7eb); }
.wr-paper { max-width: 1000px; margin: 0 auto; padding: 28px 32px; border-radius: 18px; background: #fff; display: grid; gap: 14px; color: #0f172a; }
.wr-paper-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #0f172a; }
.wr-paper-top div { display: grid; }
.wr-paper-top b { font-size: 18px; }
.wr-paper-top span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.wr-paper .wr-wrap, .wr-paper .wr-sum > span { box-shadow: inset 0 0 0 1px #e5e7eb; }
.wr-paper .wr-table { min-width: 0; font-size: 12px; }
.wr-foot { margin: 0; font-size: 11px; color: #94a3b8; }
@media print {
  .wr-paper { max-width: none; padding: 0; border-radius: 0; }
  .wr-table tr { break-inside: avoid; } .wr-table thead { display: table-header-group; }
  .wr-wrap { overflow: visible; }
  .wr-sum > span, .wr-types > span, .wt-chip, .sp-type { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 720px) { .wr-gap { display: none; } .wr-dl { flex: 1 1 100%; } }
.wr-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.wr-count { font-size: 13px; color: var(--hk-color-text-2, #64748b); }
.wr-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wr-num-btn { min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; color: var(--hk-color-text-2, #475569); cursor: pointer; }
.wr-num-btn:hover { background: var(--hk-ink-a4, #f1f5f9); }
.wr-num-btn.is-on { background: var(--hk-color-text, #0f172a); color: #fff; }
.wr-gapdots { padding: 0 2px; color: var(--hk-color-text-3, #94a3b8); }
.wr-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-radius: 12px; background: #EEF2FF; box-shadow: inset 0 0 0 1px #C7D2FE; font-size: 13px; }
.wr-stag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: #EEF2FF; color: #4338CA; vertical-align: middle; }
.ov-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-links a { padding: 6px 12px; border-radius: 999px; background: var(--hk-ink-a4, #f1f5f9); font-size: 13px; font-weight: 500; color: inherit; text-decoration: none; }
.ov-links a:hover { background: var(--hk-ink-a6, #e2e8f0); }
/* ===== End planner calendar (2.26.0) ===== */
/* ===== End testing fixes (2.24.97) ===== */

/* Work-plan assignee picker: employee photo + name instead of native select text only. */
.wp-form > .wp-person-picker { flex: 0 1 220px; min-width: 190px; position: relative; }
.wp-person-picker > summary { min-height: 38px; display: flex; align-items: center; padding: 8px 34px 8px 12px; border: 1px solid var(--hk-color-line, #dbe3ee); border-radius: 10px; background: #fff; color: var(--hk-color-text, #0f172a); cursor: pointer; list-style: none; }
.wp-person-picker > summary::-webkit-details-marker { display: none; }
.wp-person-picker > summary::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid #64748b; border-bottom: 1.5px solid #64748b; transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.wp-person-picker[open] > summary { border-color: var(--hk-color-link, #2563eb); box-shadow: 0 0 0 2px rgba(37, 99, 235, .08); }
.wp-person-picker .wp-person-list { position: absolute; z-index: 80; top: calc(100% + 5px); left: 0; width: min(310px, 80vw); max-height: 310px; overflow: auto; padding: 6px; border: 1px solid var(--hk-color-line, #dbe3ee); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .14); }
.wp-picker-group { padding: 7px 9px 5px; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.wp-person-option { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.wp-person-option:hover, .wp-person-option:has(input:checked) { background: #f1f5f9; }
.wp-person-option input { margin: 0; }
.wp-person-option .pic { flex: none; }
.wp-person-option span:last-child { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wp-person-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.wp-person-option small { margin-top: 2px; color: #64748b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .wp-form > .wp-person-picker { flex: 1 1 100%; } .wp-person-picker .wp-person-list { width: 100%; } }
/* Minimal project management form (2.50.1) */
.np-minimal-project-form .np-wrap { grid-template-columns:minmax(0,1fr); width:100%; justify-content:stretch; }
.np-minimal-project-form .np-main { width:100%; max-width:none; }
.np-minimal-project-form .np-side, .np-minimal-project-form .np-bar { display:none !important; }
.np-minimal-project-form .np-actions { display:flex; margin-top:14px; }
.np-minimal-project-form.is-quick [data-np-extra] { display:none !important; }
.np-minimal-project-form.is-quick .np-card { padding:18px 20px; }
.np-minimal-project-form.is-quick .np-step p, .np-minimal-project-form.is-quick .np-num { display:none; }
.np-minimal-project-form .np-project-more { margin-top:12px; }
.np-minimal-project-form .np-project-more > summary { padding:13px 16px; }
.np-minimal-project-form .np-project-more > summary small { font-size:12.5px; }
.np-minimal-project-form .np-minimal-service .np-static { min-height:42px; display:flex; align-items:center; font-weight:600; }
.np-minimal-project-form .np-mini-help { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
@media (max-width:720px){.np-minimal-project-form .np-grid{grid-template-columns:1fr}.np-minimal-project-form .np-f.w3,.np-minimal-project-form .np-f.w6{grid-column:auto}}

/* Project overview simplification: tabs stay visible and are the primary navigation. */
.content:has(.pj-shell) .pj-tabs {
  position: sticky;
  top: 70px;
  z-index: 24;
  margin: 0 0 18px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--hk-color-divider);
  border-radius: 16px;
  background: rgba(248,250,252,.96);
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
}
.content:has(.pj-shell) .pj-tabs > a,
.content:has(.pj-shell) .pj-tabs > .pj-tabmenu > summary { min-height: 42px; }
.content:has(.pj-shell) .pj-tiles-overview-simple { margin-top: 2px; margin-bottom: 20px; }
@media (max-width: 720px) {
  .content:has(.pj-shell) .pj-tabs { top: 58px; border-radius: 14px; }
  .content:has(.pj-shell) .pj-tabs a { padding-left: 13px; padding-right: 13px; }
}

/* Easy project overview: compact details below the primary summary tiles. */
.pj-overview-glance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; row-gap:20px; margin-bottom:22px; }
.pj-glance-card { margin:0; min-width:0; overflow:hidden; }
.pj-glance-wide { grid-column:1 / -1; }
.pj-glance-list { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.pj-glance-list > div { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--hk-color-divider); }
.pj-glance-list > div:nth-child(-n+2) { border-top:0; }
.pj-glance-list dt { color:var(--hk-color-text-2); font-size:12px; }
.pj-glance-list dd { margin:0; max-width:62%; color:var(--hk-color-text); font-size:12.5px; font-weight:650; text-align:right; overflow-wrap:anywhere; }
.pj-glance-progress { display:grid; gap:12px; }
.pj-glance-progress-top { display:flex; align-items:baseline; gap:10px; }
.pj-glance-progress-top strong { font-size:26px; line-height:1; }
.pj-glance-progress-top span { color:var(--hk-color-text-2); font-size:12px; }
.pj-glance-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pj-glance-stats span { padding:9px 10px; border-radius:10px; background:var(--hk-ink-a4); color:var(--hk-color-text-2); font-size:11px; }
.pj-glance-stats b { display:block; margin-bottom:2px; color:var(--hk-color-text); font-size:16px; }
.pj-glance-stats .is-bad b { color:var(--hk-state-danger-text); }
.pj-glance-tasks { display:grid; }
.pj-glance-tasks a { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 0; border-top:1px solid var(--hk-color-divider); color:inherit; text-decoration:none; }
.pj-glance-tasks a:first-child { border-top:0; }
.pj-glance-tasks a:hover b { text-decoration:underline; }
.pj-glance-tasks span { min-width:0; }
.pj-glance-tasks b,.pj-glance-tasks small { display:block; overflow-wrap:anywhere; }
.pj-glance-tasks b { font-size:13px; }
.pj-glance-tasks small { margin-top:3px; color:var(--hk-color-text-2); font-size:11px; }
.pj-glance-tasks em { flex:none; color:var(--hk-color-text-2); font-size:11px; font-style:normal; }
@media (max-width:760px) {
  .pj-overview-glance { grid-template-columns:1fr; }
  .pj-glance-wide { grid-column:auto; }
  .pj-glance-list { grid-template-columns:1fr; }
  .pj-glance-list > div:nth-child(2) { border-top:1px solid var(--hk-color-divider); }
}

/* Compact project plan sheet (2.51.17) */
.sp-sheet-wrap { overflow-x: auto; overflow-y: visible; }
.sp-sheet { table-layout: fixed; min-width: 720px; }
.sp-sheet th.sp-c-date { width: 76px; }
.sp-sheet th.sp-c-other { width: 190px; }
.sp-sheet th:not(.sp-c-date):not(.sp-c-other) { width: 112px; padding: 8px 7px; vertical-align: middle; }
.sp-colhead { min-height: 42px; align-items: center; }
.sp-colhead > span:first-child { width: 100%; overflow: hidden; }
.sp-colhead b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.sp-colhead small, .sp-colhead .sp-wait { display: none; }
.sp-colhead .sp-type { display: block; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 0; padding: 1px 6px; font-size: 9.5px; }
.sp-sheet td:not(.sp-c-date):not(.sp-c-other) { width: 112px; padding-left: 5px; padding-right: 5px; }
.sp-cell-in { min-height: 28px; }
.sp-cell-text { padding: 3px 3px; font-size: 12px; }
.sp-cell .sp-dot { margin-left: 2px; margin-right: 2px; }
.sp-c-other .sp-chips { flex-wrap: nowrap; overflow: hidden; }
.sp-c-other .sp-chip { max-width: 150px; flex: 0 1 auto; }
.sp-chip > a, .sp-chip > span:not(.sp-hover) { max-width: 86px; }
.sp-chip .sp-type, .sp-chip small { display: none; }
@media (max-width: 900px) {
  .sp-sheet { min-width: 680px; }
  .sp-sheet th:not(.sp-c-date):not(.sp-c-other), .sp-sheet td:not(.sp-c-date):not(.sp-c-other) { width: 96px; }
  .sp-sheet th.sp-c-other { width: 150px; }
}

/* v2.51.20 — structured SEO/SMM plan rows with a professional task list. */
.wpp-head { margin-bottom:14px !important; }
.wpp-monthbar { display:flex; align-items:center; justify-content:space-between; gap:18px; width:100%; padding:16px 18px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:18px; background:linear-gradient(135deg,var(--hk-surface,#fff),var(--hk-ink-a4,#f8fafc)); box-shadow:0 10px 30px rgba(15,23,42,.05); }
.wpp-monthbar .wp-month { flex:none; }
.wpp-monthbar .wp-month h2 { min-width:172px; font-size:22px; letter-spacing:-.02em; }
.wpp-stats { display:grid; grid-template-columns:repeat(4,minmax(88px,1fr)); gap:8px; min-width:min(480px,55%); }
.wpp-stats > span { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; padding:9px 11px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:11px; background:var(--hk-surface,#fff); }
.wpp-stats small { color:var(--hk-color-text-2,#64748b); font-size:10.5px; font-weight:650; white-space:nowrap; }
.wpp-stats b { font-size:17px; line-height:1; }
.wpp-stats .is-done b { color:#15803d; }
.wpp-stats .is-active b { color:#2563eb; }
.wpp-stats .is-review b { color:#7c3aed; }
.wpp-toolbar { position:relative; z-index:20; display:grid; grid-template-columns:auto minmax(220px,1fr) auto; align-items:center; gap:12px 18px; margin:0 0 14px; padding:12px 14px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:14px; background:var(--hk-surface,#fff); }
.wpp-toolbar p { margin:0; color:var(--hk-color-text-2,#64748b); font-size:12px; line-height:1.45; }
.wpp-actions,.wpp-legend { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.wpp-legend { justify-content:flex-end; color:var(--hk-color-text-2,#64748b); font-size:11px; }
.wpp-legend > span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.wpt-recurring-menu { position:relative; }
.wpt-recurring-menu > summary { list-style:none; cursor:pointer; }
.wpt-recurring-menu > summary::-webkit-details-marker { display:none; }
.wpt-recurring-menu > summary b { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:var(--hk-ink-a8,#e9edf3); color:var(--hk-color-text-2,#64748b); font-size:9px; }
.wpt-recurring-menu[open] > summary { border-color:rgba(37,99,235,.35); background:rgba(37,99,235,.055); }
.wpt-recurring-panel { position:absolute; top:calc(100% + 8px); left:0; z-index:80; width:min(720px,calc(100vw - 96px)); max-height:min(540px,70vh); overflow:auto; padding:14px; border:1px solid var(--hk-color-divider,#dfe4eb); border-radius:14px; background:var(--hk-surface,#fff); box-shadow:0 20px 50px rgba(15,23,42,.2); }
.wpt-recurring-panel > header { margin-bottom:10px; }
.wpt-recurring-panel > header strong,.wpt-recurring-panel > header small { display:block; }
.wpt-recurring-panel > header strong { font-size:14px; }
.wpt-recurring-panel > header small { margin-top:2px; color:var(--hk-color-text-2,#64748b); font-size:11px; }
.wpt-recurring-list { display:grid; gap:6px; }
.wpt-recurring-row { position:relative; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:9px; min-width:0; padding:9px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:10px; background:var(--hk-ink-a4,#f8fafc); }
.wpt-recurring-row:hover,.wpt-recurring-row:focus-within,.wpt-recurring-row:focus { border-color:rgba(37,99,235,.4); background:#fff; outline:none; }
.wpt-type-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#e8eefc; color:#1d4ed8; font-size:12px; font-weight:800; }
.wpt-recurring-copy { min-width:0; }
.wpt-recurring-copy b,.wpt-recurring-copy small,.wpt-recurring-copy a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wpt-recurring-copy b { font-size:12px; }
.wpt-recurring-copy small { margin-top:2px; color:var(--hk-color-text-2,#64748b); font-size:10px; }
.wpt-recurring-copy a { margin-top:3px; color:#9a6700; font-size:10px; text-decoration:none; }
.wpt-recurring-actions { display:flex; gap:2px; }
.wpt-table-card { border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:16px; background:var(--hk-surface,#fff); box-shadow:0 12px 30px rgba(15,23,42,.055); overflow:visible; }
.wpt-plan-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.wpt-plan-table .wpt-col-date { width:176px; }
.wpt-plan-table .wpt-col-action { width:98px; }
.wpt-plan-table thead th { padding:11px 14px; border-bottom:1px solid var(--hk-color-divider,#e5e7eb); background:var(--hk-ink-a4,#f8fafc); color:var(--hk-color-text-2,#64748b); font-size:10px; font-weight:750; letter-spacing:.045em; text-align:left; text-transform:uppercase; }
.wpt-plan-table thead th:first-child { border-radius:15px 0 0 0; }
.wpt-plan-table thead th:last-child { border-radius:0 15px 0 0; }
.wpt-plan-table tbody th,.wpt-plan-table tbody td { padding:14px; border-top:1px solid var(--hk-color-divider,#edf0f4); vertical-align:top; }
.wpt-plan-table tbody tr:first-child th,.wpt-plan-table tbody tr:first-child td { border-top:0; }
.wpt-date-row { transition:background .15s; }
.wpt-date-row:hover { background:rgba(248,250,252,.72); }
.wpt-date-row.is-off { background:rgba(248,250,252,.72); }
.wpt-date-row.is-past { background:rgba(248,250,252,.38); }
.wpt-date-row.is-today { background:rgba(37,99,235,.045); box-shadow:inset 3px 0 0 #2563eb; }
.wpt-date-cell { position:relative; min-width:0; text-align:left; }
.wpt-date-main { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:10px; min-width:0; }
.wpt-date-number { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:var(--hk-ink-a8,#eef2f6); font-size:15px; font-weight:800; }
.wpt-date-row.is-today .wpt-date-number { background:#2563eb; color:#fff; box-shadow:0 7px 16px rgba(37,99,235,.22); }
.wpt-date-copy { min-width:0; }
.wpt-date-copy b,.wpt-date-copy small { display:block; }
.wpt-date-copy b { font-size:12.5px; }
.wpt-date-copy small { margin-top:2px; color:var(--hk-color-text-2,#64748b); font-size:9.5px; white-space:nowrap; }
.wpt-date-cell > em { display:inline-block; width:max-content; margin-top:6px; padding:2px 7px; border-radius:999px; background:#2563eb; color:#fff; font-size:8.5px; font-style:normal; font-weight:750; }
.wpt-date-cell > em.is-off { background:transparent; color:var(--hk-color-text-3,#94a3b8); padding-left:0; }
.wpt-day-overview { display:grid; gap:5px; margin-top:11px; padding-top:9px; border-top:1px solid var(--hk-color-divider,#e5e7eb); }
.wpt-day-overview > strong { font-size:10.5px; }
.wpt-date-statuses { display:flex; flex-wrap:wrap; gap:4px; }
.wpt-date-statuses span { padding:2px 5px; border-radius:999px; background:var(--hk-ink-a4,#f1f5f9); color:var(--hk-color-text-2,#64748b); font-size:8px; font-weight:650; line-height:1.35; white-space:nowrap; }
.wpt-date-statuses .is-done { background:rgba(22,163,74,.09); color:#166534; }
.wpt-date-statuses .is-in_progress,.wpt-date-statuses .is-todo { background:rgba(37,99,235,.09); color:#1d4ed8; }
.wpt-date-statuses .is-review { background:rgba(124,58,237,.09); color:#6d28d9; }
.wpt-date-statuses .is-blocked { background:rgba(220,38,38,.08); color:#b91c1c; }
.wpt-work-cell { min-width:0; }
.wpt-task-list { position:relative; display:grid; min-width:0; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:12px; background:var(--hk-surface,#fff); }
.wpt-event { position:relative; display:grid; grid-template-columns:7px minmax(0,1fr) minmax(132px,180px) 96px 54px; align-items:center; gap:10px; min-width:0; min-height:46px; padding:8px 10px; border-top:1px solid var(--hk-color-divider,#edf0f4); background:transparent; transition:background .15s,box-shadow .15s; }
.wpt-event:first-child { border-top:0; border-radius:11px 11px 0 0; }
.wpt-event:last-child { border-radius:0 0 11px 11px; }
.wpt-event:only-child { border-radius:11px; }
.wpt-event:hover,.wpt-event:focus-within,.wpt-event:focus { z-index:4; background:rgba(37,99,235,.04); box-shadow:inset 3px 0 0 rgba(37,99,235,.55); outline:none; }
.wpt-event.is-done { background:rgba(22,163,74,.035); }
.wpt-event.is-in_progress { background:rgba(37,99,235,.04); }
.wpt-event.is-review { background:rgba(124,58,237,.04); }
.wpt-event.is-blocked { background:rgba(220,38,38,.035); }
.wpt-event.is-skipped,.wpt-event.is-removed { opacity:.62; }
.wpt-event-copy { min-width:0; }
.wpt-event-title,.wpt-event-copy > small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wpt-event-title { color:inherit; font-size:12px; font-weight:700; line-height:1.35; text-decoration:none; }
.wpt-event-title:hover { color:#1d4ed8; }
.wpt-event-copy > small { margin-top:2px; color:var(--hk-color-text-2,#64748b); font-size:9.5px; }
.wpt-assignee { display:flex; align-items:center; gap:7px; min-width:0; color:var(--hk-color-text-2,#64748b); }
.wpt-assignee.is-empty { color:var(--hk-color-text-3,#94a3b8); }
.wpt-person { display:grid; place-items:center; flex:none; width:26px; height:26px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:50%; background:#fff; color:#475569; font-size:8px; font-weight:800; }
.wpt-person-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; font-weight:650; }
.wpt-state { justify-self:start; padding:4px 7px; border-radius:999px; background:var(--hk-ink-a4,#f1f5f9); color:var(--hk-color-text-2,#64748b); font-size:8.5px; font-weight:750; line-height:1; white-space:nowrap; }
.wpt-state.is-done { background:rgba(22,163,74,.1); color:#166534; }
.wpt-state.is-in_progress,.wpt-state.is-todo { background:rgba(37,99,235,.1); color:#1d4ed8; }
.wpt-state.is-review { background:rgba(124,58,237,.1); color:#6d28d9; }
.wpt-state.is-blocked { background:rgba(220,38,38,.09); color:#b91c1c; }
.wpt-state.is-skipped,.wpt-state.is-removed { background:rgba(100,116,139,.1); color:#64748b; }
.wpt-event-actions { display:flex; justify-content:flex-end; gap:2px; opacity:.25; transition:opacity .15s; }
.wpt-event:hover .wpt-event-actions,.wpt-event:focus-within .wpt-event-actions { opacity:1; }
.wpt-empty { display:flex; align-items:center; min-height:46px; padding:0 12px; border:1px dashed var(--hk-color-divider,#d9dee6); border-radius:11px; color:var(--hk-color-text-3,#94a3b8); font-size:11px; }
.wpt-action-cell { text-align:right; }
.wpt-add { display:inline-flex; align-items:center; justify-content:center; gap:5px; width:100%; padding:7px 8px; border:1px solid var(--hk-color-divider,#dfe4eb); border-radius:9px; background:#fff; color:var(--hk-color-text-2,#64748b); font-size:9.5px; font-weight:700; cursor:pointer; transition:border-color .15s,color .15s,background .15s,box-shadow .15s; }
.wpt-add:hover,.wpt-add:focus-visible { border-color:rgba(37,99,235,.35); background:rgba(37,99,235,.055); color:#2563eb; box-shadow:0 5px 12px rgba(37,99,235,.08); outline:none; }
.wpt-slot { margin-top:8px; }
.wpt-slot:empty { display:none; }
.wpt-slot .wp-form { position:relative; z-index:8; width:min(100%,760px); box-shadow:0 12px 26px rgba(15,23,42,.16); }
[data-plan-tip]::after { content:attr(data-plan-tip); position:absolute; left:10px; top:calc(100% + 6px); z-index:90; width:max-content; max-width:420px; padding:8px 10px; border-radius:9px; background:#111827; color:#fff; font-size:10.5px; font-weight:500; line-height:1.4; white-space:normal; box-shadow:0 10px 26px rgba(0,0,0,.2); opacity:0; visibility:hidden; transform:translateY(-3px); pointer-events:none; transition:opacity .12s,transform .12s,visibility .12s; }
[data-plan-tip]:hover::after,[data-plan-tip]:focus::after,[data-plan-tip]:focus-within::after { opacity:1; visibility:visible; transform:translateY(0); }
@media (max-width:1100px) {
  .wpp-monthbar { align-items:stretch; flex-direction:column; }
  .wpp-stats { min-width:0; width:100%; }
  .wpp-toolbar { grid-template-columns:minmax(0,1fr); }
  .wpp-legend { justify-content:flex-start; }
  .wpt-event { grid-template-columns:7px minmax(0,1fr) auto 88px 48px; gap:8px; }
  .wpt-person-name { display:none; }
}
@media (max-width:760px) {
  .wpt-recurring-panel { position:absolute; top:calc(100% + 8px); right:auto; bottom:auto; left:0; width:min(720px,calc(100vw - 40px)); max-height:60vh; }
  .wpt-plan-table,.wpt-plan-table tbody { display:block; width:100%; }
  .wpt-plan-table colgroup,.wpt-plan-table thead { display:none; }
  .wpt-plan-table tr { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; padding:13px; border-top:1px solid var(--hk-color-divider,#edf0f4); }
  .wpt-plan-table tbody tr:first-child { border-top:0; }
  .wpt-plan-table tbody th,.wpt-plan-table tbody td { display:block; padding:0; border:0; }
  .wpt-date-cell { grid-column:1; grid-row:1; padding-right:92px !important; }
  .wpt-day-overview { display:none; }
  .wpt-work-cell { grid-column:1/-1; grid-row:2; margin-top:11px; }
  .wpt-action-cell { position:absolute; top:13px; right:13px; width:82px; }
  .wpt-event { grid-template-columns:7px minmax(0,1fr) auto; grid-template-areas:"dot copy state" ". assignee actions"; gap:5px 8px; padding:9px 10px; }
  .wpt-event > .sp-dot { grid-area:dot; }
  .wpt-event-copy { grid-area:copy; }
  .wpt-assignee { grid-area:assignee; }
  .wpt-person-name { display:block; max-width:190px; }
  .wpt-state { grid-area:state; }
  .wpt-event-actions { grid-area:actions; opacity:1; }
  .wpt-add { width:100%; }
}
@media (max-width:560px) {
  .wpp-monthbar { padding:12px; border-radius:14px; }
  .wpp-monthbar .wp-month { width:100%; justify-content:space-between; }
  .wpp-monthbar .wp-month h2 { min-width:0; font-size:19px; }
  .wpp-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wpp-toolbar { padding:10px; }
  .wpp-actions .button,.wpt-recurring-menu { flex:1 1 100%; }
  .wpt-recurring-menu > summary { width:100%; justify-content:center; }
  .wpt-date-main { grid-template-columns:34px minmax(0,1fr); }
  .wpt-date-number { width:34px; height:34px; }
  .wpt-day-overview { margin-top:8px; }
  .wpt-event { grid-template-columns:7px minmax(0,1fr) auto; }
  .wpt-person-name { max-width:125px; }
  [data-plan-tip]::after { display:none; }
}

/* v2.51.18 — completed-work reports contain finished tasks only. */
.wr-head-completed { padding:16px 18px; border:1px solid var(--hk-color-divider,#e5e7eb); border-radius:16px; background:linear-gradient(135deg,var(--hk-surface,#fff),rgba(22,163,74,.045)); }
.wr-head-completed .project-overview-kicker { display:block; margin-bottom:4px; color:#15803d; }
.wr-pct.is-complete { min-width:112px; border-color:rgba(22,163,74,.25); background:rgba(22,163,74,.08); color:#166534; }
.wr-sum-completed { grid-template-columns:repeat(3,minmax(140px,1fr)); }
.wr-table-completed tbody tr:hover { background:rgba(22,163,74,.035); }
.wr-table-completed .wr-work a { font-weight:650; }
.wr-empty { display:grid; gap:4px; padding:30px 18px; border:1px dashed var(--hk-color-divider,#d7dde6); border-radius:14px; text-align:center; color:var(--hk-color-text-2,#64748b); }
.wr-empty b { color:var(--hk-color-text,#0f172a); }
.wr-empty span { font-size:12px; }
@media (max-width:700px) { .wr-sum-completed { grid-template-columns:minmax(0,1fr); } }


/* v2.51.21 — Sunday is a fixed weekend/off day in SEO and SMM plans. */
.wpt-date-row.is-off .wpt-date-number { background:#f1f3f6; color:#98a2b3; }
.wpt-date-row.is-off .wpt-empty { border-style:solid; background:#fafbfc; color:#98a2b3; }
.wpt-date-row.is-off .wpt-action-cell { color:#98a2b3; }
