:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172126;
  background: #f5f6f3;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
.hidden {
  display: none !important;
}
.muted {
  color: #738084;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #79918b;
  margin: 0 0 8px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 230px;
  flex: none;
  background: #172825;
  color: #e8f1e8;
  display: flex;
  flex-direction: column;
  padding: 25px 17px 17px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin: 0 6px 35px;
}
.wordmark small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #8aa8a0;
  margin-top: 1px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #cbf18e;
  color: #1a3324;
  font-size: 30px;
  font-weight: 850;
  border-radius: 15px;
  letter-spacing: -0.1em;
}
.brand-mark span {
  color: #e77353;
}
.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
}
.sidebar-label {
  color: #77958e;
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  margin: 0 10px 17px;
}
.project-switch-label {
  display: block;
  font-size: 10px;
  color: #a9c2b8;
  letter-spacing: 0.08em;
  margin: 0 8px 25px;
  text-transform: uppercase;
}
.project-switch-label select {
  display: block;
  margin-top: 8px;
  width: 100%;
  color: #f1f7f0;
  background: #273e37;
  border: 1px solid #3f5b50;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  outline: none;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav button {
  background: transparent;
  color: #b7cbc2;
  border: 0;
  text-align: left;
  padding: 12px 13px;
  border-radius: 9px;
  font-weight: 600;
}
.sidebar nav button span {
  display: inline-block;
  width: 24px;
  color: #a9d09c;
  font-size: 16px;
}
.sidebar nav button.active,
.sidebar nav button:hover {
  background: #365148;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid #375048;
  overflow: hidden;
}
.sidebar-bottom div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #c6d5ce;
}
.sidebar-bottom button {
  border: 0;
  background: transparent;
  color: #b2cdba;
  padding: 10px 0;
}
.main {
  min-width: 0;
  flex: 1;
  padding: 0 27px 36px;
}
.topbar {
  min-height: 115px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar h1 {
  font-size: 27px;
  letter-spacing: -0.04em;
  margin: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #657873;
  font-size: 12px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #85c765;
}
.ghost,
.secondary {
  border: 1px solid #cbd8d1;
  background: #fff;
  color: #24453c;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
}
.primary {
  border: 1px solid #264a39;
  background: #284e3b;
  color: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 700;
}
.primary:hover {
  background: #366448;
}
.wide {
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 11px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid #e1e8e2;
  border-radius: 11px;
  padding: 15px 17px;
  min-height: 83px;
}
.stat b {
  display: block;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.stat span {
  font-size: 11px;
  font-weight: 700;
  color: #6c7973;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat.valid b {
  color: #40835f;
}
.stat.progress b {
  color: #bb7d31;
}
.stat.reject b {
  color: #bd6a60;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dce4dc;
  border-radius: 8px;
  padding: 0 11px;
  min-width: 270px;
  flex: 1;
  font-size: 21px;
  color: #81938b;
}
.search-wrap input {
  height: 38px;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 12px;
}
.toolbar select {
  background: #fff;
  border: 1px solid #dce4dc;
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 230px;
  color: #394d46;
}
.toolbar .muted {
  white-space: nowrap;
}
.sheet-scroll {
  background: #fff;
  border: 1px solid #dce6dd;
  border-radius: 10px;
  overflow: auto;
  max-height: calc(100vh - 260px);
  box-shadow: 0 7px 26px #263a3210;
}
.sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  table-layout: fixed;
}
.sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e9efe8;
  color: #3d5549;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 12px 12px;
  border-bottom: 1px solid #d5e0d5;
}
.sheet th:nth-child(1) {
  width: 92px;
}
.sheet th:nth-child(2) {
  width: 105px;
}
.sheet th:nth-child(3) {
  width: 160px;
}
.sheet th:nth-child(4) {
  width: 360px;
}
.sheet th:nth-child(5) {
  width: 135px;
}
.sheet th:nth-child(6) {
  width: 260px;
}
.sheet th:nth-child(7) {
  width: 110px;
}
.sheet td {
  border-bottom: 1px solid #e6ece7;
  vertical-align: middle;
  padding: 10px 12px;
  height: 95px;
}
.sheet tbody tr:hover {
  background: #f8fbf7;
}
.sheet tbody tr:last-child td {
  border-bottom: 0;
}
.thumb {
  display: block;
  width: 66px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #e7ede8;
  cursor: pointer;
}
.thumb-placeholder {
  width: 66px;
  height: 70px;
  background: #ebefeb;
  border-radius: 6px;
  color: #81918a;
  display: grid;
  place-items: center;
  font-size: 10px;
  text-align: center;
}
.shot-id {
  font-weight: 800;
  color: #25443a;
  letter-spacing: 0.01em;
}
.shot-link {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: #b4cab7;
  text-underline-offset: 4px;
}
.film-name {
  font-weight: 600;
  color: #455b52;
}
.desc {
  font-size: 11px;
  color: #708078;
  margin-top: 5px;
  line-height: 1.35;
}
.zones-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.zone-chip {
  border: 1px solid #e0e7df;
  border-left: 4px solid var(--zone);
  border-radius: 5px;
  padding: 5px 7px;
  background: #fff;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.3;
}
.zone-chip strong {
  color: #35473e;
}
.zone-chip span {
  color: #5e6d65;
}
.status-select {
  border-radius: 7px;
  border: 1px solid #d3ded4;
  background: #f8faf7;
  padding: 7px 6px;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
}
.status-select[data-status="Validé"] {
  background: #e1f4de;
  color: #357243;
}
.status-select[data-status="En cours"] {
  background: #fff0d6;
  color: #916321;
}
.status-select[data-status="Non validé"] {
  background: #fce4df;
  color: #a64339;
}
.comment-cell {
  font-size: 11px;
  line-height: 1.4;
  color: #58665f;
  cursor: pointer;
}
.comment-cell:hover {
  text-decoration: underline;
}
.updated {
  font-size: 10px;
  color: #8c9990;
}
.section-intro {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin: 12px 0 21px;
}
.section-intro h2 {
  font-size: 21px;
  margin: 0 0 5px;
}
.section-intro p {
  margin: 0;
  color: #6f7f75;
}
.panel {
  background: #fff;
  border: 1px solid #dfe8df;
  border-radius: 11px;
  padding: 20px;
}
.panel h3 {
  margin: 0 0 18px;
  font-size: 15px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 13px;
}
.stack label,
.dialog-form label,
.drawer label,
.assistant-panel label,
.auth-card label {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: #51665b;
}
.stack input,
.stack select,
.dialog-form input,
.dialog-form select,
.dialog-form textarea,
.drawer input,
.drawer select,
.drawer textarea,
.assistant-panel textarea,
.auth-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d5e1d6;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
  color: #20372a;
  outline-color: #86b894;
  resize: vertical;
  font-weight: 400;
}
.stack button {
  justify-self: start;
}
.member-row,
.activity-row,
.task-row,
.project-row {
  padding: 12px 0;
  border-bottom: 1px solid #e8eee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.member-row:last-child,
.activity-row:last-child,
.task-row:last-child,
.project-row:last-child {
  border: 0;
}
.role-badge {
  background: #edf3ed;
  color: #43634b;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.task-list {
  background: #fff;
  border: 1px solid #dfe8df;
  border-radius: 10px;
  padding: 8px 18px;
}
.task-row {
  gap: 15px;
}
.task-row > div:first-child {
  flex: 1;
}
.task-row strong {
  font-size: 13px;
}
.task-row p {
  color: #687970;
  margin: 4px 0 0;
  font-size: 11px;
}
.task-row select {
  border: 1px solid #d4e0d4;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
}
.task-row button {
  border: 0;
  background: transparent;
  color: #326b4a;
  font-weight: 700;
}
.activity-row {
  justify-content: start;
}
.activity-row time {
  width: 140px;
  color: #84938b;
  font-size: 11px;
}
.activity-row strong {
  min-width: 120px;
}
.activity-row span {
  color: #617469;
}
.invite-link {
  overflow-wrap: anywhere;
  margin-top: 15px;
  padding: 12px;
  background: #ecf6e9;
  border: 1px solid #b7d2ae;
  border-radius: 7px;
  line-height: 1.6;
}
.assistant-panel {
  max-width: 740px;
}
.assistant-panel button {
  margin-top: 14px;
}
.proposal {
  background: #f2f7f0;
  border: 1px solid #cddfcc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}
.proposal pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 11px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #0c1a14aa;
  z-index: 8;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(690px, 100vw);
  background: #f8faf7;
  z-index: 9;
  box-shadow: -15px 0 40px #192a2340;
  overflow: auto;
}
.drawer-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #dce6db;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.drawer-header h2 {
  margin: 0;
  font-size: 24px;
}
.icon-btn {
  border: 0;
  background: transparent;
  font-size: 27px;
  color: #62756b;
  line-height: 1;
}
.drawer-content {
  padding: 19px 23px 40px;
}
.hero-still {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: #18241c;
  border-radius: 9px;
}
.image-row {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  align-items: center;
}
.image-row span {
  color: #728177;
  font-size: 11px;
  flex: 1;
}
.drawer-section {
  background: #fff;
  border: 1px solid #e2ebe0;
  border-radius: 9px;
  padding: 17px;
  margin-top: 15px;
}
.drawer-section h3 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #496356;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drawer label {
  margin-bottom: 10px;
}
.zone-edit {
  border: 1px solid #e2e9e1;
  border-left: 5px solid var(--zone);
  padding: 12px;
  margin: 9px 0;
  border-radius: 7px;
  background: #fcfdfb;
}
.zone-edit .zone-head {
  display: flex;
  gap: 8px;
}
.zone-edit .zone-head label:first-child {
  flex: 1;
}
.zone-edit .zone-head label:last-child {
  width: 75px;
}
.zone-edit textarea {
  min-height: 67px;
}
.zone-edit select {
  max-width: 150px;
}
.zone-edit button {
  border: 0;
  background: none;
  color: #b34e43;
  font-size: 11px;
}
.drawer-actions {
  position: sticky;
  bottom: 0;
  background: #f8faf7;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-images {
  display: flex;
  overflow: auto;
  gap: 9px;
}
.board-images img {
  height: 190px;
  width: auto;
  border: 1px solid #e1e7dd;
  border-radius: 5px;
}
.form-error {
  color: #b34136;
  min-height: 1.2em;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  padding: 12px 17px;
  background: #263d31;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px #17271a33;
  display: none;
}
#toast.show {
  display: block;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e4ebdf, #f7f8f3);
}
.auth-card {
  width: min(420px, calc(100vw - 30px));
  padding: 36px;
  background: #fff;
  border: 1px solid #d9e5d8;
  border-radius: 15px;
  box-shadow: 0 20px 50px #19301b18;
}
.auth-card .brand-mark {
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 29px;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
}
.auth-card .muted {
  line-height: 1.5;
  margin-bottom: 27px;
}
.auth-card label {
  margin: 0 0 15px;
}
.auth-card button {
  margin-top: 8px;
}
dialog {
  border: 1px solid #d6e4d6;
  border-radius: 11px;
  box-shadow: 0 18px 70px #1024175c;
  padding: 0;
  width: min(500px, calc(100vw - 30px));
}
dialog::backdrop {
  background: #10231677;
}
.dialog-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}
.dialog-form header {
  display: flex;
  justify-content: space-between;
}
.dialog-form h2 {
  margin: 0;
}
.dialog-form .two-col {
  gap: 12px;
}
.dialog-form button.primary {
  justify-self: end;
}
hr {
  border: 0;
  border-top: 1px solid #e7eee6;
  margin: 22px 0;
}
@media (max-width: 900px) {
  .sidebar {
    width: 68px;
    padding: 20px 9px;
  }
  .wordmark > span:last-child,
  .sidebar-label,
  .project-switch-label,
  .sidebar nav button {
    font-size: 0;
  }
  .wordmark {
    margin: 0 8px 25px;
  }
  .sidebar nav button span {
    font-size: 19px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    padding: 0 14px 30px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar h1 {
    font-size: 23px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .sheet-scroll {
    max-height: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 51px;
    padding: 12px 4px;
  }
  .wordmark {
    margin: 0 4px 18px;
  }
  .brand-mark.small {
    width: 32px;
  }
  .topbar {
    align-items: start;
    padding-top: 20px;
    min-height: 115px;
  }
  .topbar-actions {
    flex-wrap: wrap;
    justify-content: end;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .drawer-grid {
    grid-template-columns: 1fr;
  }
}
.reference-banner {
  background: #fff1cf;
  color: #765516;
  border: 1px solid #ebd594;
  border-radius: 7px;
  padding: 11px 14px;
  margin-bottom: 12px;
  font-weight: 800;
}
.revoke-btn {
  border: 1px solid #e7c6be;
  background: #fff7f4;
  color: #a44a3e;
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 11px;
}
/* Présentation feuille de production */
.main {
  background: #f8f9f7;
  padding-left: 20px;
  padding-right: 20px;
}
.topbar {
  min-height: 91px;
}
.topbar h1 {
  font-size: 24px;
}
.stats {
  gap: 0;
  margin: 0 0 13px;
  border: 1px solid #cfd8d1;
  background: #fff;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  min-height: 49px;
  border: 0;
  border-right: 1px solid #d7dfd8;
  border-radius: 0;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat:last-child {
  border-right: 0;
}
.stat b {
  font-size: 20px;
  line-height: 1;
}
.stat span {
  font-size: 9px;
  line-height: 1.1;
}
.toolbar {
  margin-bottom: 0;
  background: #ecf0ec;
  border: 1px solid #cfd8d1;
  border-bottom: 0;
  border-radius: 0;
  padding: 7px 9px;
  gap: 7px;
}
.toolbar select,
.toolbar .search-wrap {
  border-radius: 3px;
  border-color: #cbd6cc;
  height: 32px;
}
.toolbar select {
  padding: 5px 8px;
  font-size: 11px;
}
.toolbar .search-wrap input {
  height: 30px;
}
.toolbar .primary {
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 11px;
}
.sheet-scroll {
  border: 1px solid #bdc9c0;
  border-radius: 0;
  box-shadow: none;
  max-height: calc(100vh - 220px);
}
.sheet {
  min-width: 1090px;
}
.sheet th {
  background: #343a38;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.035em;
  padding: 9px 9px;
  border-right: 1px solid #68736c;
  border-bottom: 1px solid #232a25;
  white-space: nowrap;
}
.sheet th:nth-child(1) {
  width: 74px;
}
.sheet th:nth-child(2) {
  width: 92px;
}
.sheet th:nth-child(3) {
  width: 177px;
}
.sheet th:nth-child(4) {
  width: 392px;
}
.sheet th:nth-child(5) {
  width: 122px;
}
.sheet th:nth-child(6) {
  width: 205px;
}
.sheet th:nth-child(7) {
  width: 80px;
}
.sheet td {
  height: 70px;
  padding: 6px 8px;
  border-right: 1px solid #d9e0d9;
  border-bottom: 1px solid #d9e0d9;
  vertical-align: middle;
}
.sheet td:last-child,
.sheet th:last-child {
  border-right: 0;
}
.sheet tbody tr:nth-child(even) {
  background: #f7f9f6;
}
.sheet tbody tr:hover {
  background: #eef5eb;
}
.sheet th:nth-child(1),
.sheet td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
}
.sheet th:nth-child(2),
.sheet td:nth-child(2) {
  position: sticky;
  left: 74px;
  z-index: 3;
}
.sheet th:nth-child(1),
.sheet th:nth-child(2) {
  z-index: 5;
  background: #343a38;
}
.sheet td:nth-child(1),
.sheet td:nth-child(2) {
  background: #fff;
}
.sheet tbody tr:nth-child(even) td:nth-child(-n + 2) {
  background: #f7f9f6;
}
.sheet tbody tr:hover td:nth-child(-n + 2) {
  background: #eef5eb;
}
.thumb,
.thumb-placeholder {
  width: 54px;
  height: 55px;
  border-radius: 2px;
}
.shot-id {
  font-size: 11px;
}
.film-name {
  font-size: 11px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc {
  font-size: 10px;
  line-height: 1.3;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zones-inline {
  display: block;
  max-height: 68px;
  overflow: hidden;
}
.zone-chip {
  display: block;
  border: 0;
  border-left: 3px solid var(--zone);
  border-radius: 0;
  background: transparent;
  padding: 1px 5px;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  max-width: 100%;
}
.zone-chip strong {
  font-weight: 700;
}
.status-select {
  height: 36px;
  border-radius: 2px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.02em;
  border: 0;
  background: #f1eee0;
}
.status-select[data-status="À vérifier"] {
  background: #e9e0af;
  color: #4f491f;
}
.status-select[data-status="Validé"] {
  background: #b4e29c;
  color: #234e2d;
}
.status-select[data-status="En cours"] {
  background: #ffce83;
  color: #63411b;
}
.status-select[data-status="Non validé"] {
  background: #eea19b;
  color: #642922;
}
.status-select[data-status="Sans retouche"] {
  background: #dfe3df;
  color: #526056;
}
.comment-cell {
  max-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 10px;
  line-height: 1.35;
}
.updated {
  font-size: 10px;
}
.role-badge {
  display: inline-block;
  margin-top: 3px;
}
.sheet-scroll::-webkit-scrollbar {
  height: 11px;
  width: 11px;
}
.sheet-scroll::-webkit-scrollbar-thumb {
  background: #b1bcb0;
  border: 2px solid #f8f9f7;
  border-radius: 9px;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat:nth-child(3) {
    border-right: 0;
  }
  .sheet-scroll {
    max-height: calc(100vh - 260px);
  }
}
@media (max-width: 600px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-right: 1px solid #d7dfd8;
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .sheet th:nth-child(1),
  .sheet td:nth-child(1),
  .sheet th:nth-child(2),
  .sheet td:nth-child(2) {
    position: static;
  }
}
/* Colonnes conformes au breakdown Excel v2 */
.sheet {
  min-width: 1880px;
}
.sheet th:nth-child(1) {
  width: 74px;
}
.sheet th:nth-child(2) {
  width: 98px;
}
.sheet th:nth-child(3) {
  width: 185px;
}
.sheet th:nth-child(4),
.sheet th:nth-child(5),
.sheet th:nth-child(6),
.sheet th:nth-child(7) {
  width: 230px;
}
.sheet th:nth-child(8) {
  width: 115px;
}
.sheet th:nth-child(9) {
  width: 120px;
}
.sheet th:nth-child(10) {
  width: 83px;
}
.sheet th:nth-child(11) {
  width: 220px;
}
.sheet th:nth-child(12) {
  width: 100px;
}
.sheet th:nth-child(2),
.sheet td:nth-child(2) {
  left: 74px;
}
.sheet td {
  height: 71px;
  min-height: 71px;
}
.sheet td.zone-cell {
  background: color-mix(in srgb, var(--zone) 16%, white);
  cursor: pointer;
  border-left: 3px solid var(--zone);
  padding: 6px 8px;
}
.sheet tbody tr:nth-child(even) td.zone-cell {
  background: color-mix(in srgb, var(--zone) 18%, #f7f9f6);
}
.zone-label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: #2e3431;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zone-text {
  font-size: 10px;
  line-height: 1.28;
  margin-top: 2px;
  color: #39443a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.empty-zone {
  color: #a7b4a8;
}
.artist-cell,
.work-version,
.source-cell {
  font-size: 10px;
  color: #526158;
}
.status-cell {
  padding: 0 !important;
}
.status-cell .status-select {
  height: 100%;
  min-height: 71px;
  width: 100%;
  font-size: 10px;
  border-radius: 0;
}
.comment-cell {
  max-height: 57px;
  -webkit-line-clamp: 4;
}
.film-name {
  -webkit-line-clamp: 3;
}
.sheet tbody tr:hover td.zone-cell {
  filter: brightness(0.98);
}
.sheet-meta {
  display: grid;
  grid-template-columns:
    65px minmax(130px, 1fr) 80px minmax(240px, 1.6fr)
    48px 54px;
  align-items: center;
  min-height: 30px;
  border: 1px solid #cfd8d1;
  border-bottom: 0;
  background: #fff;
  padding: 0 11px;
  gap: 8px;
}
.sheet-meta span {
  font-size: 9px;
  font-weight: 800;
  color: #63756a;
}
.sheet-meta strong {
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  .sheet-meta {
    grid-template-columns: 55px 1fr 64px 1.2fr;
  }
  .sheet-meta span:nth-last-child(-n + 2) {
    display: none;
  }
}
@media (max-width: 600px) {
  .sheet-meta {
    grid-template-columns: 52px 1fr;
  }
  .sheet-meta span:nth-of-type(n + 2),
  .sheet-meta strong:nth-of-type(n + 2) {
    display: none;
  }
}

#ssoLogin {
  display: flex;
  text-decoration: none;
}
#sendMailLabel input {
  display: inline-block;
  width: auto;
  margin: 0 6px 0 0;
}

/* Client welcome */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.landing {
  background: #151c1b;
  color: #f2f2e9;
  min-height: 100vh;
  padding: 0 5.5vw;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.landing a {
  color: inherit;
  text-decoration: none;
}
.landing-nav {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff1c;
  max-width: 1440px;
  margin: auto;
}
.landing-wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -1.1px;
}
.brand-period {
  font-size: 11px;
  align-self: flex-start;
  margin-top: 3px;
  opacity: 0.5;
}
.landing-nav nav {
  display: flex;
  gap: 35px;
  align-items: center;
  font-size: 12px;
}
.nav-client {
  border: 1px solid #6a766e;
  border-radius: 6px;
  padding: 11px 16px;
}
.nav-client span {
  margin-left: 28px;
  color: #c6f38a;
}
.landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 8vw;
  max-width: 1440px;
  margin: auto;
  padding: 65px 0 70px;
}
.landing-kicker {
  font-size: 10px;
  letter-spacing: 0.19em;
  color: #bac7bd;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 25px;
}
.landing-kicker > span {
  height: 6px;
  width: 6px;
  background: #c6f38a;
  border-radius: 50%;
  box-shadow: 0 0 13px #c6f38a40;
}
.hero-copy h1 {
  font-size: clamp(50px, 5.7vw, 85px);
  line-height: 1.01;
  font-weight: 530;
  letter-spacing: -0.065em;
  margin: 0 0 25px;
}
.hero-copy h1 em {
  font-style: normal;
  color: #c6f38a;
}
.hero-description {
  font-size: 15px;
  line-height: 1.65;
  color: #a9b5ac;
  margin: 0 0 22px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #d9e8d74d;
  padding-bottom: 7px;
  font-weight: 600;
  font-size: 12px;
}
.hero-link span {
  color: #c6f38a;
  font-size: 18px;
}
.production-preview {
  margin-top: 35px;
  max-width: 620px;
  border: 1px solid #48534a;
  border-radius: 8px;
  background: #202a25;
  overflow: hidden;
  box-shadow: 0 18px 50px #00000020;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #a1b2a5;
  border-bottom: 1px solid #ffffff12;
}
.preview-top i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c6f38a;
  margin-right: 6px;
}
.preview-film {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 17px;
  padding: 15px;
}
.frame-art {
  position: relative;
  height: 138px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 100%, #af6633 0, transparent 55%),
    linear-gradient(145deg, #202d28, #525c41 60%, #cba472);
}
.frame-orb {
  position: absolute;
  height: 180px;
  width: 180px;
  left: 25%;
  top: 25%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 18%,
    #f0e9c0,
    #78937e 45%,
    #1c332c 78%
  );
  box-shadow: 10px -8px 35px #d4e8c650;
}
.frame-art > span {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 6px;
  color: #e2ead7;
  letter-spacing: 0.09em;
}
.frame-art > b {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.frame-art b span {
  opacity: 0.5;
}
.tiny-label {
  display: block;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #809486;
  margin-bottom: 14px;
}
.preview-notes {
  padding-top: 5px;
}
.preview-notes > div {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 7px;
  font-size: 9px;
  margin-top: 12px;
  line-height: 1.2;
}
.preview-notes > div > span {
  grid-column: 2;
  font-size: 6px;
  letter-spacing: 0.1em;
  color: #99af9c;
}
.note-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  margin-top: 3px;
}
.orange {
  background: #ed976c;
}
.mint {
  background: #bde89f;
}
.violet {
  background: #b2a5d0;
}
.preview-timeline {
  display: flex;
  height: 31px;
  gap: 4px;
  margin: 0 15px 14px;
  position: relative;
  padding-top: 7px;
  border-top: 1px solid #ffffff12;
}
.preview-timeline > span {
  font-size: 7px;
  color: #9bac9b;
  width: 21px;
  align-self: center;
}
.track {
  border-radius: 2px;
  flex: 1;
  background: #8d9f68;
  border: 1px solid #c8dc9b40;
}
.track-two {
  background: #897caa;
  flex: 1.5;
}
.track-three {
  background: #588f7f;
}
.track-four {
  background: #a47f5b;
  flex: 0.7;
}
.playhead {
  position: absolute;
  top: 1px;
  bottom: -4px;
  left: 60%;
  width: 1px;
  background: #e6f0d9;
}
.playhead:before {
  content: "";
  display: block;
  width: 6px;
  height: 5px;
  background: #e6f0d9;
  margin-left: -2px;
}
.preview-bottom {
  border-top: 1px solid #ffffff12;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  color: #8f9d90;
  font-size: 7px;
  letter-spacing: 0.04em;
}
.preview-bottom b {
  padding: 0 8px;
  color: #bacdaf;
}
.client-column {
  padding-top: 52px;
  scroll-margin-top: 25px;
}
.client-card {
  background: #f0f1e9;
  color: #23352b;
  border-radius: 10px;
  padding: 29px 30px;
  box-shadow: 0 28px 70px #0002;
}
.client-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 37px;
  color: #67826b;
}
.access-pill {
  font-size: 8px;
  letter-spacing: 0.09em;
  border: 1px solid #c8d3c0;
  padding: 7px 9px;
  border-radius: 20px;
  font-weight: 650;
}
.access-pill i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #68985f;
  margin-right: 5px;
}
.client-eyebrow {
  font-size: 8px;
  letter-spacing: 0.11em;
  color: #6a7e6e;
  margin-bottom: 13px;
}
.client-card h2 {
  font-size: 33px;
  letter-spacing: -0.05em;
  line-height: 1.08;
  font-weight: 550;
  margin: 0 0 15px;
}
.client-intro {
  font-size: 12px;
  line-height: 1.6;
  color: #778273;
  margin: 0 0 25px;
}
.client-card label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 16px;
}
.client-card input {
  display: block;
  width: 100%;
  height: 43px;
  border: 1px solid #ccd3c7;
  background: #f8f9f3;
  border-radius: 5px;
  padding: 10px 12px;
  margin-top: 7px;
  font-size: 12px;
  color: #23352b;
}
.client-card input::placeholder {
  color: #9ba294;
}
.client-card input:focus {
  outline: 2px solid #92ae79;
  outline-offset: 2px;
}
.client-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border: 0;
  border-radius: 5px;
  background: #253e2e;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
}
.client-submit:hover {
  background: #36583a;
}
.client-submit span {
  font-size: 16px;
  color: #c6f38a;
}
.client-card .form-error {
  font-size: 11px;
  margin: 10px 0;
  min-height: 0;
}
.invitation-note {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #d7ddd0;
  margin-top: 25px;
}
.invitation-note > span {
  font-size: 20px;
  color: #7f9270;
}
.invitation-note p {
  font-size: 10px;
  line-height: 1.65;
  color: #7c8976;
  margin: 0;
}
.invitation-note strong {
  font-weight: 600;
  color: #4e634e;
}
.client-caption {
  padding: 24px 5px;
  display: grid;
  gap: 8px;
}
.client-caption > span {
  font-size: 7px;
  letter-spacing: 0.13em;
  color: #839687;
}
.client-caption strong {
  font-size: 16px;
  font-weight: 400;
  color: #bacab9;
  letter-spacing: -0.02em;
}
.workflow-section {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid #ffffff1c;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 35px;
  padding: 35px 0 43px;
}
.workflow-title p {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #ccd9cb;
  margin: 0 0 13px;
}
.workflow-title > span {
  font-size: 10px;
  color: #7b8e80;
}
.workflow-section article > span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #b3ca9b;
}
.workflow-section h2 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 15px 0 10px;
}
.workflow-section article > p {
  color: #92a395;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  max-width: 205px;
}
.landing-footer {
  max-width: 1440px;
  margin: auto;
  padding: 23px 0 30px;
  border-top: 1px solid #ffffff1c;
  display: flex;
  justify-content: space-between;
  color: #819284;
  font-size: 10px;
}
.footer-divider {
  padding: 0 12px;
  color: #4f6253;
}
.landing-footer strong {
  font-size: 16px;
  color: #e6eddd;
  letter-spacing: -0.04em;
  font-weight: 550;
  margin-left: 4px;
}
.landing-footer i {
  font-style: normal;
  color: #c6f38a;
  font-size: 20px;
  vertical-align: middle;
  margin-left: 8px;
}
.excel-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.excel-actions select {
  max-width: 190px;
  border: 1px solid #cbd8d1;
  padding: 8px;
  border-radius: 6px;
  background: white;
  color: #24453c;
  font-size: 11px;
}
#importDialog {
  width: min(700px, 94vw);
}
#importDetails {
  max-height: 45vh;
  overflow: auto;
}
#importDetails table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
#importDetails td,
#importDetails th {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid #dce4da;
}
.import-warning {
  padding: 10px;
  background: #fff1d8;
  color: #745a1d;
  line-height: 1.5;
}
.import-error {
  padding: 10px;
  background: #fde6e0;
  color: #8f3c31;
  line-height: 1.5;
}
@media (min-width: 1600px) {
  .landing-main {
    gap: 140px;
    grid-template-columns: 1fr 400px;
  }
  .hero-copy h1 {
    font-size: 90px;
  }
}
@media (max-width: 1050px) {
  .landing {
    padding: 0 4vw;
  }
  .landing-main {
    gap: 5vw;
    grid-template-columns: 1fr 325px;
  }
  .hero-copy h1 {
    font-size: 60px;
  }
  .client-card {
    padding: 24px;
  }
  .preview-notes > div {
    font-size: 8px;
  }
  .client-column {
    padding-top: 35px;
  }
  .workflow-section {
    gap: 22px;
  }
  .preview-film {
    gap: 10px;
    padding: 10px;
  }
}
@media (max-width: 760px) {
  .landing {
    padding: 0 22px;
  }
  .landing-nav {
    height: 77px;
  }
  .landing-wordmark {
    font-size: 23px;
  }
  .landing-nav nav {
    gap: 0;
  }
  .landing-nav nav > a:first-child {
    display: none;
  }
  .nav-client {
    padding: 9px 11px;
  }
  .nav-client span {
    margin-left: 12px;
  }
  .landing-main {
    display: flex;
    flex-direction: column;
    padding: 38px 0 35px;
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: clamp(48px, 10vw, 72px);
  }
  .hero-description {
    font-size: 14px;
  }
  .production-preview {
    margin-top: 30px;
  }
  .client-column {
    padding-top: 0;
    max-width: 450px;
    width: 100%;
    align-self: center;
  }
  .client-card {
    padding: 27px;
  }
  .client-card-top {
    margin-bottom: 27px;
  }
  .client-caption {
    display: none;
  }
  .workflow-section {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 28px 0;
  }
  .workflow-title {
    grid-column: 1/-1;
  }
  .workflow-title p {
    display: inline;
    font-size: 12px;
  }
  .workflow-title > span {
    display: none;
  }
  .workflow-section article > p {
    max-width: none;
  }
  .workflow-section article:last-child {
    grid-column: 1/-1;
  }
  .landing-footer {
    gap: 20px;
    align-items: center;
  }
  .landing-footer > span:first-child {
    max-width: 160px;
    line-height: 1.6;
  }
  .landing-footer > span:last-child {
    white-space: nowrap;
  }
  .preview-bottom {
    font-size: 6px;
  }
  .desktop-break {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.platform-admin-link {
  display: block;
  color: #c6f38a;
  text-decoration: none;
  font-size: 11px;
  padding: 15px 12px;
  margin-top: 14px;
  border-top: 1px solid #3f5b50;
}
.project-row {
  gap: 20px;
}
.project-row .secondary {
  margin-left: auto;
}
#projectsView .panel {
  min-width: 0;
}
#workspaceCapacity {
  font-size: 11px;
  margin: 0;
}

#shareDialog {
  width: min(720px, 94vw);
}
.share-options {
  border: 1px solid #d7dfd0;
  border-radius: 8px;
  padding: 15px;
}
.share-options p {
  font-size: 12px;
  color: #657460;
  margin: 5px 0 12px;
}
.share-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
}
.share-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #486739;
}
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e1e6da;
  padding: 16px 0;
}
.share-row .muted {
  font-size: 11px;
  margin: 6px 0;
}
.share-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
#shareCreated {
  background: #eef5e6;
  border: 1px solid #d5e2c9;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
}
#shareUrl {
  width: 100%;
  font-size: 11px;
}
#shareError {
  color: #9c4437;
}
