/* ==========================================================================
   Graphic Design Eye — Contracted Workspace
   Responsive dashboard: desktop · tablet · mobile
   ========================================================================== */

/* ---------- Font (self-hosted, variable weight 100–900) ---------- */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback sized to match Onest, so text doesn't jump when the web font finishes loading */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 105.08%;
  ascent-override: 92.31%;
  descent-override: 29.03%;
  line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand + neutrals */
  --brand: #79eb55;
  --brand-strong: #1ea849;
  --ink: #0f1511;
  --text: #1d1d1d;
  --text-2: #4a524d;
  --muted: #7a827d;
  --muted-2: #9aa19c;
  --slate: #495584;          /* sidebar text */
  --slate-icon: #5b6475;
  --nav-active: #8fbd56;
  --page: #f4f4e7;
  --surface: #ffffff;
  --surface-2: #f6f7f3;
  --line: #e5e7e2;
  --line-2: #eff0ec;
  --line-panel: #ecece0;
  --track-soft: #f3f4ee;

  /* Status (final palette) — chip bg, text/dot, sidebar/tab dot, progress gradient */
  --st-in-progress-bg: #e1f1eb; --st-in-progress-fg: #007d5b; --st-in-progress-dot: #007d5b; --st-in-progress-bar: linear-gradient(90deg, #007d5b, #14a97b);
  --st-for-review-bg:  #f5eedf; --st-for-review-fg:  #86682d; --st-for-review-dot:  #bb9a59; --st-for-review-bar:  linear-gradient(90deg, #bb9a59, #dcc08a);
  --st-revision-bg:    #ffede6; --st-revision-fg:    #c8401a; --st-revision-dot:    #ff6b3d; --st-revision-bar:    linear-gradient(90deg, #ff6b3d, #ff9a6e);
  --st-approved-bg:    #dde7e1; --st-approved-fg:    #0e3321; --st-approved-dot:    #0e3321; --st-approved-bar:    linear-gradient(90deg, #0e3321, #2c6b45);
  --st-on-hold-bg:     #fef5d6; --st-on-hold-fg:     #876600; --st-on-hold-dot:     #f6c61a; --st-on-hold-bar:     linear-gradient(90deg, #f6c61a, #fadb63);
  --st-draft-bg:       #eef1f5; --st-draft-fg:       #475569; --st-draft-dot:       #64748b; --st-draft-bar:       linear-gradient(90deg, #64748b, #a3aebb);

  /* Department (one colour for all) */
  --dept-color: #566b5f;
  --dept-bg: #f3f5f1;
  --dept-line: #e8ebe5;

  /* Priority (brand dots) */
  --prio-dot: #1ea849;
  --prio-empty: #d5ded7;
  --prio-text: #3f4a44;

  /* Layout */
  --sidebar-w: 270px;
  --topbar-h: 75px;
  --radius-panel: 20px;
  --radius-card: 16px;
  --gap: 20px;
  --pad-page: 30px;
  --focus: 0 0 0 3px rgba(30, 168, 73, .35);
  --shadow-drawer: 0 10px 40px rgba(15, 21, 17, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* List view columns (header + rows share this) */
  --list-cols: 36px minmax(160px, 1.6fr) 128px 84px 88px 64px 72px 112px minmax(110px, 1fr) 112px 32px;

  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.gde-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gde-icon--sm { width: 14px; height: 14px; }
.gde-icon--xs { width: 12px; height: 12px; }

.gde-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gde-skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.gde-skip-link:focus { top: 12px; }

/* ==========================================================================
   App shell
   ========================================================================== */
.gde-app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Hidden sidebar = icon rail (desktop) ----------
   The menu button folds the sidebar into a narrow rail: logo, "···" and one icon per item.
   Hover or tab to an icon: Dashboard shows its name, a group shows its links in a panel next to the rail. */
@media (min-width: 1024px) {
  .gde-app.gde-is-sidebar-collapsed { grid-template-columns: var(--rail-w, 76px) minmax(0, 1fr); }
  .gde-is-sidebar-collapsed .gde-sidebar { z-index: 30; overflow: visible; }
  .gde-is-sidebar-collapsed .gde-sidebar__brand { justify-content: center; padding: 0; }
  .gde-is-sidebar-collapsed .gde-sidebar__logo { flex: none; margin: 0; padding: 4px; }
  .gde-is-sidebar-collapsed .gde-sidebar__brand-text { display: none; }
  .gde-is-sidebar-collapsed .gde-sidebar__nav { overflow: visible; padding: 14px 0 20px; }
  .gde-is-sidebar-collapsed .gde-nav-label { padding: 0 0 8px; font-size: 0; text-align: center; }
  .gde-is-sidebar-collapsed .gde-nav-label::before { content: "\00B7\00B7\00B7"; font-size: 16px; font-weight: 700; letter-spacing: .12em; line-height: 1; color: #b4bbc6; }
  .gde-is-sidebar-collapsed .gde-sidebar__nav > ul > li { position: relative; padding: 2px 0; }
  .gde-is-sidebar-collapsed .gde-sidebar__nav .gde-nav__link {
    justify-content: center; gap: 0; width: 48px; min-height: 44px; margin: 0 auto; padding: 0;
    font-size: 0; cursor: pointer;
  }
  .gde-is-sidebar-collapsed .gde-nav__link .gde-icon { width: 21px; height: 21px; }
  .gde-is-sidebar-collapsed .gde-nav__link.gde-is-active { background: #eef7e8; }
  .gde-is-sidebar-collapsed .gde-nav__link.gde-is-active .gde-icon { color: #3f8f1f; }
  .gde-is-sidebar-collapsed .gde-sidebar__nav > ul > li:hover > .gde-nav__link,
  .gde-is-sidebar-collapsed .gde-sidebar__nav > ul > li.gde-is-open > .gde-nav__link { background: var(--surface-2); }

  /* the name of a single link (Dashboard) */
  .gde-is-sidebar-collapsed .gde-nav__link[data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% - 6px); top: 50%; z-index: 2;
    padding: 7px 11px; border-radius: 8px; background: var(--ink); color: #fff;
    font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
    opacity: 0; pointer-events: none; transform: translate(-4px, -50%); transition: opacity .15s var(--ease), transform .15s var(--ease);
  }
  .gde-is-sidebar-collapsed .gde-nav__link[data-tip]:hover::after,
  .gde-is-sidebar-collapsed .gde-nav__link[data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

  /* a group's links in a panel next to the rail */
  .gde-is-sidebar-collapsed .gde-nav__sub {
    position: absolute; left: calc(100% - 6px); top: -6px; z-index: 3;
    width: 236px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(15, 21, 17, .35), 0 2px 6px rgba(15, 21, 17, .06);
    opacity: 0; pointer-events: none; transform: translateX(-6px);
    transition: opacity .15s var(--ease), transform .15s var(--ease);
  }
  /* invisible bridge so the panel stays open while the pointer moves across the gap */
  .gde-is-sidebar-collapsed .gde-nav__sub::after { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 14px; }
  .gde-is-sidebar-collapsed .gde-nav__sub::before {
    content: attr(data-title); display: block; padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  }
  /* opened by js/sidebar-rail.js (hover with a short delay, or a click / tap), or by tabbing into its links */
  .gde-is-sidebar-collapsed .gde-sidebar__nav > ul > li.gde-is-open > .gde-nav__sub,
  .gde-is-sidebar-collapsed .gde-sidebar__nav > ul > li:has(:focus-visible) > .gde-nav__sub {
    opacity: 1; pointer-events: auto; transform: none;
  }
  .gde-is-sidebar-collapsed .gde-nav__sublink { min-height: 36px; padding: 0 10px; gap: 10px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .gde-is-sidebar-collapsed .gde-nav__sub, .gde-is-sidebar-collapsed .gde-nav__link[data-tip]::after { transition: none; }
}

/* ---------- Sidebar ---------- */
.gde-sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  background: var(--surface); border-right: 1px solid #e5e9ee;
  display: flex; flex-direction: column; overflow: hidden;
}
.gde-sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  height: var(--topbar-h); padding: 0 20px 0 24px; flex: none;
  border-bottom: 1px solid #eaedf1;
}
.gde-sidebar__brand img { width: 40px; height: 40px; }
.gde-sidebar__brand-name { font-weight: 700; font-size: 16px; color: #1f2a24; white-space: nowrap; }
/* Sidebar logo lockup */
.gde-sidebar__logo { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; border-radius: 12px; padding: 4px; margin-left: -4px; }
.gde-sidebar__logo:hover .gde-sidebar__brand-name { color: var(--brand-strong); }
.gde-sidebar__logo img { width: 45px; height: 45px; flex: none; }
.gde-sidebar__brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gde-sidebar__brand-text .gde-sidebar__brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; transition: color .15s var(--ease); }
.gde-sidebar__brand-sub { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gde-sidebar__close { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; color: var(--slate-icon); place-items: center; }
.gde-sidebar__close:hover { background: var(--surface-2); }

.gde-sidebar__nav { overflow-y: auto; overscroll-behavior: contain; padding: 22px 12px 24px 12px; scrollbar-width: thin; }
.gde-nav-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #9fa8b8; padding: 0 14px 10px; }

.gde-nav__link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; color: var(--slate); text-align: left;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.gde-nav__link .gde-icon { color: var(--slate-icon); }
.gde-nav__link:hover { background: var(--surface-2); }
.gde-nav__link.gde-is-active { color: var(--nav-active); }

.gde-nav__sub { padding: 2px 0 6px; }
.gde-nav__sub[hidden] { display: none; }
.gde-nav__sublink {
  display: flex; align-items: center; gap: 12px;
  min-height: 39px; padding: 0 12px 0 34px; border-radius: 10px;
  font-size: 14px; color: var(--slate);
  transition: background-color .15s var(--ease);
}
.gde-nav__sublink:hover { background: var(--surface-2); }
.gde-nav__sublink[aria-current="page"] { color: var(--nav-active); }
.gde-nav__badge {
  margin-left: auto; min-width: 19px; height: 16px; padding: 0 5px; border-radius: 8px;
  font-size: 11px; font-weight: 600; line-height: 16px; text-align: center; color: #fff;
  background: var(--dot, #d12c47);
}
[data-status="for-review"] .gde-nav__badge, [data-status="on-hold"] .gde-nav__badge, [data-status="unpaid"] .gde-nav__badge { color: var(--ink); }

/* sub-item markers */
.gde-bullet { position: relative; width: 16px; height: 8px; flex: none; color: #a4aac1; }
.gde-bullet::before, .gde-bullet::after { content: ""; position: absolute; top: 1px; width: 5px; height: 5px; border-radius: 50%; border: 1.3px solid currentColor; }
.gde-bullet::before { left: 0; }
.gde-bullet::after { left: 7px; }
[aria-current="page"] .gde-bullet { color: var(--nav-active); }
[aria-current="page"] .gde-bullet::after { background: currentColor; }

.gde-status-dot { width: 13px; height: 13px; border-radius: 50%; flex: none; margin: 0 3px 0 0; position: relative; background: color-mix(in srgb, var(--dot) 18%, transparent); }
.gde-status-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--dot); }

.gde-sidebar-backdrop { display: none; }

/* ---------- Main column ---------- */
.gde-main-col { display: flex; flex-direction: column; min-width: 0; }

.gde-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  height: var(--topbar-h); padding: 0 var(--pad-page) 0 22px;
  background: #fff; /* solid (no backdrop blur): cheaper to repaint while scrolling */
  border-bottom: 1px solid #eaedf1;
}
.gde-icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: #7e8ba4; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.gde-icon-btn:hover { background: var(--surface-2); color: var(--slate); }
.gde-icon-btn--menu { color: #536485; }
.gde-topbar__spacer { flex: 1; }
.gde-topbar__notify { position: relative; }
.gde-topbar__notify::after { content: ""; position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--st-revision-dot); border: 2px solid #fff; }
.gde-profile {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 4px; margin-left: 6px;
  border-radius: 999px; color: #536485; font-size: 14px;
}
.gde-profile:hover { background: var(--surface-2); }
.gde-profile img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.gde-content { flex: 1; padding: 26px var(--pad-page) 32px; }

/* ---------- Page heading ---------- */
.gde-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.gde-page-head h1 { font-size: clamp(22px, 1.4vw + 12px, 26px); font-weight: 600; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.gde-page-head p { margin-top: 6px; color: var(--text-2); }
.gde-page-head__actions { display: flex; align-items: center; gap: 20px; }
.gde-active-count { font-size: 15px; font-weight: 500; color: #3f4a44; white-space: nowrap; }
.gde-active-count strong { color: var(--brand-strong); font-weight: 600; }

/* Main page action (Create Task, Create Invoice, Browse packages): dark brand green with a lime glow,
   like the invoice header. The icon sits in a lime tile; on hover the glow brightens and the tile lifts a little. */
/* Refresh (dashboard header and the task chat): no border, regular weight; the icon spins while it checks */
.gde-btn-refresh {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px;
  background: #fff; font-size: 13px; font-weight: 400; color: var(--ink);
  transition: background-color .15s var(--ease);
}
.gde-btn-refresh:hover { background: var(--surface-2); }
.gde-btn-refresh:disabled { cursor: progress; }
.gde-btn-refresh .gde-icon { stroke-width: 2.2; }
.gde-btn-refresh.gde-is-loading .gde-icon { animation: gde-spin .8s linear infinite; }
@keyframes gde-spin { to { transform: rotate(360deg); } }

.gde-btn-primary {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 22px 0 7px; border-radius: 14px;
  color: #fff; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  background:
    radial-gradient(90% 150% at 100% 0%, rgba(121, 235, 85, .26), transparent 62%),
    linear-gradient(180deg, #18241c, var(--ink));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(121, 235, 85, .2),
    0 8px 18px -10px rgba(15, 21, 17, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.gde-btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 130% at 100% 0%, rgba(121, 235, 85, .34), transparent 66%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gde-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 0 0 1px rgba(121, 235, 85, .38),
    0 14px 26px -12px rgba(30, 168, 73, .6);
}
.gde-btn-primary:hover::before { opacity: 1; }
.gde-btn-primary:active { transform: translateY(0) scale(.985); }
.gde-btn-primary__plus {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: var(--ink);
  box-shadow: 0 0 0 4px rgba(121, 235, 85, .14);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.gde-btn-primary__plus .gde-icon { width: 16px; height: 16px; stroke-width: 2.6; }
.gde-btn-primary:hover .gde-btn-primary__plus { box-shadow: 0 0 0 5px rgba(121, 235, 85, .24); transform: scale(1.06); }

/* ---------- Panel ---------- */
.gde-panel { background: var(--surface); border: 1px solid var(--line-panel); border-radius: var(--radius-panel); padding: 24px 20px 20px; }

.gde-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

/* status filter tabs */
.gde-tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
.gde-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #5f6b65; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.gde-tab:first-child { padding-left: 0; }
.gde-tab:hover { color: var(--ink); }
.gde-tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.gde-tab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.gde-tab__count {
  min-width: 22px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: #e2e6de; color: #3f4a44; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.gde-tab__count.gde-is-zero { background: #eceee8; color: #a3aaa5; }
.gde-tab[aria-pressed="true"] .gde-tab__count { background: var(--brand); color: var(--ink); }

.gde-toolbar__right { display: flex; align-items: center; gap: 12px; flex: none; }
.gde-search { position: relative; width: 280px; }
.gde-search .gde-icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; stroke-width: 2; }
.gde-search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  border: 1px solid #dfe2dc; border-radius: 12px; background: #fff; font-size: 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.gde-search input::placeholder { color: #8a918c; }
.gde-search input:focus { outline: none; border-color: var(--brand-strong); box-shadow: var(--focus); }
.gde-search input::-webkit-search-cancel-button { cursor: pointer; }

.gde-view-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--track-soft); }
.gde-view-toggle button {
  display: grid; place-items: center; width: 38px; height: 36px; border-radius: 9px; color: #5f6b65;
  border: 1px solid transparent; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.gde-view-toggle button[aria-pressed="true"] { background: #fff; border-color: #e7e9e4; color: var(--ink); }

/* ==========================================================================
   Tasks — one markup, two layouts (grid cards / list rows)
   ========================================================================== */
.gde-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--gap); }
.gde-task[hidden] { display: none; }

.gde-task__card {
  position: relative; height: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "icon  title  status more"
    "tags  tags   tags   tags"
    "meta  meta   meta   meta"
    "prog  prog   prog   prog";
  column-gap: 12px;
  padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.gde-task__card:hover { border-color: #d6dbd2; box-shadow: 0 6px 24px -12px rgba(15, 21, 17, .18); }
.gde-task__card:focus-within { border-color: #cfd6cc; }

.gde-task__icon {
  grid-area: icon; align-self: start; margin-top: 2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--dept-bg); border: 1px solid var(--dept-line); color: var(--dept-color);
}
.gde-task__icon .gde-icon { stroke-width: 1.6; }

.gde-task__head { grid-area: title; min-width: 0; }
.gde-task__title { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.gde-task__title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; }
.gde-task__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); } /* whole card clickable */
.gde-task__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gde-task__updated { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.gde-task__updated .gde-icon { color: var(--muted-2); stroke-width: 2; }
.gde-task-id { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.gde-task__ago { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* where space is tight the ID stays and "Updated …" goes (same as the order date on package orders) */
[data-view="list"] .gde-task__ago { display: none; }
@media (max-width: 767.98px) { .gde-task__ago { display: none; } }

.gde-task__status { grid-area: status; align-self: start; }
.gde-task__more {
  grid-area: more; align-self: start; position: relative; z-index: 1;
  display: grid; place-items: center; width: 32px; height: 32px; margin: -3px -8px 0 0; border-radius: 8px; color: #5f6b65;
}
.gde-task__more:hover { background: var(--surface-2); }
.gde-task__more .gde-icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }

.gde-task__tags { grid-area: tags; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; }

.gde-task__meta {
  grid-area: meta; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.gde-task__meta dt { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 8px; white-space: nowrap; }
.gde-task__meta dd { min-height: 28px; display: flex; align-items: center; }
.gde-due { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.gde-due .gde-icon { color: #5f6b65; stroke-width: 2; }
.gde-due small { display: none; }

.gde-task__progress { grid-area: prog; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 8px; margin-top: 18px; }
.gde-task__progress-label { font-size: 13px; font-weight: 500; color: #3f4a44; }
.gde-task__pct { font-size: 13px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- Components ---------- */
.gde-status {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px;
  border-radius: 13px; background: var(--bg); color: var(--fg);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.gde-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

[data-status="in-progress"] { --bg: var(--st-in-progress-bg); --fg: var(--st-in-progress-fg); --dot: var(--st-in-progress-dot); --bar: var(--st-in-progress-bar); }
[data-status="for-review"]  { --bg: var(--st-for-review-bg);  --fg: var(--st-for-review-fg);  --dot: var(--st-for-review-dot);  --bar: var(--st-for-review-bar); }
[data-status="revision"]    { --bg: var(--st-revision-bg);    --fg: var(--st-revision-fg);    --dot: var(--st-revision-dot);    --bar: var(--st-revision-bar); }
[data-status="approved"]    { --bg: var(--st-approved-bg);    --fg: var(--st-approved-fg);    --dot: var(--st-approved-dot);    --bar: var(--st-approved-bar); }
[data-status="on-hold"]     { --bg: var(--st-on-hold-bg);     --fg: var(--st-on-hold-fg);     --dot: var(--st-on-hold-dot);     --bar: var(--st-on-hold-bar); }
[data-status="draft"]       { --bg: var(--st-draft-bg);       --fg: var(--st-draft-fg);       --dot: var(--st-draft-dot);       --bar: var(--st-draft-bar); }
[data-status="new"]         { --bg: #e6effc; --fg: #1d5bbf; --dot: #2f74e0; --bar: linear-gradient(90deg, #2f74e0, #78a8f0); }
[data-status="invited"]     { --bg: var(--st-on-hold-bg); --fg: var(--st-on-hold-fg); --dot: var(--st-on-hold-dot); --bar: var(--st-on-hold-bar); }
/* Invoices: Paid · Unpaid · Overdue (Draft above) */
[data-status="paid"]        { --bg: var(--st-in-progress-bg); --fg: var(--st-in-progress-fg); --dot: var(--st-in-progress-dot); --bar: var(--st-in-progress-bar); }
[data-status="unpaid"]      { --bg: var(--st-for-review-bg);  --fg: var(--st-for-review-fg);  --dot: var(--st-for-review-dot);  --bar: var(--st-for-review-bar); }
[data-status="overdue"]     { --bg: var(--st-revision-bg);    --fg: var(--st-revision-fg);    --dot: var(--st-revision-dot);    --bar: var(--st-revision-bar); }

.gde-progress {
  grid-column: 1 / -1; height: 8px; border-radius: 4px; overflow: hidden; position: relative;
  background: color-mix(in srgb, var(--dot) 14%, #fff);
}
.gde-progress > span {
  display: block; height: 100%; width: max(var(--p, 0%), 8px); border-radius: 4px; background: var(--bar);
  transform-origin: left; animation: grow .8s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }

.gde-dept-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 7px;
  background: var(--dept-bg); border: 1px solid var(--dept-line); color: var(--dept-color);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}

.gde-priority { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--prio-text); white-space: nowrap; }
.gde-priority i { width: 6px; height: 6px; border-radius: 50%; background: var(--prio-empty); }
.gde-priority i:nth-of-type(3) { margin-right: 7px; }
.gde-priority[data-level="1"] i:nth-of-type(-n+1),
.gde-priority[data-level="2"] i:nth-of-type(-n+2),
.gde-priority[data-level="3"] i:nth-of-type(-n+3) { background: var(--prio-dot); }

.gde-avatars { display: flex; align-items: center; }
.gde-avatars li + li { margin-left: -6px; }
.gde-avatars img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #eef0ec; }
.gde-unassigned { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.gde-unassigned span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.3px dashed #c9cec8; background: #fafaf8; color: var(--muted-2); }
.gde-unassigned .gde-icon { width: 12px; height: 12px; stroke-width: 2; }

/* list header (only used in list view on wide screens) */
.gde-list-head { display: none; }

.gde-tasks__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.gde-tasks__empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.gde-tasks__empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.gde-site-footer { padding: 18px var(--pad-page); background: var(--surface); border-top: 1px solid #eaedf1; text-align: center; color: #343a40; font-size: 14px; }
.gde-site-footer a { color: #5fa83a; }
.gde-site-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   LIST VIEW — table-like rows on wide screens
   ========================================================================== */
@media (min-width: 1400px) {
  .gde-panel[data-view="list"] .gde-list-head {
    display: grid; grid-template-columns: var(--list-cols); column-gap: 10px; align-items: center;
    min-height: 40px; padding: 6px 16px; margin-bottom: 4px; border-radius: 10px; background: var(--surface-2);
    font-size: 12px; font-weight: 500; color: var(--muted);
  }
  .gde-panel[data-view="list"] .gde-list-head span:first-child { grid-column: 1 / 3; }
  .gde-panel[data-view="list"] .gde-list-head span { line-height: 1.2; }

  .gde-panel[data-view="list"] .gde-tasks { display: block; }
  .gde-panel[data-view="list"] .gde-task + .gde-task .gde-task__card { border-top: 1px solid var(--line-2); }
  .gde-panel[data-view="list"] .gde-task__card {
    grid-template-columns: var(--list-cols);
    grid-template-areas: "icon title dept prio est members client due prog status more";
    align-items: center; column-gap: 10px;
    padding: 16px; border: 0; border-radius: 12px;
  }
  .gde-panel[data-view="list"] .gde-task__card:hover { box-shadow: none; background: #fafbf8; }
  .gde-panel[data-view="list"] .gde-task__title { font-size: 15px; }
  .gde-panel[data-view="list"] .gde-task__updated { font-size: 12px; }
  .gde-panel[data-view="list"] .gde-task__icon,
  .gde-panel[data-view="list"] .gde-task__status,
  .gde-panel[data-view="list"] .gde-task__more { align-self: center; margin-top: 0; }
  .gde-panel[data-view="list"] .gde-task__more { margin: 0; }

  .gde-panel[data-view="list"] .gde-task__tags,
  .gde-panel[data-view="list"] .gde-task__meta { display: contents; }
  .gde-panel[data-view="list"] .gde-dept-tag { grid-area: dept; justify-self: start; }
  .gde-panel[data-view="list"] .gde-priority { grid-area: prio; }
  .gde-panel[data-view="list"] .gde-est-tag { grid-area: est; justify-self: start; }
  .gde-panel[data-view="list"] .gde-task__menu { grid-area: more; align-self: center; margin: 0; }
  .gde-panel[data-view="list"] .gde-task__meta > div:nth-child(1) { grid-area: members; }
  .gde-panel[data-view="list"] .gde-task__meta > div:nth-child(2) { grid-area: client; }
  .gde-panel[data-view="list"] .gde-task__meta > div:nth-child(3) { grid-area: due; }
  .gde-panel[data-view="list"] .gde-task__meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gde-panel[data-view="list"] .gde-due { font-size: 13px; flex-wrap: wrap; row-gap: 0; }
  .gde-panel[data-view="list"] .gde-unassigned { font-size: 0; gap: 0; }   /* circle only; label stays for screen readers via aria-label */
  .gde-panel[data-view="list"] .gde-due small { display: block; flex-basis: 100%; padding-left: 21px; font-size: 11px; color: var(--muted); font-weight: 400; }

  .gde-panel[data-view="list"] .gde-task__progress { grid-area: prog; grid-template-columns: 1fr auto; column-gap: 12px; margin: 0; }
  .gde-panel[data-view="list"] .gde-task__progress-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gde-panel[data-view="list"] .gde-progress { grid-column: 1; grid-row: 1; height: 6px; }
  .gde-panel[data-view="list"] .gde-task__pct { grid-column: 2; grid-row: 1; min-width: 36px; text-align: right; }
}

/* List view below 1400px: full-width compact rows (one column) */
@media (max-width: 1399.98px) {
  .gde-panel[data-view="list"] .gde-tasks { grid-template-columns: 1fr; gap: 12px; }
  .gde-panel[data-view="list"] .gde-task__card {
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "icon title status more"
      "icon tags  tags   tags"
      "meta meta  meta   meta"
      "prog prog  prog   prog";
    padding: 16px;
  }
  .gde-panel[data-view="list"] .gde-task__tags { margin-top: 10px; }
  .gde-panel[data-view="list"] .gde-task__meta { margin-top: 14px; padding-top: 14px; }
  .gde-panel[data-view="list"] .gde-task__progress { margin-top: 14px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large desktop: a little more breathing room */
@media (min-width: 1600px) {
  :root { --pad-page: 30px; --gap: 24px; }
}

/* Below 1700px the 7 tabs + search don't fit one line: search row on top, tabs row underneath (scrolls if needed) */
@media (max-width: 1699.98px) {
  .gde-toolbar { flex-wrap: wrap; }
  .gde-toolbar__right { order: 1; width: 100%; justify-content: space-between; }
  .gde-search { flex: 1; width: auto; max-width: 420px; }
  .gde-tabs {
    order: 2; width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent 100%);
  }
  .gde-tabs::-webkit-scrollbar { display: none; }
  .gde-tab { scroll-snap-align: start; }
}

/* Tablet & below: sidebar becomes an off-canvas drawer */
@media (max-width: 1023.98px) {
  :root { --pad-page: 20px; }
  .gde-app, .gde-app.gde-is-sidebar-collapsed { grid-template-columns: minmax(0, 1fr); }
  .gde-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(86vw, 300px);
    transform: translateX(-100%); transition: transform .28s var(--ease), visibility 0s linear .28s;
    visibility: hidden; box-shadow: none;
  }
  .gde-app.gde-is-drawer-open .gde-sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-drawer); transition: transform .28s var(--ease); }
  .gde-sidebar__close { display: grid; }
  .gde-sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40; background: rgba(15, 21, 17, .38);
    opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
  }
  .gde-app.gde-is-drawer-open .gde-sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .gde-topbar { padding-left: 12px; }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root { --pad-page: 16px; --gap: 14px; --topbar-h: 64px; }
  body { font-size: 14px; }
  .gde-topbar__fullscreen, .gde-profile__name, .gde-profile__chev { display: none; }
  .gde-profile { padding: 0; margin-left: 2px; }

  .gde-content { padding-top: 20px; padding-bottom: 24px; }
  .gde-page-head { margin-bottom: 18px; }
  .gde-page-head__actions { width: 100%; justify-content: space-between; gap: 12px; }

  .gde-panel { padding: 16px 14px 14px; border-radius: 16px; }
  .gde-toolbar { gap: 12px; margin-bottom: 16px; }
  .gde-toolbar__right { gap: 8px; }
  .gde-search { max-width: none; }

  /* tabs wrap onto rows so every status is visible (no sideways scrolling) */
  .gde-tabs {
    flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; width: 100%;
    overflow: visible; -webkit-mask-image: none; mask-image: none;
  }
  .gde-tab, .gde-tab:first-child { height: 32px; padding: 0; font-size: 13px; gap: 6px; }
  .gde-tab:first-child { padding-left: 0; }

  .gde-task__card { padding: 16px; }
  .gde-task__title { font-size: 16px; }
  .gde-task__meta { gap: 10px; }
  .gde-task__meta dt { font-size: 11px; }
  .gde-due { font-size: 13px; }

  .gde-tasks__footer { justify-content: center; }

  /* Compact list on phones: title, status and progress only */
  .gde-panel[data-view="list"] .gde-tasks { gap: 10px; }
  .gde-panel[data-view="list"] .gde-task__card {
    grid-template-areas: "icon title title more" "icon status prog prog";
    grid-template-columns: 36px auto minmax(0, 1fr) auto;
    row-gap: 10px; padding: 14px;
  }
  .gde-panel[data-view="list"] .gde-task__tags,
  .gde-panel[data-view="list"] .gde-task__meta,
  .gde-panel[data-view="list"] .gde-task__progress-label { display: none; }
  .gde-panel[data-view="list"] .gde-task__status { margin-top: 0; align-self: center; }
  .gde-panel[data-view="list"] .gde-task__progress { margin: 0; grid-template-columns: 1fr auto; column-gap: 10px; align-self: center; }
  .gde-panel[data-view="list"] .gde-progress { grid-column: 1; grid-row: 1; height: 6px; }
  .gde-panel[data-view="list"] .gde-task__pct { grid-column: 2; grid-row: 1; }
}

/* Small phones: details in two columns, due date on its own row */
@media (max-width: 429.98px) {
  .gde-task__meta { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .gde-task__meta > div:nth-child(3) { grid-column: 1 / -1; }
}

/* Phones: status moves under the title so the title gets the full width */
@media (max-width: 479.98px) {
  .gde-panel[data-view="grid"] .gde-task__status { justify-self: start; margin-top: 8px; }
  .gde-panel[data-view="grid"] .gde-task__card {
    grid-template-areas: "icon title title more" "icon status status status" "tags tags tags tags" "meta meta meta meta" "prog prog prog prog";
  }
  .gde-page-head__actions { flex-wrap: wrap; }
  /* keeps its full width: moves under "Active Orders" when the row is too narrow, then fills the row
     (flex: 1 let it shrink and cut off its icon and text on small phones) */
  .gde-btn-primary { flex: 1 1 auto; min-width: max-content; justify-content: center; }
}

/* Motion & accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .gde-status, .gde-dept-tag, .gde-tab__count, .gde-nav__badge { border: 1px solid CanvasText; }
  .gde-btn-primary { border: 1px solid ButtonText; }
  .gde-progress { border: 1px solid CanvasText; }
}

/* Print: clean task list */
@media print {
  .gde-sidebar, .gde-topbar, .gde-toolbar__right, .gde-btn-primary, .gde-task__more, .gde-task__menu, .gde-site-footer, .gde-sidebar-backdrop { display: none !important; }
  .gde-app { display: block; }
  body, .gde-panel { background: #fff; }
  .gde-task__card { break-inside: avoid; }
}

/* ==========================================================================
   Presence dot on every user photo
   <span class="avatar" data-presence="online|offline|away"><img …></span>
   or on avatar list items: <li data-presence="online"><img …></li>
   ========================================================================== */
:root { --presence-online: #1ea849; --presence-away: #f6c61a; --presence-offline: #b5bcb7; }
.gde-avatar { position: relative; display: inline-flex; flex: none; border-radius: 50%; }
.gde-avatar img { border-radius: 50%; object-fit: cover; }
.gde-avatars li { position: relative; }
.gde-avatars li:nth-child(1) { z-index: 3; }
.gde-avatars li:nth-child(2) { z-index: 2; }
.gde-avatars li:nth-child(3) { z-index: 1; }
[data-presence]:is(.gde-avatar, li)::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: max(10px, 30%); aspect-ratio: 1; border-radius: 50%;
  background: var(--presence-offline); border: 2px solid #fff; box-sizing: border-box;
}
[data-presence="online"]:is(.gde-avatar, li)::after { background: var(--presence-online); }
[data-presence="away"]:is(.gde-avatar, li)::after { background: var(--presence-away); }
.gde-msg__avatar.gde-avatar { width: 36px; height: 36px; }
.gde-msg__avatar.gde-avatar img { width: 100%; height: 100%; }
@media (max-width: 767.98px) { .gde-msg__avatar.gde-avatar { width: 30px; height: 30px; } }

/* ---------- Task estimate (budget or hours) ---------- */
.gde-est-tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gde-est-tag[data-kind="budget"] { background: #eef8ea; color: #1a6b3c; }
.gde-est-tag[data-kind="hours"] { background: #eef1f8; color: #3b4f7a; }
.gde-est-tag[data-kind="none"] { padding: 0; font-weight: 500; color: var(--muted-2); }
.gde-est-tag .gde-icon { stroke-width: 2; }

/* ---------- Task ⋮ menu ---------- */
.gde-task__menu { grid-area: more; align-self: start; position: relative; z-index: 2; margin: -3px -8px 0 0; }
.gde-task__menu .gde-task__more { margin: 0; }
.gde-task.gde-has-menu { position: relative; z-index: 20; }
.gde-task-menu { z-index: 60; min-width: 180px; }
.gde-task-menu a[role=menuitem] { text-decoration: none; }
.gde-task.gde-is-removing { opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease; }

/* Role-based UI (also used on list pages) */
[data-role="client"] .gde-admin-only, [data-role="admin"] .gde-client-only { display: none !important; }

/* List view on mid-size screens: tighter columns so the extra Estimate column always fits */
@media (min-width: 1400px) and (max-width: 1799.98px) {
  :root { --list-cols: 32px minmax(140px, 1.6fr) 116px 76px 80px 52px 64px 100px minmax(80px, 1fr) 104px 28px; }
  .gde-panel[data-view="list"] .gde-list-head, .gde-panel[data-view="list"] .gde-task__card { column-gap: 8px; }
  .gde-panel[data-view="list"] .gde-task__card { padding: 14px 12px; }
  .gde-panel[data-view="list"] .gde-list-head { padding: 6px 12px; }
  .gde-panel[data-view="list"] .gde-dept-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 26px; }
  .gde-panel[data-view="list"] .gde-est-tag { padding: 0 7px; }
  .gde-panel[data-view="list"] .gde-task__pct { min-width: 32px; }
}

/* ---------- Client-created tasks waiting for an admin ---------- */
.gde-task__accept { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.gde-btn-accept {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px;
  background: #0b1f14; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px #79eb55 inset;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.gde-btn-accept:hover { background: #163a26; }
.gde-btn-accept:active { transform: scale(.97); }
.gde-btn-accept:disabled { opacity: .7; cursor: progress; }
.gde-btn-accept .gde-icon { color: var(--brand); stroke-width: 2.6; }
[data-role="admin"] .gde-task[data-pending] .gde-task__card { box-shadow: inset 3px 0 0 #79eb55; }
.gde-task.gde-is-accepted .gde-task__card { animation: accepted 1.6s ease; }
@keyframes accepted { 0% { background: #eefbe8; } 100% { background: inherit; } }
@media (min-width: 1400px) {
  .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__status { display: none; }
  .gde-panel[data-view="list"] .gde-task__accept { grid-area: status; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .gde-task.gde-is-accepted .gde-task__card { animation: none; } }
@media (min-width: 1400px) {
  [data-role="client"] .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__status { display: inline-flex; }
}

/* Compact phone list: admins still get the Accept button on waiting tasks */
@media (max-width: 767.98px) {
  [data-role="admin"] .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__card {
    grid-template-areas: "icon title title more" "icon status prog prog" "icon accept accept accept";
  }
  [data-role="admin"] .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__tags { display: contents; }
  [data-role="admin"] .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__tags > :not(.gde-task__accept) { display: none; }
  [data-role="admin"] .gde-panel[data-view="list"] .gde-task[data-pending] .gde-task__accept { grid-area: accept; justify-self: start; }
}
.gde-nav__badge[hidden] { display: none !important; }
/* Sidebar groups start open; clicking a group name closes / opens its links (js/sidebar-rail.js) */
.gde-nav__group { cursor: pointer; margin: 0; font-weight: 500; user-select: none; white-space: nowrap; }
.gde-nav__group:focus-visible { outline: none; box-shadow: var(--focus); }
.gde-nav__group::after {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 3px 0 auto;
  border-right: 1.6px solid var(--muted-2); border-bottom: 1.6px solid var(--muted-2);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease);
}
.gde-nav__group:has(.gde-nav__badge:not([hidden]))::after { margin-left: 8px; }
.gde-sidebar__nav li.gde-is-folded > .gde-nav__group::after { transform: translateY(1px) rotate(-45deg); }
.gde-sidebar__nav li.gde-is-folded > .gde-nav__sub { display: none; }
@media (min-width: 1024px) {
  /* icon rail: groups open in a panel instead, so folding doesn't apply */
  .gde-is-sidebar-collapsed .gde-nav__group::after { display: none; }
  .gde-is-sidebar-collapsed .gde-sidebar__nav li.gde-is-folded > .gde-nav__sub { display: block; }
}
@media (prefers-reduced-motion: reduce) { .gde-nav__group::after { transition: none; } }

/* Long lists: "View all N …" under the first 5 items of the current tab */
.gde-tasks__footer:has(.gde-tasks__more:not([hidden])) { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.gde-tasks__footer:has(.gde-tasks__more:not([hidden])) #tasks-summary { grid-column: 1; grid-row: 1; }
.gde-tasks__more { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: #1a7a4a; cursor: pointer; }
.gde-tasks__more[hidden] { display: none; }
.gde-tasks__more:hover { background: var(--surface-2); }
.gde-tasks__more:focus-visible { box-shadow: var(--focus); outline: none; }
.gde-tasks__more .gde-icon { stroke-width: 2.2; transition: transform .15s var(--ease); }
.gde-tasks__more:hover .gde-icon { transform: translateX(3px); }
.gde-tasks__more.gde-is-open .gde-icon, .gde-tasks__more.gde-is-open:hover .gde-icon { transform: rotate(-90deg); }
@media (max-width: 767.98px) {
  .gde-tasks__footer:has(.gde-tasks__more:not([hidden])) { grid-template-columns: 1fr; justify-items: center; }
  .gde-tasks__footer:has(.gde-tasks__more:not([hidden])) #tasks-summary { grid-row: 2; grid-column: 1; }
  .gde-tasks__more { grid-column: 1; }
}

/* Account menu (top-bar profile button) */
.gde-profile-menu { position: relative; }
.gde-profile-menu__pop { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(15, 21, 17, .35); }
.gde-profile-menu__pop[hidden] { display: none; }
.gde-profile-menu__who { display: grid; gap: 2px; margin: 0; padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); }
.gde-profile-menu__who strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gde-profile-menu__who small { font-size: 12px; color: var(--muted); }
.gde-profile-menu__item { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); text-decoration: none; }
.gde-profile-menu__item:hover, .gde-profile-menu__item:focus-visible { background: var(--surface-2); }
