/* Source style block 1 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #171613;
  --sidebar: #12110f;
  --panel: #f5ecdd;
  --panel-soft: #fbf5e9;
  --paper: #efe4d2;
  --ink: #29241e;
  --cream: #efe2c6;
  --muted: #827768;
  --dark-muted: #aaa08f;
  --line: #d5c5ab;
  --dark-line: #3a352e;
  --accent: #c99d54;
  --yellow: #f0cf67;
  --pink: #efaeab;
  --green: #b6d77d;
  --blue: #9ccbe7;
  --purple: #cdb5de;
  --red: #b96e69;
  --success: #68885d;
  --shadow: 0 18px 40px rgba(31, 24, 15, .11);
  /* Brainstorm / canvas chrome */
  --chrome: #171512;
  --chrome-2: #1e1b17;
  --canvas: #24211d;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

body.light {
  --bg: #e5dbcb;
  --sidebar: #201c17;
  --panel: #f7efe3;
  --panel-soft: #fffaf2;
  --paper: #eee3d1;
  --ink: #2d281f;
  --cream: #f4ead9;
  --muted: #786e63;
  --dark-muted: #a39a8c;
  --line: #d3c2a7;
  --dark-line: #494138;
  --accent: #8b6c45;
  --shadow: 0 18px 45px rgba(81, 57, 32, .12);
  --chrome: #f0e7d8;
  --chrome-2: #f7efe3;
  --canvas: #e8ddcb;
}

button,
input,
textarea,
select {
  font: inherit
}

button {
  cursor: pointer
}

input,
textarea,
select {
  outline: none
}

.hidden {
  display: none !important
}

.app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100vh;
  min-height: 640px;
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid #292621;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  color: #eee5d6;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 24px;
  border-bottom: 1px solid #292621;
}

.brand-mark {
  font-family: Georgia, serif;
  font-size: 32px;
  line-height: .8;
  transform: rotate(-10deg);
}

.brand-title {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: .08em
}

.brand-sub {
  font-size: 10px;
  letter-spacing: .14em;
  color: #a59d91;
  margin-top: 2px
}

.nav {
  padding-top: 18px;
  display: grid;
  gap: 5px
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #bdb5a8;
  text-align: left;
  transition: .18s ease;
}

.nav-btn:hover {
  background: #1d1b17;
  color: #eee5d6;
  transform: translateX(1px)
}

.nav-btn.active {
  background: #28241d;
  border-color: #383129;
  color: #f2e7d5
}

.nav-icon {
  width: 19px;
  text-align: center;
  font-size: 16px
}

.sidebar-quote {
  margin: 24px 10px 14px;
  padding: 18px 15px;
  background: #1c1a16;
  border: 1px solid #2f2a24;
  border-radius: 12px;
  position: relative;
}

.sidebar-quote .quote-mark {
  position: absolute;
  left: 12px;
  top: 9px;
  color: #bda987;
  font-size: 27px
}

.sidebar-quote p {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.55;
  color: #ece2d4;
  padding-top: 8px
}

.sidebar-quote small {
  display: block;
  margin-top: 13px;
  color: #9c9181;
  font-size: 10px;
  letter-spacing: .05em
}

.profile {
  margin-top: auto;
  padding: 13px 10px 3px;
  border-top: 1px solid #292621;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3a3328;
  color: #f0e4d3;
  font-family: Georgia, serif;
}

.profile strong {
  font-size: 13px
}

.profile small {
  display: block;
  color: #8f877b;
  font-size: 10px;
  margin-top: 2px
}

.main {
  min-width: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 0, rgba(234, 213, 171, .04), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(200, 157, 84, .04), transparent 22%),
    #1a1916;
}

body.light .main {
  background: #eee7dc
}

/* ---------- LIGHT MODE POLISH ---------- */
body.light .sidebar {
  background: #f7f1e7;
  border-right-color: #d8cbbb;
  color: #2d281f
}

body.light .brand {
  border-bottom-color: #ddd0c0
}

body.light .brand-sub,
body.light .profile small {
  color: #81766a
}

body.light .nav-btn {
  color: #6f6559
}

body.light .nav-btn:hover {
  background: #eee6da;
  color: #2d281f
}

body.light .nav-btn.active {
  background: #e5dbcc;
  border-color: #cdbca6;
  color: #2d281f
}

body.light .sidebar-quote {
  background: #eee6da;
  border-color: #d8cab9
}

body.light .sidebar-quote p {
  color: #463d32
}

body.light .sidebar-quote small {
  color: #83776a
}

body.light .profile {
  border-top-color: #ddd0c0
}

body.light .avatar {
  background: #ded1bf;
  color: #433a2f
}

body.light .topbar {
  background: rgba(238, 231, 220, .92);
  border-bottom-color: #d8cbbb
}

body.light .breadcrumb {
  color: #756b5f
}

body.light .clock {
  color: #3d352c
}

body.light .top-btn {
  border-color: #cfc0ad;
  color: #574c40
}

body.light h1 {
  color: #2d281f
}

body.light .quote-hero .text {
  color: #3a3026
}

body.light .quote-hero .source {
  color: #766b5e
}

body.light .dark-card {
  background: linear-gradient(145deg, #f8f1e7, #eee5d7);
  border-color: #d8cbbb
}

body.light .dark-card h3,
body.light .dark-card p {
  color: #41372d
}

body.light .stat {
  background: #f8f2e8;
  border-color: #d8cbbb
}

body.light .stat span {
  color: #756b60
}

body.light .stat strong {
  color: #2d281f
}

body.light .stat small {
  color: #807569
}

body.light .btn-dark {
  background: #f4ede3;
  border-color: #cdbdac;
  color: #40372d
}

body.light .btn-accent {
  background: #8b6c45;
  border-color: #8b6c45;
  color: #fffaf2
}

body.light .task-card {
  background: #f8f1e6;
  border-color: #d7c8b5
}

body.light .task-card:hover {
  border-color: #b9a589
}

body.light .task-title {
  color: #2d281f
}

body.light .task-desc {
  color: #766b60
}

body.light .badge {
  border-color: #d2c3b0;
  color: #6f6458
}

body.light .task-action {
  border-color: #cdbda9;
  color: #53483c
}

body.light .task-thumb {
  border-color: #cdbda9
}

body.light .task-empty {
  color: #7c7064
}

body.light .board-tool.active {
  background: #4a3d2f;
  color: #fff8ef;
  border-color: #4a3d2f
}

body.light .board-floating {
  border-color: #cdbda9;
  background: #f8f1e7;
  color: #4a4035
}

body.light .proof-card {
  background: #f8f1e7;
  border-color: #d7c8b5
}

body.light .proof-card img {
  background: #e5ded3
}

body.light .proof-card h3 {
  color: #3b3228
}

body.light .proof-card p {
  color: #7b7064
}

body.light .day-head {
  color: #776c60
}

body.light .day-event {
  background: #e4d3b6;
  color: #4b4033
}

body.light .theme-choice.active {
  background: #4a3d2f;
  color: #fff8ef;
  border-color: #4a3d2f
}

body.light .mobile-nav {
  background: #f8f1e7;
  border-color: #d4c5b3;
  box-shadow: 0 15px 35px rgba(74, 57, 38, .16)
}

body.light .mobile-nav button {
  color: #74695e
}

body.light .mobile-nav button.active {
  background: #e5dbcc;
  color: #3f352b
}

body.light .command-card {
  background: #f8f1e7;
  border-color: #d5c6b3;
  box-shadow: 0 30px 80px rgba(74, 57, 38, .22)
}

body.light .command-search {
  border-bottom-color: #d5c6b3
}

body.light .command-search span {
  color: #74695e
}

body.light .command-search input {
  color: #302920
}

body.light .command-search kbd {
  border-color: #cdbda9;
  color: #7b7064
}

body.light .command-item {
  color: #40362c
}

body.light .command-item:hover,
body.light .command-item.active {
  background: #eee5d8
}

body.light .command-item small {
  color: #7b7064
}

body.light .focus-card {
  background: #f8f1e7;
  border-color: #d5c6b3;
  box-shadow: 0 30px 80px rgba(74, 57, 38, .22)
}

body.light .focus-card h2 {
  color: #332a22
}

body.light .focus-description {
  color: #766b60
}

body.light .v2-card-head>strong,
body.light .v2-big-stat {
  color: #302820
}

body.light .v2-progress-track {
  background: #e5ded4;
  border-color: #cdbda9
}

body.light .v2-progress-meta,
body.light .v2-bar-col span,
body.light .proof-extra-v2 {
  color: #7c7065
}

body.light .v2-focus-btn {
  background: #4a3d2f;
  border-color: #4a3d2f;
  color: #fff8ef
}

body.light .v2-badge {
  border-color: #d2c3b0;
  color: #6f6458
}

body.light .achievement {
  background: #eee5d8;
  border-color: #d2c3b0
}

body.light .task-search-wrap {
  background: #fffaf2;
  border-color: #d0c0ad
}

body.light .task-search-wrap span {
  color: #81766a
}

body.light .task-search-wrap input {
  color: #3a3128
}

body.light .task-select-v2 {
  background: #fffaf2;
  border-color: #d0c0ad;
  color: #4a4035
}

body.light .subtask-list-v2 {
  background: #f1e9de;
  border-color: #d4c5b2
}

body.light .subtask-v2 {
  color: #72675b
}

body.light .note-editor-body textarea {
  background: #fffaf2;
  color: #2f2922
}

body.light .note-preview-v2 {
  background: #f4ede3;
  color: #40362c
}

body.light .note-preview-v2 code {
  background: #e8ddcc
}

body.light .danger-note-btn {
  color: #a34f49 !important;
  border-color: #d6b5af !important;
  background: #fff3f1 !important
}

.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--dark-line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.breadcrumb {
  color: #a69b8c;
  font-size: 12px;
  letter-spacing: .04em
}

.clock {
  font-size: 19px;
  letter-spacing: .09em;
  font-variant-numeric: tabular-nums;
  color: #e8dfd0
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.top-btn {
  border: 1px solid #3a352e;
  background: transparent;
  color: #d8d0c4;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 11px
}

.content {
  padding: 28px;
  max-width: 1320px;
  margin: auto
}

.view {
  display: none;
  animation: viewIn .35s ease both
}

.view.active {
  display: block
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

h1 {
  color: #f0e6d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -.045em;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink)
}

h3 {
  font-size: 17px;
  color: var(--ink)
}

.muted {
  color: var(--muted)
}

.kicker {
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 800;
  color: var(--muted)
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px
}

.hero-note {
  color: #aa9f90;
  margin-top: 8px;
  font-size: 13px
}

.quote-hero {
  margin: 23px 0 22px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 850px
}

.quote-hero .mark {
  font: 34px/1 Georgia, serif;
  color: #c2a77a
}

.quote-hero .text {
  font: 800 clamp(18px, 2vw, 24px)/1.35 Georgia, serif;
  color: #f0e6d6
}

.quote-hero .source {
  font-size: 10px;
  color: #9f9586;
  letter-spacing: .11em;
  margin-top: 7px;
  text-transform: uppercase
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.dark-card {
  background: linear-gradient(145deg, #25211c, #1f1d19);
  border: 1px solid #353028;
  border-radius: 16px;
  padding: 17px;
}

.dark-card h3,
.dark-card p {
  color: #eee6d9
}

.dark-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #aca297
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 15px
}

.stat {
  border: 1px solid #353028;
  background: #211f1b;
  border-radius: 13px;
  padding: 14px 15px
}

.stat span {
  display: block;
  color: #978d80;
  font-size: 9px;
  letter-spacing: .13em;
  font-weight: 800
}

.stat strong {
  display: block;
  color: #eee5d6;
  font-size: 24px;
  margin-top: 3px
}

.stat small {
  color: #8e877c;
  font-size: 10px
}

.panel-light {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-pad {
  padding: 18px
}

.panel-head {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.btn-light,
.btn-dark {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 11px
}

.btn-light {
  background: var(--panel-soft);
  color: var(--ink)
}

.btn-dark {
  background: #25211c;
  border-color: #3a352e;
  color: #f1e7d8
}

.btn-accent {
  background: #1d1b17;
  border: 1px solid #1d1b17;
  color: #f2e8d7;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 11px
}

.task-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto
}

.task-card {
  background: #211f1a;
  border: 1px solid #383229;
  border-radius: 13px;
  padding: 14px;
  transition: .18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: #50463b
}

.task-card.completed {
  opacity: .8
}

.task-card.completed .task-title {
  text-decoration: line-through
}

.task-title {
  color: #f0e6d6;
  font-size: 17px;
  font-weight: 750
}

.task-desc {
  color: #a69d91;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px
}

.badge {
  padding: 5px 8px;
  border: 1px solid #3b352e;
  border-radius: 999px;
  font-size: 9px;
  color: #a79d8e
}

.badge.high {
  color: #d59088
}

.badge.medium {
  color: #d5bb7f
}

.badge.done {
  color: #98ba8e
}

.badge.overdue {
  color: #df9289
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px
}

.task-action {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #3c362f;
  background: transparent;
  color: #e4dbce;
  font-size: 10px
}

.task-action.proof {
  color: #99b98f
}

.task-action.danger {
  color: #d28d85
}

.task-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #3f382f;
  cursor: pointer
}

.task-empty {
  padding: 40px;
  text-align: center;
  color: #948b80;
  font-size: 12px
}

.sticky-board {
  position: relative;
  min-height: 640px;
  background:
    radial-gradient(circle at 50% 50%, rgba(190, 157, 99, .05), transparent 40%),
    #f6eddc;
  overflow: hidden;
}

.sticky-board:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #d4c8b2 1px, transparent 1px);
  background-size: 23px 23px;
  opacity: .55;
}

.sticky-note {
  position: absolute;
  width: 220px;
  min-height: 155px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 13px 22px rgba(44, 33, 20, .14);
  color: #2e2a24;
  transform: rotate(var(--rot));
  cursor: grab;
  user-select: none;
  transition: box-shadow .18s ease, transform .18s ease;
  z-index: 3;
}

.sticky-note:hover {
  box-shadow: 0 17px 28px rgba(44, 33, 20, .2);
  transform: rotate(var(--rot)) translateY(-2px)
}

.sticky-note:active {
  cursor: grabbing
}

.sticky-note .pin {
  width: 30px;
  height: 7px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(80, 68, 55, .28);
}

.sticky-note h3 {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 18px;
  text-decoration: underline;
  margin-bottom: 11px
}

.sticky-note p,
.sticky-note li {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 13px;
  line-height: 1.6
}

.sticky-note ul {
  padding-left: 18px
}

.note-yellow {
  background: var(--yellow)
}

.note-pink {
  background: var(--pink)
}

.note-green {
  background: var(--green)
}

.note-blue {
  background: var(--blue)
}

.note-purple {
  background: var(--purple)
}

.note-actions {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  opacity: .35;
  transition: .18s
}

.sticky-note:hover .note-actions {
  opacity: 1
}

.note-actions button {
  border: 0;
  background: rgba(255, 255, 255, .25);
  width: 25px;
  height: 25px;
  border-radius: 7px
}

.connector-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none
}

.brain-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft)
}

.board-tool {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px
}

.board-tool.active {
  background: #26221d;
  color: #fff;
  border-color: #26221d
}

.board-wrap {
  position: relative
}

.board-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  gap: 6px
}

.board-floating {
  border: 1px solid #332d26;
  background: #1d1b17;
  color: #eee6d7;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16)
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.masonry {
  align-items: start
}

.proof-card {
  background: #211f1b;
  border: 1px solid #373128;
  border-radius: 14px;
  padding: 12px
}

.proof-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 9px;
  background: #151412
}

.proof-card h3 {
  color: #f0e6d6;
  margin-top: 9px;
  font-size: 14px
}

.proof-card p {
  color: #9e9589;
  font-size: 10px;
  margin-top: 4px
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px
}

.day-head {
  text-align: center;
  color: #9c9286;
  font-size: 9px;
  letter-spacing: .11em;
  padding: 7px
}

.day {
  min-height: 85px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
  color: var(--ink);
  font-size: 11px
}

.day.today {
  box-shadow: inset 0 0 0 2px var(--accent)
}

.day-num {
  font-weight: 800
}

.day-event {
  margin-top: 6px;
  padding: 4px 5px;
  border-radius: 5px;
  background: #e6d4b1;
  color: #413729;
  font-size: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.setting {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px
}

.setting h3 {
  margin-bottom: 6px
}

.setting p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5
}

.theme-row {
  display: flex;
  gap: 7px;
  margin-top: 12px
}

.theme-choice {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 11px
}

.theme-choice.active {
  background: #27221d;
  color: #fff;
  border-color: #27221d
}

.mobile-nav {
  display: none
}

@media(max-width:1050px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr)
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  body {
    overflow: auto
  }

  .app {
    display: block;
    height: auto
  }

  .sidebar {
    display: none
  }

  .main {
    min-height: 100vh;
    overflow: visible
  }

  .topbar {
    padding: 0 14px
  }

  .content {
    padding: 18px 14px 90px
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #1a1814;
    border: 1px solid #383229;
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .25)
  }

  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #aaa196;
    padding: 8px 2px;
    border-radius: 9px;
    font-size: 9px
  }

  .mobile-nav button.active {
    background: #2b271f;
    color: #f4ead9
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .proof-grid {
    grid-template-columns: 1fr
  }

  .settings-grid {
    grid-template-columns: 1fr
  }

  .hero-row {
    align-items: flex-start;
    flex-direction: column
  }

  .sticky-board {
    min-height: 760px
  }
}

/* ---------- PROFESSIONAL POLISH ---------- */
.sidebar-toggle {
  display: none;
  margin-right: 10px;
}

.app.sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.app.sidebar-collapsed .sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

.app.sidebar-collapsed .brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.app.sidebar-collapsed .brand>div:not(.brand-mark),
.app.sidebar-collapsed .nav-btn span:not(.nav-icon),
.app.sidebar-collapsed .sidebar-quote,
.app.sidebar-collapsed .profile>div:not(.avatar) {
  display: none;
}

.app.sidebar-collapsed .nav-btn {
  justify-content: center;
}

.nav-btn {
  position: relative;
}

.nav-btn.active:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(201, 157, 84, .28);
}

.command-card {
  width: min(700px, 100%);
  border: 1px solid #3c362e;
  border-radius: 16px;
  background: #211f1b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.command-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #3a342c;
}

.command-search span {
  color: #a79d8f;
  font-size: 14px
}

.command-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: #f2eadb;
  font-size: 15px;
}

.command-search kbd {
  border: 1px solid #463f35;
  border-radius: 6px;
  padding: 3px 6px;
  color: #8f867b;
  font-size: 10px;
}

.command-results {
  padding: 8px;
  max-height: 440px;
  overflow: auto
}

.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e8dfd1;
  text-align: left;
}

.command-item:hover,
.command-item.active {
  background: #2a251e
}

.command-item small {
  color: #8f877c;
  font-size: 10px
}

.focus-card {
  width: min(680px, 100%);
  border: 1px solid #3e372f;
  border-radius: 20px;
  background: #1e1b17;
  padding: 34px;
  text-align: center;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .4);
}

.focus-card h2 {
  color: #f1e7d7;
  font-size: 30px;
  margin-top: 6px
}

.focus-description {
  color: #a69b8d;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px
}

.focus-timer {
  margin: 24px 0;
  color: #f0e5d3;
  font-size: clamp(66px, 11vw, 110px);
  font-family: Georgia, "Times New Roman", serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}

.focus-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.focus-actions .btn-light {
  background: #f5ecde;
  color: #322b23
}

.sticky-color-menu {
  position: fixed;
  z-index: 140;
  display: flex;
  gap: 5px;
  padding: 6px;
  border: 1px solid #cdbca2;
  border-radius: 10px;
  background: #fbf4e7;
  box-shadow: 0 14px 30px rgba(50, 38, 22, .18);
}

.sticky-color-menu button {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  font-size: 0;
}

.sticky-color-menu button[data-note-color="note-yellow"] {
  background: #f0cf67
}

.sticky-color-menu button[data-note-color="note-blue"] {
  background: #9ccbe7
}

.sticky-color-menu button[data-note-color="note-green"] {
  background: #b6d77d
}

.sticky-color-menu button[data-note-color="note-pink"] {
  background: #efaeab
}

.sticky-color-menu button[data-note-color="note-purple"] {
  background: #cdb5de
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 30px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #413a31;
  border-radius: 11px;
  background: #1f1c18;
  color: #f0e7db;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
  animation: toastIn .25s ease both;
  font-size: 11px;
}

.toast.success {
  border-color: #4f6849
}

.toast.error {
  border-color: #76504b
}

.toast .close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #aaa096
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:760px) {
  .sidebar-toggle {
    display: inline-block
  }

  .topbar {
    gap: 8px
  }
}

.brain-ref-topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line)
}

.brain-ref-header-title {
  display: flex;
  align-items: center;
  gap: 13px
}

.brain-ref-bulb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px
}

.brain-ref-header-title h1 {
  margin: 0;
  font: 700 24px/1 Georgia, serif;
  letter-spacing: .01em;
  color: var(--ink)
}

.brain-ref-header-title p {
  margin: 4px 0 0;
  color: #8b7e6e;
  font-size: 12px
}

.brain-ref-top-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.brain-ref-chrome-btn {
  border: 1px solid var(--line);
  background: var(--chrome-2);
  color: #544b3e;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 11px
}

.brain-ref-chrome-btn.dark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff7eb
}

.brain-ref-chrome-btn:hover {
  transform: translateY(-1px);
  border-color: #8f795d;
  background: #28231d
}

/* Coffee/dark brainstorm contrast polish */
.brain-ref-topbar,
.brain-ref-toolbar,
.brain-draw-toolbar {
  color: #e5d8c5
}

.brain-ref-header-title h1 {
  color: #eee2cf !important;
  text-shadow: 0 1px 14px rgba(201, 157, 84, .08)
}

.brain-ref-header-title p {
  color: #a99a86 !important
}

.brain-ref-bulb {
  filter: drop-shadow(0 2px 8px rgba(242, 198, 97, .16))
}

.brain-ref-chrome-btn {
  color: #d9ccb9;
  background: #201d19;
  border-color: #675946;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14)
}

.brain-ref-chrome-btn.dark {
  color: #201a13
}

.brain-ref-toolbar {
  min-height: 60px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 25px;
  background: var(--chrome-2);
  border-bottom: 1px solid var(--line)
}

.brain-ref-tool {
  height: 37px;
  padding: 0 12px;
  border: 1px solid #665743;
  background: #201d19;
  color: #d9ccb9;
  border-radius: 9px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease
}

.brain-ref-tool:hover {
  background: #2a251f;
  border-color: #8d7658;
  color: #fff3df;
  transform: translateY(-1px)
}

.brain-ref-tool.active {
  background: #c99d54;
  border-color: #c99d54;
  color: #211a12;
  box-shadow: 0 6px 18px rgba(201, 157, 84, .16)
}

.brain-ref-tool:disabled {
  opacity: .4;
  cursor: not-allowed
}

.brain-ref-divider {
  width: 1px;
  height: 28px;
  background: #5c4d3d;
  margin: 0 5px
}

.brain-ref-workspace {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--canvas);
  overflow: hidden
}

.brain-ref-canvas-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #665845 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #24211d;
  opacity: .95
}

.brain-ref-board {
  position: absolute;
  inset: 0;
  overflow: visible
}

.brain-ref-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none
}

#stickyLayer {
  position: absolute;
  inset: 0;
  z-index: 3
}

#drawLayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  transform: none;
  transform-origin: 0 0
}

#drawLayer.brain-draw-active {
  pointer-events: auto;
  cursor: crosshair
}

#drawLayer.brain-draw-active.brain-draw-erase {
  cursor: cell
}

.brain-draw-toolbar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 25px;
  flex-wrap: wrap;
  background: var(--chrome-2);
  border-bottom: 1px solid var(--line)
}

.brain-draw-toolbar.show {
  display: flex
}

.brain-draw-toolbar .draw-label {
  font-size: 10px;
  color: #8b8071;
  margin-right: -2px
}

.draw-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .15);
  cursor: pointer;
  padding: 0
}

.draw-swatch.active {
  outline: 2px solid #24211d;
  outline-offset: 2px
}

.draw-width-btn {
  width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center
}

.draw-width-btn.active {
  background: #24211d;
  border-color: #24211d
}

.draw-width-btn span {
  display: block;
  border-radius: 4px;
  background: #4f463b
}

.draw-width-btn.active span {
  background: #fff
}

.brain-ref-sticky {
  position: absolute;
  width: 220px;
  min-height: 160px;
  padding: 22px 18px 20px;
  color: #342e25;
  border: 1px solid rgba(70, 55, 37, .1);
  box-shadow: var(--shadow);
  user-select: none;
  cursor: grab;
  transform: rotate(var(--rot));
  transition: box-shadow .18s ease, transform .18s ease
}

.brain-ref-sticky:hover {
  box-shadow: 0 22px 38px rgba(20, 14, 8, .28);
  transform: rotate(var(--rot)) translateY(-8px) scale(1.012);
  z-index: 20
}

.brain-ref-sticky:active {
  cursor: grabbing
}

.brain-ref-sticky.selected {
  outline: 2px solid rgba(73, 61, 46, .35);
  outline-offset: 4px
}

.brain-ref-sticky.brain-ref-yellow {
  background: var(--yellow)
}

.brain-ref-sticky.brain-ref-pink {
  background: var(--pink)
}

.brain-ref-sticky.brain-ref-green {
  background: var(--green)
}

.brain-ref-sticky.brain-ref-blue {
  background: var(--blue)
}

.brain-ref-sticky.brain-ref-purple {
  background: var(--purple)
}

.brain-ref-pin {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) rotate(-2deg);
  width: 34px;
  height: 8px;
  border-radius: 5px;
  background: rgba(74, 65, 54, .28)
}

.brain-ref-sticky h3 {
  margin: 0 0 10px;
  font: 700 20px/1.1 "Comic Sans MS", "Segoe Print", cursive;
  color: #312a22;
  text-decoration: underline
}

.brain-ref-sticky p,
.brain-ref-sticky li {
  margin: 0;
  font: 13px/1.65 "Comic Sans MS", "Segoe Print", cursive;
  color: #3f372d
}

.brain-ref-sticky ul {
  margin: 0;
  padding-left: 18px
}

.brain-ref-sticky-actions {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: flex;
  gap: 4px;
  opacity: .18;
  transition: .18s
}

.brain-ref-sticky:hover .brain-ref-sticky-actions {
  opacity: 1
}

.brain-ref-sticky-actions button {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .28);
  color: #40362b
}

.brain-ref-link-point {
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #5b5146;
  background: var(--canvas);
  border-radius: 50%;
  opacity: .0
}

.brain-ref-sticky:hover .brain-ref-link-point {
  opacity: 1
}

.brain-ref-board-menu {
  position: absolute;
  left: 50%;
  bottom: 14px;
  right: auto;
  transform: translateX(-50%);
  z-index: 12;
  width: 196px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(31, 26, 19, .20)
}

.brain-ref-board-menu button {
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 14px;
  border: 0;
  background: #171612;
  color: #f2e8d9;
  font-size: 11px;
  border-bottom: 1px solid #312d26
}

.brain-ref-board-menu button:hover {
  background: #24211b
}

.brain-ref-board-menu button:last-child {
  border-bottom: 0
}

.brain-ref-tip {
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: auto;
  transform: none;
  z-index: 7;
  color: #6f665b;
  background: rgba(250, 245, 236, .92);
  border: 1px solid #d9c9af;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(53, 41, 22, .08);
  pointer-events: none
}

.brain-ref-zoom {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d7c7ad;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(250, 245, 236, .94);
  box-shadow: 0 8px 20px rgba(53, 41, 22, .09)
}

.brain-ref-zoom button,
.brain-ref-zoom span {
  height: 36px;
  min-width: 36px;
  border: 0;
  background: transparent;
  color: #4d4337;
  font-size: 12px
}

.brain-ref-zoom span {
  display: grid;
  place-items: center;
  border-left: 1px solid #e0d1ba;
  border-right: 1px solid #e0d1ba;
  min-width: 58px
}

.brain-ref-minimap {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 8;
  width: 165px;
  height: 108px;
  background: rgba(250, 244, 233, .9);
  border: 1px solid #cbbba3;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(53, 41, 22, .1);
  overflow: hidden
}

.brain-ref-minimap-inner {
  position: absolute;
  inset: 8px;
  border: 1px solid #b9aa95
}

.brain-ref-mini-dot {
  position: absolute;
  width: 28px;
  height: 17px;
  border: 1px solid rgba(60, 50, 40, .2)
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  min-width: 230px;
  max-width: 330px;
  padding: 11px 12px;
  border: 1px solid #3b352d;
  border-radius: 10px;
  background: #1c1a17;
  color: #f1e9dc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
  font-size: 11px;
  animation: toastIn .22s ease both
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .57);
  backdrop-filter: blur(7px);
  padding: 16px
}

.modal-card {
  width: min(560px, 100%);
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
  color: var(--ink)
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start
}

.modal-card h2 {
  margin: 3px 0 0;
  font: 600 32px/1 Georgia, serif
}

.modal-card label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #756b5e;
  font-size: 13px
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3c1a7;
  border-radius: 10px;
  background: #fff9ef;
  color: #2f2922;
  font-size: 15px;
  outline: none
}

.modal-card textarea {
  resize: vertical
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 18px
}

.modal-actions button {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px
}

.modal-primary {
  background: #25211d;
  border-color: #25211d !important;
  color: white
}

.modal-secondary {
  background: #fbf5e9;
  color: #453c31
}

.color-menu {
  position: fixed;
  z-index: 320;
  display: none;
  gap: 5px;
  padding: 6px;
  background: #fbf6ec;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(40, 31, 21, .2)
}

.color-menu button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 6px;
  font-size: 0
}

.color-menu .brain-ref-yellow {
  background: var(--yellow)
}

.color-menu .brain-ref-pink {
  background: var(--pink)
}

.color-menu .brain-ref-green {
  background: var(--green)
}

.color-menu .brain-ref-blue {
  background: var(--blue)
}

.color-menu .brain-ref-purple {
  background: var(--purple)
}

.brain-ref-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--chrome);
  box-shadow: var(--shadow);
}

.brain-ref-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column
}

.brain-ref-shell:fullscreen .brain-ref-workspace {
  flex: 1;
  height: auto;
  min-height: 0
}

.brain-ref-shell:fullscreen .brain-ref-board {
  overflow: visible
}

.brain-ref-shell:fullscreen .brain-ref-tip {
  display: none
}

.brain-ref-workspace {
  height: calc(100vh - 310px);
  min-height: 560px;
}

