/* ntail admin console — light theme, ntail's own green accent
   (--accent* tokens intentionally keep their historical names below;
   only the VALUES were remapped to ntail's palette, sourced from the
   shipped site CSS at site/includes/header.html, not the illustration
   prompt files which use different approximated colors). */
:root {
  --bg:        #fafafa;
  --panel:     #ffffff;
  --panel-2:   #f6f8fb;
  --line:      #e7eaf1;
  --line-2:    #d3d9e6;
  --text:      #111827;
  --text-2:    #4b5468;
  --muted:     #717b91;

  --accent:        #059669;   /* ntail brand green */
  --accent-2:      #047857;
  --accent-soft:   #ecfdf5;
  --accent-line:   #a7d9c6;

  --ok:        #1f9d55;
  --ok-soft:   #e3f6ec;
  --warn:      #c97a00;
  --warn-soft: #fdf1de;
  --danger:    #c2382e;
  --danger-soft: #fde7e4;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20,20,40,.04), 0 8px 24px rgba(20,20,40,.06);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* At least the window's height, never capped at it: the sticky header
   stays only while its parent, the body, is in view. */
html { height: 100%; }
body { min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 13px var(--mono); background: var(--panel-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #fff; color: var(--text); cursor: pointer; font-weight: 500;
  transition: background .12s ease, border-color .12s ease, transform .05s ease;
}
.btn:hover { background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c8c4; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font-size: 13px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .02em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #c8ecd9; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d8a4; }
.badge.muted { background: var(--panel-2); color: var(--muted); }
.badge.accent { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }

.env-pill { padding: 1px 8px; border-radius: 999px; font-size: 11px; background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line); margin-right: 8px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

.flash { background: var(--ok-soft); border: 1px solid #c8ecd9; color: var(--ok); padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; }
.flash.error { background: var(--danger-soft); border-color: #f0c8c4; color: var(--danger); }

.secret-panel { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; margin-bottom: 22px; }
.secret-panel code { word-break: break-all; }

.code-block { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }

.inline-form { display: inline-block; margin: 0; }
