:root {
  --navy: #122334;
  --navy-deep: #0c1a29;
  --navy-soft: #22394d;
  --gold: #cda75e;
  --gold-light: #f3e7cf;
  --paper: #f6f7f8;
  --white: #fff;
  --ink: #172b3d;
  --muted: #6d7b88;
  --line: #e3e8ec;
  --green: #246e57;
  --red: #a43e42;
  --radius: 14px;
  --shadow: 0 14px 46px #10283b0b;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
.program-source {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.program-source h4 {
  margin: 0 0 12px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #779fbc;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
h1 {
  font-size: clamp(28px, 3vw, 37px);
  letter-spacing: -1.4px;
  font-weight: 800;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.2px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: white;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #c0cbd5;
  padding: 35px 21px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 570px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.7px;
}
.brand small {
  display: block;
  color: #92a3b0;
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 2px;
  margin-top: 5px;
}
.brand-ball {
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--gold-light);
  font-size: 24px;
  background: var(--navy-deep);
  box-shadow: inset -4px -4px 0 #0002;
}
.sidebar-section {
  margin: 54px 12px 17px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #708696;
}
.navigation {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  color: #a9bac8;
  background: transparent;
  text-align: left;
  font-weight: 500;
}
.nav-item > span:first-child {
  font-size: 20px;
  line-height: 1;
  width: 22px;
}
.nav-item.selected {
  background: var(--navy-soft);
  color: #fff;
  box-shadow: inset 3px 0 var(--gold);
}
.nav-item:hover {
  background: #21374a;
}
.nav-count {
  margin-left: auto;
  border-radius: 5px;
  background: #ffffff12;
  padding: 2px 6px;
  color: #d4b77f;
  font-size: 11px;
}
.sidebar-note {
  margin: 60px 12px 32px;
  color: #8296a6;
}
.small-caps,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.sidebar-note .small-caps {
  color: #b99b65;
}
.sidebar-note p {
  font-size: 12px;
  line-height: 1.9;
  margin-top: 13px;
}
.note-line {
  width: 26px;
  display: block;
  border-bottom: 2px solid #7f714e;
  margin-top: 20px;
}
.operator {
  border-top: 1px solid #ffffff12;
  padding: 23px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
}
.operator-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #314454;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.operator > div {
  min-width: 0;
}
.operator strong {
  display: block;
  color: #e0e8ee;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator small {
  display: block;
  margin-top: 3px;
  color: #8197a8;
  font-size: 10px;
  text-transform: capitalize;
}
.sidebar-signout {
  color: #9bb0bf;
  background: none;
  border: 0;
  text-align: left;
  margin: 10px 0 0 42px;
  padding: 5px;
  font-size: 11px;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff9;
}
.breadcrumb {
  color: #80909e;
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c0cad2;
}
.breadcrumb strong {
  font-weight: 500;
  color: #536879;
}
.connection {
  font-size: 10px;
  color: #778a98;
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #74a68d;
}
main {
  padding: 39px 42px 48px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  align-self: center;
}
.page-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  display: block;
  color: #9b7c44;
  margin-bottom: 10px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 16px;
  min-height: 41px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  box-shadow: 0 3px 5px #10283b15;
}
.button.primary:hover {
  background: var(--navy-soft);
}
.button.secondary:hover {
  border-color: #aebdc8;
  background: #fafbfc;
}
.button.danger {
  color: var(--red);
  background: #fff4f3;
  border-color: #ecd3d0;
}
.button.icon-button {
  padding: 7px 12px;
  font-size: 20px;
  font-weight: 400;
}
.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 12px #142e4403;
}
.stat > span {
  color: #72818e;
  font-size: 11px;
}
.stat strong {
  display: block;
  font:
    700 34px "Manrope",
    sans-serif;
  color: var(--ink);
  letter-spacing: -1px;
  margin: 6px 0 5px;
}
.stat:first-child strong {
  color: var(--green);
}
.stat small {
  color: #8b98a1;
  font-size: 10px;
}
.events-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-heading {
  padding: 25px 25px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.panel-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
}
.panel-heading h2 {
  font-size: 18px;
}
.view-toggle {
  display: flex;
  background: #f2f4f6;
  border: 1px solid #e9edf0;
  padding: 3px;
  border-radius: 7px;
}
.view-toggle button {
  background: transparent;
  border: 0;
  color: #8796a2;
  font-size: 11px;
  padding: 7px 13px;
  border-radius: 4px;
}
.view-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 5px #142e4410;
}
.event-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  min-height: 53px;
}
.filter-tabs {
  display: flex;
  align-self: stretch;
  gap: 19px;
}
.filter-tabs button {
  border: 0;
  background: none;
  border-bottom: 2px solid transparent;
  color: #8b98a3;
  padding: 12px 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-tabs button.active {
  border-bottom-color: var(--gold);
  color: var(--ink);
}
.search-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  max-width: 210px;
  margin-bottom: 8px;
  gap: 5px;
}
.search-field > span {
  font-size: 19px;
  color: #91a0ac;
  line-height: 1;
}
.search-field input {
  border: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  color: var(--ink);
  background: none;
}
.search-field input:focus {
  outline: 0;
}
.search-field:focus-within {
  outline: 2px solid #779fbc;
  outline-offset: 2px;
}
.event-list {
  padding: 8px 25px;
}
.event-row {
  display: grid;
  grid-template-columns:
    54px minmax(160px, 1.5fr) minmax(130px, 1fr) minmax(105px, 0.75fr)
    auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #edf0f2;
  padding: 21px 0;
}
.event-row:last-child {
  border-bottom: 0;
}
.event-emblem {
  width: 52px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #e9f0ed;
  color: #43755e;
  font:
    700 23px "Manrope",
    sans-serif;
}
.event-emblem:before {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  opacity: 0.15;
  width: 33px;
  height: 33px;
  border-radius: 50%;
}
.event-emblem.neon {
  background: #efebf6;
  color: #8c6bb4;
}
.event-emblem.gold {
  background: #f7f0e3;
  color: #b38d42;
}
.event-emblem.midnight {
  background: #e8eff6;
  color: #527699;
}
.event-title {
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  display: block;
  line-height: 1.5;
}
.event-title:hover {
  color: #947234;
}
.event-meta {
  color: #8b99a4;
  font-size: 10px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.featured-mark {
  color: #a3803f;
}
.schedule-cell {
  font-size: 11px;
  color: #607384;
  line-height: 1.6;
}
.schedule-cell small {
  display: block;
  color: #97a4ad;
  font-size: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 0.2px;
  font-weight: 700;
  white-space: nowrap;
  background: #f1f3f5;
  color: #81909d;
}
.badge.active,
.badge.ready {
  background: #edf5f0;
  color: #447b60;
}
.badge.upcoming {
  background: #edf2f9;
  color: #567ea2;
}
.badge.draft {
  background: #fbf4e6;
  color: #aa8645;
}
.badge.cancelled,
.badge.blocked {
  background: #f8eded;
  color: #a76a69;
}
.revision {
  display: block;
  font-size: 9px;
  color: #9aa6af;
  margin-top: 6px;
}
.panel-footer {
  border-top: 1px solid #edf0f2;
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #98a3ad;
  font-size: 10px;
}
.empty-state {
  padding: 55px 24px 62px;
  text-align: center;
  max-width: 480px;
  margin: auto;
}
.empty-symbol {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4f0e8;
  color: #baa06e;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  font-size: 27px;
}
.empty-state h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.empty-state p {
  color: #7b8b98;
  line-height: 1.8;
  font-size: 12px;
  margin-bottom: 19px;
}
.loading-state {
  padding: 70px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  gap: 12px;
}
.calendar-header h3 {
  font-size: 16px;
}
.calendar-navigation {
  display: flex;
  gap: 6px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.day-name {
  padding: 12px 8px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #8b99a5;
  text-transform: uppercase;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.calendar-day {
  min-height: 122px;
  padding: 8px;
  border-right: 1px solid #edf0f2;
  border-bottom: 1px solid #edf0f2;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.outside {
  background: #fafbfc;
  color: #c1cad2;
}
.day-number {
  font-size: 10px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
}
.today .day-number {
  background: var(--navy);
  color: white;
  border-radius: 50%;
}
.calendar-event {
  width: 100%;
  text-align: left;
  display: block;
  border: 0;
  border-left: 2px solid #bda068;
  background: #f7f3eb;
  color: #8d713c;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1.4;
  padding: 5px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event.live {
  background: #edf4f0;
  color: #48735d;
  border-left-color: #70a486;
}
.calendar-event.draft {
  background: #f1f3f6;
  color: #7e8a97;
  border-left-color: #a3adb7;
}
.calendar-more {
  font-size: 9px;
  color: #71818d;
  margin: 5px;
}
.section-intro {
  max-width: 680px;
  margin: 10px 0 25px;
}
.section-intro h2 {
  margin-bottom: 10px;
}
.section-intro p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.format-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.format-card-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.format-card h3 {
  font-size: 17px;
}
.format-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.format-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.format-card code {
  color: #99a4ae;
  font-size: 10px;
}
.activity-select-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  max-width: 50%;
}
.activity-content {
  padding: 8px 25px 27px;
}
.history-item {
  border-left: 2px solid var(--line);
  padding: 4px 0 23px 20px;
  margin-left: 5px;
  position: relative;
}
.history-item:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  left: -5px;
  top: 9px;
}
.history-item strong {
  font-size: 12px;
}
.history-item p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.7;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 42px;
  border-top: 1px solid var(--line);
  color: #a2aeb8;
  font-size: 10px;
}
.workspace-footer > span:first-child {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #edf3f8;
  color: #42637a;
  border: 1px solid #d6e3ec;
  border-radius: 8px;
  padding: 14px 17px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.7;
}
.notice p {
  margin-top: 3px;
}
.notice.error {
  background: #fff2f0;
  color: #974a45;
  border-color: #edd5d1;
}
.notice.warning {
  background: #fff8e9;
  color: #8b6b2d;
  border-color: #efdfb8;
}
.notice.success {
  background: #edf7f1;
  color: #3b7654;
  border-color: #d1e7da;
}
.auth-screen {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(290px, 1fr);
  max-width: 1000px;
  margin: 28px auto;
  min-height: 590px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-art {
  background: linear-gradient(155deg, #254c50, #152d3a 55%, #132334);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-ring {
  position: absolute;
  border: 1px solid #d5b67930;
  border-radius: 50%;
  width: 400px;
  height: 400px;
}
.ring-one {
  transform: translate(-60px, -75px);
}
.ring-two {
  transform: translate(105px, 80px);
  width: 540px;
  height: 540px;
}
.art-ball {
  border-radius: 50%;
  width: 138px;
  height: 138px;
  background: radial-gradient(
    circle at 32% 26%,
    #fbfcf9,
    #e7e7dc 48%,
    #a6b8b6 76%,
    #526e73
  );
  display: grid;
  place-items: center;
  font:
    bold 73px Georgia,
    serif;
  color: #182c36;
  box-shadow:
    20px 25px 25px #0003,
    inset -3px -4px 8px #102c4230;
  transform: rotate(-14deg);
  margin-bottom: 55px;
  position: relative;
}
.art-label {
  position: absolute;
  left: 35px;
  bottom: 43px;
  color: #d6ba81;
  font:
    700 21px "Manrope",
    sans-serif;
  letter-spacing: 1.5px;
  line-height: 1.5;
}
.auth-content {
  padding: 53px 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-content h1 {
  font-size: 36px;
  line-height: 1.25;
  margin: 8px 0 17px;
}
.auth-intro {
  color: #81909b;
  line-height: 1.9;
  font-size: 13px;
}
.auth-divider {
  height: 1px;
  width: 100%;
  background: var(--line);
  margin: 31px 0 25px;
}
.auth-content h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.auth-content > .muted {
  font-size: 12px;
}
.google-signin {
  margin-top: 22px;
  min-height: 0;
  max-width: 100%;
}
.google-button {
  background: #fff;
  color: #263238;
  border: 1px solid #ced5dc;
  min-height: 44px;
  padding-inline: 28px;
  font-weight: 650;
}
.google-button:hover:not(:disabled) {
  background: #f1f5f8;
  border-color: #8998a5;
}
.auth-status {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 13px 0;
}
.auth-status.error {
  color: var(--red);
}
.auth-footnote {
  font-size: 10px;
  color: #9ba7af;
  line-height: 1.8;
  margin-top: auto;
  padding-top: 26px;
}
dialog {
  border: 1px solid #dce3e8;
  border-radius: 15px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 100px #06172755;
  max-height: calc(100dvh - 48px);
}
dialog::backdrop {
  background: #0c1d2e80;
  backdrop-filter: blur(3px);
}
.editor-dialog {
  width: 1000px;
  max-width: calc(100vw - 40px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.dialog-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
}
.dialog-heading h2 {
  font-size: 23px;
}
.close-button {
  border: 0;
  background: #f3f5f7;
  color: #8193a1;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: 23px;
  flex: none;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
}
.editor-fields {
  padding: 26px 28px;
}
.editor-preview {
  background: #f6f8f9;
  border-left: 1px solid var(--line);
  padding: 29px 23px;
}
.form-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.form-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.form-section h3 {
  margin-bottom: 17px;
}
label:not(.search-field):not(.checkbox-label):not(.activity-select-label) {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #597081;
}
label small {
  color: #91a0ac;
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
  margin-top: 6px;
}
input:not([type="checkbox"]):not([type="search"]),
select,
textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #dce3e9;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  margin-top: 7px;
  min-height: 39px;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f4f6f7;
  color: #8596a3;
}
.form-section > label,
.form-section > .field-pair {
  margin-top: 17px;
}
.form-section h3 + label,
.form-section h3 + .field-pair {
  margin-top: 0;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4f6676;
  font-size: 12px;
  font-weight: 500;
}
.checkbox-label input {
  margin-top: 3px;
  accent-color: var(--navy);
}
.checkbox-label small {
  max-width: 380px;
}
.format-readiness {
  font-size: 11px;
  line-height: 1.65;
  color: #8e773e;
  background: #fbf7ee;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 13px;
}
.format-readiness.ready {
  background: #f0f6f2;
  color: #547962;
}
.timezone-preview {
  background: #f5f7f9;
  border-radius: 6px;
  color: #7b8e9c;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.8;
}
.editor-status {
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.editor-status:empty {
  display: none;
}
.preview-event-card {
  background: linear-gradient(145deg, #244e46, #163a37);
  color: #fff;
  border-radius: 12px;
  padding: 23px 19px;
  min-height: 226px;
  position: relative;
  overflow: hidden;
}
.preview-event-card:before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  right: -60px;
  top: -40px;
  pointer-events: none;
}
.preview-event-card.neon {
  background: linear-gradient(145deg, #62437d, #372b58);
}
.preview-event-card.gold {
  background: linear-gradient(145deg, #7a6031, #4b402b);
}
.preview-event-card.midnight {
  background: linear-gradient(145deg, #2c5171, #1c2d4a);
}
.preview-event-card .card-format {
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #fff9;
}
.preview-event-card h3 {
  color: white;
  font-size: 22px;
  line-height: 1.25;
  margin: 28px 0 10px;
  max-width: 95%;
}
.preview-event-card p {
  color: #ffffffa0;
  font-size: 10px;
  line-height: 1.7;
}
.preview-event-card .card-bottom {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #e8d9b4;
}
.preview-event-card .card-action {
  border: 1px solid #ffffff30;
  border-radius: 4px;
  padding: 5px 8px;
  color: #fff;
}
.preview-caption {
  font-size: 10px;
  line-height: 1.8;
  color: #91a0ab;
  margin: 12px 0 27px;
}
.publication-summary {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  font-size: 10px;
  color: #889ba9;
  line-height: 1.9;
}
.publication-summary strong {
  display: block;
  color: #61798b;
  font-size: 11px;
  margin-bottom: 6px;
}
.editor-actions {
  display: grid;
  gap: 8px;
  margin-top: 19px;
}
.dialog-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
}
.dialog-footer > span {
  color: #94a2ac;
  font-size: 10px;
}
.dialog-footer > div {
  display: flex;
  gap: 8px;
}
.review-dialog {
  width: 540px;
  max-width: calc(100vw - 32px);
}
.review-content {
  padding: 25px 28px;
  font-size: 12px;
  line-height: 1.8;
  color: #6e8393;
}
.review-content h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 13px;
}
.review-content p {
  margin: 0 0 14px;
}
.review-facts {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px 15px;
  margin: 20px 0;
  font-size: 11px;
}
.review-facts dt {
  color: #96a3ae;
}
.review-facts dd {
  margin: 0;
  color: #4d6678;
  overflow-wrap: anywhere;
}
.review-dialog > .notice {
  margin: 0 28px 20px;
}
.review-content pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 10px;
  background: #f4f6f8;
  border-radius: 6px;
  padding: 12px;
}
.review-content details {
  font-size: 11px;
}
.review-content summary {
  cursor: pointer;
  color: #6a7f8e;
}
.review-content label {
  margin-top: 20px;
}
.preview-dialog {
  width: 770px;
  max-width: calc(100vw - 32px);
}
.preview-content {
  padding: 24px 28px;
}
.preview-controls {
  display: flex;
  gap: 13px;
  align-items: flex-end;
  margin-bottom: 17px;
}
.preview-controls label {
  flex: 1;
}
.preview-content > .muted {
  font-size: 11px;
}
.home-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.home-preview > .empty-state,
.home-preview > .notice,
.home-preview > .preview-calendar {
  grid-column: 1/-1;
}
.preview-calendar summary {
  cursor: pointer;
  font-weight: 600;
}
.recurrence-filters {
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
}
.recurrence-list {
  padding: 5px 25px;
}
.recurrence-row {
  display: grid;
  grid-template-columns:
    minmax(160px, 1.2fr) minmax(130px, 1fr) minmax(140px, 1fr)
    auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.recurrence-row:last-child {
  border-bottom: 0;
}
.recurrence-dialog {
  width: 820px;
  max-width: calc(100vw - 32px);
}
.recurrence-content {
  padding: 25px 28px;
}
.recurrence-content > .program-intro {
  margin-bottom: 24px;
}
.recurrence-content > .form-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.recurrence-content .form-help {
  margin-top: 13px;
}
.recurrence-content .field-pair {
  margin-top: 17px;
}
.recurrence-source-info {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-top: 13px;
  font-size: 10px;
  color: #8c9daa;
}
.recurrence-time-policy {
  border-left: 2px solid #d5c098;
  padding-left: 13px;
}
.recurrence-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.recurrence-preview-heading .eyebrow {
  font-size: 9px;
}
.recurrence-preview-section {
  padding-bottom: 24px;
}
.recurrence-occurrences {
  margin-top: 17px;
}
.recurrence-occurrences > .muted {
  font-size: 11px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.recurrence-date-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.recurrence-date-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
}
.recurrence-date-row:last-child {
  border-bottom: 0;
}
.recurrence-date-row strong {
  display: block;
  font-size: 12px;
  color: #526b7c;
}
.recurrence-date-row span {
  display: block;
  font-size: 10px;
  color: #8e9eaa;
  margin-top: 5px;
}
.recurrence-date-row > small {
  font-size: 10px;
  color: #97a4ae;
  text-align: right;
}
.recurrence-adjustment {
  display: block;
  font-size: 10px;
  color: #a08248;
  line-height: 1.7;
  margin-top: 7px;
}
.recurrence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 19px;
}
.recurrence-operations {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 16px;
}
.recurrence-operations code {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.recurrence-issue {
  color: #a17c38;
}
.recurrence-operations.recurrence-issue strong {
  color: #8f6e32;
}
.event-meta button {
  padding: 0;
  border: 0;
  background: none;
  color: #957a45;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 1100px) {
  .recurrence-row {
    grid-template-columns: minmax(150px, 1fr) minmax(135px, 1fr) auto;
    gap: 13px;
  }
  .recurrence-row > div:nth-child(3) {
    grid-column: 2;
  }
  .recurrence-row > .badge {
    grid-column: 3;
    grid-row: 1;
  }
  .recurrence-row > .button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .navigation .nav-item {
    font-size: 10px;
    line-height: 1.5;
  }
  .navigation .nav-item > span:first-child {
    display: none;
  }
  .recurrence-content {
    padding: 22px;
  }
  .recurrence-list {
    padding: 4px 18px;
  }
  .recurrence-row {
    grid-template-columns: minmax(120px, 1fr) minmax(95px, 1fr);
    gap: 12px;
  }
  .recurrence-row > .badge {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .recurrence-row > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .recurrence-row > .button {
    grid-column: 2;
    grid-row: 3;
  }
  .recurrence-row .event-title {
    font-size: 12px;
  }
  .recurrence-filters {
    padding: 0 18px;
  }
  .recurrence-source-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .recurrence-date-row {
    flex-direction: column;
    gap: 9px;
    padding: 14px;
  }
  .recurrence-date-row > small {
    text-align: left;
  }
  .recurrence-preview-heading h3 {
    font-size: 14px;
  }
  .recurrence-preview-heading .button {
    font-size: 10px;
    padding: 9px 11px;
  }
  #recurrences-view .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
.program-dialog {
  width: 960px;
  max-width: calc(100vw - 32px);
}
.program-content {
  padding: 25px 28px;
}
.program-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
  max-width: 760px;
}
.program-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.7fr) auto;
  gap: 15px;
  align-items: end;
  margin: 25px 0;
}
.program-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.program-summary:empty {
  display: none;
}
.program-summary h3 {
  font-size: 20px;
}
.program-summary .eyebrow {
  font-size: 9px;
}
.program-counts {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.program-counts strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.program-carry {
  width: 100%;
  color: #8c713b;
  font-size: 11px;
  line-height: 1.8;
}
.program-schedule {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.program-schedule:empty {
  display: none;
}
.program-entry {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}
.program-entry:last-child {
  border-bottom: 0;
}
.program-entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.program-entry h3 {
  margin-top: 7px;
  font-size: 15px;
}
.program-date {
  font-size: 10px;
  color: #8e9ca7;
}
.program-entry-description {
  font-size: 11px;
  color: #7b8c99;
  line-height: 1.75;
  margin-top: 9px;
}
.program-entry-facts {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 7px 15px;
  font-size: 11px;
  line-height: 1.65;
  margin: 15px 0;
}
.program-entry-facts dt {
  color: #92a0ab;
}
.program-entry-facts dd {
  margin: 0;
  color: #536c7d;
}
.program-entry details {
  font-size: 10px;
  color: #8b9ca8;
  line-height: 1.8;
}
.program-entry summary {
  cursor: pointer;
  color: #738b9b;
}
.program-entry details p {
  margin-top: 9px;
}
.program-entry details small {
  display: block;
  margin-top: 11px;
  font-size: 9px;
  color: #a4aeb7;
  overflow-wrap: anywhere;
}
.program-readiness {
  color: #a17f3f;
}
.program-confirmation {
  background: #f7f2e8;
  padding: 21px;
  border: 1px solid #eadebf;
  border-radius: 9px;
  margin-top: 22px;
}
.program-confirmation strong {
  font-size: 15px;
}
.program-confirmation p {
  font-size: 11px;
  line-height: 1.8;
  color: #8d7b5b;
  margin-top: 9px;
}
.program-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 17px;
}
.program-progress {
  background: #f3f6f8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 21px;
  margin-bottom: 21px;
}
.program-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.program-progress strong {
  font-size: 12px;
}
.program-progress span {
  font-size: 10px;
  color: #78909f;
}
.program-progress progress {
  width: 100%;
  height: 7px;
  display: block;
  margin: 13px 0;
  border: 0;
  border-radius: 5px;
  background: #e1e8ed;
  accent-color: var(--green);
}
.program-progress progress::-webkit-progress-bar {
  background: #e1e8ed;
  border-radius: 5px;
}
.program-progress progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 5px;
}
.program-progress progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 5px;
}
.program-progress p {
  color: #8396a3;
  font-size: 10px;
  line-height: 1.8;
}
.program-footer {
  flex-wrap: wrap;
}
.program-footer > span {
  max-width: 360px;
  line-height: 1.8;
}
@media (max-width: 800px) {
  .program-controls {
    grid-template-columns: 1fr 1fr;
  }
  .program-controls > .button {
    grid-column: 1/-1;
    justify-self: start;
  }
  .program-content {
    padding: 21px;
  }
  .program-entry {
    padding: 19px;
  }
  .program-counts {
    gap: 25px;
  }
  .program-progress > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .program-confirm-actions {
    flex-wrap: wrap;
  }
  .program-footer > div {
    flex-wrap: wrap;
  }
}
@media (max-width: 450px) {
  .program-content {
    padding: 17px;
  }
  .program-entry-heading {
    align-items: flex-start;
  }
  .program-entry {
    padding: 16px;
  }
  .program-date {
    font-size: 9px;
  }
  .program-entry h3 {
    font-size: 13px;
  }
  .program-entry .badge {
    font-size: 8px;
    white-space: normal;
    text-align: center;
    flex-shrink: 0;
    max-width: 80px;
  }
  .program-controls {
    gap: 12px;
  }
  .program-controls label {
    font-size: 10px;
  }
  .program-counts {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .program-entry-facts {
    grid-template-columns: 51px 1fr;
    gap: 7px 9px;
  }
  .program-footer > div {
    width: 100%;
  }
  .program-footer .button {
    flex: 1;
    font-size: 10px;
  }
}
.archive-pagination {
  padding: 16px 25px 24px;
  text-align: center;
}
.form-help {
  color: #8698a5;
  font-size: 11px;
  line-height: 1.8;
}
.challenge-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8b9ba7;
  font-size: 10px;
  margin: 18px 0 10px;
}
.challenge-picker-heading strong {
  color: #8f773f;
  font-weight: 600;
}
.challenge-picker {
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.challenge-picker .challenge-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f2;
  cursor: pointer;
}
.challenge-option:last-child {
  border-bottom: 0;
}
.challenge-option input {
  accent-color: var(--navy);
  margin-top: 3px;
}
.challenge-option strong {
  font-size: 11px;
  color: #526b7c;
  font-weight: 600;
}
.challenge-option small {
  margin-top: 4px;
  font-size: 9px;
}
.challenge-picker > .muted {
  padding: 15px;
  font-size: 11px;
}
.challenge-ids {
  margin-top: 15px;
  font-size: 10px;
  color: #8495a2;
}
.spotlight-terms {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(190, 151, 82, 0.07);
}
.spotlight-terms dl {
  display: grid;
  grid-template-columns: minmax(95px, 0.6fr) minmax(0, 1.4fr);
  gap: 9px 14px;
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.6;
}
.spotlight-terms dt {
  color: var(--muted);
}
.spotlight-terms dd {
  margin: 0;
}
.spotlight-terms p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.challenge-ids summary {
  cursor: pointer;
}
.challenge-ids label {
  margin-top: 12px;
}
.form-section input[type="search"] {
  padding: 10px 11px;
  width: 100%;
  border: 1px solid #dce3e9;
  border-radius: 6px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 12px;
}
@media (min-width: 1600px) {
  main {
    padding: 45px 60px;
  }
  .topbar,
  .workspace-footer {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 16px 22px;
  }
  .brand {
    font-size: 12px;
    gap: 9px;
  }
  .brand-ball {
    width: 35px;
    height: 35px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar,
  .workspace-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .stats-grid {
    gap: 11px;
  }
  .stat {
    padding: 17px;
  }
  .event-row {
    grid-template-columns:
      43px minmax(140px, 1fr) minmax(120px, 0.8fr)
      90px auto;
    gap: 12px;
  }
  .event-emblem {
    width: 43px;
    height: 47px;
  }
  .filter-tabs {
    gap: 14px;
  }
  .event-toolbar,
  .event-list {
    padding-left: 20px;
    padding-right: 20px;
  }
  .auth-content {
    padding: 40px 30px;
  }
  .auth-content h1 {
    font-size: 29px;
  }
  .auth-screen {
    min-height: 560px;
  }
}
@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .brand-ball {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .sidebar-section {
    font-size: 8px;
    margin-left: 9px;
    letter-spacing: 1px;
  }
  .nav-item {
    padding: 12px;
    font-size: 12px;
  }
  .sidebar-note {
    margin: 40px 9px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .heading-actions {
    max-width: 150px;
    gap: 6px;
  }
  .heading-actions #preview-button {
    order: 3;
  }
  .heading-actions #create-button {
    order: 1;
  }
  .heading-actions #refresh-button {
    order: 2;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    position: relative;
    min-height: 96px;
  }
  .stat strong {
    position: absolute;
    right: 20px;
    top: 22px;
    font-size: 30px;
    margin: 0;
  }
  .stat > span {
    display: block;
    max-width: 65%;
  }
  .stat small {
    display: block;
    max-width: 65%;
    margin-top: 17px;
  }
  .event-toolbar {
    flex-wrap: wrap;
    padding-top: 4px;
  }
  .search-field {
    margin: 0 0 12px;
    width: 100%;
    max-width: none;
  }
  .filter-tabs {
    gap: 22px;
    width: 100%;
  }
  .event-row {
    grid-template-columns: 43px minmax(140px, 1fr) 95px;
  }
  .schedule-cell {
    grid-column: 2;
    grid-row: 2;
    margin-top: -8px;
  }
  .event-row > .row-state {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  .event-row > .button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
  .auth-screen {
    grid-template-columns: 1fr;
    max-width: 510px;
    margin-top: 5px;
  }
  .auth-art {
    min-height: 180px;
    justify-content: flex-end;
    padding-right: 40px;
  }
  .art-ball {
    width: 100px;
    height: 100px;
    font-size: 57px;
    margin: 0;
  }
  .art-label {
    font-size: 18px;
    left: 30px;
    bottom: 55px;
  }
  .auth-content {
    padding: 30px;
  }
  .auth-content h1 {
    font-size: 31px;
  }
  .auth-content h1 br {
    display: none;
  }
  .auth-divider {
    margin: 22px 0;
  }
  .auth-footnote {
    padding-top: 15px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .editor-preview {
    padding: 27px 18px;
  }
  .calendar-day {
    min-height: 105px;
    padding: 5px;
  }
  .calendar-event {
    font-size: 8px;
    padding: 4px 3px;
  }
  .connection {
    max-width: 130px;
    line-height: 1.6;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    min-height: 0;
    position: relative;
    padding: 17px 18px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
  }
  .brand {
    font-size: 12px;
    flex-wrap: nowrap;
  }
  .brand small {
    font-size: 8px;
  }
  .sidebar-section,
  .sidebar-note {
    display: none;
  }
  .navigation {
    order: 3;
    width: 100%;
    display: flex;
    gap: 0;
    margin-top: 4px;
  }
  .nav-item {
    width: auto;
    flex: 1;
    justify-content: center;
    padding: 12px 7px;
    border-radius: 5px 5px 0 0;
    gap: 8px;
  }
  .nav-item.selected {
    box-shadow: inset 0 -3px var(--gold);
  }
  .nav-item > span:first-child {
    font-size: 17px;
    width: auto;
  }
  .nav-count {
    margin-left: 3px;
  }
  .operator {
    margin: 0 0 0 auto;
    border: 0;
    padding: 0;
    max-width: 155px;
  }
  .operator-avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }
  .operator strong {
    font-size: 10px;
  }
  .operator small {
    font-size: 9px;
  }
  .sidebar-signout {
    margin: 0;
    font-size: 10px;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .connection {
    font-size: 9px;
    max-width: none;
  }
  main {
    padding: 26px 18px 35px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 24px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 230px;
  }
  .heading-actions {
    max-width: 125px;
  }
  .heading-actions .button {
    padding: 9px 10px;
    font-size: 10px;
    min-height: 35px;
  }
  .heading-actions #refresh-button {
    padding: 5px 11px;
    font-size: 18px;
  }
  .stats-grid {
    margin-bottom: 22px;
  }
  .stat {
    padding: 15px;
    min-height: 92px;
  }
  .stat strong {
    right: 16px;
    top: 18px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat > span {
    font-size: 10px;
  }
  .panel-heading {
    padding: 20px 18px 15px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .view-toggle button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .event-toolbar,
  .event-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .filter-tabs {
    justify-content: space-between;
    gap: 10px;
  }
  .filter-tabs button {
    font-size: 10px;
  }
  .event-row {
    padding: 18px 0;
    gap: 10px;
    grid-template-columns: 40px minmax(90px, 1fr) 87px;
  }
  .event-title {
    font-size: 12px;
  }
  .event-emblem {
    width: 40px;
    height: 45px;
  }
  .event-meta {
    font-size: 9px;
  }
  .schedule-cell {
    font-size: 10px;
  }
  .schedule-cell small {
    font-size: 9px;
  }
  .panel-footer {
    font-size: 9px;
    padding: 13px 18px;
  }
  .format-grid {
    grid-template-columns: 1fr;
  }
  .activity-select-label {
    flex-wrap: wrap;
    max-width: 47%;
    gap: 0;
  }
  .activity-select-label select {
    font-size: 10px;
  }
  .workspace-footer {
    padding: 16px 18px;
    font-size: 9px;
  }
  .auth-screen {
    margin: 3px auto;
  }
  .auth-content {
    padding: 30px 25px;
  }
  .auth-content h1 {
    font-size: 29px;
  }
  .auth-art {
    min-height: 160px;
  }
  .art-label {
    font-size: 16px;
    bottom: 47px;
  }
  .art-ball {
    width: 88px;
    height: 88px;
    font-size: 49px;
  }
  .editor-dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    padding: 24px;
  }
  .editor-preview > .eyebrow {
    grid-column: 1/-1;
  }
  .editor-preview #card-preview {
    grid-row: 2/5;
  }
  .preview-event-card {
    min-height: 190px;
    padding: 19px 15px;
  }
  .preview-event-card h3 {
    font-size: 19px;
    margin-top: 20px;
  }
  .preview-caption {
    margin: 0 0 15px;
  }
  .publication-summary {
    padding-top: 12px;
  }
  .editor-actions {
    grid-column: 1/-1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 17px;
  }
  .dialog-heading {
    padding: 20px 22px;
  }
  .editor-fields {
    padding: 24px 22px;
  }
  .dialog-footer {
    padding: 17px 22px;
  }
  .dialog-footer > span {
    max-width: 140px;
    line-height: 1.6;
  }
  .calendar-header {
    padding: 19px 14px;
  }
  .calendar-header h3 {
    font-size: 14px;
  }
  .calendar-navigation .button {
    padding: 5px 10px;
    min-height: 32px;
  }
  .calendar-day {
    min-height: 85px;
    padding: 3px;
  }
  .day-number {
    font-size: 9px;
    width: 21px;
    height: 21px;
  }
  .day-name {
    font-size: 8px;
    padding: 10px 2px;
  }
  .calendar-event {
    font-size: 8px;
  }
  .calendar-more {
    font-size: 8px;
    margin: 4px 1px;
  }
  .home-preview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .operator {
    max-width: 110px;
  }
  .operator-avatar {
    display: none;
  }
  .connection {
    display: none;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    max-width: 180px;
  }
  .heading-actions {
    max-width: 105px;
  }
  .heading-actions #create-button {
    font-size: 9px;
    padding: 8px;
  }
  .stat strong {
    right: 12px;
    font-size: 26px;
  }
  .stat {
    padding: 13px;
  }
  .editor-preview {
    display: block;
  }
  .preview-caption {
    margin-top: 12px;
  }
  .editor-actions {
    display: grid;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .dialog-footer > span {
    display: none;
  }
  .dialog-footer > div {
    margin-left: auto;
  }
  .event-row {
    grid-template-columns: 32px minmax(80px, 1fr) 75px;
  }
  .event-emblem {
    width: 32px;
    height: 39px;
    font-size: 19px;
  }
  .event-emblem:before {
    width: 25px;
    height: 25px;
  }
  .badge {
    font-size: 8px;
    padding: 5px 6px;
  }
  .event-list {
    padding: 4px 13px;
  }
  .event-toolbar {
    padding: 4px 13px 0;
  }
  .filter-tabs {
    gap: 6px;
  }
  .filter-tabs button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
  dialog[open] {
    animation: dialog-in 0.16s ease-out;
  }
  @keyframes dialog-in {
    from {
      opacity: 0;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.watching-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.watching-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.watching-switch input {
  appearance: none;
  width: 34px;
  height: 20px;
  margin: 0;
  border-radius: 10px;
  background: #d5dce2;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.watching-switch input:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #10283b40;
  transition: transform 0.15s;
}
.watching-switch input:checked {
  background: var(--green);
}
.watching-switch input:checked:before {
  transform: translateX(14px);
}
.watching-switch input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.watching-switch input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.watching-master {
  margin-right: 8px;
}
#watching-block {
  margin: 0 25px 14px;
}
.watching-summary {
  margin: 0 25px 14px;
  font-size: 12px;
}
.watching-empty {
  padding: 0 25px 25px;
}
.watching-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.watching-table th,
.watching-table td {
  text-align: left;
  padding: 13px 25px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.watching-table thead th {
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: #fafbfc;
}
.watching-table tbody th {
  font-weight: 400;
}
.watching-table tbody th strong {
  display: block;
  font-size: 13px;
}
.watching-table tbody th small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.watching-table tbody th .watching-reason {
  color: #8b6b2d;
}
.watching-table tr.shown {
  background: #f6fbf8;
}
.watching-table select {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.watching-history {
  margin-top: 20px;
}
@media (max-width: 860px) {
  .watching-table thead {
    display: none;
  }
  .watching-table tr {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 6px 14px;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
  }
  .watching-table th,
  .watching-table td {
    padding: 0;
    border: 0;
  }
  .watching-table tbody th {
    grid-column: 1 / -1;
  }
  .watching-table td:nth-child(4) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .watching-switch input,
  .watching-switch input:before {
    transition: none;
  }
}
