* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #172a46;
  background: #f5f7fa;
  font-size: 16px;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ba6308;
  outline-offset: 3px;
}
button {
  border: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: #172a46;
  color: white;
  padding: 44px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.7px;
}
.brand b {
  font-weight: 400;
  color: #c7d2e1;
}
.mark {
  background: #ffbb70;
  color: #172a46;
  border-radius: 13px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  font-size: 34px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.7px;
}
aside > .eyebrow {
  color: #9cafc7;
  margin-top: 64px;
}
nav {
  display: grid;
  gap: 8px;
}
.nav-separator {
  height: 2px;
  margin: 8px 4px;
  background: #ffffff35;
  border-radius: 2px;
}
.linkedin-nav {
  border-color: #62a8d8 !important;
}
.linkedin-status {
  font-size: 0.8rem;
  font-weight: 800;
  color: #4c5260;
  line-height: 1.35;
}
.audit-line {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: #615d70;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
}
.linkedin-card {
  border-top-color: #2877a8;
}
.linkedin-card .task-label {
  color: #225f86;
}
.linkedin-card .task-bottom {
  gap: 8px;
  align-items: stretch;
}
.linkedin-toggle {
  margin-top: auto;
}
nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  background: transparent;
  color: #c9d4e4;
  text-align: left;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.05rem;
}
nav button.active {
  background: #30425c;
  color: #fff;
}
nav span {
  flex: 1;
}
nav small {
  font-size: 0.8rem;
}
.side-bottom {
  margin-top: auto;
}
.side-bottom button {
  background: none;
  color: #ffca8e;
  padding: 12px 0;
  font-size: 0.9rem;
}
.side-bottom p {
  color: #a6b7cc;
  font-size: 0.8rem;
  line-height: 1.6;
}
main {
  margin-left: 252px;
  padding: 36px 6%;
  max-width: 1600px;
}
header {
  display: flex;
  justify-content: space-between;
  color: #65748a;
  font-size: 0.875rem;
  padding-bottom: 45px;
  border-bottom: 1px solid #dfe5ed;
}
.local {
  font-size: 0.8rem;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 46px 0 34px;
}
.heading .eyebrow {
  color: #69778a;
}
h1 {
  font-size: 3.3rem;
  line-height: 1.1;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 14px 0;
}
h1 span {
  color: #d5792c;
}
.heading p:last-child {
  color: #6a7789;
  margin-bottom: 0;
}
.primary {
  background: #172a46;
  color: white;
  padding: 15px 22px;
  border-radius: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.primary:hover {
  background: #2e4666;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 27px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #dce2e9;
  border-radius: 9px;
  padding: 11px 15px;
  background: white;
  flex: 1;
  max-width: 420px;
}
.search span {
  font-size: 24px;
  line-height: 1;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  min-width: 0;
}
#results {
  font-size: 0.8rem;
  color: #65748a;
  margin-left: auto;
}
#filters button {
  background: transparent;
  padding: 10px;
  font-size: 0.875rem;
  color: #56667b;
}
#filters .selected {
  background: #e1e7f0;
  border-radius: 7px;
  color: #172a46;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-height: 330px;
  align-content: start;
}
.note-card {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  min-height: 224px;
  padding: 25px;
  text-align: left;
  color: #172a46;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-wrap: anywhere;
}
.note-card:before {
  content: "";
  width: 30px;
  height: 4px;
  background: #e5a052;
  border-radius: 5px;
  margin-bottom: 22px;
}
.note-card:nth-child(3n + 2):before {
  background: #6e9de0;
}
.note-card:nth-child(3n):before {
  background: #8c83bd;
}
.note-card:hover {
  border-color: #8294ad;
  box-shadow: 0 6px 24px #172a4609;
}
.note-card h2 {
  font-size: 1.125rem;
  margin: 0 0 12px;
  line-height: 1.4;
}
.note-card p {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #677488;
  line-height: 1.6;
  margin: 0 0 25px;
  font-size: 0.95rem;
}
.note-card time {
  font-size: 0.75rem;
  color: #738094;
  margin-top: auto;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed #bfcbd9;
  border-radius: 14px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}
.empty .empty-icon {
  font-size: 40px;
  color: #b36a26;
  margin-bottom: 10px;
}
.empty h2 {
  font-size: 1.3rem;
  margin: 8px;
}
.empty p {
  color: #6a7789;
  line-height: 1.7;
  max-width: 360px;
}
.tasks-list {
  display: grid;
  gap: 12px;
  min-height: 330px;
  align-content: start;
}
.task-row {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 17px;
  gap: 15px;
}
.task-row input {
  width: 23px;
  height: 23px;
  accent-color: #172a46;
  flex-shrink: 0;
}
.task-open {
  background: none;
  flex: 1;
  text-align: left;
  color: #172a46;
  padding: 6px;
  overflow-wrap: anywhere;
}
.task-open small {
  display: block;
  font-size: 0.875rem;
  color: #68778b;
  margin-top: 8px;
}
.done .task-open > span {
  text-decoration: none;
  color: #788496;
}
.task-open .overdue {
  color: #b04427;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #dfe5ed;
  margin-top: 45px;
  padding: 24px 0;
  color: #6e7c8e;
  font-size: 0.75rem;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 30px;
  width: min(600px, calc(100% - 28px));
  max-height: 90dvh;
  color: #172a46;
  box-shadow: 0 24px 100px #071a3a44;
}
dialog::backdrop {
  background: #10243c88;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.icon-button {
  font-size: 28px;
  color: #62738a;
  background: transparent;
  padding: 3px 10px;
}
.dialog-top h2 {
  font-size: 1.3rem;
}
form label {
  display: block;
  margin: 20px 0 9px;
  font-size: 0.875rem;
  font-weight: 600;
}
form input,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #cdd6e0;
  border-radius: 8px;
  color: #172a46;
  background: #fafbfd;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}
.danger {
  color: #b53d35;
  background: transparent;
  margin-right: auto;
  font-size: 0.875rem;
}
.muted,
#draft-status {
  color: #66768b;
  font-size: 0.8rem;
  line-height: 1.6;
}
#install-help p {
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  aside {
    width: 210px;
    padding: 32px 20px;
  }
  main {
    margin-left: 210px;
    padding: 30px 5%;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    padding: 20px;
    display: block;
  }
  .brand {
    font-size: 19px;
  }
  .brand br {
    display: none;
  }
  .brand b {
    margin-left: 5px;
  }
  .mark {
    width: 36px;
    height: 38px;
    font-size: 26px;
    border-radius: 9px;
  }
  aside > .eyebrow,
  .side-bottom p {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 22px;
    gap: 8px;
  }
  nav button {
    flex: 1;
    padding: 12px;
    font-size: 0.95rem;
  }
  .side-bottom {
    position: absolute;
    top: 20px;
    right: 18px;
  }
  .side-bottom button {
    font-size: 0.8rem;
    max-width: 110px;
    text-align: right;
    padding: 0;
    line-height: 1.5;
  }
  main {
    margin: 0;
    padding: 22px;
  }
  header {
    padding-bottom: 23px;
    font-size: 0.8rem;
  }
  .heading {
    margin: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  h1 {
    font-size: 2.65rem;
  }
  .heading .eyebrow {
    font-size: 0.65rem;
  }
  .heading .primary {
    width: 100%;
  }
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .note-card {
    min-height: 180px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}

header {
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
}
#today {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.6px;
  color: #172a46;
  text-transform: capitalize;
}
.local {
  border: 1px solid #d6dfeb;
  border-radius: 30px;
  padding: 8px 12px;
  background: #fff;
  white-space: nowrap;
}
.side-bottom {
  display: grid;
  gap: 5px;
}
.side-bottom button {
  text-align: left;
}
.tasks-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-content: start;
}
.task-row {
  aspect-ratio: 1;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 22px;
  border-radius: 16px;
  border-top: 4px solid #efa65b;
  gap: 12px;
  box-shadow: 0 5px 20px #172a4605;
}
.task-row:nth-child(3n + 2) {
  border-top-color: #719fe0;
}
.task-row:nth-child(3n) {
  border-top-color: #a391cb;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.task-label {
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #6c7788;
}
.task-open {
  padding: 8px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-start;
}
.task-open > span {
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.45;
}
.task-open small {
  margin-top: auto;
  padding-top: 12px;
}
.task-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e6ebf1;
  padding-top: 14px;
  min-height: 48px;
}
.take-task {
  background: #eef3fb;
  border-radius: 8px;
  color: #243f64;
  font-size: 0.875rem;
  padding: 11px 12px;
  width: 100%;
  font-weight: 600;
}
.take-task:hover {
  background: #dce8f9;
}
.assignee {
  font-size: 0.85rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  flex: 1;
}
.release {
  font-size: 0.8rem;
  color: #64758d;
  background: transparent;
  text-decoration: underline;
  padding: 10px;
}
.task-row.done {
  border-top-color: #9eb9aa;
  background: #f4f8f6;
}
.task-row.done .task-label {
  color: #416b56;
}
#notice {
  padding: 15px;
  border-radius: 9px;
  background: #fff0e6;
  color: #8f3d1e;
  line-height: 1.6;
}
#draft-status {
  max-width: 100%;
  flex: 1;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#reload-version {
  padding: 10px;
  border-radius: 6px;
  color: #172a46;
  background: #e8eef6;
  font-size: 0.875rem;
}
#share-help p {
  line-height: 1.7;
}
#share-url {
  overflow-wrap: anywhere;
}
@media (max-width: 1150px) {
  .tasks-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  #today {
    font-size: 1.65rem;
    line-height: 1.35;
  }
  .local {
    font-size: 0.75rem;
  }
  .side-bottom {
    top: 15px;
    gap: 8px;
  }
  .side-bottom button {
    text-align: right;
    font-size: 0.75rem;
  }
  main {
    padding: 22px 18px;
  }
  .tasks-list {
    grid-template-columns: 1fr;
  }
  .task-row {
    aspect-ratio: 1;
    min-height: 260px;
    padding: 26px;
  }
  .task-open > span {
    font-size: 1.45rem;
  }
  .task-open small {
    font-size: 1rem;
  }
  .take-task {
    font-size: 1rem;
    padding: 14px;
  }
  .task-row input {
    width: 28px;
    height: 28px;
  }
  .heading {
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .note-card,
  .task-row {
    transition:
      box-shadow 0.2s,
      transform 0.2s;
  }
  .note-card:hover {
    transform: translateY(-2px);
  }
}

