:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #17202a; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #edf5fc, #f7fafc); }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid #dce5f1; border-radius: 16px; padding: 30px; box-shadow: 0 12px 40px rgb(24 54 83 / 10%); display: grid; gap: 16px; }
.login-card h1 { color: #123968; font-size: 26px; }
.login-card p { color: #63748a; }
.login-card form { padding: 0; max-height: none; }
#login-notice { min-height: 20px; color: #a23430; }
#app-shell.hidden, .hidden { display: none; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#account-label { color: #dceafb; font-size: 14px; }
.topbar { color: #fff; background: linear-gradient(115deg, #123968, #1e5f94); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px max(6vw, 24px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(24px, 3vw, 32px); } .topbar p { margin-top: 5px; color: #dceafb; }
main { max-width: 1280px; padding: 26px 24px 48px; margin: auto; display: grid; gap: 18px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.main-column { display: grid; gap: 18px; }
.history-panel { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; }
.history-reports { display: grid; gap: 8px; margin-top: 14px; }
.history-link { display: flex; justify-content: space-between; gap: 10px; text-decoration: none; color: #24547d; border: 1px solid #dce5f1; border-radius: 9px; padding: 11px; background: #fbfdff; }
.history-link:hover { background: #eef6fc; border-color: #a7c5df; }
.history-link span:first-child { display: grid; gap: 4px; } .history-link small { color: #63748a; font-size: 12px; }
.history-count { text-align: right; color: #63748a; font-size: 12px; white-space: nowrap; } .history-count em { color: #1767a8; font-style: normal; }
.compact-config { padding: 16px 18px; }
.compact-config .section-heading { align-items: flex-start; }
.compact-config .section-heading h2 { font-size: 18px; }
.compact-config .section-heading p { font-size: 13px; }
.compact-config .config-summary { margin-top: 12px; gap: 6px 16px; }
.compact-config .config-summary div { padding: 5px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.config-summary div { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.config-summary strong { color: #63748a; font-size: 13px; } .config-summary span { line-height: 1.6; }
.result-item { border-top: 1px solid #e5ebf2; padding: 17px 0; } .result-item:first-of-type { margin-top: 12px; }
.result-item h3 { margin: 5px 0; font-size: 19px; line-height: 1.4; } .result-item h3 a { text-decoration: none; }
.result-item p { margin-top: 8px; line-height: 1.7; } .result-source, .result-meta, .original-title { color: #63748a; font-size: 13px; } .original-title { margin-top: 0 !important; }
@media (max-width: 900px) { .workspace-grid { grid-template-columns: 1fr; } .history-panel { position: static; max-height: none; } }
.card { background: #fff; border: 1px solid #dce5f1; border-radius: 14px; padding: 22px; box-shadow: 0 5px 20px rgb(24 54 83 / 5%); }
.section-heading, .dialog-heading, .profile-head, .dialog-actions, .inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading p, .hint, .muted { color: #63748a; font-size: 14px; margin-top: 5px; }
.status-card { display: flex; gap: 15px; flex-wrap: wrap; padding-block: 16px; }
.status { border-radius: 10px; padding: 9px 12px; background: #eef3f8; color: #3d5269; font-size: 14px; }
.status.ok { background: #e7f7ef; color: #167044; } .status.warn { background: #fff3dc; color: #905a00; }
.primary, .secondary, .danger { border-radius: 8px; border: 1px solid transparent; padding: 9px 13px; font-weight: 650; }
.primary { background: #1767a8; color: #fff; } .primary:hover { background: #10588f; }
.secondary { background: #fff; color: #24547d; border-color: #c8d7e6; } .secondary:hover { background: #eff6fb; }
.danger { color: #a5302b; border-color: #edc7c4; background: #fff; } .danger:hover { background: #fff3f2; }
.icon { border: 0; background: transparent; color: #63748a; font-size: 24px; line-height: 1; padding: 2px 6px; }
.profiles { display: grid; gap: 12px; margin-top: 16px; }
.profile { border: 1px solid #dce5f1; border-radius: 11px; padding: 17px; }
.profile h3 { font-size: 18px; } .profile-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.badge { background: #e7f0fb; color: #245a8c; border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650; }
.badge.disabled, .badge.failed { background: #fbeaea; color: #a23430; } .badge.running, .badge.queued { background: #fff2d9; color: #8b5a00; } .badge.succeeded { background: #e7f7ef; color: #167044; }
.profile-info { color: #63748a; font-size: 14px; margin-top: 9px; }
.inline-actions { justify-content: flex-start; margin-top: 14px; flex-wrap: wrap; }
#notice { min-height: 0; color: #a23430; margin-top: 12px; } #notice.success { color: #167044; }
.hidden { display: none; } .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; } .list li { border-bottom: 1px solid #e9eef4; padding-bottom: 8px; font-size: 14px; }
a { color: #1767a8; } code { background: #eff3f7; border-radius: 4px; padding: 2px 5px; }
dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 36px); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 24px 70px rgb(0 25 50 / 30%); } dialog::backdrop { background: rgb(6 29 52 / 45%); }
form { padding: 22px; overflow: auto; max-height: calc(100vh - 36px); display: grid; gap: 16px; } label, fieldset { display: grid; gap: 7px; font-weight: 650; } input[type="text"], input[type="number"] { border: 1px solid #b9c9da; padding: 9px 10px; border-radius: 7px; color: #17202a; } fieldset { border: 1px solid #dce5f1; border-radius: 8px; padding: 13px; } legend { padding-inline: 5px; color: #3d5269; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; } .keyword-list { display: grid; gap: 8px; } .keyword-row { display: flex; gap: 8px; } .keyword-row input { flex: 1; } .add-keyword { align-self: start; width: 32px; height: 32px; padding: 0; border: 1px solid #a8c8e1; border-radius: 50%; background: #eef6fc; color: #1767a8; font-size: 24px; font-weight: 500; line-height: 1; } .add-keyword:hover { background: #dcecf8; border-color: #6fa6cf; }
.empty { color: #63748a; padding: 18px 0; text-align: center; }
@media (max-width: 680px) { .topbar { align-items: flex-start; flex-direction: column; } .detail-grid { grid-template-columns: 1fr; } .check-grid, .config-summary { grid-template-columns: 1fr; } .section-heading, .profile-head { align-items: flex-start; flex-direction: column; } }
