/* homes.me/studio and /signin (src/client/studio.js). */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500.woff2) format("woff2"); }
/* Two themes, as on the site (src/client/style.css): Theme 2, the default, is the light brand kit; Theme 1 is the dark
   and gold look of emigeo.com. The same html[data-theme] and the same saved choice (localStorage "homes-theme"), so the
   site's dark/light button and the Studio's are one setting. */
:root {
  color-scheme: light;
  --o: #ff4000; --o-2: #e63a00; --on-o: #fff;
  --ink: #1b1d21; --ink-2: #374151; --mut: #6b7280;
  --line: #e5e7eb; --line-soft: #f0f1f3; --ctl: #d5d8de; --ctl-hover: #b8bcc5;
  --bg: #f6f7f9; --card: #fff; --field: #fff; --soft: #eef0f3;
  --tint: #fff7f3; --tint-on: #fff1eb; --tint-line: #ffd2c0; --glow: #ffe6dc;
  --ok: #067647; --ok-bg: #dcfae6; --ok-soft: #f3fbf6; --ok-line: #a6f4c5; --ok-ink: #054f31; --ok-pale: #ecfdf3;
  --warn: #b54708; --warn-bg: #fef0c7; --warn-ink: #93370d;
  --bad: #b42318; --bad-bg: #fee4e2; --bad-pale: #fef3f2; --bad-ink: #7a271a;
  --shadow: rgba(16, 24, 40, .12); --toast: #1b1d21; --toast-ink: #fff;
}
:root[data-theme="1"] {
  color-scheme: dark;
  --o: #d4b07a; --o-2: #f0d6a6; --on-o: #17130c;
  --ink: #ece7dd; --ink-2: #d9d3c8; --mut: #a39d92;
  --line: rgba(232, 220, 196, .12); --line-soft: rgba(232, 220, 196, .07); --ctl: rgba(232, 220, 196, .24); --ctl-hover: rgba(232, 220, 196, .4);
  --bg: #0b0d10; --card: #14181f; --field: #101318; --soft: #1a1f28;
  --tint: rgba(212, 176, 122, .07); --tint-on: rgba(212, 176, 122, .14); --tint-line: rgba(212, 176, 122, .35); --glow: rgba(212, 176, 122, .14);
  --ok: #75e0a7; --ok-bg: rgba(117, 224, 167, .14); --ok-soft: rgba(117, 224, 167, .06); --ok-line: rgba(117, 224, 167, .4); --ok-ink: #a6f4c5; --ok-pale: rgba(117, 224, 167, .1);
  --warn: #fdb022; --warn-bg: rgba(253, 176, 34, .14); --warn-ink: #fec84b;
  --bad: #fda29b; --bad-bg: rgba(253, 162, 155, .14); --bad-pale: rgba(253, 162, 155, .1); --bad-ink: #fecdca;
  --shadow: rgba(0, 0, 0, .45); --toast: #1a1f28; --toast-ink: #ece7dd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 Poppins, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
h1 { font-size: 26px; margin: 0 0 8px; font-weight: 500; }
h2 { font-size: 17px; margin: 0 0 10px; font-weight: 600; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.st-muted { color: var(--mut); }
.st-err { color: var(--bad); }
.st-lede { color: var(--ink-2); max-width: 860px; margin: 0 0 20px; }
.st-empty { padding: 40px; text-align: center; color: var(--mut); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.st-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-grow { flex: 1; }
.st-btn { font: 600 14px/1 Poppins, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ctl); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.st-btn:hover { border-color: var(--ctl-hover); }
.st-primary { background: var(--o); border-color: var(--o); color: var(--on-o); }
.st-primary:hover { background: var(--o-2); border-color: var(--o-2); }
.st-link { border: 0; background: none; color: var(--mut); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; padding: 0; }
.st-tag { display: inline-block; font-size: 12px; background: var(--soft); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); white-space: nowrap; }
.st-badge { display: inline-block; font-size: 11px; font-weight: 600; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 1px 7px; }
.st-badge.ok { background: var(--ok-bg); color: var(--ok); }
input, select, textarea { font: 15px/1.4 Poppins, system-ui, sans-serif; color: var(--ink); padding: 9px 12px; border: 1px solid var(--ctl); border-radius: 10px; background: var(--field); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--o); border-color: transparent; }
textarea { width: 100%; resize: vertical; }

/* Sign in */
.st-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 30% 20%, var(--glow), transparent 50%), var(--bg); }
.auth-card { background: var(--card); border-radius: 20px; padding: 36px; width: min(420px, 100%); box-shadow: 0 20px 60px var(--shadow); text-align: center; }
.auth-logo img { height: 34px; width: auto; }
.auth-card h1 { margin-top: 22px; }
.auth-card p { color: var(--ink-2); }
.g-btn { display: flex; justify-content: center; min-height: 44px; margin: 22px 0 6px; }
.auth-actions { display: flex; gap: 8px; justify-content: center; }
.dev-login { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--mut); }
.dev-login input { width: 100%; margin-top: 4px; }

