/* =====================================================================
   Totally · ActiveCollab 7.3.358 restyle — "Graphite"
   A quiet neutral canvas, a graphite sidebar, Inter type and one cobalt
   accent, in matching light and dark modes.

   Covers all four built-in themes: the variable block below beats
   Indigo, Cupcake, Classic and Neon alike, so everyone gets Graphite.
   Light/dark is chosen with the topbar toggle added by theme-toggle.js,
   which sets html.totally-dark.

   Selectors outside the brief's regions table were checked against the
   live 7.3.358 DOM on 28 October 2026. The structure each one relies on
   is noted beside it.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ---------- 1. Theme variables: light (default) ---------- */
html[class] {
  color-scheme: light;

  --color-primary: #3e63dd;
  --color-primary-200: rgba(62, 99, 221, 0.05);
  --color-primary-300: rgba(62, 99, 221, 0.1);
  --color-primary-400: rgba(62, 99, 221, 0.25);
  --color-primary-500: rgba(62, 99, 221, 0.5);
  --color-primary-600: rgba(62, 99, 221, 0.75);
  --color-primary-700: #3e63dd;
  --color-primary-800: #3451b8;
  --color-primary-900: #253c8c;
  --color-primary-opaque-300: #eef2fd;
  --color-primary-opaque-400: #d5def8;

  --color-secondary: #3e63dd;
  --color-secondary-200: rgba(62, 99, 221, 0.05);
  --color-secondary-300: rgba(62, 99, 221, 0.1);
  --color-secondary-400: rgba(62, 99, 221, 0.25);
  --color-secondary-500: rgba(62, 99, 221, 0.5);
  --color-secondary-600: rgba(62, 99, 221, 0.75);
  --color-secondary-700: #3e63dd;
  --color-secondary-800: #3451b8;
  --color-secondary-900: #253c8c;
  --color-secondary-opaque-300: #eef2fd;
  --color-secondary-opaque-400: #d5def8;

  --color-theme-100: #ffffff;
  --color-theme-200: #f7f8fa;
  --color-theme-300: #eef0f3;
  --color-theme-400: #e2e5ea;
  --color-theme-500: #c4c9d2;
  --color-theme-600: #8b93a1;
  --color-theme-700: #646b78;
  --color-theme-800: #4b5361;
  --color-theme-900: #1c2230;

  --color-theme-transparent-200: rgba(17, 24, 39, 0.04);
  --color-theme-transparent-300: rgba(17, 24, 39, 0.08);
  --color-theme-transparent-400: rgba(17, 24, 39, 0.14);
  --color-theme-transparent-500: rgba(17, 24, 39, 0.24);
  --color-theme-transparent-600: rgba(17, 24, 39, 0.45);
  --color-theme-transparent-700: rgba(17, 24, 39, 0.6);
  --color-theme-transparent-800: rgba(17, 24, 39, 0.75);

  --body-bg-main: #f5f6f8;
  --body-bg-main-transparent: rgba(245, 246, 248, 0);
  --page-paper-main: #ffffff;
  --page-paper-main-shadow: rgba(255, 255, 255, 0);
  --border-primary: #e4e7ec;
  --input-background-color: #ffffff;
  --modal-background: rgba(17, 24, 39, 0.35);
  --note-bg: #fff8eb;
  --highlight-dark: rgba(17, 24, 39, 0.035);

  --color-sucess-green: #2f9e6e;
  --red-alert: #e5484d;
  --warning: #f5a524;

  --ac-br-4: 6px;
  --ac-br-6: 8px;
  --ac-br-8: 12px;
  --ac-br-rounded: 999px;

  --shadow-primary: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-primary-hover: 0 4px 14px rgba(17, 24, 39, 0.08), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-secondary: 0 2px 8px rgba(17, 24, 39, 0.08);
  --shadow-tertiary: 0 12px 32px rgba(17, 24, 39, 0.14), 0 2px 6px rgba(17, 24, 39, 0.06);
  --shadow-tertiary-hover: 0 16px 40px rgba(17, 24, 39, 0.17), 0 2px 6px rgba(17, 24, 39, 0.08);

  /* Graphite's own tokens */
  --tc-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tc-side: #12151c;
  --tc-side-text: #a4abb8;
  --tc-side-icon: #8a92a0;
  --tc-side-hover: rgba(255, 255, 255, 0.06);
  --tc-side-active: rgba(124, 156, 255, 0.16);
  --tc-side-active-icon: #a3b9ff;
  --tc-sunken: #eef0f3;
  --tc-border-strong: #c4c9d2;
  --tc-accent-ink: #2c4bc0;
  --tc-on-accent: #ffffff;
  --tc-ring: rgba(62, 99, 221, 0.22);
}

