* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; background: #0e0f12; color: #e7e9ee; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #23262d; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 14px; text-transform: uppercase; color: #9aa0aa; margin: 0 0 10px; }
h3 { font-size: 12px; text-transform: uppercase; color: #9aa0aa; margin: 12px 0 6px; }
small { color: #9aa0aa; }
main { display: grid; grid-template-columns: 280px 1fr; gap: 16px; padding: 16px; align-items: start; }
.checkbox-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; margin: 0; }
.panel { background: #15171c; border: 1px solid #23262d; border-radius: 8px; padding: 14px; }
input, button { width: 100%; padding: 8px; background: #0e0f12; color: #e7e9ee; border: 1px solid #2c303a; border-radius: 6px; font: inherit; margin-bottom: 6px; }
button { cursor: pointer; background: #2b6cb0; border-color: #2b6cb0; }
button:hover { background: #3182ce; }
ul { list-style: none; padding: 0; margin: 0 0 12px; }
li { padding: 8px 10px; border: 1px solid #2c303a; border-radius: 6px; margin-bottom: 6px; cursor: pointer; }
li.active { border-color: #3182ce; background: #11212f; }
li.empty { color: #9aa0aa; cursor: default; font-style: italic; }
li code { background: #0a0b0e; padding: 1px 4px; border-radius: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; margin-right: 6px; display: inline-block; }
.dot.up { background: #38a169; }
.dot.down { background: #c53030; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; }
.row button { flex: 1; }
.btn-secondary { background: transparent; border-color: #2c303a; color: #e7e9ee; }
.btn-secondary:hover { background: #1c1f25; }
.btn-danger { background: transparent; border-color: #c53030; color: #fc8181; width: auto; padding: 4px 10px; margin-left: 8px; }
.btn-danger:hover { background: #2a1212; }
.btn-inline { width: auto; padding: 4px 10px; }
.btn-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.btn-stack button { width: auto; padding: 4px 10px; white-space: nowrap; }
.input-with-action { display: flex; gap: 6px; margin-bottom: 6px; }
.input-with-action input { margin-bottom: 0; }
.session-browser { background: #0a0b0e; border: 1px solid #2c303a; border-radius: 6px; padding: 8px; margin-bottom: 8px; }
.session-browser-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: #9aa0aa; }
.session-browser ul { max-height: 280px; overflow: auto; margin-bottom: 6px; }
.session-browser li { cursor: pointer; padding: 6px 8px; border: 1px solid #2c303a; }
.session-browser li:hover { border-color: #3182ce; background: #11212f; }
.session-browser-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #9aa0aa; }
.hidden { display: none; }
li { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
pre { white-space: pre-wrap; word-break: break-word; background: #0a0b0e; border-radius: 6px; padding: 12px; max-height: 40vh; overflow: auto; }
.login { display: grid; place-items: center; height: 100vh; }
.card { background: #15171c; padding: 24px; border-radius: 8px; border: 1px solid #23262d; width: 320px; }

.session-meta { display: block; min-width: 0; word-break: break-all; }
.session-disabled { opacity: 0.55; }
.session-disabled .session-meta strong { text-decoration: line-through; }
.btn-primary { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
.btn-primary:hover { background: #3182ce; }

.session-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 8px 0 12px; border-top: 1px solid #23262d; margin-top: 8px; }
.session-controls label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #9aa0aa; text-transform: uppercase; letter-spacing: 0.04em; }
.session-controls select { padding: 6px 8px; min-width: 140px; }

.group-heading { background: #0e0f12; border: none !important; color: #9aa0aa; padding: 6px 4px !important; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; cursor: default; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: grid; place-items: center; z-index: 100; }
.modal.hidden { display: none; }
.modal-card { background: #15171c; border: 1px solid #2c303a; border-radius: 10px; padding: 18px 18px 14px; min-width: 320px; max-width: 420px; }
.modal-card h3 { margin: 0 0 6px; }
.modal-current { font-size: 12px; color: #9aa0aa; margin: 0 0 12px; }
.modal-card form label { display: block; font-size: 11px; color: #9aa0aa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.modal-card form select { margin-top: 4px; }
.modal-card form textarea { width: 100%; padding: 8px; background: #0e0f12; color: #e7e9ee; border: 1px solid #2c303a; border-radius: 6px; font: inherit; resize: vertical; min-height: 100px; margin-top: 4px; }
.modal-card details { margin: 8px 0 12px; font-size: 12px; color: #9aa0aa; }
.modal-card details summary { cursor: pointer; padding: 4px 0; }
.modal-card details input[type="file"] { margin-top: 6px; color: #e7e9ee; }
.session-meta .copyable { cursor: pointer; user-select: none; transition: color 0.15s ease, background 0.15s ease; padding: 1px 3px; border-radius: 3px; }
.session-meta .copyable:hover { color: #5dadec; background: rgba(93, 173, 236, 0.08); }
.session-meta .copyable.copied-flash { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
