* { box-sizing: border-box; }
body { margin: 0; color: #213352; background: #f7faff; font-family: Inter,"PingFang SC","Microsoft YaHei",sans-serif; font-size: 13px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, select, input, textarea { border: 1px solid #d7e2f3; border-radius: 7px; color: #253953; background: #fff; }
button { cursor: pointer; padding: 7px 12px; }
button:disabled { cursor: default; color: #8698b4; background: #edf1f7; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #9dbdff; outline-offset: 2px; }
.primary { color: #fff; background: #3475fa; border-color: #3475fa; }
.full { width: 100%; }
a { color: #2467df; text-decoration: none; }
label { display: grid; gap: 5px; margin: 12px 0; font-weight: 500; }
input, select, textarea { width: 100%; min-width: 0; padding: 8px 10px; }
textarea { resize: vertical; line-height: 1.5; }
h1 { margin: 0; font-size: 24px; color: #172946; }
h2 { margin: 0; font-size: 16px; color: #152745; }
p { line-height: 1.55; }
.marketing-header { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 17px 20px 12px; background: #fff; border-bottom: 1px solid #e0e8f4; }
.marketing-header > div:first-child { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.marketing-header p { margin: 0; color: #7890b0; font-size: 12px; }
.scope-controls { display: flex; gap: 16px; margin-left: auto; }
.scope-controls label { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.scope-controls select { width: 150px; }
.marketing-main { padding: 0 16px 18px; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 10px; padding: 11px 0; }
.studio-tabs button { border-radius: 24px; padding: 8px 18px; background: #f3f7fc; color: #7389a9; border-color: #e6edf8; }
.studio-tabs button.active { color: #2b6fff; background: #fff; border-color: #3475fa; font-weight: 600; }
#notice { margin: 0 0 9px; color: #785a28; }
#notice:empty { display: none; }
.studio { display: grid; grid-template-columns: minmax(250px,.95fr) minmax(300px,1.07fr) minmax(310px,1.15fr); gap: 10px; align-items: stretch; }
.studio-panel { padding: 14px; border: 1px solid #dbe5f5; border-radius: 10px; background: #fff; min-width: 0; }
.hint { margin: 7px 0 12px; color: #7c91ae; font-size: 12px; line-height: 1.55; }
.panel-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.badge { background: #eef1ff; color: #7060c8; border-radius: 16px; padding: 4px 8px; font-size: 11px; }
.channels { display: flex; flex-wrap: wrap; gap: 5px; margin: 18px 0; padding: 0; border: 0; }
.channels legend { padding: 0 0 7px; }
.channels button { flex: 1 1 48px; min-width: 48px; display: grid; justify-items: center; gap: 5px; padding: 7px 3px; font-size: 10px; }
.channels button[aria-pressed="true"] { border-color: #3475fa; color: #2467df; background: #f4f8ff; }
.channel-icon { display: inline-grid; align-items: center; justify-items: center; width: 26px; height: 26px; font-weight: 800; font-size: 23px; }
.facebook { color: #fff; border-radius: 50%; background: #2471f9; font-family: Arial,sans-serif; }
.instagram { color: #da4795; font-size: 30px; }
.linkedin { background: #0a83ba; color: #fff; border-radius: 3px; font-size: 17px; }
.google_ads { color: #3475fa; }
.website { color: #657b9b; }
.advanced { margin-top: 14px; border-top: 1px solid #e6edf7; padding-top: 10px; }
summary { cursor: pointer; color: #627c9e; font-size: 12px; }
.content-title { border: none; font-size: 18px; font-weight: 700; padding: 8px 4px; }
.content-body { border: none; padding: 6px 4px; min-height: 220px; }
#draft-form { margin-top: 8px; padding: 6px; border: 1px solid #dde6f5; border-radius: 9px; }
.image-placeholder { display: grid; place-items: center; background: #f3f6fb; color: #94a5bd; min-height: 140px; border-radius: 6px; overflow: hidden; font-size: 12px; }
.image-placeholder img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.social-preview { margin-top: 10px; border: 1px solid #dfe7f5; border-radius: 9px; padding: 10px; }
.social-preview header { display: flex; align-items: center; gap: 10px; }
.social-preview small { display: block; margin-top: 3px; font-size: 10px; color: #8194b2; }
.social-copy { padding: 10px 0 4px; }
.social-copy p { margin: 5px 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.social-preview footer { display: flex; justify-content: space-around; color: #7c90af; padding-top: 8px; font-size: 11px; }
.actions { display: flex; gap: 8px; margin-top: 9px; }
.actions > button { flex: 1; }
.review-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
#history { margin-top: 12px; }
#history-items { font-size: 11px; color: #7185a2; line-height: 1.8; }
#records { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 9px; }
.record { text-align: left; display: grid; gap: 7px; padding: 12px; color: #233b5a; min-width: 0; }
.record strong { overflow-wrap: anywhere; }
.record small { color: #7d91af; }
.record img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; }
.record time { color: #456a9c; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
dialog { width: min(520px,94vw); border: 1px solid #dbe5f5; border-radius: 12px; color: #203451; }
dialog::backdrop { background: #102a4b50; }
@media (max-width: 1200px) { .studio { grid-template-columns: minmax(210px,.8fr) minmax(250px,1fr); } .preview-panel { grid-column: 1 / -1; } .social-preview { max-width: 600px; } }
@media (max-width: 700px) { .studio { display: block; } .studio-panel { margin-bottom: 10px; } .scope-controls { margin-left: 0; flex-wrap: wrap; } .marketing-header { padding: 14px; } .marketing-main { padding-inline: 10px; } .studio-tabs { gap: 5px; } .studio-tabs button { padding: 6px 11px; } }
