:root {
  --ink: #081421;
  --blue: #0f4263;
  --orange: #f59b00;
  --cyan: #00d4ff;
  --muted: #687587;
  --soft: #f5f7fb;
  --white: #ffffff;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

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

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

.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 80% 8%, rgba(245, 155, 0, 0.28), transparent 28%),
    linear-gradient(135deg, #071827, #0f4263 54%, #071827);
}

.login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card h1,
.workspace h1,
.workspace h2 {
  margin: 0.35rem 0 0;
  font-family: Montserrat, Inter, sans-serif;
  line-height: 0.98;
}

.login-card h1 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.login-card p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.login-form,
.panel,
.event-form,
.briefing-form,
.work-table,
.totem-console {
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.06);
}

.login-form {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.2rem;
  color: var(--ink);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 20, 33, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
  background: #f8fafc;
  color: var(--ink);
  outline: none;
  text-transform: none;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.login-form button,
.primary-action {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.login-error {
  display: none;
  margin: 0;
  color: #b42318 !important;
  font-weight: 800;
}

.login-error.is-visible {
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 1.2rem;
  background: #071827;
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), #ffd186);
  color: var(--blue);
  font-weight: 950;
}

.sidebar nav {
  display: grid;
  gap: 0.55rem;
}

.nav-btn,
.operator-box button,
.mini-btn,
.ghost-action,
.status-filters button,
.upload-button {
  border: 1px solid rgba(8, 20, 33, 0.1);
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
}

.upload-button input {
  display: none;
}

.nav-btn {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  text-align: left;
}

.nav-btn.is-active,
.status-filters button.is-active {
  background: var(--orange);
  color: var(--blue);
}

.operator-box {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.operator-box span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.workspace {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.topbar,
.section-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.topbar {
  margin-bottom: 1.4rem;
}

.workspace h1 {
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.workspace h2 {
  color: var(--blue);
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.top-actions,
.quick-actions,
.console-actions,
.status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.top-actions a,
.quick-actions a {
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  box-shadow: 0 0.8rem 1.6rem rgba(8, 20, 33, 0.06);
}

.view {
  display: none;
}

.view.is-active {
  display: grid;
  gap: 1.3rem;
}

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

.metric-grid article,
.deal-card {
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  padding: 1rem;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.05);
}

.metric-grid span,
.deal-card span,
.timeline span,
.totem-preview span {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 0.35rem 0;
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.split-grid,
.totem-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel,
.totem-console {
  padding: 1.2rem;
}

.dark-panel {
  background:
    radial-gradient(circle at 95% 10%, rgba(245, 155, 0, 0.28), transparent 32%),
    linear-gradient(135deg, #0f4263, #071827);
  color: var(--white);
}

.dark-panel h2,
.dark-panel .eyebrow {
  color: var(--white);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.timeline span {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: #f8fafc;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.kanban article {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 20rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: #edf2f7;
}

.kanban h3 {
  margin: 0;
  color: var(--blue);
}

.deal-card {
  display: grid;
  gap: 0.35rem;
}

.deal-card.featured {
  border-color: rgba(245, 155, 0, 0.5);
  box-shadow: 0 1rem 2rem rgba(245, 155, 0, 0.12);
}

.crm-events-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1rem 2.5rem rgba(8, 20, 33, 0.06);
}

.crm-events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.crm-events-head h3 {
  margin: 0.2rem 0 0;
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.crm-events-head span {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #edf2f7;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crm-events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.crm-event-card,
.empty-state {
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 10px;
  background: #f8fafc;
  padding: 1rem;
}

.crm-event-card {
  display: grid;
  gap: 0.75rem;
}

.crm-event-card strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.crm-event-card span,
.crm-event-card small,
.empty-state {
  color: var(--muted);
  line-height: 1.5;
}

.crm-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-event-meta b {
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: rgba(15, 66, 99, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
}

.crm-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-event-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.crm-event-actions button.secondary {
  background: #edf2f7;
  color: var(--blue);
}

.event-create-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 20, 33, 0.58);
  backdrop-filter: blur(14px);
}

.event-create-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 4rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 2rem 5rem rgba(8, 20, 33, 0.28);
}

.event-create-head {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.4rem 0.4rem;
}

.event-create-head h3 {
  margin: 0.2rem 0 0.35rem;
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.event-create-head span {
  color: var(--muted);
}

.icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.event-create-card .event-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.4rem;
}

.event-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 1.4rem 1.4rem;
}

.event-form,
.briefing-form,
.speaker-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.speaker-admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.speaker-admin-card {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  padding: 1rem;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.05);
}

.speaker-admin-card.featured {
  border-color: rgba(245, 155, 0, 0.42);
  box-shadow: 0 1.4rem 3rem rgba(245, 155, 0, 0.12);
}

.speaker-admin-photo {
  display: grid;
  width: 5.4rem;
  height: 5.4rem;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 155, 0, 0.8), transparent 34%),
    linear-gradient(135deg, var(--blue), #071827);
  color: var(--white);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.speaker-admin-card span {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speaker-admin-card h3 {
  margin: 0.25rem 0;
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.25rem;
}

.speaker-admin-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.speaker-admin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.speaker-form {
  margin-top: 1rem;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.06);
}

.realization-admin-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  padding: 1rem;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.05);
}

.realization-admin-intro p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.realization-admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.realization-admin-card {
  display: grid;
  grid-template-rows: 7.8rem auto auto auto;
  gap: 0.65rem;
  justify-items: center;
  align-items: center;
  min-height: 14rem;
  overflow: hidden;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 8px;
  padding: 1rem;
  background: var(--white);
  text-align: center;
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.05);
}

.realization-admin-card img {
  width: 100%;
  max-width: 8.8rem;
  height: 7.2rem;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  border-radius: 8px;
  background: #f8fafc;
}

.logo-placeholder {
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 15%, rgba(245, 155, 0, 0.36), transparent 38%),
    #f8fafc;
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.realization-admin-card strong {
  display: -webkit-box;
  min-height: 2.1rem;
  margin: 0;
  overflow: hidden;
  color: var(--blue);
  font-size: 0.78rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.realization-admin-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.download-logo {
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  background: var(--orange);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.wide {
  grid-column: 1 / -1;
}

.search {
  max-width: 28rem;
}

.work-table {
  overflow: hidden;
}

.sales-showcase {
  display: grid;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(0, 1.22fr);
  gap: 1rem;
}

.sales-mockup {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 14px;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 20%, rgba(245, 155, 0, 0.24), transparent 12rem),
    linear-gradient(145deg, #071421, #0f4263);
  color: var(--white);
  box-shadow: 0 1.4rem 3rem rgba(8, 20, 33, 0.16);
}

.sales-mockup h3 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 0.98;
}

.sales-mockup p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.mockup-photo {
  display: grid;
  place-items: center;
  border-radius: 12px;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-photo img {
  width: min(100%, 10.5rem);
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1.2rem 2.2rem rgba(0, 0, 0, 0.3);
}

.sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.sales-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 12px;
  padding: 1.1rem;
  background: var(--white);
  box-shadow: 0 1rem 2rem rgba(8, 20, 33, 0.05);
}

.sales-card.featured {
  border-color: rgba(245, 155, 0, 0.58);
  box-shadow: 0 1.2rem 2.8rem rgba(245, 155, 0, 0.16);
}

.sales-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sales-card strong {
  color: var(--ink);
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.sales-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sales-card button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.sales-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.sales-form,
.sales-results {
  display: grid;
  gap: 0.75rem;
}

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

.sales-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.sales-results div {
  display: grid;
  gap: 0.25rem;
  border-radius: 10px;
  padding: 0.9rem;
  background: #f8fafc;
}

.sales-results span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sales-results strong {
  color: var(--blue);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.25rem;
}

.print-queue {
  display: grid;
  gap: 0.7rem;
}

.print-queue article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem 0.8rem;
  align-items: center;
  border: 1px solid rgba(8, 20, 33, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  background: #f8fafc;
}

.print-queue b {
  color: var(--orange);
}

.print-queue em {
  grid-column: 2 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.table-head,
.work-row {
  display: grid;
  grid-template-columns: 0.5fr 1.8fr 1fr 0.9fr 1.5fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.table-head {
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.work-row {
  border-top: 1px solid rgba(8, 20, 33, 0.08);
}

.work-row strong,
.work-row b {
  color: var(--blue);
}

.work-row small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-pill {
  width: max-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #edf2f7;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.row-actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.row-actions button:nth-child(2) {
  background: var(--orange);
  color: var(--blue);
}

.totem-console {
  align-items: center;
}

.totem-console p {
  color: var(--muted);
  line-height: 1.65;
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  background: #edf2f7;
}

.totem-preview {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.totem-preview img {
  width: min(260px, 100%);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1.5rem 3rem rgba(8, 20, 33, 0.18);
}

@media (max-width: 980px) {
  .app-shell,
  .login-card,
  .metric-grid,
  .split-grid,
  .kanban,
  .crm-events-list,
  .sales-showcase,
  .sales-grid,
  .sales-console,
  .sales-form,
  .sales-results,
  .event-form,
  .briefing-form,
  .speaker-form,
  .speaker-admin-grid,
  .realization-admin-grid,
  .totem-console {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .topbar,
  .section-head,
  .panel-head,
  .realization-admin-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-head {
    display: none;
  }

  .work-row {
    grid-template-columns: 1fr;
  }
}