.brain-ref-topbar {
  position: relative !important;
  height: 78px !important;
}

.brain-ref-tool:disabled {
  opacity: .4;
  cursor: not-allowed
}

.brain-ref-sticky {
  z-index: 3
}

.brain-ref-text-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .57);
  backdrop-filter: blur(7px);
  padding: 16px
}

.brain-ref-text-card {
  width: min(560px, 100%);
  background: var(--chrome);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
  color: var(--ink)
}

.brain-ref-text-card h2 {
  margin: 3px 0 0;
  font: 600 32px/1 Georgia, serif
}

.brain-ref-text-card textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3c1a7;
  border-radius: 10px;
  background: #fff9ef;
  color: #2f2922;
  font-size: 15px;
  outline: none;
  resize: vertical;
  margin-top: 15px
}

.brain-ref-text-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 18px
}

.brain-ref-text-actions button {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px
}

.brain-ref-text-primary {
  background: #25211d;
  border-color: #25211d !important;
  color: white
}

.brain-ref-text-secondary {
  background: #fbf5e9;
  color: #453c31
}

.brain-ref-color-menu {
  position: fixed;
  z-index: 320;
  display: none;
  gap: 5px;
  padding: 6px;
  background: #fbf6ec;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(40, 31, 21, .2)
}

.brain-ref-color-menu button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 6px;
  font-size: 0
}

.brain-ref-color-menu .brain-ref-yellow {
  background: var(--yellow)
}

.brain-ref-color-menu .brain-ref-pink {
  background: var(--pink)
}

.brain-ref-color-menu .brain-ref-green {
  background: var(--green)
}

.brain-ref-color-menu .brain-ref-blue {
  background: var(--blue)
}

.brain-ref-color-menu .brain-ref-purple {
  background: var(--purple)
}

@media(max-width:760px) {
  .brain-ref-workspace {
    height: calc(100vh - 250px);
    min-height: 620px
  }

  .brain-ref-sticky {
    width: 190px
  }

  .brain-ref-topbar {
    padding: 0 14px !important
  }

  .brain-ref-header-title h1 {
    font-size: 20px
  }

  .brain-ref-header-title p {
    font-size: 10px
  }

  .brain-ref-tip {
    display: none
  }
}


/* ============================================================
   WORKSPACE V2 — PRODUCTIVITY UPGRADE
============================================================ */
.v2-dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin: 14px 0
}

.v2-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px
}

.v2-card-head h3 {
  margin-top: 3px
}

.v2-card-head>strong {
  font: 600 30px Georgia, serif;
  color: #f1e6d6
}

.v2-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #151412;
  border: 1px solid #3b352d;
  overflow: hidden;
  margin: 16px 0 9px
}

.v2-progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width .4s ease
}

.v2-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9d9386;
  font-size: 10px
}

.v2-big-stat {
  font: 600 28px Georgia, serif;
  color: #f0e6d6
}

.v2-focus-btn {
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid #4a4034;
  border-radius: 10px;
  background: #29241d;
  color: #f4eadb;
  font-size: 11px
}

.v2-focus-btn:hover {
  transform: translateY(-1px);
  border-color: #655646
}

.v2-chart-card {
  min-height: 175px
}

.v2-analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 12px
}

.v2-analytics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #3a342d;
  border-radius: 9px;
  background: #1b1916;
  color: #cfc4b4;
  font-size: 10px
}

.v2-analytics-row strong {
  color: #f0e6d6;
  font-size: 12px
}

.v2-attention {
  display: grid;
  gap: 8px;
  margin-top: 12px
}

.v2-attention-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #211e19;
  border: 1px solid #3a342d;
  color: #cfc4b4;
  font-size: 10px;
  line-height: 1.35
}

.v2-attention-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 3px;
  flex: none;
  background: #8e795b
}

.v2-attention-item.danger .dot {
  background: #b96e69
}

.v2-attention-item.good .dot {
  background: #68885d
}

.v2-bars {
  height: 108px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px
}

.v2-bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px
}

.v2-bar {
  width: 100%;
  max-width: 28px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: #8e795b;
  transition: height .4s ease
}

.v2-bar-col.today .v2-bar {
  background: var(--accent)
}

.v2-bar-col span {
  font-size: 8px;
  color: #8f877b
}

.v2-badge {
  padding: 5px 8px;
  border: 1px solid #40372e;
  border-radius: 999px;
  color: #b9a991;
  font-size: 9px
}

.achievement-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px
}

.achievement {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #2a251f;
  border: 1px solid #3b332a;
  font-size: 20px;
  opacity: .35;
  filter: grayscale(1)
}

.achievement.unlocked {
  opacity: 1;
  filter: none;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .16)
}

.task-toolbar-v2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.task-search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 220px;
  border: 1px solid #3a342d;
  border-radius: 9px;
  padding: 0 10px;
  background: #1b1916
}

.task-search-wrap span {
  color: #8d8377
}

.task-search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #eee5d8;
  padding: 10px 0;
  font-size: 11px
}

.task-select-v2 {
  border: 1px solid #3a342d;
  border-radius: 9px;
  background: #1b1916;
  color: #d9d0c3;
  padding: 9px;
  font-size: 10px
}

.task-category {
  border-color: #4a4035 !important;
  color: #c7b99f !important
}

.subtask-list-v2 {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 9px;
  border-radius: 9px;
  background: #1b1916;
  border: 1px solid #332e27
}

.subtask-v2 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aaa093;
  font-size: 10px
}

.subtask-v2 input {
  accent-color: var(--accent)
}

.subtask-v2.done {
  text-decoration: line-through;
  color: #6f685f
}

.notes-layout-v2 {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px
}

.notes-list-v2 {
  overflow: hidden
}

.note-list-item-v2 {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer
}

.note-list-item-v2:hover,
.note-list-item-v2.active {
  background: var(--panel-soft)
}

.note-list-item-v2 strong {
  display: block;
  color: var(--ink);
  font-size: 12px
}

.note-list-item-v2 small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px
}

.note-editor-v2 {
  min-height: 600px
}

.note-title-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 28px Georgia, serif;
  outline: 0
}

.note-tags-v2 input {
  width: 100%;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  outline: 0;
  font-size: 10px
}

.note-editor-body {
  display: block;
  min-height: 500px
}

.note-editor-body textarea {
  width: 100%;
  min-height: 500px;
  border: 0;
  border-right: 0;
  padding: 18px;
  background: #fffaf2;
  color: var(--ink);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: none;
  outline: 0
}

.note-preview-v2 {
  display: none !important;
  padding: 18px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto
}

.note-preview-v2 h3 {
  font-family: Georgia, serif;
  margin: 0 0 8px
}

.note-preview-v2 code {
  background: #eadfce;
  padding: 2px 4px;
  border-radius: 4px
}

.proof-extra-v2 {
  margin-top: 8px;
  color: #9d9386;
  font-size: 9px
}

@media(max-width:900px) {
  .v2-dashboard-grid {
    grid-template-columns: 1fr
  }

  .notes-layout-v2 {
    grid-template-columns: 1fr
  }

  .note-editor-body {
    grid-template-columns: 1fr
  }

  .note-preview-v2 {
    display: none
  }
}

@media(max-width:760px) {
  .task-toolbar-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .task-search-wrap {
    grid-column: 1/-1;
    min-width: 0
  }

  .task-select-v2 {
    width: 100%
  }

  .v2-progress-meta {
    flex-direction: column
  }

  .note-editor-v2 {
    min-height: 500px
  }

  .note-editor-body textarea {
    min-height: 400px;
    border-right: 0
  }
}

/* Final Add Task modal typography: keep the existing layout, reduce oversized text. */
#taskModal>div {
  width: min(672px, 100%) !important;
  padding: 23px !important;
}

#taskModal>div h2 {
  font-size: 32px !important
}

#taskModal .kicker {
  font-size: 10px !important
}

#taskModal label {
  font-size: 12px !important
}

#taskModal input,
#taskModal textarea,
#taskModal select {
  font-size: 15px !important;
  padding: 13px 14px !important
}

#taskModal .btn-light,
#taskModal .btn-dark {
  font-size: 11px !important;
  padding: 11px 15px !important
}

#taskModal form {
  margin-top: 18px !important
}

#taskModal p {
  font-size: 11px !important
}


.board-picker-v2 {
  width: min(620px, 100%)
}

.board-list-v2 {
  padding: 10px;
  max-height: 60vh;
  overflow: auto
}

.board-item-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-radius: 10px;
  color: #eee5d7
}

.board-item-v2:hover {
  background: #2a251f
}

.board-item-v2 small {
  display: block;
  color: #948a7d;
  margin-top: 3px
}

.board-item-v2 button {
  border: 1px solid #443b31;
  background: #211e19;
  color: #ddd1c1;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 10px
}

.brain-attachment-v2 {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 7;
  max-width: 90px;
  border-radius: 7px;
  border: 1px solid #bcae99;
  background: rgba(250, 245, 236, .92);
  padding: 4px;
  font-size: 8px;
  color: #4c4337
}

.brain-attachment-v2 img {
  display: block;
  width: 70px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 3px
}


@media print {
  body {
    background: #fff !important;
    color: #111 !important;
    overflow: visible !important
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .content>section:not(#view-brainstorm),
  .brain-ref-topbar .brain-ref-top-actions,
  .brain-ref-toolbar,
  .brain-ref-minimap,
  .brain-ref-board-menu,
  .brain-ref-zoom,
  .brain-ref-tip {
    display: none !important
  }

  .main {
    background: #fff !important;
    overflow: visible !important
  }

  .content {
    padding: 0 !important;
    max-width: none !important
  }

  #view-brainstorm {
    display: block !important
  }

  .brain-ref-shell {
    border: 0 !important;
    box-shadow: none !important
  }

  .brain-ref-workspace {
    height: 100vh !important;
    min-height: 0 !important
  }
}

.brain-space-pan #view-brainstorm .brain-ref-workspace {
  cursor: grab
}

.brain-space-pan #view-brainstorm .brain-ref-workspace:active {
  cursor: grabbing
}


/* Source style block 2 */

body:not(.light) #view-calendar>.panel-light {
  border-color: #1b1916;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .14);
}

body:not(.light) #view-calendar .panel-head {
  border-bottom-color: #1b1916;
}

body:not(.light) #view-calendar .panel-pad {
  background: #1a1815;
}


/* Source style block 3 */

/* ---------- Newla COLOR HARMONY: Calendar + Knowledge ---------- */
#view-calendar>.panel-light,
#view-notes .panel-light {
  background: linear-gradient(145deg, var(--panel), var(--panel-soft));
  border-color: var(--line);
}

#view-calendar .panel-head,
#view-notes .panel-head {
  background: color-mix(in srgb, var(--panel-soft) 78%, var(--panel));
}

#view-calendar .calendar-grid {
  background: transparent;
}

#view-calendar .day-head {
  color: var(--muted);
}

#view-calendar .day {
  background: color-mix(in srgb, var(--panel-soft) 82%, var(--paper));
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

#view-calendar .day:hover {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-1px);
}

#view-calendar .day.today {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

#view-calendar .day-event {
  background: color-mix(in srgb, var(--accent) 22%, var(--panel-soft));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

#view-notes .notes-list-v2 {
  background: linear-gradient(180deg, var(--panel-soft), var(--panel));
}

#view-notes .note-list-item-v2 {
  transition: background .18s ease, border-color .18s ease;
}

#view-notes .note-list-item-v2:hover,
#view-notes .note-list-item-v2.active {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-soft));
}

#view-notes .note-editor-v2 {
  background: var(--panel);
}

#view-notes .note-editor-body {
  background: var(--paper);
}

#view-notes .note-editor-body textarea {
  background: var(--panel-soft);
  color: var(--ink);
  border-right-color: var(--line);
}

#view-notes .note-preview-v2 {
  background: color-mix(in srgb, var(--paper) 72%, var(--panel));
  color: var(--ink);
}

#view-notes .note-preview-v2 code {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel-soft));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}

body.light #view-calendar .day {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

body.light #view-notes .note-preview-v2 {
  background: color-mix(in srgb, var(--paper) 64%, var(--panel));
}


/* Source style block 4 */

/* ---------- Newla DARK MODE: Notes + Calendar contrast ---------- */
body:not(.light) #view-calendar>.panel-light,
body:not(.light) #view-notes .panel-light {
  background: linear-gradient(145deg, #211f1b, #1b1916);
  border-color: #3b352d;
  color: #f1e7d7;
}

body:not(.light) #view-calendar .panel-head,
body:not(.light) #view-notes .panel-head {
  background: linear-gradient(180deg, #24211c, #1e1b18);
  border-bottom-color: #3b352d;
}

body:not(.light) #view-calendar .panel-head h2,
body:not(.light) #view-notes .panel-head h2,
body:not(.light) #view-calendar .panel-head strong,
body:not(.light) #view-notes .panel-head strong {
  color: #f3e8d7;
}

body:not(.light) #view-calendar .panel-head p,
body:not(.light) #view-notes .panel-head p,
body:not(.light) #view-calendar .day-head {
  color: #a99d8e;
}

body:not(.light) #view-calendar .calendar-grid {
  background: #1a1815;
}

body:not(.light) #view-calendar .day {
  background: linear-gradient(145deg, #25221d, #211e1a);
  border-color: #413a31;
  color: #efe4d2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body:not(.light) #view-calendar .day:hover {
  background: #2b2721;
  border-color: #8b6c45;
}

body:not(.light) #view-calendar .day.today {
  box-shadow: inset 0 0 0 2px #c99d54, 0 0 0 1px rgba(201, 157, 84, .12);
}

body:not(.light) #view-calendar .day-event {
  background: rgba(201, 157, 84, .16);
  color: #f2e4d1;
  border-color: rgba(201, 157, 84, .32);
}

/* ---------- Newla STEP 7: Calendar + Reminder UX ---------- */
#view-calendar .calendar-nav-btn {
  min-width: 34px
}

#view-calendar .day {
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease
}

#view-calendar .day:hover {
  transform: translateY(-1px)
}

#view-calendar .day-event {
  cursor: pointer
}

.calendar-agenda {
  display: grid;
  gap: 8px
}

.calendar-agenda-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #39332c;
  border-radius: 12px;
  background: #1b1916
}

.calendar-agenda-time {
  font-size: 10px;
  color: #c9bca9;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em
}

.calendar-agenda-title {
  font-size: 12px;
  font-weight: 800;
  color: #f2eadf
}

.calendar-agenda-meta {
  font-size: 9px;
  color: #968d82;
  margin-top: 3px
}

.calendar-agenda-empty {
  padding: 14px;
  border: 1px dashed #3e382f;
  border-radius: 12px;
  color: #91877a;
  font-size: 10px;
  text-align: center
}

body.light .calendar-agenda-item {
  background: #fbf4e7;
  border-color: #d7c6ad
}

body.light .calendar-agenda-title {
  color: #332c24
}

body.light .calendar-agenda-meta,
body.light .calendar-agenda-time {
  color: #756956
}

body:not(.light) #view-calendar .day-event strong,
body:not(.light) #view-calendar .day-event span {
  color: #f2e4d1;
}

body:not(.light) #view-notes .notes-list-v2 {
  background: linear-gradient(180deg, #211f1b, #1d1a17);
}

body:not(.light) #view-notes .note-list-item-v2 {
  border-bottom-color: #3a352e;
  color: #eee3d4;
}

body:not(.light) #view-notes .note-list-item-v2 strong {
  color: #f3e8d7;
}

body:not(.light) #view-notes .note-list-item-v2 small {
  color: #9f9486;
}

body:not(.light) #view-notes .note-list-item-v2:hover,
body:not(.light) #view-notes .note-list-item-v2.active {
  background: rgba(201, 157, 84, .10);
}

body:not(.light) #view-notes .note-editor-v2 {
  background: #211f1b;
  color: #f3e8d7;
}

body:not(.light) #view-notes .note-title-input {
  color: #f3e8d7;
}

body:not(.light) #view-notes .note-tags-v2 input {
  color: #aaa08f;
}

body:not(.light) #view-notes .note-editor-body {
  background: #1b1916;
}

body:not(.light) #view-notes .note-editor-body textarea {
  background: #1f1c19;
  color: #f0e6d7;
  border-right-color: #3a352e;
  caret-color: #c99d54;
}

body:not(.light) #view-notes .note-editor-body textarea::placeholder {
  color: #756b60;
}

body:not(.light) #view-notes .note-preview-v2 {
  background: #24211d;
  color: #eee3d4;
  border-left-color: #3a352e;
}

body:not(.light) #view-notes .note-preview-v2 code {
  background: rgba(201, 157, 84, .14);
  color: #f2ddae;
  border-color: rgba(201, 157, 84, .22);
}

body:not(.light) #view-notes .note-preview-v2 h1,
body:not(.light) #view-notes .note-preview-v2 h2,
body:not(.light) #view-notes .note-preview-v2 h3,
body:not(.light) #view-notes .note-preview-v2 strong {
  color: #f5e9d9;
}

body:not(.light) #view-notes .note-preview-v2 a {
  color: #d7ae65;
}


/* Source style block 5 */

/* Login / landing */
.nexa-auth-shell {
  grid-template-columns: minmax(320px, 440px) minmax(340px, 520px);
  align-items: center;
  gap: 28px;
  max-width: 1040px
}

.nexa-auth-preview {
  position: relative;
  min-height: 470px;
  padding: 22px;
  border: 1px solid #4a4034;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(34, 31, 26, .96), rgba(24, 22, 19, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: nexaPreviewFloat 7s ease-in-out infinite
}

.nexa-auth-preview:before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 157, 84, .11);
  right: -80px;
  top: -70px;
  filter: blur(8px)
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #3a342d
}

.preview-head strong {
  display: block;
  font-family: Georgia, serif;
  color: #f0e3d1;
  font-size: 22px;
  margin-top: 4px
}

.preview-kicker {
  display: block;
  color: #b99864;
  font-size: 8px;
  letter-spacing: .18em;
  font-weight: 800
}

.preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fc27c;
  box-shadow: 0 0 0 5px rgba(143, 194, 124, .08)
}

.preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 16px 0
}

.preview-stat-grid>div {
  padding: 12px;
  border: 1px solid #39332c;
  background: #1e1b17;
  border-radius: 12px
}

.preview-stat-grid span,
.preview-stat-grid small {
  display: block;
  color: #8e857a;
  font-size: 8px
}

.preview-stat-grid b {
  display: block;
  color: #f2e7d7;
  font-size: 20px;
  margin: 5px 0
}

.preview-task-list {
  display: grid;
  gap: 8px
}

.preview-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid #39332c;
  background: #1c1916;
  border-radius: 12px
}

.preview-task>div {
  flex: 1;
  min-width: 0
}

.preview-task b {
  display: block;
  color: #eee4d7;
  font-size: 10px
}

.preview-task small {
  color: #897e72;
  font-size: 8px
}

.preview-task em {
  font-style: normal;
  color: #c79d58;
  font-size: 8px
}

.preview-check {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #7d9d6d;
  color: #172015;
  font-size: 11px;
  font-weight: 800
}

.preview-check.pending {
  background: #2c2924;
  color: #cfb77d
}

.preview-foot {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px
}

.preview-foot span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #39332c;
  border-radius: 999px;
  color: #b5aa9c;
  font-size: 8px
}

.preview-foot svg {
  width: 12px;
  height: 12px
}

.nexa-auth-tabs button.active {
  background: #e2c182;
  color: #2f281f;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(226, 193, 130, .14)
}

.nexa-auth-tabs button:not(.active) {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #c8baa9
}

.nexa-auth-foot {
  opacity: .78
}

@keyframes nexaPreviewFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-5px)
  }
}

/* Dashboard zero states */
.stat small {
  line-height: 1.25;
  min-height: 24px
}

.v2-progress-meta {
  gap: 10px;
  flex-wrap: wrap
}

.achievement-info-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer
}

.achievement-info-trigger svg {
  width: 12px;
  height: 12px
}

.achievement {
  cursor: help
}

/* Tasks */
.task-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.task-filter-bar .filters {
  background: #1b1916;
  border: 1px solid #383229;
  border-radius: 999px;
  padding: 4px
}

.task-filter-bar .task-filter {
  border: 0 !important;
  background: transparent !important;
  border-radius: 999px !important
}

.task-filter-bar .task-filter.active {
  background: #e2c182 !important;
  color: #2e281f !important
}

.quick-complete-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9e958a;
  font-size: 10px;
  cursor: pointer
}

.quick-complete-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.switch-ui {
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #3a342d;
  position: relative;
  border: 1px solid #4a4339;
  transition: .18s
}

.switch-ui:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #9d9589;
  transition: .18s
}

.quick-complete-switch input:checked+.switch-ui {
  background: #7e9c6b;
  border-color: #7e9c6b
}

.quick-complete-switch input:checked+.switch-ui:after {
  transform: translateX(12px);
  background: #f4eadb
}

.quick-complete-action {
  border-color: #6d805b !important;
  color: #c4dbac !important
}

/* Brainstorm grouped tools */
.brain-toolbar-grouped {
  overflow: visible
}

.brain-tool-group {
  position: relative
}

.brain-group-trigger {
  height: 32px;
  border: 1px solid #51483b;
  background: #1b1916;
  color: #e9dbc2;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 10px;
  cursor: pointer
}

.brain-group-trigger span {
  margin-left: 4px;
  color: #9f9487
}

.brain-tool-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 38px;
  min-width: 130px;
  padding: 5px;
  background: #1b1916;
  border: 1px solid #4a4135;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
  z-index: 30
}

.brain-tool-group.open .brain-tool-menu {
  display: grid
}

.brain-tool-menu .brain-ref-tool {
  white-space: nowrap;
  text-align: left;
  border: 0;
  border-radius: 7px
}

.brain-tool-menu .brain-ref-tool:hover {
  background: #2a251f
}

.draw-label {
  font-size: 10px !important;
  color: #c2b5a5 !important;
  font-weight: 700
}

.draw-swatch {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important
}

.brain-ref-tool#colorButton {
  padding-inline: 10px
}

/* Proof empty state */
.proof-empty-v2 {
  display: grid !important;
  place-items: center;
  gap: 7px;
  padding: 48px 20px !important;
  border: 1px dashed #484035 !important;
  border-radius: 16px !important;
  color: #9b9184 !important;
  grid-column: 1/-1
}

.proof-empty-v2 strong {
  font-size: 13px;
  color: #d9cdbc
}

.proof-empty-v2 span {
  font-size: 10px;
  color: #8d8377
}

.proof-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #2a261f;
  border: 1px solid #4a4035;
  color: #c9a261
}

.proof-empty-icon svg {
  width: 20px;
  height: 20px
}

/* Notes sync */
.sync-dot {
  display: inline-grid;
  vertical-align: -3px;
  color: #82a873;
  margin-right: 3px
}

.sync-dot svg {
  width: 13px;
  height: 13px
}

.syncing-dot {
  color: #c9a35e
}

.syncing-dot svg {
  animation: nexaSpin .9s linear infinite
}

@keyframes nexaSpin {
  to {
    transform: rotate(360deg)
  }
}

.notes-hero {
  gap: 18px
}

.notes-hero .hero-note {
  margin-top: 10px
}

.notes-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 7px
}

.note-editor-v2 {
  min-height: 560px
}

/* Mobile More menu + Lucide */
.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px
}

.nav-icon svg {
  width: 16px;
  height: 16px
}

.mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px
}

.mobile-nav button svg {
  width: 16px;
  height: 16px
}

.mobile-nav button span {
  font-size: 8px
}

.mobile-more-menu {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 70;
  padding: 7px;
  background: #1b1916;
  border: 1px solid #40382e;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  min-width: 165px
}

.mobile-more-menu.show {
  display: grid
}

.mobile-more-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #d8cbbb;
  padding: 10px 11px;
  border-radius: 9px;
  text-align: left;
  font-size: 10px
}

.mobile-more-menu button:hover {
  background: #2a251f
}

.mobile-more-menu svg {
  width: 15px;
  height: 15px
}

/* Confirmation / info modal */
.nexa-info-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 160;
  background: rgba(6, 5, 4, .65);
  backdrop-filter: blur(8px);
  padding: 16px
}

.nexa-info-modal.show {
  display: grid
}

.nexa-info-card {
  width: min(560px, 100%);
  background: #f3eadc;
  color: #2d281f;
  border: 1px solid #cdbc9f;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  padding: 20px
}

.nexa-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px
}

.nexa-info-head h2 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 24px
}

.achievement-explainer-list {
  display: grid;
  gap: 8px;
  margin-top: 16px
}

.achievement-explainer-list>div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  background: #fff9ef;
  border: 1px solid #dacbb6
}

.achievement-explainer-list>div>span {
  font-size: 18px
}

.achievement-explainer-list b {
  display: block;
  font-size: 11px
}

.achievement-explainer-list small {
  display: block;
  color: #7b6f62;
  font-size: 9px;
  margin-top: 3px
}

.destructive-modal {
  border-color: #c99b92
}

.destructive-copy {
  color: #65594d;
  font-size: 11px;
  line-height: 1.7;
  margin: 15px 0 0
}

.modal-actions-v2 {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px
}

.btn-danger {
  border: 1px solid #9f5e58;
  background: #8f4f4a;
  color: #fff3ed;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 10px;
  cursor: pointer
}

.btn-danger:disabled {
  opacity: .65;
  cursor: wait
}

@media(max-width:900px) {
  .nexa-auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px
  }

  .nexa-auth-preview {
    min-height: 340px;
    order: -1
  }

  .preview-stat-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:760px) {
  .nexa-auth-preview {
    display: none
  }

  .task-filter-bar {
    align-items: stretch
  }

  .task-filter-bar .filters {
    order: 1;
    overflow: auto;
    max-width: 100%;
    display: flex
  }

  .quick-complete-switch {
    order: 2
  }

  .task-shortcut {
    display: none
  }

  .task-select-v2 {
    min-width: 0;
    flex: 1
  }

  .task-toolbar-v2 {
    gap: 7px !important
  }

  .notes-hero-actions {
    width: 100%;
    padding-top: 2px
  }

  .notes-hero-actions button {
    flex: 1
  }

  .mobile-more-menu {
    right: 16px
  }

  .nexa-info-card {
    padding: 17px
  }

  .modal-actions-v2 {
    flex-direction: column
  }

  .modal-actions-v2 button {
    width: 100%
  }
}


/* Source style block 6 */

.nexa-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #7f7467;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.nexa-auth-divider::before,
.nexa-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(200, 180, 150, .16)
}

.nexa-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(210, 190, 160, .22);
  background: rgba(255, 255, 255, .035);
  color: #eee5d8;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease
}

.nexa-google-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(210, 190, 160, .34);
  transform: translateY(-1px)
}

.nexa-google-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none
}

.nexa-google-mark {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none
}


/* Source style block 7 */

/* ============================================================
   Newla STEP 3 — GHOST MODE / FIGMA-LEVEL UI POLISH
   Visual-only layer: preserves existing functionality and data flow.
   ============================================================ */
:root {
  --ghost-bg: #171613;
  --ghost-panel: #1d1b18;
  --ghost-panel-2: #211f1b;
  --ghost-line: rgba(230, 215, 190, .10);
  --ghost-line-strong: rgba(230, 215, 190, .16);
  --ghost-text: #eee6d9;
  --ghost-muted: #9f9586;
  --ghost-accent: #c99d54;
  --ghost-accent-soft: rgba(201, 157, 84, .13);
  --ghost-shadow: 0 20px 60px rgba(0, 0, 0, .20);
  --ghost-radius: 16px;
}

/* ---------- Global finish ---------- */
html {
  scroll-behavior: smooth
}

body {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased
}

button,
.btn-light,
.btn-dark,
.btn-accent,
.top-btn,
.nav-btn,
.theme-choice,
.task-action,
.board-tool,
.brain-ref-chrome-btn {
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, opacity .16s ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, white 0%);
  outline-offset: 2px;
}

/* ---------- App shell + sidebar ---------- */
.app {
  height: 100dvh;
  min-height: 0;
  grid-template-columns: 228px minmax(0, 1fr)
}

.sidebar {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 22px 14px 14px;
  background:
    radial-gradient(circle at 50% 0, rgba(201, 157, 84, .055), transparent 28%),
    var(--sidebar);
}

.brand {
  padding: 0 12px 20px
}

.brand-mark {
  filter: drop-shadow(0 0 10px rgba(201, 157, 84, .10))
}

.nav {
  padding-top: 14px;
  gap: 4px
}

.nav-btn {
  min-height: 44px;
  border-radius: 11px;
  color: #aea69a
}

.nav-btn:hover {
  background: rgba(255, 255, 255, .035);
  color: #f1e8da;
  transform: translateX(2px)
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(201, 157, 84, .09));
  border-color: var(--ghost-line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 8px 24px rgba(0, 0, 0, .09);
}

.nav-btn.active:before {
  left: -2px;
  width: 3px;
  box-shadow: 0 0 14px rgba(201, 157, 84, .35)
}

.sidebar-quote {
  margin: 20px 8px 12px;
  padding: 17px 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .028), rgba(201, 157, 84, .025));
  border-color: var(--ghost-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.profile {
  flex: 0 0 auto;
  min-height: 64px;
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top-color: var(--ghost-line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015));
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #493b2a, #30291f);
  border: 1px solid rgba(201, 157, 84, .24);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
}

.avatar:after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79a56a;
  border: 2px solid var(--sidebar);
  box-shadow: 0 0 10px rgba(121, 165, 106, .35);
}

.profile strong {
  color: #f0e6d6;
  letter-spacing: .01em
}

.profile small {
  letter-spacing: .04em
}

/* ---------- Main / topbar / spacing ---------- */
.main {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 68px;
  padding: 0 clamp(18px, 2.2vw, 30px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--ghost-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .018), 0 12px 28px rgba(0, 0, 0, .08);
}

