:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  color: #24332f;
  background: #f6f8f7;
  font-synthesis: none;
  --green: #24735a;
  --line: #e3e9e6;
  --muted: #76847d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  transition: background 0.15s;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a1cdbd;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 15px;
}
h3 {
  font-size: 14px;
}
small {
  display: block;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--green);
  color: white;
  border-radius: 17px;
  font-size: 26px;
  margin-bottom: 28px;
}
.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 20px;
  margin: 0;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 15% 10%, #e0eee5, transparent 60%), #f6f8f7;
}
.login-card {
  width: 420px;
  max-width: 100%;
  background: white;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 15px 70px #15392a08;
}
.login-card .muted {
  margin: 12px 0 26px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
input,
textarea,
select {
  display: block;
  border: 1px solid #dce3df;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: #263c32;
  max-width: 100%;
}
input,
textarea {
  width: 100%;
  margin-top: 8px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.login-card label {
  margin-bottom: 20px;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #1a6049;
}
.secondary {
  background: white;
  border-color: #dce4df;
  color: #425c4e;
}
.danger {
  background: #fff5f2;
  color: #b34f3b;
  border-color: #f1d6ce;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
  padding: 13px 16px;
}
.error {
  color: #ac483b;
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.6;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  width: 224px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
}
.brand small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  color: #9ba79f;
  margin: 40px 14px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  color: #6c7c72;
  padding: 13px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.nav-item.active {
  color: var(--green);
  background: #eaf3ee;
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sidebar-bottom small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.avatar {
  background: #e8efea;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}
.icon-btn {
  margin-left: auto;
  background: none;
  border: 0;
  color: #7a887e;
  font-size: 20px;
}
main {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 69px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 12px;
  color: #849188;
}
.environment {
  border: 1px solid #dce8e0;
  border-radius: 20px;
  padding: 5px 10px;
  color: #66836f;
  font-size: 10px;
}
.main-content {
  padding: 35px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}
.page-heading .muted {
  margin-top: 11px;
}
.page-heading > .secondary,
.media-strip > .secondary {
  flex-shrink: 0;
  white-space: nowrap;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7b71;
  font-size: 12px;
}
select {
  padding: 8px 30px 8px 11px;
  font-size: 12px;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(390px, 1.2fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.panel-title {
  padding: 20px 22px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.records {
  min-height: 290px;
  padding: 8px;
}
.record {
  width: 100%;
  border: 0;
  background: white;
  border-radius: 7px;
  padding: 16px;
  text-align: left;
  display: block;
  border-bottom: 1px solid #f2f4f2;
}
.record:hover {
  background: #f8faf8;
}
.record.selected {
  background: #edf5f0;
}
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.record-meta {
  font-size: 11px;
  color: #829087;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.badge {
  font-size: 10px;
  border-radius: 4px;
  padding: 4px 7px;
  background: #f8f0dc;
  color: #9d7b30;
  white-space: nowrap;
}
.badge.APPROVED {
  background: #e6f3eb;
  color: #397d55;
}
.badge.REJECTED {
  background: #fbede8;
  color: #b36a53;
}
.pagination {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf0ee;
  gap: 6px;
}
.pagination .secondary {
  font-size: 11px;
  padding: 7px 10px;
}
.empty-state {
  padding: 75px 24px;
  text-align: center;
  color: #91a095;
}
.empty-state h2 {
  color: #697c6e;
  margin: 16px 0 10px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
}
.empty-icon {
  display: block;
  font-size: 35px;
  color: #b6cbbb;
}
.detail-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.detail-header h2 {
  font-size: 22px;
  margin: 12px 0 8px;
}
.detail-body {
  padding: 24px;
}
.detail-section {
  margin-bottom: 25px;
}
.detail-section h3 {
  margin-bottom: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 20px 0;
}
.field-label {
  font-size: 11px;
  color: #8b978f;
  margin-bottom: 6px;
}
.field-value {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.tag {
  background: #f0f5f1;
  color: #66816c;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
}
.media-strip {
  background: #f7f9f7;
  border: 1px dashed #dce5dd;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.media-strip .muted {
  font-size: 11px;
}
.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.checks {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.checks label {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  align-items: flex-start;
  font-weight: 400;
}
.checks input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.review-form > label {
  margin-top: 18px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.notice {
  border: 1px solid #cfdfd2;
  background: #eef6ee;
  color: #52755c;
  font-size: 13px;
  border-radius: 8px;
  padding: 13px 17px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.notice.failure {
  background: #fff3ef;
  border-color: #eed8cf;
  color: #9b5742;
}
.assignment {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}
.assignment select {
  flex: 1;
}
.history-item {
  padding: 13px;
  border-radius: 7px;
  background: #f7f9f7;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 500;
  color: #8a978e;
  background: #fafbf9;
}
td,
th {
  padding: 17px 20px;
  border-bottom: 1px solid #eef1ee;
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .main-content {
    padding: 45px 55px;
  }
  .review-layout {
    grid-template-columns: minmax(340px, 0.8fr) minmax(450px, 1.2fr);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 185px;
    padding: 24px 14px;
  }
  .main-content {
    padding: 25px 20px;
  }
  .topbar {
    padding: 0 22px;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .records {
    min-height: 0;
    max-height: 420px;
    overflow: auto;
  }
  .detail-panel {
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 14px;
  }
  .sidebar .nav-label {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    margin-top: 12px;
    padding-top: 12px;
  }
  nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
  }
  .nav-item {
    margin: 0;
    padding: 10px;
  }
  .topbar {
    height: 48px;
    font-size: 10px;
    padding: 0 18px;
  }
  .main-content {
    padding: 25px 14px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 24px;
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .detail-body,
  .detail-header {
    padding: 20px;
  }
  .field-grid {
    gap: 12px;
  }
  .login-card {
    padding: 28px;
  }
  #logout {
    display: block;
  }
}
.rotation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(390px, 1.2fr);
  gap: 22px;
  align-items: start;
}
.compact {
  margin-top: 0;
}
.channel-card {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.channel-pick {
  border: 0;
  background: none;
  width: 100%;
  padding: 0;
  text-align: left;
  margin-bottom: 14px;
}
.channel-pick .muted {
  margin-top: 9px;
}
.channel-form {
  padding: 22px;
}
.channel-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.channel-form label {
  margin-bottom: 18px;
  font-size: 12px;
}
.channel-form select {
  margin-top: 8px;
  width: 100%;
}
.channel-form #channel-check {
  margin-bottom: 10px;
}
.channel-form #channel-check-result {
  margin-bottom: 20px;
}
.window-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 14px;
}
.publish-window {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}
.weekday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-form .weekday-list label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  font-weight: 400;
}
.weekday-list input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--green);
}
.window-times {
  display: flex;
  align-items: center;
  gap: 8px;
}
.window-times input {
  width: calc((100% - 86px) / 2);
  min-width: 0;
  margin: 0;
  font-size: 12px;
  padding: 8px;
}
.window-times button {
  padding: 7px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.form-section-title {
  margin: 26px 0 12px;
}
.channel-form .checks input {
  flex-shrink: 0;
}
.channel-form #channel-save {
  margin-top: 20px;
}
.publish-log {
  margin-top: 22px;
}
#channel-list .empty-state {
  padding: 50px 20px;
}
@media (max-width: 1100px) {
  .rotation-layout {
    grid-template-columns: 1fr;
  }
  .channel-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .channel-pick {
    margin: 0;
  }
  .channel-card > .primary,
  .channel-card > .secondary {
    flex-shrink: 0;
  }
}
@media (max-width: 600px) {
  .channel-form {
    padding: 18px;
  }
  .channel-card {
    display: block;
  }
  .channel-pick {
    margin-bottom: 14px;
  }
  .toolbar .compact {
    flex-wrap: wrap;
  }
  .weekday-list {
    gap: 10px;
  }
  .sidebar nav {
    flex-wrap: wrap;
  }
  .sidebar .nav-item {
    width: auto;
    flex: 1;
  }
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.search-form input {
  flex: 1;
  min-width: 0;
}
.search-form label {
  white-space: nowrap;
}
.profile-edit {
  display: grid;
  gap: 24px;
}
.profile-edit label {
  display: grid;
  gap: 8px;
}
.profile-edit .field-grid {
  row-gap: 16px;
}
.profile-edit textarea {
  min-height: 150px;
}
.profile-edit > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
}
.profile-edit > label input {
  width: 18px;
  flex: none;
  margin-top: 4px;
}
.media-order {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.media-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.media-row > span {
  flex: 1;
  min-width: 150px;
}
.media-row button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.details-body details,
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  color: var(--green);
  margin-bottom: 12px;
}
details > p {
  margin: 8px 0;
}
.history-item p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.history-item button {
  margin-top: 8px;
}
.button-link {
  display: inline-block;
  padding: 10px 14px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  margin: 12px 0;
}
.detail-section > label {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.detail-section textarea {
  min-height: 80px;
}
.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.inline-check input {
  width: 18px;
}
.badge.OFF_SHELF {
  background: #eee;
  color: #68756d;
}
#channel-capacity {
  white-space: normal;
  line-height: 1.8;
}
.actions {
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .search-form {
    flex-wrap: wrap;
  }
  .search-form label {
    width: 100%;
  }
  .search-form input {
    width: 65%;
  }
  .media-row > span {
    flex-basis: 100%;
  }
  .profile-edit .actions button {
    width: 100%;
  }
}

.media-order {
  max-height: 300px;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}
.detail-section {
  margin-bottom: 24px;
}
#review-queue > .history-item + .history-item {
  margin-top: 16px;
}

.feedback-row {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.feedback-row small {
  display: block;
  margin-top: 6px;
}
#feedback-detail > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 8px;
}
#feedback-detail > label.inline-check {
  flex-direction: row;
  align-items: center;
}
#feedback-detail > button {
  margin: 8px 8px 8px 0;
}
#feedback-detail input:not([type="checkbox"]),
#feedback-detail select {
  width: 100%;
}
#feedback-settings {
  margin-bottom: 20px;
}
#feedback-settings summary {
  cursor: pointer;
  font-weight: 600;
}
#feedback-settings-body > label {
  display: block;
  margin: 12px 0;
}

@media (max-width: 600px) {
  .sidebar nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
  }
  .sidebar .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 8px;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .page-heading > .actions button {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}
