/* Frank Schoonatra staff portal — "think Frank Sinatra": midnight navy, cream, brass. */
[hidden] { display: none !important; }
:root {
  --bg: #10141C; --panel: #1A2130; --panel2: #151B27; --line: #2A3242; --line2: #3A4355;
  --cream: #F3ECDD; --text2: #E6DECC; --muted: #A9A291; --faint: #7E7868;
  --gold: #C9A45C; --gold2: #E2C487; --goldbg: #2A2416; --warn: #E8B49A; --warnbg: #2A1E1A;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif; --sans: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--cream); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .01em; }
h1 { font-size: 30px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 230px; flex: none; border-right: 1px solid var(--line); padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 22px; text-decoration: none; }
.brand img { width: 64px; height: auto; }
.brand span { font-family: var(--serif); letter-spacing: .22em; font-size: 12px; color: var(--gold); line-height: 1.35; }
.nav a { display: block; text-decoration: none; color: var(--cream); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.nav a:hover { background: var(--panel); }
.nav a.on { background: var(--gold); color: var(--bg); font-weight: 600; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side .who { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px; }
.main { flex: 1; min-width: 0; padding: 32px 40px 60px; max-width: 1200px; }
.top { display: none; }
.tabs { display: none; }
@media (max-width: 820px) {
  .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
  .top img { width: 34px; } .top .t { font-family: var(--serif); font-size: 18px; flex: 1; } .top button { background: none; border: 0; color: var(--muted); font-size: 13px; }
  .tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel2); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
  .tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 6px 2px; border-radius: 8px; }
  .tabs a .i { display: block; font-size: 19px; line-height: 1.2; }
  .tabs a.on { color: var(--gold); }
  h1 { font-size: 26px; }
}

/* building blocks */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.card.link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.card.link:hover { border-color: var(--gold); }
.card.gold { border-color: var(--gold); }
.banner { border-radius: 10px; padding: 12px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.banner.warn { background: var(--warnbg); border: 1px solid #B9785A; }
.banner.info { background: var(--goldbg); border: 1px solid #6D5A33; }
.banner .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); }
.btn { height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--gold); background: var(--gold); color: var(--bg); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.quiet { background: transparent; color: var(--cream); border-color: var(--line2); font-weight: 500; }
.btn.warn { background: var(--warn); border-color: var(--warn); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; height: 48px; font-size: 15px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], select, textarea {
  background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 0 12px; height: 44px; color: var(--cream); font-size: 15px; width: 100%; }
textarea { padding: 10px 12px; height: auto; min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text2); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 1px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--line2); font-size: 12px; white-space: nowrap; }
.pill.gold { border-color: var(--gold); color: var(--gold2); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.err { color: var(--warn); font-size: 14px; }

/* tables */
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 12px; white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
td select { height: 36px; font-size: 13px; min-width: 170px; }
tr.dim td { opacity: .55; }

/* login */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.login .mark { text-align: center; } .login .mark img { width: 120px; }
.login .mark .n { font-family: var(--serif); letter-spacing: .26em; color: var(--gold); font-size: 14px; margin-top: 6px; }
.venues { display: flex; justify-content: center; gap: 28px; align-items: center; opacity: .7; margin-top: 8px; }
.venues img { height: 28px; }

/* wiki */
.folder { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--cream); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.folder:first-child { border-top: 0; }
.folder:hover { background: var(--panel2); }
.list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.crumbs { font-size: 13px; color: var(--muted); } .crumbs button { background: none; border: 0; color: var(--gold); padding: 0; cursor: pointer; font-size: 13px; }

/* org chart */
.org { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.org .top-box { border: 1px solid var(--gold); background: var(--panel); border-radius: 12px; padding: 16px; text-align: center; }
.org .top-box .n { font-family: var(--serif); font-size: 19px; margin-top: 4px; }
.org .stem { width: 1px; height: 14px; background: var(--gold); margin: -14px auto 0; }
.org .group { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.org .group .logo { position: absolute; top: 16px; right: 18px; height: 30px; opacity: .75; }
.org .r { display: flex; flex-direction: column; gap: 6px; }
.org .r.sub { padding-left: 12px; border-left: 1px solid var(--line2); }
.org .r.div { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.org .names { display: flex; flex-wrap: wrap; gap: 8px; }
.org .name { background: #222A3A; border: 1px solid var(--line2); border-radius: 18px; padding: 6px 14px; font-size: 14px; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--cream); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 20; }
#toast.show { opacity: 1; }
dialog { background: var(--panel); color: var(--cream); border: 1px solid var(--line2); border-radius: 14px; padding: 22px; width: min(480px, 92vw); }
dialog::backdrop { background: rgba(5, 8, 12, .7); }
