:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;background:#101b2c;color:#eef6ff}
*{box-sizing:border-box}
main{max-width:1080px;margin:auto;padding:28px 18px 60px}
header{padding:10px 0 20px;border-bottom:1px solid #395170}
header span,a{color:#8edbff}
h1,h2{line-height:1.2}
h1{margin:8px 0;font-size:clamp(28px,5vw,43px)}
h2{font-size:21px;margin:0 0 16px}
section,.notice{padding:20px;margin-top:16px;border:1px solid #395170;border-radius:12px;background:#172941}
.login{max-width:430px;margin:24px auto}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;margin-bottom:16px}
.grid section{margin:0}
form{display:grid;gap:12px}
form+form{margin-top:20px}
label{display:grid;gap:5px}
.check{display:flex;align-items:center}
input,select,textarea,button{font:inherit}
input,select,textarea{width:100%;border:1px solid #66809f;border-radius:7px;padding:8px 10px;background:#142238;color:inherit}
input[type=checkbox]{width:auto;margin:0 6px 0 0}
textarea{resize:vertical}
button{justify-self:start;padding:8px 14px;border:0;border-radius:7px;background:#8edbff;color:#12233a;font-weight:650;cursor:pointer}
:focus-visible{outline:2px solid #ffd08a;outline-offset:3px}
.logout{margin-top:15px}
.server,small{color:#b5c8dc;overflow-wrap:anywhere}
.error{border-color:#f1a486;color:#ffceba}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:8px;border-bottom:1px solid #395170;overflow-wrap:anywhere}
.embed-section{margin-bottom:20px}
.embed-section form{max-width:780px}
.embed-section details,fieldset{border:1px solid #395170;border-radius:8px;padding:10px 12px}
.embed-section details[open]>*+*,fieldset>*+*{margin-top:9px}
summary{cursor:pointer;font-weight:650}
input[type=color]{width:68px;height:40px;padding:3px}
.embed-toolbar,.embed-tools{display:flex;flex-wrap:wrap;gap:6px}
.embed-toolbar button,.embed-tools button{background:#283d58;color:#eef6ff;padding:5px 9px;font-size:14px}
.embed-preview{max-width:620px;background:#313338;border-radius:8px;padding:14px;font-size:14px}
.embed-preview p,.embed-preview h3{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.embed-card{background:#2b2d31;border-left:4px solid #39bdf8;border-radius:4px;padding:12px;margin-top:8px;display:flow-root}
.embed-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));gap:10px;margin:9px 0}
.embed-stack{display:grid;gap:9px;margin:9px 0}
.embed-thumbnail{float:right;width:60px;height:60px;object-fit:contain;margin:0 0 8px 8px}
.embed-banner{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:9px 0}
.embed-link{display:inline-block;background:#4b4d55;margin-top:9px;padding:6px 10px;border-radius:4px}
