:root {
    --wfu-black: #000000;
    --wfu-gold: #9e7e38;
    --wfu-gold-bright: #cfb53b;
    --panel-bg: #0c0c0c;
    --panel-border: #2a2410;
    --text-dim: #8a8a8a;
    --green: #2ecc71;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--wfu-black);
    color: var(--wfu-gold-bright);
    font-family: "Courier New", Courier, monospace;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid var(--wfu-gold);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    background: var(--wfu-gold);
    color: var(--wfu-black);
    font-weight: bold;
    padding: 2px 8px;
    margin-right: 10px;
    letter-spacing: 1px;
}

.brand-name {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 2px;
}

.clock {
    color: var(--text-dim);
    font-size: 1.1em;
}

.menu-bar {
    display: flex;
    gap: 24px;
    padding: 8px 20px;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
}

.menu-item {
    color: var(--text-dim);
    font-size: 0.9em;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.menu-item.active,
.menu-item:hover {
    color: var(--wfu-gold-bright);
}

.search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 4px;
}

.search-prompt {
    color: var(--wfu-gold-bright);
    font-weight: bold;
}

.search-wrap {
    position: relative;
}

.search-input {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--wfu-gold-bright);
    font-family: inherit;
    font-size: 0.9em;
    padding: 4px 8px;
    width: 190px;
}

.search-input:focus {
    outline: none;
    border-color: var(--wfu-gold);
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-suggestions {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 280px;
    background: var(--panel-bg);
    border: 1px solid var(--wfu-gold);
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85em;
}

.suggestion-item .suggestion-symbol {
    color: var(--wfu-gold-bright);
    font-weight: bold;
    flex-shrink: 0;
}

.suggestion-item .suggestion-name {
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(207, 181, 59, 0.15);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px;
}

.panel {
    border: 1px solid var(--panel-border);
    background: var(--panel-bg);
}

.panel-wide {
    grid-column: 1 / span 2;
}

.panel-title {
    background: var(--wfu-gold);
    color: var(--wfu-black);
    font-weight: bold;
    padding: 6px 10px;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--wfu-gold);
    padding: 4px 10px;
    gap: 12px;
}

.panel-title-row .panel-title {
    background: none;
    padding: 2px 0;
}

.range-tabs {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.range-tab {
    color: var(--wfu-black);
    text-decoration: none;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 7px;
    letter-spacing: 0.5px;
}

.range-tab:hover {
    background: rgba(0, 0, 0, 0.15);
}

.range-tab.active {
    background: var(--wfu-black);
    color: var(--wfu-gold-bright);
}

.panel-body {
    padding: 16px;
    min-height: 90px;
}

.placeholder {
    color: var(--text-dim);
    font-size: 0.9em;
}

.placeholder code {
    color: var(--wfu-gold-bright);
}

.quote-row {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) 110px 90px;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.95em;
    border-bottom: 1px solid var(--panel-border);
    text-decoration: none;
    color: inherit;
}

.quote-row:last-child {
    border-bottom: none;
}

.quote-row:hover {
    background: rgba(207, 181, 59, 0.08);
}

.quote-row.big {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    font-size: 1.4em;
    padding: 10px 0;
    border-bottom: none;
}

.quote-row .ticker {
    color: var(--wfu-gold-bright);
    font-weight: bold;
}

.quote-row .price {
    color: #ffffff;
    text-align: right;
}

.quote-row .up,
.quote-row .down,
.quote-row .volume {
    text-align: right;
}

.quote-row .volume {
    color: var(--text-dim);
}

.up {
    color: var(--green);
}

.down {
    color: #e74c3c;
}

.news-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.9em;
    border-bottom: 1px solid var(--panel-border);
}

.news-row:last-child {
    border-bottom: none;
}

.news-ticker {
    color: var(--wfu-gold-bright);
    font-weight: bold;
    min-width: 45px;
    flex-shrink: 0;
}

.news-title {
    color: #ffffff;
    text-decoration: none;
    flex: 1;
}

.news-title:hover {
    color: var(--wfu-gold-bright);
    text-decoration: underline;
}

