/* The app: same system as the site. A dispatcher's desk: missions on the left, the wallet on the right. */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.auth { min-height: calc(100dvh - 69px); display: grid; place-items: center; padding: 48px 16px; background: radial-gradient(40% 40% at 50% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; padding: 0 28px 28px; }
.auth-tabs { padding: 0; margin: 0 0 24px; }

.dash { padding: 40px 0 96px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.dash-side { position: sticky; top: 92px; display: grid; gap: 12px; }
.dash-main, .dash-side { min-width: 0; }
.dash-side .panel + .panel { margin-top: 0; }
@media (max-width: 1020px) { .dash-grid { grid-template-columns: 1fr; } .dash-side { position: static; order: -1; } }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.dash-head h2 { font-size: 28px; }
.panel.flush { padding: 4px 16px; }
.sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.sub p { margin: 0 0 10px; color: var(--ink-2); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.proj { display: grid; gap: 14px; }
.proj-top { display: flex; gap: 14px; align-items: center; }
.proj-top img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); background: var(--surface-2); }
.proj-top b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.proj p { margin: 0; color: var(--muted); font-size: 14px; }
.empty { padding: 28px 8px; color: var(--muted); font-size: 15px; }

/* the mission detail */
.detail { margin-top: 12px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-head h3 { font-size: 24px; }
.detail .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
@media (max-width: 760px) { .detail .cols { grid-template-columns: 1fr; } }
.tl { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; }
.tl li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl .when { color: var(--muted); }
.tl .what { overflow-wrap: anywhere; }
.chat { max-height: 460px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--surface-2); align-self: flex-start; border: 1px solid var(--line); }
.msg.worker { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); align-self: flex-end; }
.msg small { display: block; margin-top: 4px; font: 11px var(--mono); color: var(--muted); }
.step { align-self: center; font: 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 4px 0; }
.review { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); max-height: 280px; overflow: auto; }
.dev-panel .grid2 { gap: 24px 32px; align-items: start; }
/* raids */
.range { padding: 0 !important; accent-color: var(--ink); }
.raid-sum { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.bar-p { position: relative; width: 120px; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.bar-p i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--accent); transition: width 0.6s var(--ease); }
.replies { display: grid; gap: 8px; margin-top: 14px; max-height: 520px; overflow: auto; }
.reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.7); font-size: 14px; }
.reply b { font: 500 13px var(--mono); }
.reply p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.reply .link { grid-column: 1 / -1; justify-self: start; font-size: 12.5px; }
.secret { margin-top: 12px; padding: 12px; border: 1px solid var(--fault); border-radius: var(--r-sm); font: 12px var(--mono); overflow-wrap: anywhere; }
