.joina-led-admin {
  --jlt-ink: #17201c;
  --jlt-muted: #66706b;
  --jlt-line: #d9dfd8;
  --jlt-base: #f5f7f2;
  --jlt-surface: #ffffff;
  --jlt-plaza: #1f7a5b;
  --jlt-three-d: #2e5f9e;
  --jlt-crown: #9a5b18;
  --jlt-alert: #b3342d;
  --jlt-amber: #d69021;
}

.joina-led-admin * {
  box-sizing: border-box;
}

#joina-led-app {
  max-width: 1480px;
  color: var(--jlt-ink);
}

.jlt-header,
.jlt-brand,
.jlt-actions,
.jlt-panel-head {
  display: flex;
  align-items: center;
}

.jlt-header {
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(31, 122, 91, 0.12), rgba(214, 144, 33, 0.1)), var(--jlt-surface);
}

.jlt-brand {
  gap: 14px;
}

.jlt-logo,
.jlt-screen-image,
.jlt-thumb {
  display: grid;
  place-items: center;
  background-color: #e8ede6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: var(--jlt-muted);
  font-size: 11px;
  font-weight: 800;
}

.jlt-logo img,
.jlt-screen-image img,
.jlt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jlt-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: var(--jlt-ink);
  color: #fff;
  font-size: 18px;
}

.jlt-eyebrow {
  margin: 0 0 5px;
  color: var(--jlt-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jlt-header h1,
.jlt-panel h2 {
  margin: 0;
}

.jlt-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.jlt-actions input {
  min-width: 280px;
}

.jlt-screen-grid,
.jlt-summary-grid,
.jlt-work-grid,
.jlt-settings-grid {
  display: grid;
  gap: 14px;
}

.jlt-screen-grid,
.jlt-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.jlt-work-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
}

.jlt-screen-card,
.jlt-summary-grid article,
.jlt-summary-card,
.jlt-panel {
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: var(--jlt-surface);
  box-shadow: 0 12px 32px rgba(25, 37, 31, 0.08);
}

.jlt-screen-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 12px;
  color: var(--jlt-ink);
  text-align: left;
  cursor: pointer;
}

.jlt-screen-card.active {
  border-color: var(--jlt-ink);
}

.jlt-screen-card strong,
.jlt-screen-card small {
  display: block;
}

.jlt-screen-card small {
  margin-top: 8px;
  color: var(--jlt-muted);
  font-weight: 700;
}