.brand {
  gap: 13px;
  letter-spacing: -0.8px;
}
.brand .mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: none;
  box-shadow: 0 4px 16px #07172b20;
}
.brand > span {
  font-weight: 650;
}
.brand b {
  font-weight: 400;
}
footer {
  align-items: center;
}
.fun-line {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  font-size: 0.95rem;
  color: #52637b;
  line-height: 1.65;
}
.fun-spark {
  color: #a8611e;
  font-size: 1.5rem;
  flex-shrink: 0;
}
#save-status {
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .brand .mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .fun-line {
    font-size: 0.95rem;
  }
  .brand {
    gap: 10px;
  }
}

.task-row:not(.assigned) {
  border-top-color: #b5c2d2;
}
.task-row.assigned {
  border-top-color: var(--person-color);
  background: var(--person-soft);
}
.task-row.assigned.done {
  border-top-color: var(--person-color);
  background: var(--person-soft);
}
.assignee-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 150px;
}
.person-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--person-badge);
  color: var(--person-color);
  font-size: 0.875rem;
  font-weight: 750;
}
.person-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.person-caption {
  font-size: 0.75rem;
  color: #627086;
}
.person-name {
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--person-color);
  overflow-wrap: anywhere;
}
.task-row.assigned input {
  accent-color: var(--person-color);
}

/* A brighter notebook, with a generous editorial heading. */
:root {
  background: #f2f5fa;
}
aside {
  background: #152842;
  border-right: 1px solid #29425e;
}
.brand {
  padding-bottom: 26px;
  border-bottom: 1px solid #ffffff1c;
}
aside > .eyebrow {
  margin-top: 35px;
}
nav button {
  font-size: 0.95rem;
  padding: 15px 13px;
  line-height: 1.45;
  border: 1px solid transparent;
}
nav button.active {
  background: #ffbf78;
  color: #14283f;
  box-shadow: 0 6px 20px #09182c20;
}
nav button:hover:not(.active) {
  background: #263d58;
}
nav span {
  font-weight: 550;
}
.heading {
  position: relative;
  background: #e6edfa;
  border: 1px solid #d7e2f3;
  border-radius: 22px;
  padding: 34px 36px;
  margin: 32px 0 28px;
  overflow: hidden;
}
.heading:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #7399d9;
}
.heading .eyebrow {
  color: #475f83;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
}
.heading h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 18px 0;
}
.heading p:last-child {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 460px;
  color: #50647e;
}
.heading .primary {
  background: #172a46;
  box-shadow: 0 5px 0 #b4c4de;
  border-radius: 11px;
  padding: 16px 22px;
}
.heading .primary:hover {
  background: #2a4366;
  transform: translateY(-1px);
}
body[data-view="tasks"] .heading {
  background: #fff0dc;
  border-color: #f0dbbe;
}
body[data-view="tasks"] .heading:before {
  background: #d9903c;
}
body[data-view="tasks"] .heading .eyebrow {
  color: #886035;
}
body[data-view="tasks"] .heading .primary {
  box-shadow: 0 5px 0 #e8c8a2;
}
.toolbar {
  padding: 3px 0;
}
.search {
  border-radius: 12px;
  box-shadow: 0 2px 5px #172a4603;
}
.empty {
  background: #ffffff90;
  border: 1px dashed #bdcbdd;
  border-radius: 18px;
  min-height: 260px;
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  background: #edf2fa;
  border-radius: 18px;
  width: 65px;
  height: 65px;
  color: #5377ad;
  font-size: 34px;
  margin-bottom: 12px;
}
body[data-view="tasks"] .empty .empty-icon {
  background: #fff0dc;
  color: #a6661f;
}
.empty h2 {
  font-size: 1.35rem;
  letter-spacing: -0.3px;
}
.note-card {
  border-radius: 16px;
  box-shadow: 0 4px 14px #172a4604;
}
.note-card:before {
  width: 42px;
}
.task-row {
  box-shadow: 0 5px 16px #172a4605;
}
footer {
  background: #e8eef7;
  border: 0;
  border-radius: 13px;
  padding: 19px 22px;
  margin-top: 30px;
}
.fun-line {
  color: #465d79;
}
.local {
  background: #fff;
  border-color: #d8e2ed;
}
#today {
  letter-spacing: -0.8px;
}
.side-bottom button {
  line-height: 1.5;
}
button {
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
button:focus-visible {
  outline-offset: 4px;
}
@media (max-width: 1100px) {
  .heading {
    padding: 27px;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 3rem;
  }
  nav button {
    gap: 8px;
    padding: 13px 8px;
    font-size: 0.875rem;
  }
}
@media (max-width: 700px) {
  .brand {
    border: 0;
    padding: 0;
  }
  nav button {
    font-size: 0.9rem;
    padding: 12px 9px;
    gap: 8px;
  }
  nav small {
    font-size: 0.75rem;
  }
  .heading {
    margin-top: 23px;
    padding: 25px 23px;
    border-radius: 18px;
    gap: 20px;
  }
  .heading h1 {
    font-size: 2.65rem;
    letter-spacing: -1.5px;
  }
  .heading .eyebrow {
    font-size: 0.65rem;
    line-height: 1.7;
    letter-spacing: 1px;
  }
  .heading p:last-child {
    font-size: 0.95rem;
  }
  .heading .primary {
    white-space: normal;
  }
  .empty {
    padding: 26px 18px;
  }
  .empty h2 {
    font-size: 1.2rem;
  }
  footer {
    padding: 18px;
    gap: 14px;
  }
  .side-bottom button {
    font-size: 0.75rem;
  }
  .fun-line {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  .heading .primary:hover {
    transform: none;
  }
}

/* Superhero headquarters: graphic comic panels, readable working surface. */
:root {
  background: #f3f0ff;
  color: #202143;
}
body {
  background-image: radial-gradient(#dad5ed 0.8px, transparent 0.8px);
  background-size: 12px 12px;
}
aside {
  background: #222344;
  border-right: 3px solid #17182f;
  color: white;
}
.brand {
  border-bottom: 2px solid #ffffff25;
}
.brand > span {
  font-weight: 800;
}
.brand b {
  color: #ffe77b;
}
.brand .mark {
  box-shadow: 3px 3px 0 #101127;
  border: 2px solid #ffe985;
  transform: rotate(-5deg);
}
aside > .eyebrow {
  color: #c5bdf0;
  font-size: 0.7rem;
  letter-spacing: 1.3px;
}
nav button {
  border: 2px solid transparent;
  border-radius: 12px;
}
nav button.active {
  color: #202143;
  background: #ffe46a;
  border-color: #12152b;
  box-shadow: 4px 4px 0 #101128;
}
nav button:hover:not(.active) {
  background: #38395c;
}
nav button.active span {
  font-weight: 750;
}
.side-bottom button {
  color: #ffe46a;
}
.side-bottom p {
  color: #c8c1df;
}
main {
  padding-top: 30px;
}
header {
  border-bottom: 2px solid #d6d0e7;
  padding-bottom: 26px;
}
#today {
  color: #252441;
  font-weight: 750;
}
.local {
  background: #fff;
  border: 2px solid #282746;
  color: #393556;
  font-weight: 650;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #d5cbe9;
}
.heading,
body[data-view="tasks"] .heading {
  border: 2px solid #282746;
  border-radius: 18px;
  box-shadow: 7px 7px 0 #282746;
  background: #ffe57b;
  padding: 28px 32px;
  margin: 28px 7px 33px 0;
}
.heading:before,
body[data-view="tasks"] .heading:before {
  display: none;
}
body[data-view="notes"] .heading {
  background: #bdeee8;
}
body[data-view="notes"] .note-card {
  background: #e8faf7;
  border-color: #63bdb3;
  box-shadow: 4px 4px 0 #b7e5df;
}
body[data-view="notes"] .note-card::before {
  background: #36a99c;
}
nav button[data-view="notes"].active {
  background: #bdeee8;
}
.heading .eyebrow,
body[data-view="tasks"] .heading .eyebrow {
  display: inline-block;
  color: #282746;
  background: #ffffffa8;
  border: 1.5px solid #282746;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  transform: rotate(-1deg);
  margin-top: 0;
}
.heading h1 {
  font-weight: 850;
  color: #252441;
  font-size: clamp(2.3rem, 3.8vw, 3.6rem);
  letter-spacing: -1.8px;
  text-shadow: 2px 2px 0 #ffffff90;
}
.heading h1 span {
  color: #7852c7;
}
.heading p:last-child {
  color: #413759;
  font-weight: 500;
}
.primary,
.heading .primary,
body[data-view="tasks"] .heading .primary {
  background: #7753c6;
  color: #fff;
  border: 2px solid #282746;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #282746;
  font-weight: 750;
  padding: 14px 20px;
}
.primary:hover,
.heading .primary:hover {
  background: #6240ad;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #282746;
}
.primary:active,
.heading .primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #282746;
}
.search {
  border: 2px solid #d3cbe2;
  background: white;
  box-shadow: 3px 3px 0 #e3dced;
}
.search:focus-within {
  border-color: #7753c6;
}
#filters .selected {
  background: #e4d8fa;
  border: 1px solid #b6a0d8;
  font-weight: 700;
  color: #46336c;
}
#filters button {
  border: 1px solid transparent;
}
.note-card {
  border: 2px solid #302c4b;
  box-shadow: 4px 4px 0 #d3c8e7;
  background: white;
}
.note-card:hover {
  border-color: #7753c6;
  box-shadow: 5px 5px 0 #c2b0e0;
}
.note-card:before {
  height: 6px;
  background: #9270d4;
}
.task-row,
.task-row:not(.assigned) {
  border: 2px solid #302c4b;
  border-top: 7px solid #9270d4;
  box-shadow: 4px 4px 0 #d3c8e7;
  border-radius: 14px;
  background: #fff;
}
.task-row.assigned,
.task-row.assigned.done {
  border: 2px solid #302c4b;
  border-top: 7px solid var(--person-color);
  background: var(--person-soft);
  box-shadow: 4px 4px 0 #d3c8e7;
}
.task-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #544469;
}
.task-row input {
  accent-color: #7753c6;
}
.take-task {
  background: #ffe784;
  border: 1.5px solid #302c4b;
  box-shadow: 2px 2px 0 #302c4b;
  color: #302444;
  font-weight: 750;
  border-radius: 8px;
}
.take-task:hover {
  background: #ffdc51;
}
.task-row.done .task-label {
  color: #34614d;
}
.task-row.done {
  position: relative;
  overflow: hidden;
  border-color: #8f949d;
  border-top-color: #777d87;
  background: #e2e3e5;
  filter: grayscale(0.35);
}
.task-row.done::after {
  content: "TERMINÉ";
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  padding: 7px 14px;
  border: 4px double #686d75;
  border-radius: 5px;
  color: #565b63;
  background: #f4f4f2dd;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-9deg);
  pointer-events: none;
  box-shadow: 0 0 0 2px #f4f4f2aa;
}
.task-row.done .task-open,
.task-row.done .task-bottom {
  opacity: 0.58;
}
.person-avatar {
  border: 1px solid var(--person-color);
  border-radius: 9px;
}
.person-caption {
  color: #625374;
  font-weight: 600;
}
.task-bottom {
  border-top: 1px dashed #baaecd;
}
.empty {
  border: 2px dashed #b5a6ce;
  border-radius: 16px;
  background: #fffafee0;
  min-height: 230px;
}
.empty .empty-icon,
body[data-view="tasks"] .empty .empty-icon {
  background: #ffe784;
  border: 2px solid #302c4b;
  box-shadow: 3px 3px 0 #d9cfea;
  color: #44345b;
  transform: rotate(-5deg);
  border-radius: 13px;
  width: 58px;
  height: 58px;
  font-size: 30px;
}
.empty h2 {
  color: #302444;
}
.empty p {
  color: #6d607b;
}
footer {
  background: #fff;
  border: 2px solid #d3c7e7;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #e1d8ef;
}
.fun-line {
  color: #594570;
}
.fun-spark {
  color: #7753c6;
}
dialog {
  border: 2px solid #302c4b;
  box-shadow: 8px 8px 0 #221b4270;
  border-radius: 16px;
}
dialog::backdrop {
  background: #211d4380;
}
form input,
textarea {
  background: #faf8fe;
  border-color: #d6cce5;
}
.dialog-top .eyebrow {
  color: #7753c6;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline-color: #8a59da;
}
@media (max-width: 1100px) {
  .heading,
  body[data-view="tasks"] .heading {
    padding: 25px;
  }
  .heading h1 {
    font-size: 2.8rem;
  }
  .local {
    white-space: normal;
  }
}
@media (max-width: 700px) {
  aside {
    border-right: 0;
    border-bottom: 3px solid #17182f;
    padding: 18px;
  }
  .brand .mark {
    width: 38px;
    height: 38px;
  }
  .brand {
    border-bottom: 0;
  }
  .side-bottom {
    right: 17px;
    top: 14px;
  }
  nav {
    margin-top: 20px;
    gap: 10px;
  }
  nav button {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  nav button.active {
    box-shadow: 3px 3px 0 #101128;
  }
  main {
    padding: 22px 18px;
  }
  .heading,
  body[data-view="tasks"] .heading {
    padding: 22px 19px;
    margin-right: 5px;
    box-shadow: 5px 5px 0 #282746;
  }
  .heading h1 {
    font-size: 2.5rem;
    letter-spacing: -1.3px;
  }
  .heading .eyebrow,
  body[data-view="tasks"] .heading .eyebrow {
    font-size: 0.6rem;
    line-height: 1.5;
    padding: 6px 8px;
    letter-spacing: 0.7px;
  }
  .heading p:last-child {
    font-size: 0.95rem;
  }
  .local {
    font-size: 0.75rem;
  }
  #today {
    font-size: 1.55rem;
  }
  .tasks-list,
  .notes-grid {
    padding-right: 4px;
  }
  .task-label {
    font-size: 0.75rem;
  }
  footer {
    margin-right: 4px;
  }
  .fun-line {
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary:hover,
  .heading .primary:hover,
  .primary:active,
  .heading .primary:active {
    transform: none;
  }
}

.brand {
  gap: 12px;
}
.brand > span {
  font-size: 1.3rem;
  line-height: 1.2;
}
.brand b {
  font-size: 1.1rem;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.brand .mark {
  transform: none;
  background: #ffe46a;
  border: 0;
  box-shadow: 3px 3px 0 #101127;
}
@media (max-width: 700px) {
  .brand > span {
    font-size: 1rem;
  }
  .brand b {
    font-size: 0.95rem;
  }
  .brand br {
    display: block;
  }
  .brand b {
    margin-left: 0;
  }
  .brand .mark {
    width: 40px;
    height: 40px;
  }
}

.mission-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -3px;
}
.progress-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #42526a;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.progress-toggle input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #277d69;
}
.task-row.in-progress:not(.done),
.note-card.in-progress {
  background: #e4f5ef !important;
  box-shadow: 4px 4px 0 #9dcfbe !important;
}
.task-row.in-progress:not(.done) {
  border-color: #277d69 !important;
  border-top-color: #277d69 !important;
}
.note-card.in-progress {
  border-color: #277d69 !important;
}
.urgent-quick {
  flex: 0 0 auto;
}
.urgent-row {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  padding-top: 4px;
}
.urgent-row .urgent-quick {
  margin: 0;
}
.delete-mission {
  background: transparent;
  color: #963e4a;
  font-size: 0.875rem;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 36px;
}
.delete-mission:hover {
  background: #fff0f0;
  border-color: #e1b7bf;
}
.delete-mission:focus-visible {
  outline-color: #963e4a;
}
@media (max-width: 700px) {
  .delete-mission {
    min-height: 44px;
  }
}

