:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202c38; background: #f7f8f7; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid transparent; background: #42645d; color: #fff; border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600; }
button:hover { background: #34524c; }
button:disabled { cursor: wait; opacity: .55; }
.secondary { background: transparent; border-color: #dce1e6; color: #465767; }
.secondary:hover { background: #edf0f3; }
a { color: #42645d; text-underline-offset: 3px; }
input, textarea, select { padding: 11px 12px; border: 1px solid #d6dde3; border-radius: 7px; background: #fff; color: #253b4c; min-width: 0; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #8cbad0; outline-offset: 2px; }
label { display: grid; gap: 7px; font-size: 14px; }
form { display: grid; gap: 18px; }
h1 { font-size: 32px; letter-spacing: -.9px; line-height: 1.2; margin: 12px 0; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.25px; }
p { line-height: 1.65; }
.muted { color: #72808d; }
.small { font-size: 12px; }
.eyebrow, .nav-label { font-size: 10px; letter-spacing: 1.7px; font-weight: 700; color: #8495a3; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 1.3px; font-weight: 750; text-decoration: none; color: inherit; }

.brand-logo { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand-name { font-size: 19px; letter-spacing: -.6px; line-height: 1.15; max-width: 120px; color: #293a33; }
.workspace { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
aside { background: #eef1ef; color: #2c3732; border-right: 1px solid #dde2df; padding: 32px 18px 20px; display: flex; flex-direction: column; gap: 7px; position: sticky; top: 0; height: 100vh; }
aside .brand { padding: 0 12px 32px; }
.nav-label { margin: 5px 14px 12px; color: #7b867f; }
.nav-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; background: transparent; color: #66736c; text-align: left; font-weight: 400; font-size: 13px; }
.topic-nav { display: grid; gap: 7px; min-width: 0; }
.nav-item:hover { background: #e6ebe7; color: #334d41; }
.nav-item.selected { background: #dfe7e2; color: #334d41; font-weight: 600; }
.nav-item b { background: #d0dcd4; padding: 3px 7px; border-radius: 5px; font-size: 11px; }
.aside-bottom { margin-top: auto; display: grid; gap: 8px; padding-top: 30px; }
aside .secondary { border-color: #d0d8d2; color: #58675e; text-align: left; }
aside .secondary:hover { background: #e1e7e3; }
.profile { display: flex; gap: 10px; align-items: center; padding: 18px 5px 10px; font-size: 12px; }
.profile small { display: block; color: #7b867f; padding-top: 4px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d9e2dc; font-size: 16px; }
.main { padding: 46px 48px; max-width: 1450px; width: 100%; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-header p { font-size: 12px; margin-bottom: 0; }
.filters { grid-template-columns: minmax(150px, 1fr) 142px 142px auto; gap: 10px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 12px; }
.list-toolbar button { font-size: 12px; padding: 8px 10px; border-color: transparent; }
.event-list { display: grid; gap: 12px; }
.daily-unverified { padding: 8px 12px 16px; font-size: 12px; }
.daily-unverified td { padding: 10px; border-bottom: 1px solid #edf0f3; }
.daily-unverified a { font-size: 12px; color: #72808d; }
.view-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.view-switch { display: flex; padding: 3px; border-radius: 8px; border: 1px solid #dce1e6; background: #e9edf1; }
.view-switch button { padding: 7px 16px; color: #72808d; background: transparent; font-size: 12px; }
.view-switch button.active { background: white; color: #203344; box-shadow: 0 1px 4px #20334414; }
.reading-switch { flex: 0 0 auto; }
.reading-switch button { padding: 8px 11px; }
.bulk-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.range-dialog { width: min(500px, 94vw); }
.range-dialog > button { margin-top: 18px; }
.range-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .range-dates { grid-template-columns: 1fr; } .reading-switch { max-width: 100%; } .reading-switch button { padding: 8px; font-size: 11px; } .list-toolbar { gap: 12px; align-items: flex-start; } }
.news-list { background: white; border: 1px solid #dfe5ea; border-radius: 10px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.news-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.news-table th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .3px; color: #798794; background: #eef1f4; padding: 9px 10px; border-bottom: 1px solid #dce2e7; }
.news-row td { padding: 7px 10px; height: 35px; border-bottom: 1px solid #edf0f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #72808d; }
.news-row:last-child td { border-bottom: 0; }
.news-row:hover { background: #f3f6f9; }
.news-table .row-date { width: 76px; font-variant-numeric: tabular-nums; }
.news-table .row-topic { width: 104px; }
.news-table .row-place { width: 130px; }
.news-table .row-sources { width: 235px; font-variant-numeric: tabular-nums; }
.sources-inline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.source-count { flex: 0 0 auto; padding: 1px 5px; height: 20px; min-width: 22px; background: #eef2ef; color: #5e7267; border-radius: 4px; font-size: 10px; }
.source-count:hover { background: #e2e9e4; }
.source-chip { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; text-decoration: none; color: #6c8292; }
.source-chip:hover { text-decoration: underline; }
.source-more { flex: 0 0 auto; color: #9ba5ad; font-size: 9px; }
.sources-dialog { width: min(650px, 90vw); }
.sources-dialog > p { border-bottom: 1px solid #edf0f3; padding-bottom: 12px; font-size: 13px; }
.account-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.topic-picker { margin: 0; border: 1px solid #dce2e7; border-radius: 8px; padding: 16px; display: grid; gap: 14px; min-width: 0; }
.topic-picker legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.topic-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic-picker .checkbox { font-size: 12px; }
.topic-picker input[type=checkbox] { width: 16px; height: 16px; }
.topic-picker p { margin: 0; }
.account-dialog { width: min(650px, 94vw); }
.account-dialog > button { margin-top: 18px; }
.bot-profile { display: flex; align-items: flex-start; gap: 18px; margin: 20px 0; }
.bot-photo { flex: 0 0 auto; width: 80px; height: 80px; object-fit: cover; border-radius: 50%; background: #e6edf1; }
.bot-placeholder { display: grid; place-items: center; font-size: 28px; color: #637d8e; }
.bot-profile h3 { margin: 0 0 6px; font-size: 18px; }
.bot-profile a { font-size: 13px; }
.bot-profile p { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 700px) { .account-fields, .topic-choices { grid-template-columns: 1fr; } .bot-photo { width: 56px; height: 56px; } }
.news-table .row-read { width: 70px; text-align: center; }
.row-story a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 19px; color: #25394a; text-decoration: none; }
.row-story a:hover { color: #42645d; }
.read-toggle { padding: 0 5px; min-width: 25px; height: 23px; background: transparent; color: #6e8a7f; font-size: 16px; font-weight: 400; }
.read-toggle:hover { background: #edf1ef; }
.read-toggle.done { color: #a1aab2; }
.event-card { padding: 24px 26px 16px; background: #fff; border: 1px solid #e1e6ea; border-radius: 11px; box-shadow: 0 2px 3px #20334402; }
.event-card h2 { margin: 14px 0 10px; font-size: 18px; }
.event-card h2 a { text-decoration: none; color: #25394a; }
.event-card h2 a:hover { color: #42645d; }
.event-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #84919c; }
.topic-tag { display: inline-block; padding: 5px 8px; border-radius: 4px; background: #edf1ef; color: #596b64; font-size: 10px; font-weight: 600; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: #6e8a7f; margin-left: auto; }
.summary { color: #6b7883; font-size: 13px; margin: 0 0 18px; line-height: 1.75; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eff1f3; padding-top: 12px; }
.card-bottom button { border-color: transparent; padding: 5px 0 5px 10px; font-size: 11px; font-weight: 500; }
.is-read { background: #fafbfc; }
.is-read .topic-tag { background: #eef0f3; color: #7c8790; }
.pagination { display: flex; justify-content: center; gap: 20px; align-items: center; padding: 28px 0; }
.detail { max-width: 880px; }
.detail-meta { margin-top: 30px; }
.markdown { overflow-wrap: anywhere; padding: 6px 0 24px; }
.markdown h2:first-child { font-size: 30px; line-height: 1.35; letter-spacing: -.6px; }
.markdown h3 { margin-top: 30px; }
.markdown p { font-size: 15px; }
.discussion { margin-top: 35px; border-top: 1px solid #dbe1e7; padding-top: 18px; }
.discussion form { margin-top: 25px; }
.discussion button { justify-self: start; }
.comment { background: #fff; border: 1px solid #e1e6ea; border-radius: 9px; margin: 15px 0; padding: 18px; }
.comment time { margin-left: 14px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 0; font-size: 14px; }
.panel { border: 1px solid #e1e6ea; background: #fff; border-radius: 11px; padding: 26px; margin-bottom: 18px; }
.panel h2 { margin-top: 0; }
.panel p { font-size: 13px; }
.panel form { max-width: 550px; }
.panel form button { justify-self: start; }
.subscription, .user-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #edf0f3; padding: 18px 0; font-size: 13px; }
.subscription strong { width: 175px; }
.subscription select { font-size: 12px; }
.digest-timing { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 16px; background: #f5f7f5; border: 1px solid #e1e6ea; border-radius: 8px; }
.digest-timing[hidden] { display: none; }
.password-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; }
.send-now { flex-basis: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.digest-timing p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) { .digest-timing { grid-template-columns: 1fr; } }
.checkbox { display: flex; align-items: center; font-size: 11px; gap: 7px; }
.user-row > div { flex: 1; }
.user-row p { margin: 5px 0 0; }
.connection-output { margin: 18px 0; overflow-wrap: anywhere; }
.connection-output input { width: 100%; }
.connection-output code { display: block; background: #f1f4f7; padding: 12px; font-size: 12px; }
.source-row { border-top: 1px solid #edf0f3; padding-top: 15px; margin-top: 15px; }
.source-row strong { font-size: 12px; }
.error { color: #a1473a; }
.empty { text-align: center; background: #fff; padding: 70px 20px; border-radius: 10px; border: 1px dashed #dce2e7; }
.login { max-width: 530px; margin: 10vh auto; padding: 25px; }

.login-card { background: #fff; border: 1px solid #dfe5ea; border-radius: 14px; padding: 35px; }
.login-card h1 { font-size: 30px; margin-top: 18px; }
.login-card > p { font-size: 13px; margin-bottom: 25px; }
.login-card form { margin: 25px 0; }
.loading { padding: 50px; color: #71818d; }
#notice { display: none; }
#notice.visible { display: block; position: fixed; bottom: 25px; right: 25px; z-index: 10; padding: 15px 22px; max-width: min(500px, 90vw); background: #203344; color: white; border-radius: 9px; box-shadow: 0 6px 30px #0003; }
#notice.error { background: #8e4036; }
dialog { border: 1px solid #dce2e7; border-radius: 12px; padding: 28px; max-width: 800px; max-height: 85vh; }
dialog::backdrop { background: #172d40aa; }
dialog pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.7; }
@media (max-width: 1100px) { .main { padding: 30px 25px; } .filters { grid-template-columns: minmax(140px, 1fr) auto; } .filters input[type=date] { grid-row: 2; } }
@media (max-width: 700px) { .workspace { display: block; } aside { position: static; height: auto; padding: 18px; gap: 5px; } aside .brand { padding: 0 0 18px; } .nav-label { display: none; } .nav-item { padding: 8px 10px; } .aside-bottom { padding-top: 10px; grid-template-columns: 1fr 1fr; } .profile { display: none; } .main { padding: 25px 16px; } h1 { font-size: 27px; } .page-header { display: block; } .page-header > button { margin-top: 15px; } .filters { grid-template-columns: 1fr 1fr; } .filters input[type=search] { grid-column: 1 / -1; } .filters button { grid-column: 1 / -1; } .event-card { padding: 20px 18px 14px; } .event-card h2 { font-size: 17px; } .list-toolbar { gap: 10px; } .list-toolbar > span { max-width: 130px; } .panel { padding: 20px; } .subscription { align-items: start; } .subscription strong { width: 100%; } .login-card { padding: 25px; } .detail .markdown h2:first-child { font-size: 25px; } }
@media (max-width: 700px) {
  .view-toolbar > span { display: none; }
  .topic-nav { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .nav-item { flex: 0 0 auto; gap: 12px; }
  .aside-bottom { display: flex; flex-wrap: wrap; }
  .aside-bottom button { padding: 8px 10px; font-size: 11px; }
  aside .brand { padding-bottom: 10px; }
}