/* ---------- 2. Theme variables: dark (html.totally-dark) ---------- */
html[class].totally-dark {
  color-scheme: dark;

  --color-primary: #7c9cff;
  --color-primary-200: rgba(124, 156, 255, 0.06);
  --color-primary-300: rgba(124, 156, 255, 0.12);
  --color-primary-400: rgba(124, 156, 255, 0.25);
  --color-primary-500: rgba(124, 156, 255, 0.5);
  --color-primary-600: rgba(124, 156, 255, 0.75);
  --color-primary-700: #7c9cff;
  --color-primary-800: #a3b9ff;
  --color-primary-900: #c9d6ff;
  --color-primary-opaque-300: #232b45;
  --color-primary-opaque-400: #2c3760;

  --color-secondary: #7c9cff;
  --color-secondary-200: rgba(124, 156, 255, 0.06);
  --color-secondary-300: rgba(124, 156, 255, 0.12);
  --color-secondary-400: rgba(124, 156, 255, 0.25);
  --color-secondary-500: rgba(124, 156, 255, 0.5);
  --color-secondary-600: rgba(124, 156, 255, 0.75);
  --color-secondary-700: #7c9cff;
  --color-secondary-800: #a3b9ff;
  --color-secondary-900: #c9d6ff;
  --color-secondary-opaque-300: #232b45;
  --color-secondary-opaque-400: #2c3760;

  /* runs dark → light, like Neon */
  --color-theme-100: #0b0d12;
  --color-theme-200: #151820;
  --color-theme-300: #1b1f29;
  --color-theme-400: #232834;
  --color-theme-500: #3a404d;
  --color-theme-600: #6b7280;
  --color-theme-700: #9aa1ae;
  --color-theme-800: #c9ced6;
  --color-theme-900: #f2f4f7;

  --color-theme-transparent-200: rgba(0, 0, 0, 0.14);
  --color-theme-transparent-300: rgba(0, 0, 0, 0.24);
  --color-theme-transparent-400: rgba(0, 0, 0, 0.5);
  --color-theme-transparent-500: rgba(255, 255, 255, 0.2);
  --color-theme-transparent-600: rgba(255, 255, 255, 0.35);
  --color-theme-transparent-700: rgba(255, 255, 255, 0.6);
  --color-theme-transparent-800: rgba(255, 255, 255, 0.85);

  --body-bg-main: #0f1117;
  --body-bg-main-transparent: rgba(15, 17, 23, 0);
  --page-paper-main: #171a21;
  --page-paper-main-shadow: rgba(23, 26, 33, 0);
  --border-primary: #262b36;
  --input-background-color: #12151c;
  --modal-background: rgba(8, 10, 14, 0.7);
  --note-bg: #2a2618;
  --highlight-dark: rgba(255, 255, 255, 0.04);

  --shadow-primary: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-primary-hover: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-secondary: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-tertiary: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px #262b36;
  --shadow-tertiary-hover: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px #3a404d;

  --tc-side: #0b0d12;
  --tc-sunken: #0f1117;
  --tc-border-strong: #3a404d;
  --tc-accent-ink: #a3b9ff;
  --tc-on-accent: #0b0d12;
  --tc-ring: rgba(124, 156, 255, 0.28);
}

/* ---------- 3. Type ---------- */
body,
.typography,
[class*="StyledTypography-sc-"] {
  font-family: var(--tc-font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

.paper-title {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* The name's text is an inner .typography that sets its own 16px/700 */
.entity-property-name,
.entity-property-name .typography {
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- 4. Left sidebar ---------- */
/* #main_sidebar is the full-height column: logo, then #main_menu (only the
   links), then the collapse («) button. Width stays at AC's 240px so that
   button keeps working. AC styles the links as #main_sidebar #menu_items
   ul li a, so the rules below repeat that selector to win. */
#main_sidebar {
  background-color: var(--tc-side);
}

/* Classic puts a photo behind the sidebar, with !important */
.classic #main_sidebar {
  background-image: none !important;
}

#main_sidebar .main-app-logo #logotype {
  fill: #ffffff;
}

#main_sidebar .main-app-logo #logo_symbol {
  fill: var(--tc-side-active-icon);
}