.jlt-screen-image {
  width: 86px;
  height: 86px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.jlt-screen-image.all {
  background-image: linear-gradient(135deg, rgba(31, 122, 91, 0.9), rgba(46, 95, 158, 0.8));
}

.jlt-screen-image.plaza {
  background-image: linear-gradient(135deg, rgba(31, 122, 91, 0.85), rgba(255, 255, 255, 0.15));
}

.jlt-screen-image.threeD {
  background-image: linear-gradient(135deg, rgba(46, 95, 158, 0.85), rgba(255, 255, 255, 0.15));
}

.jlt-screen-image.crown {
  background-image: linear-gradient(135deg, rgba(154, 91, 24, 0.88), rgba(255, 255, 255, 0.18));
}

.jlt-summary-grid article,
.jlt-summary-card {
  min-height: 104px;
  padding: 16px;
  border-left: 6px solid var(--jlt-plaza);
}

.jlt-summary-card {
  color: var(--jlt-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.jlt-summary-card:hover {
  border-color: var(--jlt-amber);
}

.jlt-summary-grid span,
.jlt-summary-grid small,
.jlt-muted,
.jlt-hint {
  color: var(--jlt-muted);
}

.jlt-summary-grid strong {
  display: block;
  margin: 12px 0 2px;
  font-size: 30px;
  line-height: 1;
}

.jlt-panel {
  padding: 16px;
}

.jlt-panel-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jlt-panel-head.full {
  grid-column: 1 / -1;
}

.jlt-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.jlt-expiring-page {
  margin-top: 14px;
}

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

.jlt-weekdays {
  margin-bottom: 6px;
  color: var(--jlt-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.jlt-calendar {
  gap: 6px;
}

.jlt-day {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 96px;
  padding: 8px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--jlt-ink);
  text-align: left;
  cursor: pointer;
}

.jlt-day.outside {
  opacity: 0.4;
}

.jlt-day.selected {
  border-color: var(--jlt-plaza);
  background: #ecf4ef;
}

.jlt-day i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--jlt-plaza);
}

.jlt-day i.threeD {
  background: var(--jlt-three-d);
}

.jlt-day i.crown {
  background: var(--jlt-crown);
}

.jlt-pill,
.jlt-badge,
.jlt-status,
.jlt-rotation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.jlt-pill {
  background: #e8ede6;
  color: var(--jlt-ink);
}

.jlt-badge.plaza,
.jlt-status.active {
  background: var(--jlt-plaza);
}

.jlt-badge.threeD,
.jlt-rotation.peak {
  background: var(--jlt-three-d);
}

.jlt-badge.crown,
.jlt-rotation.offPeak {
  background: var(--jlt-crown);
}

.jlt-status.expiring {
  background: var(--jlt-amber);
}

.jlt-status.expired {
  background: var(--jlt-alert);
}

.jlt-list {
  display: grid;
  gap: 10px;
}

.jlt-schedule-item {
  padding: 12px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.jlt-schedule-item > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.jlt-schedule-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.jlt-thumb {
  width: 78px;
  height: 78px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

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

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

.jlt-form label,
.jlt-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--jlt-muted);
  font-size: 12px;
  font-weight: 800;
}

.jlt-form input,
.jlt-form select,
.jlt-form textarea,
.jlt-settings-form input,
.jlt-settings-form select,
.jlt-settings-form textarea,
.jlt-user-form input,
.jlt-user-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.wide,
.jlt-email-settings,
.jlt-settings-form fieldset {
  grid-column: 1 / -1;
}

.jlt-settings-form fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.jlt-email-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.jlt-email-settings p,
.jlt-email-settings .wide {
  grid-column: 1 / -1;
}

.jlt-media-field,
.jlt-media-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 78px;
  align-items: center;
  gap: 10px;
}

.jlt-media-setting {
  grid-column: span 1;
}

.jlt-inventory {
  margin-top: 14px;
}

.jlt-dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.jlt-dashboard-action-buttons,
.jlt-table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.jlt-table-wrap {
  overflow-x: auto;
}

.jlt-ads-page {
  margin-top: 14px;
}

.jlt-ad-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.7fr) 150px 150px 150px 130px;
  gap: 10px;
  margin-bottom: 14px;
}

.jlt-ad-tools input,
.jlt-ad-tools select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.jlt-renew-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 120px 150px 150px auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.jlt-renew-panel h3 {
  margin: 0 0 4px;
}

.jlt-renew-panel span {
  color: var(--jlt-muted);
}

.jlt-renew-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--jlt-muted);
}

.jlt-renew-panel input,
.jlt-renew-panel select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.jlt-renew-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.jlt-table-footer {
  justify-content: space-between;
  margin-top: 12px;
}

.jlt-table-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.jlt-empty,
.joina-loading,
.jlt-error {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--jlt-line);
  border-radius: 8px;
  color: var(--jlt-muted);
}

.jlt-error {
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border-color: var(--jlt-alert);
  color: var(--jlt-alert);
  text-align: center;
}

.jlt-error span {
  color: var(--jlt-muted);
}

.jlt-credit {
  margin: 18px 0 4px;
  color: var(--jlt-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.jlt-settings-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.jlt-users {
  align-self: start;
}

.jlt-user-form {
  display: grid;
  grid-template-columns: 1fr 1fr 160px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.jlt-user-list {
  display: grid;
  gap: 8px;
}

.jlt-user-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fff;
}

.jlt-user-list span {
  display: block;
  color: var(--jlt-muted);
}

.jlt-advertisers-page,
.jlt-advertiser-detail {
  margin-top: 14px;
}

.jlt-advertiser-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 10px;
  margin-bottom: 14px;
}

.jlt-advertiser-tools input,
.jlt-advertiser-tools select,
.jlt-advertiser-form input,
.jlt-advertiser-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
}

.jlt-advertiser-list {
  display: grid;
  gap: 10px;
}

.jlt-advertiser-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.jlt-advertiser-card strong,
.jlt-advertiser-card span,
.jlt-advertiser-card small {
  display: block;
}

.jlt-advertiser-card span,
.jlt-advertiser-card small {
  margin-top: 4px;
  color: var(--jlt-muted);
}

.jlt-advertiser-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #e8ede6;
  color: var(--jlt-ink);
  font-weight: 900;
}

.jlt-advertiser-avatar.large {
  width: 112px;
  height: 112px;
}

