:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #f6f8fb; color: #17233a; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #155e96; }
button, input, select { font: inherit; }
button { cursor: pointer; background: #163c67; border: 0; color: #fff; padding: 11px 16px; border-radius: 8px; }
button:disabled { opacity: .6; cursor: default; }
button.secondary { background: #3a648a; }
button.danger { background: #ae3434; }
button.small { padding: 6px 10px; font-size: 14px; }
button.org { background: #3a648a; width: 100%; text-align: left; }
button.org.active { background: #176d42; }
[hidden] { display: none !important; }

.shell { max-width: 1050px; margin: auto; padding: 26px 20px; }
.shell.narrow { max-width: 560px; }
.panel { background: #fff; border: 1px solid #e1e7ee; border-radius: 13px; padding: 22px; margin-top: 18px; box-shadow: 0 3px 15px #17344d0b; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: #5e7087; }
.field { display: block; width: 100%; padding: 11px; border: 1px solid #cbd5e1; border-radius: 7px; margin: 6px 0 15px; }
select.compact { padding: 6px; border: 1px solid #cbd5e1; border-radius: 7px; }
.chip { background: #e8f1ff; border-radius: 25px; padding: 5px 10px; font-size: 12px; }
.error { color: #ae3434; }
.success { color: #176d42; }
#message { min-height: 1.4em; margin: 14px 0 0; }

h1 { letter-spacing: -.04em; }
h2 { font-size: 19px; }
h3 { font-size: 16px; margin: 22px 0 8px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain > li { margin: 7px 0; }
li.item { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #eef2f6; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef2f6; }
td:last-child { text-align: right; }
form.inline { border-top: 1px solid #eef2f6; margin-top: 18px; max-width: 460px; }
.agents { width: 100%; margin-top: 6px; background: #f6f8fb; border-radius: 8px; padding: 6px 10px; }

/* Content-Studio */
textarea { font: inherit; resize: vertical; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.tabs button { background: #e5ecf6; color: #17344d; }
.tabs button.selected { background: #163c67; color: #fff; }
.card { background: #f8fafc; border: 1px solid #e4eaf1; border-radius: 10px; padding: 15px; margin: 12px 0; }
.card h3 { margin: 12px 0 6px; }
.card p { overflow-wrap: anywhere; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }
.editor { margin-top: 16px; padding: 16px; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; }
.preview { white-space: pre-wrap; line-height: 1.6; }
