@font-face { font-family: VGA; src: url('/fonts/WebPlus_IBM_VGA_8x16.woff') format('woff'); font-display: swap; }
:root { color-scheme: dark; font: 16px/1.2 VGA, monospace; background: #080808; color: #ccc; }
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
button, input, select, textarea { font: inherit; border-radius: 0; }
button { background: transparent; color: #ffe480; border: 0; cursor: pointer; padding: 4px 8px; white-space: nowrap; }
button::before { content: '[ '; } button::after { content: ' ]'; }
button:hover, button:focus-visible { background: #333; color: #fff; outline: 1px solid #aaa; }
button:disabled { color: #777; cursor: default; }
header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 38px; padding: 4px 10px; border-bottom: 1px solid #4169e1; }
header strong { color: #fff; font-size: 20px; font-weight: normal; }
#connection { margin-left: auto; color: #8edc92; }
nav { display: flex; align-items: center; flex: none; flex-wrap: nowrap; gap: 0; padding: 0 4px; height: 41px; min-width: 0; border-bottom: 1px solid #4169e1; overflow: hidden; }
#commands { display: flex; flex-wrap: nowrap; flex: none; gap: 2px; order: 1; margin-right: auto; }
#commands > button { flex: none; height: 40px; }
#mobile-menu { order: 3; }
#mobile-exchange { order: 2; }
#mobile-menu:not([hidden]) { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
.mobile-control, #mobile-status { display: none; }
.icon-button::before, .icon-button::after { content: none; }
.icon-button svg { display: block; }
#commands-dialog { width: 42ch; }
#commands-host { display: flex; flex-direction: column; align-items: stretch; }
#commands-host button { text-align: left; white-space: normal; min-height: 40px; }
#status-details { white-space: pre-wrap; overflow-wrap: anywhere; }
#end-area, #end-next { overflow-wrap: anywhere; margin-bottom: 12px; }
#end-dialog .actions { flex-direction: column; align-items: stretch; }
#end-dialog button { white-space: normal; min-height: 40px; }
main { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--areas-width,200px) 6px minmax(0,1fr); }
aside { overflow: auto; min-width: 0; }
.section-title { min-height: 24px; padding: 3px 8px; color: #ffe480; border-bottom: 1px solid #4169e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
aside .section-title { color: #fff; }
#areas button { width: 100%; text-align: left; display: flex; gap: 6px; color: #fff; }
#areas button.unread { color: #ffe480 !important; }
.area-group { color: #ffe480; margin-top: 6px; padding: 3px 8px; border-top: 1px solid #4169e1; white-space: nowrap; overflow: hidden; }
#areas button:focus-visible, .message-row:focus-visible { outline: 1px solid #ffe480; outline-offset: -1px; }
#areas button::before, #areas button::after, .message-row::before, .message-row::after { content: none; }
#areas .area-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.selected { background: #a80000 !important; color: #fff !important; }
#mail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#mail > .section-title { flex: none; }
#list { flex: 0 0 var(--list-height,35%); min-height: 0; overflow: auto; }
.splitter { display: flex; align-items: center; justify-content: center; touch-action: none; outline: none; }
.splitter::after { content: ''; background: #4169e1; }
.splitter:hover::after, .splitter:focus-visible::after { background: #ffe480; }
#areas-divider { cursor: col-resize; }
#areas-divider::after { width: 1px; height: 100%; }
#messages-divider { flex: 0 0 6px; cursor: row-resize; }
#messages-divider::after { width: 100%; height: 1px; }
body.resizing, body.resizing * { user-select: none !important; }
body.resize-areas, body.resize-areas * { cursor: col-resize !important; }
body.resize-messages, body.resize-messages * { cursor: row-resize !important; }
.message-columns { width: 100%; display: grid; grid-template-columns: 2ch minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) 19ch; text-align: left; column-gap: 8px; padding: 2px 8px; }
.message-columns span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-heading { position: sticky; top: 0; z-index: 1; height: 25px; background: #080808; color: #ffe480; border-bottom: 1px solid #4169e1; }
.message-row { height: 25px; scroll-margin-top: 25px; }
.message-row, .message-row.selected { color: #aaa !important; }
.message-row.unread { color: #ffe480 !important; }
.message-row:hover, .message-row:focus-visible { background: transparent; }
.message-item.tagged .message-marker { color: #ffe480; }
.message-meta { display: contents; }
.date-short { display: none; }
.message-item { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; }
#mark-read-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#mark-read-dialog .actions button { white-space: normal; }
#reader { flex: 1; min-height: 0; overflow: auto; padding: 8px; outline: none; }
#workspace[data-focus="areas"] #areas-panel, #workspace[data-focus="list"] #list,
#workspace[data-focus="reader"] #reader { outline: 1px solid #ffe480; outline-offset: -1px; }
#message-header { color: #ccc; border-bottom: 1px solid #4169e1; margin-bottom: 12px; padding-bottom: 6px; }
#message-header:empty { display: none; }
.header-row { display: grid; grid-template-columns: 7ch minmax(0,1fr); white-space: pre-wrap; overflow-wrap: anywhere; }
#message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote { color: #ffff55; }
.quote-depth-2 { color: #55ff55; }
.quote-depth-3 { color: #55ffff; }
.quote-depth-4 { color: #ff55ff; }
#message-body a { color: #73dfea; }
#kludges { margin-top: 12px; color: #888; }
#kludge-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
footer { flex: none; padding: 4px 8px; background: #0037da; color: #fff; min-height: 27px; }
#reading-state, .operation-state { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 16px; }
#reading-state { flex: none; height: 26px; flex-wrap: nowrap; padding: 3px 8px; border-top: 1px solid #4169e1; background: #080808; color: #ffe480; }
#message-position, #area-unread, #storage-state { overflow-wrap: anywhere; min-width: 0; }
#reading-state span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#tagged-count { flex: 0 0 14ch; }
#status { min-width: 0; overflow-wrap: anywhere; }
dialog { width: 76ch; max-width: calc(100% - 16px); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 1px solid #ffe480; border-radius: 0; color: #ccc; background: #121212; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog h1 { margin: 0 0 12px; font-size: 18px; font-weight: normal; color: #ffe480; }
dialog h2 { margin: 0 0 8px; font: inherit; color: #ffe480; }
.key-help { display: grid; grid-template-columns: 20ch minmax(0,1fr); gap: 6px 12px; margin: 0; }
.key-help dt { color: #ffe480; overflow-wrap: anywhere; }
.key-help dd { margin: 0; overflow-wrap: anywhere; }
#help-dialog p { margin: 12px 0 0; }
#auth-name, #auth-address { overflow-wrap: anywhere; margin: 4px 0; }
#auth-state { color: #8edc92; }
.login-modes { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #4169e1; padding-bottom: 6px; margin-bottom: 12px; }
.login-modes [aria-selected="true"] { color: #fff; background: #0037da; }
#bot-code, #binding-code, #register-code { color: #ffe480; margin: 12px 0; }
#bot-qr, #binding-qr, #register-qr { display: block; width: 232px; max-width: 100%; height: auto; image-rendering: pixelated; }
[data-provider][aria-pressed="true"] { background: #0037da; color: #fff; }
#bot-status, #binding-status, #register-status { min-height: 24px; margin-top: 10px; overflow-wrap: anywhere; }
#bot-countdown, #binding-countdown, #register-countdown { color: #aaa; }
#bot-open, #binding-open-link, #register-open-link { color: #ffe480; padding: 4px 8px; text-decoration: none; }
#bot-open::before, #binding-open-link::before, #register-open-link::before { content: '[ '; } #bot-open::after, #binding-open-link::after, #register-open-link::after { content: ' ]'; }
#bot-open:focus-visible, #binding-open-link:focus-visible, #register-open-link:focus-visible { outline: 1px solid #aaa; }
#binding-target, #binding-current { overflow-wrap: anywhere; }
#locked-view, #closed-view { flex: 1; min-height: 0; padding: 24px 16px; }
#locked-view h1, #closed-view h1 { font: inherit; color: #ccc; margin: 0 0 16px; }
#locked-view { overflow: auto; }
.guest-guide { max-width: 90ch; margin: 0 auto; overflow-wrap: anywhere; }
#locked-view h1 { color: #ffe480; }
.guest-guide h2 { font: inherit; color: #ffe480; margin: 20px 0 6px; }
.guest-guide p { margin: 0 0 12px; line-height: 1.4; }
.guest-guide .actions { margin: 12px 0 20px; }
.guest-guide ol { margin: 0 0 12px; padding-left: 4ch; }
.guest-guide li { margin: 0 0 8px; line-height: 1.4; }
.guest-guide a { color: #ffe480; text-underline-offset: 3px; }
.guest-guide a:focus-visible { outline: 1px solid #ffe480; outline-offset: 3px; }
.guest-address { color: #fff; }
.guest-guide .guest-note { color: #999; }
#editor-dialog { width: 128ch; }
label { display: grid; grid-template-columns: 18ch minmax(0,1fr); align-items: baseline; gap: 8px; margin: 6px 0; }
input, select { width: 100%; min-width: 0; padding: 3px; border: 1px solid #777; background: #080808; color: #fff; }
#address { display: block; min-width: 0; padding: 3px; border: 1px solid #4169e1; background: #080808; color: #fff; overflow-wrap: anywhere; }
input:focus, select:focus, textarea:focus { outline: 1px solid #ffe480; }
.form-grid { display: grid; grid-template-columns: 1fr; }
textarea { display: block; width: 100%; height: 45dvh; min-height: 120px; resize: vertical; padding: 6px; margin: 10px 0; background: #080808; color: #ddd; border: 1px solid #4169e1; }
.actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.rule { border-top: 1px solid #4169e1; margin: 14px 0; }
#settings-status, #notice-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
#delete-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: 16px; flex: 0 0 16px; }
#compose-settings { margin-top: 12px; border-top: 1px solid #4169e1; padding-top: 10px; }
#compose-settings summary { color: #ffe480; cursor: pointer; }
#pref-signature { height: 64px; min-height: 64px; margin: 0; }
#edit-footer { font: inherit; margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #aaa; }
#edit-footer.invalid { color: #ff8686; }
#edit-surface { position: relative; margin: 10px 0; background: #080808; }
#edit-text { position: relative; margin: 0; color: transparent; caret-color: #ddd; background: transparent; }
#edit-highlight { position: absolute; top: 1px; left: 1px; height: calc(100% - 2px); margin: 0; padding: 6px; border: 0; font: inherit; color: #ddd; white-space: pre-wrap; overflow-wrap: break-word; overflow: hidden; pointer-events: none; }
#edit-text::selection { background: #0037da99; }
@media (forced-colors:active) { #edit-highlight { display: none; } #edit-text { color: CanvasText; } }
#exchange-dialog[open] { display: flex; flex-direction: column; width: 90ch; height: 560px; max-height: calc(100dvh - 24px); overflow: hidden; }
#exchange-dialog h1 { flex: none; overflow-wrap: anywhere; }
.exchange-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #4169e1; }
#exchange-state { min-width: 0; overflow-wrap: anywhere; color: #ffe480; }
#exchange-elapsed { flex: none; color: #aaa; }
#exchange-dialog[data-state="success"] #exchange-state { color: #8edc92; }
#exchange-dialog[data-state="error"] #exchange-state { color: #ff8686; }
#exchange-log { flex: 1; min-height: 48px; overflow: auto; overscroll-behavior: contain; padding: 8px 0; margin: 0; list-style: none; }
#exchange-log li { display: grid; grid-template-columns: 8ch minmax(0,1fr); gap: 8px; padding: 3px 0; }
#exchange-log time { color: #888; }
#exchange-log span { white-space: pre-wrap; overflow-wrap: anywhere; }
#exchange-log .success { color: #8edc92; }
#exchange-log .warning { color: #ffe480; }
#exchange-log .error { color: #ff8686; }
#exchange-summary { flex: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 20px; margin: 0; padding-top: 10px; border-top: 1px solid #4169e1; }
#exchange-summary div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
#exchange-summary dt { overflow-wrap: anywhere; }
#exchange-summary dd { flex: none; margin: 0; color: #fff; }
#exchange-dialog .actions { flex: none; justify-content: flex-end; }
#exchange-problem { flex: none; max-height: 35%; overflow: auto; border-top: 1px solid #4169e1; padding-top: 6px; color: #ffe480; overflow-wrap: anywhere; }
#exchange-problem .actions button { white-space: normal; }
#discard-packet-text, #file-confirm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#files-dialog { width: 90ch; }
#files-list { max-height: 55dvh; overflow: auto; margin-top: 8px; }
.file-row { display: grid; grid-template-columns: minmax(0,1fr) auto; width: 100%; text-align: left; gap: 4px 16px; border-bottom: 1px solid #303030; padding: 8px 4px; color: #ccc; }
.file-row::before, .file-row::after { content: none; }
.file-row span { min-width: 0; overflow-wrap: anywhere; }
.file-row .file-name { color: #ffe480; }
.file-row .file-description { grid-column: 1 / -1; color: #999; font-size: 14px; white-space: normal; }
#file-info { margin: 0 0 12px; }
#file-info div { display: grid; grid-template-columns: 9ch minmax(0,1fr); gap: 8px; margin: 4px 0; }
#file-info dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#file-progress { width: 100%; height: 12px; accent-color: #0037da; }
#file-status, #files-status { overflow-wrap: anywhere; white-space: pre-wrap; margin-top: 8px; }
#file-dialog .actions button, #file-confirm-dialog .actions button { white-space: normal; }
#file-download { color: #ffe480; padding: 4px 8px; }
#message-links { display: flex; flex-wrap: wrap; margin: -6px 0 8px; gap: 0; }
#message-links button { padding: 2px 6px; font-size: 14px; }
#robot-controls { border-bottom: 1px solid #4169e1; padding-bottom: 8px; }
.robot-command-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.robot-command-row label { flex: 1; min-width: 0; }
mark { background: #ffe480; color: #080808; }
#search-dialog[open], #thread-dialog[open] { display: flex; flex-direction: column; width: 110ch; height: 700px; overflow: hidden; }
#search-options { flex: none; max-height: 55%; overflow: auto; padding-bottom: 6px; }
#search-options summary { color: #ffe480; cursor: pointer; }
.search-condition { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto 32px; gap: 8px; border-bottom: 1px solid #303030; padding-bottom: 6px; }
.search-condition label { display: block; min-width: 0; font-size: 14px; }
.search-condition .checkbox-label { display: flex; }
.search-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.search-dates label { grid-template-columns: 7ch minmax(0,1fr); }
.search-flags { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.search-result-bar { flex: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 6px; border-top: 1px solid #4169e1; }
#search-status { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#search-sort { width: 20ch; }
#search-results, #thread-results { flex: 1; min-height: 80px; overflow: auto; margin-top: 8px; }
.tool-result { width: 100%; display: flex; flex-direction: column; text-align: left; white-space: normal; padding: 6px; border-bottom: 1px solid #303030; }
.tool-result::before, .tool-result::after { content: none; }
.tool-result[aria-selected="true"] { outline: 1px solid #ffe480; outline-offset: -1px; }
.tool-result > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tool-result-heading { display: flex; width: 100%; gap: 12px; }
.tool-result-subject { color: #ffe480; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-result-date { flex: none; font-size: 14px; color: #999; }
.tool-result-meta, .tool-result-snippet { font-size: 14px; color: #999; }
.thread-result { padding-left: calc(6px + var(--thread-depth,0)*12px); }
#thread-status { overflow-wrap: anywhere; }
#search-dialog .actions, #thread-dialog .actions { flex: none; }
#search-dialog .actions button, #thread-dialog .actions button, #robot-controls button { white-space: normal; }
.mobile-tabs { display: none; }
#command-bar.mobile { padding: 0; }
#command-bar.mobile .mobile-control { display: block; }
#command-bar.mobile .icon-button { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
#command-bar.mobile #mobile-login { flex: none; margin-right: auto; min-width: 0; }
#command-bar.mobile .mobile-tabs { display: flex; flex: 1 1 180px; min-width: 0; }
#command-bar.mobile .mobile-tabs button { flex: 1; min-width: 0; padding: 0 2px; height: 40px; overflow: hidden; text-overflow: ellipsis; }
#command-bar.mobile .mobile-tabs button::before, #command-bar.mobile .mobile-tabs button::after { content: none; }
#command-bar.mobile .mobile-tabs button[aria-current="page"] { background: #333; color: #fff; }
.single-pane .search-result-bar { flex-direction: column; align-items: stretch; }
.single-pane #search-status { flex: none; }
.single-pane #search-sort { width: 100%; }
.single-pane .search-condition { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.single-pane .search-condition label:nth-child(3) { grid-column: 1 / -1; }
.single-pane .search-dates { grid-template-columns: minmax(0,1fr); gap: 0; }
.single-pane .search-dates label { grid-template-columns: 1fr; }
.single-pane .tool-result-heading { flex-direction: column; gap: 2px; }
.single-pane .thread-result { padding-left: calc(4px + var(--thread-depth,0)*5px); }
.single-pane header { gap: 8px; } .single-pane header strong { font-size: 18px; }
.single-pane nav { flex: none; flex-wrap: nowrap; gap: 0; padding: 0; height: 41px; min-width: 0; }
.single-pane .mobile-control { display: block; }
.single-pane .icon-button { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; }
.single-pane #mobile-login { margin-right: auto; min-width: 0; }
.single-pane .mobile-tabs { display: flex; flex: 1 1 180px; min-width: 0; }
.single-pane .mobile-tabs button { flex: 1; min-width: 0; padding: 0 2px; height: 40px; overflow: hidden; text-overflow: ellipsis; }
.single-pane .mobile-tabs button::before, .single-pane .mobile-tabs button::after { content: none; }
.single-pane .mobile-tabs button[aria-current="page"] { background: #333; color: #fff; }
.single-pane footer { height: 29px; min-height: 29px; padding: 0 6px; }
.single-pane footer .operation-state { display: none; }
.single-pane #mobile-status { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0; color: #fff; min-width: 0; text-align: left; }
.single-pane #mobile-status::before, .single-pane #mobile-status::after { content: none; }
.single-pane #mobile-operation { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.single-pane #mobile-count { flex: 0 1 auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.single-pane #reader { touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
.single-pane main { display: block; }
.single-pane .splitter { display: none; }
.single-pane aside, .single-pane #mail { height: 100%; }
.single-pane main[data-view="areas"] #mail { display: none; }
.single-pane main:not([data-view="areas"]) aside { display: none; }
.single-pane main[data-view="list"] #reader { display: none; }
.single-pane main[data-view="list"] #list { flex: 1; }
.single-pane main[data-view="reader"] #list { display: none; }
.single-pane #reading-state { display: none; }
.single-pane .message-columns { grid-template-columns: 2ch minmax(0,1fr) minmax(0,1fr); column-gap: 12px; }
.single-pane .message-row { height: 44px; grid-template-rows: 19px 18px; border-bottom: 1px solid #303030; }
.single-pane .message-row .message-meta, .single-pane .list-heading .message-meta { display: grid; grid-column: 2 / -1; grid-row: 1; grid-template-columns: minmax(0,1fr) 15ch; column-gap: 12px; min-width: 0; align-items: center; font-size: 14px; color: inherit; }
.single-pane .list-heading .message-meta { color: #999; }
.single-pane .message-row .message-subject { grid-column: auto; font-size: 16px; }
.single-pane .message-row .message-from, .single-pane .message-row .message-to { grid-row: 2; font-size: 14px; }
.single-pane .message-row .message-from { grid-column: 2; }
.single-pane .message-row .message-to { grid-column: 3; }
.single-pane .message-meta .date { text-align: right; }
.single-pane .date-full { display: none; }
.single-pane .date-short { display: inline; }
.single-pane .list-heading .message-from, .single-pane .list-heading .message-to { display: none; }
.single-pane label { grid-template-columns: 1fr; gap: 2px; }
.single-pane dialog { padding: 10px; }
.single-pane .key-help { grid-template-columns: minmax(0,1fr); gap: 2px; }
.single-pane .key-help dd { margin-bottom: 6px; }
.single-pane #bot-qr, .single-pane #binding-qr, .single-pane #register-qr { display: none; }
.single-pane #exchange-summary { grid-template-columns: minmax(0,1fr); }