/* The app */
.st-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.st-side { background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.st-brand img { height: 24px; width: auto; }
.st-brand span { font-weight: 600; color: var(--o); }
.st-nav { display: grid; gap: 2px; }
.st-nav a { text-decoration: none; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.st-nav a:hover { background: var(--bg); }
.st-nav a.on { background: var(--tint-on); color: var(--o); font-weight: 600; }
.st-me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.st-me img { border-radius: 50%; }
.st-me div { display: grid; line-height: 1.2; min-width: 0; }
.st-me strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.st-me small { color: var(--mut); text-transform: capitalize; }
.st-main { padding: 32px 36px 80px; min-width: 0; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; display: grid; }
.st-card b { font-size: 30px; font-weight: 600; }
.st-card span { color: var(--mut); font-size: 14px; }
.st-card:hover { border-color: var(--o); }
.st-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.st-panel p { margin: 0 0 12px; color: var(--ink-2); }
.st-progress { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.st-progress i { display: block; height: 100%; width: 0; background: var(--o); transition: width .2s; }
.st-langs { display: grid; gap: 10px; }
.st-lang { display: grid; grid-template-columns: 110px 1fr 220px; gap: 12px; align-items: center; text-decoration: none; }
.st-lang i { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--o) var(--w), var(--soft) var(--w)); }
.st-lang small { color: var(--mut); }
.st-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.st-filters input[type="search"], .st-filters input[type="email"] { flex: 1 1 260px; }
.st-search { width: 100%; margin-bottom: 12px; }
.st-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.st-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.st-src { min-width: 260px; max-width: 420px; }
.st-cell { min-width: 140px; max-width: 260px; cursor: pointer; border-left: 1px solid var(--line-soft); }
.st-cell:hover { background: var(--tint); }
.st-cell.set { background: var(--ok-soft); }
.st-add { color: var(--o); font-size: 13px; }
.st-paths a { display: block; font-size: 12px; color: var(--mut); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.st-edit-tr td { background: var(--tint); }
.st-editor { background: var(--field); border: 1px solid var(--tint-line); border-radius: 12px; padding: 14px; margin: 8px 0; display: grid; gap: 10px; }
.st-editor-head { display: grid; gap: 2px; }
.st-editor-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-editor-foot label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--mut); }
.st-img-edit { display: grid; grid-template-columns: 200px 1fr; gap: 14px; }
.st-img-edit img { width: 100%; max-height: 160px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.st-img-edit label { display: grid; gap: 4px; font-size: 13px; color: var(--mut); margin-bottom: 8px; }
.st-pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 16px; }
.st-list { display: grid; gap: 10px; }
.st-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.st-item header { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.st-item footer { display: flex; gap: 8px; justify-content: flex-end; }
.st-item footer:empty { display: none; }
.st-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-diff p { margin: 0; padding: 10px 12px; border-radius: 10px; word-break: break-word; }
.st-diff .was { background: var(--bad-pale); color: var(--bad-ink); text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .4); }
.st-diff .now { background: var(--ok-pale); color: var(--ok-ink); }
.st-diff-img { display: flex; gap: 12px; }
.st-diff-img figure { margin: 0; }
.st-diff-img img { width: 220px; height: 140px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.st-diff-img figcaption { font-size: 12px; color: var(--mut); }
.st-status { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--soft); }
.s-published { background: var(--ok-bg); color: var(--ok); }
.s-pending { background: var(--warn-bg); color: var(--warn); }
.s-rejected { background: var(--bad-bg); color: var(--bad); }
.st-pages { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.st-pages li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.st-pages a { text-decoration: none; }
.st-pages a:first-child:hover { color: var(--o); }
.st-str { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.st-str img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.st-str:not(:has(img)) { grid-template-columns: 1fr auto; }
.st-str + .st-editor { margin-top: -4px; }
.st-str-act { display: flex; gap: 4px; }
.st-chip { font: 600 11px/1 Poppins, system-ui, sans-serif; border: 1px solid var(--ctl); background: var(--card); border-radius: 999px; padding: 6px 8px; cursor: pointer; }
.st-chip.set { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.st-chip:hover { border-color: var(--o); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.st-tile { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; text-decoration: none; display: grid; }
.st-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); display: block; }
.st-tile span { font-size: 12px; color: var(--mut); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tile .st-badge { position: absolute; top: 8px; left: 8px; }
.st-tile:hover { border-color: var(--o); }
.st-tile.set { border-color: var(--ok-line); }
.st-people td img { border-radius: 50%; float: left; margin-right: 10px; }
.st-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--toast); color: var(--toast-ink); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 10; }
.st-toast.err { background: #b42318; color: #fff; }
@media (max-width: 820px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .st-nav { display: flex; flex-wrap: wrap; }
  .st-me { margin: 0; border: 0; }
  .st-main { padding: 20px 16px 80px; }
  .st-diff, .st-img-edit { grid-template-columns: 1fr; }
  .st-lang { grid-template-columns: 90px 1fr; }
  .st-lang small { grid-column: 1 / -1; }
}
/* The Check queue (studio.js checks): priorities and the checklist. */
.st-pri { display: inline-block; font: 600 11px/1 Poppins, system-ui, sans-serif; border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.st-pri-3 { background: var(--bad-bg); color: var(--bad); }
.st-pri-2 { background: var(--warn-bg); color: var(--warn-ink); }
.st-pri-1 { background: var(--soft); color: var(--ink-2); }
.st-how { margin: 0 0 18px; }
.st-how summary { cursor: pointer; font-weight: 600; }
.st-how ol { padding-left: 22px; }
.st-actions { white-space: nowrap; }
.st-actions .st-btn { margin-left: 6px; }
/* The dark/light button (the site's .theme-toggle) and the logo for each theme. */
.st-theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; background: none; color: var(--mut); border: 1px solid var(--line); cursor: pointer; flex: none; }
.st-theme:hover { color: var(--ink); border-color: var(--ctl-hover); }
.st-theme .icon-sun { display: none; }
:root[data-theme="1"] .st-theme .icon-moon { display: none; }
:root[data-theme="1"] .st-theme .icon-sun { display: block; }
.logo-dark { display: none; }
:root[data-theme="1"] .logo-light { display: none; }
:root[data-theme="1"] .logo-dark { display: inline; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auth-card { position: relative; }
.auth-card > .st-theme { position: absolute; top: 14px; right: 14px; }