body.light .topbar {
  background: color-mix(in srgb, #eee7dc 88%, transparent);
  border-bottom-color: rgba(91, 70, 46, .12);
}

.top-btn {
  background: rgba(255, 255, 255, .018);
  border-color: var(--ghost-line-strong);
}

.top-btn:hover,
.theme-choice:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-accent:hover {
  transform: translateY(-1px)
}

.top-btn:hover {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(201, 157, 84, .28)
}

.content {
  padding: 30px clamp(18px, 3vw, 36px) 60px;
  max-width: 1440px
}

.hero-row {
  margin-bottom: 2px
}

.hero-row h1 {
  letter-spacing: -.05em
}

.hero-note {
  max-width: 680px
}

.view.active {
  animation: viewIn .26s ease both
}

/* ---------- Cards / stats / panels ---------- */
.dark-card,
.stat,
.panel-light {
  border-radius: var(--ghost-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.dark-card {
  background: linear-gradient(145deg, #25221d, #1d1b18);
  border-color: var(--ghost-line);
}

.dark-card:hover {
  border-color: rgba(201, 157, 84, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255, 255, 255, .03)
}

.stat {
  background: linear-gradient(145deg, #24211c, #1d1b18);
  border-color: var(--ghost-line);
  position: relative;
  overflow: hidden;
}

.stat:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 157, 84, .22), transparent);
  opacity: .8;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 157, 84, .18)
}

.stat strong {
  font-variant-numeric: tabular-nums
}

.panel-light {
  box-shadow: var(--ghost-shadow), inset 0 1px 0 rgba(255, 255, 255, .28)
}

.panel-head {
  padding: 16px 18px
}

.v2-dashboard-grid {
  gap: 15px;
  margin: 16px 0
}

.v2-dashboard-grid>* {
  min-width: 0
}

.grid-2 {
  gap: 15px;
  align-items: start
}

.grid-3 {
  gap: 15px
}

.quote-hero {
  margin: 22px 0 20px
}

/* ---------- Tasks ---------- */
.task-card {
  border-color: var(--ghost-line);
  background: linear-gradient(145deg, #24211d, #201e1a)
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 157, 84, .25);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14)
}

.task-action:hover {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(201, 157, 84, .25);
  transform: translateY(-1px)
}

.task-search-wrap,
.task-select-v2 {
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease
}

.task-search-wrap:focus-within {
  border-color: rgba(201, 157, 84, .38);
  box-shadow: 0 0 0 3px rgba(201, 157, 84, .08)
}

/* ---------- Brainstorm / notes ---------- */
.brain-ref-shell,
.note-editor-v2,
.notes-list-v2 {
  box-shadow: 0 18px 46px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .03)
}

.brain-ref-shell {
  border-color: var(--ghost-line) !important
}

.note-title-input:focus,
.note-tags-v2 input:focus {
  outline: none
}

.notes-empty-v2,
.task-empty {
  border-radius: 12px
}

.notes-empty-v2 {
  margin: 8px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, .018)
}

/* ---------- Proofs ---------- */
.proof-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 157, 84, .22);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .15)
}

.proof-card img {
  transition: transform .28s ease, filter .28s ease
}

.proof-card:hover img {
  transform: scale(1.015);
  filter: saturate(1.03)
}

/* ---------- Forms ---------- */
input,
textarea,
select {
  caret-color: var(--accent)
}

input::placeholder,
textarea::placeholder {
  color: #8f8679;
  opacity: .8
}

.modal-card input,
.modal-card textarea,
.modal-card select,
.brain-ref-text-card textarea {
  border-color: var(--ghost-line-strong);
  background: #181713;
  color: #eee6d9;
}

.modal-card input:focus,
.modal-card textarea:focus,
.modal-card select:focus,
.brain-ref-text-card textarea:focus {
  border-color: rgba(201, 157, 84, .48);
  box-shadow: 0 0 0 3px rgba(201, 157, 84, .08);
}

/* ---------- Unified modal language ---------- */
.modal,
.brain-ref-text-modal,
.nexa-info-modal {
  background: rgba(7, 6, 5, .68);
  backdrop-filter: blur(12px)
}

.modal-card,
.brain-ref-text-card,
.nexa-info-card,
.command-card,
.focus-card {
  border-radius: 18px;
  border-color: var(--ghost-line-strong);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .42), 0 1px 0 rgba(255, 255, 255, .04) inset;
}

body:not(.light) .nexa-info-card {
  background: linear-gradient(145deg, #24211d, #1d1b18);
  color: #eee6d9;
  border-color: var(--ghost-line-strong);
}

body:not(.light) .nexa-info-head h2 {
  color: #f0e6d6
}

body:not(.light) .destructive-copy {
  color: #a89d90
}

body:not(.light) .achievement-explainer-list>div {
  background: #211f1b;
  border-color: var(--ghost-line);
  color: #eee5d6
}

body:not(.light) .achievement-explainer-list small {
  color: #91877b
}

body.light .modal,
body.light .brain-ref-text-modal {
  background: rgba(34, 28, 20, .26)
}

body.light .modal-card,
body.light .brain-ref-text-card,
body.light .nexa-info-card {
  box-shadow: 0 24px 80px rgba(74, 57, 38, .22), 0 1px 0 rgba(255, 255, 255, .55) inset
}

body.light .modal-card input,
body.light .modal-card textarea,
body.light .modal-card select,
body.light .brain-ref-text-card textarea {
  background: #fffaf2;
  color: #302820;
  border-color: #d1c1aa
}

/* ---------- Command palette / focus ---------- */
.command-card,
.focus-card {
  backdrop-filter: blur(18px)
}

.command-item:hover,
.command-item.active {
  box-shadow: inset 0 0 0 1px rgba(201, 157, 84, .14);
  background: rgba(255, 255, 255, .035)
}

.focus-card {
  background: linear-gradient(145deg, #25211c, #1b1916)
}

/* ---------- Toasts / feedback ---------- */
.toast {
  backdrop-filter: blur(14px);
  border-color: var(--ghost-line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26)
}

.toast.success {
  border-color: rgba(104, 136, 93, .5)
}

.toast.error {
  border-color: rgba(185, 110, 105, .5)
}

/* ---------- Empty / loading / error primitives ---------- */
.task-empty,
.notes-empty-v2,
.proof-empty-v2 {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
}

.task-empty {
  border: 1px dashed var(--ghost-line-strong);
  background: rgba(255, 255, 255, .012)
}

.proof-empty-v2 {
  background: rgba(255, 255, 255, .012) !important
}

.nexa-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .055);
  border-radius: 10px
}

.nexa-skeleton:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  animation: nexaShimmer 1.35s infinite
}

.nexa-error-state {
  border: 1px solid rgba(185, 110, 105, .38);
  background: rgba(185, 110, 105, .06);
  color: #d9a39d;
  border-radius: 12px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.5
}

@keyframes nexaShimmer {
  100% {
    transform: translateX(100%)
  }
}

/* ---------- Mobile polish ---------- */
@media(max-height:760px) and (min-width:761px) {
  .sidebar {
    padding-top: 14px;
    padding-bottom: 10px
  }

  .brand {
    padding-bottom: 14px
  }

  .nav {
    overflow: auto;
    min-height: 0;
    scrollbar-width: none
  }

  .nav::-webkit-scrollbar {
    display: none
  }

  .nav-btn {
    min-height: 40px;
    padding: 9px 10px
  }

  .sidebar-quote {
    margin: 12px 6px 8px;
    padding: 12px 13px
  }

  .sidebar-quote p {
    font-size: 12px;
    line-height: 1.45
  }

  .sidebar-quote small {
    margin-top: 8px
  }

  .profile {
    min-height: 58px;
    padding-top: 9px
  }
}

.sidebar-tight .sidebar-quote {
  margin-top: 10px;
  margin-bottom: 7px
}

.sidebar-tight .profile {
  padding-bottom: 2px
}

@media(max-width:1050px) {
  .app {
    grid-template-columns: 196px minmax(0, 1fr)
  }

  .content {
    padding-left: 22px;
    padding-right: 22px
  }

  .v2-dashboard-grid {
    grid-template-columns: 1fr 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }
}

@media(max-width:760px) {
  body {
    overflow: hidden
  }

  .app {
    display: block;
    height: 100dvh
  }

  .main {
    min-height: 100dvh;
    height: 100dvh;
    overflow: auto
  }

  .topbar {
    height: 62px;
    padding: 0 12px
  }

  .breadcrumb {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .clock {
    font-size: 14px;
    letter-spacing: .05em
  }

  .top-actions {
    gap: 6px
  }

  .top-actions .top-btn:first-child {
    font-size: 0;
    width: 38px;
    display: grid;
    place-items: center
  }

  .top-actions .top-btn:first-child:before {
    content: "+";
    font-size: 16px
  }

  .top-actions .top-btn:last-child {
    width: 38px;
    padding: 8px
  }

  .content {
    padding: 20px 14px 104px
  }

  h1 {
    font-size: clamp(30px, 10vw, 44px)
  }

  .hero-row {
    align-items: stretch;
    gap: 14px
  }

  .hero-row>.btn-dark {
    align-self: flex-start
  }

  .quote-hero {
    margin: 18px 0
  }

  .quote-hero .text {
    font-size: 19px
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 12px
  }

  .stat {
    padding: 13px
  }

  .stat strong {
    font-size: 22px
  }

  .v2-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .dark-card,
  .panel-light {
    border-radius: 14px
  }

  .task-list {
    max-height: none
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .calendar-grid {
    gap: 4px
  }

  .day {
    min-height: 70px;
    padding: 6px
  }

  .mobile-nav {
    bottom: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px)
  }

  .mobile-more-menu {
    bottom: 76px;
    backdrop-filter: blur(16px)
  }

  .modal,
  .nexa-info-modal,
  .brain-ref-text-modal {
    padding: 10px
  }

  .modal-card,
  .nexa-info-card,
  .brain-ref-text-card {
    padding: 18px
  }

  .modal-card h2,
  .brain-ref-text-card h2,
  .nexa-info-head h2 {
    font-size: 25px
  }
}

@media(max-width:520px) {
  .topbar {
    gap: 6px
  }

  .sidebar-toggle {
    margin-right: 2px
  }

  .breadcrumb {
    max-width: 34vw
  }

  .clock {
    font-size: 12px
  }

  .content {
    padding-left: 10px;
    padding-right: 10px
  }

  .hero-note {
    font-size: 12px
  }

  .panel-head {
    padding: 14px
  }

  .panel-pad {
    padding: 12px
  }

  .v2-card-head {
    gap: 8px
  }

  .task-toolbar-v2 {
    gap: 7px !important
  }
}

/* ---------- Light theme reconciliation ---------- */
body.light .dark-card {
  background: linear-gradient(145deg, #fbf4e9, #f3eadc);
  border-color: #d8cbbb;
  box-shadow: 0 14px 34px rgba(75, 55, 35, .08), inset 0 1px 0 rgba(255, 255, 255, .55)
}

body.light .stat {
  background: linear-gradient(145deg, #fbf5ec, #f1e7da);
  border-color: #d8cbbb
}

body.light .stat:hover {
  border-color: #b9a589
}

body.light .top-btn:hover {
  background: #f2e8dc;
  border-color: #cbb99f
}

body.light .task-card {
  background: linear-gradient(145deg, #fbf4e9, #f0e6d8);
  border-color: #d7c8b5
}

body.light .task-action:hover {
  background: #eee5d8;
  border-color: #c8b69d
}

body.light .modal,
body.light .nexa-info-modal,
body.light .brain-ref-text-modal {
  background: rgba(61, 48, 32, .25)
}

body.light .notes-empty-v2,
body.light .task-empty {
  background: rgba(72, 53, 31, .025);
  border-color: #d0c0aa
}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
  }
}


/* Source style block 8 */

/* ============================================================
   Newla STEP 4 — TASKS DEEP POLISH
   Visual + interaction layer only. Keeps Step 1–3 architecture.
============================================================ */
.task-toolbar-v2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.task-search-wrap {
  flex: 1 1 250px;
  min-width: 220px;
}

.step4-sort,
.step4-view-filter,
.step4-reset {
  min-height: 34px;
  border: 1px solid #3b352e;
  background: #1a1815;
  color: #ddd3c5;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 10px;
  outline: none;
  cursor: pointer;
}

.step4-sort:focus,
.step4-view-filter:focus {
  border-color: #856943;
  box-shadow: 0 0 0 3px rgba(170, 137, 85, .10);
}

.step4-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1px;
}

.step4-filter-pill {
  border: 1px solid #3b352e;
  background: transparent;
  color: #aaa093;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  cursor: pointer;
  transition: .16s ease;
}

.step4-filter-pill:hover {
  border-color: #655744;
  color: #e9dfd1;
}

.step4-filter-pill.active {
  background: #2b261f;
  border-color: #69583f;
  color: #f0dfc0;
}

.step4-summary {
  margin-left: auto;
  color: #857a6d;
  font-size: 9px;
}

.step4-save-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(198, 166, 112, .18);
  background: rgba(198, 166, 112, .06);
  color: #b4a58e;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
}

.step4-save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #87aa82;
  box-shadow: 0 0 0 3px rgba(135, 170, 130, .07);
}

.task-card {
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  opacity: .9;
}

.task-card.high::before {
  background: #c78378
}

.task-card.medium::before {
  background: #bca16d
}

.task-card.low::before {
  background: #88a982
}

.task-card.today::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c99d54;
  box-shadow: 0 0 0 4px rgba(201, 157, 84, .08);
}

.step4-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.step4-title-wrap {
  min-width: 0;
}

.step4-task-title {
  margin: 0;
  cursor: pointer;
  transition: color .15s ease;
}

.step4-task-title:hover {
  color: #f3d7a0
}

.step4-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.step4-status-text {
  font-size: 9px;
  color: #81776b;
}

.step4-status-text.overdue {
  color: #dd968c
}

.step4-status-text.today {
  color: #d0ae68
}

.step4-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.step4-priority-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8e8375;
}

.step4-priority-dot.high {
  background: #d18b80
}

.step4-priority-dot.medium {
  background: #ccb276
}

.step4-priority-dot.low {
  background: #8aac83
}

.step4-proof-state {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 6px 9px;
  border: 1px solid rgba(185, 110, 105, .26);
  background: rgba(185, 110, 105, .055);
  border-radius: 8px;
  color: #c8a9a3;
  font-size: 9px;
  line-height: 1.35;
  box-sizing: border-box;
}

.step4-proof-state strong {
  color: #d77f78;
  font-weight: 700;
}

@media (max-width:640px) {
  .step4-proof-state {
    width: auto
  }
}

.step4-proof-state strong {
  color: #d4b77d
}

.step4-progress {
  height: 5px;
  border-radius: 999px;
  background: #2c2823;
  overflow: hidden;
  margin-top: 8px;
}

.step4-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8f7148, #c8a366);
  border-radius: inherit;
}

.step4-subtask-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 7px;
}

.step4-subtask-label:hover {
  background: rgba(255, 255, 255, .025)
}

.step4-subtask-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step4-subtask-label.done span {
  text-decoration: line-through;
  color: #716b62;
}

.step4-primary-action {
  background: #c9a467 !important;
  border-color: #c9a467 !important;
  color: #2c251d !important;
  font-weight: 700;
}

.step4-primary-action:hover {
  background: #d4b37a !important;
  border-color: #d4b37a !important;
}

.step4-complete-action {
  color: #a9c99f !important;
}

.step4-secondary-actions {
  opacity: .84;
}

.step4-empty {
  padding: 52px 22px;
  text-align: center;
  border: 1px dashed #3a342e;
  border-radius: 13px;
  color: #9b9083;
}

.step4-empty strong {
  display: block;
  color: #ddd2c2;
  font-family: Georgia, serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.step4-empty span {
  font-size: 11px
}

.step4-search-clear {
  border: 0;
  background: transparent;
  color: #80766b;
  cursor: pointer;
  padding: 3px 5px;
  display: none;
}

body.light .step4-sort,
body.light .step4-view-filter,
body.light .step4-reset {
  background: #fffaf2;
  border-color: #d0c0ad;
  color: #5b5044;
}

body.light .step4-filter-pill {
  border-color: #d1c2af;
  color: #766b5f;
}

body.light .step4-filter-pill.active {
  background: #ebe1d3;
  border-color: #bdab92;
  color: #463c31;
}

body.light .step4-summary {
  color: #807569
}

body.light .step4-save-state {
  background: rgba(139, 108, 69, .06);
  border-color: rgba(139, 108, 69, .14);
  color: #746654;
}

body.light .step4-card-head .step4-task-title:hover {
  color: #8d693b
}

body.light .step4-proof-state {
  background: rgba(185, 110, 105, .06);
  border-color: rgba(163, 92, 87, .20);
  color: #8d625d;
}

.step4-proof-state strong {
  color: #a84f48;
}

body.light .step4-progress {
  background: #e5ded4
}

body.light .step4-empty {
  border-color: #d5c5b2;
  color: #817568
}

body.light .step4-empty strong {
  color: #3d342a
}

@media(max-width:760px) {
  .step4-summary {
    width: 100%;
    margin-left: 0
  }

  .step4-save-state {
    margin-left: auto
  }

  .task-actions .step4-secondary-actions {
    display: none
  }

  .task-card {
    padding: 12px
  }
}


/* Source style block 9 */

/* ==========================================================
   STEP 5 — PROOFS EXPERIENCE
========================================================== */
.proof-grid.masonry {
  gap: 16px
}

.proof-card {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  background: linear-gradient(145deg, #24211d, #1d1b18) !important;
  border-color: #3a342c !important
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 157, 84, .34) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22) !important
}

.proof-card .proof-image-wrap {
  position: relative;
  overflow: hidden;
  background: #171613
}

.proof-card .proof-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin: 0;
  cursor: zoom-in
}

.proof-card .proof-image-wrap .proof-view-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(244, 236, 223, .22);
  background: rgba(17, 16, 14, .72);
  color: #f0e6d6;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  backdrop-filter: blur(8px)
}

.proof-card .proof-card-body {
  padding: 13px
}

.proof-card h3 {
  margin: 0;
  color: #f0e6d6;
  font-size: 14px;
  line-height: 1.3
}

.proof-card p {
  margin: 5px 0 0;
  color: #9e9589;
  font-size: 10px
}

.proof-meta-v5 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px
}

.proof-meta-v5 span {
  padding: 4px 7px;
  border: 1px solid #3a342c;
  border-radius: 999px;
  color: #a79d90;
  font-size: 9px;
  background: rgba(255, 255, 255, .018)
}

.proof-actions-v5 {
  display: flex;
  gap: 7px;
  margin-top: 12px
}

.proof-actions-v5 button {
  flex: 1;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid #3a342c;
  background: #211f1b;
  color: #ded5c8;
  font: inherit;
  font-size: 10px;
  cursor: pointer
}

.proof-actions-v5 button:hover {
  border-color: rgba(201, 157, 84, .32);
  background: #28241f
}

.proof-actions-v5 .danger {
  color: #d39a91;
  border-color: rgba(185, 110, 105, .28)
}

.proof-actions-v5 .danger:hover {
  border-color: rgba(185, 110, 105, .5);
  background: rgba(185, 110, 105, .06)
}

.proof-modal-v5,
.proof-viewer-v5 {
  background: rgba(7, 6, 5, .72) !important;
  backdrop-filter: blur(14px) !important
}

.proof-modal-card-v5,
.proof-viewer-card-v5 {
  width: min(760px, 100%);
  background: linear-gradient(145deg, #24211d, #1c1a17);
  color: #eee6d9;
  border: 1px solid #433a30;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .46), 0 1px 0 rgba(255, 255, 255, .04) inset
}

.proof-viewer-card-v5 {
  width: min(980px, 100%)
}

.proof-modal-card-v5 h2,
.proof-viewer-card-v5 h2 {
  color: #f0e6d6;
  margin: 0
}

.proof-modal-card-v5 .proof-help-v5,
.proof-viewer-card-v5 .proof-help-v5 {
  color: #a89d90;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px
}

.proof-input-wrap-v5 {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #4a4035;
  border-radius: 12px;
  background: rgba(255, 255, 255, .012)
}

.proof-input-wrap-v5 input[type=file] {
  display: block;
  width: 100%;
  color: #ded5c8;
  font-size: 11px
}

.proof-preview-v5 {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #151412;
  border: 1px solid #3e362e;
  border-radius: 12px;
  margin-top: 12px
}

.proof-modal-actions-v5 {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px
}

.proof-modal-actions-v5 button {
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  cursor: pointer
}

.proof-modal-actions-v5 .secondary {
  border: 1px solid #4a4035;
  background: #211f1b;
  color: #ded5c8
}

.proof-modal-actions-v5 .primary {
  border: 1px solid #d9b56f;
  background: #d9b56f;
  color: #181613
}

.proof-modal-actions-v5 .primary:disabled {
  opacity: .45;
  cursor: not-allowed
}

.proof-viewer-image-v5 {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #151412;
  border-radius: 12px;
  border: 1px solid #3e362e
}

.proof-viewer-head-v5 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px
}

.proof-viewer-meta-v5 {
  color: #a89d90;
  font-size: 10px;
  margin-top: 5px
}

@media(max-width:760px) {
  .proof-actions-v5 {
    flex-wrap: wrap
  }

  .proof-actions-v5 button {
    flex: 1 1 30%
  }

  .proof-modal-card-v5,
  .proof-viewer-card-v5 {
    padding: 14px;
    border-radius: 14px
  }
}

body.light .proof-card {
  background: linear-gradient(145deg, #f8f1e7, #eee5d7) !important;
  border-color: #d7c8b5 !important
}

body.light .proof-card h3,
.light .proof-card h3 {
  color: #3b3228
}

.light .proof-card p {
  color: #7b7064
}

body.light .proof-meta-v5 span {
  background: rgba(59, 50, 40, .03);
  border-color: #d7c8b5;
  color: #7b7064
}

body.light .proof-actions-v5 button {
  background: #fffaf2;
  border-color: #d7c8b5;
  color: #4f4438
}

body.light .proof-modal-card-v5,
body.light .proof-viewer-card-v5 {
  background: #f4ecdf;
  color: #302820;
  border-color: #cfbea2
}

body.light .proof-modal-card-v5 h2,
body.light .proof-viewer-card-v5 h2 {
  color: #2b271f
}

body.light .proof-modal-card-v5 .proof-help-v5,
body.light .proof-viewer-card-v5 .proof-help-v5 {
  color: #766c60
}

body.light .proof-input-wrap-v5 {
  border-color: #d0bea4;
  background: rgba(255, 255, 255, .22)
}

body.light .proof-modal-actions-v5 .secondary {
  background: #fffaf2;
  color: #302820;
  border-color: #cfbea2
}


/* Source style block 10 */

/* Knowledge / Notes visual refinement — Step 5 base preserved */
#view-notes .notes-layout-v2 {
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 12px;
}

#view-notes .notes-list-v2 {
  width: 100%;
  min-width: 0;
}

#view-notes .note-editor-v2 {
  width: 100%;
  min-width: 0;
}

#view-notes .panel-head {
  padding: 18px 14px 16px;
  gap: 10px;
}

#view-notes .notes-list-v2 .panel-head>div {
  min-width: 0;
}

#view-notes .notes-list-v2 .panel-head h2 {
  font-size: 20px !important;
}

#view-notes #notesSyncIndicator {
  margin-top: 5px;
  color: #8f9b82;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .01em;
  max-width: 125px;
}

#view-notes #notesSyncIndicator .sync-dot {
  color: #8fa57a;
}

#view-notes #notesSyncIndicator svg {
  width: 11px;
  height: 11px;
  vertical-align: -2px;
}

#view-notes .note-editor-v2>.panel-head {
  padding: 18px 20px 17px;
}

#view-notes .note-editor-v2 .panel-head>div {
  padding-bottom: 2px;
}

#view-notes .note-title-input {
  padding: 0 0 2px;
}

#view-notes .note-tags-v2 {
  padding-top: 4px;
}

#view-notes .note-tags-v2 input {
  margin-top: 5px;
  padding: 2px 0;
}

#view-notes .note-editor-body {
  border-top: 1px solid rgba(201, 157, 84, .18);
  padding-top: 4px;
}

@media(max-width:900px) {
  #view-notes .notes-layout-v2 {
    grid-template-columns: 1fr
  }

  #view-notes #notesSyncIndicator {
    max-width: none
  }
}


/* Source style block 11 */

/* Small vertical lift for the two highlighted Knowledge header areas only */
#view-notes .hero-note {
  transform: translateY(-6px);
}

#view-notes .notes-hero-actions {
  transform: translateY(-6px);
}


/* Source style block 12 */

/* Calendar header: lift the two highlighted elements slightly. */
#view-calendar .hero-note {
  transform: translateY(-7px)
}

#view-calendar #calendarToday {
  transform: translateY(-7px)
}

/* Calendar month navigation: all three controls use the same compact size as Today. */
#view-calendar #calendarPrev,
#view-calendar #calendarToday,
#view-calendar #calendarNext {
  width: 56px;
  min-width: 56px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#view-calendar #calendarPrev svg,
#view-calendar #calendarNext svg {
  width: 15px;
  height: 15px
}

/* Brainstorm drawing controls: compact icon-only actions next to Clear Drawing. */
.brain-draw-toolbar .brain-icon-btn {
  width: 34px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  border-radius: 8px;
}

.brain-draw-toolbar .brain-icon-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8
}

/* Selected freeform shape gets a subtle outline so Delete has an obvious target. */
.nexa-draw-selected {
  filter: drop-shadow(0 0 4px rgba(240, 207, 103, .58));
}


/* Source style block 13 */

.sidebar .profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px
}

.sidebar .profile-copy {
  min-width: 0;
  flex: 1
}

.profile-logout-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 197, 171, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: #b6ab9a;
  padding: 0;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.profile-logout-btn:hover {
  background: rgba(185, 110, 105, .12);
  border-color: rgba(185, 110, 105, .34);
  color: #d38a83;
  transform: translateY(-1px)
}

.profile-logout-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8
}


/* Source style block 14 */

.brain-ref-tool.brain-icon-tool {
  width: 48px;
  min-width: 48px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.brain-ref-tool.brain-icon-tool svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.85;
}

.brain-ref-tool.brain-icon-tool.active svg {
  color: inherit;
}


/* Source style block 15 */

/* POPUP-ONLY THEME — intentionally scoped to confirmation/dialog popups */
.nexa-dialog-overlay .nexa-dialog-card,
.nexa-dialog-overlay .nexa-dialog-card.light {
  background: #201d19;
  color: #eee5d7;
  border: 1px solid #40372f;
}

.nexa-dialog-overlay .nexa-dialog-kicker,
.nexa-dialog-overlay .nexa-dialog-card.light .nexa-dialog-kicker {
  color: #b7a48c;
}

.nexa-dialog-overlay .nexa-dialog-title,
.nexa-dialog-overlay .nexa-dialog-card.light .nexa-dialog-title {
  color: #f4eadb;
}

.nexa-dialog-overlay .nexa-dialog-message,
.nexa-dialog-overlay .nexa-dialog-card.light .nexa-dialog-message {
  color: #a99d8f;
}

.nexa-dialog-overlay .nexa-dialog-input,
.nexa-dialog-overlay .nexa-dialog-card.light .nexa-dialog-input {
  background: #171513;
  color: #f2e7d8;
  border-color: #4a4035;
}

.nexa-dialog-overlay .nexa-dialog-btn {
  border: 1px solid #f4ecdf;
  background: #f4ecdf;
  color: #2d281f;
}

.nexa-dialog-overlay .nexa-dialog-btn:hover {
  background: #fff7ec;
  border-color: #fff7ec;
}

.nexa-dialog-overlay .nexa-dialog-btn.primary {
  background: #647a62;
  border-color: #718a6e;
  color: #f8f4eb;
  font-weight: 800;
}

.nexa-dialog-overlay .nexa-dialog-btn.primary:hover {
  background: #718a6e;
  border-color: #7d9679;
}

.nexa-dialog-overlay .nexa-dialog-btn.danger {
  background: #8f4f4a;
  border-color: #9f5e58;
  color: #fff3ed;
}

.nexa-dialog-overlay .nexa-dialog-btn.danger:hover {
  background: #9b5953;
  border-color: #ab6861;
}

.nexa-dialog-overlay .nexa-dialog-icon,
.nexa-dialog-overlay .nexa-dialog-card.light .nexa-dialog-icon {
  background: #29241f;
  border-color: #443a2f;
  color: #c9867c;
}

/* Clear-workspace confirmation popup only */
#clearDataModal.nexa-info-modal {
  background: rgba(7, 6, 5, .68);
  backdrop-filter: blur(12px);
}

#clearDataModal .nexa-info-card {
  background: #201d19;
  color: #eee5d7;
  border-color: #40372f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

#clearDataModal .nexa-info-card h2 {
  color: #f4eadb;
}

#clearDataModal .destructive-copy {
  color: #a99d8f;
}

#clearDataModal .btn-light {
  background: #f4ecdf;
  border-color: #f4ecdf;
  color: #2d281f;
}

#clearDataModal .btn-danger {
  background: #8f4f4a;
  border-color: #9f5e58;
  color: #fff3ed;
}


/* Source style block 16 */

/* Step 7 calendar polish: event highlight hugs its text; nav matches Today exactly. */
#view-calendar .day-event {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

#view-calendar .calendar-nav-btn {
  min-width: 0;
}


/* Source style block 17 */

/* ============================================================
   STEP 8 — FOCUS MODE
============================================================ */
.focus-card-v8 {
  width: min(680px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 30px !important
}

.focus-head-v8 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px
}

.focus-head-v8 h2 {
  margin: 6px 0 0
}

.focus-task-badge {
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 800;
  color: #9ab08a;
  border: 1px solid rgba(154, 176, 138, .35);
  background: rgba(154, 176, 138, .08);
  padding: 7px 9px;
  border-radius: 999px
}

.focus-duration-row-v8 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 18px auto 2px
}

.focus-duration-label {
  font-size: 10px;
  color: #8e8478;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-right: 4px
}

.focus-duration-btn {
  border: 1px solid #4a4035;
  background: #25211d;
  color: #bfb3a4;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 11px;
  cursor: pointer
}

.focus-duration-btn.active {
  background: #e2c182;
  color: #2f281f;
  border-color: #e2c182
}

.focus-custom-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 4px 9px;
  border: 1px solid #4a4035;
  border-radius: 9px;
  background: #211e1a;
  color: #8e8478;
  font-size: 10px
}

.focus-custom-wrap input {
  width: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #efe4d3;
  font-weight: 700
}

.focus-status-row-v8 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 18px;
  color: #938a80;
  font-size: 10px
}

.focus-current-task {
  color: #b8a78f
}

.focus-actions {
  margin-top: 14px
}

.focus-actions #focusComplete {
  border-color: #4c6748 !important;
  background: #253024 !important;
  color: #d4e2cd !important
}

.focus-history-v8 {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #3a342d;
  text-align: left
}

.focus-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8e8478;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 800
}

.focus-history-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  max-height: 160px;
  overflow: auto
}

.focus-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #383229;
  border-radius: 9px;
  background: #211e1a
}

.focus-history-item strong {
  font-size: 11px;
  color: #e8decf;
  font-weight: 600
}

.focus-history-item span {
  font-size: 9px;
  color: #8e8478
}

.focus-history-empty {
  font-size: 10px;
  color: #766d63;
  padding: 12px 4px
}

@media(max-width:640px) {
  .focus-card-v8 {
    padding: 22px !important
  }

  .focus-timer {
    font-size: clamp(58px, 18vw, 92px)
  }
}


