:root { color-scheme: light; font-family: "Inter", "Microsoft YaHei", system-ui, sans-serif; background: #f5f7fa; color: #16213a; }
[hidden] { display: none !important; }
#click-details, .report-actions button { border: 1px solid #cbd6ea; border-radius: 7px; padding: 8px 12px; background: white; color: #2249b3; }
#click-details { margin: 14px 6px 4px; }
.report-actions { display: flex; gap: 8px; margin: 12px 0; }
.report-scroll { overflow: auto; }
.report-scroll table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.report-scroll th, .report-scroll td { border-bottom: 1px solid #e1e6ef; padding: 9px; text-align: left; min-width: 90px; overflow-wrap: anywhere; }
.report-scroll th { background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
.top { min-height: 64px; background: #fff; border-bottom: 1px solid #e1e6ef; display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(16px, 5vw, 56px); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #2249b3; color: white; }
.preview { color: #2249b3; font-size: .9rem; text-decoration: none; }
.workspace { max-width: 1260px; margin: 0 auto; padding: clamp(12px, 3vw, 40px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.sidebar, .editor { background: white; border: 1px solid #e1e6ef; border-radius: 13px; }
.sidebar { position: sticky; top: 20px; padding: 15px 10px; }
.sidebar h2 { margin: 4px 12px 12px; font-size: .86rem; }
nav { display: grid; gap: 2px; max-height: min(68vh, 660px); overflow: auto; }
nav button { color: #42506c; border: 0; background: transparent; border-radius: 7px; padding: 9px 11px; text-align: left; line-height: 1.4; font-size: .85rem; overflow-wrap: anywhere; }
nav button:hover, nav button[aria-current="true"] { background: #eaf0ff; color: #1d42a4; }
.editor { min-height: 360px; padding: clamp(16px, 4vw, 38px); }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subtitle { margin: 0 0 7px; color: #5d6c86; font-size: .84rem; }
h1 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.65rem); overflow-wrap: anywhere; }
.publish { flex: none; background: #2249b3; color: #fff; border: 0; border-radius: 8px; padding: 10px 15px; font-weight: 650; }
.status { margin: 18px 0; color: #53627d; font-size: .88rem; }
.status.error { color: #a32030; }
.field { display: grid; gap: 8px; margin-top: 20px; }
.contact-list { display: grid; gap: 10px; }
.contact-row { display: flex; gap: 8px; align-items: center; }
.contact-row input { min-width: 0; }
.add-contact, .remove-contact { border: 1px solid #cbd6ea; border-radius: 7px; padding: 10px 12px; background: white; color: #2249b3; }
.add-contact { justify-self: start; }
.remove-contact { flex: none; color: #a32030; }
.distribution { border: 1px solid #e1e6ef; border-radius: 8px; padding: 12px; }
.distribution legend { font-size: .9rem; font-weight: 650; padding: 0 4px; }
.mode-option { display: flex; gap: 8px; align-items: center; }
.mode-option input[type="radio"] { width: auto; margin: 0; accent-color: #2249b3; }
label { font-size: .9rem; font-weight: 650; }
input:not([type="file"]), textarea { border: 1px solid #cfd7e6; border-radius: 7px; padding: 10px 11px; color: inherit; width: 100%; background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
:focus-visible { outline: 2px solid #315ed0; outline-offset: 2px; }
.hint { color: #53627d; font-size: .83rem; margin: 0; }
.thumbnail { display: block; width: min(220px, 100%); max-height: 150px; object-fit: contain; object-position: left; }
.thumbnail[hidden] { display: none; }
.upload-label { font-size: .83rem; color: #2249b3; font-weight: 500; }
input[type="file"] { max-width: 100%; font-size: .85rem; }
@media (max-width: 650px) {
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .sidebar { position: static; }
  nav { max-height: 135px; }
}

.login-card{max-width:420px;margin:12vh auto;padding:28px;background:#fff;border:1px solid #e1e6ef;border-radius:16px}.login-card form{display:grid;gap:12px}.login-card input{width:100%;padding:12px;border:1px solid #ccd6e5;border-radius:8px}.login-card p{line-height:1.6;color:#53627d}#logout{background:white;color:#2249b3;border:1px solid #ccd6e5;border-radius:6px;padding:8px}@media(max-width:480px){.login-card{margin:8vh 16px}}
