body.admin-mode{background:#f5f6f1;overflow-x:hidden}body.admin-mode>.demo,body.admin-mode>header,body.admin-mode>footer{display:none}body.admin-mode>main{max-width:none;padding:0;margin:0}.admin-workspace{font:15px 'DM Sans','Noto Sans Thai',sans-serif;color:#3d4932;min-height:100vh}.admin-workspace *{box-sizing:border-box}.admin-workspace svg{width:19px;height:19px;flex-shrink:0}.admin-workspace button{font:inherit}.admin-sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fbfcf8;border-right:1px solid #e5e7df;padding:31px 22px;display:flex;flex-direction:column;z-index:20}.admin-logo{font:bold 55px Georgia,serif;letter-spacing:-4px;margin:0 12px 32px;color:#293128}.admin-logo span{font:12px sans-serif;vertical-align:top;letter-spacing:0;margin:8px}.admin-store{display:flex;align-items:center;gap:10px;padding:12px 9px;border:1px solid #e5e7df;border-radius:7px;background:white;font-weight:600}.admin-store>svg{background:#edf2e5;padding:6px;width:32px;height:32px;border-radius:5px;color:#87966f}.admin-store small,.admin-profile small{display:block;font-size:12px;color:#929a85;margin-top:5px;font-weight:400}.admin-store i,.admin-sidebar-bottom i{width:6px;height:6px;background:#839f61;border-radius:50%;display:inline-block}.admin-store i{margin-left:auto}.admin-caption{font-size:12px;letter-spacing:1.6px;color:#929b84}.admin-sidebar>.admin-caption{margin:28px 10px 12px}.admin-sidebar nav{display:flex;flex-direction:column;gap:7px}.admin-sidebar nav button{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:6px;background:none;color:#7b8371;text-align:left}.admin-sidebar nav button.active{background:#eaf0e1;color:#465b35;font-weight:600}.admin-sidebar nav button:hover{background:#eff2e9}.admin-sidebar nav small{margin-left:auto;background:white;padding:1px 5px;font-size:12px}.admin-sidebar-bottom{margin-top:auto}.admin-sidebar-bottom p{font-size:13px;padding:10px 7px;line-height:1.5;margin:0 0 14px}.admin-sidebar-bottom p small{display:block;margin:7px 0 0 12px;font-size:12px;color:#969d8a}.admin-profile{display:flex;gap:10px;align-items:center;border-top:1px solid #e5e7df;margin-top:23px;padding-top:18px}.admin-profile>span{width:32px;height:32px;background:#e1e8d5;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif}.admin-main{margin-left:238px}.admin-topbar{height:77px;display:flex;justify-content:space-between;align-items:center;padding:0 36px;border-bottom:1px solid #e5e7df;background:#fafbf7;font-size:13px;color:#8d9682}.admin-topbar>div{display:flex;align-items:center;gap:14px}.admin-outline{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #e5e7df;border-radius:5px;padding:10px 13px;background:white!important;color:#69745c!important;text-decoration:none;font-size:13px!important;white-space:nowrap}.admin-sidebar-bottom>.admin-outline{display:flex;justify-content:space-between;width:100%}.admin-workspace .admin-content{padding:35px 36px 24px;max-width:1480px;margin:auto}.admin-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.admin-heading h1{font-size:28px;font-weight:500;letter-spacing:-.5px;margin:10px 0 7px}.admin-heading p{font-size:14px;color:#8b9480;margin:0;line-height:1.85}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.admin-metric{background:white;border:1px solid #e5e7df;border-radius:8px;padding:19px 20px}.admin-metric>div{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#7e8771;font-size:14px}.admin-metric svg{color:#a1af90}.admin-metric strong{display:block;font-size:35px;font-weight:500;margin:14px 0 7px;letter-spacing:-1px}.admin-metric small{font-size:12px;color:#929b87}.admin-panel{background:white;border:1px solid #e5e7df;border-radius:9px;margin-bottom:23px;overflow:hidden}.admin-panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:21px 24px}.admin-panel h3{font-size:16px;font-weight:600;margin:0}.admin-panel-head p{font-size:13px;color:#9aa18e;margin:5px 0 0}.admin-tag{display:inline-block;background:#f2f4ed;color:#8c977f;padding:6px 9px;border-radius:5px;font-size:12px;letter-spacing:.7px}.admin-analytics{display:grid;grid-template-columns:1.65fr 1fr;gap:23px}.admin-chart{height:225px;display:flex;gap:14px;align-items:flex-end;padding:20px 25px 23px;background:repeating-linear-gradient(to top,transparent 0,transparent 51px,#edf0e6 52px,transparent 53px);margin:0 24px}.admin-chart-column{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;height:190px}.admin-chart-column i{display:block;width:65%;max-width:32px;border-radius:4px 4px 0 0;background:#849c68}.admin-chart-column span{font-size:12px;color:#6f8356}.admin-chart-column small{font-size:12px;white-space:nowrap;color:#9ca38f}.admin-panel-note{font-size:12px;color:#9fa692;padding:5px 24px 19px;margin:0}.admin-checklist{padding:7px 24px 24px}.admin-checklist>div{display:flex;gap:12px;align-items:flex-start;font-size:14px;margin-bottom:24px}.admin-checklist svg{color:#899d71;min-width:20px}.admin-checklist small{display:block;font-size:12px;color:#a0a592;margin-top:6px;line-height:1.7}.admin-checklist>button{width:100%;font-size:13px;text-align:left}.admin-table-wrap{overflow:auto}.admin-table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:13px}.admin-table th{background:#fafbf7;border-block:1px solid #edf0e7;font-size:12px;font-weight:400;color:#98a18b;padding:13px 22px;text-align:left}.admin-table td{border-bottom:1px solid #edf0e7;font-size:13px;color:#7f8873;padding:15px 22px}.admin-table tr:last-child td{border-bottom:0}.admin-table b{font-weight:500;color:#515e43}.admin-product-cell{display:flex;gap:12px;align-items:center}.admin-product-cell img{width:46px;height:46px;object-fit:cover;border-radius:5px}.admin-product-cell b{font-size:14px;color:#3d4932;display:block}.admin-product-cell small{display:block;font-size:12px;color:#a2a995;margin-top:6px}.admin-status{display:inline-block;padding:5px 8px;font-size:12px;background:#edf4e5;color:#849d6c;border-radius:4px}.admin-status:before{content:'●';font-size:12px;margin-right:5px}.admin-status.off{background:#f1f1ea;color:#a0a493}.admin-row-actions{display:flex;gap:8px}.admin-row-actions button{background:none;padding:5px;color:#95a086}.admin-row-actions button:hover{color:#465b35}.admin-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-tools input{width:180px;font-size:13px;padding:9px 11px}.admin-tools button{font-size:13px;padding:10px 13px}.admin-text-button{background:none!important;color:#69775a!important;padding:0!important;font-size:13px!important}.admin-footnote{display:flex;justify-content:center;align-items:center;gap:8px;color:#9ba68d;font-size:12px;margin-top:25px;line-height:1.8}.admin-range{margin:0 0 20px}.admin-range label{display:flex;align-items:center;gap:10px;font-size:14px}.admin-range select{width:170px;font-size:14px;padding:8px}.admin-product-editor{display:grid;grid-template-columns:1.1fr 1fr;gap:25px}.admin-product-editor>form{padding:26px}.admin-product-editor label,.admin-settings label{font-size:14px;margin:16px 0 6px;color:#79856b}.admin-product-editor input,.admin-product-editor textarea,.admin-settings input{font-size:15px;padding:10px 12px}.admin-product-preview{align-self:start;padding:22px}.admin-product-preview img{width:100%;aspect-ratio:1;object-fit:contain;background:#eeeae0;border-radius:7px;margin-bottom:19px}.admin-product-preview p{font-size:13px;line-height:1.9;color:#969e8b}.admin-settings{padding:26px;max-width:850px}.admin-settings p{font-size:14px;margin:18px 0;color:#87927a}.admin-settings button{font-size:14px}.admin-menu-toggle{display:none}.admin-workspace .editor{margin:0;gap:25px}.admin-workspace .editor .panel{padding:24px;margin:0}.admin-workspace .editor label{font-size:14px}.admin-workspace .editor input,.admin-workspace .editor textarea{font-size:15px}.admin-workspace .editor-preview{background:white;border:1px solid #e5e7df}.admin-workspace .section-head{margin:0 0 20px;display:flex;align-items:center;justify-content:space-between}.admin-workspace .section-head h2{font:500 21px 'Noto Sans Thai',sans-serif;margin:0}.admin-workspace .section-head button{font-size:14px}.admin-workspace .editor .links button{font-size:13px;padding:10px 13px}.admin-workspace .check input{width:auto}.admin-workspace .note{font-size:13px;line-height:1.9}@media(max-width:1200px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-analytics{grid-template-columns:1.5fr 1fr}.admin-panel-head{flex-wrap:wrap}}@media(max-width:900px){.admin-sidebar{width:210px;padding:26px 16px}.admin-main{margin-left:210px}.admin-workspace .admin-content{padding:28px 22px}.admin-topbar{padding:0 22px}.admin-analytics,.admin-product-editor,.admin-workspace .editor{grid-template-columns:1fr}.admin-logo{font-size:48px}}@media(max-width:650px){.admin-sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #3c4b3420}.admin-sidebar.open{transform:translateX(0)}.admin-main{margin-left:0}.admin-menu-toggle{display:block;background:none!important;color:#69745c!important;font-size:21px!important;padding:2px!important}.admin-topbar{height:64px;padding:0 18px}.admin-workspace .admin-content{padding:25px 18px}.admin-heading{align-items:flex-start}.admin-heading h1{font-size:25px}.admin-heading .admin-outline{padding:8px}.admin-metric{padding:16px}.admin-metric>div{font-size:13px}.admin-metric small{font-size:12px}.admin-metrics{gap:12px}.admin-tools{gap:8px}.admin-tools input{width:100%}.admin-footnote{font-size:12px}.admin-sidebar nav{gap:4px}}
.admin-tools > button,
.admin-tools > a.admin-outline,
.admin-tools > label.admin-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
}