<style id="nexa-auth-css">

/* Compact login + animated ambient background */
.nexa-auth-gate {
  --mx: 50%;
  --my: 50%;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: #0d0c0a;
  color: #efe2c6;
}

.nexa-ambient {
  position: absolute;
  inset: -15%;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 157, 84, .055), transparent 34%),
    linear-gradient(125deg, #0f0e0c 0%, #171411 48%, #0c0b0a 100%);
}

.nexa-ambient-grid {
  position: absolute;
  inset: -10%;
  opacity: .26;
  transform: perspective(800px) rotateX(62deg) translateY(18%);
  transform-origin: center;
  background-image: linear-gradient(rgba(220, 191, 140, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 191, 140, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: nexaGridDrift 18s linear infinite;
  mask-image: radial-gradient(circle at center, black 0%, rgba(0, 0, 0, .92) 52%, transparent 82%);
}

.nexa-orbit {
  position: absolute;
  border: 1px solid rgba(216, 185, 132, .075);
  border-radius: 50%;
  filter: blur(.15px);
  will-change: transform;
}

.orbit-a {
  width: min(72vw, 880px);
  height: min(72vw, 880px);
  left: -10%;
  top: -18%;
  animation: nexaOrbitA 22s linear infinite;
}

.orbit-b {
  width: min(50vw, 620px);
  height: min(50vw, 620px);
  right: -4%;
  bottom: -18%;
  border-color: rgba(201, 157, 84, .09);
  animation: nexaOrbitB 17s linear infinite reverse;
}

.nexa-orbit:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 16%;
  top: 18%;
  border-radius: 50%;
  background: #d8b87a;
  box-shadow: 0 0 22px 7px rgba(216, 184, 122, .22);
  opacity: .8;
}

.orbit-b:after {
  left: auto;
  top: auto;
  right: 12%;
  bottom: 20%;
  width: 6px;
  height: 6px;
  background: #88a77a;
  box-shadow: 0 0 20px 6px rgba(136, 167, 122, .22);
}

.nexa-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .22;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.blob-a {
  width: 340px;
  height: 340px;
  left: 8%;
  top: 12%;
  background: rgba(198, 154, 85, .28);
  animation: nexaBlobA 15s ease-in-out infinite;
}

.blob-b {
  width: 430px;
  height: 430px;
  right: 2%;
  top: 6%;
  background: rgba(100, 124, 150, .18);
  animation: nexaBlobB 19s ease-in-out infinite;
}

.blob-c {
  width: 300px;
  height: 300px;
  left: 36%;
  bottom: 2%;
  background: rgba(117, 89, 129, .14);
  animation: nexaBlobC 17s ease-in-out infinite;
}

.nexa-cursor-glow {
  position: absolute;
  left: calc(var(--mx) - 170px);
  top: calc(var(--my) - 170px);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 193, 130, .09), rgba(226, 193, 130, .035) 35%, transparent 72%);
  filter: blur(5px);
  transition: left .14s ease-out, top .14s ease-out;
}

.nexa-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .95;
}

.nexa-particle {
  position: absolute;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8b87a;
  box-shadow: 0 0 14px 3px rgba(216, 184, 122, .22);
  opacity: .65;
  animation: nexaParticleFloat linear infinite;
}

.nexa-particle:nth-child(3n) {
  background: #9aaf8f;
  box-shadow: 0 0 13px 3px rgba(154, 175, 143, .2);
}

.nexa-particle:nth-child(4n) {
  width: 3px;
  height: 3px;
  opacity: .45;
}

.nexa-particle:nth-child(5n) {
  width: 7px;
  height: 7px;
  opacity: .34;
  filter: blur(.4px);
}

.nexa-particle.p1 {
  left: 4%;
  top: -8%;
  animation-duration: 10.5s;
  animation-delay: -2s
}

.nexa-particle.p2 {
  left: 10%;
  top: 16%;
  animation-duration: 13.5s;
  animation-delay: -8s
}

.nexa-particle.p3 {
  left: 16%;
  top: 72%;
  animation-duration: 12.0s;
  animation-delay: -4s
}

.nexa-particle.p4 {
  left: 22%;
  top: 4%;
  animation-duration: 15.5s;
  animation-delay: -10s
}

.nexa-particle.p5 {
  left: 28%;
  top: 86%;
  animation-duration: 13.0s;
  animation-delay: -7s
}

.nexa-particle.p6 {
  left: 34%;
  top: 24%;
  animation-duration: 14.5s;
  animation-delay: -3s
}

.nexa-particle.p7 {
  left: 40%;
  top: 80%;
  animation-duration: 11.7s;
  animation-delay: -9s
}

.nexa-particle.p8 {
  left: 46%;
  top: 10%;
  animation-duration: 16.5s;
  animation-delay: -12s
}

.nexa-particle.p9 {
  left: 52%;
  top: 62%;
  animation-duration: 10.8s;
  animation-delay: -5s
}

.nexa-particle.p10 {
  left: 58%;
  top: -5%;
  animation-duration: 14.2s;
  animation-delay: -6s
}

.nexa-particle.p11 {
  left: 64%;
  top: 30%;
  animation-duration: 13.2s;
  animation-delay: -11s
}

.nexa-particle.p12 {
  left: 70%;
  top: 74%;
  animation-duration: 16.0s;
  animation-delay: -9s
}

.nexa-particle.p13 {
  left: 76%;
  top: 46%;
  animation-duration: 12.4s;
  animation-delay: -14s
}

.nexa-particle.p14 {
  left: 82%;
  top: 90%;
  animation-duration: 17.8s;
  animation-delay: -1s
}

.nexa-particle.p15 {
  left: 88%;
  top: 54%;
  animation-duration: 15.0s;
  animation-delay: -13s
}

.nexa-particle.p16 {
  left: 94%;
  top: 14%;
  animation-duration: 10.6s;
  animation-delay: -4s
}

.nexa-particle.p17 {
  left: 7%;
  top: 36%;
  animation-duration: 18.0s;
  animation-delay: -6s
}

.nexa-particle.p18 {
  left: 14%;
  top: 58%;
  animation-duration: 12.8s;
  animation-delay: -12s
}

.nexa-particle.p19 {
  left: 20%;
  top: 20%;
  animation-duration: 15.2s;
  animation-delay: -2s
}

.nexa-particle.p20 {
  left: 26%;
  top: 96%;
  animation-duration: 11.3s;
  animation-delay: -10s
}

.nexa-particle.p21 {
  left: 32%;
  top: 44%;
  animation-duration: 16.8s;
  animation-delay: -4s
}

.nexa-particle.p22 {
  left: 38%;
  top: 68%;
  animation-duration: 13.6s;
  animation-delay: -13s
}

.nexa-particle.p23 {
  left: 44%;
  top: 8%;
  animation-duration: 12.2s;
  animation-delay: -7s
}

.nexa-particle.p24 {
  left: 50%;
  top: 92%;
  animation-duration: 17.2s;
  animation-delay: -15s
}

.nexa-particle.p25 {
  left: 56%;
  top: 40%;
  animation-duration: 14.0s;
  animation-delay: -5s
}

.nexa-particle.p26 {
  left: 62%;
  top: 4%;
  animation-duration: 11.0s;
  animation-delay: -11s
}

.nexa-particle.p27 {
  left: 68%;
  top: 86%;
  animation-duration: 15.8s;
  animation-delay: -3s
}

.nexa-particle.p28 {
  left: 74%;
  top: 18%;
  animation-duration: 13.4s;
  animation-delay: -9s
}

.nexa-particle.p29 {
  left: 80%;
  top: 62%;
  animation-duration: 17.0s;
  animation-delay: -14s
}

.nexa-particle.p30 {
  left: 86%;
  top: 2%;
  animation-duration: 12.6s;
  animation-delay: -6s
}

.nexa-particle.p31 {
  left: 91%;
  top: 78%;
  animation-duration: 14.8s;
  animation-delay: -12s
}

.nexa-particle.p32 {
  left: 97%;
  top: 34%;
  animation-duration: 11.6s;
  animation-delay: -1s
}

@keyframes nexaParticleFloat {
  0% {
    transform: translate3d(0, -40px, 0) scale(.78);
    opacity: 0
  }

  12% {
    opacity: .62
  }

  55% {
    transform: translate3d(10px, 48vh, 0) scale(1)
  }

  82% {
    opacity: .34
  }

  100% {
    transform: translate3d(-8px, 108vh, 0) scale(.92);
    opacity: 0
  }
}

.nexa-auth-shell {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.nexa-auth-brand {
  margin-bottom: 12px;
  justify-content: center;
  opacity: .96
}

.nexa-auth-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(26, 23, 20, .78);
  border: 1px solid rgba(201, 170, 119, .2);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(24px) saturate(120%);
}

.nexa-auth-card h2 {
  font-size: 25px;
  margin-bottom: 5px
}

.nexa-auth-card>p:not(.kicker):not(.nexa-auth-foot) {
  margin-bottom: 14px
}

.nexa-auth-tabs {
  margin-bottom: 13px
}

.nexa-auth-submit {
  margin-top: 13px
}

.nexa-auth-foot {
  margin-top: 12px !important;
  font-size: 8px !important;
}

@keyframes nexaGridDrift {
  0% {
    transform: perspective(800px) rotateX(62deg) translateY(18%) translateX(0)
  }

  50% {
    transform: perspective(800px) rotateX(62deg) translateY(12%) translateX(-24px)
  }

  100% {
    transform: perspective(800px) rotateX(62deg) translateY(18%) translateX(0)
  }
}

@keyframes nexaOrbitA {
  0% {
    transform: rotate(0deg) scale(1)
  }

  50% {
    transform: rotate(180deg) scale(1.02)
  }

  100% {
    transform: rotate(360deg) scale(1)
  }
}

@keyframes nexaOrbitB {
  0% {
    transform: rotate(0deg) scale(1)
  }

  50% {
    transform: rotate(180deg) scale(.985)
  }

  100% {
    transform: rotate(360deg) scale(1)
  }
}

@keyframes nexaBlobA {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1)
  }

  50% {
    transform: translate3d(72px, 36px, 0) scale(1.15)
  }
}

@keyframes nexaBlobB {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1)
  }

  50% {
    transform: translate3d(-84px, 42px, 0) scale(1.1)
  }
}

@keyframes nexaBlobC {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1)
  }

  50% {
    transform: translate3d(20px, -72px, 0) scale(1.16)
  }
}

@media(max-width:760px) {
  .nexa-auth-gate {
    padding: 16px
  }

  .nexa-auth-shell {
    width: min(370px, 100%)
  }

  .nexa-auth-card {
    padding: 20px
  }

  .nexa-ambient-grid {
    opacity: .2
  }

  .blob-a {
    width: 260px;
    height: 260px
  }

  .blob-b {
    width: 300px;
    height: 300px
  }

  .blob-c {
    width: 240px;
    height: 240px
  }
}

@media(prefers-reduced-motion:reduce) {

  .nexa-ambient-grid,
  .nexa-orbit,
  .nexa-blob,
  .nexa-particle {
    animation: none !important
  }

  .nexa-cursor-glow {
    transition: none
  }
}

.app.auth-hidden {
  display: none !important
}

.nexa-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: radial-gradient(circle at 20% 15%, rgba(201, 157, 84, .09), transparent 35%), linear-gradient(135deg, #171613, #0f0e0c);
  color: #efe2c6
}

.nexa-auth-shell {
  width: min(440px, 100%)
}

.nexa-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px
}

.nexa-auth-brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: .08em
}

.nexa-auth-brand span {
  display: block;
  font-size: 10px;
  color: #a69b8d;
  letter-spacing: .12em;
  margin-top: 2px
}

.nexa-auth-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2a241c;
  border: 1px solid #453b2f;
  display: grid;
  place-items: center;
  color: #f0cf67;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22)
}

.nexa-auth-card {
  background: rgba(28, 25, 21, .96);
  border: 1px solid #43392f;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px)
}

.nexa-auth-card h2 {
  margin: 6px 0 6px;
  font-family: Georgia, serif;
  color: #f2e7d6;
  font-size: 27px
}

.nexa-auth-card>p:not(.kicker):not(.nexa-auth-foot) {
  color: #a99d8d;
  font-size: 12px;
  margin: 0 0 18px
}

.nexa-auth-card label {
  display: block;
  color: #aaa091;
  font-size: 10px;
  margin: 11px 0 6px
}

.nexa-auth-card input {
  width: 100%;
  box-sizing: border-box;
  background: #151311;
  border: 1px solid #40372e;
  color: #eee4d5;
  border-radius: 11px;
  padding: 12px 13px;
  outline: none
}

.nexa-auth-card input:focus {
  border-color: #a47f4f;
  box-shadow: 0 0 0 3px rgba(201, 157, 84, .13)
}

.nexa-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #161411;
  border: 1px solid #383027;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 15px
}

.nexa-auth-tabs button {
  border: 0;
  background: transparent;
  color: #8e8375;
  padding: 9px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer
}

.nexa-auth-tabs button.active {
  background: #332c23;
  color: #f1e5d3
}

@keyframes nexaAuthInputShake {

  0%,
  100% {
    transform: translateX(0)
  }

  15% {
    transform: translateX(-6px)
  }

  30% {
    transform: translateX(5px)
  }

  45% {
    transform: translateX(-4px)
  }

  60% {
    transform: translateX(3px)
  }

  75% {
    transform: translateX(-2px)
  }

  90% {
    transform: translateX(1px)
  }
}

.nexa-auth-submit {
  width: 100%;
  margin-top: 15px;
  border: 1px solid #238636;
  background: #3b82f6;
  color: #fff;
  border-radius: 11px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease
}

.nexa-auth-submit:hover {
  background: #fff;
  border-color: #fff;
  color: #2563eb;
  box-shadow: 0 8px 24px rgba(255, 255, 255, .12)
}

.nexa-auth-submit:active {
  transform: translateY(1px)
}

.nexa-auth-submit:disabled {
  opacity: .65;
  cursor: wait
}

.nexa-auth-submit.nexa-auth-submit-error {
  background: #b84f47;
  border-color: #c9635a;
  color: #fff;
  box-shadow: 0 7px 24px rgba(184, 79, 71, .2)
}

.nexa-auth-status {
  min-height: 18px;
  font-size: 11px;
  color: #e2c182;
  margin-top: 10px;
  text-align: center;
  transition: color .18s ease
}

.nexa-auth-status.nexa-auth-status-error {
  color: #e7a59d
}

.nexa-auth-card.nexa-login-error input {
  border-color: #b84f47;
  box-shadow: 0 0 0 3px rgba(184, 79, 71, .12)
}

.nexa-auth-card.nexa-login-error input.nexa-input-error {
  animation: nexaAuthInputShake .42s cubic-bezier(.36, .07, .19, .97)
}

.nexa-auth-card.nexa-login-error input:focus {
  border-color: #d36b61;
  box-shadow: 0 0 0 3px rgba(184, 79, 71, .16)
}

.nexa-auth-foot {
  text-align: center;
  color: #71685d;
  font-size: 11px !important;
  margin-top: 16px !important
}


/* Source style block 18 */

/* STEP 6 — Brainstorm + Knowledge Power-Up */
.brain-step6-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #4a4034;
  border-radius: 999px;
  background: #1f1b17;
  color: #a99b88;
  font-size: 9px;
  letter-spacing: .04em;
  white-space: nowrap
}

.brain-step6-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8cae6a;
  box-shadow: 0 0 0 3px rgba(140, 174, 106, .08)
}

.brain-step6-status.saving .dot {
  background: #e0b45d;
  box-shadow: 0 0 0 3px rgba(224, 180, 93, .09)
}

.brain-step6-status.error .dot {
  background: #b86a64;
  box-shadow: 0 0 0 3px rgba(184, 106, 100, .09)
}

#view-notes .knowledge-step6-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px
}

#view-notes .knowledge-step6-search {
  width: min(250px, 100%);
  padding: 8px 10px;
  border: 1px solid #4a4136;
  border-radius: 9px;
  background: #1d1a17;
  color: #e8dcc9;
  font-size: 11px;
  outline: none
}

#view-notes .knowledge-step6-search::placeholder {
  color: #80766a
}

#view-notes .knowledge-step6-search:focus {
  border-color: #aa8d61;
  box-shadow: 0 0 0 2px rgba(170, 141, 97, .12)
}

#view-notes .knowledge-step6-status {
  font-size: 9px;
  color: #8f8477;
  white-space: nowrap
}

#view-notes .knowledge-step6-count {
  font-size: 9px;
  color: #8f8477;
  letter-spacing: .03em
}

#view-notes .knowledge-step6-empty {
  padding: 24px 16px;
  color: #8d8378;
  font-size: 11px;
  line-height: 1.6
}

#view-notes .note-list-item-v2 {
  transition: background .16s ease, transform .16s ease, border-color .16s ease
}

#view-notes .note-list-item-v2:hover {
  transform: translateX(2px)
}

#view-notes .note-list-item-v2 .note-tag-v6 {
  display: inline-block;
  margin-top: 4px;
  color: #a98d63;
  font-size: 8px;
  letter-spacing: .03em
}

#view-notes .knowledge-step6-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px
}

#view-notes .knowledge-step6-words {
  font-size: 9px;
  color: #8f8477
}

#view-notes .knowledge-step6-save {
  font-size: 9px;
  color: #8f8477;
  opacity: .95
}

#view-notes .knowledge-step6-save.saved {
  color: #8da57a
}

#view-notes .knowledge-step6-save.saving {
  color: #c49c5b
}

#view-notes .knowledge-step6-save.error {
  color: #b9766f
}

@media (max-width:780px) {
  #view-notes .knowledge-step6-tools {
    flex-wrap: wrap
  }

  #view-notes .knowledge-step6-search {
    width: 100%
  }
}


/* Source style block 19 */

.notes-empty-v2 {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center
}

.danger-note-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

/* Newla CUSTOM DIALOG SYSTEM */
.nexa-dialog-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 500;
  background: rgba(5, 4, 3, .68);
  backdrop-filter: blur(10px);
  padding: 18px
}

.nexa-dialog-overlay.show {
  display: grid;
  animation: nexaFadeIn .16s ease
}

.nexa-dialog-card {
  width: min(460px, 100%);
  background: #201d19;
  color: #eee5d7;
  border: 1px solid #40372f;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
  padding: 22px
}

.nexa-dialog-card.light {
  background: #f4ecdf;
  color: #2d281f;
  border-color: #cfbea2
}

.nexa-dialog-kicker {
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #b7a48c;
  margin-bottom: 7px
}

.nexa-dialog-card.light .nexa-dialog-kicker {
  color: #8b7864
}

.nexa-dialog-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
  margin: 0;
  color: #f4eadb
}

.nexa-dialog-card.light .nexa-dialog-title {
  color: #2e271f
}

.nexa-dialog-message {
  font-size: 12px;
  line-height: 1.65;
  color: #a99d8f;
  margin: 10px 0 0;
  white-space: pre-line
}

.nexa-dialog-card.light .nexa-dialog-message {
  color: #75685b
}

.nexa-dialog-input {
  width: 100%;
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid #4a4035;
  background: #171513;
  color: #f2e7d8;
  outline: none;
  font-size: 12px
}

.nexa-dialog-input:focus {
  border-color: #b8925a;
  box-shadow: 0 0 0 3px rgba(184, 146, 90, .14)
}

.nexa-dialog-card.light .nexa-dialog-input {
  background: #fffaf2;
  color: #302820;
  border-color: #cdbda9
}

.nexa-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px
}

.nexa-dialog-btn {
  border: 1px solid #433a31;
  background: transparent;
  color: #e9dfd0;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 10px;
  cursor: pointer
}

.nexa-dialog-btn:hover {
  background: #2b2621
}

.nexa-dialog-card.light .nexa-dialog-btn {
  border-color: #cdbda9;
  color: #493f34
}

.nexa-dialog-card.light .nexa-dialog-btn:hover {
  background: #eee5d8
}

.nexa-dialog-btn.primary {
  background: #e5c37e;
  color: #2c261f;
  border-color: #e5c37e;
  font-weight: 800
}

.nexa-dialog-btn.primary:hover {
  background: #edd08f
}

.nexa-dialog-btn.danger {
  background: #8f4f4a;
  border-color: #9f5e58;
  color: #fff3ed
}

.nexa-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #29241f;
  border: 1px solid #443a2f;
  margin-bottom: 12px;
  color: #e3c17a
}

.nexa-dialog-card.light .nexa-dialog-icon {
  background: #ece1d1;
  border-color: #d4c4b0
}

@keyframes nexaFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:600px) {
  .nexa-dialog-card {
    padding: 18px
  }

  .nexa-dialog-actions {
    flex-direction: column-reverse
  }

  .nexa-dialog-btn {
    width: 100%;
    padding: 11px
  }
}


/* Source style block 20 */

/* FINAL USER-SIDEBAR / PAGE-SCROLL FIX
   Keep the quote spacious, keep the user profile fully visible,
   and let only the navigation absorb very short viewport pressure. */
.sidebar {
  overflow: hidden;
}

.sidebar .nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-right: 2px;
}

.sidebar .nav::-webkit-scrollbar {
  width: 0;
  height: 0
}

/* Restore the quote card proportions and fix the quotation-mark placement. */
.sidebar-quote {
  flex: 0 0 auto;
  margin: 24px 10px 14px;
  padding: 18px 15px 17px;
  position: relative;
}

.sidebar-quote .quote-mark {
  position: absolute;
  left: 14px;
  top: 8px;
  margin: 0;
  padding: 0;
  color: #bda987;
  font-size: 25px;
  line-height: 1;
}

.sidebar-quote p {
  margin: 0;
  padding: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
}

.sidebar-quote small {
  margin-top: 12px
}

/* Do not compress the quote again when the viewport is short. */
.sidebar-tight .sidebar-quote {
  margin: 24px 10px 14px;
  padding: 18px 15px 17px;
}

.sidebar-tight .sidebar-quote p {
  font-size: 14px;
  line-height: 1.55;
  padding-top: 12px
}

.sidebar-tight .sidebar-quote small {
  margin-top: 12px
}

.sidebar-tight .profile {
  padding-top: 12px;
  padding-bottom: 4px;
  min-height: 64px
}

/* Keep the account row calm: no glowing aura. */
.sidebar .avatar {
  border-color: rgba(201, 157, 84, .18);
  box-shadow: none;
}

.sidebar .avatar:after {
  box-shadow: none;
}

.sidebar .profile strong {
  text-shadow: none
}

/* Dashboard is a page to scroll, not a nested scroll surface. */
.main {
  overscroll-behavior: auto
}

.view-dashboard .task-list {
  max-height: none;
  overflow: visible
}


/* Source style block 21 */

/* TASK MODAL — match the dark Newla dialog language shown in the Clear Workspace dialog. */
#taskModal {
  background: rgba(5, 4, 3, .68) !important;
  backdrop-filter: blur(10px) !important;
}

#taskModal>div {
  width: min(560px, 100%) !important;
  background: #201d19 !important;
  color: #eee5d7 !important;
  border: 1px solid #40372f !important;
  border-radius: 18px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48) !important;
  padding: 22px !important;
}

#taskModal .kicker {
  color: #c9867c !important
}

#taskModal h2 {
  font-family: Georgia, "Times New Roman", serif !important;
  color: #f4eadb !important;
}

#taskModal label {
  color: #a99d8f !important
}

#taskModal label span {
  color: #81766a !important
}

#taskModal input[type="text"],
#taskModal input[type="date"],
#taskModal input[type="time"],
#taskModal textarea,
#taskModal select {
  background: #171513 !important;
  color: #f2e7d8 !important;
  border: 1px solid #433a31 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

#taskModal input::placeholder,
#taskModal textarea::placeholder {
  color: #8d8275 !important
}

#taskModal input:focus,
#taskModal textarea:focus,
#taskModal select:focus {
  border-color: #b8925a !important;
  box-shadow: 0 0 0 3px rgba(184, 146, 90, .12) !important;
  outline: none !important;
}

#taskModal form>p {
  color: #a99d8f !important
}

#closeTaskModal {
  background: #f4ecdf !important;
  color: #2e2922 !important;
  border: 1px solid #cfbea2 !important;
}

#cancelTask {
  background: #f4ecdf !important;
  color: #2e2922 !important;
  border: 1px solid #cfbea2 !important;
}

#cancelTask:hover,
#closeTaskModal:hover {
  background: #eee5d8 !important
}

#taskModal .btn-dark {
  background: #e5c37e !important;
  color: #2c261f !important;
  border: 1px solid #e5c37e !important;
  font-weight: 800 !important;
}

#taskModal .btn-dark:hover {
  background: #edd08f !important
}

#taskModal .btn-danger {
  background: #8f4f4a !important;
  color: #fff3ed !important;
  border-color: #9f5e58 !important;
}

@media(max-width:600px) {
  #taskModal>div {
    padding: 18px !important;
    border-radius: 16px !important
  }
}


/* Source style block 22 */

/* Step 11 Calendar redesign — inspired by the supplied reference while preserving Newla behavior. */
#view-calendar .calendar-shell-v11 {
  display: flex;
  flex-direction: column;
  gap: 18px
}

#view-calendar .calendar-topbar-v11 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap
}

#view-calendar .calendar-topbar-v11 h1 {
  margin: 0
}

#view-calendar .calendar-controls-v11 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

#view-calendar .calendar-control-v11,
#view-calendar .calendar-mode-v11 {
  height: 40px;
  border: 1px solid #3a332b;
  background: #171512;
  color: #e8ddce;
  border-radius: 9px;
  padding: 0 14px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px
}

#view-calendar .calendar-control-v11:hover,
#view-calendar .calendar-mode-v11:hover {
  border-color: #5b4b3b;
  background: #211e19
}

#view-calendar .calendar-today-v11 {
  min-width: 86px
}

#view-calendar .calendar-icon-v11 {
  width: 40px;
  padding: 0
}

#view-calendar .calendar-mode-v11 {
  min-width: 74px
}

#view-calendar .calendar-mode-v11.active {
  border-color: #b8743d;
  background: #211c17;
  box-shadow: inset 0 -2px 0 #b8743d
}

#view-calendar .calendar-layout-v11 {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start
}

#view-calendar .calendar-sidebar-v11 {
  display: grid;
  gap: 14px
}

#view-calendar .calendar-mini-v11,
#view-calendar .calendar-upcoming-v11 {
  border: 1px solid #352f28;
  background: #161411;
  border-radius: 12px;
  padding: 14px
}

#view-calendar .calendar-mini-head-v11 {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #efe4d4
}

#view-calendar .calendar-mini-head-v11 strong {
  text-align: center;
  font-size: 14px
}

#view-calendar .calendar-mini-nav-v11 {
  width: 28px;
  height: 28px;
  border: 1px solid #39332c;
  background: transparent;
  color: #dcd0c1;
  border-radius: 7px;
  display: grid;
  place-items: center
}

#view-calendar .calendar-mini-nav-v11:hover {
  background: #211d18;
  border-color: #5a4c3c
}

#view-calendar .calendar-mini-grid-v11 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px
}

#view-calendar .calendar-mini-headcell-v11 {
  font-size: 8px;
  letter-spacing: .08em;
  text-align: center;
  color: #7f7569;
  padding: 3px 0 7px
}

#view-calendar .calendar-mini-day-v11 {
  position: relative;
  height: 28px;
  border: 0;
  background: transparent;
  color: #d9ccbc;
  border-radius: 7px;
  font-size: 9px
}

#view-calendar .calendar-mini-day-v11:hover {
  background: #242019
}

#view-calendar .calendar-mini-day-v11.muted {
  color: #4e4841
}

#view-calendar .calendar-mini-day-v11.today {
  background: #f07d3b;
  color: #fff;
  border-radius: 50%
}

#view-calendar .calendar-mini-day-v11.has-event:not(.today)::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d88852;
  transform: translateX(-50%)
}

#view-calendar .calendar-upcoming-v11 {
  padding-bottom: 12px
}

#view-calendar .calendar-side-title-v11 {
  font-size: 13px;
  font-weight: 700;
  color: #efe4d4;
  margin-bottom: 10px
}

#view-calendar .calendar-upcoming-item-v11 {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #e4d9ca;
  text-align: left;
  border-radius: 8px
}

#view-calendar .calendar-upcoming-item-v11:hover {
  background: #211d18
}

#view-calendar .upcoming-dot-v11 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none
}

#view-calendar .dot-high {
  background: #d7845b
}

.dot-medium {
  background: #d49b61
}

.dot-low {
  background: #81a766
}

#view-calendar .upcoming-copy-v11 {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

#view-calendar .upcoming-copy-v11 strong {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

#view-calendar .upcoming-copy-v11 small {
  font-size: 9px;
  color: #82786d
}

#view-calendar .calendar-empty-v11 {
  padding: 10px 4px;
  font-size: 10px;
  color: #71685d
}

#view-calendar .calendar-full-link-v11 {
  border: 0;
  background: transparent;
  color: #d67b3d;
  font-size: 10px;
  margin-top: 8px;
  padding: 8px 4px;
  cursor: pointer
}

#view-calendar .calendar-full-link-v11:hover {
  text-decoration: underline
}

#view-calendar .calendar-shell-v11.full-calendar-v11 .calendar-layout-v11 {
  grid-template-columns: minmax(0, 1fr)
}

#view-calendar .calendar-shell-v11.full-calendar-v11 .calendar-sidebar-v11 {
  display: none
}

#view-calendar .calendar-shell-v11.full-calendar-v11 .calendar-main-v11 {
  width: 100%
}

#view-calendar .calendar-main-v11 {
  border: 1px solid #352f28;
  background: #161411;
  border-radius: 12px;
  overflow: hidden
}

#view-calendar .calendar-main-head-v11 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #302a24
}

#view-calendar .calendar-main-head-v11 h2 {
  margin: 0;
  font-size: 24px;
  color: #efe5d8
}

#view-calendar .calendar-main-head-v11 p {
  margin: 5px 0 0;
  color: #83786b;
  font-size: 11px
}

#view-calendar .calendar-legend-v11 {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #81786c;
  font-size: 9px
}

#view-calendar .legend-dot-v11 {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px
}

#view-calendar .dot-task {
  background: #d97f48
}

.dot-focus {
  background: #6d9bd2
}

.dot-proof {
  background: #c18ae2
}

#view-calendar .calendar-grid-v11 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #12110f
}

#view-calendar .calendar-day-head-v11 {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #2b2722;
  border-bottom: 1px solid #2b2722;
  color: #857a6e;
  font-size: 10px
}

#view-calendar .calendar-cell-v11 {
  min-height: 132px;
  padding: 10px;
  border-right: 1px solid #29251f;
  border-bottom: 1px solid #29251f;
  background: #151310
}

