/* Murugan admin console (admin.muruga.live). Same palette and type as the local editorial studio (admin/). */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f4ec;
  color: #243b35;
  font:
    15px/1.65 system-ui,
    sans-serif;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid #dfe2d6;
  background: #fffdf8;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  border-radius: 10px;
}
.brand strong {
  display: block;
  font:
    24px/1.1 Georgia,
    serif;
  color: #153f38;
}
.brand small,
.eyebrow {
  color: #ad583e;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
#who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #66736a;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 32px 24px 80px;
}
h1 {
  font:
    44px/1.1 Georgia,
    serif;
  color: #153f38;
  margin: 12px 0 16px;
}
h2 {
  font:
    28px/1.2 Georgia,
    serif;
  color: #153f38;
  margin: 0 0 16px;
}
h3 {
  font: 600 15px system-ui;
  margin: 0 0 8px;
}
.signin {
  max-width: 520px;
  margin: 8vh auto;
  padding: 40px;
  background: #fffdf8;
  border: 1px solid #dfe2d6;
  border-radius: 20px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.tabs button {
  background: transparent;
  color: #243b35;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 0;
  font: 500 14px system-ui;
}
.tabs button[aria-current='page'] {
  background: #153f38;
  color: #fff;
}
button {
  cursor: pointer;
  background: #153f38;
  color: #fff;
  border: 1px solid #153f38;
  border-radius: 9px;
  font: 600 13px system-ui;
  padding: 11px 16px;
  min-height: 42px;
}
button.secondary {
  background: transparent;
  color: #153f38;
  border-color: #d0d8c8;
}
button.danger {
  background: transparent;
  color: #ad583e;
  border-color: #e3c3b6;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat,
.panel {
  background: #fffdf8;
  border: 1px solid #dfe2d6;
  border-radius: 16px;
  padding: 20px;
}
.stat strong {
  display: block;
  font:
    34px/1.1 Georgia,
    serif;
  color: #153f38;
}
.stat span {
  font-size: 12px;
  color: #66736a;
}
.stat.warn strong {
  color: #ad583e;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eceee5;
  vertical-align: top;
}
th {
  font-size: 11px;
  letter-spacing: 1px;
  color: #66736a;
  text-transform: uppercase;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eaede3;
}
.pill.current,
.pill.ok {
  background: #d9eadf;
  color: #153f38;
}
.pill.draft,
.pill.bad {
  background: #f6e3da;
  color: #ad583e;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d0d8c8;
  border-radius: 9px;
  background: #fdfcf7;
  color: #243b35;
  font: 14px/1.6 system-ui;
  padding: 10px 12px;
}
textarea {
  min-height: 360px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}
.spread {
  justify-content: space-between;
}
.mt {
  margin-top: 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 16px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.checks label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 400;
  margin: 4px 0;
}
.checks input {
  width: auto;
}
.muted {
  color: #66736a;
  font-size: 13px;
}
.notice {
  background: #eaede3;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  margin: 0 0 20px;
}
.notice.warn {
  background: #f6e3da;
  color: #7a3a26;
}
.status {
  min-height: 1.5em;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: #153f38;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
}
.toast.error {
  background: #ad583e;
}
:focus-visible {
  outline: 3px solid #b58a48;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  h1 {
    font-size: 34px;
  }
  .signin {
    padding: 28px 20px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
