@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/poppins-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/poppins-700.ttf) format('truetype');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/red-hat-display-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/red-hat-display-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/red-hat-display-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/red-hat-display-700.ttf) format('truetype');
}

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #14283d;
  background: #f4f7f9;
  font-synthesis: none;
  --ink: #14283d;
  --muted: #607387;
  --line: #dce4e9;
  --blue: #2563a8;
  --blue-light: #e7f0fa;
  --teal: #087c88;
  --teal-light: #e2f4f2;
  --amber: #ad6b14;
  --amber-light: #fff4de;
  --red: #b3424b;
  --red-light: #fcecee;
  --white: #fff;
  --radius: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #10a5af; outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { background: var(--ink); color: #eaf2f7; padding: 26px 16px; display: flex; flex-direction: column; gap: 28px; }
.brand { padding: 0 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #14283d; background: #8be0d9; font: 700 18px 'Outfit', Arial, sans-serif; margin-bottom: 14px; }
.brand strong { display: block; font: 700 18px/1.15 'Outfit', Arial, sans-serif; letter-spacing: -.03em; }
.brand small { display: block; color: #a9c2cf; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; margin-top: 5px; }
.workspace-pill { border: 1px solid #496073; padding: 12px; border-radius: 12px; font-size: 13px; line-height: 1.35; background: #1e364d; }
.workspace-pill span { color: #adc7d5; display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.nav { display: grid; gap: 4px; }
.nav-label { color: #8eacbb; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 0 12px 8px; }
.nav button { border: 0; color: #bdd2df; text-align: left; width: 100%; padding: 11px 12px; background: transparent; border-radius: 10px; font-size: 14px; display: flex; gap: 11px; align-items: center; }
.nav button:hover { background: #253f57; color: white; }
.nav button.active { background: #e4f4f4; color: #0e4c59; font-weight: 700; }
.nav-icon { width: 19px; display: inline-block; text-align: center; font-size: 16px; }
.sidebar-foot { margin-top: auto; color: #9fb7c4; font-size: 11px; line-height: 1.55; padding: 0 12px; }

.main { min-width: 0; }
.topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: white; padding: 0 clamp(18px, 3vw, 44px); }
.crumb { color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.prototype-tag { color: var(--amber); background: var(--amber-light); padding: 6px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.role-select { border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 9px 10px; max-width: 170px; }
.content { max-width: 1530px; padding: 34px clamp(18px, 3vw, 44px) 80px; margin: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { font-family: 'Outfit', Arial, sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0; }
h3 { font-size: 17px; margin: 0; }
.subhead { color: var(--muted); font-size: 14px; margin: 0; max-width: 680px; line-height: 1.55; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 10px; min-height: 40px; padding: 8px 14px; font-weight: 700; font-size: 13px; }
.btn:hover { border-color: #89a7b7; background: #f7fafb; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: white; }
.btn.primary:hover { background: #1b528e; }
.btn.danger { color: var(--red); }
.btn.small { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.notice { padding: 13px 16px; background: #e9f4fa; border: 1px solid #c8e4f0; border-radius: 12px; color: #31536a; font-size: 13px; line-height: 1.5; margin-bottom: 22px; }

.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel, .stat { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 22px rgba(20, 40, 61, .035); }
.panel { padding: 22px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.stat { padding: 18px 20px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { font: 700 32px/1 'Outfit', Arial, sans-serif; margin: 13px 0 5px; }
.stat-note { color: var(--muted); font-size: 11px; }
.stat.teal .stat-value { color: var(--teal); }
.stat.amber .stat-value { color: var(--amber); }
.stat.blue .stat-value { color: var(--blue); }
.stat.red .stat-value { color: var(--red); }

.list { display: grid; }
.row { border-top: 1px solid #edf1f3; padding: 13px 0; display: flex; gap: 13px; align-items: flex-start; justify-content: space-between; }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row-main { min-width: 0; }
.row-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
.row-meta { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 5px 9px; white-space: nowrap; background: #edf2f5; color: #536a7c; }
.chip.blue { background: var(--blue-light); color: var(--blue); }
.chip.teal { background: var(--teal-light); color: var(--teal); }
.chip.amber { background: var(--amber-light); color: var(--amber); }
.chip.red { background: var(--red-light); color: var(--red); }
.empty { color: var(--muted); padding: 26px 8px; text-align: center; font-size: 13px; }
.section-spacer { margin-block-start:20px; }
.panel.section-spacer { height:auto; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.toolbar input, .toolbar select { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--ink); background: white; }
.toolbar input { min-width: 230px; flex: 1; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day { border: 1px solid var(--line); border-radius: 13px; background: #fbfdfe; min-height: 180px; padding: 11px; }
.day.today { border-color: #83bdc4; background: #f0fafa; }
.day-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 11px; }
.day-label strong { display: block; font: 700 22px 'Outfit', Arial, sans-serif; color: var(--ink); letter-spacing: -.03em; }
.calendar-item { display: block; border-left: 3px solid var(--blue); border-radius: 5px; background: var(--blue-light); padding: 7px; font-size: 11px; line-height: 1.25; margin-bottom: 5px; overflow-wrap: anywhere; }
.calendar-item.story { background: var(--teal-light); border-color: var(--teal); }
.calendar-item.session { background: var(--amber-light); border-color: var(--amber); }
.calendar-item.event { background: #f3ecfb; border-color: #8660ae; }
.calendar-item.task { background: #edf1f4; border-color: #758b9b; }
.calendar-item small { display: block; opacity: .7; margin-bottom: 3px; }

.story-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.story-day { background: #f7fafb; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 260px; }
.story-day h3 { font-size: 14px; margin-bottom: 10px; }
.story-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 8px; }
.story-card strong { display: block; font-size: 13px; line-height: 1.35; }
.story-card p { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 6px 0 9px; }
.story-card select, .select-small { max-width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; background: white; font-size: 11px; }
.mini-link { border: 0; padding: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 12px; text-align: left; }
.mini-link:hover { text-decoration: underline; }

.split-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.detail-aside { position: sticky; top: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #496074; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { border: 1px solid #cbd7de; border-radius: 9px; padding: 10px 11px; background: white; color: var(--ink); width: 100%; }
.field textarea { min-height: 85px; resize: vertical; }
.field-help { font-size: 11px; font-weight: 400; color: var(--muted); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 28, 42, .58); z-index: 10; display: grid; place-items: center; padding: 20px; }
.modal { width: min(100%, 560px); max-height: 90vh; overflow: auto; background: white; border-radius: 18px; padding: 24px; box-shadow: 0 20px 70px rgba(0,0,0,.22); }
.modal h2 { margin-bottom: 18px; }
.dialog-close { float: right; border: 0; background: #edf2f5; color: var(--ink); border-radius: 8px; width: 31px; height: 31px; font-size: 19px; }
.muted { color: var(--muted); }
.footnote { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 16px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.15); z-index: 20; }

@media (max-width: 1150px) {
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .split-detail { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 12px 16px; gap: 12px; min-width: 0; overflow: hidden; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0; }
  .brand-mark { width: 32px; height: 32px; margin: 0; font-size: 14px; }
  .brand strong { font-size: 15px; }
  .brand small, .workspace-pill, .sidebar-foot, .nav-label { display: none; }
  .nav { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; min-width: 0; scrollbar-width: thin; }
  .nav button { white-space: nowrap; width: auto; font-size: 12px; padding: 8px 10px; }
  .nav-icon { display: none; }
  .topbar { height: auto; min-height: 60px; padding: 9px 16px; }
  .content { padding-top: 25px; }
  .page-head { display: block; }
  .page-head .actions { margin-top: 17px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .prototype-tag { display: none; }
  .crumb { font-size: 11px; }
  .role-select { max-width: 125px; font-size: 11px; }
  .grid.stats { gap: 9px; }
  .stat { padding: 13px; }
  .stat-value { font-size: 27px; }
  .panel { padding: 16px; }
  .story-board { grid-template-columns: 1fr; }
  .story-day { min-height: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .row { display: block; }
  .row-actions { justify-content: flex-start; margin-top: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel, .stat, .btn { transition: box-shadow .15s ease, transform .15s ease, background .15s ease; }
  .btn:active { transform: translateY(1px); }
}

/* Identidad Joan Pradells Team: la capa visual se limita a este prototipo. */
:root {
  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  color: #D6CCC6;
  background: #000;
  color-scheme: dark;
  --ink: #D6CCC6;
  --muted: #A9A29E;
  --line: rgba(214,204,198,.18);
  --blue: #004CF1;
  --blue-light: #0B0B0B;
  --teal: #D6CCC6;
  --teal-light: #0B0B0B;
  --amber: #D6CCC6;
  --amber-light: #0B0B0B;
  --red: #D6CCC6;
  --red-light: #0B0B0B;
  --white: #FFF;
  --radius: 0;
  --display: 'Anton', 'Haettenschweiler', 'Impact', 'Arial Narrow', sans-serif;
}
body { background: #000; }
:focus-visible { outline: 2px solid #FFF; outline-offset: 3px; }
.shell { grid-template-columns: 238px minmax(0,1fr); }
.sidebar { background: #000; color: #D6CCC6; border-right: 1px solid var(--line); padding: 30px 19px 22px; gap: 30px; }
.brand { padding: 0 4px; }
.brand strong { display: block; color: #FFF; font: 400 22px/.98 var(--display); letter-spacing: .015em; }
.brand strong span, .workspace-pill em { color: var(--blue); font-style: normal; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .14em; margin-top: 8px; }
.workspace-pill { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 21px 4px 22px; background: transparent; }
.workspace-pill span { color: var(--muted); font-size: 10px; letter-spacing: .16em; margin-bottom: 11px; }
.workspace-pill strong { display: block; color: #D6CCC6; font: 400 27px/.98 var(--display); letter-spacing: .01em; }
.nav { gap: 2px; }
.nav-label { color: var(--muted); }
.nav button { border: 0; border-left: 3px solid transparent; border-radius: 0; color: #D6CCC6; padding: 11px 12px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.nav button:hover { background: #0B0B0B; color: #FFF; }
.nav button.active { background: #0B0B0B; border-left-color: var(--blue); color: #FFF; }
.sidebar-foot { color: var(--muted); padding: 0 4px; }
.topbar { min-height: 66px; height: auto; background: #000; padding: 10px clamp(18px,3vw,44px); }
.crumb { color: var(--muted); font-size: 12px; }
.crumb span { color: var(--blue); padding: 0 7px; }
.crumb strong { color: #D6CCC6; text-transform: uppercase; }
.prototype-tag { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 7px 9px; font-size: 10px; letter-spacing: .1em; }
.role-select { border-radius: 0; background: #0B0B0B; color: #FFF; font-size: 12px; }
.content { padding-top: 36px; }
.page-head { margin-bottom: 28px; }
.eyebrow { color: #D6CCC6; font-size: 10px; letter-spacing: .16em; margin-bottom: 11px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; }
h1 { color: #FFF; font-size: clamp(40px,5vw,62px); line-height: .94; margin-bottom: 15px; }
h2 { color: #FFF; font-size: 25px; line-height: 1.08; }
h3 { color: #FFF; font-family: 'Archivo',system-ui,sans-serif; letter-spacing: 0; }
.subhead { color: #D6CCC6; }
.btn { border: 1px solid #D6CCC6; background: #000; color: #FFF; border-radius: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.btn:hover { border-color: #FFF; background: #0B0B0B; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #FFF; }
.btn.primary:hover { background: #0645E5; }
.btn.danger { color: #FFF; }
.btn.small { font-size: 11px; }
.notice { padding: 13px 16px; background: #0B0B0B; border: 0; border-left: 3px solid var(--blue); border-radius: 0; color: #D6CCC6; font-size: 12px; }
.client-visual { display: flex; min-height: 178px; overflow: hidden; align-items: stretch; justify-content: space-between; background: #0B0B0B; border: 1px solid var(--line); margin-bottom: 19px; }
.client-visual-copy { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.client-visual-copy span { color: var(--muted); font-size: 10px; letter-spacing: .17em; margin-bottom: 10px; }
.client-visual-copy strong { color: #D6CCC6; display: block; font: 400 clamp(31px,3.6vw,48px)/.96 var(--display); letter-spacing: .01em; }
.client-visual-copy em { color: var(--blue); font-style: normal; }
.client-visual-copy p { color: var(--muted); font-size: 11px; letter-spacing: .05em; margin: 11px 0 0; text-transform: uppercase; }
.client-visual img { width: 178px; height: 178px; object-fit: cover; flex: none; }
.grid { gap: 13px; }
.panel, .stat { background: #0B0B0B; border-radius: 0; box-shadow: none; }
.panel-head p, .stat-note, .stat-label, .row-meta { color: var(--muted); }
.stat { border-top: 2px solid var(--blue); }
.stat-label { color: #D6CCC6; text-transform: uppercase; letter-spacing: .05em; }
.stat-value, .stat.teal .stat-value, .stat.amber .stat-value, .stat.blue .stat-value, .stat.red .stat-value { color: #FFF; font: 400 42px/1 var(--display); }
.row { border-top-color: var(--line); }
.row-title { color: #FFF; }
.chip, .chip.blue, .chip.teal, .chip.amber, .chip.red { border: 1px solid var(--line); border-radius: 0; background: #000; color: #D6CCC6; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.chip.blue { border-color: var(--blue); }
.toolbar input, .toolbar select, .story-card select, .select-small, .field input, .field select, .field textarea { border-color: var(--line); border-radius: 0; background: #000; color: #FFF; }
.day, .story-day { border-radius: 0; background: #000; }
.day.today { border-color: var(--blue); background: #000; }
.day-label strong { font: 400 28px/1 var(--display); color: #FFF; }
.calendar-item, .calendar-item.story, .calendar-item.session, .calendar-item.event, .calendar-item.task { border-radius: 0; background: #0B0B0B; border-left-color: #D6CCC6; color: #D6CCC6; }
.calendar-item { border-left-color: var(--blue); }
.story-day { background: #0B0B0B; }
.story-day h3 { font: 400 19px/1.1 var(--display); text-transform: uppercase; }
.story-card { border-radius: 0; background: #000; }
.story-card strong { color: #FFF; }
.mini-link { color: #D6CCC6; border-bottom: 1px solid #D6CCC6; padding-bottom: 3px; font-size: 11px; text-transform: uppercase; }
.mini-link:hover { color: #FFF; }
.field { color: #D6CCC6; }
.modal-backdrop { background: rgba(0,0,0,.82); }
.modal { background: #0B0B0B; border: 1px solid #D6CCC6; border-radius: 0; box-shadow: none; }
.dialog-close { border: 1px solid var(--line); background: #000; color: #FFF; border-radius: 0; }
.toast { background: #D6CCC6; color: #000; border-radius: 0; box-shadow: none; }
@media (max-width: 780px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { padding: 13px 16px 10px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand strong { font-size: 19px; }
  .nav button { border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; padding: 9px 10px; }
  .nav button.active { border-left: 0; border-bottom-color: var(--blue); }
  .topbar { min-height: 56px; }
  .content { padding-top: 27px; }
}
@media (max-width: 500px) {
  .crumb { font-size: 10px; }
  .crumb span { padding: 0 3px; }
  .stat-value, .stat.teal .stat-value, .stat.amber .stat-value, .stat.blue .stat-value, .stat.red .stat-value { font-size: 34px; }
  .client-visual { min-height: 133px; }
  .client-visual-copy { padding: 13px; }
  .client-visual-copy span { font-size: 8px; margin-bottom: 7px; }
  .client-visual-copy strong { font-size: clamp(22px,6vw,31px); }
  .client-visual-copy p { font-size: 9px; }
  .client-visual img { width: 132px; height: 132px; }
}

/* Área operativa: la identidad vive en el marco; el trabajo necesita aire y jerarquía. */
.sidebar { gap: 23px; }
.workspace-pill { padding-top: 16px; padding-bottom: 17px; }
.workspace-pill strong { font-size: 23px; }
.nav { gap: 0; }
.nav-label { margin: 17px 12px 5px; color: #A9A29E; }
.nav-label:first-child { margin-top: 0; }
.nav button { padding: 9px 12px; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.nav button.active { font-weight: 700; }
.main {
  background: #D6CCC6;
  color: #161413;
  color-scheme: light;
  --ink: #161413;
  --muted: #5D5551;
  --line: rgba(22,20,19,.16);
}
.topbar { background: #E9E3DF; }
.crumb strong { color: #161413; }
.crumb span { color: #004CF1; }
.prototype-tag { color: #5D5551; }
.role-select { background: #F8F5F2; color: #161413; border-color: var(--line); }
.content { max-width: 1330px; padding-top: 34px; }
.page-head { align-items: flex-start; margin-bottom: 19px; }
.eyebrow { color: #5D5551; }
h1 { color: #161413; font-size: clamp(36px,4vw,48px); margin-bottom: 12px; }
.main h2 { color: #161413; font-size: 23px; }
.main h3 { color: #161413; }
.subhead { color: #514B47; }
.page-guide { display: flex; gap: 18px; align-items: baseline; padding: 13px 17px; margin-bottom: 20px; background: #F8F5F2; border-left: 3px solid #004CF1; line-height: 1.45; }
.page-guide strong { color: #161413; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.page-guide span { color: #514B47; font-size: 13px; }
.btn { background: transparent; border-color: #161413; color: #161413; text-transform: none; letter-spacing: 0; font-size: 13px; }
.btn:hover { background: #F8F5F2; border-color: #161413; }
.btn.primary { color: #FFF; }
.btn.danger { color: #161413; }
.mini-link { color: #161413; border-bottom-color: #161413; text-transform: none; font-size: 12px; }
.mini-link:hover { color: #004CF1; }
.panel, .stat { background: #F8F5F2; border-color: var(--line); color: #161413; }
.panel { padding: 22px; }
.panel-head p, .stat-label, .stat-note, .row-meta, .footnote, .muted { color: #5D5551; }
.row { border-top-color: var(--line); }
.row-title { color: #161413; }
.chip, .chip.blue, .chip.teal, .chip.amber, .chip.red { background: #F8F5F2; color: #3D3835; border-color: var(--line); text-transform: none; }
.chip.blue { border-color: #004CF1; }
.empty { color: #5D5551; }
.home-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(285px,.8fr); gap: 15px; align-items: start; }
.focus-panel { border-top: 3px solid #004CF1; }
.focus-panel .panel-head { margin-bottom: 7px; }
.focus-panel .eyebrow { margin-bottom: 6px; }
.focus-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 17px 0; }
.focus-row:first-of-type { border-top: 0; }
.focus-row strong { display: block; color: #161413; font-size: 15px; line-height: 1.35; }
.focus-row span { display: block; color: #5D5551; font-size: 12px; margin-top: 5px; }
.focus-row .btn { white-space: nowrap; }
.home-agenda .row { padding: 12px 0; }
.home-agenda .row-title { font-size: 13px; }
.summary-line { display: flex; flex-wrap: wrap; gap: 0; margin-top: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-line > div { display: flex; align-items: baseline; gap: 10px; min-width: 170px; padding: 13px 22px 13px 0; margin-right: 22px; }
.summary-line strong { font: 400 26px/1 var(--display); color: #161413; }
.summary-line span { color: #514B47; font-size: 12px; }
.day { min-height: 160px; background: #FFF; border-color: var(--line); }
.day.today { background: #FFF; border-color: #004CF1; }
.day-label strong { color: #161413; }
.calendar-item, .calendar-item.story, .calendar-item.session, .calendar-item.event, .calendar-item.task { background: #F3EFEC; color: #161413; border-left-color: #7E746E; }
.calendar-item.piece { border-left-color: #004CF1; }
.story-day { background: #F8F5F2; }
.story-card { background: #FFF; }
.story-card strong { color: #161413; }
.story-card p { color: #5D5551; }
.story-day h3 { color: #161413; }
.story-card select, .select-small, .toolbar input, .toolbar select, .field input, .field select, .field textarea { background: #FFF; color: #161413; border-color: rgba(22,20,19,.25); }
.field { color: #3D3835; }
.split-detail { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); }
.piece-row.selected { background: #EAE3DE; box-shadow: inset 3px 0 #004CF1; padding-left: 12px; padding-right: 10px; }
.piece-row .row-actions { flex: none; }
.detail-aside { scroll-margin-top: 20px; }
.detail-aside .subhead { color: #383330; }
.modal { background: #F8F5F2; color: #161413; color-scheme: light; border-color: #161413; }
.modal h2 { color: #161413; }
.dialog-close { background: #FFF; color: #161413; border-color: var(--line); }
.account-name { color: #3D3835; font-size: 12px; font-weight: 600; white-space: nowrap; }
.users-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 16px; align-items: start; }
.user-form, .access-form { display: grid; gap: 14px; }
.user-form .btn { justify-self: start; }
.password-field { min-width: 0; }
.password-actions { display: flex; gap: 12px; }
.password-actions button { border: 0; padding: 2px 0; background: none; color: #2257A5; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.password-actions button:focus-visible { outline: 2px solid #2257A5; outline-offset: 3px; }
.field-help { color: #5D5551; font-size: 12px; line-height: 1.45; }
.access-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #171716 url('assets/joan-pradells-coaching-keyvisual.jpg') center/cover no-repeat; }
.access-panel { width: min(100%, 490px); padding: clamp(25px,5vw,46px); background: #F8F5F2; border-top: 5px solid #004CF1; box-shadow: 0 22px 80px rgba(0,0,0,.45); color: #161413; }
.access-brand { font: 400 27px/1 Anton,Impact,sans-serif; letter-spacing: .01em; margin-bottom: 34px; }
.access-brand span { color: #004CF1; }
.access-panel h1 { font-size: clamp(33px,7vw,48px); margin-bottom: 13px; }
.access-panel .subhead { margin-bottom: 28px; }
.access-form .btn { margin-top: 8px; }
.access-note { margin: 28px 0 0; color: #5D5551; font-size: 11px; line-height: 1.5; }
@media (max-width: 1150px) {
  .home-layout, .split-detail, .users-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 780px) {
  .sidebar { gap: 9px; }
  .nav button { font-size: 12px; padding: 9px 10px; }
  .topbar { background: #E9E3DF; }
  .content { padding-top: 26px; }
  .page-guide { display: block; }
  .page-guide strong { display: block; margin-bottom: 5px; }
}
@media (max-width: 500px) {
  .sidebar { overflow: visible; }
  .nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; overflow: visible; }
  .nav button { width: 100%; min-height: 38px; padding: 6px 3px; white-space: normal; text-align: center; font-size: 11px; line-height: 1.15; }
  .focus-row { align-items: flex-start; }
  .focus-row strong { font-size: 14px; }
  .focus-row .btn { min-height: 34px; }
  .summary-line > div { min-width: 140px; padding: 10px 0; margin-right: 15px; }
  .panel { padding: 17px; }
  .account-name { display: none; }
}

/* Base de componentes compartidos. La marca común se define al final. */
:root { --theme-accent:#004CF1; --theme-sidebar:#000000; --theme-canvas:#D6CCC6; --theme-surface:#F8F5F2; --theme-text:#161413; --theme-on-accent:#FFFFFF; --theme-sidebar-text:#FFFFFF; --theme-sidebar-muted:#D6D1CE; --theme-display:Anton,Impact,sans-serif; --theme-body:Archivo,Arial,sans-serif; --display:var(--theme-display); --blue:var(--theme-accent); }
h1, h2, .story-day h3 { text-transform:var(--theme-heading-case,uppercase); }
.panel, .stat, .btn, .chip, .day, .story-day, .story-card, .calendar-item, .page-guide, .workspace-switch-label select, .brand-space, .modal, .field input, .field select, .field textarea { border-radius:var(--theme-radius,0px); }
body, button, input, select, textarea { font-family:var(--theme-body); }
body { background:var(--theme-sidebar); }
:focus-visible { outline-color:var(--theme-accent); }
.sidebar { background:var(--theme-sidebar); color:var(--theme-sidebar-text); border-color:color-mix(in srgb,var(--theme-sidebar-text) 20%,transparent); }
.brand strong, .workspace-pill strong { color:var(--theme-sidebar-text); font-family:var(--theme-display); }
.brand strong span { color:var(--theme-accent); }
.brand small, .workspace-pill span, .workspace-pill small, .nav-label, .sidebar-foot { color:var(--theme-sidebar-muted); }
.workspace-pill { border-color:color-mix(in srgb,var(--theme-sidebar-text) 22%,transparent); }
.workspace-pill small { display:block; margin-top:9px; font-size:11px; line-height:1.3; }
.nav button { color:var(--theme-sidebar-muted); }
.nav button:hover, .nav button.active { color:var(--theme-sidebar-text); background:color-mix(in srgb,var(--theme-sidebar-text) 9%,transparent); }
.nav button.active { border-color:var(--theme-accent); }
.main { background:var(--theme-canvas); color:var(--theme-text); color-scheme:var(--theme-color-scheme,light); --ink:var(--theme-text); --muted:color-mix(in srgb,var(--theme-text) 75%,var(--theme-canvas)); --line:color-mix(in srgb,var(--theme-text) 18%,transparent); }
.topbar { background:color-mix(in srgb,var(--theme-canvas) 75%,var(--theme-surface)); }
.crumb, .crumb strong, .prototype-tag, .account-name { color:var(--theme-text); }
.crumb span { color:var(--theme-accent); }
.workspace-switch-label { display:flex; align-items:center; gap:7px; color:var(--theme-text); font-size:11px; font-weight:700; }
.workspace-switch-label select { max-width:200px; padding:8px 10px; border:1px solid var(--line); background:var(--theme-surface); color:var(--theme-text); font-size:12px; }
.eyebrow, h1, .main h2, .main h3, .row-title, .focus-row strong, .summary-line strong, .day-label strong, .story-card strong, .story-day h3 { color:var(--theme-text); }
h1, h2, .brand strong, .workspace-pill strong, .access-brand, .summary-line strong, .day-label strong, .story-day h3 { font-family:var(--theme-display); }
h3 { font-family:var(--theme-body); }
.subhead, .page-guide span, .panel-head p, .stat-label, .stat-note, .row-meta, .footnote, .muted, .empty, .focus-row span, .summary-line span, .story-card p, .field-help { color:color-mix(in srgb,var(--theme-text) 78%,var(--theme-surface)); }
.page-guide, .panel, .stat, .story-day, .chip, .chip.blue, .chip.teal, .chip.amber, .chip.red, .modal { background:var(--theme-surface); color:var(--theme-text); border-color:var(--line); }
.page-guide { border-left-color:var(--theme-accent); }
.page-guide strong, .field, .account-name { color:var(--theme-text); }
.btn { color:var(--theme-text); border-color:var(--theme-text); }
.btn:hover { background:var(--theme-surface); border-color:var(--theme-text); }
.btn.primary { background:var(--theme-accent); border-color:var(--theme-accent); color:var(--theme-on-accent); }
.btn.primary:hover { background:color-mix(in srgb,var(--theme-accent) 85%,var(--theme-sidebar)); color:var(--theme-on-accent); }
.mini-link { color:var(--theme-text); border-bottom-color:var(--theme-text); }
.mini-link:hover { color:var(--theme-accent); }
.focus-panel, .stat { border-top-color:var(--theme-accent); }
.day, .day.today, .story-card, .dialog-close, .story-card select, .select-small, .toolbar input, .toolbar select, .field input, .field select, .field textarea { background:var(--theme-surface); color:var(--theme-text); border-color:var(--line); }
.day.today, .chip.blue { border-color:var(--theme-accent); }
.calendar-item, .calendar-item.story, .calendar-item.session, .calendar-item.event, .calendar-item.task { background:color-mix(in srgb,var(--theme-canvas) 65%,var(--theme-surface)); color:var(--theme-text); border-left-color:color-mix(in srgb,var(--theme-text) 45%,var(--theme-surface)); }
.calendar-item.piece { border-left-color:var(--theme-accent); }
.piece-row.selected { background:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-surface)); box-shadow:inset 3px 0 var(--theme-accent); }
.modal { color-scheme:var(--theme-color-scheme,light); }
.modal h2, .modal h3, .detail-aside .subhead { color:var(--theme-text); }
.access-shell { background:#111722; }
.access-panel { background:#F8F5F2; border-top-color:#2257A5; }
.access-panel h1 { color:#161413; }
.access-brand { font-family:Montserrat,Arial,sans-serif; }
.access-brand span { color:#2257A5; }
.access-panel .field, .access-panel .subhead, .access-note { color:#514B47; }
.access-panel .field input { background:#FFFFFF; color:#161413; }
.brand-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:16px; align-items:start; }
.brand-side { display:grid; gap:16px; }
.brand-colors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.brand-fonts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.brand-color span { display:flex; align-items:center; gap:9px; margin-top:7px; }
.brand-color input[type=color] { width:54px; height:38px; padding:2px; cursor:pointer; }
.brand-color strong { font-size:12px; font-weight:600; }
.brand-space-list { display:grid; gap:8px; }
.brand-space { display:flex; align-items:center; gap:11px; width:100%; border:1px solid var(--line); padding:11px; background:transparent; color:var(--theme-text); text-align:left; }
.brand-space.selected { border-color:var(--theme-accent); background:color-mix(in srgb,var(--theme-accent) 8%,var(--theme-surface)); }
.brand-space i { width:10px; height:42px; flex:none; }
.brand-space span, .brand-space strong, .brand-space small { display:block; min-width:0; }
.brand-space strong { font-size:13px; }
.brand-space small { color:color-mix(in srgb,var(--theme-text) 70%,var(--theme-surface)); font-size:11px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:1150px) { .brand-layout { grid-template-columns:1fr; } }
@media (max-width:780px) { .topbar { background:color-mix(in srgb,var(--theme-canvas) 75%,var(--theme-surface)); } .top-actions { flex-wrap:wrap; justify-content:flex-end; } }
@media (max-width:500px) { .brand-colors, .brand-fonts { grid-template-columns:1fr; } .topbar { flex-wrap:wrap; gap:5px; padding:10px 16px; } .top-actions { width:100%; justify-content:space-between; } .prototype-tag { display:none; } .workspace-switch-label { font-size:0; } .workspace-switch-label select { max-width:190px; font-size:11px; } }

/* Operación manual: componentes de calendario y fichas. */
.calendar-tools { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-block:24px; }
.calendar-tools .field { flex:1 1 130px; }
.calendar-tools input, .calendar-tools select { min-height:42px; }
.calendar-heading { margin-block:24px 16px; text-transform:capitalize; }
.manual-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-block-start:1px solid var(--line); border-inline-start:1px solid var(--line); }
.calendar-date { min-width:0; min-height:140px; padding:12px; border-inline-end:1px solid var(--line); border-block-end:1px solid var(--line); background:var(--theme-surface); }
.calendar-date h3 { font:600 13px/1.4 var(--theme-body); margin:0 0 12px; text-transform:none; }
.calendar-date.is-today h3 { text-decoration:underline; text-underline-offset:5px; }
.calendar-date.outside-month { background:var(--theme-canvas); }
.calendar-entry { display:block; width:100%; text-align:start; border:1px solid var(--line); background:var(--theme-canvas); color:var(--theme-text); padding:9px; margin-block:8px; overflow-wrap:anywhere; }
.calendar-entry small, .calendar-entry strong { display:block; line-height:1.4; }
.calendar-entry small { font-size:11px; margin-bottom:4px; }
.calendar-entry strong { font-size:13px; font-weight:600; }
.manual-calendar.day { grid-template-columns:1fr; }
.record-details { margin-block:20px; }
.record-details div { margin-block:18px; }
.record-details dt { font-size:13px; font-weight:700; margin-bottom:5px; }
.record-details dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.check-line { display:flex; gap:10px; align-items:center; padding-block:8px; font-size:14px; }
.check-line input { width:18px; height:18px; flex-shrink:0; }
.full { grid-column:1/-1; }
fieldset { border:1px solid var(--line); padding:14px; min-width:0; margin:0; }
legend { font-size:14px; font-weight:700; }
.recording-line { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-block:14px; border-bottom:1px solid var(--line); }
.recording-line .field { min-width:150px; }
.script-text { white-space:pre-wrap; font:inherit; overflow-wrap:anywhere; padding:12px; background:var(--theme-canvas); }
.client-piece-dates { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.client-piece-dates div { margin-block:0; }
.client-instructions { white-space:pre-wrap; overflow-wrap:anywhere; }
.client-piece-actions { display:flex; flex-wrap:wrap; gap:8px; margin-block:20px; }
.client-piece .btn, .recording-line .btn { min-height:44px; }
.recording-line > div { min-width:0; }
.recording-line strong { display:block; overflow-wrap:anywhere; }
.modal h3 { margin-block:28px 12px; font-size:20px; }
.modal .btn { margin:6px 6px 6px 0; }
.modal .field { margin-block:8px; }
.modal .field-grid .field { margin-block:0; }
.modal hr { border:0; border-top:1px solid var(--line); margin-block:24px; }
.modal p, .panel p { line-height:1.6; }
.form-error { padding:12px; border:1px solid currentColor; color:#9E2424; background:#FFF4F1; }
.form-error[hidden] { display:none; }
.toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-block:20px; }
.toolbar .field { flex:1; min-width:180px; }
.workspace-drive { margin-bottom:18px; }
.comments p { white-space:pre-wrap; padding-block:12px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
summary { cursor:pointer; font-weight:600; padding-block:8px; }
.row-main, .row-actions, .brand-space span { min-width:0; }
.row-main, .row-meta, .row-title, .subhead, .account-name { overflow-wrap:anywhere; }
.row-actions { flex-wrap:wrap; }
.field input, .field select, .field textarea { min-height:44px; font-size:16px; }
.btn { min-height:44px; }
.btn.small { min-height:36px; }
.modal { width:min(100%,700px); }
.modal .form-actions { position:sticky; bottom:-24px; background:var(--theme-surface); padding-block:14px; border-top:1px solid var(--line); margin-top:24px; }
.password-actions button { min-height:36px; }

@media(max-width:600px) {
  .calendar-date { min-height:80px; }
  .calendar-tools > .btn { flex:1 1 auto; }
  .modal-backdrop { padding:10px; }
  .modal { max-height:94dvh; padding:20px; }
  .row { align-items:start; flex-wrap:wrap; }
  .row-actions { width:100%; justify-content:flex-start; }
  .recording-line { flex-direction:column; align-items:stretch; }
  .toolbar .field { flex-basis:100%; }
  .top-actions .account-name { max-width:180px; white-space:normal; }
}
.navigation-menu summary { display:none; }
@media(max-width:780px) {
  .navigation-menu { width:100%; }
  .navigation-menu summary { display:list-item; padding:12px 0; font-size:14px; color:var(--theme-sidebar-text); }
  .sidebar { gap:8px; }
  .sidebar .brand { padding-top:4px; }
}
@media(max-width:780px) { .shell { grid-template-rows:auto 1fr; } }

/* Mes y semana conservan siete columnas, también en pantallas pequeñas. */
.calendar-views { display:flex; gap:0; flex-wrap:wrap; }
.calendar-views .btn { border-radius:0; margin-inline-end:-1px; }
.calendar-views .btn[aria-pressed=true] { background:var(--theme-accent); color:var(--theme-on-accent); border-color:var(--theme-accent); position:relative; }
.calendar-views .btn:first-child { border-start-start-radius:var(--theme-radius); border-end-start-radius:var(--theme-radius); }
.calendar-views .btn:last-child { border-start-end-radius:var(--theme-radius); border-end-end-radius:var(--theme-radius); }
.calendar-scroll { overflow-x:auto; max-width:100%; overscroll-behavior-inline:contain; }
.calendar-grid-shell { display:block; width:100%; }
.calendar-grid-shell.month, .calendar-grid-shell.week { min-width:840px; }
.manual-calendar.week { grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; }
.calendar-weekdays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); background:var(--theme-surface); border:1px solid var(--line); border-bottom:0; }
.calendar-weekdays span { padding:12px; font-size:13px; font-weight:700; }
.manual-calendar.week .calendar-date { min-height:340px; }
.calendar-date.outside-month h3 { opacity:.65; }
.calendar-scroll-help { display:none; font-size:14px; line-height:1.5; }
@media(max-width:1100px) { .calendar-scroll-help { display:block; } }
@media(max-width:600px) { .calendar-tools .calendar-views { flex:1 1 100%; } .calendar-views .btn { flex:1; min-height:44px; } }

.calendar-entry[draggable=true] { cursor:grab; }
.calendar-entry.is-dragging { opacity:.45; cursor:grabbing; }
.calendar-date.drop-target { outline:2px solid var(--theme-accent); outline-offset:-3px; background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-surface)); }
.calendar-move { display:block; margin-block:-3px 10px; padding:5px 2px; background:transparent; border:0; color:var(--theme-text); font:600 12px var(--theme-body); text-decoration:underline; text-underline-offset:3px; cursor:pointer; min-height:32px; }
.calendar-scroll[aria-busy=true] { opacity:.7; pointer-events:none; }

.calendar-add { display:block; background:transparent; border:1px dashed var(--line); color:var(--theme-text); padding:8px 10px; margin-block:8px 12px; font:600 13px var(--theme-body); min-height:36px; cursor:pointer; border-radius:var(--theme-radius); }
.calendar-date .calendar-add { width:100%; text-align:start; }
.calendar-add:hover { border-color:var(--theme-accent); background:var(--theme-canvas); }
.calendar-create-options { display:grid; gap:10px; margin-block:20px; }
.calendar-create-option { display:block; width:100%; padding:14px; text-align:start; background:var(--theme-surface); color:var(--theme-text); border:1px solid var(--line); cursor:pointer; border-radius:var(--theme-radius); }
.calendar-create-option:hover { border-color:var(--theme-accent); background:var(--theme-canvas); }
.calendar-create-option strong, .calendar-create-option span { display:block; }
.calendar-create-option strong { font:700 16px var(--theme-body); margin-bottom:5px; }
.calendar-create-option span { font:400 14px/1.5 var(--theme-body); }

/* Patricia Vanalo OS · identidad común, operación clara sobre fondos neutros.
   Fuente: Tarjeta PATRICIA VANALO (Canva). No depende del cliente seleccionado. */
:root {
  --theme-accent:#950A1B; --theme-sidebar:#950A1B; --theme-blush:#EFC1B9;
  --theme-canvas:#F7F7F7; --theme-surface:#FFFFFF; --theme-text:#282124;
  --theme-on-accent:#FFFFFF; --theme-sidebar-text:#FFFFFF; --theme-sidebar-muted:#F8E7E3;
  --theme-display:Poppins,Arial,sans-serif; --theme-body:'Red Hat Display',Arial,sans-serif;
  --theme-radius:12px; --theme-heading-case:none; --theme-color-scheme:light;
  --ink:var(--theme-text); --muted:#625A5E; --line:#D5D0D2;
  --blue:var(--theme-accent); --blue-light:#FBEDEB;
  --teal:#176448; --teal-light:#EDF6F0; --amber:#79500C; --amber-light:#FFF5DF;
  --red:#950A1B; --red-light:#FBEDEB;
  color:var(--theme-text); background:var(--theme-canvas);
}
body { background:var(--theme-canvas); color:var(--theme-text); font:400 15px/1.5 var(--theme-body); }
h1,h2,h3 { text-transform:none; letter-spacing:-.025em; }
h1 { font:700 clamp(28px,3vw,38px)/1.22 var(--theme-display); margin:0 0 12px; }
h2,.main h2 { font:600 21px/1.35 var(--theme-display); }
h3 { font:700 17px/1.4 var(--theme-body); }
.shell { grid-template-columns:250px minmax(0,1fr); }
.sidebar { gap:25px; border:0; padding:28px 18px 22px; }
.brand { padding:0 12px; }
.brand strong,.access-brand { font:700 30px/1.08 var(--theme-display); letter-spacing:-.035em; color:var(--theme-blush); }
.brand strong span { color:var(--theme-blush); font:600 12px var(--theme-display); border:1px solid var(--theme-blush); border-radius:5px; padding:3px 5px; vertical-align:middle; letter-spacing:0; }
.brand small { color:var(--theme-sidebar-muted); text-transform:none; letter-spacing:.02em; font-size:12px; margin-top:12px; }
.workspace-pill { border:1px solid #CA7E89; background:#830817; border-radius:10px; padding:13px; }
.workspace-pill span { font-size:10px; letter-spacing:.08em; color:var(--theme-sidebar-muted); }
.workspace-pill strong { font:600 15px/1.4 var(--theme-body); color:white; letter-spacing:0; overflow-wrap:anywhere; }
.nav { gap:3px; }
.nav button { border:0; border-radius:8px; color:var(--theme-sidebar-muted); text-transform:none; letter-spacing:0; font-size:14px; font-weight:500; min-height:40px; padding:9px 12px; }
.nav button:hover { background:#830817; color:white; }
.nav button.active { background:var(--theme-blush); color:#650715; border:0; font-weight:700; }
.sidebar-foot { color:var(--theme-sidebar-muted); padding:0 12px; }
.topbar { background:white; border-bottom:1px solid var(--line); gap:14px; }
.crumb strong { text-transform:none; }
.top-actions { flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.prototype-tag { display:none; }
.content { padding-top:32px; }
.eyebrow { text-transform:none; letter-spacing:0; color:#625A5E; font:600 13px/1.4 var(--theme-body); margin-bottom:8px; }
.subhead { font-size:15px; line-height:1.6; max-width:70ch; }
.page-head { align-items:center; margin-bottom:26px; }
.btn { background:white; border:1px solid #AAA1A6; color:var(--theme-text); font:600 14px/1.4 var(--theme-body); border-radius:8px; min-height:44px; padding:10px 15px; }
.btn:hover { background:#FBEDEB; border-color:var(--theme-accent); }
.btn.primary:hover { background:#790817; border-color:#790817; }
.btn.danger { color:#950A1B; border-color:#CA7E89; }
.btn.small { font-size:13px; border-radius:7px; }
.panel,.stat,.modal { border-radius:12px; box-shadow:none; }
.panel { padding:24px; }
.panel-head { align-items:start; }
.page-guide { border:1px solid var(--line); border-radius:10px; gap:12px; }
.page-guide strong { color:var(--theme-accent); letter-spacing:0; font-size:13px; }
.focus-panel,.stat { border-top:1px solid var(--line); }
.summary-line strong,.stat-value { font:600 28px/1.25 var(--theme-display); color:var(--theme-text); }
.notice { background:#FBEDEB; color:#650715; border:1px solid #E4B9B6; border-radius:8px; font-size:13px; }
.toast { background:#282124; color:white; border-radius:10px; }
.chip,.chip.blue { background:#FBEDEB; color:#790817; border-color:#E4B9B6; border-radius:6px; font-size:12px; letter-spacing:0; }
.chip.teal { background:var(--teal-light); color:var(--teal); border-color:#A4CDB6; }
.chip.amber { background:var(--amber-light); color:var(--amber); border-color:#D8C18E; }
.chip.red { background:#FBEDEB; color:#950A1B; border-color:#E4B9B6; }
.field { color:var(--theme-text); font-size:14px; }
.field input,.field select,.field textarea,.toolbar input,.toolbar select { border-color:#AAA1A6; background:white; color:var(--theme-text); font-weight:400; border-radius:8px; }
input::placeholder,textarea::placeholder { color:#6C6268; opacity:1; }
.password-actions button { color:var(--theme-accent); }
.password-actions button:focus-visible { outline-color:var(--theme-accent); }
:focus-visible { outline:3px solid var(--theme-accent); outline-offset:3px; }
.sidebar :focus-visible { outline-color:var(--theme-blush); }
.calendar-date { background:white; }
.calendar-date.is-today h3 { color:#950A1B; font-weight:700; }
.calendar-date.outside-month { background:#F2F0F1; }
.calendar-entry { background:#FAF7F7; border-color:#D5D0D2; border-radius:7px; }
.calendar-entry:hover { border-color:var(--theme-accent); background:#FBEDEB; }
.calendar-entry small { color:#625A5E; }
.calendar-item { border-left-width:1px; }
.calendar-add { border-color:#AAA1A6; border-radius:7px; }
.story-day h3,.day-label strong { font:600 18px/1.4 var(--theme-display); letter-spacing:0; text-transform:none; }
.brand-layout { grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr); }
.brand-space { border-radius:8px; padding:14px; }
.brand-space strong { font-size:15px; }
.brand-space small { font-size:13px; }
.brand-space.selected { background:#FBEDEB; }
.access-shell { background:var(--theme-accent); }
.access-panel { background:white; color:var(--theme-text); border:0; border-radius:16px; box-shadow:none; width:min(100%,510px); }
.access-brand { color:var(--theme-accent); font-size:34px; margin-bottom:30px; }
.access-brand span { color:var(--theme-accent); font:600 14px var(--theme-display); }
.access-panel h1 { color:var(--theme-text); font-size:28px; line-height:1.25; }
.access-panel .field,.access-panel .subhead,.access-note { color:#625A5E; }
.access-note { font-size:13px; }
@media(max-width:1150px) { .brand-layout { grid-template-columns:1fr; } }
@media(max-width:780px) {
  .shell { grid-template-columns:1fr; }
  .sidebar { padding:18px 20px 12px; gap:12px; }
  .brand strong { font-size:25px; }
  .brand strong br { display:none; }
  .brand strong br::after { content:' '; }
  .brand small,.sidebar-foot { display:none; }
  .workspace-pill { padding:9px 12px; }
  .workspace-pill span { margin-bottom:2px; }
  .topbar { padding:12px 20px; }
  .content { padding:24px 20px 64px; }
  .navigation-menu summary { padding:8px 0; }
  .nav button { font-size:13px; }
}
@media(max-width:500px) {
  .page-head { align-items:flex-start; flex-direction:column; }
  .page-head .actions { width:100%; }
  .panel { padding:18px; }
  .top-actions { justify-content:flex-start; width:100%; }
  .topbar { gap:10px; }
  .brand strong br { display:block; }
  .workspace-switch-label { flex:1; }
  .workspace-switch-label select { max-width:100%; width:100%; }
  .nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .nav button { padding:8px 5px; min-height:44px; }
}
.access-links { display:grid; gap:12px; margin-top:24px; justify-items:start; }
.access-links button { border:0; background:transparent; font:600 14px var(--theme-body); color:var(--theme-accent); min-height:44px; text-align:start; }
.panel > h2 + .user-form, .panel > p + .user-form { margin-top:20px; }

/* Controles de consulta y revisión utilizables con el pulgar. */
.btn.small { min-height:44px; }
a.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; max-width:100%; overflow-wrap:anywhere; }

/* Planificación manual: filtros y bloques editoriales. */
.calendar-advanced { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-block:16px 12px; }
.calendar-advanced .field { flex:1 1 180px; min-width:0; }
.calendar-result-count { color:var(--muted); font-size:14px; }
.template-block { border:1px solid var(--line); border-radius:12px; padding:20px; margin-block:24px; min-width:0; }
.template-block legend { font-weight:700; padding-inline:8px; }
.template-preview { margin-block:20px; }
.template-preview .row { gap:12px; }
@media(max-width:600px) { .calendar-advanced { display:grid; grid-template-columns:1fr; } .template-block { padding:14px; } }

/* Guía por rol: misma identidad y controles de la aplicación. */
.guide-page{max-width:880px}.guide-intro{max-width:68ch;line-height:1.65}.guide-progress{margin:28px 0 12px;font-weight:600}.guide-steps{display:flex;flex-wrap:wrap;gap:8px 24px;padding-left:24px;color:#625b5d;font-size:13px}.guide-steps li[aria-current]{color:#950A1B;font-weight:700}.guide-points{padding:24px 24px 24px 40px;margin:24px 0;background:#fff;border:1px solid #ddd6d6;border-radius:12px;line-height:1.7}.guide-points li+li{margin-top:10px}.guide-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.guide-actions .btn{min-height:44px}@media(max-width:600px){.guide-steps{display:block}.guide-steps li{margin:8px 0}.guide-actions .btn{width:100%}}

.guide-outline{margin:12px 0 24px}.guide-outline summary{min-height:44px;padding:12px 0;cursor:pointer}
