:root {
  --navy: #262262;
  --navy-deep: #181542;
  --navy-soft: #4c4778;
  --yellow: #f8cf2a;
  --yellow-deep: #e6b914;
  --yellow-soft: #fff6c8;
  --ink: #19182a;
  --muted: #737188;
  --line: #e9e8ef;
  --canvas: #f7f7fb;
  --white: #fff;
  --success: #27a96b;
  --danger: #dc4b5a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(248, 207, 42, 0.55);
  outline-offset: 2px;
}

.eyebrow {
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--yellow);
}

/* Login page */

.login-page {
  background: #fff;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
}

.login-story {
  background:
    linear-gradient(145deg, rgba(38, 34, 98, 0.96), rgba(24, 21, 66, 0.99)),
    radial-gradient(circle at 0 0, #524ca0, transparent 55%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px);
  position: relative;
}

.story-orb {
  border: 1px solid rgba(248, 207, 42, 0.18);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
}

.story-orb-one {
  height: 520px;
  right: -220px;
  top: -170px;
  width: 520px;
}

.story-orb-two {
  bottom: -260px;
  height: 640px;
  left: -250px;
  width: 640px;
}

.story-topline {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.15em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.story-dot {
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(248, 207, 42, 0.12);
  height: 8px;
  width: 8px;
}

.story-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.story-copy h1 {
  font-size: clamp(50px, 6vw, 86px);
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin: 0;
}

.story-copy h1 span {
  color: var(--yellow);
  display: block;
}

.story-description {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 470px;
}

.story-preview {
  align-self: flex-end;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(5, 4, 25, 0.35);
  max-width: 410px;
  padding: 24px;
  position: relative;
  transform: rotate(-2deg);
  width: 72%;
  z-index: 1;
}

.preview-head,
.preview-years {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-head {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.preview-chip {
  background: rgba(248, 207, 42, 0.14);
  border-radius: 20px;
  color: var(--yellow);
  padding: 6px 10px;
}

.preview-number {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 20px;
}

.preview-bars {
  align-items: end;
  display: flex;
  gap: 12px;
  height: 90px;
  margin-top: 22px;
}

.preview-bars span {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px 6px 2px 2px;
  flex: 1;
}

.preview-bars span.active {
  background: var(--yellow);
}

.preview-years {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  margin-top: 8px;
}

.login-panel {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 207, 42, 0.12), transparent 26%),
    #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 42px;
}

.login-card {
  max-width: 430px;
  width: 100%;
}

.logo-frame {
  align-items: center;
  display: flex;
  height: 70px;
  margin-bottom: 38px;
}

.logo-frame img {
  height: auto;
  max-width: 180px;
  width: 100%;
}

.login-heading h2 {
  color: var(--navy-deep);
  font-size: clamp(32px, 4vw, 43px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

.login-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.alert,
.dashboard-alert {
  align-items: center;
  background: #fff3f4;
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  color: #9e3340;
  display: flex;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 11px 13px;
}

.alert.success,
.dashboard-alert.success {
  background: #eff9f4;
  border-left-color: var(--success);
  color: #23754d;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label,
.entry-panel label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 7px;
}

.input-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  height: 48px;
  margin-bottom: 17px;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(38, 34, 98, 0.08);
}

.input-wrap > span {
  align-items: center;
  background: #f6f5fa;
  color: var(--navy-soft);
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  min-width: 46px;
}

.input-wrap svg {
  height: 17px;
  width: 17px;
}

.input-wrap input {
  background: transparent;
  border: 0;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
  width: 100%;
}

.select-wrap {
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  border-color: #dedcea;
  position: relative;
}

.select-wrap:hover {
  border-color: #aaa6c5;
}

.select-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(248, 207, 42, 0.22);
}

.select-wrap > .input-icon {
  background: var(--yellow-soft);
  border-right: 1px solid rgba(38, 34, 98, 0.08);
  color: var(--navy);
}

.select-wrap::after {
  border-bottom: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  content: "";
  height: 8px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-70%) rotate(45deg);
  transition: border-color 150ms ease;
  width: 8px;
}

.select-wrap:focus-within::after {
  border-color: var(--yellow-deep);
}

.input-wrap.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--navy-deep);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 52px 0 16px;
  width: 100%;
}

