/* Pluto platform styles. Every screen and every app uses these so the whole product looks like Pluto. */
:root {
  --navy: #0b1220;
  --navy-2: #1b2a4a;
  --blue: #1d4ed8;
  --blue-soft: #e8eefc;
  --gold: #e7a94c;
  --ink: #151c2c;
  --soft: #5b6478;
  --dim: #8a93a6;
  --line: #e3e6f0;
  --line-2: #d3d8e4;
  --bg: #f5f6fa;
  --side: #eef0f5;
  --surface: #ffffff;
  --ok: #1f9d6b;
  --ok-soft: #e6f5ee;
  --bad: #c24b4b;
  --bad-soft: #fbecec;
  --warn-soft: #fdf4e3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 4px 14px rgba(11, 18, 32, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); letter-spacing: -.015em; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 15.5px; margin: 0; }
p { margin: 0 0 12px; }
.sub { color: var(--soft); }
.small { font-size: 13px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- buttons and form controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--navy); background: var(--surface); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #ecc6c6; }
.btn.danger:hover { border-color: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
label .opt { font-weight: 400; color: var(--dim); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 90px; resize: vertical; }
.field { margin: 0 0 16px; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--soft); }
.field .err { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.formerr { color: var(--bad); font-size: 14px; margin: 0 0 12px; min-height: 0; }
.formerr:empty { display: none; }

/* ---------- cards, notes, pills ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 16px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.card-head h2 { margin: 0; }
.note { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; background: var(--blue-soft); color: var(--navy); }
.note.warn { background: var(--warn-soft); color: #6b4a12; }
.note.ok { background: var(--ok-soft); color: #145c40; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--side); color: var(--soft); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: #145c40; }
.pill.warn { background: var(--warn-soft); color: #7a5413; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.empty { text-align: center; color: var(--soft); padding: 26px 10px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl select { width: auto; padding: 6px 10px; font-size: 13.5px; }
.tbl .acts { text-align: right; white-space: nowrap; }
.tblwrap { overflow-x: auto; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appicon { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; }
.appicon .ic { width: 26px; height: 26px; stroke-width: 1.7; }
.appicon.lg { width: 72px; height: 72px; border-radius: 20px; }
.appicon.lg .ic { width: 32px; height: 32px; }
.appicon.muted { background: var(--side); color: var(--soft); }
.appicon.outline { background: var(--surface); color: var(--soft); border: 1.5px dashed var(--line-2); }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 48px 16px; }
.auth .logo { height: 34px; margin: 0 0 28px; }
.auth .card { width: 100%; max-width: 440px; padding: 30px; }
.auth.wide .card { max-width: 620px; }
.auth h1 { font-size: 24px; }
.auth .foot { margin: 18px 0 0; text-align: center; color: var(--soft); font-size: 14px; }
.auth .foot a { font-weight: 600; text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the shell: top bar, grey sidebar, main ---------- */
.top { position: sticky; top: 0; z-index: 20; height: 60px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 12px; }
.top .brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.top .brand img { height: 24px; display: block; }
.top .brand .orgname { color: var(--soft); font-weight: 600; font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .right { display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu > button { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 5px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 18, 32, .12); padding: 6px; z-index: 30; }
.menu .pop .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin: 0 0 6px; font-size: 13px; color: var(--soft); }
.menu .pop .who b { display: block; color: var(--ink); font-size: 14px; }
.menu .pop a, .menu .pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.menu .pop a:hover, .menu .pop button:hover { background: var(--bg); }
.menu .pop .lbl { padding: 8px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

.shell { display: flex; align-items: flex-start; min-height: calc(100vh - 60px); }
.side { width: 240px; flex: none; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #3c4559; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.side a:hover { background: rgba(11, 18, 32, .05); color: var(--navy); }
.side a.on { background: var(--surface); color: var(--navy); box-shadow: 0 1px 2px rgba(11, 18, 32, .08); }
.side a .ic { color: #6b7488; }
.side a.on .ic { color: var(--navy); }
.side .grp { padding: 16px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.side .sep { height: 1px; background: var(--line-2); margin: 10px 8px; }
.side .sp { flex: 1; min-height: 12px; }
.side .apphead { display: flex; align-items: center; gap: 10px; padding: 6px 12px 10px; font-weight: 700; color: var(--navy); font-size: 15px; }
.side .apphead .appicon { width: 30px; height: 30px; border-radius: 9px; }
.side .apphead .appicon .ic { width: 16px; height: 16px; }
.side .mini { width: 22px; height: 22px; border-radius: 7px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.side .mini .ic { width: 13px; height: 13px; color: #fff; stroke-width: 2; }
.side .none { padding: 4px 12px; font-size: 13px; color: var(--dim); }
main.main { flex: 1; min-width: 0; padding: 28px 32px 120px; }
.page { max-width: 1040px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.pagehead p { margin: 0; }

/* ---------- home ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 20px 12px; }
.apptile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); padding: 8px 4px; border-radius: 14px; }
.apptile:hover { background: var(--bg); }
.apptile .appicon { width: 64px; height: 64px; border-radius: 18px; }
.apptile .appicon .ic { width: 28px; height: 28px; }
.apptile .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.apptile .st { font-size: 12px; color: var(--soft); }
.homegrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps .tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.steps li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done .t { color: var(--soft); text-decoration: line-through; }
.steps .t { flex: 1; font-weight: 600; font-size: 14.5px; }
.steps .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--soft); }
.kv b { text-align: right; }
.ask { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid var(--navy); }
.ask .l { display: flex; gap: 16px; align-items: center; }

/* ---------- App Store ---------- */
.storerow { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.storerow:first-child { border-top: 0; padding-top: 0; }
.storerow .body { flex: 1; min-width: 0; }
.storerow .nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; color: var(--navy); font-size: 16px; }
.storerow .tg { color: var(--soft); font-size: 14px; margin: 2px 0 0; }
.storerow .ds { color: var(--soft); font-size: 14px; margin: 8px 0 0; }
.storerow .acts { display: flex; gap: 8px; flex: none; }

/* ---------- profile ---------- */
.logobox { display: flex; gap: 16px; align-items: center; }
.logoprev { width: 120px; height: 64px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; background: var(--bg); overflow: hidden; color: var(--dim); font-size: 12px; }
.logoprev img { max-width: 100%; max-height: 100%; }
.colors { display: flex; gap: 16px; flex-wrap: wrap; }
.colorpick { display: flex; align-items: center; gap: 10px; }
.colorpick input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: var(--surface); cursor: pointer; }
.colorpick input[type=text] { width: 110px; }
.preview { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.preview .pbar { height: 8px; border-radius: 99px; margin: 0 0 14px; }
.preview .pbtn { display: inline-block; color: #fff; border-radius: 9px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.profilegrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }

/* ---------- save bar (shared by the platform and every app) ---------- */
.savebar { position: fixed; left: 240px; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11, 18, 32, .06); padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.savebar.dirty { background: #fffaf0; border-top-color: var(--gold); }
.savebar .msg { font-size: 14px; color: var(--soft); }
.savebar.dirty .msg { color: #7a5413; font-weight: 600; }
.savebar .acts { display: flex; gap: 8px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 50; box-shadow: 0 8px 24px rgba(11, 18, 32, .2); }

/* ---------- responsive ---------- */
@media (max-width: 980px) { .homegrid, .profilegrid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: static; width: auto; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .side a { white-space: nowrap; padding: 8px 12px; }
  .side .grp, .side .sep, .side .sp, .side .none, .side .apphead { display: none; }
  main.main { padding: 20px 16px 120px; }
  .savebar { left: 0; padding: 12px 16px; }
  .top { padding: 0 16px; }
  .top .brand .orgname { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .storerow { flex-wrap: wrap; }
  .storerow .acts { width: 100%; justify-content: flex-end; }
  .menu > button .nm { display: none; }
}
@media (max-width: 520px) { .apps { grid-template-columns: repeat(3, 1fr); } h1 { font-size: 23px; } .auth .card { padding: 22px; } }

/* ---------- Get started page ---------- */
.addhero { display: flex; gap: 18px; align-items: center; margin: 0 0 16px; }
.addhero h1 { margin: 0; }
.addhero p { margin: 2px 0 0; }
.choices { gap: 14px; margin: 18px 0 14px; }
.choices .card { box-shadow: none; margin: 0; padding: 18px; display: flex; flex-direction: column; }
.choices .card p { flex: 1; }
.storeacts { display: flex; gap: 8px; flex-wrap: wrap; }
.pickbtn { justify-content: space-between; margin: 0 0 8px; }
.lockcard { padding: 40px 24px; }
.lockcard .appicon { margin: 0 auto 16px; }
.lockcard h1 { font-size: 22px; }
.lockcard p { max-width: 520px; margin: 0 auto 18px; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }
a.linkbtn { text-decoration: none; }
a.linkbtn:hover { text-decoration: underline; }
