@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: #f5f0e6;
  --paper-soft: #fbf8f2;
  --paper-strong: #fffdf9;
  --ink: #161f2c;
  --ink-soft: #586171;
  --line: rgba(41, 53, 73, 0.12);
  --line-strong: rgba(41, 53, 73, 0.22);
  --navy: #18253d;
  --navy-soft: #223656;
  --navy-muted: #9db0cf;
  --copper: #b14e2f;
  --copper-deep: #8d351d;
  --gold: #c89531;
  --green: #2f7d63;
  --warning: #ce7d2d;
  --danger: #b5483d;
  --qdt: #0b63f6;
  --tourhebdo: #c8102e;
  --busetcar: #004c97;
  --surface-shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
  --surface-shadow-strong: 0 24px 90px rgba(15, 22, 34, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar-width: 304px;
  font-family: "IBM Plex Sans", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 149, 49, 0.14), transparent 22%),
    radial-gradient(circle at 85% 18%, rgba(177, 78, 47, 0.08), transparent 18%),
    linear-gradient(180deg, #f2eadc 0%, #f8f4eb 20%, #f4f6f8 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 100% 44px, 44px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 92%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  gap: 28px;
  padding: 22px 22px 22px 0;
}

.sidebar {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: calc(100vh - 44px);
  margin-left: 22px;
  padding: 24px 20px 20px;
  border-radius: 0 28px 28px 0;
  background:
    radial-gradient(circle at top right, rgba(200, 149, 49, 0.28), transparent 26%),
    linear-gradient(180deg, #1c2942 0%, #162238 58%, #101828 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 16px 0 50px rgba(9, 14, 24, 0.18);
  color: #f6f8ff;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 40%);
}

.brand,
.nav,
.sidebar-foot,
.sidebar-note {
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffcf6b, #d85d3e);
  box-shadow: 0 0 0 7px rgba(255, 207, 107, 0.12);
}

.brand strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand p,
.sidebar-note,
.nav-label,
.sidebar-foot p {
  margin: 0;
  color: rgba(246, 248, 255, 0.72);
}

.sidebar-note {
  margin-bottom: 20px;
  line-height: 1.55;
  font-size: 0.92rem;
}

.nav {
  display: grid;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-label {
  padding-left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.045));
  color: #f6f8ff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover,
.nav a.active {
  transform: translateX(3px);
  border-color: rgba(255, 208, 109, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.badge-mini {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 208, 109, 0.14);
  color: #ffe6b7;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: center;
}

.sidebar-foot {
  margin-top: 24px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-foot strong {
  display: block;
  margin-bottom: 8px;
  color: #fff2d0;
}

.page {
  padding: 2px 6px 30px 0;
  display: grid;
  gap: 22px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  padding: 34px 34px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(24, 37, 61, 0.12);
  background:
    linear-gradient(130deg, rgba(255, 253, 248, 0.96), rgba(255, 249, 240, 0.92) 50%, rgba(246, 241, 231, 0.9) 100%);
  box-shadow: var(--surface-shadow-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(200, 149, 49, 0.14), transparent 22%),
    linear-gradient(90deg, transparent 0%, transparent 58%, rgba(24, 37, 61, 0.04) 58%, rgba(24, 37, 61, 0.04) 59%, transparent 59%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1,
.panel h2,
.panel h3,
.section-title,
.stat-card strong,
.preview-title,
.directory-card h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 13ch;
  font-size: clamp(2.3rem, 4vw, 4.25rem);
  line-height: 0.94;
}

.hero p,
.lead,
.muted,
.field-help,
.responsive-note {
  color: var(--ink-soft);
}

.hero .lead {
  max-width: 70ch;
  margin: 0;
  line-height: 1.65;
  font-size: 1.03rem;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
}

.hero-actions,
.hero-kpis,
.actions,
.inline-actions,
.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions,
.hero-kpis {
  justify-content: flex-start;
}

.pill,
.tag-site,
.status-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill {
  padding: 8px 13px;
  color: var(--ink-soft);
  border: 1px solid rgba(24, 37, 61, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pill strong {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  box-shadow: 0 12px 30px rgba(177, 78, 47, 0.24);
}

.btn.secondary {
  color: #f7f9ff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 12px 28px rgba(24, 37, 61, 0.18);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(24, 37, 61, 0.12);
}

.btn-compact {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 37, 61, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(253, 250, 243, 0.94));
  box-shadow: var(--surface-shadow);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 78px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

.panel-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.metric-grid,
.cards-grid,
.two-column,
.three-column,
.quad-grid,
.segment-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quad-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.story-card,
.segment-card,
.list-card,
.mini-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 232, 0.82));
}

.stat-card::after,
.story-card::after,
.segment-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 49, 0.12), transparent 68%);
}

.stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(2rem, 2.5vw, 2.9rem);
  line-height: 0.94;
}

.stat-card .trend {
  margin: 0 0 8px;
  color: var(--green);
  font-weight: 700;
}

.stack,
.timeline,
.directory,
.check-grid,
.list,
.check-list,
.keyword-list {
  display: grid;
  gap: 14px;
}

.list,
.check-list,
.keyword-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li,
.check-list li,
.timeline-item,
.directory-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.timeline-item,
.directory-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.timeline-item::before,
.directory-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--copper));
}

.timeline-item > * ,
.directory-card > * {
  position: relative;
  z-index: 1;
}

.timeline-date {
  min-width: 150px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.directory-card h3 {
  margin: 10px 0 8px;
  font-size: 1.24rem;
  line-height: 1.05;
}

.directory-card p {
  margin: 0;
}

.directory-meta,
.directory-footer,
.item-row,
.site-row,
.editorial-row,
.newsletter-item,
.event-item,
.contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.directory-footer {
  justify-content: space-between;
  margin-top: 14px;
}

.bullet-divider {
  color: rgba(88, 97, 113, 0.55);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(24, 37, 61, 0.08);
  vertical-align: top;
}

.table th {
  background: rgba(24, 37, 61, 0.03);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.54);
}

.table td strong {
  display: block;
  margin-bottom: 4px;
}

.tag-site,
.status-chip,
.tag-chip {
  padding: 7px 11px;
}

.tag-site.qdt,
.site-preview.qdt .preview-badge {
  background: rgba(11, 99, 246, 0.12);
  color: var(--qdt);
}

.tag-site.tourhebdo,
.site-preview.tourhebdo .preview-badge {
  background: rgba(31, 53, 87, 0.12);
  color: var(--tourhebdo);
}

.tag-site.busetcar,
.site-preview.busetcar .preview-badge {
  background: rgba(182, 66, 46, 0.12);
  color: var(--busetcar);
}

.status-chip.published {
  background: rgba(47, 125, 99, 0.12);
  color: var(--green);
}

.status-chip.scheduled {
  background: rgba(206, 125, 45, 0.14);
  color: var(--warning);
}

.status-chip.draft,
.status-chip.review {
  background: rgba(88, 97, 113, 0.12);
  color: var(--ink-soft);
}

.status-chip.archived {
  background: rgba(181, 72, 61, 0.12);
  color: var(--danger);
}

.tag-chip {
  background: rgba(24, 37, 61, 0.06);
  color: var(--navy);
}

.toolbar,
.filter-row,
.control-row,
.checkbox-grid,
.chip-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.form,
.studio-column,
.preview-column {
  display: grid;
  gap: 18px;
}
.preview-column {
  position: sticky;
  top: 18px;
  max-height: 100vh;
  overflow-y: auto;
}

.form-grid,
.form-grid-2,
.form-grid-3,
.form-grid-4 {
  display: grid;
  gap: 14px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form label,
.field-group {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.toolbar input,
.toolbar select,
.filter-row input,
.filter-row select,
.search-box input,
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid rgba(24, 37, 61, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.form textarea {
  min-height: 118px;
  resize: vertical;
}

.editor-area {
  min-height: 330px;
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.7;
  white-space: pre-wrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 250, 246, 0.94));
}

.toolbar input:focus,
.toolbar select:focus,
.search-box input:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(177, 78, 47, 0.46);
  box-shadow: 0 0 0 4px rgba(177, 78, 47, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.field-help {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkbox-chip,
.library-chip,
.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 37, 61, 0.1);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.checkbox-chip:hover,
.library-chip:hover,
.selected-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 78, 47, 0.28);
}

.checkbox-chip input {
  margin: 0;
}

.library-chip,
.selected-chip button {
  cursor: pointer;
}

.library-chip {
  border: 0;
}

.selected-chip {
  background: rgba(177, 78, 47, 0.1);
  color: var(--copper-deep);
}

.library-chip button,
.selected-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.studio-section {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(24, 37, 61, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 238, 0.86));
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.studio-section::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(200, 149, 49, 0.1), transparent 65%);
  transform: translate(-35%, 35%);
  pointer-events: none;
}