#main_sidebar .collapse-button {
  color: var(--tc-side-icon);
}

#main_sidebar #menu_items ul li a {
  height: 36px;
  line-height: 36px;
  margin: 2px 12px;
  padding-left: 48px;
  border-radius: 8px;
  color: var(--tc-side-text);
  transition: background-color 0.12s ease, color 0.12s ease;
}

/* AC sets the hover colour with !important */
#main_sidebar #menu_items ul li a:hover {
  background-color: var(--tc-side-hover);
  color: #ffffff !important;
}

/* AC marks the current item on the <li> (li.current), not the link */
#main_sidebar #menu_items ul li.current a {
  background-color: var(--tc-side-active);
  color: #ffffff;
}

/* The icon is absolutely placed in the <li>, whose top is the link's top
   (the link's margins collapse through it). AC's collapsed-sidebar rule is
   more specific and still sets its own left. */
#main_sidebar li .menu_icon {
  top: 6px;
  left: 24px;
  opacity: 1;
  color: var(--tc-side-icon);
}

/* Collapsed to 64px (by the « button, or below 1024px wide), AC pads the
   link by up to 56px to push the hidden label out. Cap it at the 40px
   pill so the pill stays inside the sidebar. */
#main_sidebar.main_sidebar_collapsed #menu_items ul li a {
  padding-left: 40px;
}

@media (max-width: 1024px) {
  #main_sidebar li .menu_icon {
    left: 21px;
  }

  #main_sidebar #menu_items ul li a,
  #main_sidebar #menu_items ul li a:hover {
    padding-left: 40px;
  }
}

#main_sidebar #menu_items ul li.current .menu_icon,
#main_sidebar #menu_items .current .main_menu_icon_calendar_date {
  color: var(--tc-side-active-icon);
}

#main_sidebar #menu_items .menu_text {
  font-size: 13.5px;
  font-weight: 500;
}

/* The menu is two lists (Projects to Timesheet, then Reports, Add-Ons and
   Trash); the design rules a faint line between them */
#main_sidebar #menu_items ul {
  margin-bottom: 10px;
}

#main_sidebar #menu_items ul + ul::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 24px 10px;
  background: rgba(255, 255, 255, 0.07);
}

#main_sidebar.main_sidebar_collapsed #menu_items ul + ul::before {
  margin: 0 12px 10px;
}

@media (max-width: 1024px) {
  #main_sidebar #menu_items ul + ul::before {
    margin: 0 12px 10px;
  }
}

/* ---------- 5. Top bar (and the new light/dark toggle) ---------- */
#main_topbar .topbar_item {
  border-radius: 8px;
  transition: background-color 0.12s ease;
}

#main_topbar .topbar_item:hover {
  background: var(--highlight-dark);
}

/* The top bar is a <ul> of floated 40px <li>s; theme-toggle.js gives the
   toggle its own <li> just before the avatar (li#user_profile). AC turns
   pointer events off for the bar and back on only for li.topbar_item. */
#totally_theme_item {
  float: left;
  display: flex;
  align-items: center;
  height: 40px;
  margin-left: 8px;
  list-style: none;
  pointer-events: all;
}

#totally_theme_toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0 4px;
  padding: 0 10px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  background: var(--page-paper-main);
  color: var(--color-theme-800);
  font: 500 12px var(--tc-font);
  cursor: pointer;
  pointer-events: all;
}

#totally_theme_toggle:hover {
  border-color: var(--tc-border-strong);
  background: var(--page-paper-main);
}

#totally_theme_toggle svg {
  width: 15px;
  height: 15px;
}

/* ---------- 6. Page, cards and panels ---------- */
/* #main_page is the column beside the sidebar. AC pads only its right
   (32px), so content sat flush against the sidebar. The top padding gives
   the top-bar icons (#main_topbar: absolute, top 12px, 40px tall) their
   own row, as in the design, instead of floating over the page title; the
   title rows AC narrowed to make room for them go back to full width. Not
   on the login page, which centres #main_page, or on phones, where AC
   hides the sidebar and pads it by 5px. */
@media (min-width: 481px) {
  html:not(.unauthorized) #main_page {
    padding-top: 52px;
    padding-left: 32px;
  }

  html:not(.unauthorized) .super-header {
    width: auto;
  }

  /* AC sets calc(100% - 200px) with !important */
  html:not(.unauthorized) .project-header {
    width: auto !important;
  }
}

