:root {
  /* Cores Oficiais da Identidade Visual Victoria Maria Store */
  --marfim: #F5EEE9;      /* Marfim Suave */
  --azul: #819DCE;        /* Azul Sereno */
  --oliva: #B1AA45;       /* Oliva */
  --terracota: #C2552C;   /* Terracota Viva */
  --cacau: #603E34;       /* Marrom Cacau */

  /* Mapeamento de variáveis do sistema */
  --brown: var(--cacau);
  --orange: var(--terracota);
  --sand: #D8C5B6;
  --paper: var(--marfim);
  --blue: var(--azul);
  --olive: var(--oliva);
  --raisin: #262626;

  --brown-70: rgba(96, 62, 52, .75);
  --line: rgba(96, 62, 52, .14);

  --status-0: #C9C2BC;    /* Não captado */
  --status-1: var(--oliva); /* Captado (Oliva) */
  --status-2: var(--azul);  /* Editado (Azul Sereno) */
  --status-3: #3F7A52;    /* Postado */
  --late: #B23A2E;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: var(--paper);
  color: var(--brown);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: #fff;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ======================================================
   SISTEMA DE CURSORES E INTERAÇÃO PROFISSIONAL
   ====================================================== */

/* ELEMENTOS CLICÁVEIS (MÃOZINHA / POINTER) */
a, 
button, 
.btn-primary, 
.btn-secondary, 
.btn-save-all, 
.btn-logout, 
.btn-card-edit, 
.btn-add-notice, 
.btn-modal-close,
.month-tabs button, 
.legend button, 
.tag-picker-pill, 
.cal-annotation,
.status-pill.editable,
.card.admin-editable,
.card.admin-editable .title,
.card.admin-editable .date,
.card.admin-editable .content {
  cursor: pointer !important;
}

/* CURSORES DE ARRASTAR (ADMIN) */
.cal-post[draggable="true"] {
  cursor: grab !important;
}

.cal-post[draggable="true"]:active,
.cal-post.dragging {
  cursor: grabbing !important;
}

/* CURSOR PADRÃO EM TÍTULOS E ÁREAS NÃO INTERATIVAS */
h1, h2, h3, h4, .eyebrow, .sub, .header-meta, .phase-title, .cal-dow, .cal-cell.empty {
  cursor: default;
  user-select: none;
}

/* CAMPOS DE TEXTO E SELEÇÃO */
input[type="text"],
input[type="password"],
input[type="date"],
textarea {
  cursor: text !important;
}

select {
  cursor: pointer !important;
}

/* FEEDBACK DE TOQUE E CLIQUE REATIVO EM BOTÕES E CARDS */
button:active,
.btn-primary:active,
.btn-save-all:active,
.btn-logout:active,
.btn-card-edit:active,
.legend button:active,
.month-tabs button:active,
.tag-picker-pill:active,
.status-pill.editable:active {
  transform: scale(0.96) !important;
}

/* ---------- BLUR BACKDROP & LOGIN OVERLAY ---------- */
.blurred-app {
  filter: blur(14px) brightness(0.92);
  pointer-events: none !important;
  user-select: none !important;
  transition: filter .3s ease;
}

.login-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45, 28, 23, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  overflow-y: auto;
}

.login-overlay-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 52px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(194, 85, 44, 0.25);
  position: relative;
  z-index: 100001;
}

.login-brand-center {
  text-align: center;
  margin: 0 0 28px;
}

.login-brand-center img.login-brand-img {
  height: 130px;
  max-width: 90%;
  width: auto;
  display: inline-block;
}

.login-overlay-card h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 8px;
  line-height: 1.1;
  text-align: center;
}

.login-overlay-card p.desc {
  font-size: 13.5px;
  color: var(--brown-70);
  margin: 0 0 24px;
  line-height: 1.5;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brown);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brown);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(194, 85, 44, 0.2);
}

textarea.form-control {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}

.btn-primary {
  width: 100%;
  height: 48px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .15s ease, transform .1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #a44320;
}

.alert-error {
  background: rgba(178, 58, 46, 0.1);
  border: 1px solid rgba(178, 58, 46, 0.3);
  color: var(--late);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

/* ---------- HEADER WITH ANIMATED MOTION GRAPHICS VECTOR BACKGROUND ---------- */
header {
  background: var(--brown) url('assets/brand/header-bg.svg') center/cover no-repeat;
  color: var(--paper);
  padding: 52px 6vw 60px;
  position: relative;
  overflow: hidden;
  animation: animatedHeaderBg 22s ease-in-out infinite alternate;
}

@keyframes animatedHeaderBg {
  0% {
    background-position: 0% 30%;
    background-size: 108% 108%;
  }
  50% {
    background-position: 100% 70%;
    background-size: 118% 118%;
  }
  100% {
    background-position: 30% 0%;
    background-size: 108% 108%;
  }
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 62, 52, 0.68) 0%, rgba(96, 62, 52, 0.35) 100%);
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -35%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(194, 85, 44, .45), transparent 65%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.header-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFAA88;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.voxion-symbol-img {
  height: 32px;
  width: auto;
  transition: transform .25s ease;
}