.news-source {
    color: var(--text-dim);
    font-size: 0.85em;
    flex-shrink: 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.9em;
    border-bottom: 1px solid var(--panel-border);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: var(--text-dim);
}

.stat-row .value {
    color: #ffffff;
}

.corr-table-wrap {
    overflow-x: auto;
}

.corr-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85em;
}

.corr-table th,
.corr-table td {
    padding: 6px 10px;
    text-align: center;
    border: 1px solid var(--panel-border);
    white-space: nowrap;
}

.corr-table thead th {
    color: var(--wfu-gold-bright);
}

.corr-table tbody th {
    color: var(--wfu-gold-bright);
    text-align: left;
}

.corr-cell {
    color: #ffffff;
}

.corr-strong-pos { background: rgba(46, 204, 113, 0.35); }
.corr-pos { background: rgba(46, 204, 113, 0.15); }
.corr-neutral { background: transparent; }
.corr-neg { background: rgba(231, 76, 60, 0.15); }
.corr-strong-neg { background: rgba(231, 76, 60, 0.35); }

.corr-note {
    margin: 10px 0 0;
}

.about-body p {
    margin: 0 0 14px;
    line-height: 1.6;
    color: #e6e6e6;
    font-size: 0.95em;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.statusbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-top: 1px solid var(--panel-border);
    color: var(--text-dim);
    font-size: 0.8em;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.export-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.export-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
}

.export-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.export-section {
    display: none;
    border-top: 1px solid var(--panel-border);
    padding-top: 12px;
}

.export-section.active {
    display: block;
}

.export-section-label {
    color: var(--text-dim);
    font-size: 0.8em;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.export-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.export-checkbox {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.9em;
    cursor: pointer;
}

.export-tickers-input {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--wfu-gold-bright);
    font-family: inherit;
    font-size: 0.9em;
    padding: 6px 10px;
    width: 100%;
    max-width: 420px;
}

.export-tickers-input:focus {
    outline: none;
    border-color: var(--wfu-gold);
}

.export-tickers-input::placeholder {
    color: var(--text-dim);
}

.export-format {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--panel-border);
    padding-top: 12px;
    font-size: 0.9em;
}

.export-submit {
    align-self: flex-start;
    background: var(--wfu-gold);
    color: var(--wfu-black);
    border: none;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 20px;
    cursor: pointer;
}

.export-submit:hover {
    background: var(--wfu-gold-bright);
}

.export-range-select {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--wfu-gold-bright);
    font-family: inherit;
    font-size: 0.9em;
    padding: 6px 8px;
}

.export-range-select:disabled {
    color: var(--text-dim);
}

.export-custom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    font-size: 0.9em;
    cursor: pointer;
}

.export-custom-dates {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
    font-size: 0.9em;
}

.export-custom-dates.hidden {
    display: none;
}

.export-date-input {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--wfu-gold-bright);
    font-family: inherit;
    font-size: 0.9em;
    padding: 4px 6px;
    margin-left: 4px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 90px 1fr 24px;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
}

.rating-label {
    color: var(--text-dim);
}

.rating-bar-track {
    background: var(--panel-border);
    height: 8px;
}

.rating-bar-fill {
    height: 100%;
    background: var(--wfu-gold-bright);
}

.rating-bar-fill.up {
    background: var(--green);
}

.rating-bar-fill.down {
    background: #e74c3c;
}

.rating-count {
    color: #ffffff;
    text-align: right;
}

.ownership-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-bottom: 14px;
}

.ownership-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ownership-col {
    min-width: 0;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.summarize-btn {
    background: var(--wfu-gold);
    color: var(--wfu-black);
    border: none;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 22px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--wfu-gold-bright);
}

.summarize-btn:hover:not(:disabled) {
    background: var(--wfu-gold-bright);
}

.summarize-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.summary-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--panel-border);
}

.summary-box.hidden {
    display: none;
}

.summary-label {
    color: var(--text-dim);
    font-size: 0.8em;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.summary-text {
    color: #e6e6e6;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-line;
}

/* Personal landing page now lives in static/landing.css */
