/* CRATA next workbench · Orbix-reference rebuild
   Shell / home / work board / detail only. Product modules keep their own CSS. */

body.mac-theme .next-shell {
  --next-night: #07161e;
  --next-navy: #0d202a;
  --next-navy-soft: #142c36;
  --next-navy-raised: #193640;
  --next-teal: #7cd8c3;
  --next-lime: #d7f46a;
  --next-light: #f3f6f2;
  --next-paper: #fff;
  --next-ink: #152229;
  --next-muted: #9cb2b9;
  --next-line: rgba(186, 222, 220, .15);
  --next-light-line: #dce5df;
  --next-shadow: 0 22px 60px rgba(4, 19, 24, .18);
  position: relative;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: var(--next-night);
  color: #f2f8f6;
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.025em;
  -webkit-font-smoothing: antialiased;
}

body.mac-theme:has(.next-shell) {
  background: #07161e;
  color: #f2f8f6;
}

body.mac-theme .next-shell *,
body.mac-theme .next-shell *::before,
body.mac-theme .next-shell *::after { box-sizing: border-box; }

body.mac-theme .next-shell ::selection { background: #d7f46a; color: #10232b; }
body.mac-theme .next-shell :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--next-lime);
  outline-offset: 3px;
}

body.mac-theme .next-shell :is(button, a, input, textarea, select) { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
body.mac-theme .next-shell :is(button, a):active { transform: translateY(1px); }

/* A compact, dark navigation rail gives the work canvas room to breathe. */
body.mac-theme .next-shell .next-sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 25px 13px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(177deg, #081a23 0%, #0b2029 56%, #0b1a22 100%);
  border-right: 1px solid rgba(163, 210, 199, .13);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .025);
  scrollbar-color: #35515a transparent;
}