.eyebrow:hover .voxion-symbol-img {
  transform: scale(1.15) rotate(5deg);
}

.brand-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  display: block;
  transition: transform .2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.header-title-wrap {
  border-left: 2px solid rgba(245, 238, 233, 0.3);
  padding-left: 20px;
}

.header-title-wrap h1 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 44px);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* CSS ICON SYMBOLS WITH HOVER ANIMATION */
.icon-svg {
  width: 15px;
  height: 15px;
  fill: stroke;
  display: inline-block;
  vertical-align: middle;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:hover .icon-svg,
.role-badge:hover .icon-svg,
.btn-logout:hover .icon-svg,
.btn-add-notice:hover .icon-svg {
  transform: scale(1.2) rotate(-4deg);
}

.btn-save-all {
  min-height: 44px;
  padding: 0 18px;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(194, 85, 44, 0.5);
}

.btn-save-all:hover {
  background: #a44320;
  transform: translateY(-1px);
}

.role-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.role-badge.admin {
  background: rgba(194, 85, 44, 0.3);
  color: #FFC0A8;
  border: 1px solid rgba(194, 85, 44, 0.5);
}

.role-badge.viewer {
  background: rgba(129, 157, 206, 0.25);
  color: #D6E4FF;
  border: 1px solid rgba(129, 157, 206, 0.4);
}

.btn-logout {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(245, 238, 233, 0.12);
  border: 1px solid rgba(245, 238, 233, 0.3);
  border-radius: 8px;
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-logout:hover {
  background: rgba(194, 85, 44, 0.35);
  border-color: var(--orange);
  color: #fff;
}

/* SAVE CONFIRMATION TOAST BANNER */
.save-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #3F7A52;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all .25s ease;
}

.save-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 56px);
  line-height: .98;
  margin: 0 0 14px;
}

header p.sub {
  position: relative;
  z-index: 2;
  max-width: 580px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(245, 238, 233, .88);
  margin: 20px 0 0;
}

.header-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.header-meta .item {
  border-left: 2px solid rgba(245, 238, 233, .25);
  padding-left: 16px;
}

.header-meta .item b {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #FFAA88;
}

.header-meta .item span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(245, 238, 233, .7);
}

/* ---------- SHELL ---------- */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw 100px;
}

section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: .01em;
  margin: 0;
}

.section-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--brown-70);
  max-width: 440px;
}

/* ---------- LEGEND ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend button {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--brown);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .15s ease;
}

.legend button .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.legend button.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.legend button:hover {
  border-color: var(--brown);
}

/* ---------- MONTH TABS ---------- */
.month-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.month-tabs button {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--line);
  color: var(--brown-70);
  padding: 12px 10px;
  min-height: 44px;
  margin-right: 16px;
  white-space: nowrap;
}

.month-tabs button.active {
  color: var(--brown);
  border-bottom-color: var(--orange);
}

/* ---------- CALENDAR GRID ---------- */
.cal-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--brown);
}

.cal-dow div {
  padding: 11px 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245, 238, 233, .85);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 124px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-cell:hover {
  background: rgba(245, 238, 233, 0.6);
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.empty {
  background: repeating-linear-gradient(135deg, rgba(96, 62, 52, .03) 0 10px, transparent 10px 20px);
}

.cal-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-daynum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brown-70);
}

.btn-add-notice {
  background: transparent;
  border: none;
  color: var(--brown-70);
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.55;
  transition: opacity .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cal-cell:hover .btn-add-notice {
  opacity: 1;
  background: rgba(194, 85, 44, 0.15);
  color: var(--orange);
}

.cal-cell.today .cal-daynum {
  color: var(--orange);
}

.cal-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--orange);
  background: rgba(194, 85, 44, .1);
  border: 1px solid rgba(194, 85, 44, .35);
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1.3;
  width: fit-content;
}

/* MULTIPLE POSTS STACK CONTAINER IN CALENDAR DAY CELL */
.cal-posts-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

/* ---------- ANOTAÇÕES / AVISOS ---------- */
.cal-annotation {
  font-size: 10px;
  line-height: 1.3;
  background: #FFF9EE;
  border: 1px solid #E6D4B0;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--brown);
  font-weight: 500;
  word-break: break-word;
  position: relative;
}

.cal-annotation b {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--orange);
  margin-bottom: 2px;
}

