/* decisionmakr.ai — dark terminal aesthetic, borrowed from darkly.chat */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    background-color: #000000;
    color: #A9A9A9;
    margin: 0;
    padding: 0;
}

/* --- STICKY BANNER --- */
.sticky-banner {
    position: fixed; top: 0; left: 0; right: 0;
    background-color: #000000;
    border-bottom: 1px solid #333333;
    padding: 10px 20px;
    z-index: 1000;
    color: #A9A9A9; font-size: 14px;
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box;
}
.sticky-banner a { color: #A9A9A9; text-decoration: none; }
.sticky-banner a:hover { color: #FFFFFF; }
.sticky-banner .brand { color: #FFFFFF; font-weight: bold; }
.sticky-banner .brand span { color: #7cb342; }

/* --- PAGE CONTAINER --- */
.page-container { max-width: 700px; margin: 0 auto; padding: 70px 20px 40px; }
.page-title { color: #FFFFFF; font-size: 29px; font-weight: bold; margin-bottom: 6px; }
.page-sub { color: #A9A9A9; font-size: 16px; margin-bottom: 30px; }
.hint { color: #444444; font-size: 12px; }

/* --- DECISION LIST --- */
.decision-list { margin-top: 24px; }
.decision-item { border-bottom: 1px solid #1a1a1a; padding: 15px 0; }
.decision-item:last-child { border-bottom: none; }
.decision-item a { color: #FFFFFF; text-decoration: none; font-size: 20px; font-weight: bold; }
.decision-item a:hover { text-decoration: underline; }
.decision-meta { color: #666666; font-size: 12px; margin-top: 4px; }
.decision-meta .decided { color: #7cb342; }

/* --- FORMS --- */
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.text-input {
    flex-grow: 1; border: 1px solid #333333; border-radius: 0;
    padding: 10px 14px; font-size: 14px;
    background-color: #000000; color: #FFFFFF; font-family: inherit;
    box-sizing: border-box;
}
.text-input:focus { outline: none; border-color: #A9A9A9; }
.btn {
    padding: 10px 18px; background-color: #000000; color: #FFFFFF;
    border: 1px solid #333333; border-radius: 0; font-size: 14px;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn:hover { border-color: #7cb342; color: #7cb342; }
.btn:disabled { color: #444444; border-color: #1a1a1a; cursor: default; }
.btn-primary { border-color: #7cb342; color: #7cb342; }
.btn-primary:hover { background-color: #7cb342; color: #000000; }

.error-line { color: #c0392b; font-size: 13px; margin-top: 10px; }
.ok-line { color: #7cb342; font-size: 13px; margin-top: 10px; }

/* --- LOGIN / JOIN centered card --- */
body.center-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.center-container { width: 100%; max-width: 420px; padding: 20px; }
.center-title { color: #FFFFFF; font-size: 24px; margin-bottom: 6px; font-weight: bold; }
.center-sub { color: #A9A9A9; font-size: 15px; margin-bottom: 24px; line-height: 1.5; }
.field-label { color: #666666; font-size: 12px; margin: 14px 0 4px; }
.stack-form .text-input { width: 100%; margin-bottom: 4px; }
.stack-form .btn { width: 100%; margin-top: 14px; }

/* --- ROOM / CHAT --- */
body.room-page {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh;
    overflow: hidden;
}
#room-container {
    display: flex; flex-direction: column;
    max-width: 700px; width: 100%; margin: 0 auto;
    flex: 1; min-height: 0; padding-top: 45px; box-sizing: border-box;
}
.room-header-name {
    color: #FFFFFF; font-size: 17px; font-weight: bold;
    margin: 12px 20px 6px; line-height: 1.35;
}
.room-header-sub { color: #555555; font-size: 12px; margin: 0 20px 8px; }

/* decision banner */
#decision-banner {
    display: none;
    margin: 0 20px 8px; padding: 10px 14px;
    border: 1px solid #7cb342; color: #7cb342; font-size: 13px;
    background: #0a1403;
}
#decision-banner.show { display: block; }
#decision-banner b { color: #FFFFFF; }

/* participants strip */
#participants-bar {
    margin: 0 20px 8px; padding: 8px 0 10px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 12px; color: #666666;
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.pill { color: #A9A9A9; }
.pill .dot { color: #333333; margin-right: 4px; }
.pill.online .dot { color: #7cb342; }
.pill .ls { color: #444444; }

/* share row */
.share-row { display: flex; gap: 8px; margin: 0 20px 8px; align-items: center; }
.share-row .share-label { color: #444444; font-size: 12px; white-space: nowrap; }
.share-row input {
    flex: 1; background: #000; border: 1px solid #1a1a1a; color: #666;
    font-family: inherit; font-size: 12px; padding: 6px 8px; min-width: 0;
}
.share-row button {
    background: #000; border: 1px solid #333; color: #A9A9A9;
    font-family: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer;
}
.share-row button:hover { border-color: #7cb342; color: #7cb342; }

#chat-box {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 6px 20px 10px;
    scrollbar-width: none; -ms-overflow-style: none;
}
#chat-box::-webkit-scrollbar { display: none; }

.message { margin-bottom: 22px; line-height: 1.5; }
.message-handle { color: #FFFFFF; font-size: 12px; font-weight: bold; }
.message-handle.bot { color: #7cb342; }
.message-time { color: #444444; font-size: 12px; margin-left: 6px; font-weight: normal; }
.message-body { color: #A9A9A9; font-size: 13px; white-space: pre-wrap; word-wrap: break-word; }
.message-body .mention { color: #FFFFFF; font-weight: bold; }
.message-body .mention.me { color: #7cb342; }
.message-body a { color: #FFFFFF; text-decoration: underline; }
.message.bot-msg .message-body { color: #8fae72; }

.message--flash { animation: flash 1.2s ease-out; }
@keyframes flash {
    0%   { background-color: #16290a; }
    100% { background-color: transparent; }
}

#chat-form {
    display: flex; padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    gap: 8px; border-top: 1px solid #1a1a1a;
    flex-shrink: 0; background: #000000;
}
#message-input {
    flex-grow: 1; border: 1px solid #333333; border-radius: 0;
    padding: 10px 14px; font-size: 16px;
    background-color: #000000; color: #FFFFFF; font-family: inherit;
}
#message-input:focus { outline: none; border-color: #A9A9A9; }
#send-btn {
    padding: 10px 18px; background-color: #000000; color: #FFFFFF;
    border: 1px solid #333333; border-radius: 0; font-size: 14px;
    cursor: pointer; font-family: inherit;
}
#send-btn:hover { border-color: #7cb342; color: #7cb342; }
#send-btn:disabled { color: #444444; border-color: #1a1a1a; cursor: default; }

.typing-note { color: #333; font-size: 12px; padding: 0 20px 4px; height: 16px; }

/* landing hero */
.hero-example {
    border: 1px solid #1a1a1a; padding: 16px 18px; margin: 26px 0;
    font-size: 13px; line-height: 1.7;
}
.hero-example .h { font-weight: bold; font-size: 12px; }
.hero-example .h.u1 { color: #e67e22; } .hero-example .h.u2 { color: #2980b9; }
.hero-example .h.bot { color: #7cb342; }
.hero-example .b { color: #A9A9A9; }

@media (max-width: 600px) {
    .page-container { padding: 60px 14px 30px; }
    .share-row .share-label { display: none; }
}