.studio-section > * {
  position: relative;
  z-index: 1;
}

.studio-section h3 {
  margin: 0 0 14px;
  font-size: 1.22rem;
}

.preview-shell,
.newsletter-preview {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(24, 37, 61, 0.1);
  background:
    linear-gradient(180deg, rgba(240, 233, 220, 0.9), rgba(255, 252, 246, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.site-toggle,
.device-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(24, 37, 61, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.site-toggle button,
.device-toggle button {
  border: 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
}

.site-toggle button.active,
.device-toggle button.active {
  color: #fff;
  background: var(--navy);
}

.site-preview {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(24, 37, 61, 0.1);
  background: #fff;
  box-shadow: 0 20px 44px rgba(21, 31, 45, 0.12);
}

.site-preview.mobile {
  max-width: 420px;
  margin: 0 auto;
}

.site-preview-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 15px 18px;
  color: #fff;
}

.site-preview-header::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.site-preview.qdt .site-preview-header {
  background: linear-gradient(135deg, #0b63f6, #084bb8);
}

.site-preview.tourhebdo .site-preview-header {
  background: linear-gradient(135deg, #1f3557, #39598c);
}

.site-preview.busetcar .site-preview-header {
  background: linear-gradient(135deg, #b6422e, #8f2e1f);
}

.preview-logo {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.preview-body {
  padding: 26px;
}

.preview-meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.preview-kicker {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.preview-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 2.6vw, 3.2rem);
  line-height: 0.95;
}

.preview-standfirst {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.preview-hero {
  margin: 18px 0 16px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #e0e4ec, #f8f9fb);
}

.preview-hero-image {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.preview-caption {
  padding: 10px 14px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  background: rgba(249, 246, 239, 0.9);
}

.preview-content {
  display: grid;
  gap: 14px;
  line-height: 1.78;
}

.preview-content h2 {
  margin: 10px 0 0;
  font-size: 1.34rem;
}

.preview-content blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(200, 149, 49, 0.08);
  color: #4f3a17;
  font-style: italic;
}

.preview-content ul {
  margin: 0;
  padding-left: 22px;
}

.preview-video {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #131a27, #172033 68%, #1f2b43 100%);
  color: #eff3ff;
}

.preview-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

.preview-side-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(24, 37, 61, 0.06);
  color: var(--navy);
}

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.check-item strong {
  min-width: 92px;
}

.check-item.ok strong {
  color: var(--green);
}

.check-item.warn strong {
  color: var(--warning);
}

.email-canvas {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background: #fff;
  box-shadow: 0 20px 44px rgba(21, 31, 45, 0.1);
}

.email-head {
  padding: 22px 22px 20px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(200, 149, 49, 0.2), transparent 26%),
    linear-gradient(135deg, var(--navy), #30466a);
}

.email-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.email-module {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background: rgba(248, 244, 236, 0.84);
}

.email-story {
  display: grid;
  gap: 8px;
}

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

.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-height: 136px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(24, 37, 61, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 246, 239, 0.76));
}

.calendar-day strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.calendar-day .mini-chip {
  display: block;
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(24, 37, 61, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  line-height: 1.35;
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  border: 1px dashed rgba(24, 37, 61, 0.18);
  background: rgba(255, 255, 255, 0.46);
  text-align: center;
  color: var(--ink-soft);
}

.status {
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.warning-copy {
  color: var(--warning);
}

.danger-copy {
  color: var(--danger);
}

@media (max-width: 1320px) {
  .metric-grid,
  .quad-grid,
  .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-layout,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .sidebar {
    position: static;
    min-height: auto;
    margin-left: 0;
    border-radius: 24px;
  }

  .page {
    padding: 0 0 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

@media (max-width: 760px) {
  .metric-grid,
  .cards-grid,
  .quad-grid,
  .segment-grid,
  .form-grid-2,
  .form-grid-3,
  .form-grid-4,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .studio-section {
    padding: 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .timeline-item,
  .directory-card {
    flex-direction: column;
  }

  .timeline-date {
    min-width: auto;
  }

  .table {
    min-width: 640px;
  }
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.toolbar-btn {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  cursor: pointer;
  min-width: 32px;
  text-align: center;
}

.toolbar-btn:hover {
  background: var(--navy);
  color: #fff;
}

.editor-area {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
}
