/* One palette for the workspace; document pages retain their print layout. */
:root {
 --primary-soft: #edf7ff; --primary-border: #badef7; --surface-muted: #f8f9fd;
 --radius-card: 18px; --shadow-card: 0 4px 24px rgb(24 34 57 / 4%);
 --primary-hover: color-mix(in srgb, var(--primary) 84%, #182239);
}
html { color-scheme: light; }
body { font-family: 'Noto Sans Thai', 'Inter', sans-serif; font-weight: 400; color: var(--text-primary); }
button, input, select, textarea { font-family: inherit; }
::selection { background: #dcefff; color: #075b9b; }
:focus-visible { outline: 3px solid #78bff2; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
button[aria-busy="true"] { cursor: wait; }
.top-header, .admin-console .topbar { background: rgb(255 255 255 / 96%); border-bottom-color: var(--border-light); box-shadow: 0 1px 12px rgb(24 34 57 / 2%); }
.header-brand { letter-spacing: -.3px; }
.profile-btn { background: var(--surface-muted); border-color: var(--border-light); border-radius: 12px; }
.profile-btn:hover { background: var(--primary-soft); border-color: var(--primary-border); }
.left-sidebar, .admin-console .sidebar { background: linear-gradient(165deg,var(--bg-sidebar),color-mix(in srgb,var(--bg-sidebar) 90%,var(--primary))); }
.left-sidebar .menu-title, .nav-label { color: #a6afc5; font-size: 10px; letter-spacing: .08em; }
.left-sidebar .menu-item, .admin-console .nav-item { font-weight: 500; border-radius: 11px; color: #c9d1e3; }
.left-sidebar .menu-item i, .admin-console .nav-item > i { color: #aeb9d1; }
.left-sidebar .menu-item:hover, .admin-console .nav-item:hover { background: rgb(255 255 255 / 6%); color: #fff; }
.left-sidebar .menu-item.active, .admin-console .nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgb(0 0 0 / 12%); }
.left-sidebar .menu-item.active i, .admin-console .nav-item.active > i { color: #fff; }
.left-sidebar .menu-item.active::before { display: none; }
.btn-outline, .console-button, .lang-toggle { border-color: var(--border-light); background: #fff; border-radius: 10px; font-weight: 500; }
.btn-outline:hover, .console-button:hover { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.btn-save, .btn-primary, .btn-google, .btn-export, .export-pdf, .btn-merge { background: var(--primary); color: #fff; border-radius: 11px; font-weight: 600; box-shadow: 0 4px 12px rgb(79 70 229 / 12%); }
.btn-save:hover, .btn-primary:hover, .btn-google:hover, .btn-export:hover, .export-pdf:hover, .btn-merge:hover { background: var(--primary-hover); transform: none; box-shadow: 0 6px 18px rgb(79 70 229 / 18%); }
.record-danger, .btn-danger { color: #be334b; }
.record-danger:hover, .btn-danger:hover { background: #fff1f3; border-color: #fecdd3; color: #be334b; }
.app-input, .setting-input, .form-group input, .form-group select { border: 1px solid var(--border-light); background: #fff; border-radius: 10px; color: var(--text-primary); }
.app-input:focus, .form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #edf7ff; outline: none; }
.app-input::placeholder, input::placeholder, textarea::placeholder { color: #8b96ab; font-weight: 400; }
.box-card, .form-panel, .widget-card, .history-day, .time-history-card, .content-container, .merger-card { background: #fff; border-color: var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tabs { background: #e9ecf6; border-radius: 13px; padding: 5px; }
.tab-btn { color: #68748c; font-size: 13px; font-weight: 500; }
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 7px rgb(24 34 57 / 7%); }
.panel-header { padding-top: 4px; }
.panel-body .box-card h3, .panel-body .box-card h4 { font-weight: 600; }
.preview-panel, #preview-wrapper { background: #e9edf6; border-color: #dce1ed; }
.record-actions, .archive-action-dock { border-color: var(--border-light); border-radius: 16px; box-shadow: 0 10px 36px rgb(24 34 57 / 14%); }
.modal-box { border-radius: 20px; border: 1px solid var(--border-light); }
.modal-header { border-bottom-color: var(--border-light); }
.modal-header h2, .modal-header h3 { font-weight: 600; }
.guest-notice { color: #8a611e; background: #fff8e7; border-color: #f5e5bc; border-radius: 12px; font-size: 12px; }
.loading-screen { background: rgb(245 247 252 / 97%); }
.content-padding { padding: 32px; }
.hero-banner { position: relative; overflow: hidden; background: linear-gradient(115deg,color-mix(in srgb,var(--primary) 75%,#182239),var(--primary)); border: 1px solid rgb(255 255 255 / 10%); border-radius: 22px; padding: 34px; }
.hero-banner::after { content: ''; position: absolute; width: 240px; height: 240px; right: -110px; top: -110px; border-radius: 50%; border: 40px solid rgb(255 255 255 / 5%); pointer-events: none; }
.hero-info { min-width: 0; }
.hero-info h2 { font-size: clamp(23px,2.3vw,31px); font-weight: 600; letter-spacing: -.4px; }
.hero-banner p { color: #dcefff; font-size: 13px; line-height: 1.8; }
.hero-record-summary { display: flex; gap: 24px; padding: 18px 22px; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 8%); border-radius: 14px; flex-shrink: 0; z-index: 1; }
.hero-record-summary > div + div { border-left: 1px solid rgb(255 255 255 / 20%); padding-left: 24px; }
.hero-record-summary span { display: block; color: #dcefff; font-size: 11px; }
.hero-record-summary strong { display: block; color: #fff; font-size: 29px; font-weight: 600; margin-top: 7px; line-height: 1.2; }
.section-title { font-size: 17px; font-weight: 600; margin: 30px 0 18px; }
.module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.module-card { background: #fff; padding: 22px; border: 1px solid var(--border-light); border-radius: 17px; transition: border-color .2s,box-shadow .2s,transform .2s; }
.module-card:hover { border-color: #b8b4f8; box-shadow: 0 8px 28px rgb(79 70 229 / 8%); transform: translateY(-2px); }
.module-icon { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; box-shadow: none; }
.icon-blue { background: #edf7ff; color: #0875c9; }
.icon-green { background: #ecfdf5; color: #16825d; }
.icon-orange { background: #f0f3fa; color: #596886; }
.icon-slate { background: #f5f3ff; color: #7c6ac8; }
.module-text { min-width: 0; }
.module-text h3 { font-size: 16px; font-weight: 600; }
.module-text p { font-size: 12px; line-height: 1.8; color: var(--text-secondary); }
.dashboard-widgets { gap: 18px; }
.widget-card { padding: 24px; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widget-heading h3 { font-size: 16px; margin: 0; font-weight: 600; }
.widget-heading i { color: #818ba1; font-size: 21px; }
.recent-record { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef0f7; text-decoration: none; color: var(--text-primary); }
.recent-record:last-child { border-bottom: 0; }
.recent-record > i { color: var(--primary); background: #edf7ff; padding: 9px; border-radius: 10px; width: 34px; height: 34px; font-size: 16px; }
.recent-record div { min-width: 0; flex: 1; }
.recent-record strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-record small { display: block; color: var(--text-secondary); font-size: 10px; margin-top: 4px; }
.recent-record > span { font-size: 10px; color: var(--text-secondary); flex-shrink: 0; }
.empty-state { text-align: center; font-size: 13px; color: var(--text-secondary); line-height: 1.9; padding: 24px; }
.intern-bar-fill { background: linear-gradient(90deg,var(--primary),#8b83ef); }
.intern-highlight { color: var(--primary); }
.main-footer { font-size: 11px; color: #7c879c; }
.footer-tag { display: flex; align-items: center; gap: 6px; }
.right-sidebar { background: #fff; padding: 28px 20px; }
.news-sidebar-title { font-size: 15px; font-weight: 600; }
.news-card { border-color: var(--border-light); border-radius: 14px; }
.news-title { font-weight: 600; }
.archive-tabs button { border-radius: 10px; color: var(--text-secondary); }
.archive-tabs button.active { color: #fff; background: var(--primary); }
.admin-console .brand-mark { background: var(--primary); }
.admin-console .stat-card, .admin-console .console-card, .admin-console .chart-section, .admin-console .table-section, .admin-console .migration-card, .admin-console .settings-card { border-color: var(--border-light); border-radius: 16px; box-shadow: var(--shadow-card); }
.admin-console .admin-page-heading h2 { font-weight: 600; letter-spacing: -.3px; }
.admin-console .stat-info h3 { font-weight: 600; }
.admin-console .card-primary .stat-icon { background: #edf7ff; color: var(--primary); }
.admin-console .card-warning .stat-icon { background: #f5f3ff; color: #7c6ac8; }
.admin-console .system-status span, .admin-console .badge { font-weight: 500; }
.admin-console th { background: #f8f9fd; color: #758098; }
.admin-console .table-toolbar { background: #fff; }
.admin-console .badge-admin { background: #edf7ff; color: var(--primary); border-color: #badef7; }
.admin-console .admin-only-badge { background: #edf7ff; color: var(--primary); border-color: #dcefff; }
.admin-console .badge-banned { background: #fff1f3; color: #be334b; text-decoration: none; }
.brand-side::before { display: none; }
.form-side { padding: 5% 7%; }
.form-side .massive-title { font-size: clamp(35px,4.3vw,61px); line-height: 1.25; letter-spacing: -1px; font-weight: 700; }
.form-side .hero-desc { font-size: 15px; line-height: 1.9; margin-bottom: 28px; }
.tagline { background: #edf7ff; color: var(--primary); border-radius: 7px; font-size: 10px; font-weight: 600; letter-spacing: .1em; padding: 8px 12px; }
.tagline::before { color: var(--primary); font-size: 10px; }
.policy-container { border-width: 1px; box-shadow: none; border-radius: 12px; padding: 16px; }
.policy-text { font-size: 12px; font-weight: 400; line-height: 1.8; }
.btn-google, .btn-guest { padding: 16px; font-size: 14px; border-radius: 11px; }
.btn-guest { border-width: 1px; font-weight: 500; }
.workspace-showcase { position: relative; margin: 50px 40px 60px 0; padding: 44px; width: 100%; max-width: 530px; min-height: 540px; background: linear-gradient(145deg,#17213b,#253362); border-radius: 30px; color: #fff; overflow: hidden; box-shadow: 0 24px 70px rgb(24 34 57 / 18%); }
.workspace-showcase::before { content: ''; width: 340px; height: 340px; border-radius: 50%; position: absolute; right: -190px; top: -160px; border: 60px solid rgb(129 140 248 / 8%); }
.showcase-brand { display: flex; gap: 12px; align-items: center; font-size: 19px; font-weight: 600; }
.showcase-brand img { height: 40px; width: 34px; object-fit: contain; }
.showcase-brand small { display: block; font-size: 8px; letter-spacing: .13em; color: #a5b4d2; margin-top: 5px; }
.workspace-showcase h2 { margin: 42px 0 16px; font-size: 29px; line-height: 1.55; font-weight: 600; letter-spacing: -.5px; }
.workspace-showcase h2 span { color: #78bff2; }
.workspace-showcase > p { color: #b6c1db; font-size: 13px; line-height: 1.9; }
.showcase-tools { padding: 10px 18px; margin: 26px 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: 16px; background: rgb(255 255 255 / 5%); }
.showcase-tools > div { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.showcase-tools > div:last-child { border: 0; }
.showcase-tools span { flex: 1; }
.showcase-tools strong { display: block; font-size: 13px; font-weight: 500; }
.showcase-tools small { display: block; margin-top: 5px; color: #aebbd6; font-size: 10px; }
.showcase-tools i { color: #78bff2; font-size: 22px; }
.showcase-tools > div > i:last-child { color: #72d4b4; font-size: 18px; }
.showcase-footer { font-size: 8px; letter-spacing: .14em; color: #8194be; }
.pdf-page { font-family: 'Sarabun',sans-serif; }
@media (max-width: 1200px) { .workspace-showcase { padding: 30px; margin-right: 24px; } .hero-record-summary { gap: 16px; padding: 16px; } }
@media (max-width: 768px) {
 .content-padding { padding: 20px 16px; }
 .hero-banner { padding: 24px; border-radius: 18px; gap: 22px; }
 .hero-record-summary { width: 100%; justify-content: space-between; }
 .hero-record-summary > div { flex: 1; }
 .hero-record-summary > div + div { padding-left: 18px; }
 .hero-info h2 { font-size: 24px; }
 .module-card { padding: 18px; border-radius: 14px; }
 .module-icon { width: 42px; height: 42px; font-size: 22px; }
 .module-text h3 { font-size: 14px; }
 .module-text p { font-size: 11px; }
 .module-grid { grid-template-columns: 1fr; gap: 12px; }
 .dashboard-widgets { grid-template-columns: 1fr; }
 .widget-card { padding: 20px; }
 .form-side { padding: 26px 24px; }
 .form-side .massive-title { font-size: 37px; }
 .workspace-showcase { display: none; }
 .admin-console .stat-card, .admin-console .settings-card, .admin-console .migration-card { border-radius: 14px; }
}
@media print {
 body, .pdf-page { font-family: 'Sarabun',sans-serif; background: #fff; color: #000; }
 .pdf-page { box-shadow: none; border-radius: 0; }
 .hero-banner::after { display: none; }
}