.team-roster {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ffffff25;
}
.team-roster h2 {
  font-size: 0.75rem;
  color: #c5bdf0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 15px;
}
.team-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.team-person img {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}
.team-person span {
  min-width: 0;
}
.team-person strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
}
.team-person small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #cec9e5;
  margin-top: 2px;
}
aside {
  overflow-y: auto;
}
.side-bottom {
  padding-top: 20px;
}
@media (max-width: 700px) {
  .team-roster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .team-roster h2 {
    grid-column: 1/-1;
    margin: 0 0 2px;
  }
  .team-person {
    margin: 0;
    align-items: flex-start;
    gap: 8px;
  }
  .team-person img {
    width: 32px;
    height: 32px;
  }
  .team-person strong {
    font-size: 0.8rem;
  }
  .team-person small {
    font-size: 0.75rem;
  }
  .side-bottom {
    padding-top: 0;
  }
  .team-roster {
    padding-bottom: 2px;
  }
}

body[data-view="plans"] .heading {
  background: #dfd2ff;
}
body[data-view="plans"] .task-row {
  background: #faf6ff;
  border-top-color: #9270d4;
}
body[data-view="plans"] .task-label {
  color: #7950a4;
}
body[data-view="plans"] .take-task {
  background: #e5d8ff;
}
body[data-view="plans"] .heading h1 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}
nav button[data-view="plans"].active {
  background: #dfd2ff;
}
body[data-view="linkedin"] .heading {
  background: #b9def5;
}
body[data-view="linkedin"] .task-row:not(.done) {
  background: #e7f4fc;
  border-color: #5c9fc8;
  border-top-color: #2877a8;
  box-shadow: 4px 4px 0 #bad9eb;
}
body[data-view="linkedin"] .take-task {
  background: #c9e7f8;
}
body[data-view="linkedin"] .linkedin-status {
  color: #205a7d;
}
nav button[data-view="linkedin"].active {
  background: #b9def5;
}
@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
  }
  nav button[data-view="plans"] {
    flex-basis: 100%;
    justify-content: center;
  }
  nav button[data-view="plans"] span {
    flex: 0 1 auto;
  }
  nav button[data-view="plans"] small {
    margin-left: 6px;
  }
}

.task-row.trashed {
  background: #f4f1f8;
  border-top-color: #a399b5;
  aspect-ratio: auto;
  min-height: 255px;
}
.task-row.trashed,
.task-row.trashed * {
  text-decoration: none !important;
}
.trashed h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.trash-date {
  font-size: 0.875rem;
  color: #71647d;
  line-height: 1.5;
  margin: 0 0 15px;
}
.trashed .take-task {
  margin-top: auto;
  background: #e3d7f7;
}
.delete-forever {
  padding: 10px 12px;
  border: 2px solid #7c2630;
  border-radius: 8px;
  background: #fff;
  color: #7c2630;
  font-size: 0.8rem;
  font-weight: 800;
}
.delete-forever:hover {
  background: #7c2630;
  color: #fff;
}

