:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5c6875;
  --line: #d9e2ea;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --blue: #0878bc;
  --blue-dark: #065f96;
  --green: #198a68;
  --gold: #d39a28;
  --shadow: 0 18px 42px rgba(10, 44, 74, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 226, 234, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand strong,
.brand small {
  overflow-wrap: anywhere;
}

.brand strong {
  font-size: 16px;
}

.brand small,
.eyebrow,
.section-heading p,
.app-card small,
.contact-band p {
  color: var(--muted);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.topbar nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: #e8f3fa;
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(430px, 62vh, 620px);
  overflow: hidden;
  background: #092f4d;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 28, 45, 0.82), rgba(4, 28, 45, 0.35) 58%, rgba(4, 28, 45, 0.18)),
    linear-gradient(0deg, rgba(4, 28, 45, 0.42), rgba(4, 28, 45, 0));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: end;
  gap: clamp(24px, 5vw, 56px);
  width: min(1100px, calc(100% - 36px));
  padding: clamp(34px, 7vw, 72px) 0 clamp(44px, 8vw, 78px);
  margin: 0 auto;
  color: #fff;
}

.hero-content .eyebrow {
  color: #b7e1fb;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 700px;
  margin: 8px 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.schedule-panel {
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(6, 28, 45, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.schedule-panel.is-warning {
  border-color: rgba(255, 91, 91, 0.85);
  background: rgba(94, 16, 28, 0.78);
}

.schedule-panel.is-live {
  border-color: rgba(255, 91, 91, 0.95);
  background: rgba(118, 19, 29, 0.82);
  animation: meetingPulse 1.1s ease-in-out infinite;
}

.schedule-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.schedule-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.schedule-counter {
  min-width: 44px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #d7edf9;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.schedule-counter:empty {
  display: none;
}

.schedule-state {
  margin: 0;
  color: #e9f6ff;
  font-size: 14px;
}

.schedule-card {
  display: grid;
  gap: 12px;
}

.schedule-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-date-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f3fbff;
  font-size: 13px;
  font-weight: 800;
}

.schedule-date-row .schedule-badge {
  background: rgba(255, 82, 82, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 180, 180, 0.6);
}

.schedule-card h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.same-time-ticker {
  overflow: hidden;
  padding: 8px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff4c4;
  white-space: nowrap;
}

.same-time-ticker span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: tickerRun 18s linear infinite;
  font-size: 14px;
  font-weight: 800;
}

.schedule-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.schedule-card dl > div {
  display: grid;
  gap: 2px;
}

.schedule-card dt {
  color: #b7e1fb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-card dd {
  margin: 0;
  color: #f5fbff;
  font-size: 14px;
  line-height: 1.45;
}

.workspace,
.contact-band {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.workspace {
  padding: 42px 0 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.contact-band h2 {
  margin: 4px 0 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 360px;
  margin: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: rgba(8, 120, 188, 0.45);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.app-card.primary .app-icon {
  background: #e7f3fa;
  color: var(--blue);
}

.app-card:not(.primary) .app-icon {
  background: #edf8f4;
  color: var(--green);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.app-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.2;
}

.app-card small {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
}

.contact-band p {
  margin: 0;
}

.assignment-page {
  background: #f4f8fb;
}

.assignment-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.assignment-heading {
  margin-bottom: 22px;
}

.assignment-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.assignment-form,
.assignment-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.04);
}

.assignment-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.assignment-form label {
  display: grid;
  gap: 7px;
}

.assignment-form label span {
  color: #2b3b4d;
  font-size: 13px;
  font-weight: 800;
}

.assignment-form input,
.assignment-form select,
.assignment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd8e3;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.assignment-form textarea {
  resize: vertical;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions button,
.secondary-button,
.delete-meeting,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.form-actions button {
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
}

.secondary-button {
  background: #e8f0f6 !important;
  color: var(--ink) !important;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status[data-type="success"] {
  color: #087253;
}

.form-status[data-type="error"],
.empty-list.error {
  color: #b42318;
}

.assignment-list {
  padding: 18px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 14px;
}

.section-heading.compact h2 {
  font-size: 26px;
}

.icon-button {
  width: 42px;
  background: #e8f3fa;
  color: var(--blue-dark);
  font-size: 20px;
}

.meeting-list {
  display: grid;
  gap: 12px;
}

.meeting-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.meeting-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.meeting-time span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe9e9;
  color: #b42318;
  font-weight: 800;
}

.meeting-item h3 {
  margin: 6px 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.meeting-item p {
  margin: 0 0 8px;
  color: var(--muted);
}

.meeting-item dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.meeting-item dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
}

.meeting-item dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meeting-item dd {
  margin: 0;
}

.delete-meeting {
  align-self: start;
  padding: 8px 12px;
  background: #fff1f1;
  color: #b42318;
}

.empty-list {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar nav a {
    flex: 1 1 120px;
    text-align: center;
  }

  .hero {
    min-height: 480px;
  }

  .hero-media::after {
    background:
      linear-gradient(0deg, rgba(4, 28, 45, 0.86), rgba(4, 28, 45, 0.22)),
      linear-gradient(90deg, rgba(4, 28, 45, 0.45), rgba(4, 28, 45, 0.12));
  }

  .hero-content {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 640px);
    gap: 22px;
    padding-bottom: 38px;
  }

  .schedule-panel {
    align-self: stretch;
  }

  .section-heading,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    max-width: none;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .assignment-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes tickerRun {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes meetingPulse {
  0%,
  100% {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 0 rgba(255, 82, 82, 0);
  }

  50% {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), 0 0 24px rgba(255, 82, 82, 0.75);
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 46px;
    height: 46px;
  }

  .app-card {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    min-height: 132px;
    padding: 18px;
  }

  .app-icon {
    width: 48px;
    height: 48px;
  }

  .meeting-item {
    grid-template-columns: 1fr;
  }
}