#view-calendar .calendar-cell-v11:nth-child(7n) {
  border-right: 0
}

#view-calendar .calendar-cell-v11.muted {
  background: #12110f;
  color: #4b453f
}

#view-calendar .calendar-cell-v11.today {
  background: #191613;
  box-shadow: inset 0 0 0 2px rgba(215, 123, 58, .72)
}

#view-calendar .calendar-cell-top-v11 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

#view-calendar .calendar-day-num-v11 {
  font-size: 12px;
  font-weight: 700;
  color: #e6dbcb
}

#view-calendar .calendar-cell-v11.muted .calendar-day-num-v11 {
  color: #4a443d
}

#view-calendar .calendar-today-dot-v11 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f07d3b
}

#view-calendar .calendar-events-v11 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px
}

#view-calendar .calendar-event-v11 {
  max-width: 100%;
  width: auto;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 6px 7px;
  text-align: left;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 9px;
  line-height: 1.2;
  color: #f1e9df;
  background: #2a241e
}

#view-calendar .calendar-event-v11:hover {
  filter: brightness(1.12)
}

#view-calendar .calendar-event-v11 span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

#view-calendar .calendar-event-v11 small {
  font-size: 8px;
  color: #a89c8e
}

#view-calendar .calendar-event-v11.chip-high {
  border-left: 3px solid #d98456;
  background: #30231d
}

#view-calendar .calendar-event-v11.chip-medium {
  border-left: 3px solid #d69b62;
  background: #2a251e
}

#view-calendar .calendar-event-v11.chip-low {
  border-left: 3px solid #7ca366;
  background: #1f271f
}

#view-calendar .calendar-more-v11 {
  border: 0;
  background: transparent;
  color: #9b8e7f;
  font-size: 8px;
  padding: 2px 0
}

#view-calendar .calendar-week-head-v11 {
  min-height: 54px;
  padding: 8px 10px;
  border-right: 1px solid #29251f;
  border-bottom: 1px solid #2b2722;
  background: #161411;
  display: flex;
  flex-direction: column;
  gap: 3px
}

#view-calendar .calendar-week-head-v11 small {
  font-size: 9px;
  color: #847a6d;
  text-transform: uppercase
}

#view-calendar .calendar-week-head-v11 strong {
  font-size: 16px;
  color: #e8ddd0
}

#view-calendar .calendar-week-head-v11.today {
  background: #1b1814;
  box-shadow: inset 0 -2px 0 #d77d42
}

#view-calendar .calendar-week-cell-v11 {
  min-height: 320px;
  padding: 10px;
  border-right: 1px solid #29251f;
  background: #151310
}

#view-calendar .calendar-empty-slot-v11 {
  font-size: 9px;
  color: #514b44;
  padding: 8px 4px
}

#view-calendar .calendar-day-view-v11 {
  grid-column: 1/-1;
  padding: 22px;
  min-height: 420px;
  background: #151310
}

#view-calendar .calendar-day-view-head-v11 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #2d2822;
  padding-bottom: 14px;
  margin-bottom: 14px
}

#view-calendar .calendar-day-view-head-v11 small {
  display: block;
  color: #847a6e;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 4px
}

#view-calendar .calendar-day-view-head-v11 strong {
  font-size: 24px;
  color: #efe4d4
}

#view-calendar .calendar-day-view-head-v11 span {
  font-size: 10px;
  color: #81776b
}

#view-calendar .calendar-day-view-list-v11 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px
}

#view-calendar .calendar-day-view-list-v11 .calendar-event-v11 {
  min-width: 220px
}

body.light #view-calendar .calendar-control-v11,
body.light #view-calendar .calendar-mode-v11,
body.light #view-calendar .calendar-mini-v11,
body.light #view-calendar .calendar-upcoming-v11,
body.light #view-calendar .calendar-main-v11 {
  background: #f7efe4;
  color: #352e26;
  border-color: #d3c3ab
}

body.light #view-calendar .calendar-control-v11,
body.light #view-calendar .calendar-mode-v11 {
  color: #42382d
}

body.light #view-calendar .calendar-mode-v11.active {
  background: #eee1d0;
  border-color: #a47b4c;
  box-shadow: inset 0 -2px 0 #a47b4c
}

body.light #view-calendar .calendar-main-head-v11 {
  border-bottom-color: #d8c9b3
}

body.light #view-calendar .calendar-main-head-v11 h2 {
  color: #302920
}

body.light #view-calendar .calendar-main-head-v11 p {
  color: #776a5d
}

body.light #view-calendar .calendar-grid-v11 {
  background: #eee7dc
}

body.light #view-calendar .calendar-day-head-v11 {
  border-color: #ddd1bf;
  color: #756a5d
}

body.light #view-calendar .calendar-cell-v11 {
  background: #fbf7f0;
  border-color: #ddd1bf
}

body.light #view-calendar .calendar-cell-v11.muted {
  background: #f1eadf
}

body.light #view-calendar .calendar-day-num-v11 {
  color: #3e352b
}

body.light #view-calendar .calendar-cell-v11.muted .calendar-day-num-v11 {
  color: #a29586
}

body.light #view-calendar .calendar-event-v11 {
  color: #3f352a;
  background: #efe3d1
}

body.light #view-calendar .calendar-event-v11 small {
  color: #8a7b6a
}

body.light #view-calendar .calendar-event-v11.chip-high {
  background: #f0ded2;
  border-left-color: #b96e69
}

body.light #view-calendar .calendar-event-v11.chip-medium {
  background: #f1e6d5;
  border-left-color: #b88a52
}

body.light #view-calendar .calendar-event-v11.chip-low {
  background: #e6eddc;
  border-left-color: #6f8f60
}

body.light #view-calendar .calendar-week-head-v11,
body.light #view-calendar .calendar-week-cell-v11,
body.light #view-calendar .calendar-day-view-v11 {
  background: #fbf7f0;
  border-color: #ddd1bf
}

@media(max-width:1100px) {
  #view-calendar .calendar-layout-v11 {
    grid-template-columns: 230px minmax(0, 1fr)
  }

  #view-calendar .calendar-cell-v11 {
    min-height: 112px
  }
}

@media(max-width:820px) {
  #view-calendar .calendar-layout-v11 {
    grid-template-columns: 1fr
  }

  #view-calendar .calendar-sidebar-v11 {
    grid-template-columns: 1fr 1fr
  }

  #view-calendar .calendar-cell-v11 {
    min-height: 96px;
    padding: 7px
  }

  #view-calendar .calendar-main-head-v11 {
    padding: 14px
  }

  #view-calendar .calendar-legend-v11 {
    display: none
  }
}

@media(max-width:640px) {
  #view-calendar .calendar-topbar-v11 {
    align-items: flex-start
  }

  #view-calendar .calendar-controls-v11 {
    width: 100%
  }

  #view-calendar .calendar-sidebar-v11 {
    grid-template-columns: 1fr
  }

  #view-calendar .calendar-day-head-v11 {
    font-size: 8px
  }

  #view-calendar .calendar-cell-v11 {
    min-height: 88px
  }

  .calendar-event-v11 {
    font-size: 8px !important;
    padding: 5px !important
  }

  .calendar-event-v11 span {
    max-width: 90px
  }
}


/* Source style block 23 */

.sidebar .brand.brand-logo-only {
  box-sizing: border-box !important;
  height: 88px !important;
  min-height: 88px !important;
  padding: 10px 16px 12px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.sidebar .brand.brand-logo-only .brand-logo-image {
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  max-width: 222px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.app.sidebar-collapsed .sidebar .brand.brand-logo-only {
  height: 64px !important;
  min-height: 64px !important;
  padding: 8px !important;
}

.app.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-image {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}


/* Source style block 24 */

.sidebar .brand.brand-logo-only {
  width: 100% !important;
  min-height: 92px !important;
  padding: 0 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.sidebar .brand.brand-logo-only .brand-logo-image {
  display: block !important;
  width: 200px !important;
  height: 70px !important;
  max-width: 200px !important;
  max-height: 70px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.app.sidebar-collapsed .sidebar .brand.brand-logo-only {
  min-height: 58px !important;
  padding-bottom: 14px !important;
}

.app.sidebar-collapsed .sidebar .brand.brand-logo-only .brand-logo-image {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}


/* Source style block 25 */

/* Replace the old auth branding with the supplied NEWLA logo in the lower slot. */
.nexa-auth-brand {
  display: none !important;
}

.nexa-auth-logo-slot {
  width: min(300px, 78vw);
  height: 82px;
  margin: 10px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  isolation: isolate;
  animation: newlaLogoFloat 3.2s ease-in-out infinite;
}

.nexa-auth-logo-slot::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 58%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(226, 193, 130, .18), transparent 68%);
  filter: blur(16px);
  opacity: .75;
  z-index: -1;
  animation: newlaLogoGlow 1.9s ease-in-out infinite alternate;
}

.nexa-auth-logo-slot::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 193, 130, .35), transparent);
  opacity: .75;
  animation: newlaLogoSweep 2.4s ease-in-out infinite;
}

.nexa-auth-logo-image {
  display: block !important;
  position: relative;
  left: -10px;
  width: min(285px, 76vw) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
  animation: newlaLogoPulse 2.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes newlaLogoFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-3px)
  }
}

@keyframes newlaLogoPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28))
  }

  50% {
    transform: scale(1.018);
    filter: drop-shadow(0 10px 24px rgba(226, 193, 130, .14))
  }
}

@keyframes newlaLogoGlow {
  0% {
    opacity: .48;
    transform: translateY(-50%) scale(.94)
  }

  100% {
    opacity: .88;
    transform: translateY(-50%) scale(1.05)
  }
}

@keyframes newlaLogoSweep {

  0%,
  100% {
    opacity: .25;
    transform: scaleX(.7)
  }

  50% {
    opacity: .8;
    transform: scaleX(1)
  }
}

@media(max-width:760px) {
  .nexa-auth-logo-slot {
    width: min(280px, 82vw);
    height: 72px;
    margin-top: 4px;
    margin-bottom: 12px
  }

  .nexa-auth-logo-image {
    left: -8px;
    width: min(260px, 78vw) !important;
    max-height: 64px !important
  }
}

@media(prefers-reduced-motion:reduce) {

  .nexa-auth-logo-slot,
  .nexa-auth-logo-image,
  .nexa-auth-logo-slot::before,
  .nexa-auth-logo-slot::after {
    animation: none !important
  }
}


/* Source style block 26 */

/* Final auth visual polish: larger logo, faster motion, warmer site-matched background. */
.nexa-auth-gate {
  background:
    radial-gradient(circle at 50% 8%, rgba(226, 193, 130, .055), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(166, 128, 78, .055), transparent 26%),
    linear-gradient(135deg, #171613 0%, #12110f 52%, #0f0e0c 100%) !important;
  color: #efe2c6 !important;
}

.nexa-ambient {
  background:
    radial-gradient(circle at 50% 48%, rgba(226, 193, 130, .055), transparent 38%),
    linear-gradient(125deg, #171613 0%, #14120f 50%, #0f0e0c 100%) !important;
}

.nexa-ambient-grid {
  opacity: .18 !important;
  background-image:
    linear-gradient(rgba(220, 191, 140, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 191, 140, .055) 1px, transparent 1px) !important;
}

.blob-a {
  background: rgba(198, 154, 85, .24) !important;
  animation-duration: 9s !important;
}

.blob-b {
  background: rgba(143, 112, 74, .12) !important;
  animation-duration: 11s !important;
}

.blob-c {
  background: rgba(181, 141, 81, .09) !important;
  animation-duration: 10s !important;
}

.orbit-a {
  animation-duration: 14s !important;
}

.orbit-b {
  animation-duration: 11s !important;
}

.nexa-auth-logo-slot {
  width: min(410px, 84vw) !important;
  height: 108px !important;
  margin: 2px auto 14px !important;
  animation: newlaLogoFloatFast 1.55s ease-in-out infinite !important;
}

.nexa-auth-logo-slot::before {
  left: 4% !important;
  right: 4% !important;
  height: 72% !important;
  background: radial-gradient(ellipse at center, rgba(226, 193, 130, .20), transparent 70%) !important;
  filter: blur(18px) !important;
  animation: newlaLogoGlowFast 1.35s ease-in-out infinite alternate !important;
}

.nexa-auth-logo-slot::after {
  left: 10% !important;
  right: 10% !important;
  bottom: -1px !important;
  animation: newlaLogoSweepFast 1.5s ease-in-out infinite !important;
}

.nexa-auth-logo-image {
  width: min(395px, 82vw) !important;
  max-height: 96px !important;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .34)) !important;
  animation: newlaLogoPulseFast 1.55s ease-in-out infinite !important;
}

@keyframes newlaLogoFloatFast {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-5px)
  }
}

@keyframes newlaLogoPulseFast {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .34))
  }

  50% {
    transform: scale(1.028);
    filter: drop-shadow(0 12px 30px rgba(226, 193, 130, .18))
  }
}

@keyframes newlaLogoGlowFast {
  0% {
    opacity: .42;
    transform: translateY(-50%) scale(.90)
  }

  100% {
    opacity: .90;
    transform: translateY(-50%) scale(1.07)
  }
}

@keyframes newlaLogoSweepFast {

  0%,
  100% {
    opacity: .15;
    transform: scaleX(.58)
  }

  50% {
    opacity: .92;
    transform: scaleX(1)
  }
}

.nexa-google-btn {
  background: #1f1c18 !important;
  border-color: #4a4035 !important;
  color: #eee5d8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  min-height: 46px !important;
}

.nexa-google-btn:hover {
  background: #25211c !important;
  border-color: #615444 !important;
}

.nexa-google-mark {
  width: 23px !important;
  height: 23px !important;
  flex: 0 0 23px !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

@media(max-width:760px) {
  .nexa-auth-logo-slot {
    width: min(360px, 88vw) !important;
    height: 92px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .nexa-auth-logo-image {
    width: min(350px, 86vw) !important;
    max-height: 82px !important;
  }
}

@media(prefers-reduced-motion:reduce) {

  .nexa-auth-logo-slot,
  .nexa-auth-logo-image,
  .nexa-auth-logo-slot::before,
  .nexa-auth-logo-slot::after {
    animation: none !important
  }

  .nexa-ambient-grid,
  .nexa-orbit,
  .nexa-blob {
    animation: none !important
  }
}



/* ---------- ABOUT / CREATOR ---------- */
#view-settings .setting-about {
  grid-column: 1 / -1;
  min-height: 225px;
}
#view-settings .about-proof-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #5b5145;
  font-size: 12px;
  font-weight: 700;
}
#view-settings .about-proof-line span:nth-child(even) {
  color: #a4937b;
  font-weight: 500;
}
#view-settings .about-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #d9c9af;
}
#view-settings .about-brandline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
#view-settings .about-brandline strong {
  font-family: Georgia, serif;
  font-size: 17px;
  color: #2d2822;
}
#view-settings .about-brandline span {
  color: #8a7c6a;
  font-size: 10px;
}
#view-settings .about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #cfbea1;
  border-radius: 10px;
  color: #574c40;
  background: #fbf5e9;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
  flex: 0 0 auto;
}
#view-settings .about-linkedin svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
#view-settings .about-arrow {
  font-size: 12px;
  line-height: 1;
}
#view-settings .about-linkedin:hover {
  color: #68885d;
  border-color: #8ca981;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 18px rgba(72, 101, 64, .12);
}
body:not(.light) #view-settings .setting-about {
  background: linear-gradient(180deg, #242019 0%, #211e19 100%);
  border-color: #3d372e;
}
body:not(.light) #view-settings .about-proof-line { color: #ded2c1; }
body:not(.light) #view-settings .about-proof-line span:nth-child(even) { color: #9d8d76; }
body:not(.light) #view-settings .about-footer { border-top-color: #3d372e; }
body:not(.light) #view-settings .about-brandline strong { color: #f0e6d7; }
body:not(.light) #view-settings .about-brandline span { color: #9c9080; }
body:not(.light) #view-settings .about-linkedin {
  color: #ded2c1;
  background: #1d1a16;
  border-color: #40382e;
}
body:not(.light) #view-settings .about-linkedin:hover {
  color: #b6d77d;
  border-color: #66805a;
  box-shadow: 0 8px 18px rgba(89, 119, 77, .18);
}
@media (max-width: 760px) {
  #view-settings .setting-about { grid-column: auto; min-height: 0; }
  #view-settings .about-footer { align-items: flex-start; flex-direction: column; }
  #view-settings .about-brandline { flex-wrap: wrap; }
  #view-settings .about-linkedin { width: fit-content; }
}

/* Source style block 27 */

#view-settings .hero-row {
  margin-bottom: 18px
}

#view-settings .hero-note {
  max-width: 560px
}

#view-settings .settings-grid {
  max-width: 1180px;
  gap: 16px
}

#view-settings .setting {
  min-height: 190px;
  padding: 20px;
  background: linear-gradient(180deg, #f4ebdc 0%, #efe4d2 100%);
  border: 1px solid #d5c4a7;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column
}

#view-settings .setting-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px
}

#view-settings .setting-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2a241d;
  color: #e6c77f;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06)
}

#view-settings .setting .kicker {
  margin: 0;
  color: #807464;
  font-size: 10px;
  letter-spacing: .13em
}

#view-settings .setting h3 {
  font-size: 20px;
  line-height: 1.15;
  margin: 0 0 7px;
  color: #2d2822
}

#view-settings .setting>p:not(.kicker) {
  font-size: 11px;
  line-height: 1.6;
  color: #7d7468;
  max-width: 620px;
  margin: 0
}

#view-settings .theme-row {
  margin-top: auto;
  padding-top: 15px
}

#view-settings .theme-row-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

#view-settings .theme-row-segmented .theme-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px
}

#view-settings .theme-choice {
  border: 1px solid #cfbea1;
  background: #fbf5e9;
  color: #433a30;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 11px;
  transition: .18s ease;
  cursor: pointer
}

#view-settings .theme-choice:hover {
  transform: translateY(-1px);
  border-color: #bda67f;
  box-shadow: 0 8px 18px rgba(83, 65, 42, .08)
}

#view-settings .theme-choice span {
  font-weight: 700
}

#view-settings .theme-choice small {
  font-size: 9px;
  color: #8f8271
}

#view-settings .theme-choice.active {
  background: #2b261f;
  color: #f7eddc;
  border-color: #2b261f;
  box-shadow: 0 8px 18px rgba(43, 38, 31, .16)
}

#view-settings .theme-choice.active small {
  color: #bdb0a0
}

#view-settings .setting-action-row {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

#view-settings .setting-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #8a7d6d;
  line-height: 1.3
}

#view-settings .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b8f7e;
  box-shadow: 0 0 0 3px rgba(155, 143, 126, .14);
  flex: 0 0 auto
}

#view-settings .action-primary {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  font-weight: 700
}

#view-settings .action-primary:hover {
  background: #2563eb;
  border-color: #2563eb
}

#view-settings .danger-action {
  border-color: #cba8a1;
  color: #8c4d45;
  background: #fbefeb
}

#view-settings .danger-action:hover {
  border-color: #bb7a70;
  background: #f8e6e1;
  color: #7e3d35
}

#view-settings .shortcut-list {
  margin-top: auto;
  padding-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px
}

#view-settings .shortcut-item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #d6c6ab;
  border-radius: 10px;
  background: rgba(255, 252, 245, .62);
  font-size: 10px;
  color: #5f5549
}

#view-settings .shortcut-item kbd {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #2b261f;
  color: #f4eadc;
  font-size: 9px;
  font-family: inherit;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14)
}

#view-settings .shortcut-item span {
  font-weight: 600
}

#view-settings .shortcut-wide {
  grid-column: 1/-1
}

#view-notes #notesSyncIndicator {
  display: none !important
}

@media(max-width:760px) {
  #view-settings .setting {
    min-height: 0
  }

  #view-settings .setting-action-row {
    align-items: flex-start;
    flex-direction: column
  }

  #view-settings .action-primary {
    width: 100%
  }

  #view-settings .shortcut-list {
    grid-template-columns: 1fr 1fr
  }
}


/* Source style block 28 */

/* SETTINGS: dark mode cards blend into the app instead of looking like paper panels. */
body:not(.light) #view-settings .setting {
  background: linear-gradient(180deg, #201d19 0%, #1c1a17 100%);
  border: 1px solid #332e28;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .018);
}

body:not(.light) #view-settings .setting h3 {
  color: #efe5d8
}

body:not(.light) #view-settings .setting>p:not(.kicker) {
  color: #9a9083
}

body:not(.light) #view-settings .setting .kicker {
  color: #8d8274
}

body:not(.light) #view-settings .theme-choice {
  background: #171512;
  color: #e8ddce;
  border-color: #3a332b;
}

body:not(.light) #view-settings .theme-choice:hover {
  background: #211d19;
  border-color: #5a4b3c;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18)
}

body:not(.light) #view-settings .theme-choice.active {
  background: #2a251f;
  color: #f7eddc;
  border-color: #765d3e;
  box-shadow: inset 0 0 0 1px rgba(214, 163, 92, .15), 0 8px 18px rgba(0, 0, 0, .18)
}

body:not(.light) #view-settings .theme-choice.active small {
  color: #bba996
}

body:not(.light) #view-settings .shortcut-item {
  background: #191714;
  border-color: #393229;
  color: #c8bcad
}

body:not(.light) #view-settings .shortcut-item:hover {
  background: #211e1a;
  border-color: #4c4034
}

body:not(.light) #view-settings .shortcut-item kbd {
  background: #2a251f;
  color: #f1e7da
}

body:not(.light) #view-settings .danger-action {
  background: #251b19;
  border-color: #724942;
  color: #cf8b82
}

body:not(.light) #view-settings .danger-action:hover {
  background: #2b1d1a;
  border-color: #9b5c53;
  color: #e3a098
}

/* CALENDAR: make the workspace feel actionable, not like an empty grid. */
#view-calendar .calendar-today-v11 {
  min-width: 68px;
  background: #211d18;
  border-color: #4a3d31;
  font-weight: 700
}

#view-calendar .calendar-today-v11:hover {
  background: #2a231c;
  border-color: #b8743d;
  color: #f0e2d2
}

#view-calendar .calendar-mode-v11.active {
  background: #2a211a;
  border-color: #b8743d;
  box-shadow: inset 0 -2px 0 #b8743d, 0 6px 16px rgba(184, 116, 61, .10)
}

#view-calendar .calendar-cell-v11 {
  min-height: 118px;
  transition: background .16s ease, box-shadow .16s ease
}

#view-calendar .calendar-cell-v11:hover {
  background: #191613
}

#view-calendar .calendar-cell-v11.muted:hover {
  background: #141310
}

#view-calendar .calendar-cell-actions-v11 {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 12px
}

#view-calendar .calendar-add-day-v11 {
  width: 22px;
  height: 22px;
  border: 1px solid #3b342d;
  border-radius: 7px;
  background: #1b1815;
  color: #9c8e7e;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: translateY(2px);
  transition: .16s ease;
  cursor: pointer
}

#view-calendar .calendar-cell-v11:hover .calendar-add-day-v11,
.calendar-cell-v11.today .calendar-add-day-v11 {
  opacity: 1;
  transform: none
}

#view-calendar .calendar-add-day-v11:hover {
  background: #2a211a;
  border-color: #b8743d;
  color: #f0ddc7
}

#view-calendar .calendar-empty-v11 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 4px 6px;
  color: #82776a
}

#view-calendar .calendar-empty-v11 strong {
  font-size: 11px;
  color: #d6cab9
}

#view-calendar .calendar-empty-v11 span {
  font-size: 9px;
  line-height: 1.5;
  max-width: 210px
}

#view-calendar .calendar-empty-v11 button {
  align-self: flex-start;
  border: 1px solid #4a3d31;
  border-radius: 8px;
  background: #211d18;
  color: #d99157;
  padding: 7px 9px;
  font-size: 9px;
  cursor: pointer
}

#view-calendar .calendar-empty-v11 button:hover {
  background: #2a231c;
  border-color: #b8743d;
  color: #f0e2d2
}

#view-calendar .calendar-main-head-v11 {
  padding: 16px 20px
}

#view-calendar .calendar-main-head-v11 h2 {
  font-size: 22px
}

#view-calendar .calendar-full-link-v11 {
  margin-top: 6px
}

#view-calendar .calendar-upcoming-v11 {
  min-height: 144px
}

#view-calendar .calendar-upcoming-v11:has(.calendar-upcoming-item-v11) .calendar-full-link-v11 {
  margin-top: 5px
}

@media(max-width:820px) {
  #view-calendar .calendar-cell-v11 {
    min-height: 96px
  }
}

@media(max-width:640px) {
  #view-calendar .calendar-cell-v11 {
    min-height: 86px
  }

  .calendar-add-day-v11 {
    opacity: 1 !important;
    transform: none !important;
    width: 20px !important;
    height: 20px !important
  }
}


/* Source style block 29 */

/* LIGHT/PAPER MODE CONTRAST + CALENDAR ALIGNMENT FINAL */
body.light .brand-title,
body.light .brand-sub,
body.light .nav-btn,
body.light .nav-btn .nav-icon,
body.light .breadcrumb,
body.light .clock,
body.light .top-btn,
body.light .profile,
body.light .profile small,
body.light .settings-grid,
body.light #view-calendar,
body.light #view-notes,
body.light #view-tasks,
body.light #view-proofs,
body.light #view-knowledge,
body.light #view-dashboard,
body.light #view-brainstorm {
  color: #2d281f !important;
}

/* Brand/logo: keep actual logo visible on paper background */
body.light .sidebar .brand-logo-image {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.light .sidebar .brand-logo-only {
  background: transparent !important;
}

/* General light-mode typography that was inheriting cream/white */
body.light .main h1,
body.light .main h2,
body.light .main h3,
body.light .main h4,
body.light .main strong,
body.light .main b {
  color: #2d281f !important;
}

body.light .main p,
body.light .main label,
body.light .main small,
body.light .main .kicker,
body.light .main .muted,
body.light .main .subtle {
  color: #6f6559 !important;
}

/* Brainstorm / white-board chrome: dark text on paper */
body.light .brain-ref-topbar,
body.light .brain-ref-toolbar,
body.light .brain-draw-toolbar {
  color: #2d281f !important;
  background: #f4ecdf !important;
  border-color: #d5c5ab !important;
}

body.light .brain-ref-header-title h1 {
  color: #2d281f !important;
  text-shadow: none !important;
}

body.light .brain-ref-header-title p {
  color: #75695b !important;
}

body.light .brain-ref-chrome-btn,
body.light .brain-ref-tool {
  color: #3c342a !important;
  background: #fffaf2 !important;
  border-color: #d2c1a8 !important;
  box-shadow: none !important;
}

body.light .brain-ref-chrome-btn.dark {
  color: #fffaf2 !important;
  background: #8b6c45 !important;
  border-color: #8b6c45 !important;
}

body.light .brain-ref-tool.active {
  color: #fff !important;
  background: #6f5738 !important;
  border-color: #6f5738 !important;
  box-shadow: none !important;
}

body.light .brain-ref-tool:hover,
body.light .brain-ref-chrome-btn:hover {
  color: #2d281f !important;
  background: #efe5d5 !important;
  border-color: #bca583 !important;
}

body.light .brain-ref-workspace {
  background: #e8ddcb !important;
}

body.light .brain-ref-canvas-grid {
  background-color: #eee4d5 !important;
  background-image: radial-gradient(circle, #b7a995 1px, transparent 1px) !important;
  opacity: .65 !important;
}

body.light .brain-ref-board,
body.light .brain-ref-wires {
  color: #2d281f !important;
}

body.light .board-tool {
  color: #3c342a !important;
  background: #fffaf2 !important;
  border-color: #d2c1a8 !important;
}

body.light .board-tool.active {
  background: #6f5738 !important;
  color: #fff !important;
  border-color: #6f5738 !important;
}

body.light .board-floating {
  background: #fffaf2 !important;
  color: #3c342a !important;
  border-color: #d2c1a8 !important;
}

/* Calendar header controls: same vertical rhythm */
#view-calendar .calendar-topbar-v11 {
  align-items: center !important;
}

#view-calendar .calendar-controls-v11 {
  align-items: center !important;
}

#view-calendar .calendar-control-v11,
#view-calendar .calendar-mode-v11,
#view-calendar .calendar-today-v11 {
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  transform: none !important;
}

#view-calendar .calendar-mode-v11.active {
  box-shadow: inset 0 -2px 0 #b8743d !important;
}

#view-calendar .calendar-mode-v11.active:hover {
  box-shadow: inset 0 -2px 0 #b8743d !important;
}

#view-calendar .calendar-today-v11 {
  box-shadow: none !important;
}

#view-calendar .calendar-today-v11:hover {
  box-shadow: 0 0 0 1px rgba(184, 116, 61, .35) !important;
}

/* Remove orange aura/glow on static calendar/month controls; show it only on hover */
#view-calendar .calendar-control-v11,
#view-calendar .calendar-mode-v11,
#view-calendar .calendar-mini-nav-v11 {
  box-shadow: none !important;
}

#view-calendar .calendar-control-v11:hover,
#view-calendar .calendar-mode-v11:hover,
#view-calendar .calendar-mini-nav-v11:hover {
  box-shadow: 0 0 0 1px rgba(184, 116, 61, .28) !important;
}

/* Paper mode calendar contrast */
body.light #view-calendar .calendar-control-v11,
body.light #view-calendar .calendar-mode-v11 {
  background: #fbf7f0 !important;
  color: #3d352c !important;
  border-color: #d2c1a8 !important;
}

body.light #view-calendar .calendar-control-v11:hover,
body.light #view-calendar .calendar-mode-v11:hover {
  background: #efe5d6 !important;
  color: #2d281f !important;
  border-color: #bca583 !important;
  box-shadow: 0 0 0 1px rgba(139, 108, 69, .28) !important;
}

body.light #view-calendar .calendar-mode-v11.active {
  background: #eadbc7 !important;
  color: #2d281f !important;
  border-color: #9d7a4e !important;
  box-shadow: inset 0 -2px 0 #9d7a4e !important;
}

body.light #view-calendar .calendar-mini-v11,
body.light #view-calendar .calendar-upcoming-v11,
body.light #view-calendar .calendar-main-v11 {
  background: #f7efe3 !important;
  border-color: #d2c1a8 !important;
}

body.light #view-calendar .calendar-mini-head-v11,
body.light #view-calendar .calendar-mini-head-v11 strong,
body.light #view-calendar .calendar-main-head-v11 h2 {
  color: #2d281f !important;
}

body.light #view-calendar .calendar-main-head-v11 p,
body.light #view-calendar .calendar-day-head-v11,
body.light #view-calendar .calendar-empty-v11 {
  color: #75695b !important;
}