/* Une mission terminée passe entièrement en niveaux de gris. */
.task-row.done,
.task-row.done.urgent,
.task-row.done.assigned,
.task-row.done.urgent.assigned {
  border-color: #73777d !important;
  border-top-color: #73777d !important;
  background: #dedfe1 !important;
  color: #555a61 !important;
  box-shadow: 4px 4px 0 #b9bbc0 !important;
  filter: grayscale(1) !important;
}
.task-row.done .task-label,
.task-row.done .urgent-quick,
.task-row.done .take-task,
.task-row.done .assignee-badge,
.task-row.done .person-avatar,
.task-row.done .delete-mission {
  border-color: #747980 !important;
  background: #bfc2c6 !important;
  color: #4d5258 !important;
  box-shadow: none !important;
}
.task-row.done input[type="checkbox"] {
  accent-color: #696e75 !important;
}
.task-row.done .task-bottom,
.task-row.done .mission-actions {
  border-color: #a7aaaf !important;
}
.task-row.done::after {
  border-color: #555a61 !important;
  background: #eeeeec !important;
  color: #454a50 !important;
}
#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.note-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.note-open time {
  margin-top: auto;
}
.note-card .mission-actions {
  margin-top: 14px;
  border-top: 1px dashed #d4cbe1;
  padding-top: 5px;
}
.note-card:has(.note-open) {
  cursor: default;
}

.member-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.member-button:hover {
  background: #ffffff12;
  border-color: #b8a5e0;
}
.add-member {
  background: #ffffff12;
  color: #ffe46a;
  border: 1px dashed #9d8dc0;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 0.8rem;
  width: 100%;
}
.creator-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6c607e;
  line-height: 1.5;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.creator-badge:empty {
  display: none;
}
.creator-badge img {
  flex-shrink: 0;
}
.profile-emblem {
  border: 0;
  background: transparent;
  object-fit: contain;
}
.team-person {
  margin-bottom: 6px;
}
#my-identity {
  line-height: 1.5;
  font-size: 0.75rem;
  color: #ded5f4;
}
#member-icon {
  width: 100%;
  padding: 12px;
  border: 1px solid #d6cce5;
  border-radius: 8px;
  font: inherit;
  background: #faf8fe;
  color: #302444;
}
#member-message {
  line-height: 1.6;
}
#member-heading {
  font-size: 1.3rem;
}
@media (max-width: 700px) {
  .add-member {
    grid-column: 1/-1;
  }
  .side-bottom #my-identity {
    display: none;
  }
  .member-button {
    padding: 4px;
  }
  .team-person small {
    line-height: 1.4;
  }
}

#view-mode {
  font:
    600 14px/1.35 "Segoe UI",
    sans-serif;
  padding: 10px 14px;
  border: 2px solid #7951c8;
  border-radius: 12px;
  background: #fff;
  color: #51328c;
  cursor: pointer;
}
header {
  flex-wrap: wrap;
  gap: 12px;
}
.view-mode-help {
  padding: 12px 16px;
  border-left: 4px solid #7951c8;
  border-radius: 8px;
  background: #eee8ff;
  font-size: 14px;
  line-height: 1.5;
  color: #392758;
}

@media (max-width: 700px) {
  aside nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  aside nav button,
  aside nav button[data-view="plans"] {
    width: 100%;
    flex-basis: auto;
    justify-content: flex-start;
    text-align: left;
  }
  aside nav button span,
  aside nav button[data-view="plans"] span {
    flex: 1;
  }
  aside nav button[data-view="plans"] small {
    margin-left: 0;
  }
}

