@import '../nailounge-new/colors_and_type.css';

.nlm-app,
.nlm-login,
.nlm-app *,
.nlm-login * { box-sizing: border-box; }

body.nlm-app {
  margin: 0;
  display: grid;
  grid-template-columns: 236px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--stone);
  color: var(--ink-2);
}

#nlm-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: var(--space-5) 0 var(--space-4);
  background: var(--ink);
  color: var(--porcelain);
  overflow: hidden;
}

.nlm-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-4) var(--space-6);
  text-align: center;
}

.nlm-brand__mark {
  display: block;
  margin-bottom: var(--space-3);
  filter: brightness(0) invert(1);
  opacity: .9;
}

.nlm-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: .08em;
}

.nlm-brand__sub {
  margin-top: var(--space-1);
  color: var(--concrete-lt);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nlm-nav {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-3);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nlm-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-left: 2px solid transparent;
  border-radius: var(--r-xs);
  color: var(--stone-3);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}

.nlm-nav a:hover {
  background: color-mix(in srgb, var(--porcelain) 7%, transparent);
  color: var(--porcelain);
}

.nlm-nav a.active {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold-bright);
}

.nlm-account { padding: var(--space-4) var(--space-5) 0; }

.nlm-account__label {
  margin-bottom: var(--space-2);
  color: var(--concrete-lt);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nlm-account__name {
  overflow: hidden;
  color: var(--porcelain);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nlm-account__role {
  margin-top: var(--space-1);
  color: var(--concrete-lt);
  font-size: 12px;
}

.nlm-logout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) var(--space-3) 0;
  padding: var(--space-3);
  border: none;
  background: none;
  color: var(--concrete-lt);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nlm-logout:hover { color: var(--porcelain); }

.nlm-main {
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

#nlm-view {
  flex: 1;
  padding: var(--space-6);
  overflow: auto;
}

.nlm-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-3);
}

.nlm-placeholder p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
}

.nlm-topbar,
.nlm-scrim { display: none; }

#nlm-toast-root {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nlm-toast {
  max-width: 360px;
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
}

.nlm-toast--ok { border-left-color: var(--success); }
.nlm-toast--error { border-left-color: var(--danger); }

.nlm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: color-mix(in srgb, var(--ink) 45%, transparent);
}

.nlm-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  padding: var(--space-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}

.nlm-modal__title {
  margin: 0 0 var(--space-4);
  color: var(--fg1);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
}

.nlm-modal--has-close .nlm-modal__title { padding-right: calc(44px + var(--space-2)); }

.nlm-modal__body {
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 15px;
}

.nlm-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.nlm-modal__close:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.nlm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.nlm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-btn:disabled { cursor: default; opacity: .55; }

.nlm-btn--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  color: var(--porcelain);
}

.nlm-btn--outline {
  background: transparent;
  box-shadow: 0 0 0 1px var(--ink);
  color: var(--ink);
}

.nlm-btn--danger {
  background: transparent;
  box-shadow: 0 0 0 1px var(--danger);
  color: var(--danger);
}

.nlm-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.nlm-field label {
  color: var(--ink-3);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nlm-field input,
.nlm-field select,
.nlm-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}

.nlm-field input:focus,
.nlm-field select:focus,
.nlm-field textarea:focus { border-color: var(--gold); }

.nlm-media {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.nlm-media__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.nlm-media__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nlm-media__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.15;
}

.nlm-media__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nlm-media__filters {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.nlm-media__filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.nlm-media__chip {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 0 0 1px var(--stone-line-2);
  color: var(--ink-2);
  letter-spacing: .08em;
}

.nlm-media__chip.is-on {
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold);
  color: var(--ink);
}

.nlm-media__upload { flex: none; }

.nlm-media__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.nlm-media__card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nlm-media__preview {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: var(--stone-2);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.nlm-media__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.nlm-media__preview:hover img { transform: scale(1.02); }

.nlm-media__preview--video {
  align-content: center;
  gap: var(--space-2);
  background: var(--ink);
  color: var(--porcelain);
}

.nlm-media__play {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--gold-bright);
  border-radius: var(--r-pill);
  color: var(--gold-bright);
  font-size: 18px;
}

.nlm-media__video-label,
.nlm-media__preview-empty {
  font-size: 13px;
}

.nlm-media__card-body { padding: var(--space-4); }

.nlm-media__badges {
  display: flex;
  min-height: 24px;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.nlm-media__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--r-pill);
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.nlm-media__badge--ai {
  background: var(--gold-soft);
  color: var(--oak-deep);
}

.nlm-media__badge--danger {
  border: 1px solid var(--danger);
  color: var(--danger);
}

.nlm-media__badge--done {
  background: var(--moss-soft);
  color: var(--success);
}