.input-wrap.select-wrap select:hover {
  background: rgba(38, 34, 98, 0.025);
}

.input-wrap.select-wrap select option {
  background: #fff;
  color: var(--navy-deep);
  font-weight: 600;
}

.input-wrap input::placeholder {
  color: #b0aebe;
  font-weight: 500;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #9491a4;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 0 14px;
}

.password-toggle svg {
  height: 18px;
  width: 18px;
}

.primary-login-button {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(38, 34, 98, 0.22);
  color: #fff;
  cursor: pointer;
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  margin-top: 5px;
  padding: 10px 12px 10px 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-login-button:hover {
  background: var(--navy-deep);
  box-shadow: 0 18px 40px rgba(38, 34, 98, 0.3);
  transform: translateY(-2px);
}

.button-icon,
.button-arrow {
  align-items: center;
  display: flex;
  justify-content: center;
}

.button-icon {
  background: var(--yellow);
  border-radius: 10px;
  color: var(--navy);
  height: 42px;
  width: 42px;
}

.button-icon svg,
.button-arrow svg,
.assurance-icon svg {
  height: 19px;
  width: 19px;
}

.button-arrow {
  color: var(--yellow);
}

.public-dashboard-link {
  align-items: center;
  background: var(--yellow-soft);
  border: 1px solid rgba(230, 185, 20, 0.22);
  border-radius: 12px;
  color: var(--navy);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  margin-top: 11px;
  min-height: 45px;
  padding: 9px 13px;
  transition: 160ms ease;
}

.public-dashboard-link:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-1px);
}

.public-dashboard-link svg {
  height: 17px;
  width: 17px;
}

.public-dashboard-link > span {
  font-size: 17px;
}

.login-assurance {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 13px;
  margin-top: 20px;
  padding: 14px;
}

.assurance-icon {
  align-items: center;
  background: var(--yellow-soft);
  border-radius: 9px;
  color: var(--navy);
  display: flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}

.login-assurance p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.login-assurance strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.login-footer {
  color: #aaa8b5;
  font-size: 10px;
  margin: 36px 0 0;
  text-align: center;
}

/* Dashboard */

.dashboard-shell {
  background: var(--canvas);
  display: flex;
  min-height: 100vh;
}

.sidebar {
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 27px 18px 20px;
  position: fixed;
  top: 0;
  width: 254px;
  z-index: 30;
}

.sidebar-logo {
  align-items: center;
  background: #fff;
  border-radius: 14px;
  display: flex;
  height: 66px;
  justify-content: center;
  margin: 0 4px 34px;
  padding: 9px 16px;
}

.sidebar-logo img {
  height: auto;
  max-width: 154px;
  width: 100%;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.sidebar-nav p {
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 18px 13px 8px;
  text-transform: uppercase;
}

.sidebar-nav a {
  align-items: center;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
  padding: 12px 13px;
  transition: 150ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.sidebar-nav a.active {
  box-shadow: inset 3px 0 var(--yellow);
}

.sidebar-nav svg,
.sidebar-user svg {
  height: 19px;
  width: 19px;
}

.sidebar-user {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 20px 4px 0;
}

.avatar {
  align-items: center;
  background: var(--yellow);
  border-radius: 11px;
  color: var(--navy-deep);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 11px;
}

.sidebar-user span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  margin-top: 3px;
}

.sidebar-user form {
  margin: 0;
}

.sidebar-user button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 7px;
}

.sidebar-user button:hover {
  color: var(--yellow);
}

.dashboard-main {
  margin-left: 254px;
  min-width: 0;
  padding: 38px clamp(24px, 4vw, 58px) 60px;
  width: calc(100% - 254px);
}

.dashboard-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.dashboard-header p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.dashboard-header h1 {
  color: var(--navy-deep);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
  margin: 0;
}

.header-date {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--navy);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 9px;
  padding: 10px 13px;
}

.header-date svg,
.mobile-menu-button svg {
  height: 17px;
  width: 17px;
}

.mobile-menu-button {
  display: none;
}

.dashboard-alert {
  margin: -12px 0 18px;
}

.dashboard-alert > span {
  align-items: center;
  background: rgba(220, 75, 90, 0.12);
  border-radius: 50%;
  display: flex;
  flex: 0 0 22px;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  margin-right: 9px;
}