[class*="StyledPaper-sc-"] {
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  box-shadow: none;
}

/* ---------- 7. Rows: projects list and task cards ---------- */
[class*="StyledCard-sc-"] {
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

[class*="StyledCard-sc-"]:hover {
  border-color: var(--tc-border-strong);
  box-shadow: var(--shadow-primary-hover);
}

/* Projects list: merge each group's rows into one panel with hairlines.
   Every group (Favorite, Other…) is its own .project_list.list, and each
   row card sits alone inside an <a>, so the <a>s are the siblings. */
.project_list.list > a > .c-card {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  border-top-width: 0;
}

.project_list.list > a:first-of-type > .c-card {
  border-top-width: 1px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.project_list.list > a:last-of-type > .c-card {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Favourite star: AC draws a 24px SVG in a fixed 24px box */
.project_list .entity-property-star {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project_list .entity-property-star svg {
  width: 16px;
  height: 16px;
}

.project_list.list > a > .c-card:hover {
  box-shadow: none;
  border-color: var(--border-primary);
  background: var(--color-theme-200);
}

/* ---------- 8. Status pills (labels) ---------- */
/* .item_label > .label_text_wrapper > .item_label_text. AC colours each
   label inline from its fixed 15-colour palette (LabelColorPaletteFactory):
   the background on .item_label, the text on .item_label_text. Inline
   styles only yield to !important. Each palette colour gets a soft tint
   and a strong ink, light and dark; the + Label button has no inline
   colour and keeps AC's look. */
.item_label[style*="rgb(253, 241, 150)"] { --tc-pill-bg: #f4f1d8; --tc-pill-ink: #635905; --tc-pill-bg-dark: rgba(167, 154, 63, 0.18); --tc-pill-ink-dark: #d8cd7e; }
.item_label[style*="rgb(251, 187, 117)"] { --tc-pill-bg: #ffedda; --tc-pill-ink: #7c4c06; --tc-pill-bg-dark: rgba(199, 138, 67, 0.18); --tc-pill-ink-dark: #f8be80; }
.item_label[style*="rgb(234, 194, 173)"] { --tc-pill-bg: #faede7; --tc-pill-ink: #734e3a; --tc-pill-bg-dark: rgba(181, 143, 123, 0.18); --tc-pill-ink-dark: #e6c2af; }
.item_label[style*="rgb(251, 214, 231)"] { --tc-pill-bg: #f8edf2; --tc-pill-ink: #6e4c5d; --tc-pill-bg-dark: rgba(175, 141, 157, 0.18); --tc-pill-ink-dark: #e1c0cf; }
.item_label[style*="rgb(255, 156, 156)"] { --tc-pill-bg: #ffebea; --tc-pill-ink: #933238; --tc-pill-bg-dark: rgba(216, 121, 122, 0.18); --tc-pill-ink-dark: #feb4b3; }
.item_label[style*="rgb(196, 156, 182)"] { --tc-pill-bg: #f9ecf4; --tc-pill-ink: #704a64; --tc-pill-bg-dark: rgba(178, 139, 164, 0.18); --tc-pill-ink-dark: #e3bed6; }
.item_label[style*="rgb(190, 172, 249)"] { --tc-pill-bg: #eeeafd; --tc-pill-ink: #5b3fc4; --tc-pill-bg-dark: rgba(140, 110, 255, 0.2); --tc-pill-ink-dark: #b9a6ff; }
.item_label[style*="rgb(189, 247, 253)"] { --tc-pill-bg: #e3f4f6; --tc-pill-ink: #226269; --tc-pill-bg-dark: rgba(108, 163, 169, 0.18); --tc-pill-ink-dark: #a2d5da; }
.item_label[style*="rgb(190, 234, 255)"] { --tc-pill-bg: #e6f3f9; --tc-pill-ink: #315f72; --tc-pill-bg-dark: rgba(117, 159, 179, 0.18); --tc-pill-ink-dark: #abd1e4; }
.item_label[style*="rgb(160, 203, 253)"] { --tc-pill-bg: #e6f1ff; --tc-pill-ink: #2f5a8a; --tc-pill-bg-dark: rgba(114, 156, 203, 0.18); --tc-pill-ink-dark: #a8cefb; }
.item_label[style*="rgb(185, 228, 224)"] { --tc-pill-bg: #e7f3f2; --tc-pill-ink: #35615e; --tc-pill-bg-dark: rgba(121, 162, 158, 0.18); --tc-pill-ink-dark: #add4d0; }
.item_label[style*="rgb(195, 231, 153)"] { --tc-pill-bg: #e3f5ec; --tc-pill-ink: #1e7a50; --tc-pill-bg-dark: rgba(47, 158, 110, 0.18); --tc-pill-ink-dark: #6fd3a3; }
.item_label[style*="rgb(152, 181, 124)"] { --tc-pill-bg: #eaf4e2; --tc-pill-ink: #466226; --tc-pill-bg-dark: rgba(135, 163, 107, 0.18); --tc-pill-ink-dark: #bad5a1; }
.item_label[style*="rgb(221, 221, 221)"],
.item_label[style*="rgb(202, 202, 202)"] { --tc-pill-bg: #eef0f3; --tc-pill-ink: #4b5361; --tc-pill-bg-dark: rgba(154, 161, 174, 0.16); --tc-pill-ink-dark: #c9ced6; }

html.totally-dark .item_label[style*="background-color"] {
  --tc-pill-bg: var(--tc-pill-bg-dark);
  --tc-pill-ink: var(--tc-pill-ink-dark);
}

.item_label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
}

.item_label[style*="background-color"] {
  background-color: var(--tc-pill-bg) !important;
}

/* The design's 6px dot before the label */
.item_label[style*="background-color"]::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tc-pill-ink);
}

.item_label[style*="background-color"] .item_label_text {
  color: var(--tc-pill-ink) !important;
}

/* Sentence case, as in the design. The text is the label's name in AC,
   so "INPROGRESS" reads "Inprogress" until the label is renamed. */
.item_label_text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.item_label_text::first-letter {
  text-transform: uppercase;
}

/* ---------- 9. Tab bars: tabs as a segmented control ---------- */
/* nav.c-nav > ul > li.c-nav__item > a.nav-item > div.nav_header. AC marks
   the current tab li.c-nav__item--active and underlines it with li::after.
   AC stretches the nav to the header's full height. */
nav.c-nav {
  align-self: center;
  height: auto;
  padding: 3px;
  border-radius: 9px;
  background: var(--tc-sunken);
}

nav.c-nav ul {
  align-items: center;
  gap: 2px;
}

/* The <li> is the segment. On My Work the label sits straight in it. On
   project pages the <li> is tw-p-0 (padding 0, !important) and the label
   is an <a>, padded instead so the whole segment stays clickable. */
nav.c-nav .c-nav__item {
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
}

nav.c-nav .c-nav__item::after {
  display: none;
}

nav.c-nav .c-nav__item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  border-radius: 7px;
  text-decoration: none;
}

nav.c-nav .nav_header {
  color: var(--color-theme-700);
  font-weight: 500;
}

nav.c-nav .c-nav__item:hover .nav_header {
  color: var(--color-theme-900);
}

nav.c-nav .c-nav__item--active {
  background: var(--page-paper-main);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

/* AC colours the active label with !important */
nav.c-nav .c-nav__item--active div.nav_header {
  color: var(--color-theme-900) !important;
  font-weight: 600;
}

html.totally-dark nav.c-nav .c-nav__item--active {
  box-shadow: 0 0 0 1px var(--border-primary);
}

/* ---------- 10. Buttons and form fields ---------- */
/* Every AC 7 button is a StyledButton (.c-btn). Icon buttons AC rounds
   with border-radius: 100% (more specific) stay circles; the big + button
   (999px) becomes a rounded square, as in the mock-ups. */
[class*="StyledButton-sc-"] {
  border-radius: 8px;
  font-family: var(--tc-font);
  font-weight: 600;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  border-radius: 8px;
  border-color: var(--tc-border-strong);
  background-color: var(--input-background-color);
  font-family: var(--tc-font);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--tc-ring);
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- 11. The + menu and other dropdown menus ---------- */
/* AC 7's React menus, such as a project's + and ⋯ menus, are
   .c-simple-menu__paper > ul > li.c-list-item, with div.c-list-separator
   between groups. The <ul> brings 8px of its own padding through
   Tailwind's tw-py-2, which AC builds with !important. */
.c-simple-menu__paper {
  padding: 6px;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--page-paper-main);
  box-shadow: var(--shadow-tertiary);
}

.c-simple-menu__paper > ul {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.c-simple-menu__paper .c-list-item {
  min-height: 36px;
  margin: 1px 0;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 500;
}

.c-simple-menu__paper .c-list-item:hover {
  background: var(--color-theme-200);
  color: var(--tc-accent-ink);
}

.c-simple-menu__paper .c-list-separator {
  margin: 6px 10px;
}

/* ---------- 12. My Preferences: AC's theme picker ---------- */
/* Graphite replaces all four themes, so the Appearance section goes: its
   h2, the "Color Scheme" label and the picker are siblings on /settings. */
.ac-my-preferences__header:has(+ .ac-my-preferences__label + .ac-my-preferences__color-scheme),
.ac-my-preferences__label:has(+ .ac-my-preferences__color-scheme),
.ac-my-preferences__color-scheme {
  display: none;
}

/* ---------- 13. A project's task lists (#project_tasks) ---------- */
/* One .page_paper holds two floats: .project_tasks_left_column (the
   lists) and .project_tasks_right_column (the filters). The design shows
   them as two cards. */
#project_tasks .page_paper.paper_with_padding_top {
  padding: 0;
  background: none;
  box-shadow: none;
}

#project_tasks .project_tasks_left_column,
#project_tasks .project_tasks_right_column {
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--page-paper-main);
}

#project_tasks .project_tasks_left_column {
  padding: 8px 20px 12px;
}

#project_tasks .project_tasks_right_column {
  padding: 16px 16px 12px;
}

/* The filters: AC sets 14px text on fixed 26px rows and cuts long names off
   with an ellipsis, and the task-list section's reorder handle (☰,
   absolute, right 4px) sits on top of the count. Smaller text that wraps,
   with room kept for the handle. AC's own selectors, to win. */
#project_tasks.list_mode .project_tasks_columns .project_tasks_right_column {
  font-size: 12.5px;
}

#project_tasks.list_mode .project_tasks_columns .project_tasks_right_column .project_tasks_right_column_section ul li {
  height: auto;
  min-height: 26px;
  padding: 4px 0;
  line-height: 18px;
}

#project_tasks.list_mode .project_tasks_columns .project_tasks_right_column .project_tasks_right_column_section ul li .project_tasks_right_column_section_name_wrap .project_tasks_right_column_task_list_name,
#project_tasks.list_mode .project_tasks_columns .project_tasks_right_column .project_tasks_right_column_section ul li .project_tasks_right_column_section_name {
  max-width: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#project_tasks .project_tasks_right_column_task_list_counter {
  flex: none;
  margin-left: 4px;
  color: var(--color-theme-700);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#project_tasks .sidebar_task_lists .task_list_reorder {
  padding-right: 18px;
}

/* List heading: name, then .list_tasks_counter ("7 of 23 open") */
#project_tasks .typography.task-list-header {
  align-items: baseline;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

#project_tasks .task-list-header .list_tasks_counter {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-theme-700);
}

/* A task: .c-complete-checkbox, a.task_assignee, a.task_name, then the
   signifier icons. AC floats them; a flex row centres them. My Work
   (section 16) shows the same rows, less the assignee, so the row rules
   cover #my_work too. */
#project_tasks .task.task_view_mode,
#my_work .task.task_view_mode {
  display: flex;
  align-items: center;
  min-height: 38px;
  height: auto;
  padding: 0 32px 0 8px;
  border-radius: 8px;
}

#project_tasks .task_view_mode .task_panel_menu,
#my_work .task_view_mode .task_panel_menu {
  top: 7px;
}

/* The checkbox is a 24px circle with a 48px SVG centred on it, so zoom
   scales the whole control to 18px (and the 2px border to 1.5px). */
#project_tasks .task_view_mode .c-complete-checkbox,
#my_work .task_view_mode .c-complete-checkbox {
  flex: none;
  zoom: 0.75;
  border-width: 2px;
  border-color: var(--tc-border-strong);
}

#project_tasks .task_view_mode .task_assignee {
  flex: none;
  height: 20px;
  line-height: 20px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary-opaque-300);
  color: var(--tc-accent-ink);
  font-size: 11px;
  font-weight: 600;
}

#project_tasks .task_view_mode .task_name,
#my_work .task_view_mode .task_name {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-theme-900);
}

