/* FlightMakerPro: the whole site's look. Dark, after Station Master Cloud. */
:root {
    --page: #18191a;
    --dash: #35363a;
    --card: #242526;
    --raised: #3a3b3c;
    --postit: #424242;
    --bar: #2b2b2b;
    --text: #e4e6eb;
    --muted: #b0b3b8;
    --link: #4da3ff;
    --blue: #007bff;
    --green: #31c46a;
    --amber: #f3b02f;
    --red: #ff6b6b;
    --line: #3e4042;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.dash { background: var(--dash); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 0 0 12px; }
small { color: var(--muted); font-size: 12px; }
code { background: var(--raised); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* The bar along the top. */
.navbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 18px;
    height: 99px; padding: 0 22px;
    background: var(--bar); box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.brand img { display: block; height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a, .nav-bell {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 78px; padding: 9px 10px; border-radius: 10px;
    color: var(--muted); font-size: 12px;
}
.nav-links a:hover, .nav-bell:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.nav-links a.on, .nav-bell.on { color: #fff; background: #333435; }
.navbar svg { width: 26px; height: 26px; fill: currentColor; }
.badge {
    position: absolute; top: 3px; right: 14px;
    min-width: 19px; padding: 1px 5px; border-radius: 10px;
    background: #e41e3f; color: #fff; font-size: 11px; font-weight: 700; text-align: center;
}
.badge.still { position: static; display: inline-block; }
.nav-search { margin-left: auto; }
.nav-search input {
    width: 240px; padding: 10px 18px; border: 0; border-radius: 22px;
    background: var(--raised); color: var(--text); font: inherit; outline: none;
}
.nav-search input:focus { box-shadow: 0 0 0 2px var(--blue); }
.nav-bell { min-width: 48px; }
.nav-bell .badge { right: 2px; }
.nav-me { position: relative; }
.nav-me summary { list-style: none; cursor: pointer; }
.nav-me summary::-webkit-details-marker { display: none; }
.nav-me summary img { display: block; border-radius: 50%; object-fit: cover; border: 2px solid var(--raised); }
.menu {
    position: absolute; right: 0; top: 54px; width: 220px; padding: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.menu-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-who b, .menu-who span { display: block; }
.menu-who span { color: var(--muted); font-size: 13px; }
.menu a, .menu button {
    display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px;
    background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--raised); text-decoration: none; }
.nav-guest { margin-left: auto; display: flex; gap: 10px; }
.flash { margin: 14px auto 0; max-width: 760px; padding: 10px 16px; border-radius: 8px; background: #1f3a2a; color: #b9f0cf; }

/* Things every page uses. */
.card { background: var(--card); border-radius: 10px; padding: 18px; margin-bottom: 15px; }
.btn {
    display: inline-block; padding: 9px 18px; border: 0; border-radius: 8px;
    background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { background: #1a88ff; text-decoration: none; }
.btn.quiet { background: var(--raised); color: var(--text); }
.btn.quiet:hover { background: #4e4f50; }
.btn.wide { width: 100%; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.form label small { font-weight: 400; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .key-new input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--raised); color: var(--text); font: inherit; font-weight: 400; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.form.row { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 14px; }
.form > .btn:not(.wide) { justify-self: start; }
.note { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--raised); list-style: none; }
.note.good { background: #1f3a2a; color: #b9f0cf; }
.note.bad { background: #432326; color: #ffc9c9; }
.aside { color: var(--muted); font-size: 14px; }
.fold { margin-top: 16px; }
.fold summary { cursor: pointer; color: var(--link); margin-bottom: 12px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.page { max-width: 1180px; margin: 0 auto; padding: 22px 18px 60px; }
.page.narrow { max-width: 760px; }
.page h2 { margin-top: 4px; }
.page > h2 { margin-top: 26px; }

/* The pages before logging in. */
.door { max-width: 420px; margin: 0 auto; padding: 48px 18px; text-align: center; }
.door-mark { max-width: 100%; height: auto; }
.door-says { color: var(--muted); margin: 6px 0 26px; }
.door-card { text-align: left; padding: 26px; }
.door-foot { color: var(--muted); }

/* The dashboard: boards, the wall, the feed. */
.dashboard { display: grid; grid-template-columns: 250px 1fr 300px; gap: 18px; padding: 18px; align-items: start; }
.wall-head { display: flex; align-items: baseline; gap: 12px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.tile {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 8px 12px; border-radius: 10px;
    background: var(--card); color: var(--text); text-align: center; min-width: 0;
}
.tile:hover { background: #2d2e2f; text-decoration: none; }
.tile > span, .tile > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { position: relative; display: block; width: 110px; height: 110px; flex: none; margin-bottom: 8px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--raised); display: block; }
.avatar .dot { display: none; position: absolute; right: 7px; bottom: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--card); }
.online .avatar img, .avatar.online img { border-color: var(--green); }
.online .avatar .dot, .avatar.online .dot { display: block; }
.avatar.big { width: 140px; height: 140px; margin: 0; }
.avatar.big .dot { right: 11px; bottom: 11px; }
.tile .call { font-size: 16px; letter-spacing: .4px; }
.tile .where, .tile .seen { color: var(--muted); font-size: 12px; }
.tile .sim { color: var(--green); font-size: 12px; font-weight: 600; }
.tile .nums { font-size: 12px; font-variant-numeric: tabular-nums; }
.tile .mission { margin-top: 4px; padding: 2px 8px; border-radius: 10px; background: var(--raised); color: var(--amber); font-size: 12px; }
.tile .server { color: var(--link); font-size: 12px; }
.tile:not(.online) .avatar img { filter: grayscale(.6) brightness(.8); }
.side-title { margin: 4px 0 12px; }
.board { background: var(--card); border-radius: 10px; padding: 14px; margin-bottom: 15px; }
.board h3 { margin: 0 0 4px; font-size: 14px; }
.board .when { display: block; margin-bottom: 8px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.board li img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.board li .rank { width: 16px; color: var(--muted); text-align: right; flex: none; }
.board li a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .of { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .count { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.board .none { color: var(--muted); font-size: 13px; margin: 0; }
.feed { display: grid; gap: 10px; }
.postit { display: flex; gap: 10px; padding: 10px; border-radius: 8px; background: var(--postit); color: var(--text); font-size: 13px; }
a.postit:hover { background: #4c4c4c; text-decoration: none; }
.postit img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; }
.postit span { min-width: 0; overflow-wrap: anywhere; }
.postit small, .postit em { display: block; }
.postit em { color: var(--muted); font-style: normal; }
.postit.fresh { background: #2f4460; }
.feed.plain .postit { background: var(--card); }
.feed.plain .postit.fresh { background: #2f4460; }
.empty { text-align: center; padding: 40px 20px; }

/* A pilot's page. */
.profile-head { display: flex; gap: 22px; align-items: center; }
.profile-who { flex: 1; min-width: 0; }
.profile-who h1 { font-size: 30px; margin: 0; letter-spacing: .5px; }
.profile-who p { margin: 4px 0 0; }
.bio { white-space: pre-line; overflow-wrap: anywhere; }
.profile-acts { display: flex; gap: 10px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.profile-cols { display: grid; grid-template-columns: 380px 1fr; gap: 15px; align-items: start; }
.now { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.now dt { color: var(--muted); }
.now dd { margin: 0; overflow-wrap: anywhere; }
.log { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.log th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.log td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log td small { display: block; }
.log tr.skipped td, .log tr.ended td { color: var(--muted); }

/* Awards. */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 15px; }
.awards.small { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.award { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 10px; background: var(--card); text-align: center; color: var(--muted); }
.awards.small .award { padding: 10px 6px; background: var(--raised); font-size: 12px; }
.award b { color: var(--text); }
.medal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--raised); }
.awards.small .medal { width: 38px; height: 38px; background: var(--card); }
.medal svg { width: 60%; height: 60%; fill: #6a6c70; }
.award.have .medal { background: #4a3a12; }
.award.have .medal svg { fill: var(--amber); }

/* Messages. */
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.said { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--card); align-self: flex-start; }
.said.mine { align-self: flex-end; background: #1d4f86; }
.said p { margin: 0 0 2px; white-space: pre-line; overflow-wrap: anywhere; }
.said.mine small { color: #c8dcf2; }
.back { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 16px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 600; }
.chip img { border-radius: 50%; object-fit: cover; }

/* Settings. */
.pic-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pic-row .avatar { margin: 0; }
.qr { display: inline-block; padding: 12px; background: #fff; border-radius: 8px; margin-bottom: 10px; }
.qr svg { display: block; }
.codes { padding: 12px 16px; border-radius: 8px; background: var(--raised); font-size: 14px; }
.key-new { background: #1f3a2a; }
.key-new input { font-family: Consolas, Menlo, monospace; }

@media (max-width: 1100px) {
    .dashboard { grid-template-columns: 1fr 300px; }
    .boards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; order: 3; }
    .board { margin: 0; }
    .nav-links span { display: none; }
    .nav-links a { min-width: 48px; }
}
@media (max-width: 850px) {
    .dashboard { grid-template-columns: 1fr; }
    .navbar { height: auto; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .brand img { height: 32px; }
    .nav-links { margin-left: 0; }
    .nav-search { order: 9; flex: 1 1 100%; }
    .nav-search input { width: 100%; }
    .nav-bell { margin-left: auto; }
    .profile-head { flex-direction: column; text-align: center; }
    .profile-cols { grid-template-columns: 1fr; }
    .log th:nth-child(2), .log td:nth-child(2) { display: none; }
}