.admin-tools > #admin-search {
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 10px 11px;
  font-family: inherit;
  line-height: 20px;
}

.admin-tools > .admin-outline {
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.admin-tools > .admin-outline:hover {
  background-color: #edf2e5 !important;
  color: #3c4b34 !important;
  border-color: #9aa98c;
}

.admin-tools > .admin-outline:focus-visible,
.admin-tools > .admin-outline:focus-within,
.admin-tools > #admin-search:focus-visible {
  outline: 2px solid #83966f;
  outline-offset: 2px;
}

/* Keep the larger text comfortable in controls and narrow layouts. */
.admin-workspace { line-height: 1.6; }
.admin-panel-head { flex-wrap: wrap; }
.admin-tools { max-width: 100%; }
.admin-tools > #admin-search { font-size: 16px; }
.admin-table th, .admin-table td { line-height: 1.6; }
.admin-sidebar { overflow-y: auto; }
.admin-sidebar-bottom { padding-top: 20px; }
@media (max-width: 650px) {
  .admin-heading { flex-wrap: wrap; }
}

/* All promotion banners, including hidden and expired records. */
.admin-promo-overview>.admin-panel-head{align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.admin-promo-overview h2{margin:0;font-size:22px}.admin-promo-overview .admin-panel-head p{margin:8px 0 0;font-size:14px}
.admin-promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.admin-promo-card{min-width:0;background:#fff;border:1px solid #e5e8df;border-radius:16px;overflow:hidden}
.admin-mode .admin-promo-image{display:block;width:100%;padding:0;border:0;border-radius:0;background:#f3f4ee;line-height:0;overflow:hidden}
.admin-promo-image img{display:block;width:100%;aspect-ratio:1;object-fit:contain;transition:opacity .2s}
.admin-promo-image:hover img{opacity:.9}.admin-promo-image:focus-visible{outline:3px solid #596c43;outline-offset:-3px}
.admin-promo-copy{padding:20px}.admin-promo-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#686e60;font-size:12px}
.admin-promo-status{padding:4px 9px;border-radius:20px;font-size:12px;font-weight:600;background:#edf3e6;color:#405a2c}
.admin-promo-status.hidden,.admin-promo-status.ended{background:#f0f0eb;color:#62665b}.admin-promo-status.scheduled{background:#f7efd9;color:#765c23}
.admin-promo-copy h3{font-size:18px;line-height:1.5;margin:14px 0 8px;overflow-wrap:anywhere}.admin-promo-copy p{font-size:14px;line-height:1.7;color:#656d5d;margin:0 0 14px;overflow-wrap:anywhere}
.admin-promo-dates,.admin-promo-code{font-size:12px;line-height:1.8;color:#656d5d;overflow-wrap:anywhere}.admin-promo-copy>.admin-outline{margin-top:18px;width:100%;justify-content:center}
@media(max-width:1100px){.admin-promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.admin-promo-grid{grid-template-columns:minmax(0,1fr)}.admin-promo-overview h2{font-size:20px}}