.dashboard-alert.success > span {
  background: rgba(39, 169, 107, 0.12);
}

.dashboard-alert button {
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  font-size: 19px;
  margin-left: auto;
  opacity: 0.6;
}

.summary-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: 1.45fr 1fr 1fr;
  margin-bottom: 18px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
  overflow: hidden;
  padding: 21px;
  position: relative;
}

.summary-card.featured {
  background:
    radial-gradient(circle at 90% -20%, rgba(248, 207, 42, 0.25), transparent 36%),
    var(--navy);
  border: 0;
  color: #fff;
}

.summary-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.summary-icon {
  align-items: center;
  background: var(--yellow);
  border-radius: 10px;
  color: var(--navy);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.summary-icon.pale {
  background: var(--yellow-soft);
}

.summary-icon svg {
  height: 19px;
  width: 19px;
}

.status-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  font-size: 9px;
  font-weight: 700;
  gap: 6px;
  padding: 6px 9px;
}

.status-pill > span {
  background: var(--yellow);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.summary-label {
  color: #aaa8b8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-card > p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin: 20px 0 5px;
}

.summary-card.featured > p {
  color: rgba(255, 255, 255, 0.55);
}

.summary-card h2 {
  color: var(--navy-deep);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.045em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card.featured h2 {
  color: #fff;
}

.summary-foot {
  align-items: center;
  color: rgba(255, 255, 255, 0.46);
  display: flex;
  font-size: 9px;
  gap: 8px;
  margin-top: 15px;
}

.summary-foot > span {
  background: rgba(248, 207, 42, 0.13);
  border-radius: 14px;
  color: var(--yellow);
  font-weight: 800;
  padding: 4px 7px;
}

.summary-foot.muted {
  color: #aaa8b8;
}

.workspace-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.72fr);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.panel h2 {
  color: var(--navy-deep);
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0;
}

.live-label {
  align-items: center;
  background: #eef9f3;
  border-radius: 20px;
  color: #25734d;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.live-label > span {
  background: var(--success);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.chart-legend {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin: 20px 4px -12px;
}

.chart-legend > span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  font-weight: 700;
  gap: 5px;
}

.chart-legend i {
  border-radius: 2px;
  display: block;
  height: 8px;
  width: 8px;
}

.views-key {
  background: var(--navy);
}

.events-key {
  background: var(--yellow);
}

.data-chart {
  align-items: stretch;
  display: flex;
  gap: clamp(12px, 3vw, 36px);
  height: 238px;
  margin: 26px 4px 24px;
  padding: 18px 16px 0;
  position: relative;
}

.data-chart::after {
  border-bottom: 1px solid var(--line);
  bottom: 29px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
}

.chart-column {
  align-items: center;
  display: grid;
  flex: 1;
  grid-template-rows: 24px minmax(120px, 1fr) 30px;
  height: 100%;
  min-width: 30px;
  position: relative;
  z-index: 1;
}

.chart-value {
  align-self: center;
  color: var(--navy-soft);
  font-size: 8px;
  font-weight: 700;
  justify-self: center;
  margin: 0;
  white-space: nowrap;
}

.chart-track {
  align-items: flex-end;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.chart-track span {
  background: #ecebf3;
  border-radius: 8px 8px 2px 2px;
  display: block;
  max-width: 38px;
  min-height: 8px;
  transition: height 280ms ease;
  width: 72%;
}

.chart-track.paired {
  gap: 4px;
}

.chart-track.paired span {
  max-width: 18px;
  width: 36%;
}

.chart-track span.views-bar {
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(38, 34, 98, 0.18);
}

.chart-track span.events-bar {
  background: var(--yellow);
  box-shadow: 0 8px 20px rgba(248, 207, 42, 0.28);
}

.chart-column strong {
  align-self: center;
  color: var(--muted);
  font-size: 9px;
  justify-self: center;
  margin: 0;
  white-space: nowrap;
}

.records-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

table.records-table:not(.dataTable) {
  min-width: 600px;
}

div.dt-container {
  color: var(--muted);
  font-size: 11px;
}

div.dt-container div.dt-layout-row:not(.dt-layout-table) {
  align-items: center;
  margin: 0 0 14px;
}

div.dt-container div.dt-layout-row:last-child {
  margin: 14px 0 0;
}

div.dt-container .dt-length,
div.dt-container .dt-search,
div.dt-container .dt-info {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

div.dt-container .dt-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy-deep);
  font: inherit;
  min-height: 38px;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

div.dt-container .dt-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(248, 207, 42, 0.2);
}

div.dt-container .dt-length select.dt-input {
  cursor: pointer;
  margin: 0 5px;
  min-width: 62px;
  padding: 0 28px 0 10px;
}

div.dt-container .dt-search input.dt-input {
  margin-left: 0;
  min-width: 210px;
  padding: 0 13px;
}

table.records-table {
  border-collapse: collapse;
  margin: 0 !important;
  width: 100% !important;
}

table.records-table > thead > tr > th {
  background: #f7f6fb;
  border-bottom: 1px solid var(--line);
  color: #888598;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px;
  text-transform: uppercase;
}

table.records-table > tbody > tr > td {
  background: #fff;
  border-bottom: 1px solid #f0eff4;
  color: var(--ink);
  font-size: 11px;
  padding: 13px 12px;
  vertical-align: middle;
}

table.records-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

table.records-table > tbody > tr:hover > td {
  background: #fbfaff;
  box-shadow: none;
}

table.records-table > tbody > tr > td:nth-child(3) {
  color: var(--navy);
  font-weight: 800;
}

table.records-table > tbody > tr > td:nth-child(4) {
  color: #876c00;
  font-weight: 800;
}

table.records-table .action-cell {
  text-align: center;
  width: 58px;
}

table.records-table .action-cell form {
  display: flex;
  justify-content: center;
}

table.dataTable.records-table.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
  background: var(--navy);
  border: 0;
  box-shadow: 0 3px 8px rgba(38, 34, 98, 0.2);
}