body.light #view-calendar .calendar-cell-v11,
body.light #view-calendar .calendar-week-head-v11,
body.light #view-calendar .calendar-week-cell-v11,
body.light #view-calendar .calendar-day-view-v11 {
  background: #fbf7f0 !important;
  border-color: #ddd1bf !important;
  color: #3d352c !important;
}

body.light #view-calendar .calendar-cell-v11:hover {
  background: #f2e8da !important;
  border-color: #bca583 !important;
}

body.light #view-calendar .calendar-cell-v11.today {
  box-shadow: inset 0 0 0 2px #9d7a4e !important;
}

body.light #view-calendar .calendar-legend-v11 {
  color: #75695b !important;
}

@media (prefers-reduced-motion: reduce) {

  #view-calendar .calendar-control-v11,
  #view-calendar .calendar-mode-v11,
  #view-calendar .calendar-mini-nav-v11 {
    transition: none !important;
  }
}


/* Source style block 30 */

/* ---------- FINAL PASS 4–7: hierarchy / contrast / spacing / theme audit ---------- */
:root {
  --type-display: clamp(30px, 3vw, 40px);
  --type-h1: clamp(24px, 2.4vw, 32px);
  --type-h2: 18px;
  --type-h3: 14px;
  --type-body: 12px;
  --type-meta: 10px;
  --type-kicker: 9px;
  --space-section: 24px;
  --space-card: 16px;
  --space-control: 10px;
}

/* 4. Card / section hierarchy */
.panel-head h2,
.panel-head strong {
  font-size: var(--type-h2);
  font-weight: 800;
  letter-spacing: -.02em
}

.panel-head p {
  font-size: var(--type-meta);
  line-height: 1.45
}

.dark-card h3,
.setting h3,
.proof-card h3,
.focus-card h2 {
  font-weight: 800;
  letter-spacing: -.015em
}

.setting h3 {
  font-size: 15px
}

.setting p {
  font-size: 11px;
  line-height: 1.55
}

.task-title {
  font-size: 16px;
  line-height: 1.32;
  font-weight: 780
}

.task-desc {
  font-size: 11px;
  line-height: 1.5
}

.stat strong {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1
}

.stat span,
.kicker,
.section-kicker {
  font-size: var(--type-kicker);
  font-weight: 800;
  letter-spacing: .14em
}

.proof-card h3 {
  font-size: 14px;
  line-height: 1.32
}

.proof-card p {
  font-size: 10px;
  line-height: 1.45
}

/* 5. Body + metadata contrast tune */
body:not(.light) {
  --text-main: #eee6d9;
  --text-body: #b9b0a4;
  --text-meta: #8f877c;
  --text-faint: #746d64;
}

body:not(.light) .task-desc,
body:not(.light) .dark-card p,
body:not(.light) .setting p,
body:not(.light) .focus-description,
body:not(.light) .hero-note,
body:not(.light) .note-preview-v2,
body:not(.light) .calendar-agenda-meta,
body:not(.light) .calendar-agenda-time {
  color: var(--text-body)
}

body:not(.light) .task-meta,
body:not(.light) .badge,
body:not(.light) .stat small,
body:not(.light) .proof-card p,
body:not(.light) .command-item small,
body:not(.light) .v2-progress-meta,
body:not(.light) .proof-extra-v2 {
  color: var(--text-meta)
}

body:not(.light) .kicker,
.body:not(.light) .kicker {
  color: #9f9588
}

body.light {
  --text-main: #2d281f;
  --text-body: #5f574d;
  --text-meta: #74695d;
  --text-faint: #8c8173;
}

body.light .dark-card h3,
body.light .stat strong,
body.light .task-title,
body.light .setting h3,
body.light .proof-card h3,
body.light .panel-head h2,
body.light .panel-head strong,
body.light .focus-card h2 {
  color: var(--text-main)
}

body.light .dark-card p,
body.light .task-desc,
body.light .setting p,
body.light .focus-description,
body.light .hero-note,
body.light .calendar-agenda-meta,
body.light .calendar-agenda-time {
  color: var(--text-body)
}

body.light .stat small,
body.light .proof-card p,
body.light .command-item small,
body.light .v2-progress-meta,
body.light .proof-extra-v2,
body.light .task-empty {
  color: var(--text-meta)
}

body.light .kicker,
.body.light .kicker {
  color: #6f6458
}

body.light .badge {
  color: #665c51
}

body.light input::placeholder,
body.light textarea::placeholder {
  color: #817568;
  opacity: .85
}

/* 6. Spacing alignment */
.content {
  padding-top: 28px
}

.hero-row {
  margin-bottom: 18px
}

.hero-row h1 {
  line-height: 1.08
}

.grid-2,
.grid-3,
.v2-dashboard-grid {
  gap: 16px
}

.settings-grid {
  gap: 16px
}

.stat-row {
  gap: 12px;
  margin: 18px 0 18px
}

.dark-card,
.stat,
.setting,
.task-card,
.proof-card {
  margin: 0
}

.dark-card,
.stat {
  padding: 16px
}

.setting {
  padding: 18px
}

.panel-pad {
  padding: 18px
}

.task-list {
  gap: 10px
}

.task-meta {
  gap: 6px;
  margin-top: 9px
}

.task-actions {
  gap: 7px;
  margin-top: 10px
}

.theme-row {
  gap: 8px;
  margin-top: 13px
}

.notes-empty-v2 {
  margin: 10px
}

/* Keep section rhythm intentional across pages */
.view>.panel-light+.panel-light {
  margin-top: 16px
}

.panel-head {
  min-height: 56px
}

.panel-head>div {
  display: flex;
  flex-direction: column;
  gap: 3px
}

/* 7. Dark + Paper mode contrast audit: borders, controls and focus states */
body:not(.light) .panel-light {
  border-color: #342f29
}

body:not(.light) .setting {
  background: linear-gradient(145deg, #211f1b, #1d1b18);
  border-color: #353029;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .02)
}

body:not(.light) .setting:hover {
  border-color: #423a31
}

body:not(.light) .theme-choice,
body:not(.light) .btn-light,
body:not(.light) .top-btn,
body:not(.light) .task-action {
  background: #1f1d19;
  color: #e5dccf;
  border-color: #3a342c
}

body:not(.light) input,
body:not(.light) textarea,
body:not(.light) select {
  color: #eee6d9
}

body:not(.light) input:focus,
body:not(.light) textarea:focus,
body:not(.light) select:focus {
  border-color: #6c5a43;
  box-shadow: 0 0 0 3px rgba(201, 157, 84, .06)
}

body.light .panel-light {
  border-color: #d0c1ad;
  box-shadow: 0 12px 30px rgba(81, 57, 32, .08)
}

body.light .setting {
  background: linear-gradient(145deg, #f6eee2, #eee5d8);
  border-color: #d0c1ad;
  box-shadow: 0 10px 24px rgba(81, 57, 32, .07), inset 0 1px 0 rgba(255, 255, 255, .42)
}

body.light .setting:hover {
  border-color: #c2b29e
}

body.light .theme-choice,
body.light .btn-light,
body.light .top-btn,
body.light .task-action {
  background: #fbf6ee;
  color: #40372d;
  border-color: #cbbba6
}

body.light input,
body.light textarea,
body.light select {
  background: #fffaf2;
  color: #2d281f;
  border-color: #cbbba6
}

body.light input:focus,
body.light textarea:focus,
body.light select:focus {
  border-color: #9b7a4e;
  box-shadow: 0 0 0 3px rgba(139, 108, 69, .08)
}

/* Accent is reserved for active/hover, not always-on glow */
.top-btn,
.theme-choice,
.btn-light,
.btn-dark,
.task-action {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease
}

body:not(.light) .top-btn:hover,
body:not(.light) .theme-choice:hover,
body:not(.light) .btn-light:hover,
body:not(.light) .btn-dark:hover,
body:not(.light) .task-action:hover {
  border-color: rgba(201, 157, 84, .28);
  box-shadow: none
}

body.light .top-btn:hover,
body.light .theme-choice:hover,
body.light .btn-light:hover,
body.light .btn-dark:hover,
body.light .task-action:hover {
  border-color: #b49a79;
  box-shadow: none
}

/* Light theme: keep utility buttons visually blended with the paper UI. */
body.light button.btn-dark,
body.light .btn-dark:not(.keep-dark),
body.light .modal .btn-dark,
body.light .dialog .btn-dark {
  background: #f4ede3;
  border-color: #cdbdac;
  color: #40372d;
}
body.light button.btn-dark:hover,
body.light .btn-dark:not(.keep-dark):hover,
body.light .modal .btn-dark:hover,
body.light .dialog .btn-dark:hover {
  background: #eee4d8;
  border-color: #bcae9c;
  color: #2f2821;
}

/* Prevent decorative orange aura from leaking into idle controls */
.calendar-mode-v11:not(:hover),
.calendar-icon-v11:not(:hover),
.calendar-mini-nav-v11:not(:hover) {
  box-shadow: none !important
}


/* Source style block 31 */

/* Light-mode logo: preserve the exact artwork, but give its white wordmark a dark
   canvas so it remains visible against the paper sidebar. */
body.light .sidebar .brand.brand-logo-only .brand-logo-image {
  width: 220px !important;
  height: 64px !important;
  max-width: 220px !important;
  max-height: 64px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body .sidebar .brand.brand-logo-only .brand-logo-light {
  display: none !important;
}

body.light .sidebar .brand.brand-logo-only .brand-logo-dark {
  display: none !important;
}

body.light .sidebar .brand.brand-logo-only .brand-logo-light {
  display: block !important;
}

/* Settings: keep both theme choices light/paper in Light mode. */
body.light .theme-choice,
body.light .theme-choice.active {
  background: #fffaf2 !important;
  color: #3a3128 !important;
  border-color: #cdbda9 !important;
  box-shadow: none !important;
}

body.light .theme-choice:hover {
  background: #f4eadc !important;
  color: #2e281f !important;
  border-color: #b9a589 !important;
}

/* Dashboard weekly analytics: the dark rows were overpowering the paper mode.
   Keep hierarchy, but use a light surface with readable text. */
body.light .v2-analytics-row {
  background: #fffaf2 !important;
  border-color: #d7c8b5 !important;
  color: #6f6458 !important;
  box-shadow: none !important;
}

body.light .v2-analytics-row span {
  color: #6f6458 !important;
}

body.light .v2-analytics-row strong {
  color: #2d281f !important;
}


/* Source style block 32 */

/* Light mode: keep the N inside the actual logo white; only the surrounding
   sidebar/profile UI needs the paper-mode text treatment. */
body.light .sidebar .brand-logo-image {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Make the signed-in user name readable on the paper sidebar. */
body.light .sidebar .profile strong,
body.light .profile-copy strong,
body.light #profileName {
  color: #2d281f !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.light .sidebar .profile small,
body.light .profile-copy small {
  color: #6f6559 !important;
  opacity: 1 !important;
}


/* Source style block 33 */

/* Light/Paper mode: every Brainstorm chrome control uses the same paper button treatment. */
body.light .brain-step6-status {
  background: #fffaf2 !important;
  color: #3c342a !important;
  border-color: #d2c1a8 !important;
  box-shadow: none !important;
}

body.light .brain-step6-status.saving {
  background: #fffaf2 !important;
  color: #6f5738 !important;
  border-color: #cdb894 !important;
}

body.light .brain-step6-status.error {
  background: #fff7f3 !important;
  color: #8a5148 !important;
  border-color: #d7b2a9 !important;
}

body.light .brain-step6-status .dot,
body.light .brain-step6-status.saving .dot,
body.light .brain-step6-status.error .dot {
  box-shadow: none !important;
}

body.light .brain-group-trigger {
  background: #fffaf2 !important;
  color: #3c342a !important;
  border-color: #d2c1a8 !important;
  box-shadow: none !important;
}

body.light .brain-group-trigger span {
  color: #75695d !important;
}

body.light .brain-group-trigger:hover {
  background: #efe5d5 !important;
  border-color: #bca583 !important;
  color: #2d281f !important;
}

body.light .brain-tool-menu {
  background: #fffaf2 !important;
  border-color: #d2c1a8 !important;
  box-shadow: 0 14px 28px rgba(81, 57, 32, .12) !important;
}

body.light .brain-tool-menu .brain-ref-tool {
  background: transparent !important;
  color: #3c342a !important;
}

body.light .brain-tool-menu .brain-ref-tool:hover {
  background: #efe5d5 !important;
  color: #2d281f !important;
}

/* Tasks: the filter pill must remain readable in Paper mode. */
body.light .task-filter-bar .filters {
  background: #fffaf2 !important;
  border-color: #d2c1a8 !important;
  box-shadow: none !important;
}

body.light .task-filter-bar .task-filter {
  color: #62584d !important;
  background: transparent !important;
}

body.light .task-filter-bar .task-filter.active {
  background: #e2c182 !important;
  color: #2e281f !important;
}

body.light .task-filter-bar .task-filter:hover:not(.active) {
  background: #efe5d5 !important;
  color: #3a3128 !important;
}


/* Source style block 34 */

/* Calendar buttons: replace orange with the attached warm-beige button tone */
#view-calendar .calendar-mode-v11.active,
#view-calendar .calendar-mode-v11.active:hover,
#view-calendar .calendar-control-v11:hover,
#view-calendar .calendar-today-v11:hover,
#view-calendar .calendar-add-day-v11:hover,
#view-calendar .calendar-empty-v11 button:hover {
  background: #e2c182 !important;
  color: #2b251f !important;
  border-color: #e2c182 !important;
  box-shadow: none !important;
}

#view-calendar .calendar-mode-v11.active {
  box-shadow: none !important;
}

#view-calendar .calendar-mini-day-v11.today {
  background: #e2c182 !important;
  color: #2b251f !important;
}

#view-calendar .calendar-mini-day-v11:hover {
  background: #e2c182 !important;
  color: #2b251f !important;
}

#view-calendar .calendar-today-dot-v11,
#view-calendar .calendar-mini-day-v11.has-event:not(.today)::after {
  background: #e2c182 !important;
}

/* Keep normal buttons dark and remove any residual orange outline/glow. */
#view-calendar .calendar-mode-v11,
#view-calendar .calendar-control-v11,
#view-calendar .calendar-today-v11,
#view-calendar .calendar-add-day-v11 {
  box-shadow: none !important;
}

/* Light-mode uses the same attached warm-beige accent without orange. */
body.light #view-calendar .calendar-mode-v11.active,
body.light #view-calendar .calendar-mode-v11.active:hover,
body.light #view-calendar .calendar-control-v11:hover,
body.light #view-calendar .calendar-today-v11:hover,
body.light #view-calendar .calendar-add-day-v11:hover,
body.light #view-calendar .calendar-empty-v11 button:hover {
  background: #e2c182 !important;
  color: #2b251f !important;
  border-color: #e2c182 !important;
  box-shadow: none !important;
}


/* Source style block 35 */

/* =========================================================
   NEWLA — Priority 1/2/3 polish
   1) UI consistency  2) Light/Paper audit  3) Empty states
   ========================================================= */
:root {
  --ui-accent: #e2c182;
  --ui-accent-strong: #caa764;
  --ui-radius: 12px;
  --ui-border: #343028;
  --ui-muted: #968d81;
  --ui-soft: #211f1a;
}

/* 1 — CONSISTENT TYPE + CONTROL RHYTHM */
.view>.hero-row,
.view>.calendar-shell-v11>.calendar-topbar-v11,
.view>.brain-ref-shell>.brain-ref-topbar {
  margin-bottom: 16px;
}

.view h1 {
  letter-spacing: -.02em;
}

.view .hero-note,
.view .panel-desc,
.view .setting>p,
.view .calendar-main-head-v11 p {
  line-height: 1.55;
}

.btn-light,
.btn-dark,
.btn-accent,
.theme-choice,
.task-action,
.calendar-control-v11,
.calendar-mode-v11,
.calendar-mini-nav-v11,
.calendar-full-link-v11,
.brain-ref-chrome-btn,
.brain-ref-tool,
.top-btn,
.mobile-nav button {
  border-radius: 9px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn-light:hover,
.btn-dark:hover,
.theme-choice:hover,
.task-action:hover,
.calendar-control-v11:hover,
.calendar-mode-v11:hover,
.calendar-mini-nav-v11:hover,
.brain-ref-chrome-btn:hover,
.brain-ref-tool:hover,
.top-btn:hover {
  transform: translateY(-1px);
}

/* Unified active accent — no permanent glow */
.calendar-mode-v11.active {
  box-shadow: inset 0 -2px 0 var(--ui-accent) !important;
}

.calendar-mode-v11.active:hover {
  box-shadow: none !important;
}

/* 2 — LIGHT / PAPER CONTRAST AUDIT */
body.light .view,
body.light .view p,
body.light .view label,
body.light .view small,
body.light .view span {
  color: #51463b;
}

body.light .view h1,
body.light .view h2,
body.light .view h3,
body.light .view strong {
  color: #2f2923;
}

body.light .hero-note,
body.light .panel-desc,
body.light .setting>p,
body.light .calendar-main-head-v11 p,
body.light .calendar-legend-v11,
body.light .kicker {
  color: #75695d !important;
}

body.light input,
body.light textarea,
body.light select {
  color: #302a24 !important;
  caret-color: #302a24;
}

body.light input::placeholder,
body.light textarea::placeholder {
  color: #938578 !important;
  opacity: 1;
}

body.light .panel-light,
body.light .setting,
body.light .dark-card,
body.light .task-card,
body.light .proof-card,
body.light .notes-list-v2,
body.light .note-editor-v2 {
  color: #3b332c;
}

body.light .brand-logo-image {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Brainstorm: readable paper UI + canvas text */
body.light #view-brainstorm .brain-ref-board,
body.light #view-brainstorm .brain-ref-board * {
  color: #2f2923;
}

body.light #view-brainstorm .brain-ref-header-title h1 {
  color: #2d281f !important;
}

body.light #view-brainstorm .brain-ref-header-title p {
  color: #75695b !important;
}

body.light #view-brainstorm .brain-ref-board-menu button,
body.light #view-brainstorm .brain-ref-zoom button,
body.light #view-brainstorm .brain-ref-zoom span,
body.light #view-brainstorm .brain-ref-tip {
  color: #4d4238 !important;
}

/* 3 — EMPTY STATES */
.newla-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 190px;
  padding: 28px 18px;
  border: 1px dashed var(--ghost-line-strong, #484035);
  border-radius: 14px;
  background: rgba(255, 255, 255, .012);
  text-align: center;
  color: var(--muted, #938b80);
}

.newla-empty .newla-empty-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid #463f35;
  background: #25221d;
  color: var(--ui-accent);
}

.newla-empty strong {
  font-size: 13px;
  color: #ddd2c3;
}

.newla-empty span {
  font-size: 10px;
  line-height: 1.55;
  max-width: 330px;
  color: #91877a;
}

.newla-empty .newla-empty-action {
  margin-top: 4px;
  border: 1px solid #4b4338;
  border-radius: 8px;
  background: #24211c;
  color: #d8cbb8;
  padding: 8px 11px;
  font-size: 10px;
  cursor: pointer;
}

.newla-empty .newla-empty-action:hover {
  background: var(--ui-accent);
  border-color: var(--ui-accent);
  color: #2c271f;
}

/* Task list empty state: slightly more actionable */
#mainTaskList .task-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 16px;
}

#mainTaskList .task-empty .newla-empty-action {
  margin-top: 2px;
}

/* Proofs / Notes empty states share one visual language */
#view-proofs .proof-grid:empty+#proofEmpty {
  margin-top: 0;
}

/* Brainstorm empty overlay, shown only when a board has no editable items */
.brain-empty-state {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  align-items: center;
  justify-content: center;
}

.brain-empty-state.visible {
  display: flex;
}

.brain-empty-card {
  width: min(350px, calc(100% - 48px));
  padding: 24px 20px;
  text-align: center;
  border: 1px dashed #5a5145;
  border-radius: 16px;
  background: rgba(31, 28, 24, .88);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.brain-empty-card strong {
  display: block;
  font-size: 14px;
  color: #eee4d5;
  margin-bottom: 6px;
}

.brain-empty-card span {
  display: block;
  font-size: 10px;
  line-height: 1.55;
  color: #9b9184;
}

.brain-empty-card .brain-empty-hint {
  margin-top: 9px;
  color: #e2c182;
  font-size: 9px;
}

body.light .newla-empty {
  background: rgba(90, 65, 35, .025);
  border-color: #d0c0aa;
}

body.light .newla-empty .newla-empty-icon {
  background: #f1e7d9;
  border-color: #d0bea2;
  color: #8b6c45;
}

body.light .newla-empty strong {
  color: #3a322b;
}

body.light .newla-empty span {
  color: #786c60;
}

body.light .newla-empty .newla-empty-action {
  background: #f7efe4;
  border-color: #cdbb9f;
  color: #4a4035;
}

body.light .newla-empty .newla-empty-action:hover {
  background: #e2c182;
  border-color: #e2c182;
  color: #2b251f;
}

body.light .brain-empty-card {
  background: rgba(248, 241, 231, .96);
  border-color: #d1bea0;
  box-shadow: 0 18px 50px rgba(74, 57, 38, .16);
}

body.light .brain-empty-card strong {
  color: #2f2923;
}

body.light .brain-empty-card span {
  color: #786c60;
}

body.light .brain-empty-card .brain-empty-hint {
  color: #8b6c45;
}

/* Mobile: controls stay compact and consistent */
@media (max-width:760px) {
  .view h1 {
    font-size: 28px;
  }

  .view .hero-note {
    font-size: 11px;
  }

  .calendar-controls-v11 {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .calendar-mode-v11,
  .calendar-today-v11 {
    min-height: 34px;
  }

  .newla-empty {
    min-height: 160px;
  }
}

/* ---------- Needs Attention — action-button treatment ---------- */
#view-dashboard .v2-attention-item {
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #8f4f4a;
  border-radius: 14px;
  background: transparent;
  color: #d19a92;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

#view-dashboard .v2-attention-item .dot {
  width: 7px;
  height: 7px;
  margin-top: 0;
  background: #b96e69;
  box-shadow: 0 0 0 2px rgba(185, 110, 105, .08);
}

#view-dashboard .v2-attention-item:hover {
  border-color: #a9645d;
  background: rgba(143, 79, 74, .05);
  color: #e0aaa2;
  transform: translateY(-1px);
}

#view-dashboard .v2-attention-item.good {
  border-color: #5e7257;
  color: #aec0a5;
}

#view-dashboard .v2-attention-item.good .dot {
  background: #68885d;
  box-shadow: 0 0 0 2px rgba(104, 136, 93, .08);
}

body.light #view-dashboard .v2-attention-item {
  border-color: #cba8a1;
  color: #8c4d45;
  background: transparent;
}

body.light #view-dashboard .v2-attention-item .dot {
  background: #a96a62;
  box-shadow: 0 0 0 2px rgba(169, 106, 98, .06);
}

body.light #view-dashboard .v2-attention-item:hover {
  border-color: #bb7a70;
  background: rgba(185, 110, 105, .05);
  color: #7e3d35;
}

/* ============================================================
   NEWLA LOGIN LANDING — product context, same Newla visual language
   ============================================================ */
.nexa-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .88fr);
  width: min(1060px, 100%);
  max-width: 1060px;
  gap: 30px;
  align-items: center;
}

.nexa-auth-intro {
  min-width: 0;
  padding: 12px 4px 8px 8px;
  color: #efe2c6
}

.nexa-auth-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px
}

.nexa-auth-logo-inline {
  display: flex;
  align-items: center;
  min-height: 42px
}

.nexa-auth-logo-inline .nexa-auth-logo-image {
  display: block;
  width: min(220px, 42vw);
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: none
}

.nexa-auth-intro-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #3a352e;
  background: #1d1b17;
  border-radius: 999px;
  padding: 7px 9px;
  color: #9d9487;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap
}

.nexa-auth-intro-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86a66f;
  box-shadow: 0 0 0 4px rgba(134, 166, 111, .08)
}

.nexa-intro-kicker {
  color: #b5986b;
  margin-bottom: 10px
}

.nexa-auth-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: .95;
  letter-spacing: -.055em;
  color: #f1e6d5;
  font-weight: 600;
  margin: 0
}

.nexa-auth-intro h1 span {
  color: #c99d54
}

.nexa-auth-intro-copy {
  max-width: 560px;
  margin-top: 20px;
  color: #aaa093;
  font-size: 13px;
  line-height: 1.7
}

.nexa-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px
}

.nexa-feature-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #353028;
  background: linear-gradient(145deg, #211f1b, #1c1a17);
  border-radius: 13px;
  transition: .18s ease
}

.nexa-feature-card:hover {
  border-color: #55493a;
  transform: translateY(-1px)
}

.nexa-feature-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #2a251f;
  border: 1px solid #433a30;
  color: #c99d54;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015)
}

.nexa-feature-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.1
}

.nexa-feature-card:nth-child(1) .nexa-feature-icon {
  color: #e46f3d;
  background: rgba(228, 111, 61, .10);
  border-color: rgba(228, 111, 61, .28);
  box-shadow: 0 0 20px rgba(228, 111, 61, .08) inset
}

.nexa-feature-card:nth-child(2) .nexa-feature-icon {
  color: #e8b84a;
  background: rgba(232, 184, 74, .09);
  border-color: rgba(232, 184, 74, .25);
  box-shadow: 0 0 20px rgba(232, 184, 74, .07) inset
}

.nexa-feature-card:nth-child(3) .nexa-feature-icon {
  color: #8ec45a;
  background: rgba(142, 196, 90, .09);
  border-color: rgba(142, 196, 90, .25);
  box-shadow: 0 0 20px rgba(142, 196, 90, .07) inset
}

.nexa-feature-card:nth-child(4) .nexa-feature-icon {
  color: #6fa8dc;
  background: rgba(111, 168, 220, .09);
  border-color: rgba(111, 168, 220, .25);
  box-shadow: 0 0 20px rgba(111, 168, 220, .07) inset
}

.nexa-feature-card strong {
  display: block;
  color: #ede3d5;
  font-size: 10px;
  line-height: 1.2
}

.nexa-feature-card small {
  display: block;
  margin-top: 4px;
  color: #8f877b;
  font-size: 8px;
  line-height: 1.4
}

.nexa-proof-quote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #312d27
}

.nexa-proof-mark {
  font: 30px/1 Georgia, serif;
  color: #c99d54
}

.nexa-proof-quote p {
  font: 600 19px/1.18 Georgia, serif;
  color: #eadfce
}

.nexa-proof-quote p strong {
  color: #c99d54
}

.nexa-proof-quote small {
  display: block;
  margin-top: 6px;
  color: #7e7569;
  font-size: 8px;
  letter-spacing: .15em
}

.nexa-auth-card {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: 28px;
  border-radius: 20px;
  background: rgba(29, 26, 22, .92);
  border: 1px solid #40382f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .02);
  backdrop-filter: blur(18px)
}

.nexa-auth-card .kicker {
  color: #b5986b
}

.nexa-auth-card h2 {
  font-size: 29px
}

.nexa-auth-card>p:not(.kicker):not(.nexa-auth-foot) {
  margin-bottom: 18px
}

.nexa-auth-submit {
  background: #c99d54;
  border-color: #c99d54;
  color: #261f17;
  box-shadow: 0 9px 26px rgba(201, 157, 84, .14)
}

.nexa-auth-submit:hover {
  background: #d7ae68;
  border-color: #d7ae68;
  color: #211b14;
  box-shadow: 0 12px 30px rgba(201, 157, 84, .18)
}

.nexa-auth-foot {
  color: #766e63;
  font-size: 9px !important
}

body.light .nexa-auth-intro {
  color: #342d25
}

body.light .nexa-auth-intro h1 {
  color: #302820
}

body.light .nexa-auth-intro h1 span {
  color: #8b6c45
}

body.light .nexa-intro-kicker {
  color: #8b6c45
}

body.light .nexa-auth-intro-copy {
  color: #766b60
}

body.light .nexa-auth-intro-status {
  background: #f5eee4;
  border-color: #d7c8b6;
  color: #766b60
}

body.light .nexa-feature-card {
  background: linear-gradient(145deg, #f6eee4, #eee5d9);
  border-color: #d3c4b2
}

body.light .nexa-feature-icon {
  background: #ebe0d1;
  border-color: #d0c0ac;
  color: #8b6c45
}

body.light .nexa-feature-card:nth-child(1) .nexa-feature-icon {
  color: #c85f32;
  background: rgba(200, 95, 50, .08);
  border-color: rgba(200, 95, 50, .22);
  box-shadow: none
}

body.light .nexa-feature-card:nth-child(2) .nexa-feature-icon {
  color: #b58925;
  background: rgba(181, 137, 37, .08);
  border-color: rgba(181, 137, 37, .20);
  box-shadow: none
}

body.light .nexa-feature-card:nth-child(3) .nexa-feature-icon {
  color: #668f3d;
  background: rgba(102, 143, 61, .08);
  border-color: rgba(102, 143, 61, .20);
  box-shadow: none
}

body.light .nexa-feature-card:nth-child(4) .nexa-feature-icon {
  color: #4d82b0;
  background: rgba(77, 130, 176, .08);
  border-color: rgba(77, 130, 176, .20);
  box-shadow: none
}

body.light .nexa-feature-card strong {
  color: #3b332b
}

body.light .nexa-feature-card small {
  color: #766b60
}

body.light .nexa-proof-quote {
  border-top-color: #d8cabb
}

body.light .nexa-proof-quote p {
  color: #40372e
}

body.light .nexa-proof-quote p strong {
  color: #8b6c45
}

body.light .nexa-proof-quote small {
  color: #8a7d6f
}

body.light .nexa-auth-card {
  background: rgba(247, 240, 230, .95);
  border-color: #d3c4b1;
  box-shadow: 0 28px 80px rgba(74, 57, 38, .16)
}

body.light .nexa-auth-card h2 {
  color: #322b23
}

body.light .nexa-auth-card>p:not(.kicker):not(.nexa-auth-foot) {
  color: #756a5e
}

body.light .nexa-auth-card input {
  background: #fffaf2;
  border-color: #d1c1ad;
  color: #302820
}

body.light .nexa-auth-tabs {
  background: #ede4d8;
  border-color: #d3c4b1
}

body.light .nexa-auth-tabs button {
  color: #766b60
}

body.light .nexa-auth-tabs button.active {
  background: #8b6c45;
  color: #fffaf2
}

body.light .nexa-auth-submit {
  background: #8b6c45;
  border-color: #8b6c45;
  color: #fffaf2
}

body.light .nexa-auth-submit:hover {
  background: #9c7b52;
  border-color: #9c7b52;
  color: #fffaf2
}

body.light .nexa-google-btn {
  background: #fffaf2;
  border-color: #d3c4b1;
  color: #40372e
}

@media(max-width:900px) {
  .nexa-auth-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 18px
  }

  .nexa-auth-intro {
    padding: 4px 4px 0
  }

  .nexa-auth-intro h1 {
    font-size: clamp(38px, 9vw, 56px)
  }

  .nexa-auth-card {
    max-width: none;
    justify-self: stretch
  }
}