body.mac-theme .next-shell .next-sidebar .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 28px;
  padding: 0 12px;
  min-width: 0;
}
body.mac-theme .next-shell .next-sidebar .brand img { display: block; width: 104px; height: 37px; max-width: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
body.mac-theme .next-shell .next-sidebar .brand span { display: block; margin-top: 5px; color: #77a29f; font-size: 10px; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; }

body.mac-theme .next-shell .next-sidebar :is(.sidebar-new-work, .new-button) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: calc(100% - 10px);
  min-height: 44px;
  margin: 0 5px 20px;
  padding: 9px 13px;
  border: 1px solid #d7f46a;
  border-radius: 11px;
  background: #d7f46a;
  color: #17282c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(190, 234, 84, .12);
}
body.mac-theme .next-shell .next-sidebar :is(.sidebar-new-work, .new-button):hover { background: #e4ff85; border-color: #e4ff85; box-shadow: 0 14px 30px rgba(190, 234, 84, .22); transform: translateY(-1px); }

body.mac-theme .next-shell .next-sidebar nav { margin: 0 0 15px; }
body.mac-theme .next-shell .next-sidebar :is(.sidebar-primary, .sidebar-team-shortcuts) { display: grid; gap: 3px; padding: 0; margin: 0 0 13px; background: transparent; border: 0; }
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link, .sidebar-work > button) {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #a8c0c2;
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
  line-height: 1.3;
  white-space: normal;
}
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link, .sidebar-work > button):hover { background: rgba(157, 226, 212, .09); color: #f4fbf8; }
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link, .sidebar-work > button).active,
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link, .sidebar-work > button)[aria-current="page"] {
  background: linear-gradient(93deg, rgba(211, 244, 106, .18), rgba(135, 220, 196, .07));
  border-color: rgba(205, 237, 116, .17);
  color: #e8fca9;
  box-shadow: inset 3px 0 #d7f46a;
  font-weight: 700;
}
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link) > .icon { width: 17px; height: 17px; color: #7ba4a4; }
body.mac-theme .next-shell .next-sidebar :is(.nav-item, .category-link).active > .icon { color: #d7f46a; }
body.mac-theme .next-shell .next-sidebar .nav-item > b { margin-left: auto; padding: 2px 6px; border-radius: 6px; background: rgba(209, 232, 211, .09); color: #acc8bb; font-size: 11px; font-weight: 600; }
body.mac-theme .next-shell .next-sidebar :is(.sidebar-section, .sidebar-group-toggle, .sidebar-workspace-heading) { margin: 16px 0 6px; padding: 0 12px; color: #6f9a99; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
body.mac-theme .next-shell .next-sidebar .sidebar-bottom { margin-top: auto; padding-top: 16px; }
body.mac-theme .next-shell .next-sidebar .profile { border-top: 1px solid var(--next-line); padding: 16px 10px 0; color: #eef8f5; }
body.mac-theme .next-shell .next-sidebar .profile > span { background: #d7f46a; color: #17282c; }
body.mac-theme .next-shell .next-sidebar .profile small { color: #8caeaa; }

body.mac-theme .next-shell > .body,
body.mac-theme .next-shell .next-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: var(--next-night); }
body.mac-theme .next-shell #main { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; max-width: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #4e6970 transparent; }

body.mac-theme .next-shell .next-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  padding: 0 34px;
  background: rgba(9, 26, 35, .96);
  border-bottom: 1px solid rgba(169, 213, 207, .13);
  color: #d8e8e5;
  box-shadow: none;
}
body.mac-theme .next-shell .next-topbar .breadcrumb { color: #8faeb1; font-size: 12px; letter-spacing: .01em; }
body.mac-theme .next-shell .next-topbar .breadcrumb strong { color: #f2f9f5; font-weight: 650; }
body.mac-theme .next-shell .next-topbar .top-right { color: #afc8c6; }
body.mac-theme .next-shell .next-topbar .icon-button { min-width: 34px; min-height: 34px; border-radius: 9px; color: #aec8c7; }
body.mac-theme .next-shell .next-topbar .icon-button:hover { background: rgba(156, 214, 203, .1); color: #eff8f4; }
body.mac-theme .next-shell .next-topbar input[type="search"] { min-width: 220px; border: 1px solid rgba(180, 225, 217, .17); border-radius: 9px; background: #142b35; color: #fff; padding: 9px 13px; }
body.mac-theme .next-shell .next-topbar input[type="search"]::placeholder { color: #719399; }

/* Command home: an asymmetric control room rather than an even card grid. */
body.mac-theme .next-shell .next-home {
  min-height: 100%;
  padding: clamp(22px, 3vw, 42px);
  background:
    radial-gradient(ellipse 460px 300px at 68% -10%, rgba(55, 120, 122, .2), transparent 78%),
    radial-gradient(ellipse 340px 270px at 7% 41%, rgba(30, 97, 94, .13), transparent 75%),
    #0a1c25;
  color: #eff8f5;
}
body.mac-theme .next-shell .next-home h1,
body.mac-theme .next-shell .next-home h2,
body.mac-theme .next-shell .next-home h3 { color: #f6fbf8; }
body.mac-theme .next-shell .next-home .eyebrow { color: #cbef8a; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
body.mac-theme .next-shell .next-home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(272px, .7fr); align-items: start; gap: clamp(16px, 2vw, 27px); max-width: 1640px; margin: 0 auto; }
body.mac-theme .next-shell .next-home-main,
body.mac-theme .next-shell .next-home-rail { display: grid; align-content: start; gap: clamp(16px, 1.7vw, 24px); min-width: 0; }
body.mac-theme .next-shell .next-home-rail { padding-top: 0; }
body.mac-theme .next-shell .next-home-rail > * { min-width: 0; }

body.mac-theme .next-shell .next-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 278px;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 50px);
  border: 1px solid rgba(170, 230, 209, .17);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 11%, rgba(212, 246, 107, .21) 0, transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(78, 180, 163, .29) 0, transparent 34%),
    linear-gradient(117deg, #15323b 0%, #0e2530 58%, #113630 100%);
  box-shadow: 0 30px 75px rgba(4, 14, 20, .24), inset 0 1px rgba(255, 255, 255, .06);
}
body.mac-theme .next-shell .next-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 370px;
  aspect-ratio: 1;
  right: -130px;
  top: -134px;
  border: 1px solid rgba(215, 244, 106, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(215, 244, 106, .025), 0 0 0 108px rgba(106, 223, 190, .025);
  pointer-events: none;
}
body.mac-theme .next-shell .next-hero h1 { max-width: 18ch; margin: 12px 0; font-size: clamp(30px, 3.2vw, 53px); font-weight: 730; line-height: 1.16; letter-spacing: -.065em; text-wrap: balance; }
body.mac-theme .next-shell .next-hero p { max-width: 56ch; color: #afd0cd; font-size: 14px; line-height: 1.7; word-break: keep-all; }
body.mac-theme .next-shell .next-hero :is(button, .primary) { margin-top: 24px; }
body.mac-theme .next-shell .next-home .primary { border: 1px solid #d7f46a; border-radius: 10px; background: #d7f46a; color: #15252b; font-size: 13px; font-weight: 750; box-shadow: 0 12px 26px rgba(185, 229, 84, .11); }
body.mac-theme .next-shell .next-home .primary:hover { background: #e4ff86; border-color: #e4ff86; transform: translateY(-1px); }
body.mac-theme .next-shell .next-home .secondary { border-color: rgba(173, 219, 208, .27); border-radius: 10px; background: rgba(218, 246, 232, .07); color: #e9f8f0; }
body.mac-theme .next-shell .next-home .secondary:hover { background: rgba(218, 246, 232, .15); }

body.mac-theme .next-shell .next-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
body.mac-theme .next-shell .next-stats > * {
  min-width: 0;
  padding: 19px 19px 17px;
  border: 1px solid var(--next-line);
  border-radius: 15px;
  background: linear-gradient(154deg, rgba(28, 58, 65, .89), rgba(14, 37, 47, .96));
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
}
body.mac-theme .next-shell .next-stats :is(strong, b, .value) { display: block; margin: 7px 0 3px; color: #f6fbf8; font-size: clamp(27px, 2.6vw, 38px); font-weight: 720; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
body.mac-theme .next-shell .next-stats :is(small, .label) { display: block; color: #90b5b3; font-size: 11px; font-weight: 650; line-height: 1.35; }
body.mac-theme .next-shell .next-stats > :first-child { border-color: rgba(215, 244, 106, .28); background: linear-gradient(139deg, #1b3a3b, #183032); }
body.mac-theme .next-shell .next-stats > :first-child :is(strong, b, .value) { color: #d7f46a; }

body.mac-theme .next-shell :is(.next-chart, .next-queue, .next-request) {
  min-width: 0;
  border: 1px solid var(--next-line);
  border-radius: 18px;
  background: rgba(16, 39, 49, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
body.mac-theme .next-shell :is(.next-chart, .next-queue) { padding: clamp(18px, 2vw, 26px); }
body.mac-theme .next-shell :is(.next-chart, .next-queue, .next-request) h2 { margin: 0 0 15px; font-size: 16px; font-weight: 690; letter-spacing: -.04em; }
body.mac-theme .next-shell .next-chart { position: relative; overflow: hidden; }
body.mac-theme .next-shell .next-chart::before { content: ''; position: absolute; inset: 64px 22px 22px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), rgba(168, 217, 206, .08) 25%); pointer-events: none; }
body.mac-theme .next-shell .next-chart > * { position: relative; z-index: 1; }
body.mac-theme .next-shell .next-chart :is(svg, canvas) { display: block; width: 100%; max-width: 100%; height: auto; }
body.mac-theme .next-shell .next-chart :is(small, .caption) { color: #89abae; font-size: 11px; }
body.mac-theme .next-shell .next-queue :is(ul, ol) { padding: 0; margin: 0; list-style: none; }
body.mac-theme .next-shell .next-queue :is(li, .next-queue-item) { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid rgba(190, 225, 218, .1); }
body.mac-theme .next-shell .next-queue :is(li, .next-queue-item):first-child { border-top: 0; }
body.mac-theme .next-shell .next-queue :is(a, button) { min-width: 0; color: #e8f5f2; }
body.mac-theme .next-shell .next-queue :is(a, button):hover { color: #d7f46a; }
body.mac-theme .next-shell .next-queue :is(small, time) { color: #81a5a6; font-size: 11px; }
body.mac-theme .next-shell .next-queue .empty { border-color: rgba(187, 221, 213, .22); background: transparent; color: #a9c2bf; }
body.mac-theme .next-shell .next-request { padding: 21px; background: linear-gradient(147deg, #203d44, #142c36); }
body.mac-theme .next-shell .next-request textarea,
body.mac-theme .next-shell .next-request input[type="text"] {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 15px 16px;
  resize: vertical;
  border: 1px solid rgba(193, 235, 220, .22);
  border-radius: 12px;
  background: rgba(3, 20, 29, .56);
  color: #f4fcf9;
  font-size: 14px;
  line-height: 1.65;
}
body.mac-theme .next-shell .next-request input[type="text"] { min-height: 44px; }
body.mac-theme .next-shell .next-request :is(textarea, input)::placeholder { color: #80a3a6; }
body.mac-theme .next-shell .next-request :is(textarea, input):focus { outline: none; border-color: #d7f46a; box-shadow: 0 0 0 3px rgba(215, 244, 106, .13); }
body.mac-theme .next-shell .next-request :is(button, .primary) { min-height: 40px; margin-top: 13px; }

/* ProjectFlow-style work surface. Information is dense where comparison matters. */
body.mac-theme .next-shell .next-board {
  min-height: 100%;
  padding: clamp(20px, 2.8vw, 42px);
  background: #f3f6f2;
  color: #152329;
}
body.mac-theme .next-shell .next-board h1,
body.mac-theme .next-shell .next-board h2,
body.mac-theme .next-shell .next-board h3 { color: #16262a; }
body.mac-theme .next-shell .next-board h1 { font-size: clamp(27px, 2.4vw, 39px); font-weight: 740; line-height: 1.2; letter-spacing: -.055em; }
body.mac-theme .next-shell .next-board .eyebrow { color: #547268; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
body.mac-theme .next-shell .next-board p { color: #61736b; }
body.mac-theme .next-shell .next-board-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 62px;
  margin: 25px 0 21px;
  padding: 9px 12px;
  border: 1px solid var(--next-light-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(29, 61, 48, .035);
}
body.mac-theme .next-shell .next-board-toolbar :is(button, select, input, a) {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #fff;
  color: #32433c;
  font-size: 12px;
  font-weight: 620;
}
body.mac-theme .next-shell .next-board-toolbar :is(button, a):hover { border-color: #b7ccc0; background: #f0f6ef; }
body.mac-theme .next-shell .next-board-toolbar :is(button, a).active,
body.mac-theme .next-shell .next-board-toolbar :is(button, a)[aria-selected="true"],
body.mac-theme .next-shell .next-board-toolbar :is(button, a)[aria-pressed="true"] { border-color: #274d3c; background: #244c3d; color: #fff; }
body.mac-theme .next-shell .next-board-toolbar :is(input, select):focus { outline: none; border-color: #5b9b74; box-shadow: 0 0 0 3px rgba(86, 161, 113, .13); }
body.mac-theme .next-shell .next-board-toolbar input[type="search"] { flex: 1 1 220px; max-width: 390px; }
body.mac-theme .next-shell .next-board-toolbar .primary { border-color: #bfe764; background: #d7f46a; color: #21312a; font-weight: 750; }
body.mac-theme .next-shell .next-board-toolbar .primary:hover { background: #e4fa96; }

body.mac-theme .next-shell .next-board-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 13px;
  min-width: 0;
  padding-bottom: 16px;
}
body.mac-theme .next-shell .next-board-column {
  min-width: 0;
  min-height: 370px;
  padding: 13px;
  border: 1px solid #e0e8e1;
  border-radius: 15px;
  background: #eaf0e9;
}
body.mac-theme .next-shell .next-board-column:nth-child(2) { background: #e9f1ea; }
body.mac-theme .next-shell .next-board-column:nth-child(3) { background: #eef1e8; }
body.mac-theme .next-shell .next-board-column:nth-child(4) { background: #e8f0e9; }
body.mac-theme .next-shell .next-board-column > :first-child { margin-bottom: 12px; }
body.mac-theme .next-shell .next-board-column h2,
body.mac-theme .next-shell .next-board-column h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: 12px; font-weight: 760; letter-spacing: -.015em; }
body.mac-theme .next-shell .next-board-column h2::before,
body.mac-theme .next-shell .next-board-column h3::before { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #91a6a1; }
body.mac-theme .next-shell .next-board-column:nth-child(2) :is(h2, h3)::before { background: #69bdb2; }
body.mac-theme .next-shell .next-board-column:nth-child(3) :is(h2, h3)::before { background: #d2ae57; }
body.mac-theme .next-shell .next-board-column:nth-child(4) :is(h2, h3)::before { background: #79a88a; }
body.mac-theme .next-shell .next-board-column :is(small, .count) { color: #70857a; font-size: 11px; font-variant-numeric: tabular-nums; }

body.mac-theme .next-shell .next-task-card {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 9px;
  padding: 15px;
  border: 1px solid #e1e9e2;
  border-radius: 11px;
  background: #fff;
  color: #1b2b2d;
  text-align: left;
  box-shadow: 0 3px 12px rgba(23, 55, 37, .035);
  overflow-wrap: anywhere;
}
body.mac-theme .next-shell .next-task-card:hover { border-color: #bad3be; box-shadow: 0 13px 26px rgba(32, 62, 45, .11); transform: translateY(-2px); }
body.mac-theme .next-shell .next-task-card:focus-visible { border-color: #5f9274; box-shadow: 0 0 0 3px rgba(78, 145, 99, .15); }
body.mac-theme .next-shell .next-task-card :is(h3, strong) { display: block; margin: 7px 0 6px; color: #1c2d2e; font-size: 13px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
body.mac-theme .next-shell .next-task-card p { margin: 0 0 12px; color: #708078; font-size: 11px; line-height: 1.5; word-break: keep-all; }
body.mac-theme .next-shell .next-task-card :is(time, small) { color: #7b8b83; font-size: 10px; }
body.mac-theme .next-shell .next-task-card :is(.tag, .status) { display: inline-flex; width: fit-content; max-width: 100%; padding: 3px 7px; border: 0; border-radius: 5px; background: #e7f3ea; color: #2b7048; font-size: 10px; font-weight: 700; line-height: 1.25; }
body.mac-theme .next-shell .next-task-card :is(footer, .meta) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1ec; color: #6a7d72; font-size: 10px; }

body.mac-theme .next-shell .next-table {
  min-width: 0;
  overflow: auto;
  border: 1px solid #dce6df;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 58, 42, .045);
}
body.mac-theme .next-shell .next-table table { width: 100%; border-collapse: separate; border-spacing: 0; color: #22352f; font-size: 12px; }
body.mac-theme .next-shell .next-table th,
body.mac-theme .next-shell .next-table td { padding: 13px 15px; border-bottom: 1px solid #eaf0eb; text-align: left; vertical-align: middle; }
body.mac-theme .next-shell .next-table th { position: sticky; top: 0; z-index: 1; background: #f5f8f4; color: #60756b; font-size: 10px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
body.mac-theme .next-shell .next-table tr:last-child td { border-bottom: 0; }
body.mac-theme .next-shell .next-table tbody tr:hover td { background: #f8fbf7; }
body.mac-theme .next-shell .next-table :is(a, button) { color: #245d45; }
body.mac-theme .next-shell .next-table :is(a, button):hover { color: #123f30; text-decoration: underline; }

/* Detail: a strong destination header with a readable real-state flow. */
body.mac-theme .next-shell #main:has(.next-detail-header) { background: #f3f6f2; color: #16272b; }
body.mac-theme .next-shell .next-detail-header {
  position: relative;
  isolation: isolate;
  margin: clamp(20px, 2.8vw, 42px) clamp(20px, 2.8vw, 42px) 0;
  padding: clamp(23px, 3vw, 41px);
  overflow: hidden;
  border: 1px solid #1b4550;
  border-radius: 20px;
  background: linear-gradient(119deg, #102d36, #0c1e29 72%);
  color: #ecf7f4;
  box-shadow: 0 17px 44px rgba(15, 43, 48, .13);
}
body.mac-theme .next-shell .next-detail-header::before { content: ''; position: absolute; z-index: -1; width: 340px; height: 340px; right: -125px; top: -165px; border-radius: 50%; background: radial-gradient(circle, rgba(154, 233, 186, .21), transparent 68%); pointer-events: none; }
body.mac-theme .next-shell .next-detail-header :is(h1, h2, h3) { color: #f4faf5; }
body.mac-theme .next-shell .next-detail-header h1 { max-width: 28ch; font-size: clamp(27px, 2.5vw, 42px); font-weight: 730; line-height: 1.22; letter-spacing: -.055em; word-break: keep-all; }
body.mac-theme .next-shell .next-detail-header p { max-width: 72ch; margin-top: 10px; color: #a9c8c5; line-height: 1.7; }
body.mac-theme .next-shell .next-detail-header :is(small, time) { color: #8fb4b0; }
body.mac-theme .next-shell .next-detail-header .eyebrow { color: #d7f46a; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
body.mac-theme .next-shell .next-detail-header :is(.primary, button.primary) { border-color: #d7f46a; border-radius: 9px; background: #d7f46a; color: #1b2b28; }

body.mac-theme .next-shell .next-detail-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px clamp(20px, 2.8vw, 42px) 22px;
  padding: 9px;
  border: 1px solid #dce7de;
  border-radius: 14px;
  background: #fff;
  color: #51675d;
  box-shadow: 0 8px 22px rgba(27, 59, 42, .035);
}
body.mac-theme .next-shell .next-detail-flow > * { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 49px; padding: 9px 10px; border-radius: 9px; color: #697c70; font-size: 12px; font-weight: 650; line-height: 1.35; word-break: keep-all; }
body.mac-theme .next-shell .next-detail-flow > *.done { background: #edf6e8; color: #366b45; }
body.mac-theme .next-shell .next-detail-flow > *.active,
body.mac-theme .next-shell .next-detail-flow > *[aria-current="step"] { background: #e5f5bc; color: #223b29; box-shadow: inset 0 0 0 1px #c7e785; }
body.mac-theme .next-shell .next-detail-flow > *.failed { background: #fff0e9; color: #a33e26; }
body.mac-theme .next-shell .next-detail-flow :is(strong, b) { font-weight: 760; }

/* App-level state and touch behaviour. */
body.mac-theme .next-shell .empty { border-radius: 11px; }
body.mac-theme .next-shell :is(button, a)[disabled],
body.mac-theme .next-shell :is(button, a)[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }

@media (max-width: 1300px) {
  body.mac-theme .next-shell { grid-template-columns: 194px minmax(0, 1fr); }
  body.mac-theme .next-shell .next-home-grid { grid-template-columns: minmax(0, 1fr) 276px; }
  body.mac-theme .next-shell .next-board-columns { grid-template-columns: repeat(4, minmax(250px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: #b4c5ba transparent; }
  body.mac-theme .next-shell .next-board-column { scroll-snap-align: start; }
}

@media (max-width: 1060px) {
  body.mac-theme .next-shell .next-home-grid { grid-template-columns: minmax(0, 1fr); }
  body.mac-theme .next-shell .next-home-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.mac-theme .next-shell .next-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  body.mac-theme .next-shell { display: block; }
  body.mac-theme .next-shell .next-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(290px, 84vw);
    height: 100dvh;
    padding-top: 21px;
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 24px 0 72px rgba(0, 8, 13, .28);
  }
  body.mac-theme .next-shell .next-sidebar.open { transform: translateX(0); }
  body.mac-theme .next-shell:has(.next-sidebar.open)::after { content: ''; position: fixed; inset: 0; z-index: 70; background: rgba(1, 11, 16, .55); pointer-events: none; }
  body.mac-theme .next-shell > .body,
  body.mac-theme .next-shell .next-body { width: 100%; }
  body.mac-theme .next-shell .next-topbar { height: 56px; min-height: 56px; flex-basis: 56px; padding: 0 20px; }
  body.mac-theme .next-shell .next-topbar .mobile-only { display: inline-flex; }
  body.mac-theme .next-shell .next-home { padding: 20px; }
  body.mac-theme .next-shell .next-board { padding: 21px 16px; }
  body.mac-theme .next-shell .next-board-columns { grid-template-columns: repeat(4, minmax(265px, 80vw)); margin-right: -16px; padding-right: 16px; }
  body.mac-theme .next-shell .next-detail-header { margin: 18px 16px 0; }
  body.mac-theme .next-shell .next-detail-flow { margin: 12px 16px 20px; }
}

@media (max-width: 600px) {
  body.mac-theme .next-shell .next-home { padding: 14px; }
  body.mac-theme .next-shell .next-home-main,
  body.mac-theme .next-shell .next-home-rail { gap: 13px; }
  body.mac-theme .next-shell .next-home-rail { grid-template-columns: minmax(0, 1fr); }
  body.mac-theme .next-shell .next-hero { min-height: 240px; padding: 24px; border-radius: 16px; }
  body.mac-theme .next-shell .next-hero h1 { font-size: clamp(29px, 8vw, 38px); max-width: 18ch; }
  body.mac-theme .next-shell .next-hero p { font-size: 12px; }
  body.mac-theme .next-shell .next-stats { gap: 8px; }
  body.mac-theme .next-shell .next-stats > * { padding: 15px 13px; border-radius: 12px; }
  body.mac-theme .next-shell .next-stats :is(strong, b, .value) { font-size: 28px; }
  body.mac-theme .next-shell :is(.next-chart, .next-queue, .next-request) { border-radius: 13px; }
  body.mac-theme .next-shell .next-board-toolbar { margin: 17px 0; }
  body.mac-theme .next-shell .next-board-toolbar input[type="search"] { max-width: none; width: 100%; flex-basis: 100%; }
  body.mac-theme .next-shell .next-board-columns { grid-template-columns: repeat(4, minmax(255px, 87vw)); }
  body.mac-theme .next-shell .next-detail-header { padding: 23px; border-radius: 15px; }
  body.mac-theme .next-shell .next-detail-flow { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  body.mac-theme .next-shell .next-detail-flow > * { min-width: 132px; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  body.mac-theme .next-shell *,
  body.mac-theme .next-shell *::before,
  body.mac-theme .next-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The markup below is shared by the rebuilt shell and the live work views. */
body.mac-theme .next-shell .next-sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.mac-theme .next-shell .next-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 11px 26px; }
body.mac-theme .next-shell .next-sidebar-close { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #d2ebda3d; border-radius: 8px; background: #ffffff10; color: #e3f3e9; font-size: 21px; line-height: 1; }
body.mac-theme .next-shell .next-sidebar-close:hover { border-color: #d7f46a7d; background: #ffffff1d; color: #d7f46a; }
body.mac-theme .next-shell .next-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: #f3faf5; text-decoration: none; }
body.mac-theme .next-shell .next-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #d7f46a; border-radius: 10px; background: #d7f46a; color: #13292b; font-size: 22px; font-weight: 850; font-family: Georgia, serif; letter-spacing: -.11em; padding-right: 2px; box-shadow: 0 7px 24px #d7f46a22; }
body.mac-theme .next-shell .next-brand-copy { display: grid; gap: 0; line-height: 1.1; }
body.mac-theme .next-shell .next-brand-copy strong { color: #f6faf6; font-size: 17px; font-weight: 780; letter-spacing: .09em; }
body.mac-theme .next-shell .next-brand-copy small { margin-top: 4px; color: #82a8a6; font-size: 8px; font-weight: 760; letter-spacing: .21em; }
body.mac-theme .next-shell .next-sidebar-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-color: #38565c transparent; }
body.mac-theme .next-shell .next-nav-caption { margin: 13px 11px 7px; color: #638e8f; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
body.mac-theme .next-shell .next-nav-group { display: grid; gap: 3px; margin: 0 0 18px; padding: 0; }
body.mac-theme .next-shell .next-sidebar .next-nav-item { display: flex; align-items: center; gap: 10px; min-height: 39px; width: 100%; min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #9db8b7; text-align: left; font-size: 12px; font-weight: 580; line-height: 1.25; }
body.mac-theme .next-shell .next-sidebar .next-nav-item:hover { background: #ffffff0e; color: #f2fbf7; }
body.mac-theme .next-shell .next-sidebar .next-nav-item.is-active,
body.mac-theme .next-shell .next-sidebar .next-nav-item[aria-current="page"] { border-color: #d7f46a2e; background: linear-gradient(90deg, #d7f46a29, #73d2b412); color: #e4f8ba; box-shadow: inset 3px 0 #d7f46a; font-weight: 750; }
body.mac-theme .next-shell .next-nav-icon { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; color: #7ca5a1; }
body.mac-theme .next-shell .next-nav-icon .icon { width: 17px; height: 17px; }
body.mac-theme .next-shell .next-nav-item.is-active .next-nav-icon { color: #d7f46a; }
body.mac-theme .next-shell .next-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-nav-count { display: grid; place-items: center; min-width: 19px; min-height: 19px; margin-left: auto; padding: 0 4px; border-radius: 5px; background: #bfe7b522; color: #c9e0c6; font-size: 10px; font-variant-numeric: tabular-nums; }
body.mac-theme .next-shell .next-sidebar .next-sidebar-bottom { margin-top: 0; padding: 11px 0 0; border-top: 1px solid #b9ddd31e; }
body.mac-theme .next-shell .next-sidebar-settings > summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: #82a8a5; font-size: 11px; cursor: pointer; list-style: none; }
body.mac-theme .next-shell .next-sidebar-settings > summary:hover { background: #ffffff0c; color: #e1f2eb; }
body.mac-theme .next-shell .next-sidebar-settings > summary::-webkit-details-marker { display: none; }
body.mac-theme .next-shell .next-sidebar-settings[open] > summary span { transform: rotate(180deg); }
body.mac-theme .next-shell .next-sidebar-settings > div { display: grid; gap: 2px; padding: 2px 0 8px; }
body.mac-theme .next-shell .next-sidebar .next-sidebar-bottom :is(.profile, .account-bar) { margin: 0; border: 0; }

body.mac-theme .next-shell .next-topbar-start,
body.mac-theme .next-shell .next-topbar-actions { display: flex; align-items: center; gap: 11px; min-width: 0; }
body.mac-theme .next-shell .next-topbar .next-topbar-actions { flex-shrink: 0; max-width: none; }
body.mac-theme .next-shell .next-location { display: flex; align-items: baseline; gap: 13px; min-width: 0; }
body.mac-theme .next-shell .next-location > span { color: #688e90; font-size: 9px; font-weight: 760; letter-spacing: .16em; white-space: nowrap; }
body.mac-theme .next-shell .next-location > strong { overflow: hidden; color: #e8f4ef; font-size: 13px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-topbar .next-topbar-search,
body.mac-theme .next-shell .next-topbar .next-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9dbab8; font-size: 11px; }
body.mac-theme .next-shell .next-topbar .next-topbar-search:hover,
body.mac-theme .next-shell .next-topbar .next-icon-button:hover { border-color: #ffffff1b; background: #ffffff0b; color: #f3faf6; }
body.mac-theme .next-shell .next-topbar .next-topbar-search > span:first-child { font-size: 20px; font-weight: 400; line-height: .5; }
body.mac-theme .next-shell .next-topbar .next-topbar-new { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 1px solid #d7f46a; border-radius: 8px; background: #d7f46a; color: #1a2f2e; font-size: 11px; font-weight: 780; white-space: nowrap; }
body.mac-theme .next-shell .next-topbar .next-topbar-new:hover { background: #e6ff91; }
body.mac-theme .next-shell .next-topbar .acct-header-account { color: #b4cec6; }
body.mac-theme .next-shell .next-topbar .acct-header-account:hover { background: #ffffff0d; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-avatar { background: #dcefdc; color: #255444; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-person strong { color: #d3e6de; }
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-person small,
body.mac-theme .next-shell .next-topbar .acct-header-account .acct-account-more { color: #86aaa4; }
body.mac-theme .next-shell .next-menu-button { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; border: 1px solid #ffffff2a; border-radius: 8px; background: #ffffff0e; color: #e0f2ec; }

/* Home: visual hierarchy follows live work, with input kept in the rail. */
body.mac-theme .next-shell .next-section-kicker,
body.mac-theme .next-shell .next-overline { display: block; color: #a9d89c; font-size: 10px; font-weight: 790; letter-spacing: .16em; line-height: 1.35; }
body.mac-theme .next-shell .next-hero .next-overline { margin: 0; color: #c9e7af; }
body.mac-theme .next-shell .next-hero .next-overline span { padding: 0 3px; color: #678e83; }
body.mac-theme .next-shell .next-hero h1 em { color: #d7f46a; font-style: normal; }
body.mac-theme .next-shell .next-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
body.mac-theme .next-shell .next-hero .next-hero-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; margin: 0; padding: 9px 15px; border-radius: 9px; font-size: 12px; font-weight: 750; }
body.mac-theme .next-shell .next-hero .next-hero-primary { border: 1px solid #d7f46a; background: #d7f46a; color: #152b29; }
body.mac-theme .next-shell .next-hero .next-hero-primary:hover { background: #e6ff91; }
body.mac-theme .next-shell .next-hero .next-hero-secondary { border: 1px solid #c8f0db40; background: #ffffff0d; color: #e5f6ec; }
body.mac-theme .next-shell .next-hero .next-hero-secondary:hover { background: #ffffff1d; }
body.mac-theme .next-shell .next-hero-orbit { position: absolute; z-index: -1; right: -7%; top: -26%; width: 58%; aspect-ratio: 1; border: 1px solid #b6ebbc24; border-radius: 50%; background: radial-gradient(circle at 44% 52%, #bfe77918 0, transparent 32%); pointer-events: none; }
body.mac-theme .next-shell .next-hero-orbit > span { position: absolute; inset: 15%; border: 1px solid #b6ebbc29; border-radius: 50%; }
body.mac-theme .next-shell .next-hero-orbit > span:nth-child(2) { inset: 30%; }
body.mac-theme .next-shell .next-hero-orbit > span:nth-child(3) { inset: 44%; background: #d7f46a; box-shadow: 0 0 43px #d7f46a88; }
body.mac-theme .next-shell .next-stats .next-stat { cursor: pointer; text-align: left; }
body.mac-theme .next-shell .next-stats .next-stat:hover { border-color: #b1dec372; background: #203f46; transform: translateY(-2px); }
body.mac-theme .next-shell .next-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #a6c8c3; font-size: 11px; font-weight: 650; }
body.mac-theme .next-shell .next-stat-top .icon { width: 16px; height: 16px; color: #93c7a9; }
body.mac-theme .next-shell .next-stat small { margin-top: 6px; }
body.mac-theme .next-shell .next-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
body.mac-theme .next-shell .next-section-heading h2 { margin: 4px 0 2px; color: #f2faf5; font-size: 16px; font-weight: 730; letter-spacing: -.035em; }
body.mac-theme .next-shell .next-section-heading p { margin: 0; color: #82a6a7; font-size: 11px; }
body.mac-theme .next-shell .next-section-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 0; border: 0; background: transparent; color: #b6ddbb; font-size: 11px; white-space: nowrap; }
body.mac-theme .next-shell .next-section-link:hover { color: #d7f46a; }
body.mac-theme .next-shell .next-chart-key { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 19px; color: #a4c0b8; font-size: 10px; }
body.mac-theme .next-shell .next-chart-key span { display: inline-flex; align-items: center; gap: 5px; }
body.mac-theme .next-shell .next-chart-key i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #d7f46a; }
body.mac-theme .next-shell .next-chart-key .is-result { background: #6dc7b0; }
body.mac-theme .next-shell .next-chart-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 1.3vw, 16px); height: 140px; margin: 18px 2px 0; }
body.mac-theme .next-shell .next-chart-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
body.mac-theme .next-shell .next-chart-stack { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; min-height: 0; }
body.mac-theme .next-shell .next-chart-stack > span { display: block; width: min(20px, 44%); min-height: 2px; border-radius: 4px 4px 0 0; }
body.mac-theme .next-shell .next-chart-request { background: linear-gradient(#e1f68d, #aac950); }
body.mac-theme .next-shell .next-chart-result { background: linear-gradient(#8cddc4, #4d9e90); }
body.mac-theme .next-shell .next-chart-day strong { color: #87a5a6; font-size: 10px; font-weight: 650; white-space: nowrap; }
body.mac-theme .next-shell .next-chart-empty { margin: 11px 0 0; color: #8aabaa; font-size: 10px; }
body.mac-theme .next-shell .next-queue-list { display: grid; }
body.mac-theme .next-shell .next-queue .next-queue-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 60px; padding: 11px 0; border: 0; border-top: 1px solid #c5e8dc18; border-radius: 0; background: transparent; color: #edf9f3; text-align: left; }
body.mac-theme .next-shell .next-queue .next-queue-row:hover { background: #ffffff09; color: #edf9f3; }
body.mac-theme .next-shell .next-queue-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: #79baa62c; color: #a2d5bf; font-size: 10px; font-weight: 700; white-space: nowrap; }
body.mac-theme .next-shell .next-queue-status.is-urgent { background: #ebaa7a2b; color: #fac19d; }
body.mac-theme .next-shell .next-queue-status.is-review { background: #d7f46a27; color: #d7f46a; }
body.mac-theme .next-shell .next-queue-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
body.mac-theme .next-shell .next-queue-copy strong { overflow: hidden; color: #e9f7f1; font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-queue-copy small { overflow: hidden; color: #86aaa8; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-queue-time { flex: 0 0 auto; color: #789c9b; font-size: 10px; white-space: nowrap; }
body.mac-theme .next-shell .next-queue-row > .icon { width: 14px; height: 14px; color: #8eaca6; }
body.mac-theme .next-shell .next-queue-empty { padding: 20px 4px 8px; color: #8fadaa; font-size: 12px; }
body.mac-theme .next-shell .next-request > p { margin: -4px 0 14px; color: #a8c9c0; font-size: 12px; line-height: 1.55; }
body.mac-theme .next-shell .next-request h2 { margin: 6px 0 8px; font-size: 19px; }
body.mac-theme .next-shell .next-route-hint { min-height: 18px; margin-top: 8px; color: #a9d7bb; font-size: 10px; line-height: 1.4; }
body.mac-theme .next-shell .next-request .next-request-send { display: inline-flex; justify-content: center; align-items: center; gap: 7px; width: 100%; min-height: 39px; margin-top: 12px; padding: 8px 11px; border: 1px solid #d7f46a; border-radius: 8px; background: #d7f46a; color: #19302c; font-size: 12px; font-weight: 760; }
body.mac-theme .next-shell .next-request .next-request-send:hover { background: #e6ff91; }
body.mac-theme .next-shell :is(.next-live, .next-recent) { min-width: 0; padding: 20px; border: 1px solid #bce2d321; border-radius: 17px; background: #122b34; }
body.mac-theme .next-shell :is(.next-live, .next-recent) .next-section-heading { margin-bottom: 9px; }
body.mac-theme .next-shell .next-live .next-section-heading > b { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 8px; background: #d7f46a22; color: #d7f46a; font-size: 12px; }
body.mac-theme .next-shell :is(.next-live, .next-recent) > p,
body.mac-theme .next-shell .next-live-list > p { margin: 11px 0 0; color: #8daaa8; font-size: 11px; }
body.mac-theme .next-shell .next-live-list { display: grid; }
body.mac-theme .next-shell .next-live-list button { display: flex; align-items: center; gap: 9px; min-width: 0; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid #c5e8dc18; background: transparent; color: #dceee8; text-align: left; font-size: 11px; }
body.mac-theme .next-shell .next-live-list button > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #a9e074; box-shadow: 0 0 8px #a9e0747d; }
body.mac-theme .next-shell .next-live-list button > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-live-list button > .icon { width: 13px; height: 13px; color: #83a59c; }
body.mac-theme .next-shell .next-recent > button { display: grid; gap: 4px; width: 100%; min-width: 0; padding: 10px 0; border: 0; border-top: 1px solid #c5e8dc18; background: transparent; text-align: left; }
body.mac-theme .next-shell .next-recent > button span { color: #9ccab8; font-size: 10px; }
body.mac-theme .next-shell .next-recent > button strong { overflow: hidden; color: #e0f2e9; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-recent > button small { color: #75999a; font-size: 10px; }
body.mac-theme .next-shell .next-recent > button:hover strong { color: #d7f46a; }

/* Work board: pale columns and clear task cards for scanning across states. */
body.mac-theme .next-shell .next-board-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; max-width: 1640px; margin: 0 auto; }
body.mac-theme .next-shell .next-board-heading h1 { margin: 6px 0 6px; }
body.mac-theme .next-shell .next-board-heading p { margin: 0; font-size: 12px; }
body.mac-theme .next-shell .next-board .next-section-kicker,
body.mac-theme .next-shell .next-completed .next-section-kicker { color: #607f6f; }
body.mac-theme .next-shell .next-board-create { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid #294d3b; border-radius: 9px; background: #244d3e; color: #f5faf6; font-size: 12px; font-weight: 730; white-space: nowrap; }
body.mac-theme .next-shell .next-board-create:hover { background: #1b3d31; transform: translateY(-1px); }
body.mac-theme .next-shell .next-board-toolbar,
body.mac-theme .next-shell .next-board #task-rows { max-width: 1640px; margin-left: auto; margin-right: auto; }
body.mac-theme .next-shell .next-board-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dfe8e1; border-radius: 9px; background: #f5f8f4; }
body.mac-theme .next-shell .next-board-toolbar .next-board-switch-item { min-height: 29px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: #6c8174; font-size: 11px; }
body.mac-theme .next-shell .next-board-toolbar .next-board-switch-item.is-active,
body.mac-theme .next-shell .next-board-toolbar .next-board-switch-item[aria-pressed="true"] { background: #244d3e; color: #fff; box-shadow: 0 2px 5px #123b2428; }
body.mac-theme .next-shell .next-board-search { display: flex; align-items: center; gap: 6px; flex: 1 1 240px; max-width: 400px; min-height: 36px; padding: 0 10px; border: 1px solid #dfe8e1; border-radius: 8px; background: #fff; color: #8ba699; }
body.mac-theme .next-shell .next-board-search > span { font-size: 21px; line-height: 1; }
body.mac-theme .next-shell .next-board-toolbar .next-board-search input { flex: 1; width: 100%; min-width: 0; min-height: 32px; padding: 4px 0; border: 0; background: transparent; box-shadow: none; color: #263a30; }
body.mac-theme .next-shell .next-board-search:focus-within { border-color: #6da080; box-shadow: 0 0 0 3px #7fac8626; }
body.mac-theme .next-shell .next-board-toolbar .next-board-search input:focus { outline: 0; box-shadow: none; }
body.mac-theme .next-shell .next-board-toolbar > select { min-width: 110px; background: #fff; color: #344940; }
body.mac-theme .next-shell .next-board-total { margin-left: auto; color: #718578; font-size: 11px; font-weight: 640; white-space: nowrap; }
body.mac-theme .next-shell .next-board-columns { overflow-x: auto; }
body.mac-theme .next-shell .next-column-heading { min-height: 58px; margin-bottom: 12px; }
body.mac-theme .next-shell .next-column-heading > div { display: flex; align-items: center; gap: 7px; }
body.mac-theme .next-shell .next-column-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8ea9a0; }
body.mac-theme .next-shell .next-column-progress .next-column-dot { background: #66bbaa; }
body.mac-theme .next-shell .next-column-review .next-column-dot { background: #d3ad56; }
body.mac-theme .next-shell .next-column-done .next-column-dot { background: #77a788; }
body.mac-theme .next-shell .next-column-heading h2 { margin: 0; font-size: 12px; font-weight: 750; }
body.mac-theme .next-shell .next-column-heading h2::before { content: none; }
body.mac-theme .next-shell .next-column-heading b { display: grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 5px; background: #dbe5da; color: #5d7667; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.mac-theme .next-shell .next-column-heading p { margin: 6px 0 0; color: #8a9b8e; font-size: 10px; }
body.mac-theme .next-shell .next-column-cards { display: grid; align-content: start; gap: 9px; min-height: 240px; }
body.mac-theme .next-shell .next-column-cards .next-task-card { margin: 0; }
body.mac-theme .next-shell .next-column-empty { margin: 0; padding: 23px 10px; border: 1px dashed #ccdacf; border-radius: 10px; color: #8ea193; font-size: 11px; text-align: center; }
body.mac-theme .next-shell .next-task-category { display: inline-flex; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #e9f3e9; color: #4e8060; font-size: 10px; font-weight: 710; line-height: 1.35; }
body.mac-theme .next-shell .next-task-card > strong { display: block; margin: 9px 0 5px; color: #1e302d; font-size: 13px; font-weight: 760; line-height: 1.45; }
body.mac-theme .next-shell .next-task-summary { display: -webkit-box; overflow: hidden; color: #708277; font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; }
body.mac-theme .next-shell .next-task-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 14px; color: #839288; font-size: 10px; }
body.mac-theme .next-shell .next-task-state { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 5px; background: #e8efe7; color: #52715b; font-size: 10px; font-weight: 680; }
body.mac-theme .next-shell .next-column-review .next-task-state { background: #fff2d9; color: #936d27; }
body.mac-theme .next-shell .next-column-done .next-task-state { background: #e5f0e8; color: #477654; }
body.mac-theme .next-shell .next-task-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #edf1ec; color: #87958b; font-size: 10px; }
body.mac-theme .next-shell .next-task-foot .icon { width: 13px; height: 13px; color: #658470; }
body.mac-theme .next-shell .next-table-head,
body.mac-theme .next-shell .next-table-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(110px, 1fr) minmax(100px, .8fr) minmax(115px, .8fr); gap: 10px; align-items: center; min-width: 680px; }
body.mac-theme .next-shell .next-table-head { padding: 12px 17px; background: #f4f8f3; color: #6a8273; font-size: 10px; font-weight: 780; }
body.mac-theme .next-shell .next-table-row { width: 100%; padding: 14px 17px; border: 0; border-top: 1px solid #eaf0eb; border-radius: 0; background: #fff; color: #607268; text-align: left; font-size: 11px; }
body.mac-theme .next-shell .next-table-row:hover { background: #f7faf6; text-decoration: none; }
body.mac-theme .next-shell .next-table-row > strong { overflow: hidden; color: #24372e; font-size: 12px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-table-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-table-row > time { color: #81958a; white-space: nowrap; }
body.mac-theme .next-shell .next-table-status { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #93a59b; vertical-align: 1px; }
body.mac-theme .next-shell .next-status-progress { background: #68bbaa; }
body.mac-theme .next-shell .next-status-review { background: #d3ae62; }
body.mac-theme .next-shell .next-status-done { background: #80ae84; }
body.mac-theme .next-shell .next-board-empty { padding: 30px 18px; color: #71877a; font-size: 12px; text-align: center; }

/* Finished work remains a complete, searchable destination. */
body.mac-theme .next-shell .next-completed { min-height: 100%; padding: clamp(20px, 2.8vw, 42px); background: #f3f6f2; color: #1d3029; }
body.mac-theme .next-shell .next-completed-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; max-width: 1250px; margin: 0 auto 26px; }
body.mac-theme .next-shell .next-completed-head h1 { margin: 5px 0 6px; color: #1c302a; font-size: clamp(27px, 2.4vw, 39px); font-weight: 740; letter-spacing: -.055em; }
body.mac-theme .next-shell .next-completed-head p { margin: 0; color: #6b7f70; font-size: 12px; }
body.mac-theme .next-shell .next-completed-summary { display: grid; justify-items: end; gap: 2px; }
body.mac-theme .next-shell .next-completed-summary strong { color: #25513f; font-size: 28px; font-weight: 780; line-height: 1; }
body.mac-theme .next-shell .next-completed-summary small { padding-left: 2px; color: #668678; font-size: 12px; }
body.mac-theme .next-shell .next-completed-summary > span { color: #748c7c; font-size: 11px; white-space: nowrap; }
body.mac-theme .next-shell .next-completed-notice { display: flex; align-items: center; gap: 10px; max-width: 1250px; margin: 0 auto 17px; padding: 12px 15px; border: 1px solid #cee2cb; border-radius: 10px; background: #e9f5e6; color: #3f704e; font-size: 12px; }
body.mac-theme .next-shell .next-completed-notice .icon { width: 17px; height: 17px; }
body.mac-theme .next-shell .next-completed-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1250px; margin: 0 auto 13px; }
body.mac-theme .next-shell .next-completed-filter label { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; min-height: 37px; padding: 0 10px; border: 1px solid #dce6dd; border-radius: 9px; background: #fff; color: #92ab99; }
body.mac-theme .next-shell .next-completed-filter label > span { font-size: 20px; }
body.mac-theme .next-shell .next-completed-filter input { flex: 1; width: 100%; min-width: 0; min-height: 35px; padding: 6px 0; border: 0; background: transparent; color: #254233; }
body.mac-theme .next-shell .next-completed-filter input:focus { outline: 0; box-shadow: none; }
body.mac-theme .next-shell .next-completed-filter > span { color: #789184; font-size: 11px; white-space: nowrap; }
body.mac-theme .next-shell .next-completed-list { display: grid; gap: 9px; max-width: 1250px; margin: 0 auto; }
body.mac-theme .next-shell .next-completed-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 17px 19px; border: 1px solid #dfe9e0; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px #1d443c0a; }
body.mac-theme .next-shell .next-completed-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 10px; background: #e2f1df; color: #558761; }
body.mac-theme .next-shell .next-completed-icon .icon { width: 18px; height: 18px; }
body.mac-theme .next-shell .next-completed-copy { flex: 1; min-width: 0; }
body.mac-theme .next-shell .next-completed-copy small { display: block; color: #7e9687; font-size: 10px; }
body.mac-theme .next-shell .next-completed-copy button { display: block; max-width: 100%; margin: 3px 0; padding: 0; border: 0; background: transparent; color: #203e2b; text-align: left; }
body.mac-theme .next-shell .next-completed-copy button:hover { color: #3b7b4d; }
body.mac-theme .next-shell .next-completed-copy button strong { display: block; overflow: hidden; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-completed-copy p { margin: 0; color: #8a9c8d; font-size: 11px; }
body.mac-theme .next-shell .next-completed-actions { display: flex; align-items: center; gap: 8px; }
body.mac-theme .next-shell .next-completed-open { min-height: 33px; padding: 6px 10px; border: 1px solid #cfdfd1; border-radius: 7px; background: #f3f8f2; color: #3b6748; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.mac-theme .next-shell .next-completed-open:hover { background: #e3f2df; }
body.mac-theme .next-shell .next-completed-actions a { color: #4a7659; font-size: 11px; font-weight: 650; white-space: nowrap; }

/* Detail keeps the existing chat and preview mechanics while clarifying its state. */
body.mac-theme .next-shell .next-workspace { background: #eef3ee; }
body.mac-theme .next-shell .next-detail-header { display: block; flex: 0 0 auto; width: auto; height: auto; min-height: 0; align-items: initial; justify-content: initial; gap: 0; padding: clamp(20px, 2.2vw, 30px); background: linear-gradient(115deg, #12313a 0%, #0d2430 67%, #11372f 100%); border: 1px solid #1d4a4e; border-radius: 16px; }
body.mac-theme .next-shell .next-detail-header .next-menu-button { display: none; }
body.mac-theme .next-shell .next-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
body.mac-theme .next-shell .next-detail-top .work-heading-copy { min-width: 0; flex: 1; }
body.mac-theme .next-shell .next-detail-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: #9ac0ae; font-size: 10px; font-weight: 720; }
body.mac-theme .next-shell .next-detail-breadcrumb i { color: #5e918b; font-style: normal; }
body.mac-theme .next-shell .next-detail-status { padding: 2px 6px; border: 1px solid #d7f46a33; border-radius: 5px; background: #d7f46a16; color: #d7f46a; }
body.mac-theme .next-shell .next-detail-header h1 { max-width: 46ch; margin: 0; overflow: visible; color: #f1faf4; font-size: clamp(22px, 2vw, 30px); font-weight: 760; line-height: 1.28; text-overflow: clip; white-space: normal; }
body.mac-theme .next-shell .next-detail-header p { max-width: 72ch; margin: 6px 0 0; color: #a2c3bd; font-size: 11px; line-height: 1.6; }
body.mac-theme .next-shell .next-detail-top .app-work-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; padding-top: 1px; }
body.mac-theme .next-shell .next-detail-top .app-work-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 10px; border-radius: 8px; font-size: 11px; font-weight: 720; white-space: nowrap; }
body.mac-theme .next-shell .next-detail-top .next-detail-review { border: 1px solid #d7f46a; background: #d7f46a; color: #1a302b; }
body.mac-theme .next-shell .next-detail-top .next-detail-review:hover { background: #e5ff8e; }
body.mac-theme .next-shell .next-detail-top .next-detail-complete { border: 1px solid #c4e3d54d; background: #ffffff0d; color: #d9efe3; }
body.mac-theme .next-shell .next-detail-top .next-detail-complete:hover { background: #ffffff22; }
body.mac-theme .next-shell .next-detail-more > summary { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d0ead634; border-radius: 8px; background: #ffffff0b; color: #d5ebe2; }
body.mac-theme .next-shell .next-detail-more > summary:hover,
body.mac-theme .next-shell .next-detail-more[open] > summary { background: #ffffff24; color: #fff; }
body.mac-theme .next-shell .next-detail-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 21px 0 0; padding: 0; border: 0; border-top: 1px solid #d6f4d024; border-radius: 0; background: transparent; box-shadow: none; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 54px; margin: 10px 0 0; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: #ffffff0b; color: #92b0aa; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.has-record { background: #8cc1a71a; color: #d6eddd; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.is-current { border-color: #d7f46a6e; background: #d7f46a22; color: #e7fab3; }
body.mac-theme .next-shell .next-detail-flow > .next-flow-node.has-issue { border-color: #e6a6786c; background: #e6a67820; color: #ffcba6; }
body.mac-theme .next-shell .next-flow-index { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid currentColor; border-radius: 7px; opacity: .75; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.mac-theme .next-shell .next-flow-node-copy { display: grid; min-width: 0; gap: 1px; }
body.mac-theme .next-shell .next-flow-node-copy strong { overflow: hidden; font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
body.mac-theme .next-shell .next-flow-node-copy small { color: inherit; font-size: 9px; font-weight: 520; opacity: .74; }
body.mac-theme .next-shell .next-workspace > .app-work-grid { min-height: 0; margin: 0 clamp(20px, 2.8vw, 42px) clamp(20px, 2.8vw, 42px); overflow: hidden; border: 1px solid #dce7df; border-radius: 13px; background: #fff; box-shadow: 0 8px 26px #1739260a; }
body.mac-theme .next-shell .next-workspace > .mobile-preview-tabs { background: #eaf1ea; border-color: #d6e3d8; }

/* The signed-out entry uses the same night, teal and lime palette. */
body.mac-theme:has(#main.acct-login-page) { background: #081d25; }
body.mac-theme #main.acct-login-page { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; max-width: none; min-height: 100dvh; margin: 0; padding: 38px 22px; overflow: hidden; background: radial-gradient(circle at 79% 26%, #39665b4f 0, transparent 30%), radial-gradient(circle at 10% 82%, #1b5e634a 0, transparent 35%), linear-gradient(123deg, #081820, #0e2a32 66%, #102b2c); color: #f3faf5; }
body.mac-theme #main.acct-login-page::before { content: ''; position: absolute; z-index: -1; right: -12vw; top: -18vw; width: min(60vw, 700px); aspect-ratio: 1; border: 1px solid #c4eba32c; border-radius: 50%; box-shadow: 0 0 0 85px #98dbc908, 0 0 0 170px #d7f46a07; pointer-events: none; }
body.mac-theme #main.acct-login-page::after { content: 'CRATA  /  WORKSPACE'; position: absolute; bottom: 25px; left: 30px; color: #789c96; font-size: 10px; font-weight: 720; letter-spacing: .19em; }
body.mac-theme .acct-login-card { width: min(440px, 100%); padding: clamp(29px, 4vw, 46px); border: 1px solid #c8ebdb38; border-radius: 20px; background: linear-gradient(153deg, #1d3c43f2, #142e37f2 52%, #102630f2); color: #f3faf5; box-shadow: 0 36px 94px #020b13a1, inset 0 1px #ffffff0c; backdrop-filter: blur(20px); }
body.mac-theme .acct-login-logo { width: 112px; height: 37px; margin-bottom: 9px; filter: brightness(0) invert(1); }
body.mac-theme .acct-login-kicker { margin: 0 0 34px; color: #badd9e; font-size: 10px; font-weight: 760; letter-spacing: .18em; }
body.mac-theme .acct-login-card h1 { margin: 0 0 8px; color: #f6faf5; font-size: clamp(25px, 3vw, 31px); font-weight: 730; line-height: 1.3; letter-spacing: -.055em; }
body.mac-theme .acct-login-description { margin: 0 0 28px; color: #a5c6c0; font-size: 12px; line-height: 1.7; }
body.mac-theme .acct-login-card .acct-form { display: grid; gap: 15px; }
body.mac-theme .acct-login-card .acct-form label { display: grid; gap: 7px; color: #d0e5dc; font-size: 11px; font-weight: 680; }
body.mac-theme .acct-login-card .acct-form input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #c0e5d147; border-radius: 9px; background: #061c26b8; color: #f5faf5; font-size: 13px; }
body.mac-theme .acct-login-card .acct-form input::placeholder { color: #6f9698; }
body.mac-theme .acct-login-card .acct-form input:focus { outline: 2px solid #b9e186; outline-offset: 1px; border-color: #b9e186; box-shadow: none; }
body.mac-theme .acct-login-card .acct-help { color: #8caba3; font-size: 10px; font-weight: 400; }
body.mac-theme .acct-login-card .acct-error:not([hidden]) { margin: 0; padding: 10px 12px; border: 1px solid #e7a5847d; border-radius: 8px; background: #9c4b3829; color: #ffd7be; font-size: 11px; }
body.mac-theme .acct-login-card .acct-primary { min-height: 43px; margin: 8px 0 0; padding: 10px 15px; border: 1px solid #d7f46a; border-radius: 9px; background: #d7f46a; color: #1b302b; font-size: 12px; font-weight: 780; box-shadow: 0 9px 24px #ccf4641d; }
body.mac-theme .acct-login-card .acct-primary:hover { border-color: #e5ff8c; background: #e5ff8c; }
body.mac-theme .acct-login-footer { margin: 23px 0 0; color: #83a6a0; font-size: 10px; line-height: 1.6; }
body.mac-theme .acct-login-footer .acct-text-button { color: #bddbc5; }
body.mac-theme .acct-login-local-note { padding: 14px; border: 1px solid #d5e8ae41; border-radius: 9px; background: #d7f46a14; color: #d4eac8; font-size: 12px; line-height: 1.7; }

@media (max-width: 1060px) {
  body.mac-theme .next-shell .next-board-columns { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
  body.mac-theme .next-shell .next-detail-top { flex-direction: column; }
  body.mac-theme .next-shell .next-detail-top .app-work-actions { justify-content: flex-start; }
}
@media (max-width: 800px) {
  body.mac-theme .next-shell .next-sidebar { width: min(290px, 84vw); }
  body.mac-theme .next-shell .next-sidebar-close { display: inline-flex; }
  body.mac-theme .next-shell .next-menu-button { display: inline-flex; }
  body.mac-theme .next-shell .next-topbar .next-topbar-search > span:last-child { display: none; }
  body.mac-theme .next-shell .next-topbar .next-topbar-search { width: 34px; padding: 5px; }
  body.mac-theme .next-shell .next-location > span { display: none; }
  body.mac-theme .next-shell .next-board-heading { align-items: start; }
  body.mac-theme .next-shell .next-workspace > .app-work-grid { margin: 0 16px 16px; }
}
@media (max-width: 600px) {
  body.mac-theme .next-shell .next-topbar { padding: 0 12px; }
  body.mac-theme .next-shell .next-topbar-start,
  body.mac-theme .next-shell .next-topbar-actions { gap: 7px; }
  body.mac-theme .next-shell .next-topbar .acct-header-account { display: grid; place-items: center; flex: 0 0 34px; width: 34px; max-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 8px; }
  body.mac-theme .next-shell .next-topbar .acct-header-account .acct-person,
  body.mac-theme .next-shell .next-topbar .acct-header-account .acct-account-more { display: none; }
  body.mac-theme .next-shell .next-topbar .next-topbar-new { width: 34px; padding: 6px; }
  body.mac-theme .next-shell .next-topbar .next-topbar-new > span { display: none; }
  body.mac-theme .next-shell .next-hero-orbit { right: -18%; top: -15%; width: 76%; opacity: .6; }
  body.mac-theme .next-shell .next-chart-key { display: none; }
  body.mac-theme .next-shell .next-chart-bars { gap: 5px; height: 120px; }
  body.mac-theme .next-shell .next-chart-day strong { font-size: 9px; }
  body.mac-theme .next-shell .next-queue-time { display: none; }
  body.mac-theme .next-shell .next-board-heading { flex-direction: column; gap: 13px; }
  body.mac-theme .next-shell .next-board-create { align-self: flex-start; }
  body.mac-theme .next-shell .next-board-search { order: 3; flex-basis: 100%; max-width: none; width: 100%; }
  body.mac-theme .next-shell .next-board-total { margin-left: auto; }
  body.mac-theme .next-shell .next-completed { padding: 18px 14px; }
  body.mac-theme .next-shell .next-completed-card { flex-wrap: wrap; padding: 14px; gap: 10px; }
  body.mac-theme .next-shell .next-completed-copy { flex: 1 1 calc(100% - 50px); }
  body.mac-theme .next-shell .next-completed-actions { width: 100%; justify-content: flex-end; }
  body.mac-theme .next-shell .next-detail-header { margin: 14px 12px 0; padding: 16px; }
  body.mac-theme .next-shell .next-detail-header h1 { font-size: 20px; }
  body.mac-theme .next-shell .next-detail-header p { display: none; }
  body.mac-theme .next-shell .next-detail-top .app-work-actions { width: 100%; }
  body.mac-theme .next-shell .next-detail-flow { display: flex; gap: 5px; overflow-x: auto; margin-top: 12px; padding-top: 5px; }
  body.mac-theme .next-shell .next-detail-flow > .next-flow-node { min-width: 118px; min-height: 44px; margin-top: 5px; padding: 6px; }
  body.mac-theme .next-shell .next-workspace > .app-work-grid { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  body.mac-theme #main.acct-login-page { padding: 23px 15px; }
  body.mac-theme #main.acct-login-page::after { left: 19px; bottom: 15px; font-size: 8px; }
  body.mac-theme .acct-login-card { padding: 28px 23px; border-radius: 16px; }
}