.cal-post {
  font-size: 11px;
  line-height: 1.35;
  background: var(--paper);
  border-left: 3px solid var(--status-0);
  border-radius: 0 5px 5px 0;
  padding: 6px 8px;
  color: var(--brown);
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cal-cell.drop-hover {
  background: rgba(194, 85, 44, .08);
  outline: 2px dashed var(--orange);
  outline-offset: -2px;
}

.cal-post.s1 {
  border-left-color: var(--status-1);
}

.cal-post.s2 {
  border-left-color: var(--status-2);
}

.cal-post.s3 {
  border-left-color: var(--status-3);
}

.cal-post.late {
  background: rgba(178, 58, 46, .08);
}

.cal-post b {
  display: block;
  font-weight: 700;
  font-size: 10.5px;
}

.late-flag {
  font-size: 9px;
  color: var(--late);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- PHASE GROUPS & CARDS ---------- */
.phase {
  margin-bottom: 30px;
}

.phase-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.phase-title .num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  color: #fff;
  background: var(--brown);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.phase-title h3 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .02em;
  margin: 0;
}

.phase-title span {
  font-size: 12px;
  color: var(--brown-70);
  font-family: 'JetBrains Mono', monospace;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 86px 1fr 170px;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
  transition: box-shadow .15s ease, transform .15s ease;
  position: relative;
}

.card:hover {
  box-shadow: 0 6px 22px rgba(96, 62, 52, .08);
  transform: translateY(-1px);
}

.card.hidden {
  display: none;
}

.card .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.3;
}

.card .date b {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: var(--brown);
}

.card .date .wd {
  color: var(--brown-70);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .05em;
}

.card .content b.title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card.admin-editable .content b.title:hover {
  color: var(--orange);
}

.card .content .note {
  font-size: 12.5px;
  color: var(--brown-70);
  line-height: 1.5;
}

.card .content .tag-row {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card .content .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--brown-70);
}

.card .content .tag.date-tag {
  color: var(--orange);
  border-color: rgba(194, 85, 44, .4);
  background: rgba(194, 85, 44, .08);
}

.status-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.btn-card-edit {
  background: rgba(194, 85, 44, 0.12);
  border: 1px solid rgba(194, 85, 44, 0.35);
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.btn-card-edit:hover {
  background: var(--orange);
  color: #fff;
  transform: scale(1.04);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.status-pill.editable {
  user-select: none;
  transition: transform .1s ease, box-shadow .1s ease;
}

.status-pill.editable:hover {
  box-shadow: 0 0 0 2px rgba(194, 85, 44, .35);
}

.status-pill.readonly {
  cursor: default !important;
  opacity: 0.9;
}

.status-pill.st0 {
  background: rgba(201, 194, 188, .35);
  color: #6b6259;
}

.status-pill.st1 {
  background: rgba(177, 170, 69, .2);
  color: #686314;
}

.status-pill.st2 {
  background: rgba(129, 157, 206, .22);
  color: #37568A;
}

.status-pill.st3 {
  background: rgba(63, 122, 82, .16);
  color: #2b5c3b;
}

.progress {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}

.progress i {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}

.progress i.on {
  background: var(--orange);
}

.deadline-flag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--late);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 6px;
}

/* ---------- SELETOR DE ETIQUETAS / TAGS ---------- */
.tag-picker-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-picker-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--brown-70);
  user-select: none;
  transition: all .15s ease;
}

.tag-picker-pill.selected {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.tag-picker-pill:hover {
  border-color: var(--orange);
}

/* ---------- MODAIS (DATAS E ANOTAÇÕES) ---------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 38, 38, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.btn-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(96, 62, 52, 0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.btn-modal-close:hover {
  background: var(--orange);
  color: #fff;
  transform: scale(1.1);
}

.modal-box h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--brown);
  padding-right: 30px;
}

.modal-box p {
  font-size: 13px;
  color: var(--brown-70);
  margin: 0 0 20px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn-secondary {
  flex: 1;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 760px) {
  header {
    padding: 36px 5vw 44px;
  }
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-title-wrap {
    border-left: none;
    padding-left: 0;
  }
  .card {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 10px;
  }
  .status-block {
    text-align: left;
    align-items: flex-start;
  }
  .progress {
    justify-content: flex-start;
  }
  .cal-grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .cal-cell {
    min-height: 84px;
    padding: 4px;
  }
  .cal-post {
    font-size: 9.5px;
    padding: 4px 5px;
    min-height: 36px;
  }
  .cal-post b {
    font-size: 9.5px;
  }
}

@media (max-width: 520px) {
  .cal-dow div {
    font-size: 8.5px;
    padding: 8px 0;
  }
  .cal-daynum {
    font-size: 10px;
  }
  .cal-cell {
    min-height: 72px;
    padding: 3px;
  }
  .cal-tag {
    font-size: 8px;
    padding: 1px 3px;
  }
  .cal-post {
    font-size: 8.5px;
    padding: 3px 4px;
  }
  .cal-post b {
    font-size: 8.5px;
  }
}

@media (max-width: 390px) {
  .shell {
    padding: 0 4vw 60px;
  }
  .cal-dow div {
    font-size: 7.5px;
  }
  .cal-post {
    font-size: 8px;
    line-height: 1.2;
  }
  .cal-post b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

footer {
  padding: 34px 6vw 40px;
  color: var(--brown-70);
  font-size: 12.5px;
  text-align: center;
  border-top: 1px solid var(--line);
}