table.dataTable.records-table.dtr-inline.collapsed > tbody > tr.dtr-expanded > td.dtr-control::before {
  background: var(--yellow-deep);
}

table.dataTable.records-table > tbody > tr.child ul.dtr-details {
  width: 100%;
}

table.dataTable.records-table > tbody > tr.child ul.dtr-details > li {
  border-bottom-color: var(--line);
  padding: 8px 0;
}

table.dataTable.records-table > tbody > tr.child span.dtr-title {
  color: var(--navy-soft);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

div.dt-container .dt-paging .dt-paging-button {
  border: 0 !important;
  border-radius: 8px;
  color: var(--navy-soft) !important;
  font-size: 10px;
  font-weight: 800;
  min-width: 34px;
  padding: 8px 10px !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
  background: var(--yellow-soft) !important;
  color: var(--navy) !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--navy) !important;
  color: #fff !important;
}

.delete-button {
  align-items: center;
  background: #fff2f3;
  border: 0;
  border-radius: 8px;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  height: 30px;
  justify-content: center;
  transition: 150ms ease;
  width: 30px;
}

.delete-button:hover {
  background: var(--danger);
  color: #fff;
}

.delete-button svg {
  height: 14px;
  width: 14px;
}

.empty-records {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.empty-records > span {
  align-items: center;
  background: var(--yellow-soft);
  border-radius: 16px;
  color: var(--navy);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.empty-records svg {
  height: 25px;
  width: 25px;
}

.empty-records h3 {
  color: var(--navy-deep);
  font-size: 16px;
  margin: 15px 0 5px;
}

.empty-records p {
  font-size: 11px;
  margin: 0;
}

.entry-panel {
  overflow: hidden;
  position: relative;
}

.entry-decoration {
  align-items: center;
  background: var(--yellow-soft);
  border-radius: 50%;
  color: var(--yellow-deep);
  display: flex;
  height: 118px;
  justify-content: center;
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
}

.entry-decoration svg {
  height: 26px;
  margin: 30px 30px 0 0;
  width: 26px;
}

.panel-description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 9px 0 24px;
  max-width: 230px;
}

.entry-panel form {
  display: flex;
  flex-direction: column;
}

.save-button {
  align-items: center;
  background: var(--yellow);
  border: 0;
  border-radius: 11px;
  color: var(--navy-deep);
  cursor: pointer;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  margin-top: 2px;
  min-height: 46px;
  padding: 0 16px;
  transition: 150ms ease;
}

.save-button:hover {
  background: var(--yellow-deep);
  transform: translateY(-1px);
}

.save-button svg {
  height: 16px;
  width: 16px;
}

.entry-tip {
  align-items: center;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
}

.entry-tip > span {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: var(--yellow);
  display: flex;
  flex: 0 0 32px;
  font-size: 9px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
}

.entry-tip p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin: 0;
}