/* The signifiers and labels after the name (span.simple_label: HIGH, IN
   PROGRESS…) keep to one line; a long name wraps instead */
#project_tasks .task_view_mode .icons_wrapper,
#project_tasks .task_view_mode .simple_label,
#my_work .task_view_mode .icons_wrapper,
#my_work .task_view_mode .simple_label {
  flex: none;
  white-space: nowrap;
}

/* AC marks "important" tasks with a highlighter yellow behind the name
   (rgb(255, 246, 153)), which needs dark text; dark mode dims it to amber */
#project_tasks .task_view_mode .task_name.important,
#my_work .task_view_mode .task_name.important {
  padding: 0 4px;
  border-radius: 4px;
}

html.totally-dark #project_tasks .task_view_mode .task_name.important,
html.totally-dark #my_work .task_view_mode .task_name.important {
  background-color: rgba(245, 165, 36, 0.2);
}

/* Completed tasks: AC fades the whole row to 50%; the design greys only
   the name and keeps a solid green check. */
#project_tasks .task_view_mode.completed_task,
#my_work .task_view_mode.completed_task {
  opacity: 1;
}

#project_tasks .completed_task .task_name,
#my_work .completed_task .task_name {
  color: var(--color-theme-700);
}

/* AC fills the done circle with a 12px inset shadow in its own green */
#project_tasks .completed_task .c-complete-checkbox,
#my_work .completed_task .c-complete-checkbox {
  border-color: var(--color-sucess-green);
  box-shadow: inset 0 0 0 12px var(--color-sucess-green);
}