@media(max-width:650px) {
  .nexa-auth-gate {
    overflow: auto;
    align-items: flex-start;
    padding: 24px 16px
  }

  .nexa-auth-intro-top {
    margin-bottom: 16px
  }

  .nexa-auth-logo-inline .nexa-auth-logo-image {
    width: min(180px, 58vw)
  }

  .nexa-auth-intro-status {
    display: none
  }

  .nexa-feature-grid {
    grid-template-columns: 1fr;
    gap: 7px
  }

  .nexa-feature-card {
    padding: 10px
  }

  .nexa-proof-quote {
    margin-bottom: 3px
  }

  .nexa-proof-quote p {
    font-size: 17px
  }

  .nexa-auth-card {
    padding: 22px
  }
}

/* Login landing polish: hide workspace-ready status badge. */
.nexa-auth-intro-status {
  display: none !important
}


/* Password recovery */
.nexa-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px
}

.nexa-text-link {
  border: 0;
  background: transparent;
  color: #d0ad70;
  font-size: 10px;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px
}

.nexa-text-link:hover {
  color: #f0d59f
}

.nexa-reset-back {
  display: flex;
  justify-content: center;
  margin-top: 12px
}

.nexa-auth-card.recovery-mode .nexa-auth-tabs,
.nexa-auth-card.recovery-mode .nexa-auth-divider,
.nexa-auth-card.recovery-mode #nexaGoogleBtn,
.nexa-auth-card.recovery-mode #nexaForgotRow,
.nexa-auth-card.recovery-mode #nexaNameWrap {
  display: none
}

.nexa-auth-card.recovery-request .nexa-auth-tabs,
.nexa-auth-card.recovery-request .nexa-auth-divider,
.nexa-auth-card.recovery-request #nexaGoogleBtn,
.nexa-auth-card.recovery-request #nexaResetConfirmWrap,
.nexa-auth-card.recovery-request #nexaNameWrap {
  display: none
}

.nexa-auth-card.recovery-request #nexaAuthPassword,
.nexa-auth-card.recovery-request #nexaPasswordLabel {
  display: none
}

.nexa-auth-card.recovery-request #nexaForgotRow {
  display: none
}

@media(max-width:760px) {
  .nexa-forgot-row {
    margin-top: 8px
  }
}

.nexa-auth-card.recovery-mode #nexaEmailLabel,
.nexa-auth-card.recovery-mode #nexaAuthEmail {
  display: none
}

.nexa-auth-card.recovery-mode #nexaPasswordLabel {
  display: block
}


/* ============================================================
   PROFILE AVATAR — LETTER MONOGRAM
   Fixed visual identity, dynamic first letter from profile name.
   ============================================================ */
.profile .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #756be0 0%, #5a4fc8 58%, #4d43b6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow:
    0 8px 18px rgba(44, 34, 118, .22),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
  position: relative;
  overflow: visible;
}

.profile .avatar:after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79a56a;
  border: 2px solid var(--sidebar);
  box-shadow: 0 0 10px rgba(121, 165, 106, .30);
}

body.light .profile .avatar {
  background: linear-gradient(145deg, #8176e8 0%, #665bd0 58%, #554bc1 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  box-shadow:
    0 7px 16px rgba(65, 55, 145, .16),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

body.light .profile .avatar:after {
  border-color: var(--sidebar);
}

/* ============================================================
   LOGIN MICRO-INTERACTIONS
   ============================================================ */

/* Primary login / action button:
   warm Newla gold at rest, purposeful success-green on hover. */
.nexa-auth-submit {
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .12s ease,
    box-shadow .18s ease;
}

.nexa-auth-submit:hover:not(:disabled) {
  background: #68885d;
  border-color: #68885d;
  color: #fffaf2;
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(104, 136, 93, .22);
}

.nexa-auth-submit:focus-visible {
  outline: 2px solid rgba(201, 157, 84, .65);
  outline-offset: 3px;
}

/* Forgot password:
   quiet danger-red accent, no underline, slightly larger on hover. */
.nexa-text-link {
  color: #b96e69;
  text-decoration: none;
  transition: color .16s ease, font-size .16s ease, transform .16s ease;
}

.nexa-text-link:hover {
  color: #dc8a82;
  font-size: 11.5px;
  text-decoration: none;
  transform: translateY(-1px);
}

.nexa-text-link:focus-visible {
  outline: 2px solid rgba(185, 110, 105, .45);
  outline-offset: 3px;
  border-radius: 4px;
}

body.light .nexa-text-link {
  color: #a34f49;
}

body.light .nexa-text-link:hover {
  color: #c8675f;
}

/* Keep disabled/loading state authoritative. */
.nexa-auth-submit:disabled,
.nexa-auth-submit:hover:disabled {
  transform: none;
  box-shadow: none;
}


/* ---------- Auth boot: prevent first-paint flash ---------- */
html:not(.nexa-auth-ready) .app {
  visibility: hidden !important;
  pointer-events: none !important
}

html:not(.nexa-auth-ready) .nexa-auth-gate {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important
}

html.nexa-auth-ready .nexa-auth-gate {
  visibility: visible;
  opacity: 1;
  transition: opacity .16s ease
}

html.nexa-auth-ready .app {
  visibility: visible
}

/* ============================================================
   NEWLA — FINAL MOBILE UX PASS
   Mobile-only overrides. Desktop styles remain unchanged.
============================================================ */
@media (max-width:760px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden
  }

  .main {
    overflow-x: hidden
  }

  /* Touch-friendly spacing without changing desktop cards. */
  button,
  .btn-light,
  .btn-dark,
  .btn-accent,
  .top-btn,
  .nav-btn,
  .task-action,
  .calendar-control-v11,
  .calendar-mode-v11,
  .calendar-today-v11,
  .brain-ref-tool,
  .brain-group-trigger,
  .proof-actions-v5 button {
    min-height: 36px
  }

  /* Keep bottom navigation clear of device safe areas. */
  .mobile-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom);
    max-width: none !important;
  }

  .mobile-more-menu {
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  /* Dashboard: cards and action areas stay inside the viewport. */
  .v2-card-head {
    min-width: 0
  }

  .v2-card-head h3 {
    min-width: 0;
    word-break: break-word
  }

  .v2-progress-meta {
    align-items: flex-start
  }

  .v2-focus-btn {
    min-height: 42px
  }

  /* Tasks: filters scroll instead of widening the page. */
  .task-filter-bar {
    min-width: 0
  }

  .task-filter-bar .filters {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .task-filter-bar .filters::-webkit-scrollbar {
    display: none
  }

  .task-search-wrap {
    min-width: 0;
    width: 100%
  }

  .task-toolbar-v2 {
    min-width: 0
  }

  .task-toolbar-v2>* {
    min-width: 0
  }

  .task-select-v2 {
    max-width: 100%
  }

  .task-card {
    min-width: 0
  }

  .task-title,
  .task-desc {
    overflow-wrap: anywhere
  }

  .task-actions {
    gap: 7px
  }

  .task-action {
    flex: 1 1 auto
  }

  /* Task modal: fit short screens and keep action buttons reachable. */
  #taskModal {
    overflow-y: auto;
    align-items: flex-start !important
  }

  #taskModal>div {
    width: min(100%, 560px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow-y: auto !important;
    margin: 10px 0 !important;
  }

  #taskModal form {
    min-width: 0
  }

  #taskModal input,
  #taskModal textarea,
  #taskModal select {
    max-width: 100%
  }

  /* Proofs: image viewer and upload modal fit the phone viewport. */
  .proof-grid {
    min-width: 0
  }

  .proof-card {
    min-width: 0
  }

  .proof-card .proof-image-wrap img {
    max-width: 100%;
    height: auto
  }

  .proof-modal-card-v5,
  .proof-viewer-card-v5 {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: auto !important;
  }

  .proof-viewer-image-v5 {
    max-height: 58dvh !important
  }

  .proof-input-wrap-v5 input[type=file] {
    max-width: 100%;
    overflow: hidden
  }

  .proof-modal-actions-v5 {
    flex-wrap: wrap
  }

  .proof-modal-actions-v5 button {
    flex: 1 1 120px;
    min-width: 0
  }

  /* Calendar: controls wrap, cells stay compact, event text never forces width. */
  #view-calendar .calendar-topbar-v11 {
    gap: 10px
  }

  #view-calendar .calendar-controls-v11 {
    gap: 6px;
    justify-content: flex-start
  }

  #view-calendar .calendar-control-v11,
  #view-calendar .calendar-mode-v11,
  #view-calendar .calendar-today-v11 {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 10px
  }

  #view-calendar .calendar-layout-v11 {
    min-width: 0
  }

  #view-calendar .calendar-main-v11,
  #view-calendar .calendar-sidebar-v11 {
    min-width: 0
  }

  #view-calendar .calendar-week-head-v11,
  #view-calendar .calendar-week-grid-v11 {
    min-width: 0
  }

  #view-calendar .calendar-cell-v11 {
    overflow: hidden
  }

  #view-calendar .calendar-event-v11 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  #view-calendar .calendar-event-v11 span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  /* Brainstorming: toolbars can scroll horizontally; canvas never widens the page. */
  #view-brainstorm .brain-ref-topbar,
  #view-brainstorm .brain-ref-toolbar {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #view-brainstorm .brain-ref-topbar::-webkit-scrollbar,
  #view-brainstorm .brain-ref-toolbar::-webkit-scrollbar {
    display: none
  }

  #view-brainstorm .brain-ref-shell,
  #view-brainstorm .brain-ref-workspace {
    max-width: 100%;
    min-width: 0
  }

  #view-brainstorm .brain-ref-board {
    max-width: 100%;
    overflow: auto
  }

  #view-brainstorm .brain-ref-sticky {
    max-width: calc(100vw - 54px)
  }

  /* Knowledge/notes: long titles and editor content wrap cleanly. */
  .notes-list-v2,
  .note-editor-v2 {
    min-width: 0;
    max-width: 100%
  }

  .note-list-item-v2,
  .note-title-input,
  .note-tags-v2 input {
    min-width: 0;
    max-width: 100%
  }

  .note-title-input {
    overflow-wrap: anywhere
  }

  .note-preview-v2 {
    overflow-wrap: anywhere;
    word-break: break-word
  }

  /* Focus/settings: dialogs and controls must stay inside the viewport. */
  .focus-card,
  .command-card,
  .nexa-info-card,
  .nexa-dialog-card {
    max-width: calc(100vw - 20px)
  }

  .focus-actions {
    flex-wrap: wrap
  }

  .focus-actions>* {
    flex: 1 1 120px
  }

  /* Login / auth: avoid clipped fields on compact phones. */
  .nexa-auth-card input {
    min-width: 0;
    max-width: 100%
  }

  .nexa-auth-submit,
  .nexa-google-btn {
    min-height: 44px
  }
}

@media (max-width:520px) {
  .topbar {
    padding-left: 10px !important;
    padding-right: 10px !important
  }

  .content {
    padding-left: 10px !important;
    padding-right: 10px !important
  }

  .stat {
    min-width: 0
  }

  .stat strong {
    font-size: 21px
  }

  .stat small {
    display: block;
    overflow-wrap: anywhere
  }

  .task-actions .task-action {
    flex: 1 1 calc(50% - 4px)
  }

  .task-actions .task-thumb {
    flex: 0 0 42px
  }

  #taskModal>div {
    max-height: calc(100dvh - 14px) !important;
    margin: 7px 0 !important
  }

  #taskModal .btn-light,
  #taskModal .btn-dark,
  #taskModal .btn-danger {
    width: 100%
  }

  .proof-actions-v5 button {
    flex: 1 1 100% !important
  }

  .proof-modal-actions-v5 button {
    flex: 1 1 100%
  }

  #view-calendar .calendar-controls-v11>* {
    flex: 1 1 calc(50% - 3px)
  }

  #view-calendar .calendar-cell-v11 {
    min-height: 82px !important;
    padding: 5px !important
  }

  #view-calendar .calendar-day-head-v11 {
    font-size: 7px !important
  }

  #view-calendar .calendar-event-v11 {
    font-size: 7px !important;
    padding: 4px !important
  }

  .nexa-auth-card {
    padding: 18px !important
  }

  .nexa-auth-intro h1 {
    font-size: clamp(34px, 11vw, 48px)
  }

  .nexa-feature-card small {
    font-size: 8px
  }
}

@media (prefers-reduced-motion:reduce) {

  .mobile-nav,
  .mobile-more-menu,
  .nexa-feature-card,
  .task-action,
  .calendar-control-v11,
  .calendar-mode-v11,
  .calendar-today-v11,
  .proof-actions-v5 button {
    transition: none !important
  }
}


/* Signup guidance + status polish */
.nexa-signup-google-hint {
  margin: 10px 0 14px;
  padding: 9px 12px;
  border: 1px solid rgba(201, 157, 84, .22);
  border-radius: 10px;
  background: rgba(201, 157, 84, .055);
  color: #cdbb9f;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.nexa-auth-status {
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.45;
  color: #f0e6d6;
}

.nexa-auth-status.nexa-auth-status-error {
  color: #e7a59d !important;
}

body.light .nexa-signup-google-hint {
  background: rgba(139, 108, 69, .07);
  border-color: rgba(139, 108, 69, .22);
  color: #6f6254;
}

body.light .nexa-auth-status {
  color: #3b332b;
}

body.light .nexa-auth-status.nexa-auth-status-error {
  color: #a34f49 !important;
}

@media(max-width:760px) {
  .nexa-signup-google-hint {
    font-size: 10.5px;
    margin-top: 8px;
    margin-bottom: 12px
  }

  .nexa-auth-status {
    font-size: 12px !important
  }
}