.entry-tip strong {
  color: var(--ink);
  display: block;
  font-size: 10px;
}

.menu-backdrop {
  display: none;
}

.confirm-dialog[hidden] {
  display: none;
}

.confirm-dialog {
  align-items: center;
  background: rgba(18, 16, 48, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 80;
}

.confirm-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(14, 12, 45, 0.32);
  max-width: 390px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.confirm-icon {
  align-items: center;
  background: #fff0f2;
  border-radius: 14px;
  color: var(--danger);
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 52px;
}

.confirm-icon svg {
  height: 23px;
  width: 23px;
}

.confirm-card h2 {
  color: var(--navy-deep);
  font-size: 22px;
  margin: 0;
}

.confirm-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 10px auto 24px;
  max-width: 290px;
}

.confirm-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.confirm-actions button {
  background: #f3f2f7;
  border: 0;
  border-radius: 10px;
  color: var(--navy-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  min-height: 43px;
}

.confirm-actions button.danger {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 1050px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card.featured {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 48vh;
    padding: 34px 30px;
  }

  .story-copy {
    margin-top: 70px;
  }

  .story-copy h1 {
    font-size: clamp(45px, 12vw, 70px);
  }

  .story-description {
    margin-bottom: 35px;
  }

  .story-preview {
    display: none;
  }

  .login-panel {
    min-height: 52vh;
    padding: 54px 28px;
  }

  .sidebar {
    box-shadow: 24px 0 60px rgba(10, 8, 38, 0.35);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-backdrop {
    background: rgba(18, 16, 48, 0.5);
    border: 0;
    display: none;
    inset: 0;
    position: fixed;
    z-index: 20;
  }

  body.menu-open .menu-backdrop {
    display: block;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 26px 22px 50px;
    width: 100%;
  }

  .dashboard-header {
    justify-content: flex-start;
  }

  .mobile-menu-button {
    align-items: center;
    background: var(--navy);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 42px;
    justify-content: center;
    margin-right: 14px;
    width: 42px;
  }

  .header-date {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .login-story {
    min-height: 42vh;
    padding: 26px 22px 34px;
  }

  .story-copy {
    margin-top: 52px;
  }

  .story-copy h1 {
    font-size: 42px;
  }

  .story-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0 0;
  }

  .login-panel {
    padding: 42px 22px;
  }

  .logo-frame {
    height: auto;
    margin-bottom: 28px;
  }

  .logo-frame img {
    max-width: 154px;
  }

  .login-heading h2 {
    font-size: 32px;
  }

  .login-footer {
    margin-top: 30px;
  }

  .dashboard-main {
    padding: 20px 15px 40px;
  }

  .dashboard-header {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .dashboard-header p {
    font-size: 8px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .header-date {
    display: none;
  }

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

  .summary-card.featured {
    grid-column: auto;
  }

  .panel {
    border-radius: 15px;
    padding: 18px;
  }

  .select-wrap {
    height: 52px;
  }

  .input-wrap.select-wrap select {
    font-size: 16px;
  }

  .data-chart {
    gap: 7px;
    height: 220px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .chart-value {
    font-size: 7px;
    transform: rotate(-30deg);
  }

  .records-table-wrap {
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
  }

  div.dt-container div.dt-layout-row:not(.dt-layout-table) {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  div.dt-container div.dt-layout-row:not(.dt-layout-table) div.dt-layout-cell {
    text-align: left;
    width: 100%;
  }

  div.dt-container .dt-length {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  div.dt-container .dt-search input.dt-input {
    margin-top: 5px;
    min-width: 0;
    width: 100%;
  }

  div.dt-container .dt-paging {
    text-align: center;
  }

  table.records-table > thead > tr > th,
  table.records-table > tbody > tr > td {
    padding: 12px 10px;
  }

  .confirm-card {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
