:root { font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif; color: #201727; background: #f4f1eb; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 8% -8%, rgba(100, 41, 154, .16), transparent 36rem), #f4f1eb; }
button, input, select { font: inherit; }
button { min-height: 38px; padding: 7px 13px; border: 1px solid #cfc4d8; border-radius: 8px; background: white; color: #35283e; cursor: pointer; font-weight: 800; }
button:disabled { cursor: wait; opacity: .5; }
button.primary { border-color: #6831a0; background: #6831a0; color: white; }
button.ghost { background: transparent; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 78px; padding: 12px max(20px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(82, 57, 94, .25); background: rgba(28, 13, 45, .96); color: white; backdrop-filter: blur(12px); }
.site-header span, .eyebrow { color: #bda8d1; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.site-header h1 { margin: 2px 0 0; font-size: 20px; }
.header-actions, .login-actions, .filters { display: flex; gap: 8px; align-items: center; }
main { width: min(1240px, calc(100% - 30px)); margin: 0 auto; padding: 34px 0 60px; }
.login-card, .queue-card { border: 1px solid #d9d0c7; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 16px 46px rgba(39, 23, 49, .09); }
.login-card { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) minmax(220px, .8fr); gap: 18px; align-items: end; padding: 24px; }
.login-card h2, .summary-head h2, .queue-head h2 { margin: 4px 0 7px; }
.login-card p { max-width: 640px; margin: 0; color: #695d6d; line-height: 1.6; }
label { display: grid; gap: 5px; color: #655969; font-size: 11px; font-weight: 800; }
input, select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d2c8d8; border-radius: 8px; background: white; color: #281e2d; }
.login-actions { grid-column: 2 / -1; justify-content: flex-end; }
.security-note { grid-column: 1 / -1; display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #efadb3; border-radius: 8px; background: #fff1f2; color: #912d39; }
.security-note span { font-size: 12px; }
.status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.status-badge.neutral { background: #eee8f1; color: #665a6b; }
.status-badge.success, .status-published { background: #dcf7e6; color: #16633e; }
.status-badge.danger, .status-failed, .status-needs_review { background: #ffe3e6; color: #9a2936; }
.status-badge.warning, .status-scheduled, .status-pending_upload, .status-sync_error { background: #fff0c9; color: #815710; }
.status-publishing, .status-uploading, .status-syncing { background: #dfeeff; color: #225794; }
.summary-head, .queue-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 30px 0 12px; }
.summary-head > span { color: #746a77; font-size: 12px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.page-card { display: grid; gap: 9px; padding: 16px; border: 1px solid #d9d0c7; border-radius: 11px; background: white; }
.page-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.page-card h3 { margin: 0; font-size: 16px; }
.page-card code { color: #6a3997; font-size: 11px; overflow-wrap: anywhere; }
.page-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.page-counts div { padding: 8px; border-radius: 7px; background: #f6f3f0; text-align: center; }
.page-counts strong, .page-counts span { display: block; }
.page-counts strong { font-size: 18px; }
.page-counts span { color: #756a78; font-size: 10px; }
.page-next { color: #665a69; font-size: 12px; }
.queue-card { margin-top: 26px; padding: 20px; }
.queue-head { margin: 0 0 14px; }
.filters { flex-wrap: wrap; justify-content: flex-end; }
.filters select { width: auto; min-width: 150px; }
.filters input { width: 230px; }
.table-wrap { overflow-x: auto; border: 1px solid #dfd7cf; border-radius: 9px; }
table { width: 100%; min-width: 980px; border-collapse: collapse; background: white; }
th, td { padding: 11px 10px; border-bottom: 1px solid #ece6e0; text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #f7f3f9; color: #625568; font-size: 11px; }
td { font-size: 12px; }
td code { display: block; max-width: 200px; color: #583184; overflow-wrap: anywhere; white-space: normal; }
.post-status { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.post-page strong, .post-page span, .post-detail strong, .post-detail span { display: block; }
.post-page span, .post-detail span { margin-top: 3px; color: #796e7c; font-size: 10px; }
.post-detail strong { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-error { max-width: 320px; margin-top: 5px; color: #a52a36; font-size: 10px; }
.post-link { color: #572486; font-weight: 900; text-decoration: none; }
.empty { padding: 38px; color: #706574; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 860px) { .login-card { grid-template-columns: 1fr; } .login-actions, .security-note { grid-column: auto; } .summary-head, .queue-head { display: grid; align-items: start; } .filters { justify-content: stretch; } .filters select, .filters input { flex: 1 1 180px; width: auto; } }
@media (max-width: 560px) { .site-header { align-items: flex-start; padding: 10px 12px; } .site-header h1 { font-size: 15px; } .header-actions { display: grid; justify-items: end; } main { width: calc(100% - 18px); padding-top: 18px; } .login-card, .queue-card { padding: 14px; } }