.urgent-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 2px solid #d8cee9;
  border-radius: 10px;
  background: #faf8fe;
  cursor: pointer;
}
.urgent-toggle input {
  grid-row: 1/3;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #c24444;
}
.urgent-toggle span {
  font-weight: 800;
  color: #9b3038;
}
.urgent-toggle small {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b6178;
}
.task-row.urgent,
.task-row.urgent.assigned,
.task-row.urgent.assigned.done {
  border-top-color: #c63f49;
  background: #fff6f5;
  box-shadow: 4px 4px 0 #e9bec2;
}
.task-row.urgent .task-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 5px 8px;
  border-radius: 5px;
  background: #c63f49;
  color: #fff;
  letter-spacing: 0.8px;
}
.task-comment {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  margin: 0;
  color: #5f526c;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}
.task-comment:before {
  content: "Commentaires · ";
  font-weight: 750;
  color: #4b3c5b;
}
@media (max-width: 700px) {
  .urgent-toggle {
    padding: 14px;
  }
  .task-comment {
    font-size: 0.95rem;
  }
}
.urgent-quick {
  margin-left: auto;
  padding: 6px 9px;
  border: 1.5px solid #c63f49;
  border-radius: 7px;
  background: #fff;
  color: #9b3038;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.urgent-quick[aria-pressed="true"] {
  background: #c63f49;
  color: #fff;
}
.urgent-quick:hover {
  background: #ffe4e5;
}
.urgent-quick[aria-pressed="true"]:hover {
  background: #a92f39;
}
.task-top {
  gap: 8px;
}
.task-top > input {
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .urgent-quick {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
.print-link {
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1.5px solid #ffe46a;
  border-radius: 8px;
  background: #ffe46a;
  color: #202143;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 2px 2px 0 #101128;
}
.print-link:hover {
  background: #fff0a3;
}

.new-items-summary {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  padding: 10px 11px;
  border: 1.5px solid #9bd6b1;
  border-radius: 10px;
  background: #e5f8ec;
  color: #184c2e;
  box-shadow: 3px 3px 0 #101128;
}
.new-items-summary p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.35;
}
.task-labels {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.new-task-label {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  border: 1.5px solid #205b37;
  border-radius: 5px;
  background: #54c77d;
  color: #102f1d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  line-height: 1.2;
}
.note-new-label {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
}

/* Compact task cards: denser in “Petites missions pour la super équipe”. */
body[data-view="tasks"] .tasks-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body[data-view="tasks"] .task-row:not(.done) {
  background: #fff7cf;
  border-color: #c99a24;
  border-top-color: #d6a323;
  box-shadow: 4px 4px 0 #eadb9d;
}
body[data-view="tasks"] .task-row {
  aspect-ratio: auto;
  min-height: 205px;
  padding: 16px;
  gap: 8px;
}
body[data-view="tasks"] .task-open {
  gap: 5px;
  padding: 4px 0;
}
body[data-view="tasks"] .task-open > span {
  font-size: 1.05rem;
  line-height: 1.35;
}
body[data-view="tasks"] .task-open small {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
}
body[data-view="tasks"] .task-comment {
  font-size: 0.82rem;
  line-height: 1.4;
}
body[data-view="tasks"] .task-bottom {
  min-height: 42px;
  padding-top: 10px;
}
body[data-view="tasks"] .mission-actions {
  margin-top: -5px;
}
@media (max-width: 1300px) {
  body[data-view="tasks"] .tasks-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  body[data-view="tasks"] .tasks-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  body[data-view="tasks"] .tasks-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body[data-view="tasks"] .task-row {
    min-height: 190px;
    padding: 18px;
  }
  body[data-view="tasks"] .task-open > span {
    font-size: 1.15rem;
  }
}

/* Palette propre à chaque rubrique. */
body[data-view="tasks"] {
  background-color: #fffbed;
  background-image: radial-gradient(#e8dda2 0.8px, transparent 0.8px);
}
body[data-view="tasks"] .task-row:not(.done) {
  background: #fffdf2;
  border-color: #7753c6;
  border-top-color: #7753c6;
  box-shadow: 4px 4px 0 #c9b9e7;
}
body[data-view="tasks"] .heading .primary {
  background: #7753c6;
}

body[data-view="notes"] .heading .primary {
  background: #2f6fbb;
  border-color: #1d4d87;
  box-shadow: 4px 4px 0 #1d4d87;
}
body[data-view="notes"] .note-card {
  border: 2px solid #2f6fbb;
  border-top-color: #2f6fbb;
  box-shadow: 4px 4px 0 #a9c7e8;
}
body[data-view="notes"] {
  background-color: #edfbf9;
  background-image: radial-gradient(#b8ded9 0.8px, transparent 0.8px);
}

body[data-view="plans"] {
  background-color: #f3edff;
  background-image: radial-gradient(#d1c2eb 0.8px, transparent 0.8px);
}
body[data-view="plans"] .heading .primary {
  background: #405cc7;
  border-color: #273b91;
  box-shadow: 4px 4px 0 #273b91;
}
body[data-view="plans"] .task-row:not(.done) {
  border-color: #405cc7;
  border-top-color: #405cc7;
  box-shadow: 4px 4px 0 #b9c3ee;
}

body[data-view="linkedin"] {
  background-color: #edf8ff;
  background-image: radial-gradient(#b9d9eb 0.8px, transparent 0.8px);
}
body[data-view="linkedin"] .heading .primary {
  background: #25866f;
  border-color: #155847;
  box-shadow: 4px 4px 0 #155847;
}
body[data-view="linkedin"] .task-row:not(.done) {
  border-color: #2877a8;
  border-top-color: #2877a8;
  box-shadow: 4px 4px 0 #a9cfe5;
}

/* Phrase amusante affichée en bas de chaque rubrique. */
.fun-line {
  max-width: 720px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .fun-line {
    font-size: 1.05rem;
  }
}

/* Titres et libellé principal de la barre latérale. */
aside > .eyebrow,
.team-roster h2 {
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 1.15px;
}
.nav-subtitle {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

/* État En cours : même repère visuel sur toutes les rubriques. */
.task-row.in-progress:not(.done),
body[data-view="tasks"] .task-row.in-progress:not(.done),
body[data-view="plans"] .task-row.in-progress:not(.done),
body[data-view="linkedin"] .task-row.in-progress:not(.done),
body[data-view="notes"] .note-card.in-progress {
  background: #e4f5ef !important;
  border-color: #277d69 !important;
  border-top-color: #277d69 !important;
  box-shadow: 4px 4px 0 #9dcfbe !important;
}

/* L’urgence reste prioritaire sur toutes les autres couleurs d’état. */
.task-row.urgent:not(.done),
body[data-view="tasks"] .task-row.urgent:not(.done),
body[data-view="plans"] .task-row.urgent:not(.done) {
  background: #ffe3e5 !important;
  border-color: #c6283d !important;
  border-top-color: #c6283d !important;
  box-shadow: 4px 4px 0 #e4a6ad !important;
}

/* LinkedIn : état en cours plus visible et actions mieux séparées. */
body[data-view="linkedin"] .task-row.in-progress:not(.done) {
  background: #fff3b5 !important;
  border-color: #d49a00 !important;
  border-top-color: #d49a00 !important;
  box-shadow: 4px 4px 0 #e6c75f !important;
}
body[data-view="linkedin"] .task-row {
  aspect-ratio: auto;
  min-height: 300px;
}
body[data-view="linkedin"] .task-label {
  line-height: 1.35;
}
body[data-view="linkedin"] .linkedin-toggle {
  align-self: center;
  width: auto;
  min-width: 165px;
  padding: 8px 16px;
}
body[data-view="linkedin"] .mission-actions {
  min-height: 32px;
  margin-top: 5px;
  padding-top: 3px;
}
@media (max-width: 700px) {
  body[data-view="linkedin"] .task-row {
    min-height: 320px;
  }
}

/* =========================================================
   MOBILE V2 — vrai menu latéral escamotable
   Uniquement téléphone (<=700px). Aucun effet sur ordinateur.
   ========================================================= */
.mobile-topbar, .mobile-menu-backdrop { display:none; }

@media (max-width:700px) {
  body { overflow-x:hidden; }

  /* Petit bandeau permanent */
  .mobile-topbar{
    position:sticky;
    top:0;
    z-index:60;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:54px;
    padding:7px 10px;
    background:#222344;
    border-bottom:2px solid #17182f;
    color:#fff;
    box-shadow:0 3px 12px #17182f25;
  }
  .mobile-topbar-brand{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    font-size:.82rem;
    font-weight:850;
    line-height:1.1;
  }
  .mobile-topbar-brand img{
    width:34px;
    height:34px;
    flex:0 0 34px;
  }
  .mobile-topbar-brand small{
    display:block;
    margin-top:2px;
    color:#ffe46a;
    font-size:.66rem;
    font-weight:750;
  }
  .mobile-menu-button{
    width:auto;
    min-width:44px;
    min-height:40px;
    margin:0;
    padding:6px 10px;
    border:1.5px solid #ffe46a;
    border-radius:9px;
    background:#ffe46a;
    color:#202143;
    box-shadow:2px 2px 0 #101128;
    font-size:1.25rem;
    font-weight:900;
    line-height:1;
  }

  /* La barre reste latérale : elle glisse depuis la gauche */
  aside{
    position:fixed !important;
    inset:0 auto 0 0 !important;
    z-index:100;
    width:min(76vw,270px) !important;
    height:100dvh;
    padding:18px 15px 20px !important;
    display:flex !important;
    flex-direction:column;
    overflow-y:auto !important;
    border-right:3px solid #17182f !important;
    border-bottom:0 !important;
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:10px 0 30px #11142c35;
  }
  body.mobile-menu-open aside{ transform:translateX(0); }

  .mobile-menu-backdrop{
    position:fixed;
    inset:0;
    z-index:90;
    display:block;
    background:#15152f73;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
  }
  body.mobile-menu-open .mobile-menu-backdrop{
    opacity:1;
    pointer-events:auto;
  }

  /* Dans le tiroir, on retrouve la vraie navigation verticale */
  aside .brand{
    padding:0 0 14px;
    border-bottom:1px solid #ffffff25;
  }
  aside .brand .mark{width:40px;height:40px}
  aside .brand > span{font-size:1rem}
  aside .brand b{font-size:.9rem}
  aside > .eyebrow{
    display:block;
    margin:16px 0 8px;
    font-size:.72rem;
  }
  aside nav{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:5px !important;
    margin-top:4px !important;
  }
  aside nav button,
  aside nav button[data-view="plans"]{
    width:100%;
    min-height:42px;
    padding:9px 10px !important;
    font-size:.8rem !important;
    justify-content:flex-start !important;
  }
  aside nav button[data-view="plans"]{grid-column:auto}
  .nav-separator{display:block;height:1px;margin:3px 2px}

  .team-roster{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:7px 8px;
    margin-top:12px;
    padding-top:10px;
  }
  .team-roster h2{display:block;grid-column:1/-1;font-size:.7rem}
  .team-person{margin:0}
  .team-person img{width:28px;height:28px}
  .team-person strong{font-size:.72rem}
  .team-person small{display:none}

  .side-bottom{
    position:static !important;
    display:grid !important;
    gap:2px;
    margin-top:auto;
    padding-top:12px !important;
  }
  .side-bottom button{
    max-width:none !important;
    padding:7px 3px !important;
    text-align:left !important;
    font-size:.68rem !important;
  }
  .side-bottom p{display:none}
  .print-link{padding:8px;font-size:.7rem}

  /* Le contenu commence immédiatement sous le bandeau */
  main{margin:0 !important;padding:12px 11px 18px !important}
  header{gap:6px;padding-bottom:10px}
  #today{font-size:1.08rem}
  .local,#view-mode{padding:6px 8px;font-size:.67rem}

  /* Cartouche de rubrique et cartes plus petits */
  .heading,
  body[data-view="tasks"] .heading{
    padding:11px 12px;
    margin:10px 4px 13px 0;
    gap:7px;
    border-radius:12px;
    box-shadow:3px 3px 0 #282746;
  }
  .heading h1,
  body[data-view="plans"] .heading h1{
    margin:3px 0;
    font-size:1.48rem;
    line-height:1.08;
  }
  .heading .eyebrow,
  body[data-view="tasks"] .heading .eyebrow{padding:4px 6px;font-size:.5rem}
  .heading p:last-child{margin:0;font-size:.75rem;line-height:1.3}
  .heading .primary,
  body[data-view="tasks"] .heading .primary{
    width:100%;
    padding:8px 10px;
    font-size:.75rem;
    box-shadow:2px 2px 0 #282746;
  }

  .toolbar{gap:6px;margin-bottom:11px}
  .search{flex-basis:100%;padding:8px 10px}
  .search span{font-size:18px}
  .search input{font-size:.78rem}
  #filters{width:100%;gap:2px}
  #filters button{flex:1 1 auto;padding:6px 4px;font-size:.64rem}
  #results{width:100%;margin:0;text-align:right;font-size:.65rem}

  .tasks-list,
  body[data-view="tasks"] .tasks-list,
  .notes-grid{grid-template-columns:1fr;gap:8px;padding-right:2px}

  .task-row,
  body[data-view="tasks"] .task-row,
  body[data-view="linkedin"] .task-row{
    aspect-ratio:auto;
    min-height:0 !important;
    padding:10px 11px;
    gap:5px;
    border-top-width:5px;
    border-radius:10px;
  }
  .task-open,body[data-view="tasks"] .task-open{padding:2px 0;gap:3px}
  .task-open > span,body[data-view="tasks"] .task-open > span{
    font-size:.9rem;line-height:1.22
  }
  .task-open small,body[data-view="tasks"] .task-open small{
    padding-top:2px;font-size:.69rem;line-height:1.25
  }
  .task-comment,body[data-view="tasks"] .task-comment{
    font-size:.69rem;line-height:1.25;-webkit-line-clamp:1
  }
  .task-bottom,body[data-view="tasks"] .task-bottom{
    min-height:0;padding-top:6px;gap:4px
  }
  .task-label{font-size:.6rem}
  .task-row input{width:21px;height:21px}
  .take-task{padding:7px 8px;font-size:.72rem}
  .urgent-quick,.delete-mission{min-height:32px;padding:5px 7px;font-size:.65rem}
  .progress-toggle{font-size:.65rem}
  .person-avatar{width:27px;height:27px;font-size:.68rem}
  .person-caption{font-size:.6rem}
  .person-name,.assignee{font-size:.68rem}

  .note-card{min-height:0;padding:13px}
  .note-card:before{margin-bottom:8px}
  .note-card h2{font-size:.92rem;margin-bottom:5px}
  .note-card p{font-size:.74rem;line-height:1.35;margin-bottom:8px}

  footer{margin-top:14px;padding:11px}
  .fun-line{font-size:.78rem;line-height:1.3}
}

@media (max-width:700px) and (prefers-reduced-motion:reduce){
  aside,.mobile-menu-backdrop{transition:none}
}


/* Tableau de bord — accueil et filtres cliquables */
body[data-view="dashboard"] { background-color:#f3f0ff; }
body[data-view="dashboard"] .heading { background:#e8ddff; }
.dashboard-wrap { display:grid; gap:22px; }
.dashboard-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.dashboard-stat {
  min-height:138px; padding:18px 12px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px; border:2px solid #302c4b;
  border-radius:15px; color:#282746; box-shadow:4px 4px 0 #302c4b;
  transition:transform .12s,box-shadow .12s,filter .12s; cursor:pointer;
}
.dashboard-stat:hover,.dashboard-stat.selected { transform:translate(-1px,-1px); box-shadow:6px 6px 0 #302c4b; filter:saturate(1.08); }
.dashboard-stat-icon { font-size:2.15rem; line-height:1; }
.dashboard-stat strong { font-size:2.15rem; line-height:1.05; }
.dashboard-stat > span:last-child { font-size:1.08rem; line-height:1.15; font-weight:900; text-align:center; }

/* 5 couleurs volontairement bien distinctes */
.dashboard-stat-overdue { background:#ffd5d0; border-color:#b52828; }
.dashboard-stat-urgent { background:#ffb9c2; border-color:#d3133a; }
.dashboard-stat-in-progress { background:#cfe7ff; border-color:#2474b9; }
.dashboard-stat-open { background:#ffe99a; border-color:#b98700; }
.dashboard-stat-done { background:#d8efdc; border-color:#31854a; }

.dashboard-hint { margin:0; padding:18px; text-align:center; color:#665a76; font-weight:650; }
.dashboard-panel { display:grid; gap:10px; padding:20px; border:2px solid #302c4b; border-radius:15px; background:#fff; box-shadow:4px 4px 0 #d3c8e7; }
.dashboard-panel h2 { margin:0 0 7px; font-size:1.45rem; font-weight:900; }
.dashboard-item { display:flex; flex-direction:column; align-items:flex-start; gap:5px; width:100%; padding:14px 16px; border:2px solid #cfc5dd; border-radius:10px; background:#faf8fe; color:#282746; text-align:left; cursor:pointer; }
.dashboard-item strong { font-size:1rem; }
.dashboard-item small { color:#6b6178; }
.dashboard-empty { color:#6b6178; }

/* Le cadre ET les éléments prennent la couleur du filtre sélectionné */
.dashboard-panel-overdue { border-color:#b52828; background:#fff5f3; box-shadow:4px 4px 0 #f0b9b2; }
.dashboard-panel-overdue h2 { color:#9e1f1f; }
.dashboard-panel-overdue .dashboard-item { border-color:#e49a92; background:#ffe5e1; }
.dashboard-panel-overdue .dashboard-item:hover { border-color:#b52828; background:#ffd7d1; }

.dashboard-panel-urgent { border-color:#d3133a; background:#fff3f5; box-shadow:4px 4px 0 #f2aab7; }
.dashboard-panel-urgent h2 { color:#b70e30; }
.dashboard-panel-urgent .dashboard-item { border-color:#ee8fa3; background:#ffe1e7; }
.dashboard-panel-urgent .dashboard-item:hover { border-color:#d3133a; background:#ffd1da; }

.dashboard-panel-in-progress { border-color:#2474b9; background:#f2f8ff; box-shadow:4px 4px 0 #acd3f4; }
.dashboard-panel-in-progress h2 { color:#155f9f; }
.dashboard-panel-in-progress .dashboard-item { border-color:#86bce8; background:#e0f0ff; }
.dashboard-panel-in-progress .dashboard-item:hover { border-color:#2474b9; background:#cfe7ff; }

.dashboard-panel-open { border-color:#b98700; background:#fffaf0; box-shadow:4px 4px 0 #efd47c; }
.dashboard-panel-open h2 { color:#8b6500; }
.dashboard-panel-open .dashboard-item { border-color:#dfbe50; background:#fff3bd; }
.dashboard-panel-open .dashboard-item:hover { border-color:#b98700; background:#ffe99a; }

.dashboard-panel-done { border-color:#31854a; background:#f3fbf5; box-shadow:4px 4px 0 #add7b8; }
.dashboard-panel-done h2 { color:#236b38; }
.dashboard-panel-done .dashboard-item { border-color:#82be91; background:#e3f4e7; }
.dashboard-panel-done .dashboard-item:hover { border-color:#31854a; background:#d2ebd8; }

@media (max-width:1000px){ .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media (max-width:700px){
  .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .dashboard-stat{min-height:108px;padding:12px 8px}
  .dashboard-stat:last-child{grid-column:1/-1}
  .dashboard-stat-icon{font-size:1.65rem}
  .dashboard-stat strong{font-size:1.7rem}
  .dashboard-stat > span:last-child{font-size:.92rem}
  .dashboard-panel{padding:13px}
  .dashboard-panel h2{font-size:1.2rem}
  .dashboard-item{padding:11px}
}


/* =========================================================
   SIDEBAR V3 — date, compteurs fiables, LinkedIn coloré,
   équipe repliable. Ajouts ciblés uniquement.
   ========================================================= */
.sidebar-date{
  margin:8px 0 18px;
  padding:0 2px;
  color:#d8d3ee;
  font-size:.76rem;
  font-weight:700;
  line-height:1.35;
  text-align:center;
}
.linkedin-nav{
  background:#b9def5 !important;
  border-color:#5ba9dc !important;
  color:#172044 !important;
  box-shadow:3px 3px 0 #153b63 !important;
}
.linkedin-nav span,.linkedin-nav small{color:#172044 !important;font-weight:800}
.linkedin-nav:hover{background:#a9d7f3 !important}
.linkedin-nav.active{
  background:#83c8f2 !important;
  border-color:#4da4da !important;
}

.team-roster-collapsible{
  display:block;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #ffffff25;
}
.team-roster-collapsible summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border:1px solid #9f97ca;
  border-radius:9px;
  color:#fff;
  font-size:.86rem;
  font-weight:850;
  cursor:pointer;
  user-select:none;
}
.team-roster-collapsible summary::-webkit-details-marker{display:none}
.team-roster-collapsible summary:hover{background:#ffffff0d}
.team-chevron{font-size:1.05rem;transition:transform .16s ease}
.team-roster-collapsible[open] .team-chevron{transform:rotate(180deg)}
.team-list{padding:13px 7px 0}
.team-roster-collapsible .team-person{display:flex}

@media(max-width:700px){
  .sidebar-date{
    margin:6px 0 12px;
    font-size:.68rem;
    text-align:left;
  }
  .team-roster-collapsible{
    display:block !important;
    margin-top:10px;
    padding-top:10px;
  }
  .team-roster-collapsible summary{
    font-size:.75rem;
    padding:8px 9px;
  }
  .team-roster-collapsible .team-list{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    padding-top:10px;
  }
  .team-roster-collapsible .team-person{
    display:flex !important;
    margin:0;
  }
  .team-roster-collapsible .team-person img{width:28px;height:28px}
  .team-roster-collapsible .team-person strong{font-size:.72rem}
  .team-roster-collapsible .team-person small{display:block;font-size:.65rem}
}

/* QG TEST V4 — total actif, type d'élément et équipe */
.dashboard-total-active{
  justify-self:start; display:inline-flex; align-items:center; gap:8px;
  margin-top:-8px; padding:8px 13px; border:1.5px solid #76679c;
  border-radius:999px; background:#f1ecff; color:#30284f; font-size:.86rem;
}
.dashboard-total-active strong{font-size:1.05rem}
.dashboard-total-icon{font-size:1rem}
.dashboard-item-meta{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.dashboard-kind{display:inline-flex;align-items:center;font-weight:850}
.dashboard-kind-tasks{color:#6b3da1}
.dashboard-kind-notes{color:#8b6900}
.dashboard-kind-plans{color:#287143}
.dashboard-kind-linkedin{color:#176ca6}
.team-title{margin:0 0 8px;color:#fff;font-size:.86rem;font-weight:900}
.team-roster-collapsible summary{margin-top:0}
@media(max-width:700px){
 .dashboard-total-active{font-size:.78rem;padding:7px 10px}
 .team-title{font-size:.78rem}
}

/* V4b — titre équipe toujours visible, déroulant juste dessous */
.team-roster-section{
  display:block;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #ffffff25;
}
.team-roster-section > .team-title{
  display:block !important;
  margin:0 0 8px !important;
  padding:0 2px;
  color:#fff !important;
  font-size:.88rem !important;
  font-weight:900 !important;
}
.team-roster-section > .team-roster-collapsible{
  display:block;
  margin:0;
  padding:0;
  border-top:0;
}
.team-roster-section > .team-roster-collapsible summary{
  margin:0;
}
@media(max-width:700px){
 .team-roster-section{margin-top:10px;padding-top:10px}
 .team-roster-section > .team-title{font-size:.78rem !important}
}

/* V5 — éléments terminés du dashboard en gris, comme dans les rubriques */
.dashboard-panel-done .dashboard-item,
.dashboard-panel-done .dashboard-item-done,
.dashboard-item-done{
  background:#ececf0 !important;
  border-color:#b9bac2 !important;
  color:#6d6e77 !important;
  box-shadow:none !important;
  opacity:.92;
}
.dashboard-panel-done .dashboard-item:hover,
.dashboard-panel-done .dashboard-item-done:hover,
.dashboard-item-done:hover{
  background:#e3e3e8 !important;
  border-color:#a6a7af !important;
}
.dashboard-item-done strong{
  color:#666872 !important;
}
.dashboard-item-done small,
.dashboard-item-done .dashboard-kind,
.dashboard-panel-done .dashboard-item small,
.dashboard-panel-done .dashboard-item .dashboard-kind{
  color:#85868e !important;
}

/* =========================================================
   V6 — CORRECTIONS DEMANDÉES
   ========================================================= */

/* Équipe : titre visible + vraie liste déroulante juste dessous */
.team-roster-section{
  display:block !important;
  margin-top:22px !important;
  padding-top:16px !important;
  border-top:1px solid #ffffff25 !important;
}
.team-roster-section .team-title{
  display:block !important;
  margin:0 0 9px !important;
  padding:0 !important;
  color:#fff !important;
  font-size:.88rem !important;
  font-weight:900 !important;
}
.team-dropdown{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:9px 32px 9px 10px !important;
  border:1px solid #9f97ca !important;
  border-radius:9px !important;
  background:#272342 !important;
  color:#fff !important;
  font:750 .80rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif !important;
  cursor:pointer !important;
}
.team-dropdown option{
  background:#fff !important;
  color:#24213e !important;
}
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;border:0!important;
}

/* Terminées : compteur du haut reste vert, mais la ZONE et les ÉLÉMENTS sont gris */
.dashboard-panel-done{
  background:#f0f0f2 !important;
  border-color:#a6a8b0 !important;
  box-shadow:4px 4px 0 #cacbd0 !important;
}
.dashboard-panel-done h2{
  color:#656771 !important;
}
.dashboard-panel-done .dashboard-item,
.dashboard-panel-done .dashboard-item-done,
.dashboard-item.dashboard-item-done{
  background:#dedfe3 !important;
  border:2px solid #a7a9b1 !important;
  color:#656771 !important;
  box-shadow:none !important;
  opacity:1 !important;
}
.dashboard-panel-done .dashboard-item:hover,
.dashboard-panel-done .dashboard-item-done:hover,
.dashboard-item.dashboard-item-done:hover{
  background:#d3d4d9 !important;
  border-color:#92949d !important;
}
.dashboard-panel-done .dashboard-item strong,
.dashboard-panel-done .dashboard-item small,
.dashboard-panel-done .dashboard-kind,
.dashboard-item.dashboard-item-done strong,
.dashboard-item.dashboard-item-done small,
.dashboard-item.dashboard-item-done .dashboard-kind{
  color:#777982 !important;
}

@media(max-width:700px){
  .team-roster-section{margin-top:10px!important;padding-top:10px!important}
  .team-roster-section .team-title{font-size:.78rem!important}
  .team-dropdown{font-size:.74rem!important;padding:8px 28px 8px 9px!important}
}

/* =========================================================
   V7 — Terminées + équipe déroulante
   ========================================================= */

/* Le bouton TERMINÉES du tableau de bord est gris lui aussi */
.dashboard-stat-done,
.dashboard-stat-done.selected,
.dashboard-stat-done:hover{
  background:#dedfe3 !important;
  border-color:#8f929b !important;
  color:#555861 !important;
  box-shadow:4px 4px 0 #8f929b !important;
}

/* Un seul trait : on conserve le séparateur de navigation au-dessus,
   donc aucun second border-top sur la zone équipe. */
.team-section-v7{
  display:block !important;
  margin-top:18px !important;
  padding-top:0 !important;
  border-top:0 !important;
}
.team-title-v7{
  margin:0 0 9px !important;
  padding:0 2px !important;
  color:#ddd5ff !important;
  font-size:.80rem !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}
.team-details-v7{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}
.team-details-v7 > summary{
  list-style:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:9px 10px !important;
  border:1px solid #9187bd !important;
  border-radius:9px !important;
  background:#292544 !important;
  color:#fff !important;
  font-size:.78rem !important;
  font-weight:800 !important;
  cursor:pointer !important;
}
.team-details-v7 > summary::-webkit-details-marker{display:none !important}
.team-details-v7[open] .team-chevron-v7{transform:rotate(180deg)}
.team-chevron-v7{transition:transform .15s ease}
.team-details-v7 .team-roster{
  display:block !important;
  margin:8px 0 0 !important;
  padding:6px 0 0 !important;
  border:0 !important;
}
.team-details-v7 .team-person{
  display:flex !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 0 5px !important;
}
.team-details-v7 .add-member{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  margin-top:7px !important;
}
@media(max-width:700px){
  .team-section-v7{margin-top:12px !important}
  .team-title-v7{font-size:.72rem !important}
  .team-details-v7 > summary{font-size:.72rem !important;padding:8px 9px !important}
}

/* V7b — le titre équipe ne doit apparaître qu'une seule fois */
.team-details-v7 .team-roster > h2,
.team-details-v7 .team-roster .team-title{
  display:none !important;
}

/* =========================================================
   V8 — fonds de cartes plus légers
   ========================================================= */

/* Le nid à idées / Notes : turquoise très clair */
body[data-view="notes"] .card,
body[data-view="notes"] .item,
body[data-view="notes"] .note-card,
body[data-view="notes"] article{
  background:#f1fcfa !important;
}

/* Missions en veille : violet très clair */
body[data-view="plans"] .card,
body[data-view="plans"] .item,
body[data-view="plans"] .plan-card,
body[data-view="plans"] article{
  background:#fbf8ff !important;
}

/* Posts LinkedIn : bleu clair à la place du jaune */
body[data-view="linkedin"] .card,
body[data-view="linkedin"] .item,
body[data-view="linkedin"] .linkedin-card,
body[data-view="linkedin"] article{
  background:#eaf6ff !important;
}

/* =========================================================
   V8b — COULEURS DES CARTES (sélecteurs réels de l'application)
   ========================================================= */

/* NID À IDÉES : turquoise presque blanc + contour turquoise */
body[data-view="notes"] #list .note-card,
body[data-view="notes"] .notes-grid .note-card{
  background:#f5fdfc !important;
  border:2px solid #42aaa0 !important;
  border-top-color:#42aaa0 !important;
  box-shadow:4px 4px 0 #c8ebe7 !important;
}
body[data-view="notes"] #list .note-card::before,
body[data-view="notes"] .notes-grid .note-card::before{
  background:#36a99c !important;
}

/* MISSIONS EN VEILLE : violet presque blanc + contour violet */
body[data-view="plans"] #list .task-row,
body[data-view="plans"] .task-row{
  background:#fcfaff !important;
  border:2px solid #7656c7 !important;
  border-top:7px solid #7656c7 !important;
  box-shadow:4px 4px 0 #d8cef0 !important;
}

/* POSTS LINKEDIN : bleu presque blanc + contour bleu foncé */
body[data-view="linkedin"] #list .task-row,
body[data-view="linkedin"] #list .linkedin-card,
body[data-view="linkedin"] .task-row.linkedin-card{
  background:#f2f9ff !important;
  border:2px solid #276fa8 !important;
  border-top:7px solid #276fa8 !important;
  box-shadow:4px 4px 0 #b9d5e9 !important;
}

/* =========================================================
   V9 TEST MOBILE — adaptation téléphone uniquement
   Le rendu ordinateur reste inchangé.
   ========================================================= */
@media (max-width: 700px){

  /* Structure générale */
  body{
    overflow-x:hidden !important;
  }
  main{
    width:100% !important;
    min-width:0 !important;
    padding:12px !important;
    box-sizing:border-box !important;
  }

  /* Sidebar compacte, comme l'ancienne logique mobile */
  aside{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }
  .sidebar-date{
    font-size:.68rem !important;
    margin:5px 0 10px !important;
  }

  /* En-tête des rubriques */
  .heading{
    padding:18px 16px !important;
    border-radius:14px !important;
    gap:14px !important;
  }
  .heading h1{
    font-size:2rem !important;
    line-height:1.02 !important;
  }
  .heading .eyebrow{
    font-size:.60rem !important;
    padding:5px 7px !important;
  }
  .heading p:not(.eyebrow){
    font-size:.86rem !important;
  }
  .heading .primary{
    width:100% !important;
    min-height:44px !important;
    margin-top:4px !important;
  }

  /* Recherche + filtres : pas de débordement horizontal */
  .toolbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }
  .search{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }
  #filters{
    width:100% !important;
    display:flex !important;
    flex-wrap:wrap !important;
    gap:5px !important;
  }
  #filters button{
    min-height:36px !important;
    padding:7px 9px !important;
    font-size:.76rem !important;
  }

  /* Toutes les listes passent sur une seule colonne */
  #list,
  .notes-grid{
    grid-template-columns:1fr !important;
    width:100% !important;
    gap:12px !important;
  }

  /* Cartes tactiles et lisibles */
  .task-row,
  .note-card,
  .linkedin-card{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:15px !important;
    border-radius:13px !important;
  }
  .task-row h2,
  .note-card h2{
    font-size:1rem !important;
    line-height:1.25 !important;
    overflow-wrap:anywhere !important;
  }
  .task-row p,
  .note-card p,
  .task-row small,
  .note-card small{
    overflow-wrap:anywhere !important;
  }

  /* Bas des cartes : commandes sur plusieurs lignes si nécessaire */
  .task-bottom,
  .linkedin-card .task-bottom{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:9px !important;
  }
  .task-bottom button,
  .linkedin-toggle,
  .task-row button{
    min-height:40px;
  }

  /* Dashboard : 2 colonnes, dernier indicateur pleine largeur */
  .dashboard-wrap{
    gap:14px !important;
  }
  .dashboard-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  .dashboard-stat{
    min-width:0 !important;
    min-height:104px !important;
    padding:10px 6px !important;
  }
  .dashboard-stat:last-child{
    grid-column:1/-1 !important;
  }
  .dashboard-stat-icon{
    font-size:1.45rem !important;
  }
  .dashboard-stat strong{
    font-size:1.6rem !important;
  }
  .dashboard-stat > span:last-child{
    font-size:.82rem !important;
  }
  .dashboard-total-active{
    margin-top:0 !important;
  }
  .dashboard-panel{
    padding:11px !important;
    gap:8px !important;
  }
  .dashboard-item{
    padding:11px !important;
  }

  /* Équipe : repliée et compacte sur téléphone */
  .team-section-v7{
    margin-top:10px !important;
  }
  .team-details-v7 > summary{
    min-height:40px !important;
  }
  .team-details-v7 .team-person{
    min-height:44px !important;
  }

  /* Dialogues / formulaires */
  dialog{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:90vh !important;
    box-sizing:border-box !important;
  }
  dialog form{
    max-width:100% !important;
  }
  input, textarea, select{
    max-width:100% !important;
    box-sizing:border-box !important;
  }
}

/* Très petits téléphones */
@media (max-width: 390px){
  main{padding:9px !important}
  .heading h1{font-size:1.72rem !important}
  .dashboard-stat > span:last-child{font-size:.76rem !important}
  .dashboard-stat strong{font-size:1.45rem !important}
  #filters button{font-size:.70rem !important;padding:6px 7px !important}
}

/* =========================================================
   V10 — FINITIONS MOBILE VALIDÉES
   ========================================================= */
@media (max-width:700px){

  /* Date sous le logo : plus lisible */
  .sidebar-date{
    font-size:.76rem !important;
    line-height:1.25 !important;
    font-weight:750 !important;
    margin:6px 0 10px !important;
  }

  /* Bandeau des pages : un peu moins haut */
  .heading{
    padding:14px 14px !important;
    gap:9px !important;
  }
  .heading h1{
    margin-top:2px !important;
    margin-bottom:4px !important;
    font-size:1.82rem !important;
    line-height:1 !important;
  }
  .heading p:not(.eyebrow){
    margin-top:2px !important;
    margin-bottom:3px !important;
    font-size:.80rem !important;
    line-height:1.25 !important;
  }
  .heading .eyebrow{
    margin-bottom:3px !important;
  }

  /* Filtres : plus grands au doigt + défilement horizontal propre */
  #filters{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:6px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:2px 1px 5px !important;
  }
  #filters::-webkit-scrollbar{display:none}
  #filters button{
    flex:0 0 auto !important;
    min-height:38px !important;
    padding:8px 11px !important;
    font-size:.78rem !important;
    font-weight:750 !important;
    white-space:nowrap !important;
  }

  /* Dashboard : bandeau compact */
  body[data-view="dashboard"] .heading{
    padding:12px 14px !important;
  }
  body[data-view="dashboard"] .heading h1{
    font-size:1.75rem !important;
  }

  /* Total actif sous les compteurs */
  .dashboard-wrap{
    display:flex !important;
    flex-direction:column !important;
  }
  .dashboard-stats{order:1 !important}
  .dashboard-total-active{
    order:2 !important;
    align-self:flex-start !important;
    margin:2px 0 0 !important;
  }
  .dashboard-panel{order:3 !important}

  /* Les cartes de résultats restent confortables au toucher */
  .dashboard-item{
    min-height:58px !important;
    padding:11px 12px !important;
  }
  .dashboard-item strong{
    font-size:.88rem !important;
    line-height:1.25 !important;
  }
  .dashboard-item-meta{
    margin-top:4px !important;
    font-size:.72rem !important;
    line-height:1.25 !important;
  }

  /* Bouton menu mobile : symbole plus explicite sans changer sa fonction */
  .mobile-menu-toggle,
  .sidebar-toggle,
  [data-sidebar-toggle]{
    min-width:38px !important;
    min-height:38px !important;
    font-size:0 !important;
  }
  .mobile-menu-toggle::after,
  .sidebar-toggle::after,
  [data-sidebar-toggle]::after{
    content:"☰" !important;
    font-size:1.1rem !important;
    line-height:1 !important;
  }

  /* Création / modification : champs et boutons réellement mobiles */
  dialog .form-actions,
  dialog .actions{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
  }
  dialog .form-actions button,
  dialog .actions button{
    width:100% !important;
    min-height:44px !important;
  }
  dialog input,
  dialog textarea,
  dialog select{
    width:100% !important;
    font-size:16px !important; /* évite le zoom automatique iPhone */
  }
  dialog textarea{
    min-height:100px !important;
  }

  /* LinkedIn : commandes plus propres sur petit écran */
  body[data-view="linkedin"] .task-row .linkedin-status,
  body[data-view="linkedin"] .task-row .task-bottom{
    max-width:100% !important;
  }
  body[data-view="linkedin"] .task-row button{
    max-width:100% !important;
    white-space:normal !important;
  }

  /* Équipe déroulante : confortable au doigt */
  .team-details-v7 > summary{
    min-height:42px !important;
    padding:9px 10px !important;
  }
  .team-details-v7 .team-person,
  .team-details-v7 .add-member{
    min-height:44px !important;
  }
}

@media(max-width:390px){
  .sidebar-date{font-size:.71rem !important}
  .heading h1{font-size:1.62rem !important}
  #filters button{font-size:.74rem !important;min-height:36px !important}
}

/* =========================================================
   V11 — EN-TÊTE SIDEBAR
   ========================================================= */

/* Le logo ne reçoit plus aucun fond ajouté par la sidebar */
aside .brand .mark,
.mobile-topbar-brand img{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  padding:0 !important;
}

/* Titre à gauche, date à droite sur la même ligne */
aside .sidebar-brand-with-date{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto !important;
  align-items:center !important;
  column-gap:8px !important;
  width:100% !important;
}
aside .sidebar-brand-title{
  min-width:0 !important;
}
aside .sidebar-brand-with-date .sidebar-date{
  margin:0 !important;
  padding:0 !important;
  justify-self:end !important;
  text-align:right !important;
  white-space:nowrap !important;
  font-size:.60rem !important;
  line-height:1.15 !important;
  font-weight:700 !important;
  opacity:.82 !important;
}

/* Sur téléphone on garde la date à droite du titre sans casser la sidebar */
@media(max-width:700px){
  aside .sidebar-brand-with-date{
    grid-template-columns:30px minmax(0,1fr) auto !important;
    column-gap:6px !important;
  }
  aside .sidebar-brand-with-date .mark{
    width:28px !important;
    height:28px !important;
    object-fit:contain !important;
  }
  aside .sidebar-brand-title{
    font-size:.72rem !important;
    line-height:1.05 !important;
  }
  aside .sidebar-brand-with-date .sidebar-date{
    font-size:.53rem !important;
    max-width:95px !important;
    white-space:normal !important;
  }
}

/* =========================================================
   V12 — SIDEBAR MOBILE ESCAMOTABLE
   Comme l'ancienne version : apparaît / disparaît.
   ========================================================= */
@media (max-width:700px){

  /* Le menu redevient un panneau latéral et non une page plein écran */
  aside{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:min(84vw, 320px) !important;
    max-width:320px !important;
    height:100dvh !important;
    z-index:1001 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    transform:translateX(-105%) !important;
    transition:transform .22s ease !important;
    box-shadow:8px 0 24px rgba(20,18,50,.22) !important;
  }

  /* Compatibilité avec les différentes classes d'ouverture déjà utilisées */
  body.sidebar-open aside,
  body.menu-open aside,
  aside.open,
  aside.is-open{
    transform:translateX(0) !important;
  }

  /* Fond derrière le panneau : invisible fermé, visible ouvert */
  #mobile-menu-backdrop,
  .mobile-menu-backdrop{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:1000 !important;
    background:rgba(22,20,48,.30) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:opacity .22s ease, visibility .22s ease !important;
  }

  body.sidebar-open #mobile-menu-backdrop,
  body.menu-open #mobile-menu-backdrop,
  body.sidebar-open .mobile-menu-backdrop,
  body.menu-open .mobile-menu-backdrop{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  /* La page reste en place derrière le menu */
  main{
    margin-left:0 !important;
    width:100% !important;
  }

  /* Le bouton hamburger reste visible quand le menu est fermé */
  #mobile-menu-button,
  .mobile-menu-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    z-index:1002 !important;
  }
}

/* Petit téléphone : laisser encore un morceau de page visible à droite */
@media (max-width:390px){
  aside{
    width:82vw !important;
    max-width:300px !important;
  }
}

/* =========================================================
   V13 — SIDEBAR MOBILE COMME LA VERSION IMG_8241
   ========================================================= */
@media(max-width:700px){

  /* Tiroir partiel : une vraie bande de page reste visible à droite */
  aside{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:61vw !important;
    max-width:310px !important;
    min-width:245px !important;
    height:100dvh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    z-index:1001 !important;
    transform:translateX(-105%) !important;
    transition:transform .22s ease !important;
    box-shadow:7px 0 20px rgba(20,18,50,.25) !important;
  }

  body.sidebar-open aside,
  body.menu-open aside,
  aside.open,
  aside.is-open{
    transform:translateX(0) !important;
  }

  /* Zone extérieure cliquable pour faire disparaître la sidebar */
  #mobile-menu-backdrop,
  .mobile-menu-backdrop{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:1000 !important;
    background:rgba(20,18,45,.28) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:opacity .2s ease, visibility .2s ease !important;
  }
  body.sidebar-open #mobile-menu-backdrop,
  body.menu-open #mobile-menu-backdrop,
  body.sidebar-open .mobile-menu-backdrop,
  body.menu-open .mobile-menu-backdrop{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  /* En-tête : logo + titre ; date SOUS le titre */
  aside .sidebar-brand-with-date{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) !important;
    align-items:center !important;
    column-gap:9px !important;
    width:100% !important;
  }
  aside .sidebar-brand-with-date .mark{
    width:42px !important;
    height:42px !important;
    object-fit:contain !important;
    background:transparent !important;
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
  }
  aside .sidebar-brand-title{
    display:block !important;
    min-width:0 !important;
    font-size:.82rem !important;
    line-height:1.08 !important;
  }
  aside .sidebar-brand-title .sidebar-date{
    display:block !important;
    margin-top:5px !important;
    padding:0 !important;
    text-align:left !important;
    white-space:normal !important;
    max-width:none !important;
    font-size:.50rem !important;
    line-height:1.15 !important;
    font-weight:650 !important;
    opacity:.78 !important;
  }

  /* La page reste à sa place derrière le tiroir */
  main{
    width:100% !important;
    margin-left:0 !important;
  }
}

/* iPhone étroit : conserver une vraie zone extérieure */
@media(max-width:390px){
  aside{
    width:64vw !important;
    min-width:235px !important;
    max-width:270px !important;
  }
}

/* =========================================================
   V14 — CORRECTION FONCTIONNELLE SIDEBAR MOBILE
   Le JavaScript existant utilise body.mobile-menu-open.
   ========================================================= */
@media(max-width:700px){

  aside{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:61vw !important;
    max-width:310px !important;
    min-width:245px !important;
    height:100dvh !important;
    z-index:1001 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    transform:translateX(-105%) !important;
    transition:transform .22s ease !important;
  }

  /* C'est cette classe exacte que le JS ajoute/enlève */
  body.mobile-menu-open aside{
    transform:translateX(0) !important;
  }

  #mobile-menu-backdrop{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:1000 !important;
    background:rgba(20,18,45,.28) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:opacity .20s ease, visibility .20s ease !important;
  }

  body.mobile-menu-open #mobile-menu-backdrop{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  #mobile-menu-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    z-index:1002 !important;
  }
}

@media(max-width:390px){
  aside{
    width:64vw !important;
    min-width:235px !important;
    max-width:270px !important;
  }
}

/* V15 — logo QG transparent partout */
img[src="logo-qg.png"],
.brand .mark,
.mobile-topbar-brand img {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