/* ---------- ARCHIVED WORK ---------- */
.archive-top-btn{
  position:relative;
  width:38px;
  height:34px;
  padding:7px 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease,color .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.archive-top-btn svg{width:15px;height:15px;transition:transform .18s ease}
.archive-top-btn:hover{
  color:var(--green);
  border-color:rgba(182,215,125,.55);
  background:rgba(182,215,125,.07);
  transform:scale(1.08);
  box-shadow:0 0 0 3px rgba(182,215,125,.05);
}
.archive-top-btn:hover svg{transform:scale(1.08)}
.archive-count{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:15px;
  height:15px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--green);
  color:#1d2618;
  font-size:8px;
  font-weight:900;
  line-height:1;
}
.archive-modal-card{
  width:min(680px,100%);
  max-height:min(82vh,760px);
  overflow:auto;
  background:linear-gradient(145deg,#25211c,#1f1d19);
  color:var(--cream);
  border:1px solid #353028;
  border-radius:16px;
  padding:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}
.archive-modal-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
.archive-modal-head h2{margin-top:4px;color:#f0e6d6}
.archive-modal-head p:not(.kicker){margin-top:6px;color:#aaa093;font-size:12px}
.archive-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-bottom:16px;
}
.archive-stat{
  padding:12px;
  border:1px solid #383229;
  border-radius:11px;
  background:#211f1b;
}
.archive-stat span{display:block;font-size:9px;letter-spacing:.1em;font-weight:800;color:#978d80}
.archive-stat strong{display:block;margin-top:5px;font-family:Georgia,serif;font-size:23px;color:#eee5d6}
.archive-list{display:grid;gap:9px}
.archive-item{
  padding:14px;
  border:1px solid #383229;
  border-radius:12px;
  background:#211f1b;
  transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.archive-item:hover{
  border-color:#4d4439;
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.archive-item-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.archive-item h3{font-family:Georgia,serif;font-size:17px;color:#f0e6d6}
.archive-item-reason{margin-top:5px;color:#a69d91;font-size:11px}
.archive-item-date-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.archive-item-date{color:#aaa093;font-size:10px;white-space:nowrap}
.archive-expiry{color:var(--green);font-size:9px;letter-spacing:.03em;white-space:nowrap}
.archive-item-note{
  margin-top:9px;
  padding:9px 10px;
  border-left:2px solid var(--accent);
  background:rgba(201,157,84,.08);
  color:#e6ddd1;
  font-size:11px;
  line-height:1.45;
}
.archive-item-actions{display:flex;justify-content:flex-end;margin-top:11px}
.archive-restore-btn{
  color:#dff0c8 !important;
  border-color:rgba(104,136,93,.62) !important;
  background:rgba(104,136,93,.16) !important;
  transition:transform .18s ease,color .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease !important;
}
.archive-restore-btn:hover{
  color:#f4ffe9 !important;
  border-color:#86ab76 !important;
  background:#68885d !important;
  transform:scale(1.05) translateY(-1px) !important;
  box-shadow:0 7px 18px rgba(104,136,93,.2);
}
.archive-empty{
  padding:38px 18px;
  text-align:center;
  color:#9b9184;
  border:1px dashed #433b32;
  border-radius:12px;
}
.delete-reason-options{display:grid;gap:7px}
.delete-reason-options label{
  display:flex;align-items:center;gap:10px;
  padding:10px 11px;
  border:1px solid #3b352e;
  border-radius:10px;
  background:#211f1b;
  color:#eee5d6;
  font-size:12px;
  cursor:pointer;
  transition:.18s ease;
}
.delete-reason-options label:hover{border-color:#5b5145;transform:translateX(1px)}
.delete-reason-options input{accent-color:var(--success)}
.delete-reason-note{
  width:100%;
  min-height:76px;
  margin-top:9px;
  resize:vertical;
  border:1px solid #3b352e;
  border-radius:10px;
  background:#211f1b;
  color:#eee5d6;
  padding:11px;
  font-size:12px;
}
.delete-reason-note::placeholder{color:#7d756b}
.archive-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.btn-danger{
  border:1px solid #9e5e59;
  background:#7d4541;
  color:#fff8f2;
  padding:9px 13px;
  border-radius:9px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}
.btn-danger:hover:not(:disabled){background:#9a554f;transform:scale(1.04) translateY(-1px);box-shadow:0 7px 18px rgba(154,85,79,.18)}
.btn-danger:disabled{opacity:.42;cursor:not-allowed}
body.light .archive-modal-card{background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:0 30px 90px rgba(74,57,38,.22)}
body.light .archive-modal-head h2{color:var(--ink)}
body.light .archive-modal-head p:not(.kicker){color:var(--muted)}
body.light .archive-stat,
body.light .archive-item,
body.light .delete-reason-options label,
body.light .delete-reason-note{background:var(--panel-soft);border-color:var(--line)}
body.light .archive-stat span,
body.light .archive-item-reason,
body.light .archive-item-date{color:var(--muted)}
body.light .archive-stat strong,
body.light .archive-item h3,
body.light .delete-reason-options label{color:var(--ink)}
body.light .archive-item-note{color:var(--ink)}
body.light .archive-empty{border-color:var(--line);color:var(--muted)}
@media(max-width:700px){
  .archive-stats{grid-template-columns:repeat(2,1fr)}
  .archive-modal-card{padding:16px;max-height:88vh}
  .archive-modal-actions{flex-direction:column-reverse}
  .archive-modal-actions button{width:100%}
  .archive-item-head{gap:10px}
  .archive-item-date-wrap{align-items:flex-end}
  .archive-expiry{font-size:8px}
}

/* ---------- ABOUT NEWLA — DEDICATED VIEW ---------- */
.about-setting-trigger {
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.about-setting-trigger:hover,
.about-setting-trigger:focus-visible {
  transform: translateY(-2px);
  border-color: #6f6557;
  box-shadow: 0 12px 28px rgba(31,24,15,.16);
  outline: none;
}
.about-setting-trigger:hover .about-open-row,
.about-setting-trigger:focus-visible .about-open-row { color: var(--green); }
.about-open-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c5b8a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: color .18s ease;
}
body.light .about-open-row { color: #6e6255; }
body.light .about-setting-trigger:hover,
body.light .about-setting-trigger:focus-visible { border-color: #b6a993; }

#view-about { padding-bottom: 34px; }
.about-hero-row { align-items: flex-start; }
.about-hero-note { max-width: 620px; }
.about-back {
  flex: 0 0 auto;
  margin-top: 4px;
  position: sticky;
  top: 78px;
  z-index: 22;
  transition: .18s ease;
  box-shadow: 0 10px 24px rgba(20,16,12,.10);
}
.about-back:hover,
.about-back:focus-visible {
  transform: translateY(-1px) scale(1.03);
}
body.light .about-back { box-shadow: 0 10px 24px rgba(74,57,38,.12); }
.about-page { max-width: 1120px; margin: 24px auto 0; display: grid; gap: 16px; }
.about-card {
  border: 1px solid #353028;
  border-radius: 16px;
  background: linear-gradient(145deg,#25211c,#1f1d19);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(31,24,15,.08);
}
.about-card h2 {
  color: #f0e6d6;
  margin-top: 5px;
  line-height: 1.15;
}
.about-card h3 { color: #f0e6d6; font-family: Georgia,"Times New Roman",serif; font-size: 22px; }
.about-copy {
  max-width: 780px;
  margin-top: 18px;
  color: #c2b7a8;
  font-size: 15px;
  line-height: 1.82;
}
.about-copy p + p { margin-top: 8px; }
.about-proof-card { padding: 26px; }
.about-proof-line-large {
  justify-content: center;
  margin: 30px 0 24px;
  padding: 20px 10px;
  border-top: 1px solid #3b352e;
  border-bottom: 1px solid #3b352e;
  font-size: clamp(15px,2vw,21px);
  gap: 12px;
  color: #f0e6d6;
}
.about-proof-line-large span:nth-child(even) { color: #9d8d76; font-weight: 500; }
.about-quote {
  text-align: center;
  color: #d7c8b5;
  font: 800 clamp(18px,2vw,25px)/1.35 Georgia,serif;
  margin: 0 auto;
  max-width: 760px;
}
.about-three-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.about-mini-card { min-height: 205px; }
.about-mini-card h3 { margin: 12px 0 8px; font-size: 20px; }
.about-mini-card p:last-child { color: #a99f92; font-size: 12px; line-height: 1.65; }
.about-steps { padding: 22px 24px 26px; }
.about-step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 18px; }
.about-step-grid > div { padding-top: 14px; border-top: 1px solid #3b352e; }
.about-step-number { color: #b79a6a; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.about-step-grid h3 { margin-top: 11px; font-size: 21px; }
.about-step-grid p { margin-top: 6px; color: #9d9489; font-size: 11px; line-height: 1.5; }
.about-final-card { text-align: center; padding: 32px 26px 38px; }
.about-final-card h2 { max-width: 840px; margin: 12px auto 0; font-size: clamp(24px,3vw,36px); }
.about-final-line { color: #a69c8f; margin-top: 22px; font-size: 12px; }
.about-i-did-that { margin-top: 7px; color: #c99d54; font: 600 clamp(32px,5vw,54px)/1 Georgia,"Times New Roman",serif; }
.about-creator-footer {
  margin-top: 6px;
  padding: 22px 4px 8px;
  border-top: 1px solid #3d372e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.about-creator-footer > div:first-child { display:flex; align-items:baseline; gap:12px; }
.about-creator-footer > div:first-child > strong { color:#f0e6d7; font: 600 22px Georgia,serif; }
.about-creator-footer > div:first-child > span { color:#9c9080; font-size:10px; }
.about-creator-meta { display:flex; align-items:center; gap:12px; color:#aaa093; font-size:10px; }
.about-creator-meta > span > strong { color:#ded2c1; }
.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #40382e;
  border-radius: 10px;
  color: #ded2c1;
  background: #1d1a16;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  transition: .18s ease;
}
.about-linkedin svg { width: 15px; height: 15px; fill: currentColor; }
.about-arrow { font-size: 12px; line-height: 1; }
.about-linkedin:hover,
.about-linkedin:focus-visible {
  color: #b6d77d;
  border-color: #66805a;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 18px rgba(89,119,77,.18);
  outline: none;
}
body.light #view-about .about-card {
  background: linear-gradient(145deg,#f8f1e7,#eee5d7);
  border-color: #d8cbbb;
}
body.light #view-about .about-card h2,
body.light #view-about .about-card h3 { color: #2d281f; }
body.light #view-about .about-copy { color:#665c50; }
body.light #view-about .about-proof-line-large { border-color:#d8cbbb; color:#342e27; }
body.light #view-about .about-proof-line-large span:nth-child(even) { color:#9b896d; }
body.light #view-about .about-quote { color:#51473b; }
body.light #view-about .about-mini-card p:last-child,
body.light #view-about .about-step-grid p,
body.light #view-about .about-final-line { color:#74695d; }
body.light #view-about .about-step-grid > div { border-color:#d8cbbb; }
body.light #view-about .about-creator-footer { border-color:#d8cbbb; }
body.light #view-about .about-creator-footer > div:first-child > strong { color:#2d281f; }
body.light #view-about .about-creator-footer > div:first-child > span,
body.light #view-about .about-creator-meta { color:#74695d; }
body.light #view-about .about-creator-meta > span > strong { color:#4b4035; }
body.light #view-about .about-linkedin { color:#574c40; background:#fbf5e9; border-color:#cfbea1; }

@media (max-width: 900px) {
  .about-three-grid { grid-template-columns: 1fr; }
  .about-step-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .about-hero-row { flex-direction: column; }
  .about-back { width: fit-content; }
  .about-page { margin-top: 18px; }
  .about-card { padding: 19px; }
  .about-proof-line-large { justify-content: flex-start; gap: 8px; overflow-x: auto; white-space: nowrap; }
  .about-creator-footer { align-items: flex-start; flex-direction: column; }
  .about-creator-footer > div:first-child { flex-wrap: wrap; }
  .about-creator-meta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .about-setting-trigger,
  .about-open-row,
  .about-linkedin { transition: none !important; }
}


/* ---------- ABOUT BACK BUTTON PIN ---------- */
.about-hero-row .about-back {
  position: sticky;
  top: 78px;
}
@media (max-width: 760px) {
  .about-hero-row .about-back {
    top: 72px;
    margin-top: 0;
  }
}


/* ============================================================
   TEAM WORKSPACE
============================================================ */
.team-hero-row{align-items:flex-end}
.team-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.team-empty-grid{display:grid;grid-template-columns:1.25fr .875fr .875fr;gap:14px;margin-top:22px}
.team-intro-card,.team-choice-card,.team-panel,.team-toolbar{border:1px solid #353028;border-radius:16px;background:linear-gradient(145deg,#25211c,#1f1d19);padding:18px}
.team-intro-card h2,.team-choice-card h3,.team-panel h2{color:#eee6d9}
.team-intro-card p,.team-choice-card p{color:#aaa095;font-size:12px;line-height:1.6}
.team-loop{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px;color:#e9dfcf;font-weight:700;font-size:13px}
.team-loop b{color:#c99d54;font-weight:700}
.team-choice-card{display:flex;flex-direction:column;justify-content:space-between;min-height:210px}
.team-choice-card .theme-choice{align-self:flex-start}
.team-workspace{margin-top:22px;display:grid;gap:14px}
.team-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px}
.team-switch-wrap,.team-code-wrap{display:grid;gap:7px}
.team-switch-line{display:flex;align-items:center;gap:9px}
.team-switch-line select{min-width:250px}
.team-code-wrap{justify-items:end}
.team-code-wrap strong{font-family:Georgia,serif;font-size:20px;letter-spacing:.08em;color:#eee5d6}
.team-role-pill{padding:5px 9px;border:1px solid #544b3e;border-radius:999px;font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#c7b99f}
.team-copy-btn{border:1px solid #3d372f;background:transparent;color:#d7ccbb;border-radius:8px;padding:6px 9px;font-size:10px}
.team-copy-btn:hover{border-color:#68885d;color:#b6d77d;transform:scale(1.03)}
.team-grid{display:grid;grid-template-columns:1fr;gap:14px}
.team-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.team-count{min-width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#2d2922;border:1px solid #494136;color:#d5c9b6;font-size:11px}
.team-members-list{display:grid;gap:9px}
.team-member-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #39332c;border-radius:11px;background:#211f1a}
.team-member-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#3a3328;color:#efe3d1;font-family:Georgia,serif}
.team-member-row strong{display:block;font-size:12px;color:#eee5d6}.team-member-row small{display:block;color:#8f877b;font-size:9px;margin-top:2px}
.team-task-form{display:grid;gap:12px}.team-task-form label{display:grid;gap:6px;font-size:10px;color:#aaa095}.team-task-form input,.team-task-form textarea,.team-task-form select,.team-task-form-inline textarea,.team-file-field input{border:1px solid #413a31;border-radius:9px;background:#1a1916;color:#eee5d6;padding:10px 11px;font-size:12px}.team-task-form textarea,.team-task-form-inline textarea{resize:vertical}.team-form-grid{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:9px}.team-proof-required{border:1px solid #3d372f;border-radius:11px;padding:11px;background:#211f1a;display:grid;gap:4px}.team-proof-required span{font-size:10px;color:#e3d7c5}.team-proof-required strong{color:#b6d77d;font-size:11px}.team-proof-required small{color:#8f877b;font-size:9px;line-height:1.4}
.team-tasks-list{display:grid;gap:10px}.team-task-card{border:1px solid #3c362f;border-radius:13px;background:#211f1a;padding:14px}.team-task-card.approved{border-color:#4d6548}.team-task-card.changes{border-color:#6a4b44}.team-task-top{display:flex;justify-content:space-between;gap:14px}.team-task-title-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.team-task-title-row h3{color:#eee5d6;font-size:15px}.team-task-top p{color:#9e9589;font-size:11px;line-height:1.5;margin-top:4px}.team-task-date{color:#9f9586;font-size:10px;white-space:nowrap}.team-status{padding:4px 7px;border-radius:999px;border:1px solid #464037;font-size:8px;text-transform:uppercase;letter-spacing:.09em;color:#c9bca7}.team-status.progress{color:#c8b27c}.team-status.submitted{color:#9ccbe7}.team-status.approved{color:#b6d77d;border-color:#4e6b49}.team-status.changes{color:#df9289;border-color:#694640}.team-task-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.team-task-meta span{border:1px solid #39332c;border-radius:999px;padding:5px 7px;color:#90877c;font-size:8px}.team-review-note,.team-proof-note{display:grid;gap:4px;margin-top:10px;padding:9px 10px;border-left:2px solid #a58a60;background:#1b1a16}.team-review-note strong,.team-proof-note strong{font-size:9px;color:#c8b99f;text-transform:uppercase;letter-spacing:.08em}.team-review-note span,.team-proof-note span{font-size:10px;color:#c2b7a8}.team-task-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.team-task-btn{border:1px solid #423b33;background:#2a261f;color:#e4d9c9;padding:7px 9px;border-radius:8px;font-size:9px;transition:.18s ease}.team-task-btn:hover{transform:scale(1.03);border-color:#68885d;color:#b6d77d}.team-task-btn.proof{color:#b6d77d}.team-task-btn.approve{color:#b6d77d;border-color:#4f6a4b}.team-task-btn.changes{color:#df9289;border-color:#674640}.team-proof-preview{border:1px solid #4a4338;background:transparent;color:#9ccbe7;padding:7px 9px;border-radius:8px;font-size:9px}.team-empty-mini{padding:24px;border:1px dashed #3a342c;border-radius:11px;text-align:center;color:#8f877b;font-size:10px;line-height:1.5}
.team-modal-card{width:min(520px,100%);max-height:88vh;overflow:auto}.team-modal-note{color:#91897e;font-size:10px;line-height:1.5}.team-proof-task-name{font-family:Georgia,serif;font-size:20px;color:#eee5d6;margin:0 0 12px}.team-file-field{display:grid;gap:7px;font-size:10px;color:#aaa095}.team-proof-preview-wrap{display:flex;align-items:center;justify-content:center;min-height:0}.team-proof-preview-wrap img{display:block;max-width:100%;max-height:280px;border-radius:10px;border:1px solid #3d372f;object-fit:contain}.team-task-form-inline{display:grid;gap:6px;font-size:10px;color:#aaa095}
body.light .team-intro-card,body.light .team-choice-card,body.light .team-panel,body.light .team-toolbar{background:linear-gradient(145deg,#f8f1e7,#eee5d7);border-color:#d8cbbb} body.light .team-intro-card h2,body.light .team-choice-card h3,body.light .team-panel h2{color:#3f352b} body.light .team-intro-card p,body.light .team-choice-card p{color:#74695d} body.light .team-member-row,body.light .team-task-card,body.light .team-proof-required{background:#f4ede3;border-color:#d8cbbb} body.light .team-member-row strong,body.light .team-task-title-row h3{color:#3f352b} body.light .team-member-row small,body.light .team-task-top p,.body.light .team-task-date{color:#786e63} body.light .team-task-form label,body.light .team-file-field,body.light .team-task-form-inline{color:#786e63} body.light .team-task-form input,body.light .team-task-form textarea,body.light .team-task-form select,body.light .team-task-form-inline textarea{background:#fffaf2;color:#2d281f;border-color:#cfc0ad} body.light .team-role-pill{color:#665b4f;border-color:#cfc0ad} body.light .team-code-wrap strong{color:#3f352b}
@media(max-width:900px){.team-empty-grid{grid-template-columns:1fr}.team-grid{grid-template-columns:1fr}.team-toolbar{flex-direction:column;align-items:flex-start}.team-code-wrap{justify-items:start}.team-topbar{flex-wrap:wrap}.team-form-grid{grid-template-columns:1fr 1fr}.team-task-top{flex-direction:column}.team-task-date{white-space:normal}}
@media(max-width:760px){.team-hero-row{flex-direction:column;align-items:flex-start}.team-hero-actions{justify-content:flex-start}.team-switch-line{flex-wrap:wrap}.team-switch-line select{min-width:0;width:100%}.team-toolbar{padding:15px}.team-form-grid{grid-template-columns:1fr}.team-task-top{gap:8px}.team-empty-grid{margin-top:16px}.team-intro-card,.team-choice-card,.team-panel,.team-toolbar{padding:15px}.team-task-title-row h3{font-size:14px}}

.team-code-actions{display:flex;gap:6px;flex-wrap:wrap}


/* ---------- TEAM UI POLISH ---------- */
/* Center all Team info dialogs even when JS opens them with display:flex. */
.nexa-info-modal {
  align-items: center;
  justify-content: center;
}

/* Copy actions: keep the control itself still; only the label changes on hover. */
.team-copy-btn {
  transition: color .18s ease;
}
.team-copy-btn:hover {
  border-color: #3d372f;
  color: #9fdd8d;
  transform: none;
}

/* Creator link: blue text treatment without moving/scaling the button. */
.about-linkedin {
  transition: color .18s ease;
}
.about-linkedin:hover,
.about-linkedin:focus-visible {
  color: #4da3ff;
  border-color: #40382e;
  background: #1d1a16;
  transform: none;
  box-shadow: none;
}

/* Team actions: quiet by default; color-only hover. */
#teamCreateOpen,
#teamJoinOpen,
#teamCreateOpenAlt,
#teamJoinOpenAlt {
  color: #d7ccbb;
  border-color: #3d372f;
  transition: color .18s ease;
}
#teamCreateOpen:hover,
#teamJoinOpen:hover,
#teamCreateOpenAlt:hover,
#teamJoinOpenAlt:hover {
  color: #9fdd8d;
  border-color: #3d372f;
  background: transparent;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .team-copy-btn,
  .about-linkedin { transition: none !important; }
}

/* Team member picker: compact popover aligned to the people icon. */
.team-hero-actions-popover{position:relative;align-items:flex-start}
.team-members-popover-wrap{position:relative;display:inline-flex}
.team-members-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:68px;height:44px;padding:0 12px;border:1px solid #4a4338;border-radius:11px;background:#201e1a;color:#bdb3a5;font-size:12px;cursor:pointer;transition:border-color .18s ease,color .18s ease,background .18s ease}
.team-members-trigger:hover,.team-members-trigger[aria-expanded="true"]{border-color:#40382e;color:#4da3ff;background:#1d1a16}
.team-members-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}.team-members-icon svg{width:18px;height:18px;stroke-width:1.8}
.team-members-popover{position:absolute;top:calc(100% + 10px);right:0;width:min(320px,calc(100vw - 30px));padding:16px;border:1px solid #3e3830;border-radius:14px;background:#201e1a;box-shadow:0 18px 48px rgba(0,0,0,.35);opacity:0;visibility:hidden;transform:translateY(-5px) scale(.985);transform-origin:top right;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:40}
.team-members-popover.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.team-members-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #38332c;margin-bottom:12px}
.team-members-popover-head h3{margin:0;color:#eee5d6;font:700 24px/1 Georgia,serif}
.team-members-close{border:1px solid #3f3931;background:#27231e;color:#d8cfc0;width:32px;height:32px;border-radius:9px;cursor:pointer}
.team-members-close:hover{color:#fff;border-color:#667a5c}
.team-members-popover .team-members-list{max-height:300px;overflow:auto;display:grid;gap:9px}
.team-members-popover .team-member-row{background:#211f1a}
.team-review-note{transition:transform .16s ease,background .16s ease,box-shadow .16s ease;transform-origin:left center}
.team-review-note:hover{transform:scale(1.025);background:#211f1b;box-shadow:0 8px 20px rgba(0,0,0,.18)}
@media (max-width:720px){
  .team-hero-actions-popover{width:100%;justify-content:flex-end;flex-wrap:wrap}
  .team-members-popover{right:0;left:auto}
}

/* ============================================================
   TEAM P1: management, overview, proof wall
============================================================ */
.team-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.team-stat{border:1px solid #353028;border-radius:13px;background:#211f1a;padding:12px 13px;display:grid;gap:5px}
.team-stat span{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#8f877b}
.team-stat strong{font:700 20px/1 Georgia,serif;color:#eee5d6}
.team-task-panel-head{align-items:center}
.team-task-panel-tools{display:flex;align-items:center;gap:9px}
.team-view-switch{display:flex;border:1px solid #39332c;border-radius:9px;padding:2px;background:#1b1a17}
.team-view-btn{border:0;background:transparent;color:#978e82;border-radius:7px;padding:6px 9px;font-size:9px;cursor:pointer}
.team-view-btn.active{background:#2a261f;color:#eee5d6}
.team-member-main{min-width:0;flex:1}
.team-member-action{border:1px solid #454037;background:transparent;color:#aaa095;border-radius:7px;padding:6px 8px;font-size:8px;cursor:pointer;transition:color .16s,border-color .16s}
.team-member-action:hover{color:#eee5d6;border-color:#746957}
.team-member-action.danger{color:#df9289;border-color:#5c3f3a}
.team-member-action.danger:hover{color:#f2aaa0;border-color:#8a554d}
.team-task-btn[data-team-edit]{color:#cdb38a}
.team-task-card{position:relative}
.team-proof-wall-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.team-proof-wall-card{border:1px solid #3d362e;border-radius:13px;background:#211f1a;padding:12px;display:grid;gap:9px}
.team-proof-wall-meta{display:grid;gap:2px}
.team-proof-wall-meta strong{font-size:11px;color:#eee5d6}
.team-proof-wall-meta span{font-size:12px;color:#c7bbab}
.team-proof-wall-meta small{font-size:8px;color:#8f877b}
.team-proof-wall-image{padding:0;border:1px solid #3b352d;background:#191815;border-radius:10px;overflow:hidden;cursor:pointer}
.team-proof-wall-image img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;opacity:.96;transition:transform .18s ease}
.team-proof-wall-image:hover img{transform:scale(1.02)}
@media(max-width:900px){.team-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.team-proof-wall-list{grid-template-columns:1fr}}
@media(max-width:620px){.team-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.team-task-panel-head{align-items:flex-start;gap:10px}.team-task-panel-tools{width:100%;justify-content:space-between}.team-view-switch{flex:1}.team-view-btn{flex:1}}
body.light .team-stat,body.light .team-proof-wall-card{background:#f4ede3;border-color:#d8cbbb}
body.light .team-stat span,body.light .team-proof-wall-meta small{color:#786e63}
body.light .team-stat strong,body.light .team-proof-wall-meta strong{color:#3f352b}
body.light .team-view-switch{background:#eee5d7;border-color:#d8cbbb}
body.light .team-view-btn.active{background:#fffaf2;color:#3f352b}

/* Team P1 final polish: full-width head work panel + compact leave control */
.team-hero-actions{align-items:center}
.team-leave-trigger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #4b4039;border-radius:11px;background:#201d1a;color:#d78d84;cursor:pointer;transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease}
.team-leave-trigger:hover{color:#efaaa1;border-color:#79524c;background:#26211f;transform:scale(1.035)}
.team-leave-trigger svg{width:18px;height:18px}
.team-leave-trigger[disabled]{opacity:.65;cursor:default;transform:none}
.team-danger-zone{margin:10px 0 0;padding:11px 12px;border:1px solid #613f3a;border-radius:10px;background:#241b1a;color:#dba098;font-size:10px;line-height:1.55}
.team-danger-zone strong{display:block;margin-bottom:4px;color:#efaaa1;text-transform:uppercase;letter-spacing:.12em;font-size:9px}
body.light .team-leave-trigger{background:#f4ede3;border-color:#c6b6a7;color:#a34d45}
body.light .team-leave-trigger:hover{background:#eee4da;border-color:#a87168;color:#8f3f37}
body.light .team-danger-zone{background:#f8ece8;border-color:#d8aaa1;color:#80504a}
body.light .team-danger-zone strong{color:#9c5148}
@media(max-width:760px){.team-leave-trigger{width:42px;height:42px}}


/* Final Team controls + card spacing polish. */
.team-workspace{gap:18px}
.team-overview{gap:12px}
.team-leave-trigger{
  color:#bdb3a5;
  border-color:#3d372f;
  background:transparent;
  transition:color .18s ease;
}
.team-leave-trigger:hover{
  color:#df9289;
  border-color:#3d372f;
  background:transparent;
  transform:none;
}
.team-leave-trigger svg{transition:none}

/* ---------- TEAM CARD BREATHING ROOM ---------- */
/* Keep each major Team section visually separated instead of reading as one stacked surface. */
.team-workspace > .team-toolbar { margin-bottom: 14px; }
.team-workspace > .team-overview { margin-bottom: 14px; }
.team-workspace > .team-grid { margin-bottom: 14px; }
.team-workspace > .team-overview { gap: 12px; }
.team-workspace > .team-grid { gap: 14px; }

@media (max-width: 760px) {
  .team-workspace > .team-toolbar,
  .team-workspace > .team-overview,
  .team-workspace > .team-grid { margin-bottom: 12px; }
}


/* ============================================================
   TEAM P2
============================================================ */
.team-head-tools{position:relative;display:flex;align-items:center;gap:7px;margin-left:auto}
.team-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #4a4338;border-radius:11px;background:#201e1a;color:#bdb3a5;cursor:pointer;transition:border-color .18s ease,color .18s ease,background .18s ease}
.team-icon-btn:hover{color:#4da3ff;border-color:#403b35;background:#1d1a16}
.team-icon-btn svg{width:17px;height:17px;stroke-width:1.8}
.team-notification-dot{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#d98b82;color:#160f0d;display:flex;align-items:center;justify-content:center;font:700 8px/1 Arial,sans-serif;border:2px solid #171512}
.team-notifications-popover{position:absolute;right:0;top:calc(100% + 10px);width:min(340px,calc(100vw - 28px));padding:14px;border:1px solid #3e3830;border-radius:14px;background:#201e1a;box-shadow:0 18px 48px rgba(0,0,0,.35);opacity:0;visibility:hidden;transform:translateY(-5px) scale(.985);transform-origin:top right;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:45}
.team-notifications-popover.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.team-popover-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:11px;margin-bottom:10px;border-bottom:1px solid #38332c}
.team-popover-head h3{margin:0;color:#eee5d6;font:700 22px/1 Georgia,serif}
.team-notifications-list{display:grid;gap:8px;max-height:320px;overflow:auto}
.team-notification-item{display:grid;gap:4px;text-align:left;padding:10px 11px;border:1px solid #38332c;border-radius:10px;background:#211f1a;color:#cfc5b7;cursor:pointer}
.team-notification-item:hover{border-color:#4d4941;background:#25221d}
.team-notification-item.read{opacity:.72}
.team-notification-item strong{font-size:10px;color:#eee5d6}
.team-notification-item span{font-size:10px;line-height:1.45;color:#b9aea0}
.team-notification-item small{font-size:8px;color:#847a6e}
.team-regenerate-btn{display:none}
.team-attention-panel{margin-bottom:14px}
.team-attention-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.team-attention-item{display:grid;gap:4px;text-align:left;padding:11px 12px;border:1px solid #3c3730;border-radius:11px;background:#211f1a;color:#ddd4c7;cursor:pointer}
.team-attention-item:hover{border-color:#4d4941;background:#24211c}
.team-attention-item strong{font-size:9px;color:#dba098;text-transform:uppercase;letter-spacing:.08em}
.team-attention-item span{font-size:10px;line-height:1.4;color:#c5bbad}
.team-secondary-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:14px;margin-bottom:14px}
.team-activity-list{display:grid;gap:0;max-height:360px;overflow:auto}
.team-activity-item{display:grid;grid-template-columns:11px 1fr;gap:9px;padding:9px 0;border-bottom:1px solid #302c26}
.team-activity-item:last-child{border-bottom:0}
.team-activity-dot{width:6px;height:6px;border-radius:50%;background:#7f766b;margin-top:5px}
.team-activity-item strong{display:block;font-size:10px;line-height:1.45;color:#d9d0c2;font-weight:600}
.team-activity-item small{display:block;margin-top:3px;font-size:8px;color:#81786d}
.team-workspace-summary{display:grid;gap:7px;padding-top:2px}
.team-workspace-summary strong{font:700 20px/1.05 Georgia,serif;color:#eee5d6}
.team-workspace-summary p{margin:0;color:#9b9184;font-size:10px;line-height:1.55}
.team-proof-filter{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.team-proof-filter-btn{border:1px solid #3a352e;background:transparent;color:#8f877b;border-radius:8px;padding:6px 8px;font-size:8px;cursor:pointer}
.team-proof-filter-btn.active{color:#eee5d6;border-color:#4b463e;background:#28231f}
body.light .team-notifications-popover{background:#f4ede3;border-color:#d8cbbb}
body.light .team-icon-btn{background:#f4ede3;border-color:#cdbdac;color:#6f665d}
body.light .team-icon-btn:hover{background:#efe6da;border-color:#bcae9c;color:#2f79bd}
body.light .team-notification-item,body.light .team-attention-item{background:#f9f3ea;border-color:#d8cbbb}
body.light .team-activity-item{border-color:#e0d5c7}
body.light .team-workspace-summary strong{color:#3f352b}
body.light .team-proof-filter-btn{border-color:#d6c8b9;color:#786e63}
body.light .team-proof-filter-btn.active{background:#fffaf2;color:#3f352b;border-color:#c8baaa}
@media(max-width:900px){.team-attention-list{grid-template-columns:1fr 1fr}.team-secondary-grid{grid-template-columns:1fr}.team-proof-filter{justify-content:flex-start}.team-head-tools{margin-left:0}}
@media(max-width:620px){.team-attention-list{grid-template-columns:1fr}.team-notifications-popover{right:-8px}.team-head-tools{width:auto}.team-icon-btn{width:40px;height:40px}}


/* P2 cleanup: comfortable section spacing and completed-task delete control */
.team-workspace{gap:16px}
.team-overview{margin-bottom:0}
.team-settings-summary-panel{margin-bottom:0}
.team-tasks-panel{margin-top:0}
.team-activity-last{margin-top:0}
.team-task-date-wrap{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:112px}
.team-delete-task-btn{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid #40382f;border-radius:9px;background:transparent;color:#aaa095;cursor:pointer;transition:color .18s ease,border-color .18s ease,background .18s ease}
.team-delete-task-btn svg{width:15px;height:15px;transition:transform .18s ease}
.team-delete-task-btn:hover{color:#df9289;border-color:#694640;background:#211a18}
.team-delete-task-btn:hover svg{transform:rotate(-10deg) translateY(-1px)}
.team-delete-task-btn:focus-visible{outline:2px solid #df9289;outline-offset:2px}

/* Activity compactness + clear control */
.team-activity-panel{margin-bottom:0;}
.team-activity-head{align-items:center;}
.team-activity-clear{width:36px;height:36px;flex:0 0 36px;}
.team-activity-clear:hover{color:#df9289;border-color:#3d372f;background:transparent;}
.team-activity-list{max-height:250px;overflow:auto;padding-right:3px;}
.team-activity-item{padding:7px 0;}
.team-activity-item strong{font-size:9px;}
.team-activity-item small{font-size:7px;margin-top:2px;}
.team-activity-dot{margin-top:4px;}

/* Keep major team sections separated consistently. */
.team-workspace > .team-toolbar,
.team-workspace > .team-overview,
.team-workspace > .team-attention-panel,
.team-workspace > .team-settings-summary-panel,
.team-workspace > .team-grid,
.team-workspace > .team-tasks-panel,
.team-workspace > .team-activity-panel{margin-bottom:14px;}
.team-workspace > .team-activity-panel{margin-bottom:0;}
.team-workspace > .team-overview{gap:12px;}
.team-workspace > .team-grid{gap:14px;}
@media (max-width:760px){
  .team-workspace > .team-toolbar,
  .team-workspace > .team-overview,
  .team-workspace > .team-attention-panel,
  .team-workspace > .team-settings-summary-panel,
  .team-workspace > .team-grid,
  .team-workspace > .team-tasks-panel{margin-bottom:12px;}
}

.team-loading-state{min-height:260px;margin-bottom:14px;display:grid;place-items:center;align-content:center;gap:14px;border:1px solid #38332c;border-radius:16px;background:#1c1a17;color:#9b9184}
.team-loading-line{width:min(420px,55%);height:10px;border-radius:999px;background:linear-gradient(90deg,#29251f 0%,#3a342d 45%,#29251f 100%);background-size:200% 100%;animation:team-loading-shimmer 1.4s ease-in-out infinite}
.team-loading-copy{display:grid;gap:4px;text-align:center}.team-loading-copy span{font:600 14px/1.4 Georgia,serif;color:#eee5d6}.team-loading-copy small{font-size:9px;color:#81786d}
@keyframes team-loading-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
body.light .team-loading-state{background:#f4ede3;border-color:#d8cbbb;color:#83776a}.team-loading-copy span{color:#eee5d6}.team-loading-copy small{color:#83776a}body.light .team-loading-copy span{color:#3f352b}
@media(max-width:620px){.team-loading-state{min-height:220px}.team-loading-line{width:70%}}

/* P3: team proof control polish */
.team-proof-required strong{color:#4da3ff!important;font-size:10px!important;font-weight:400!important;letter-spacing:.01em}
.team-activity-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.team-activity-actions .team-task-btn{min-height:34px}
.team-invite-meta{display:block;margin-top:2px;color:#756d62;font-size:8px;line-height:1.35;text-align:right;max-width:280px}
.team-security-block{display:grid;gap:12px;padding:12px;border:1px solid #3d372f;border-radius:12px;background:#211f1a}
.team-security-block h3{margin:0;color:#eee5d6;font-family:Georgia,serif;font-size:18px}
.team-security-grid{grid-template-columns:1fr 1fr}
.team-security-actions{display:flex;gap:7px;flex-wrap:wrap}
.team-security-actions .team-task-btn:hover{transform:none}
.team-session-list-wrap{display:grid;gap:8px}
.team-session-list{display:grid;gap:6px;max-height:220px;overflow:auto}
.team-session-item{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:9px 10px;border:1px solid #38332c;border-radius:9px;background:#1c1a17}
.team-session-item strong{display:block;font-size:10px;color:#eee5d6}
.team-session-item small{display:block;margin-top:2px;color:#8f877b;font-size:8px;line-height:1.35}
.team-session-item.suspicious{border-color:#76514a}
.team-session-flag{display:inline-block;margin-top:4px;padding:3px 5px;border-radius:999px;border:1px solid #76514a;color:#df9289!important;font-size:7px!important}
body.light .team-invite-meta{color:#83776a}
body.light .team-security-block{background:#f4ede3;border-color:#d8cbbb}
body.light .team-security-block h3{color:#3f352b}
body.light .team-session-item{background:#f9f3ea;border-color:#d8cbbb}
body.light .team-session-item strong{color:#3f352b}
@media(max-width:620px){
  .team-security-grid{grid-template-columns:1fr}
  .team-activity-actions{justify-content:flex-end}
  .team-invite-meta{text-align:left}
  .team-session-item{align-items:flex-start;flex-direction:column}
}

.team-team-danger-zone{margin-top:18px;border-top:1px solid rgba(190,95,82,.28);padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.team-team-danger-zone>div{display:grid;gap:4px}.team-team-danger-zone strong{color:#d18b80;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.team-team-danger-zone span{color:#8f867a;font-size:12px;line-height:1.5}
.team-danger-action{color:#d4877c!important;border-color:rgba(184,88,77,.45)!important;background:transparent!important}
.team-danger-action:hover{color:#ff8f80!important;border-color:rgba(221,108,94,.7)!important}
@media(max-width:620px){.team-team-danger-zone{align-items:flex-start;flex-direction:column}.team-danger-action{width:100%}}

.about-social-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.about-github{display:inline-flex;align-items:center;gap:8px;color:#cfc7b9;border:1px solid #473f34;border-radius:12px;padding:10px 14px;text-decoration:none;transition:color .18s ease,border-color .18s ease}
.about-github svg{width:15px;height:15px;fill:currentColor}
.about-github:hover,.about-github:focus-visible{color:#f0ebe1;border-color:#756755}
@media (max-width:640px){.about-social-links{width:100%}.about-github,.about-linkedin{width:fit-content}}

/* Final audit safeguards */
html,body{max-width:100%;overflow-x:hidden;}
img,video,canvas,svg{max-width:100%;}
input,textarea,select,button{font:inherit;max-width:100%;}
@media(max-width:760px){
  .view{min-width:0!important;}
  .team-layout,.team-grid,.team-stats,.stats-grid{min-width:0!important;grid-template-columns:minmax(0,1fr)!important;}
  .team-panel,.team-card,.task-card{min-width:0;max-width:100%;}
}

/* ============================================================
   LIGHT MODE BUTTON BLEND — warm paper accent only
   Keep dark theme unchanged.
============================================================ */
body.light .team-members-trigger {
  background: #e2c182;
  border-color: #d2ae6d;
  color: #2d281f;
}
body.light .team-members-trigger:hover,
body.light .team-members-trigger[aria-expanded="true"] {
  background: #e2c182;
  border-color: #c39a58;
  color: #2d281f;
}

body.light .team-count {
  background: #e2c182;
  border-color: #d2ae6d;
  color: #2d281f;
}

body.light .team-view-btn.active {
  background: #e2c182;
  color: #2d281f;
}

body.light .team-task-btn {
  background: #e2c182;
  border-color: #d2ae6d;
  color: #2d281f;
}
body.light .team-task-btn:hover {
  background: #e8ca95;
  border-color: #c39a58;
  color: #2d281f;
}
body.light .team-task-btn.proof,
body.light .team-task-btn.approve,
body.light .team-task-btn.changes {
  background: #e2c182;
  color: #2d281f;
}

body.light .team-copy-btn {
  background: #f7efe3;
  border-color: #cfc0ad;
  color: #4a4034;
}

body.light .brain-ref-board-menu button,
body.light .brain-ref-zoom button,
body.light .brain-ref-tool.active,
body.light .brain-ref-chrome-btn.dark {
  background: #e2c182 !important;
  border-color: #d2ae6d !important;
  color: #2d281f !important;
}
body.light .brain-ref-board-menu button:hover,
body.light .brain-ref-zoom button:hover,
body.light .brain-ref-tool.active:hover,
body.light .brain-ref-chrome-btn.dark:hover {
  background: #e8ca95 !important;
  border-color: #c39a58 !important;
  color: #2d281f !important;
}

body.light .theme-choice.active,
body.light .calendar-mode-v11.active {
  background: #e2c182;
  color: #2d281f;
}

/* =========================================================
   NEWLA — Curved workspace topbar + GitHub CTA
   Inspired by the compact, rounded navigation card reference.
   ========================================================= */
.topbar {
  box-sizing: border-box;
  height: 72px !important;
  margin: 12px clamp(12px, 1.5vw, 20px) 0 !important;
  width: calc(100% - clamp(24px, 3vw, 40px)) !important;
  padding: 0 clamp(12px, 1.2vw, 18px) !important;
  border: 1px solid #302c27 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(26, 24, 21, .96), rgba(22, 20, 18, .94)) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255,255,255,.025) !important;
  backdrop-filter: blur(16px);
}

.topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand {
  flex: 0 0 auto;
  width: 126px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.topbar-logo {
  display: block;
  width: 126px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.topbar-logo-light { display: none; }
body.light .topbar-logo-dark { display: none; }
body.light .topbar-logo-light { display: block; }

.topbar-divider {
  width: 1px;
  height: 28px;
  flex: 0 0 auto;
  background: rgba(255,255,255,.08);
}

.topbar .breadcrumb {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.github-star-btn {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: #f7f5f1;
  color: #27231f;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0,0,0,.14);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.github-star-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

.github-star-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  background: #fffdfa;
}

.github-star-btn:active { transform: translateY(0); }

body.light .topbar {
  background: linear-gradient(180deg, rgba(249,245,238,.96), rgba(241,234,224,.95)) !important;
  border-color: #d2c6b6 !important;
  box-shadow: 0 10px 26px rgba(81,57,32,.08), inset 0 1px 0 rgba(255,255,255,.5) !important;
}

body.light .topbar-divider {
  background: rgba(91,70,46,.12);
}

body.light .github-star-btn {
  background: #29251f;
  color: #f6f1e8;
  border-color: rgba(70,56,40,.2);
}

body.light .github-star-btn:hover { background: #201d19; }

@media (max-width: 900px) {
  .topbar {
    margin-top: 10px !important;
    border-radius: 16px !important;
  }
  .topbar-brand,
  .topbar-logo { width: 108px; }
  .topbar-logo { height: 36px; }
  .github-star-btn { padding: 0 12px; }
}

@media (max-width: 700px) {
  .topbar-left { gap: 8px; }
  .topbar-brand,
  .topbar-logo { width: 92px; }
  .topbar-divider { display: none; }
  .topbar .breadcrumb { display: none; }
  .github-star-btn span { display: none; }
  .github-star-btn { width: 40px; padding: 0; }
}

@media (max-width: 520px) {
  .topbar {
    margin: 8px 8px 0 !important;
    width: calc(100% - 16px) !important;
    padding: 0 8px !important;
    height: 64px !important;
    border-radius: 15px !important;
  }
  .topbar-brand,
  .topbar-logo { width: 84px; }
  .topbar .top-actions { gap: 5px; }
  .topbar .top-btn { padding: 7px 8px; }
  .topbar .top-btn#quickAddTop { font-size: 10px; }
  .topbar .clock { font-size: 11px; letter-spacing: .04em; }
  .github-star-btn { width: 36px; min-height: 36px; }
}
\n\n/* =========================================================\n   NEWLA — Final header polish\n   - Logo lives only inside the curved topbar card.\n   - Sidebar top slot carries the live clock.\n   - GitHub CTA uses a real GitHub mark and grows slightly on hover.\n   ========================================================= */\n.sidebar .brand.brand-clock-only {\n  box-sizing: border-box !important;\n  width: 100% !important;\n  height: 88px !important;\n  min-height: 88px !important;\n  margin: 0 !important;\n  padding: 0 12px 18px !important;\n  display: flex !important;\n  align-items: center !important;\n  justify-content: center !important;\n  border-bottom: 1px solid #292621 !important;\n}\n\n.sidebar .brand.brand-clock-only .sidebar-clock {\n  font-size: 19px !important;\n  line-height: 1 !important;\n  letter-spacing: .09em !important;\n  font-variant-numeric: tabular-nums !important;\n  color: #e8dfd0 !important;\n  white-space: nowrap !important;\n}\n\nbody.light .sidebar .brand.brand-clock-only {\n  border-bottom-color: #ddd0c0 !important;\n}\n\nbody.light .sidebar .brand.brand-clock-only .sidebar-clock {\n  color: #3d352c !important;\n}\n\n.github-star-btn .github-mark {\n  width: 16px !important;\n  height: 16px !important;\n  flex: 0 0 auto !important;\n  display: block !important;\n}\n\n.github-star-btn {\n  transform: scale(1) !important;\n  transform-origin: center !important;\n  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background-color .18s ease !important;\n}\n\n.github-star-btn:hover,\n.github-star-btn:focus-visible {\n  transform: scale(1.055) !important;\n  box-shadow: 0 8px 20px rgba(0,0,0,.20) !important;\n}\n\n.github-star-btn:active {\n  transform: scale(1.02) !important;\n}\n\n@media (max-width: 700px) {\n  .sidebar .brand.brand-clock-only {\n    height: 74px !important;\n    min-height: 74px !important;\n    padding-bottom: 12px !important;\n  }\n  .sidebar .brand.brand-clock-only .sidebar-clock {\n    font-size: 16px !important;\n  }\n}\n