#project_tasks .completed_task .c-complete-checkbox svg path,
#my_work .completed_task .c-complete-checkbox svg path {
  stroke: var(--color-sucess-green);
}

/* Shown while a task is being completed; AC hard-codes white */
#project_tasks .task_view_mode .task_complete_toggler_loader,
#my_work .task_view_mode .task_complete_toggler_loader {
  background-color: var(--page-paper-main);
}

/* "Show 13 more completed tasks"; AC's own selector, to win */
#project_tasks.list_mode div.task_list_tasks .completed_task_toggler {
  color: var(--color-theme-700);
  font-size: 12px;
  font-weight: 500;
}

/* "Add a Task to This List": AC's round blue icon and its hover fill
   (::after) become a dashed outline button with a plain plus. */
#project_tasks .project_tasks_add .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin: 6px 0 4px -2px;
  padding: 0 10px 0 6px;
  border: 1px dashed var(--tc-border-strong);
  border-radius: 8px;
  color: var(--tc-accent-ink);
  text-decoration: none;
}

#project_tasks .project_tasks_add .btn-add::after {
  display: none;
}

#project_tasks .project_tasks_add .btn-add:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-opaque-300);
}

#project_tasks .project_tasks_add .add-icon {
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 0;
  background: none;
}

#project_tasks .project_tasks_add .add-icon::before,
#project_tasks .project_tasks_add .add-icon::after {
  position: absolute;
  background: currentColor;
}