.jlt-advertiser-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jlt-advertiser-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.jlt-advertiser-form {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.jlt-advertiser-form label {
  display: grid;
  gap: 6px;
  color: var(--jlt-muted);
  font-size: 12px;
  font-weight: 800;
}

.jlt-advertiser-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.jlt-advertiser-stats article {
  min-height: 90px;
  padding: 14px;
  border: 1px solid var(--jlt-line);
  border-radius: 8px;
  background: #fbfcfa;
}

.jlt-advertiser-stats span {
  color: var(--jlt-muted);
  font-size: 12px;
  font-weight: 800;
}

.jlt-advertiser-stats strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.jlt-notice {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 4px solid var(--jlt-plaza);
  background: #fff;
}

.jlt-test-status[data-state="success"] {
  color: var(--jlt-plaza);
}

.jlt-test-status[data-state="error"] {
  color: var(--jlt-alert);
}

.hidden {
  display: none !important;
}

.joina-led-fullscreen {
  margin: 0;
  background: var(--jlt-base, #f5f7f2);
}

.joina-led-front-shell {
  min-height: 100vh;
  padding: 18px clamp(12px, 3vw, 36px);
  background: #f5f7f2;
}

.joina-led-front-shell #joina-led-app {
  max-width: none;
}

.joina-led-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background-color: #f5f7f2;
  background-image: linear-gradient(90deg, rgba(31, 122, 91, 0.2), rgba(214, 144, 33, 0.16)), var(--joina-led-login-cover, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto, cover;
  color: #17201c;
  font-family: Arial, Helvetica, sans-serif;
}

.joina-led-login-panel {
  width: min(420px, calc(100vw - 24px));
  padding: 28px;
  border: 1px solid #d9dfd8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(25, 37, 31, 0.12);
}

.joina-led-login-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17201c;
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.joina-led-login-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.joina-led-login-panel p {
  margin: 0 0 4px;
  color: #66706b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.joina-led-login-panel h1 {
  margin: 0 0 18px;
  line-height: 1.1;
}

.joina-led-login-form {
  display: grid;
  gap: 14px;
}

.joina-led-login-panel label,
.joina-led-login-panel input {
  display: block;
  width: 100%;
}

.joina-led-login-panel input {
  min-height: 40px;
  border: 1px solid #d9dfd8;
  border-radius: 8px;
}

.joina-led-login-panel .button-primary {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
}

.joina-led-login-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 4px solid #b3342d;
  background: #fff7f5;
  color: #b3342d;
  font-weight: 700;
}

.joina-led-login-panel .joina-led-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66706b;
  font-size: 12px;
  font-weight: 700;
}

.joina-led-login-panel .joina-led-remember input {
  width: auto;
  min-height: 0;
}

.joina-led-login-credit {
  margin-top: 18px;
  color: #66706b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1200px) {
  .jlt-screen-grid,
  .jlt-summary-grid,
  .jlt-work-grid,
  .jlt-settings-grid,
  .jlt-ad-tools {
    grid-template-columns: 1fr 1fr;
  }

  .jlt-renew-panel {
    grid-template-columns: 1fr 1fr;
  }

  .jlt-form,
  .jlt-settings-form,
  .jlt-settings-form fieldset,
  .jlt-email-settings {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 782px) {
  .jlt-header,
  .jlt-work-grid,
  .jlt-settings-grid,
  .jlt-screen-grid,
  .jlt-summary-grid,
  .jlt-form,
  .jlt-settings-form,
  .jlt-settings-form fieldset,
  .jlt-email-settings,
  .jlt-user-form {
    grid-template-columns: 1fr !important;
  }

  .jlt-header {
    display: grid;
  }

  .jlt-actions {
    justify-content: stretch;
  }

  .jlt-actions input,
  .jlt-actions button {
    width: 100%;
  }

  .jlt-dashboard-actions {
    display: grid;
  }

  .jlt-dashboard-action-buttons,
  .jlt-table-footer,
  .jlt-panel-actions {
    display: grid;
    justify-content: stretch;
  }

  .jlt-dashboard-action-buttons button,
  .jlt-table-footer button,
  .jlt-panel-actions button {
    width: 100%;
  }

  .jlt-user-list article,
  .jlt-media-field,
  .jlt-media-setting,
  .jlt-dashboard-actions,
  .jlt-dashboard-action-buttons,
  .jlt-table-footer,
  .jlt-ad-tools,
  .jlt-renew-panel,
  .jlt-advertiser-tools,
  .jlt-advertiser-card,
  .jlt-advertiser-profile,
  .jlt-advertiser-form,
  .jlt-advertiser-stats {
    grid-template-columns: 1fr;
  }
}