.nlm-media__card-title {
  min-height: 2.8em;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.nlm-media__card-meta {
  margin: var(--space-1) 0 var(--space-3);
  color: var(--ink-3);
  font-size: 12px;
}

.nlm-media__detail-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-media__more {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0 var(--space-2);
}

.nlm-media__form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.nlm-media__form-actions--detail {
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-line);
}

.nlm-media__form-actions--detail .nlm-btn--danger { margin-right: auto; }

.nlm-media__consent-warning {
  margin: var(--space-3) 0 0;
  padding: var(--space-3);
  border-left: 3px solid var(--danger);
  background: var(--stone);
  color: var(--danger);
  font-size: 13px;
}

.nlm-media__source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: var(--space-2);
}

.nlm-media__source-choice {
  position: relative;
  cursor: pointer;
}

.nlm-media__source-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nlm-media__source-choice > span,
.nlm-media__source-link {
  display: flex;
  height: 100%;
  min-height: 112px;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1);
  overflow: hidden;
  border: 1px solid var(--stone-line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
}

.nlm-media__source-choice input:checked + span {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.nlm-media__source-choice img,
.nlm-media__source-link img,
.nlm-media__source-fallback {
  display: block;
  width: 100%;
  height: 76px;
  border-radius: var(--r-xs);
  background: var(--stone-2);
  object-fit: cover;
}

.nlm-media__source-choice small,
.nlm-media__source-link small {
  overflow: hidden;
  padding: 0 var(--space-1);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nlm-media__source-empty {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.nlm-media__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 14px;
}

.nlm-media__check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.nlm-media__ai-detail {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--stone-line);
}

.nlm-media__ai-detail h4 {
  margin: 0 0 var(--space-2);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-media__ai-detail p {
  margin: 0 0 var(--space-4);
  color: var(--ink-2);
  font-size: 14px;
  white-space: pre-wrap;
}

.nlm-posts {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.nlm-posts__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.nlm-posts__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nlm-posts__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.15;
}

.nlm-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.nlm-posts__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-5);
  border: 1px solid var(--stone-line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nlm-posts__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.nlm-posts__brand {
  color: var(--ink-3);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-posts__status {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--r-pill);
  background: var(--stone-2);
  color: var(--ink-2);
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nlm-posts__status--approved,
.nlm-posts__status--posted {
  background: var(--moss-soft);
  color: var(--success);
}

.nlm-posts__status--pending {
  background: var(--gold-soft);
  color: var(--oak-deep);
}

.nlm-posts__caption {
  display: -webkit-box;
  margin: var(--space-4) 0 var(--space-3);
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.nlm-posts__date {
  margin: 0 0 var(--space-3);
  color: var(--ink-3);
  font-size: 12px;
}

.nlm-posts__review,
.nlm-posts__picker-warning {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  border-left: 3px solid var(--danger);
  background: var(--stone);
  color: var(--danger);
  font-size: 13px;
}

.nlm-posts__review strong {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nlm-posts__review p {
  margin: var(--space-1) 0 0;
  white-space: pre-wrap;
}

.nlm-posts__card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
}

.nlm-posts__open,
.nlm-posts__published {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nlm-posts__mark {
  padding: var(--space-2) var(--space-3);
  font-size: 9px;
}

.nlm-posts__ai {
  margin: calc(var(--space-2) * -1) 0 var(--space-4);
}

.nlm-posts__suggestions {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--r-md);
  background: var(--gold-soft);
}

.nlm-posts__suggestions h4 {
  margin: 0 0 var(--space-3);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-posts__suggestion {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--stone-line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.nlm-posts__suggestion strong {
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nlm-posts__suggestion span { white-space: pre-wrap; }

.nlm-posts__media-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--stone-line);
  border-radius: var(--r-md);
}

.nlm-posts__media-row strong {
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nlm-posts__media-row p {
  margin: var(--space-1) 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.nlm-posts__editor-actions,
.nlm-posts__picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.nlm-posts__picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
}

.nlm-posts__picker-item { cursor: pointer; }

.nlm-posts__picker-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nlm-posts__picker-item span {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--stone-line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
}

.nlm-posts__picker-item input:checked + span {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-soft);
}

.nlm-posts__picker-item strong { color: var(--ink); }

.nlm-posts__picker-item small { color: var(--ink-3); }

.nlm-posts__picker-item em {
  margin-top: auto;
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
}

.nlm-posts__picker-empty {
  margin: 0;
  color: var(--ink-3);
}

.nlm-posts__picker-warning:empty { display: none; }

.nlm-cal {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.nlm-cal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.nlm-cal__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nlm-cal__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.15;
}

.nlm-cal__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nlm-cal__month {
  min-width: 150px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
}

.nlm-cal__nav {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--stone-line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 26px;
}

.nlm-cal__nav:hover,
.nlm-cal__nav:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.nlm-cal__body {
  border-radius: var(--r-md);
}

.nlm-cal__empty {
  margin: 0 0 var(--space-3);
  color: var(--ink-3);
  font-size: 13px;
}

.nlm-cal__scroll {
  overflow-x: auto;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nlm-cal__weekdays,
.nlm-cal__grid {
  display: grid;
  min-width: 840px;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
}

.nlm-cal__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nlm-cal__weekday {
  padding: var(--space-3);
  border-bottom: 1px solid var(--stone-line);
  color: var(--ink-3);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.nlm-cal__cell {
  min-height: 128px;
  min-width: 0;
  padding: var(--space-2);
  border-right: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  background: var(--surface);
}

.nlm-cal__cell--outside {
  background: var(--stone);
}

.nlm-cal__cell--today {
  border: 2px solid var(--gold);
}

.nlm-cal__day {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--ink-2);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
}

.nlm-cal__cell--outside .nlm-cal__day {
  color: var(--ink-3);
}

.nlm-cal__posts {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-1);
}

.nlm-cal__post {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  overflow: hidden;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--stone);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  text-align: left;
}

.nlm-cal__post:hover,
.nlm-cal__post:focus-visible {
  box-shadow: 0 0 0 1px var(--gold);
  outline: none;
}

.nlm-cal__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--ink-3);
}

.nlm-cal__dot--draft { background: var(--ink-3); }
.nlm-cal__dot--pending { background: var(--gold); }
.nlm-cal__dot--approved { background: var(--success); }
.nlm-cal__dot--posted { background: var(--ink); }

.nlm-cal__caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nlm-login {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-5);
  background: var(--stone);
}

.nlm-login-card {
  width: 100%;
  max-width: 380px;
  padding: var(--space-7) var(--space-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.nlm-login-mark { display: block; margin-bottom: var(--space-4); }

.nlm-eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.nlm-login-title {
  margin: 0 0 var(--space-5);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
}

.nlm-login-card .nlm-btn { width: 100%; margin-top: var(--space-2); }

.nlm-login-error {
  margin: var(--space-3) 0 0;
  color: var(--danger);
  font-size: 14px;
}

@media (max-width: 900px) {
  body.nlm-app { grid-template-columns: 1fr; }

  .nlm-main,
  #nlm-sidebar { height: 100dvh; }

  .nlm-topbar {
    display: flex;
    min-height: 56px;
    flex: none;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    background: var(--ink);
    color: var(--porcelain);
  }

  .nlm-topbar__menu {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--r-xs);
    background: none;
    color: var(--porcelain);
    cursor: pointer;
  }

  .nlm-topbar__mark { filter: brightness(0) invert(1); opacity: .92; }

  .nlm-topbar__brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: .08em;
  }

  #nlm-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    width: 236px;
    max-width: 84vw;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s .22s;
  }

  body.nlm-nav-open #nlm-sidebar {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow-dark);
    transition: transform .22s ease;
  }

  .nlm-scrim {
    position: fixed;
    inset: 0;
    z-index: 1190;
    display: block;
    background: color-mix(in srgb, var(--ink) 45%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  body.nlm-nav-open .nlm-scrim { opacity: 1; pointer-events: auto; }

  #nlm-view { padding: var(--space-4); }

  #nlm-toast-root {
    right: var(--space-3);
    bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    left: var(--space-3);
  }

  .nlm-toast { max-width: none; }

  .nlm-modal-overlay {
    align-items: flex-start;
    padding: var(--space-3);
    overflow: auto;
  }

  .nlm-modal {
    max-height: none;
    margin: var(--space-4) auto;
    padding: var(--space-5) var(--space-4);
  }

  .nlm-modal__actions { flex-wrap: wrap; }
  .nlm-modal__actions .nlm-btn { flex: 1 1 auto; }
  .nlm-field input,
  .nlm-field select,
  .nlm-field textarea { font-size: 16px; }

  .nlm-media__toolbar { flex-direction: column; }
  .nlm-media__upload { width: 100%; }
  .nlm-media__filters { gap: var(--space-3); }
  .nlm-media__filter-group { width: 100%; }
  .nlm-media__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .nlm-media__form-actions .nlm-btn { flex: 1 1 auto; }
  .nlm-media__form-actions--detail .nlm-btn--danger { margin-right: 0; }
  .nlm-posts__head { align-items: stretch; flex-direction: column; }
  .nlm-posts__new { width: 100%; }
  .nlm-posts__grid { grid-template-columns: 1fr; }
  .nlm-posts__media-row { align-items: stretch; flex-direction: column; }
  .nlm-posts__editor-actions .nlm-btn { flex: 1 1 auto; }
  .nlm-cal__head { align-items: stretch; flex-direction: column; }
  .nlm-cal__controls { width: 100%; justify-content: space-between; }
  .nlm-cal__month { min-width: 0; flex: 1; }
  .nlm-cal__scroll { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #nlm-sidebar,
  .nlm-scrim { transition: none; }
}
