/* Market News dashboard: light theme only, mobile-first. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f6f6f3;
  color: #111;
  line-height: 1.5;
}
.hidden { display: none !important; }
.muted { color: #666; }
.small { font-size: 0.85rem; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #ddd;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.user-email { font-size: 0.85rem; color: #555; margin-right: 8px; }

.btn {
  font-size: 1rem; padding: 10px 16px; border-radius: 10px;
  border: 1px solid #ccc; background: #fff; color: #111; cursor: pointer;
}
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.small { font-size: 0.85rem; padding: 6px 10px; }
.btn.wide { width: 100%; padding: 14px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.auth-wrap, #adminView { max-width: 560px; margin: 0 auto; padding: 20px 16px; }
#mainView { max-width: 720px; margin: 0 auto; padding: 12px 12px 40px; }

.tabs { display: flex; gap: 6px; margin: 12px 0; }
.tabs.scroll { overflow-x: auto; scrollbar-width: none; }
.tabs.scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 9px 13px; border-radius: 999px;
  border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 0.92rem;
}
.tab.active { background: #111; color: #fff; border-color: #111; }

.form label { display: block; margin: 12px 0; font-weight: 600; }
.form input, .row-form input {
  display: block; width: 100%; margin-top: 4px; padding: 11px;
  font-size: 1rem; border: 1px solid #ccc; border-radius: 8px; background: #fff;
}
.msg { color: #333; background: #fff8e1; border: 1px solid #f0d98c; padding: 10px; border-radius: 8px; }
.msg:empty { display: none; }

.refresh-row { margin: 8px 0 4px; }
.model-note {
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  padding: 10px 12px; font-size: 0.88rem;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chip {
  padding: 8px 12px; border-radius: 999px; border: 1px solid #ccc;
  background: #fff; cursor: pointer; font-size: 0.9rem;
}
.chip.active { background: #111; color: #fff; border-color: #111; }

.price-strip {
  background: #eef6ee; border: 1px solid #cfe3cf; border-radius: 10px;
  padding: 10px 12px; margin: 10px 0; font-size: 0.95rem;
}

.panel {
  background: #fff; border: 1px solid #ddd; border-radius: 12px;
  padding: 14px; margin: 12px 0;
}
.row-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.row-form input { flex: 1 1 180px; }
.holdings-list, .admin-list { list-style: none; padding: 0; margin: 8px 0; }
.holdings-list li, .admin-list li {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #eee;
}

.reader-head {
  display: flex; justify-content: space-between; margin: 14px 2px 6px;
  font-weight: 600;
}
.progress-bar { height: 6px; background: #e2e2de; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #111; width: 0%; transition: width 0.2s; }

.card {
  background: #fff; border: 1px solid #ddd; border-radius: 16px;
  padding: 20px 18px; margin: 12px 0; min-height: 62dvh;
  display: flex; flex-direction: column;
  touch-action: pan-y;
}
.card-tag { color: #555; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 8px; }
.card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem; line-height: 1.25; margin: 0 0 12px;
}
.card .brief { font-size: 1.08rem; flex: 1; }
.source-box {
  background: #f6f6f3; border: 1px solid #e2e2de; border-radius: 10px;
  padding: 10px 12px; font-size: 0.9rem; margin-top: 14px;
}
.source-box a { color: #0b57d0; }
.reader-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.reader-nav .btn { flex: 1 1 auto; }
.hint { text-align: center; }

.footer { max-width: 720px; margin: 0 auto; padding: 12px; text-align: center; }

@media (min-width: 700px) {
  .card { min-height: 52dvh; padding: 28px; }
  .card h2 { font-size: 1.9rem; }
}

/* Focused reading: the story owns the screen; tools live in sheets. */
:root { --ink:#172725; --muted:#6b7774; --accent:#196b5c; --line:#e6ebe8; }
body { background:#f1f4f1; color:var(--ink); -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:3px solid #78b6a6; outline-offset:4px; }
.topbar { height:64px; padding:0 max(24px,calc((100vw - 1040px)/2)); background:#fff; border-color:var(--line); position:relative; }
.brand { letter-spacing:-.6px; font-size:21px; }
.brand::before { content:''; display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--accent); margin-right:9px; }
.btn { border:1px solid var(--line); border-radius:12px; color:var(--ink); min-height:44px; font-weight:550; cursor:pointer; }
.btn:hover { background:#edf3ef; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:white; }
.btn:disabled { opacity:.45; cursor:default; }
.muted { color:#666; }
#mainView { max-width:620px; padding:0 20px 20px; }
.feed-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 0 18px; }
.feed-select { background:none; border:0; padding:0; text-align:left; display:grid; grid-template-columns:1fr auto; column-gap:14px; align-items:center; color:var(--ink); cursor:pointer; }
.eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:1.8px; color:#666; }
.feed-select .eyebrow { grid-column:1 / -1; margin-bottom:3px; }
#feedLabel { font-size:18px; font-weight:650; letter-spacing:-.3px; }
#refreshStatus:empty { display:none; }
#refreshStatus { margin:0 0 12px; }
.reader-shell { background:white; border:1px solid var(--line); border-radius:22px; box-shadow:0 14px 42px #183e2510; overflow:hidden; }
.reader-head { padding:19px 28px 12px; margin:0; font-size:11px; font-weight:500; letter-spacing:.3px; }
#progressText { font-variant-numeric:tabular-nums; }
.progress-bar { height:2px; background:#edf2ee; }
.progress-fill { background:var(--accent); transition:width .2s; }
.card { border:0; border-radius:0; padding:30px 32px 24px; margin:0; min-height:440px; background:white; outline-offset:-3px; }
.card-tag { color:var(--accent); text-transform:uppercase; letter-spacing:1.5px; font-size:10px; font-weight:750; margin:0 0 18px; }
.card h2 { font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:clamp(25px,4.5vw,30px); font-weight:700; line-height:1.23; letter-spacing:-.8px; margin:0 0 22px; text-wrap:pretty; overflow-wrap:anywhere; }
.brief { font-size:18px; line-height:1.75; color:#4a5752; margin:0 0 32px; flex:1; overflow-wrap:anywhere; }
.source-box { display:flex; justify-content:space-between; align-items:center; gap:14px; background:none; border:0; border-top:1px solid var(--line); border-radius:0; padding:18px 0 0; margin:16px 0 0; font-size:11px; }
.source-box strong { font-weight:650; }
.source-date { display:block; color:#666; margin-top:4px; font-size:10px; }
.source-box a { color:var(--accent); text-decoration:none; font-weight:650; white-space:nowrap; padding:10px 0; }
.reader-nav { padding:0 24px 22px; flex-wrap:nowrap; gap:6px; }
.reader-nav .btn { border:0; font-size:11px; min-width:0; padding:10px; flex:initial; background:#f3f6f3; }
.reader-nav #prevBtn { font-size:19px; width:42px; }
.reader-nav #nextBtn { margin-left:auto; color:white; background:var(--accent); padding:10px 16px; }
.hint { font-size:10px; margin:16px 0 0; color:#84908b; }
.filters { margin:0 0 14px; }
.chip { border-color:var(--line); font-size:12px; cursor:pointer; min-height:40px; }
.chip.active { background:var(--accent); border-color:var(--accent); }
.panel { border-color:var(--line); border-radius:14px; margin:0 0 16px; }
summary { cursor:pointer; font-weight:600; padding:4px; }
.panel[open] summary { margin-bottom:16px; }
.sheet { width:min(440px,calc(100vw - 32px)); max-height:85dvh; padding:26px; border:1px solid var(--line); border-radius:24px; box-shadow:0 24px 100px #102d3230; color:var(--ink); box-sizing:border-box; }
.sheet::backdrop { background:#152f2a66; backdrop-filter:blur(5px); }
.sheet-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
.sheet h2 { font-size:23px; letter-spacing:-.7px; margin:4px 0; }
.sheet .top-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.sheet .user-email { width:100%; overflow-wrap:anywhere; margin-bottom:8px; }
.feed-list { display:grid; gap:8px; margin-bottom:24px; }
.feed-list .tab { text-align:left; padding:15px 16px; border:1px solid var(--line); border-radius:12px; font-size:14px; background:white; color:var(--ink); cursor:pointer; }
.feed-list .tab.active { background:#eaf3ed; border-color:#bad5c8; color:var(--accent); font-weight:700; }
.feed-list .tab.active::after { content:'✓'; float:right; }
.auth-wrap { background:white; border:1px solid var(--line); border-radius:22px; margin:40px auto; padding:32px; box-sizing:border-box; }
#adminView { max-width:760px; }
@media(max-width:600px) {
 body { background:white; }
 .topbar { height:58px; padding:0 20px; }
 .brand { font-size:19px; }
 #mainView { padding:0 16px 16px; }
 .feed-bar { padding:20px 6px 16px; }
 .reader-shell { border-radius:18px; box-shadow:none; }
 .reader-head { padding:17px 21px 12px; }
 .card { min-height:max(400px,calc(100svh - 290px)); padding:26px 22px 22px; }
 .card h2 { font-size:26px; line-height:1.28; }
 .brief { font-size:17px; line-height:1.7; }
 .reader-nav { padding:0 16px 18px; gap:5px; }
 .reader-nav .btn { padding:10px 8px; font-size:11px; }
 .reader-nav #nextBtn { padding:10px 12px; }
 .auth-wrap { margin:20px 16px; padding:24px; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }
@media(max-width:600px) { .card { box-sizing:border-box; min-height:max(360px,calc(100svh - 300px)); } }

/* A quiet, responsive entry point to the reader. */
.auth-wrap { width:calc(100% - 40px); max-width:460px; margin:48px auto; padding:36px; box-shadow:0 14px 42px #183e250a; }
.auth-mark { display:grid; place-content:center; position:relative; width:48px; height:48px; background:#eaf3ed; color:var(--accent); border-radius:14px; font-size:30px; font-weight:750; letter-spacing:-3px; margin-bottom:24px; }
.auth-mark span { position:absolute; right:8px; top:7px; font-size:14px; }
.auth-wrap h1 { font-size:36px; letter-spacing:-1.4px; line-height:1.12; margin:12px 0 16px; font-weight:700; }
.auth-intro { font-size:14px; line-height:1.7; margin:0 0 28px; max-width:300px; }
.auth-wrap .tabs { background:#f1f4f1; padding:4px; border-radius:12px; gap:2px; margin:0 0 28px; }
.auth-wrap .tab { flex:1 1 0; min-width:0; padding:10px 4px; font-size:12px; border:0; border-radius:9px; background:transparent; color:#666; white-space:normal; }
.auth-wrap .tab.active { color:var(--accent); background:white; box-shadow:0 2px 5px #183e2510; font-weight:650; }
.auth-wrap h2 { font-size:20px; letter-spacing:-.5px; margin:0 0 5px; }
.auth-description { font-size:12px; margin:0 0 22px; }
.auth-wrap .form label { font-size:12px; font-weight:600; margin:16px 0; }
.auth-wrap .form input { margin-top:8px; padding:13px 14px; min-height:48px; border-color:#dce4df; border-radius:11px; color:var(--ink); outline:none; }
.auth-wrap .form input:focus { border-color:var(--accent); box-shadow:0 0 0 3px #196b5c15; }
.auth-wrap .form input::placeholder { color:#8a9690; font-size:13px; }
.auth-wrap .form .btn.primary { width:100%; margin-top:8px; min-height:48px; font-size:14px; }
.auth-wrap .form .small { font-size:11px; line-height:1.7; }
.auth-footnote { border-top:1px solid var(--line); margin:28px 0 0; padding-top:20px; text-align:center; font-size:10px; line-height:1.6; color:#666; }
.auth-wrap .msg { font-size:13px; line-height:1.6; }
@media(max-width:600px) { .auth-wrap { margin:24px auto; width:calc(100% - 32px); padding:28px 24px; border-radius:20px; box-shadow:none; } .auth-wrap h1 { font-size:33px; } }
.auth-wrap { margin:32px auto; padding:28px 32px; }
.auth-mark { width:40px; height:40px; font-size:27px; margin-bottom:18px; }
.auth-wrap h1 { font-size:32px; margin:10px 0 12px; }
.auth-intro { margin-bottom:22px; }
.auth-wrap .tabs { margin-bottom:22px; }
.auth-footnote { margin-top:22px; padding-top:16px; }
@media(max-width:600px) { .auth-wrap { margin:20px auto; padding:24px; } .auth-mark { width:36px; height:36px; font-size:24px; margin-bottom:14px; } .auth-wrap h1 { font-size:29px; } .auth-intro { font-size:12px; margin-bottom:18px; } .auth-wrap .tabs { margin-bottom:18px; } .auth-description { margin-bottom:16px; } .auth-wrap .form label { margin:13px 0; } .auth-footnote { font-size:9px; margin-top:18px; padding-top:14px; } }

/* Collection provenance stays separate from the original publisher. */
.card-meta { display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; margin-bottom:20px; }
.card-meta .card-tag { margin:0; }
.origin-label { display:inline-block; font-size:10px; font-weight:600; line-height:1.5; padding:5px 9px; border:1px solid var(--line); border-radius:999px; white-space:nowrap; letter-spacing:0; }
.origin-muse { color:#196b5c; background:#eaf3ed; border-color:#d5e5db; }
.origin-rss { color:#6b7774; background:#f5f7f5; }

.brain-status { margin:0 4px 14px; font-size:11px; line-height:1.6; color:#666; }
.brain-status:empty { display:none; }

/* ANN uses the existing AuruNex mark while its own identity is developed. */
.brand { display:flex; align-items:center; gap:10px; }
.brand::before { display:none; }
.brand img { display:block; object-fit:contain; }
.auth-mark { width:56px; height:48px; background:transparent; border-radius:0; }
.auth-mark img { display:block; object-fit:contain; }

.brand small {display:block;font-size:10px;letter-spacing:.035em;line-height:1.35;font-weight:500;color:#666;}
.holdings-section {margin:18px 0 24px;}
.holdings-head {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.holdings-head h2,.holdings-feed-title {font-size:18px;margin:0;}
.holdings-status {display:flex;flex-wrap:wrap;gap:4px 18px;margin:7px 0 16px;}
.holdings-list li {display:block;padding:12px 0;border-bottom:1px solid var(--line,#e3e8e5);}
.holding-identity {display:flex;align-items:baseline;gap:12px;}
.holding-news {font-size:14px;line-height:1.55;margin:5px 0 0;}
.holdings-editor {padding:12px 0;border-bottom:1px solid #e3e8e5;}
.holdings-editor .form {max-width:none;gap:8px;}
.holdings-editor textarea {width:100%;box-sizing:border-box;padding:10px;border:1px solid #d8dfdb;border-radius:8px;font:inherit;resize:vertical;}
.holdings-editor .msg {margin:6px 0;}
.holdings-feed-title {margin-top:24px;}

.holdings-editor .msg {background:transparent;border:0;padding:0;}