#project_tasks .project_tasks_add .add-icon::before {
  top: 1px;
  left: 6px;
  width: 2px;
  height: 12px;
}

#project_tasks .project_tasks_add .add-icon::after {
  top: 6px;
  left: 1px;
  width: 12px;
  height: 2px;
}

/* AC turns the label white on hover, for its blue fill */
#project_tasks .project_tasks_add .btn-add__label,
#project_tasks .project_tasks_add .btn-add:hover .btn-add__label {
  height: auto;
  line-height: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: inherit;
  text-transform: lowercase;
}

#project_tasks .project_tasks_add .btn-add__label::first-letter {
  text-transform: uppercase;
}

/* ---------- 14. A project's task columns (#project_tasks.column_mode) ---------- */
/* .columns_wrapper holds a .column.column_task_list per task list, the last
   being .completed_column. Each has a .column_header (name, then
   .list_tasks_counter), the cards (.column-card-task > a >
   .c-card.column_card) and the .project_tasks_add button. It is built from
   Tailwind utilities, which AC compiles with !important. */
/* AC pulls the columns 12px left, for lanes it never drew; with a visible
   lane that cut off the first one */
#project_tasks .columns_wrapper {
  margin: 0;
}

/* Space under the tab bar. The board is an absolute layer (tw-inset-0). */
#project_tasks .column_view_wrapper_shadows {
  top: 16px !important;
}

