:root{
  --gold:#b88622;--gold2:#d6a743;--ink:#292724;--muted:#77736c;--line:#eadfca;
  --bg:#f7f5f0;--card:#fffdf9;--soft:#fbf8f1;--shadow:0 8px 28px rgba(75,55,20,.08);
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Noto Sans Thai",system-ui,sans-serif;color:var(--ink);background:var(--bg)}
button{font:inherit;color:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh}
.sidebar{width:230px;background:#fff;position:fixed;left:0;top:0;bottom:0;border-right:1px solid #eee8dc;display:flex;flex-direction:column;z-index:10}
.brand{text-align:center;padding:22px 14px 18px}.brand-mark{font-family:"Playfair Display",serif;font-size:42px;line-height:1;color:var(--gold);letter-spacing:3px}.brand-sub{font-size:13px;letter-spacing:1px}.brand-th{font-size:11px;color:#555;margin-top:3px}
nav{padding:4px 0}.nav-item{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:none;border:0;padding:10px 18px;border-left:4px solid transparent}.nav-item span{width:20px;text-align:center;font-size:21px;color:#777}.nav-item b{font-size:12px;font-weight:500;display:block}.nav-item small{display:block;color:#777;font-size:10px;margin-top:1px}.nav-item.active{background:linear-gradient(90deg,#fbf5e8,#fff);border-left-color:var(--gold)}.nav-item.active span,.nav-item.active b{color:var(--gold)}
.project-mini-card{margin:auto 16px 14px;padding:15px;border:1px solid #ead7ae;border-radius:14px;background:linear-gradient(180deg,#fff,#fffaf0)}.mini-icon{font-size:35px;color:var(--gold)}.mini-title{font-size:11px;color:var(--gold);margin-top:4px}.project-mini-card strong{display:block;font-size:13px;line-height:1.5;margin:4px 0}.project-mini-card small{font-size:10px;color:#777;line-height:1.6}.gold-btn{border:0;border-radius:999px;padding:9px 17px;background:linear-gradient(90deg,#f8e6bb,#fff2d2);color:#8b6418;font-weight:600;font-size:12px}.project-mini-card .gold-btn{width:100%;margin-top:10px}footer{text-align:center;padding:14px;font-size:9px;color:#8a867e;line-height:1.8}
.main{margin-left:230px;width:calc(100% - 230px);padding:0 22px 26px}.topbar{height:58px;display:flex;justify-content:flex-end;align-items:center}.top-actions{display:flex;align-items:center;gap:10px;font-size:13px}.top-actions small{display:block;color:#777;font-size:9px}.avatar{width:32px;height:32px;border-radius:50%;border:1px solid #d8b86c;display:grid;place-items:center;color:#9c701e}.mobile-brand{display:none}
.hero{height:300px;border-radius:0 0 18px 18px;overflow:hidden;position:relative;background:#efe8da}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 44%}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.84) 37%,rgba(255,255,255,.05) 75%)}.hero-copy{position:relative;padding:48px 50px;max-width:800px}.eyebrow{font-size:16px;letter-spacing:3px;color:#2c2b29}.hero h1{font-family:"Playfair Display","Noto Sans Thai",serif;font-size:39px;color:#946814;margin:14px 0 10px;font-weight:600}.hero-line{display:flex;align-items:center;gap:13px;color:#777}.hero-line span{width:50px;height:1px;background:#d8bb7c}.stats-strip{background:rgba(255,255,255,.95);border-radius:14px;box-shadow:var(--shadow);display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;margin:-36px 30px 26px;position:relative;padding:15px 5px}.stats-strip>div{padding:5px 22px;border-right:1px solid #eee2ce}.stats-strip>div:last-child{border:0}.stats-strip b,.stats-strip small{display:block;font-size:11px;color:#777}.stats-strip strong{font-size:22px;font-weight:500;display:block}
.grid-2{display:grid;grid-template-columns:1fr 1.45fr;gap:14px}.card{background:var(--card);border:1px solid #eee6d8;border-radius:14px;box-shadow:var(--shadow);padding:17px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.section-title>span{font-size:14px;color:#b17c19;font-weight:600}.section-title>b{font-size:12px;font-weight:500}.link-btn{border:0;background:none;color:#b17c19;font-size:11px}.progress-layout{display:flex;align-items:center;gap:28px}.ring{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gold) 0 46%,#eee5d3 46% 100%);position:relative}.ring:after{content:"";position:absolute;width:86px;height:86px;border-radius:50%;background:#fffdf9}.ring span{position:relative;z-index:1;font-size:27px}.metric-list{padding:0;margin:0;list-style:none;flex:1}.metric-list li{font-size:11px;padding:5px 0;border-bottom:1px dashed #eee3d1;display:flex;justify-content:space-between}.metric-list b{font-weight:500}.task-row{display:grid;grid-template-columns:28px 1fr 95px 62px;align-items:center;gap:8px;border-top:1px solid #eee7da;padding:9px 0;font-size:11px}.task-row i{font-style:normal;border:1px solid #e0c78e;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;color:#a4761e}.task-row time{color:#777;font-size:10px}.task-row em{font-style:normal;text-align:center;padding:3px 6px;border-radius:999px;background:#eaf4e8;color:#4c8751;font-size:9px}.task-row em.urgent{background:#fde6e6;color:#d34b4b}
.module-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin:14px 0}.module-card{border:1px solid #eee5d5;background:#fff;border-radius:10px;text-align:left;padding:7px;min-width:0;box-shadow:0 4px 15px rgba(0,0,0,.03)}.module-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.module-img{height:66px;border-radius:7px;background:linear-gradient(135deg,#f4efe5,#ded5c1);display:grid;place-items:center;color:#a57b2c;font-size:31px;margin-bottom:8px}.module-card b{display:block;font-size:9px;line-height:1.25}.module-card small{display:block;font-size:9px;color:#777;margin-top:2px}.module-card strong{display:block;color:#bd861d;font-size:22px;margin-top:6px;font-weight:500}.module-card span{font-size:9px;color:#777}
.bottom-grid{display:grid;grid-template-columns:1.3fr 1fr 1.15fr .9fr;gap:10px}.overview p,.location p{font-size:11px;line-height:1.8;color:#555}.quick button{display:block;background:none;border:0;border-bottom:1px solid #eee5d7;width:100%;text-align:left;padding:6px 0;font-size:10px;color:#666}.updates p{font-size:10px;margin:7px 0;border-bottom:1px dashed #eee3d1;padding-bottom:5px}.updates b{color:#b17c19;margin-right:8px}.location{background:linear-gradient(135deg,#fffdf8,#f7f2e6)}
.page{display:none}.page.active{display:block}.page-head{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #eee5d7;border-radius:14px;padding:20px 24px;margin-bottom:14px}.page-head h2{margin:5px 0 0;color:#956b1b;font-family:"Playfair Display","Noto Sans Thai",serif;font-size:29px}.page-head p{margin:2px 0;color:#777;font-size:12px}.content-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.data-card{background:#fff;border:1px solid #eee5d7;border-radius:14px;padding:18px;box-shadow:var(--shadow)}.data-card h3{margin:0 0 12px;font-size:15px;color:#a2741c}.data-card p{font-size:11px;line-height:1.9;color:#666}.upload-zone{border:1.5px dashed #d7bd7d;background:#fffaf0;border-radius:14px;padding:34px;text-align:center;margin-bottom:14px}.upload-zone .upload-icon{font-size:40px;color:#b88622}.upload-zone h3{margin:7px 0;font-size:16px}.upload-zone p{font-size:11px;color:#777}.file-input{display:none}.file-list{display:grid;gap:8px}.file-item{background:#fff;border:1px solid #eee5d7;border-radius:10px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;font-size:11px}.file-item small{color:#999}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.table th,.table td{padding:11px 12px;border-bottom:1px solid #eee7da;text-align:left;font-size:11px}.table th{background:#fbf5e8;color:#9c711e;font-weight:600}.empty{padding:45px;text-align:center;color:#888;background:#fff;border:1px dashed #ddd1b9;border-radius:14px}
@media(max-width:1200px){.sidebar{width:205px}.main{margin-left:205px;width:calc(100% - 205px)}.module-grid{grid-template-columns:repeat(4,1fr)}.bottom-grid{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}.hero h1{font-size:32px}}
@media(max-width:760px){.sidebar{position:fixed;left:-230px;transition:.25s}.sidebar.open{left:0}.main{margin-left:0;width:100%;padding:0 12px 20px}.topbar{height:52px;justify-content:space-between}.mobile-brand{display:block;font-family:"Playfair Display",serif;color:#a5751b;font-size:20px}.mobile-brand span{font-family:"Noto Sans Thai";font-size:9px;color:#777;letter-spacing:1px}.hero{height:260px}.hero-copy{padding:30px 22px}.hero h1{font-size:28px}.hero-line{font-size:11px}.stats-strip{margin:-20px 10px 18px;grid-template-columns:1fr 1fr;padding:8px}.stats-strip>div{padding:8px 10px}.stats-strip>div:nth-child(2){border-right:0}.grid-2,.bottom-grid{grid-template-columns:1fr}.module-grid{grid-template-columns:repeat(2,1fr)}.task-row{grid-template-columns:25px 1fr}.task-row time,.task-row em{display:none}.content-grid{grid-template-columns:1fr}.progress-layout{gap:15px}.ring{width:100px;height:100px}.ring:after{width:72px;height:72px}}

/* ===== WTK RESPONSIVE v3 ===== */
.menu-toggle{display:none;border:1px solid #eadfca;background:#fffdf9;color:#9a6f1b;border-radius:10px;width:40px;height:40px;font-size:21px;box-shadow:0 4px 12px rgba(75,55,20,.06)}
.sidebar-overlay{display:none}
.module-card,.nav-item,.gold-btn,.link-btn{transition:all .18s ease}
.module-card:active,.gold-btn:active{transform:scale(.98)}

@media (min-width:761px) and (max-width:1100px){
  .sidebar{width:78px}
  .main{margin-left:78px;width:calc(100% - 78px);padding:0 16px 22px}
  .brand{padding:18px 7px}
  .brand-mark{font-size:29px}
  .brand-sub,.brand-th,.nav-item div,.project-mini-card,footer{display:none}
  .nav-item{justify-content:center;padding:13px 6px;border-left:3px solid transparent}
  .nav-item span{font-size:23px}
  .topbar{height:56px}
  .hero{height:330px}
  .hero-copy{padding:52px 40px;max-width:700px}
  .hero h1{font-size:34px;max-width:640px}
  .stats-strip{grid-template-columns:repeat(4,1fr);margin:-30px 18px 22px}
  .stats-strip>div{padding:6px 14px}
  .grid-2{grid-template-columns:1fr}
  .module-grid{grid-template-columns:repeat(4,1fr)}
  .bottom-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:760px){
  body{overflow-x:hidden}
  .sidebar{left:-250px;width:250px;box-shadow:8px 0 30px rgba(0,0,0,.14)}
  .sidebar.open{left:0}
  .sidebar-overlay{position:fixed;inset:0;background:rgba(30,25,15,.28);z-index:9;backdrop-filter:blur(1px)}
  .sidebar-overlay.show{display:block}
  .main{margin-left:0;width:100%;padding:0 10px 18px}
  .topbar{height:56px;justify-content:flex-start;gap:10px;position:sticky;top:0;background:rgba(247,245,240,.96);z-index:8}
  .menu-toggle{display:block;flex:0 0 auto}
  .mobile-brand{font-size:19px;line-height:1}
  .mobile-brand span{font-size:8px}
  .top-actions{margin-left:auto;gap:7px}
  .top-actions .notification,.top-actions>div{display:none}
  .top-actions .avatar{width:30px;height:30px}

  .hero{height:330px;border-radius:12px}
  .hero img{object-position:58% center}
  .hero-overlay{background:linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 47%,rgba(255,255,255,.18) 100%)}
  .hero-copy{padding:28px 18px}
  .eyebrow{font-size:11px;letter-spacing:2px}
  .hero h1{font-size:25px;line-height:1.45;margin:10px 0 8px;max-width:95%}
  .hero-line{font-size:10px;line-height:1.5;gap:7px}
  .hero-line span{width:24px}

  .stats-strip{margin:-34px 8px 16px;grid-template-columns:1fr 1fr;border-radius:12px;padding:4px}
  .stats-strip>div{padding:8px 10px;border-right:1px solid #eee2ce;border-bottom:1px solid #eee2ce}
  .stats-strip>div:nth-child(2),.stats-strip>div:nth-child(4){border-right:0}
  .stats-strip>div:nth-child(3),.stats-strip>div:nth-child(4){border-bottom:0}
  .stats-strip b,.stats-strip small{font-size:9px}
  .stats-strip strong{font-size:18px}

  .grid-2{grid-template-columns:1fr;gap:10px}
  .card{padding:13px;border-radius:12px}
  .section-title{align-items:flex-start;gap:7px}
  .section-title>span{font-size:12px}
  .section-title>b{font-size:10px;text-align:right}
  .progress-layout{gap:15px}
  .ring{width:92px;height:92px;flex:0 0 92px}
  .ring:after{width:68px;height:68px}
  .ring span{font-size:22px}
  .metric-list li{font-size:9px;padding:4px 0;gap:8px}

  .task-row{grid-template-columns:24px 1fr;gap:7px;padding:8px 0}
  .task-row span{font-size:10px;line-height:1.45}
  .task-row time,.task-row em{display:none}

  .module-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .module-card{padding:6px;border-radius:10px}
  .module-img{height:72px}
  .module-card b{font-size:9px}
  .module-card strong{font-size:21px}

  .bottom-grid{grid-template-columns:1fr;gap:10px}
  .overview p,.location p{font-size:10px}
  .quick button{font-size:10px;padding:8px 0}
  .updates p{font-size:9px}

  .page-head{padding:14px 15px;margin-bottom:10px;gap:10px}
  .page-head h2{font-size:23px;line-height:1.35}
  .page-head p{font-size:10px}
  .page-head .gold-btn{padding:7px 11px;font-size:9px;white-space:nowrap}
  .content-grid{grid-template-columns:1fr;gap:10px}
  .data-card{padding:14px;border-radius:12px}
  .data-card h3{font-size:13px}
  .data-card p{font-size:10px}

  .upload-zone{padding:26px 14px}
  .upload-zone h3{font-size:14px}
  .upload-zone p{font-size:9px;line-height:1.7}
  .file-item{padding:9px;font-size:9px;gap:7px}
  .file-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  .table{display:block;overflow-x:auto;white-space:nowrap}
  .table th,.table td{font-size:9px;padding:9px 10px}
}

/* Small phones */
@media (max-width:390px){
  .main{padding:0 7px 14px}
  .hero{height:310px}
  .hero h1{font-size:22px}
  .stats-strip strong{font-size:16px}
  .module-img{height:62px}
  .module-card strong{font-size:19px}
}

/* ===== WTK DATA ARCHIVE UI v4 ===== */
.archive-toolbar{display:grid;grid-template-columns:1.7fr 150px 140px auto auto;gap:8px;margin-bottom:10px}
.archive-toolbar select,.toolbar-search{height:38px;border:1px solid #e7dcc8;background:#fff;border-radius:9px}
.toolbar-search{display:flex;align-items:center;padding:0 10px;gap:7px}.toolbar-search span{color:#a57920}.toolbar-search input{border:0;outline:0;width:100%;font:inherit;font-size:11px;background:transparent}
.archive-toolbar select{padding:0 9px;font-size:10px}.archive-toolbar .gold-btn{border-radius:9px;padding:0 12px;height:38px;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.archive-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.archive-summary>div{background:#fff;border:1px solid #eee5d7;border-radius:10px;padding:9px 12px}.archive-summary b{display:block;color:#a97719;font-size:20px;font-weight:500}.archive-summary small{font-size:9px;color:#777}
.archive-table-wrap{background:#fff;border:1px solid #eee5d7;border-radius:12px;overflow:auto;box-shadow:var(--shadow)}
.archive-table{min-width:880px;border-radius:0}.archive-table td{vertical-align:middle}.file-name{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rev-pill,.status-pill{display:inline-block;border-radius:999px;padding:3px 7px;font-size:8px}.rev-pill{background:#f8eed9;color:#976d1b}.status-pill.active{background:#eaf4e8;color:#4d8851}.status-pill.archived{background:#eee;color:#777}.row-btn{border:0;background:#fbf5e8;color:#9a6e1b;border-radius:6px;padding:5px 7px;margin-right:3px;font-size:8px}.row-btn.danger{background:#fde8e8;color:#bf5050}.upload-zone.dragging{border-color:#b88622;background:#fff5dc;transform:scale(1.005)}
.modal{display:none;position:fixed;inset:0;background:rgba(30,25,15,.38);z-index:100;align-items:center;justify-content:center;padding:16px}.modal.show{display:flex}.modal-box{background:#fffdf9;border-radius:15px;width:min(700px,100%);max-height:90vh;overflow:auto;box-shadow:0 25px 80px rgba(0,0,0,.22)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #eee5d7}.modal-head h3{margin:0;color:#9a701f;font-size:16px}.modal-close{border:0;background:#f4eee3;border-radius:50%;width:30px;height:30px;font-size:20px;color:#777}.modal-box #modalBody{padding:17px}.record-preview{display:flex;flex-direction:column;align-items:center;padding:12px;background:#fbf6ea;border-radius:10px;margin-bottom:12px}.preview-icon{font-size:42px}.record-preview b{font-size:13px;margin-top:4px}.record-preview small{color:#888;font-size:9px;margin-top:2px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid label{font-size:9px;color:#777}.form-grid input,.form-grid select{display:block;width:100%;height:35px;margin-top:4px;border:1px solid #e4dac8;border-radius:7px;padding:0 9px;font:inherit;font-size:10px;background:#fff}.history{margin-top:14px;border-top:1px solid #eee5d7;padding-top:10px}.history h4{font-size:11px;margin:0 0 7px;color:#a5761c}.history div{font-size:9px;padding:6px 0;border-bottom:1px dashed #eee3d1}.history span{color:#888;margin-left:8px}.modal-actions{text-align:right;margin-top:12px}

@media(max-width:760px){
  .archive-toolbar{grid-template-columns:1fr 1fr}
  .toolbar-search{grid-column:1/-1}
  .archive-toolbar .gold-btn{font-size:9px}
  .archive-summary{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:1fr}
  .modal{padding:8px}
  .modal-box{max-height:94vh}
}

/* ===== ADMIN CONTROL v5 ===== */
.hidden{display:none!important}
.admin-lock,.admin-panel{background:#fff;border:1px solid #eee5d7;border-radius:14px;box-shadow:var(--shadow);padding:22px}
.admin-lock{max-width:520px;margin:30px auto;text-align:center}.admin-lock-icon{font-size:46px;color:#b88622}.admin-lock h3{color:#976c1c;margin:8px 0}.admin-lock p{font-size:11px;color:#777;line-height:1.7}.admin-lock label{display:block;text-align:left;font-size:10px;color:#777;margin:14px 0}.admin-lock input{display:block;width:100%;height:38px;margin-top:5px;border:1px solid #e3d8c5;border-radius:8px;padding:0 10px;font:inherit}.admin-lock small{display:block;margin-top:12px;color:#999;font-size:9px}
.admin-panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee5d7;padding-bottom:14px;margin-bottom:15px}.admin-panel-head h3{margin:0;color:#976c1c}.admin-panel-head p{margin:3px 0 0;font-size:10px;color:#777}
.status-editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.status-editor-grid label{font-size:10px;color:#777}.status-editor-grid input,.status-editor-grid select{display:block;width:100%;height:38px;margin-top:5px;border:1px solid #e3d8c5;border-radius:8px;padding:0 10px;font:inherit;font-size:11px;background:#fff}
.admin-save-row{display:flex;align-items:center;gap:12px;margin-top:16px}.admin-save-row span{font-size:10px;color:#4d8851}.admin-preview{margin-top:20px;background:#fbf6ea;border-radius:12px;padding:14px}.admin-preview h4{margin:0 0 8px;font-size:11px;color:#9b701f}.preview-status{display:flex;align-items:center;gap:15px}.preview-status strong{font-size:30px;color:#b17c19}.preview-status span{background:#eaf4e8;color:#4d8851;border-radius:999px;padding:4px 9px;font-size:9px}.preview-status small{font-size:10px;color:#777}
@media(max-width:760px){
  .status-editor-grid{grid-template-columns:1fr}.admin-panel{padding:14px}.admin-panel-head{align-items:flex-start;gap:10px}.admin-panel-head h3{font-size:14px}.admin-panel-head p{font-size:9px}.admin-panel-head .gold-btn{font-size:9px;padding:7px 9px}.admin-lock{margin:15px 0;padding:18px}
}

/* ===== PROJECT STATUS — 2 CATEGORIES v6 ===== */
.status-category{border:1px solid #eee4d2;border-radius:10px;padding:11px 12px;margin:9px 0;background:#fffdf8}
.status-head{display:flex;align-items:center;justify-content:space-between}.status-head>div{display:flex;align-items:center;gap:9px}.status-head strong{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f6ecd8;color:#a8761b;font-size:9px}.status-head b{font-size:12px;font-weight:600}.status-head>span{font-size:21px;color:#a97719;font-weight:500}
.status-bar{height:7px;background:#eee5d5;border-radius:99px;overflow:hidden;margin:9px 0}.status-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#b88622,#d6a743);border-radius:99px;transition:width .25s ease}
.status-meta{display:flex;justify-content:space-between;gap:8px;color:#888;font-size:8px}.status-meta b{color:#555;font-weight:500}.status-footer{text-align:right;margin-top:9px}.status-footer .gold-btn{font-size:9px;padding:7px 11px}
.status-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.status-editor-card{border:1px solid #eee4d2;border-radius:12px;padding:15px;background:#fffdf8}.status-editor-title{display:flex;align-items:center;gap:9px;margin-bottom:12px}.status-editor-title span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f6ecd8;color:#a8761b;font-size:9px}.status-editor-title h4{margin:0;color:#976c1c;font-size:14px}.status-editor-card label{display:block;font-size:9px;color:#777;margin:8px 0}.status-editor-card input,.status-editor-card textarea{display:block;width:100%;margin-top:4px;border:1px solid #e3d8c5;border-radius:7px;padding:7px 9px;font:inherit;font-size:10px;background:#fff}.status-editor-card textarea{resize:vertical}.preview-status-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dashed #e4d9c7}.preview-status-row:last-child{border-bottom:0}.preview-status-row strong{color:#a8761b}.preview-status-row span{margin-left:auto;color:#a8761b;font-size:18px}
@media(max-width:760px){
 .status-head b{font-size:11px}.status-head>span{font-size:18px}.status-meta{font-size:7px}.status-admin-grid{grid-template-columns:1fr}.status-footer{text-align:left}
}

/* ===== 39 LEVEL PROJECT STATUS v7 ===== */
.status-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.status-overview-card{border:1px solid #eee4d2;border-radius:10px;padding:10px;background:#fffdf8}
.status-overview-card small{font-size:8px;color:#888}
.status-overview-card .status-head>span{font-size:20px}
.status-level-preview{margin-top:10px;border-top:1px solid #eee5d7;padding-top:9px}
.level-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:10px}
.level-mini-grid{display:grid;grid-template-columns:repeat(13,1fr);gap:4px;max-height:160px;overflow:auto;padding-right:2px}
.level-mini{background:#fbf7ee;border:1px solid #eee4d2;border-radius:6px;padding:5px 4px;min-width:0}
.level-mini>b{display:block;font-size:8px;color:#9b701f;margin-bottom:3px}
.level-mini small{display:block;font-size:6px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.level-mini-line{display:block;height:3px;background:#e9e0cf;border-radius:99px;overflow:hidden;margin:2px 0 3px}
.level-mini-line i{display:block;height:100%;background:#b88622}
.level-mini-line.concrete i{background:#8e9a9d}
.admin-overall-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.admin-overall-strip>div{background:#fbf5e8;border:1px solid #ead9b8;border-radius:10px;padding:10px 14px}
.admin-overall-strip span{display:block;font-size:9px;color:#777}
.admin-overall-strip b{display:block;font-size:24px;color:#a97719;font-weight:500}
.status-admin-table-wrap{border:1px solid #eee5d7;border-radius:12px;overflow:auto;max-height:560px}
.level-admin-table{min-width:760px}
.level-admin-table th:first-child,.level-admin-table td:first-child{position:sticky;left:0;background:#fffdf9;z-index:1}
.level-admin-table th:first-child{background:#fbf5e8}
.level-input{width:78px;height:32px;border:1px solid #e2d6c2;border-radius:6px;padding:0 7px;font:inherit;font-size:10px;text-align:right}
.level-note{width:220px;height:32px;border:1px solid #e2d6c2;border-radius:6px;padding:0 7px;font:inherit;font-size:10px}
@media(max-width:1100px){
 .level-mini-grid{grid-template-columns:repeat(8,1fr)}
}
@media(max-width:760px){
 .status-overview-grid{grid-template-columns:1fr}
 .level-mini-grid{grid-template-columns:repeat(4,1fr);max-height:210px}
 .admin-overall-strip{grid-template-columns:1fr 1fr}
 .status-admin-table-wrap{max-height:500px}
 .level-input{width:68px}
}
@media(max-width:390px){
 .level-mini-grid{grid-template-columns:repeat(3,1fr)}
}

/* ===== PROJECT STATUS v8: CONCRETE AREA ===== */
.status-bar.concrete i{background:#8e9a9d}
.status-overview-card .status-bar.concrete{background:#e6e2dd}
.status-admin-table-wrap{max-height:620px}
.level-admin-table{min-width:1080px}
.level-admin-table th,.level-admin-table td{vertical-align:middle}
.concrete-level-percent{display:inline-block;min-width:45px;color:#8a6a2c;font-size:11px}
@media(max-width:760px){
  .level-admin-table{min-width:1040px}
}

/* ===== BACKUP / RESTORE v9 ===== */
.backup-warning{background:#fff8e9;border:1px solid #ead5a4;border-radius:10px;padding:11px 13px;font-size:10px;color:#80621f;margin-bottom:12px}
.backup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.backup-card{text-align:center}.backup-icon{font-size:38px;color:#b88622}.backup-card h3{margin:6px 0;color:#986d1d}.backup-card p{font-size:10px;color:#777;line-height:1.7;min-height:42px}.backup-card .gold-btn{display:inline-flex;margin:4px 3px;align-items:center;justify-content:center}
.backup-checks{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:10px;color:#666}.backup-checks span{padding:8px 10px;background:#fbf7ee;border-radius:7px}
@media(max-width:760px){.backup-grid{grid-template-columns:1fr}.backup-checks{grid-template-columns:1fr}.backup-card p{min-height:0}}

/* ===== PROJECT OVERALL SYNC v10 ===== */
.project-overall-status{
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid #dfc78f;border-radius:11px;
  padding:11px 14px;margin:9px 0 10px;
  background:linear-gradient(90deg,#fff8e8,#fffdf8);
}
.project-overall-status span{display:block;font-size:11px;font-weight:700;letter-spacing:.7px;color:#9b701f}
.project-overall-status small{display:block;font-size:8px;color:#777;margin-top:2px}
.project-overall-status strong{font-size:30px;font-weight:500;color:#a97719}
.project-progress-sync{
  display:flex;align-items:center;gap:10px;
  margin:8px 0;padding:8px 10px;
  background:#fbf7ee;border-radius:8px;
}
.project-progress-sync span{font-size:9px;font-weight:700;color:#9b701f}
.project-progress-sync strong{font-size:18px;color:#a97719;font-weight:500}
.project-progress-sync small{font-size:8px;color:#888;margin-left:auto}
.admin-overall-three{grid-template-columns:1fr 1fr 1fr}
.admin-overall-three small{display:block;font-size:8px;color:#888;margin-top:2px}
@media(max-width:760px){
  .project-overall-status strong{font-size:26px}
  .project-progress-sync{flex-wrap:wrap}
  .project-progress-sync small{width:100%;margin-left:0}
  .admin-overall-three{grid-template-columns:1fr}
}

/* ===== PROJECT PROGRESS SYNC v11 ===== */
.progress-hero{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#fff8e8,#fffdf8);border:1px solid #dfc78f;border-radius:12px;padding:16px 18px;margin-bottom:12px}
.progress-hero span{display:block;font-size:12px;font-weight:700;letter-spacing:.7px;color:#9b701f}
.progress-hero small{display:block;font-size:9px;color:#777;margin-top:3px}
.progress-hero strong{font-size:38px;font-weight:500;color:#a97719}
.progress-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.progress-summary-card{border:1px solid #eee4d2;border-radius:11px;padding:12px;background:#fffdf8}
.progress-summary-card span{display:block;font-size:10px;color:#777}.progress-summary-card b{display:block;font-size:25px;color:#a97719;font-weight:500;margin:2px 0 6px}.progress-summary-card small{font-size:8px;color:#888}
.progress-level-wrap{background:#fff;border:1px solid #eee5d7;border-radius:12px;padding:12px}
.progress-level-table-wrap{overflow:auto;max-height:560px;margin-top:8px}
.progress-level-table{min-width:700px}
.progress-level-table td{vertical-align:middle}
.progress-pill{display:inline-block;min-width:42px;padding:3px 6px;border-radius:999px;background:#f8eed9;color:#9b701f;font-size:8px;text-align:center}
.concrete-pill{background:#ecebea;color:#687477}
.mini-progress{height:4px;background:#eee5d5;border-radius:99px;overflow:hidden;margin-top:4px;width:110px}.mini-progress i{display:block;height:100%;background:#b88622}.mini-progress.concrete-mini i{background:#8e9a9d}
@media(max-width:760px){.progress-summary-grid{grid-template-columns:1fr}.progress-hero strong{font-size:30px}.progress-level-table{min-width:700px}}


/* =========================================================
   WTK HOME POLISH v13
   Calm white / antique gold / architectural archive aesthetic
   ========================================================= */
.hero{
  height:340px;
  border-radius:0 0 24px 24px;
  background:#ece5d8;
  box-shadow:0 16px 42px rgba(72,52,20,.10);
}
.hero img{
  object-position:center 43%;
  transform:scale(1.015);
  transition:transform 1.2s ease;
}
.hero:hover img{transform:scale(1.035)}
.hero-overlay{
  background:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.62) 54%,rgba(255,255,255,.08) 78%),
    linear-gradient(180deg,rgba(255,255,255,.10),rgba(90,62,18,.10));
}
.hero-copy{
  padding:54px 58px;
  max-width:880px;
  position:relative;
  z-index:2;
}
.hero-kicker{
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  font-size:11px;
  letter-spacing:3px;
  color:#8d671d;
  font-weight:700;
}
.hero-kicker-dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 4px rgba(184,134,34,.10);
}
.hero-kicker-line{
  width:46px;height:1px;background:#d8bf88;margin-left:3px;
}
.hero h1{
  margin:18px 0 11px;
  font-size:40px;
  line-height:1.32;
  letter-spacing:-.4px;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
.hero h1 em{
  font-style:normal;
  color:#a17220;
}
.hero-location{
  margin:0;
  color:#68645d;
  font-size:12px;
  letter-spacing:.15px;
}
.hero-divider{
  display:flex;
  align-items:center;
  margin:18px 0 14px;
}
.hero-divider span{
  width:72px;height:1px;background:linear-gradient(90deg,var(--gold),#e7d7b2);
}
.hero-meta{
  display:flex;
  align-items:center;
  gap:15px;
}
.hero-meta>div:not(.hero-meta-sep):not(.hero-status){
  display:flex;align-items:baseline;gap:5px;
}
.hero-meta strong{
  color:#8d651a;
  font-size:15px;
  letter-spacing:.5px;
}
.hero-meta small{
  color:#7b7770;
  font-size:9px;
  letter-spacing:1.5px;
}
.hero-meta-sep{
  width:1px;height:23px;background:#dfd2ba;
}
.hero-status{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:3px;
  color:#8a857c;
  font-size:8px;
  letter-spacing:1.3px;
}
.hero-status span{
  width:6px;height:6px;border-radius:50%;
  background:#789a65;
  box-shadow:0 0 0 4px rgba(120,154,101,.10);
}
.hero-seal{
  position:absolute;
  right:54px;bottom:32px;
  z-index:3;
  width:112px;height:112px;
  border:1px solid rgba(184,134,34,.45);
  border-radius:50%;
  background:rgba(255,252,244,.76);
  backdrop-filter:blur(5px);
  box-shadow:0 14px 34px rgba(68,48,16,.13),inset 0 0 0 6px rgba(255,255,255,.48);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  color:#936b1c;
}
.hero-seal:before{
  content:"";
  position:absolute;inset:8px;
  border:1px solid rgba(184,134,34,.25);
  border-radius:50%;
}
.hero-seal span{font-size:9px;letter-spacing:3px}
.hero-seal b{font-family:"Playfair Display",serif;font-size:34px;line-height:1}
.hero-seal small{font-size:7px;letter-spacing:2px;color:#8d877d;margin-top:3px}

.stats-strip-premium{
  margin:-39px 32px 28px;
  border:1px solid rgba(222,205,171,.72);
  padding:13px 5px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 38px rgba(75,55,20,.10);
}
.stats-strip-premium>div{
  position:relative;
  padding:7px 23px;
}
.stats-strip-premium>div:after{
  content:"";
  position:absolute;
  left:23px;right:23px;bottom:-2px;
  height:1px;
  background:linear-gradient(90deg,transparent,#eadfc9,transparent);
  opacity:.0;
}
.stats-strip-premium b{
  color:#8e897f;
  font-size:9px;
  letter-spacing:.6px;
}
.stats-strip-premium strong{
  color:#966d1c;
  font-family:"Playfair Display","Noto Sans Thai",serif;
  font-size:23px;
  margin-top:2px;
}
.stats-strip-premium small{font-size:9px}

.progress-card,.tasks-card{
  box-shadow:0 12px 34px rgba(75,55,20,.075);
}
.progress-card{
  border-top:2px solid #d1aa5a;
}
.tasks-card{
  border-top:2px solid #eee1c7;
}
.section-title>span{
  letter-spacing:.5px;
}
.module-grid{
  gap:10px;
  margin:16px 0 22px;
}
.module-card{
  position:relative;
  overflow:hidden;
  min-height:154px;
  padding:8px;
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#fffdf9);
}
.module-card:before{
  content:"";
  position:absolute;left:0;top:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent,#d4ae60,transparent);
  opacity:0;
  transition:.18s ease;
}
.module-card:hover:before{opacity:1}
.module-img{
  height:72px;
  background:
    radial-gradient(circle at 50% 35%,rgba(255,255,255,.9),transparent 45%),
    linear-gradient(135deg,#f5f0e6,#e1d6c0);
  border:1px solid #eee4d2;
}
.module-card strong{
  margin-top:7px;
}
.bottom-grid{
  gap:12px;
}
.bottom-grid .card{
  min-height:178px;
}
.overview{
  background:linear-gradient(145deg,#fffdf9 0%,#fbf5e8 100%);
}
.location{
  position:relative;
  overflow:hidden;
}
.location:after{
  content:"";
  position:absolute;
  width:120px;height:120px;
  right:-45px;bottom:-55px;
  border:1px solid rgba(184,134,34,.18);
  border-radius:50%;
  box-shadow:0 0 0 18px rgba(184,134,34,.035),0 0 0 36px rgba(184,134,34,.025);
}
.gold-btn{
  box-shadow:0 4px 12px rgba(184,134,34,.08);
}
.gold-btn:hover{
  box-shadow:0 7px 18px rgba(184,134,34,.15);
  transform:translateY(-1px);
}

/* Mobile refinement */
@media(max-width:760px){
  .hero{
    height:345px;
    border-radius:14px;
  }
  .hero img{object-position:58% center}
  .hero-overlay{
    background:
      linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.91) 48%,rgba(255,255,255,.16) 100%);
  }
  .hero-copy{padding:30px 19px}
  .hero-kicker{font-size:9px;letter-spacing:2px}
  .hero-kicker-line{width:25px}
  .hero h1{
    font-size:25px;
    line-height:1.42;
    margin-top:13px;
  }
  .hero-location{
    max-width:94%;
    font-size:9px;
    line-height:1.7;
  }
  .hero-divider{margin:14px 0 11px}
  .hero-meta{gap:9px}
  .hero-meta strong{font-size:12px}
  .hero-meta small{font-size:7px}
  .hero-status{display:none}
  .hero-seal{
    width:82px;height:82px;
    right:16px;bottom:18px;
  }
  .hero-seal:before{inset:6px}
  .hero-seal b{font-size:26px}
  .hero-seal span{font-size:7px}
  .hero-seal small{font-size:5px}
  .stats-strip-premium{
    margin:-33px 8px 18px;
  }
  .stats-strip-premium>div{padding:8px 10px}
  .module-card{min-height:150px}
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  .hero img,.module-card,.gold-btn{transition:none}
}


.hidden{display:none!important}.wtk-admin-only.hidden{display:none!important}

.auth-btn{padding:7px 11px!important;font-size:11px!important;line-height:1!important;white-space:nowrap}
@media (max-width:760px){.auth-btn{padding:6px 8px!important;font-size:10px!important}.top-actions{max-width:100%}}