/* AC sizes the board to the window, less 140px; less the header row too */
@media (min-width: 481px) {
  #project_tasks.column_mode .page_main .page_main_inner {
    min-height: calc(100vh - 192px);
  }
}

#project_tasks .column.column_task_list {
  margin-right: 12px;
  border-color: var(--border-primary) !important;
  border-radius: 12px !important;
  background: var(--tc-sunken);
}

#project_tasks .column_header .task_list_name_header {
  font-weight: 650 !important;
}

#project_tasks .column_header .task_list_name_header .tw-text-base {
  font-size: 13.5px !important;
  letter-spacing: -0.01em;
}

#project_tasks .column_header .list_tasks_counter {
  font-weight: 500;
  color: var(--color-theme-700);
}

#project_tasks .column-card-task {
  margin-bottom: 8px !important;
}

#project_tasks .column_card {
  padding: 12px 12px 10px;
}

#project_tasks .column_card .task_name {
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-theme-800);
}

/* AC places "Add a task" (its ColumnFooter, .tw-absolute) at the card
   list's height as measured when it last scrolled or the window resized,
   so cards that grow afterwards (this font, this padding) end up under
   it. In normal flow it simply follows the cards. The list keeps its
   max-height, so long columns still scroll, and drops are handled by the
   whole column, which keeps its full height. */
#project_tasks .column_task_list > .tw-flex-1 > .tw-h-full,
#project_tasks .column_task_list > .tw-flex-1 > .tw-h-full > .tw-relative {
  height: auto !important;
}

#project_tasks .column_task_list > .tw-flex-1 > .tw-absolute {
  position: static !important;
}

/* AC gives completed cards a fixed pastel green (rgb(243, 255, 252)) that
   glares in dark mode. A little of the success green mixed into the card
   colour reads as done in both modes. */
#project_tasks .column_card.completed_task,
#project_tasks .completed_column .column-card-loader {
  background: color-mix(in srgb, var(--color-sucess-green) 8%, var(--page-paper-main));
}

#project_tasks .column_card.completed_task .task_name {
  color: var(--color-theme-700);
}

/* ---------- 15. A project's notes (#project_notes) ---------- */
/* AC hard-codes the note card's cream (rgb(255, 240, 206)) and its text
   greys, which glare in dark mode; there they use the theme's --note-bg
   and greys. The comment count (.count) keeps its own colour. */
html.totally-dark #project_notes .project_note .project_note_inner,
html.totally-dark #project_note_collection .project_note .project_note_inner {
  background-color: var(--note-bg);
  color: var(--color-theme-700);
}

html.totally-dark #project_notes .project_note_inner *:not(.count),
html.totally-dark #project_note_collection .project_note_inner *:not(.count) {
  color: inherit;
}

html.totally-dark #project_notes .project_note .project_note_inner h3,
html.totally-dark #project_note_collection .project_note .project_note_inner h3 {
  color: var(--color-theme-900);
}

/* ---------- 16. My Work's tasks (#my_work) ---------- */
/* The task rows share section 13's rules. Grouped by project, each
   project has a .my_work_project_list heading (a.my_work_project_name,
   .my_work_dot, .my_work_company_name, .my_work_line), then a
   .my_work_task_list heading ("Bugs (5)") over each .tasks_group_list.
   Grouped by start or due date, each group has a .grouped_by_header
   (.group_by_date_name, .line) and the rows name their project. */
/* The tasks sit in a React paper, which sets the system font, where a
   project's task lists inherit Inter from the page */
#my_work [class*="StyledPaper-sc-"] {
  font-family: var(--tc-font);
}

/* AC keeps 12px under a heading; the 38px rows bring their own space */
#my_work .my_work_task_list,
#my_work .my_work_tasks_grouped_by_date .grouped_by_header {
  margin-bottom: 4px;
}

#my_work .my_work_task_list {
  margin-top: 16px;
}

#my_work .my_work_project_list .my_work_project_name,
#my_work .my_work_tasks_grouped_by_date .group_by_date_name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

#my_work .my_work_project_list .my_work_company_name {
  color: var(--color-theme-700);
  font-size: 12.5px;
}

/* As a project's list heading in section 13. The count is part of the
   name's text, so it can't be greyed like the project page's. */
#my_work .my_work_task_list .my_work_task_list_name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Sized like the comment counts beside it */
#my_work .task_view_mode .tasks_project_name_wrapper {
  color: var(--color-theme-700);
  font-size: 12px;
}
