/* BPRS v3 — visual system based on the school-approved mockup. Existing APIs remain unchanged. */
:root{--ruby:#aa1852;--wine:#8e1747;--rose:#bd1f62;--gold:#e7b44c;--gold-light:#fff2c5;--leaf:#4a8525;--surface:#fffaf8;--lightrose:#fdf0f4;--edge:#f0dfe5;--bshadow:0 5px 16px rgba(113,28,66,.12)}
body.bprs-v3{background:var(--surface);color:#30252c;font-family:'Prompt','Sarabun',sans-serif}
.bprs-v3 .container{width:min(1340px,calc(100% - 52px))}
.bprs-v3 .site-header{position:relative;top:auto;z-index:50;background:white;backdrop-filter:none;border-bottom:0}
.bprs-v3 .identity-bar{background:linear-gradient(176deg,#fffaf9 0%,#fff4f6 65%,#fef8e6 100%);border-top:4px solid #f3e1e5}
.bprs-v3 .identity-inner{min-height:95px;display:flex;justify-content:space-between;align-items:center;position:relative}
.bprs-v3 .brand{display:flex;align-items:center;gap:14px;min-width:0}
.bprs-v3 .brand img{height:78px;width:78px;object-fit:contain}
.bprs-v3 .brand-name{display:block;color:#2d2027;font-size:clamp(1.1rem,1.9vw,1.5rem);line-height:1.35;font-weight:700}
.bprs-v3 .brand-sub{display:block;color:#543e46;font-size:.78rem;letter-spacing:.035em;line-height:1.15}
.bprs-v3 .header-aside{display:flex;align-items:center;gap:18px}
.bprs-v3 .header-tag{font-size:.76rem;color:#70525d}
.bprs-v3 .header-entry,.bprs-v3 .nav-staff{background:linear-gradient(130deg,#ffe6a1,#ffcc6a);color:#52252a!important;border-radius:10px;padding:9px 15px;font-weight:700;font-size:.84rem;box-shadow:0 3px 9px #942d4630}
.bprs-v3 .nav-ribbon{position:relative;background:linear-gradient(112deg,#8f153f,#c02863 65%,#8c1643);border-top:4px solid var(--gold);border-bottom:3px solid #d59c34;color:white;box-shadow:0 4px 10px #af3b6136}
.bprs-v3 .nav{display:flex;justify-content:space-around;gap:0;align-items:stretch;position:static;box-shadow:none;padding:0}
.bprs-v3 .nav a{display:flex;align-items:center;justify-content:center;text-align:center;padding:13px 12px;color:white;font-size:.86rem;font-weight:500;white-space:nowrap;border:0;background:none;transition:background .15s}
.bprs-v3 .nav a:hover,.bprs-v3 .nav a[aria-current="page"]{color:white;background:#650e3180}
.bprs-v3 .nav .nav-staff{margin:6px 0 6px 8px;white-space:nowrap;padding:6px 12px}
.bprs-v3 .nav-toggle{display:none;border:0;background:white;color:var(--ruby);font-size:1.45rem;padding:8px 10px}
.bprs-v3 .footer{background:linear-gradient(118deg,#8f1748,#bf2060 65%,#930f45);padding:20px 0;color:white;border-top:6px solid #e5b047}
.bprs-v3 .footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.bprs-v3 .footer-brand{display:flex;align-items:center;gap:10px;color:white}
.bprs-v3 .footer-brand img{height:49px;width:49px;object-fit:contain}
.bprs-v3 .footer-brand strong,.bprs-v3 .footer-brand small{display:block}
.bprs-v3 .footer-brand strong{font-size:.87rem}.bprs-v3 .footer-brand small{font-size:.6rem}
.bprs-v3 .footer-links{display:flex;align-items:center;gap:16px;font-size:.76rem;color:#fff7fb}
.bprs-v3 .footer-links a{color:#fff7fb;display:inline;margin:0}
.bprs-v3 .footer-bottom{width:100%;border-top:1px solid #ffffff44;margin:4px 0 0;padding:10px 0 0;display:flex;gap:15px;justify-content:space-between;color:#f7dee8;font-size:.7rem}
/* Public landing, patterned after approved desktop + mobile mockup */
.home-v3 .hero-banner{position:relative;background:#fff;isolation:isolate}
.home-v3 .hero-screen{height:380px;background-image:linear-gradient(90deg,rgba(8,25,16,.82) 0%,rgba(8,32,20,.49) 40%,rgba(9,36,22,.1) 80%),url('/assets/img/campus.webp');background-size:cover;background-position:center 47%}
.home-v3 .hero-overlay{height:100%;display:flex;align-items:center}
.home-v3 .hero-copy{border-left:5px solid #f2c457;padding-left:19px;max-width:650px;color:white;text-shadow:0 1px 8px #0009}
.home-v3 .hero-copy h1{font-size:clamp(1.5rem,3.4vw,2.45rem);margin:0 0 6px;line-height:1.32;letter-spacing:0;color:white}
.home-v3 .hero-copy p{color:#f9fdf7;line-height:1.5;font-size:1rem;margin:0 0 8px;max-width:530px}
.home-v3 .hero-small-link{font-size:.78rem;color:#fff5cf;text-decoration:underline}
.home-v3 .hero-wave{position:absolute;bottom:-2px;left:0;right:0;height:40px;background:linear-gradient(125deg,#e7b350 0%,#ffdf9c 17%,#b5225b 17%,#ab194d 65%,#b51e56 88%,#f6c761 88%);clip-path:polygon(0 18%,13% 80%,25% 100%,75% 100%,93% 65%,100% 20%,100% 100%,0 100%)}
.home-v3 .stats-section{padding:0 0 20px;background:#fff7f6}
.home-v3 .stat-podium{display:grid;grid-template-columns:repeat(4,1fr);position:relative;z-index:2;margin-top:-6px;border-radius:15px;overflow:hidden;background:#fff;box-shadow:var(--bshadow);border:1px solid #ecd9e0}
.home-v3 .stat-chip{display:flex;align-items:center;gap:14px;justify-content:center;padding:14px 12px;border-right:1px solid #ecdae1}
.home-v3 .stat-chip:last-child{border-right:0}.home-v3 .stat-ico{font-size:2.2rem;color:#bb1958;line-height:1;min-width:36px;text-align:center}.home-v3 .award .stat-ico{color:#d69a24}
.home-v3 .stat-chip small{display:block;font-size:.72rem;color:#554851}.home-v3 .stat-chip strong{font-size:1.58rem;color:#35232a;line-height:1.3;display:block}.home-v3 .stat-chip strong.smaller{font-size:1.12rem;color:#ad2457}.home-v3 .stat-chip em{font-size:.82rem;font-style:normal;font-weight:400}
.home-v3 .school-snapshot{display:grid;grid-template-columns:1fr .91fr 1.22fr;gap:22px;align-items:stretch;margin:10px auto 13px}
.home-v3 .snapshot-sign,.home-v3 .snapshot-photo{min-height:235px;border-radius:10px;overflow:hidden;box-shadow:var(--bshadow);display:block}
.home-v3 .snapshot-sign img,.home-v3 .snapshot-photo img{width:100%;height:100%;object-fit:cover}
.home-v3 .snapshot-sign img{object-position:center}.home-v3 .snapshot-photo img{object-position:50% center}
.home-v3 .snapshot-info{padding:11px 8px}.home-v3 .snapshot-info h2,.home-v3 .snapshot-info h3{font-size:1.05rem;color:#af1a55;margin:0 0 8px}
.home-v3 .snapshot-info h3{font-size:.93rem;margin-top:12px}.home-v3 .snapshot-info ul{margin:0;padding-left:21px;font-size:.81rem;line-height:1.9}
.home-v3 .snapshot-info li::marker{color:#4d9238}.home-v3 .value-chips{display:flex;gap:5px;flex-wrap:wrap}
.home-v3 .value-chips span{padding:3px 10px;border-radius:30px;background:#eaf4d8;color:#437122;font-size:.71rem;font-weight:600}
.home-v3 .quick-v3{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:12px auto 25px}
.home-v3 .quick-v3 a{display:flex;align-items:center;flex-direction:column;justify-content:center;min-height:95px;border-radius:13px;background:white;border:1px solid #efdee2;box-shadow:var(--bshadow);padding:12px 6px;color:#2e2229;text-align:center;font-size:.81rem;font-weight:600;position:relative;line-height:1.25;transition:transform .17s}
.home-v3 .quick-v3 a:hover{transform:translateY(-3px)}.home-v3 .quick-v3 a span{font-size:1.83rem;color:var(--ruby);line-height:1.3;margin-bottom:5px}.home-v3 .quick-v3 a small{position:absolute;right:7px;bottom:6px;color:var(--leaf)}
.home-v3 .latest-v3{margin:0 auto 26px}.home-v3 .section-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.home-v3 .section-top h2,.home-v3 .closing-v3 h2{margin:0;color:#ab1b53;font-size:1.16rem}
.home-v3 .section-top a{font-size:.8rem;color:#467a2d;font-weight:600}.home-v3 .section-hint{font-size:.71rem;margin:3px 0 12px;color:#84717a}
.home-v3 .news-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.home-v3 .news-card{border-radius:10px;box-shadow:var(--bshadow)}.home-v3 .news-card img{aspect-ratio:16/9}
.home-v3 .news-card-body{padding:10px 12px}.home-v3 .news-card h3{font-size:.89rem;line-height:1.35;margin:5px 0}.home-v3 .news-card p{font-size:.73rem;line-height:1.4;margin:3px 0}.home-v3 .news-card .tag{font-size:.6rem;padding:2px 7px}
.home-v3 .closing-v3{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin:15px auto 30px}.home-v3 .closing-v3 h2{margin-bottom:11px}
.home-v3 .feature-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.home-v3 .feature-chips>div{display:flex;align-items:center;flex-direction:column;background:linear-gradient(135deg,#f0f7e7,#fff);border:1px solid #e8eadf;border-radius:11px;text-align:center;padding:9px 6px;font-size:1.8rem;color:#477e2d;min-height:96px}.home-v3 .feature-chips strong{display:block;color:#2c3130;font-size:.71rem}.home-v3 .feature-chips small{font-size:.59rem;color:#666}
.home-v3 .docs-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.home-v3 .docs-list a{background:#fff;border:1px solid var(--edge);border-radius:10px;display:flex;flex-direction:column;align-items:center;text-align:center;padding:10px 6px;font-size:.7rem;min-height:90px;color:#422a35}.home-v3 .docs-list span{font-size:1.8rem;color:var(--ruby)}
.home-v3 .demo-v3{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#fff3dd;padding:14px 19px;border-radius:12px;margin-bottom:25px;border:1px solid #e9d5ac;font-size:.8rem}.home-v3 .demo-v3 strong{color:#83324d}.home-v3 .demo-v3 span{color:#806872}.home-v3 .demo-v3 a{color:#9f1b4e;text-decoration:underline}
/* Shared dashboard layout, matches reference CMS and E-Leave screen */
.dashboard-v3 .dash-ribbon{background:linear-gradient(106deg,#921742,#b52058 55%,#99163e);border-top:4px solid #e5b94f;color:white;position:relative;overflow:hidden}
.dashboard-v3 .dash-ribbon::after{content:'';position:absolute;right:0;top:0;width:32%;height:100%;background:url('/assets/img/campus.webp') center/cover;opacity:.19;mask-image:linear-gradient(90deg,transparent,#000)}
.dashboard-v3 .dash-ribbon-inner{height:85px;display:flex;align-items:center;gap:30px}.dashboard-v3 .ribbon-title{font-size:clamp(1.2rem,2.25vw,1.8rem);font-weight:700;border-right:1px solid #ffb8d088;padding-right:26px}.dashboard-v3 .ribbon-sub{font-size:.86rem;color:#fff2f7}
.dashboard-v3 .dashboard-section{padding:21px 0 55px;background:#fff9f8}
.dashboard-v3 .dash-layout,.dashboard-v3 #staffApp.reference-dash{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}
.dashboard-v3 .dash-layout.hidden,.dashboard-v3 #staffApp.hidden{display:none!important}
.dashboard-v3 .dash-sidebar{border:1px solid #f1e1e6;box-shadow:var(--bshadow);background:#fffaf9;position:sticky;top:12px;display:flex;flex-direction:column;padding:10px;border-radius:17px;white-space:normal}
.dashboard-v3 .dash-sidebar a,.dashboard-v3 .dash-sidebar button{width:100%;padding:11px 12px;font-size:.85rem;border-radius:9px;white-space:normal;color:#4a2739;text-align:left;border:0;display:block;background:transparent;line-height:1.4}
.dashboard-v3 .dash-sidebar a:hover,.dashboard-v3 .dash-sidebar button:hover{background:#fde5ee}.dashboard-v3 .dash-sidebar a.selected{background:linear-gradient(120deg,#c32061,#9c1950);color:#fff;font-weight:700}
.dashboard-v3 .side-person{display:flex;flex-direction:column;align-items:center;text-align:center;padding:14px 7px;margin-bottom:8px;border-bottom:1px solid #eedbe1;font-size:.92rem}.dashboard-v3 .side-person small{font-size:.7rem;color:#806777}.dashboard-v3 .avatar-circle{width:66px;height:66px;background:linear-gradient(145deg,#ffebf0,#ffc3d4);border:2px solid #f5ce5f;border-radius:50%;display:grid;place-items:center;color:#a61a55;font-size:2.5rem;margin-bottom:7px}
.dashboard-v3 .dash-main{min-width:0}.dashboard-v3 .dash-main>.toolbar{margin:2px 0 8px;gap:15px}.dashboard-v3 .dash-main>.toolbar h2{font-size:1.17rem;color:#272329;margin:0}
.dashboard-v3 .dash-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 17px}
.dashboard-v3 .dash-kpi{padding:16px 12px 14px;border:1px solid #ecdde2;border-radius:13px;box-shadow:var(--bshadow);text-align:center;min-height:95px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff}
.dashboard-v3 .dash-kpi strong{font-size:1.9rem;color:#a91d54;line-height:1.3}.dashboard-v3 .dash-kpi span{font-size:.75rem;color:#493943}
.dashboard-v3 .dash-kpi:nth-child(2) strong{color:#548127}.dashboard-v3 .dash-kpi:nth-child(3) strong{color:#cb9824}
.dashboard-v3 .app-section{background:#fff;border:1px solid #f0dfe4;box-shadow:var(--bshadow);border-radius:16px;padding:20px;margin:14px 0}
.dashboard-v3 .app-section>h2{font-size:1.15rem;color:#fff;background:linear-gradient(100deg,#a51d52,#c6326e);padding:11px 18px;margin:-20px -20px 15px;border-radius:15px 15px 0 0}
.dashboard-v3 .form-grid{gap:12px}.dashboard-v3 .field label{font-size:.85rem;color:#32262c}.dashboard-v3 .field input,.dashboard-v3 .field select,.dashboard-v3 .field textarea{border:1px solid #ded2da;background:#fffdfd;border-radius:8px;padding:9px 11px;min-height:42px}.dashboard-v3 .field textarea{min-height:105px}
.dashboard-v3 .btn{border-radius:9px;font-weight:600}.dashboard-v3 .btn-primary{background:linear-gradient(115deg,#ad1d55,#c12d64);border:0;color:#fff}.dashboard-v3 .btn-secondary{border-color:#d9b7c5;color:#a01d53;background:#fff}.dashboard-v3 .btn:hover{filter:brightness(.96)}
.dashboard-v3 .upload-help{padding:10px 14px;margin:15px 0;background:#edf8e8;color:#43712e;border:1px solid #d6eccc;border-radius:11px;font-size:.8rem}
.dashboard-v3 .notice{line-height:1.55}.dashboard-v3 .data-table th{background:#f9dce8;color:#8b1844}
.dashboard-v3 #authState{margin:25px auto;max-width:580px;text-align:center;box-shadow:var(--bshadow);padding:32px;border-radius:18px}.dashboard-v3 #authState .auth-icon{font-size:2.2rem}.dashboard-v3 #authState p{font-size:.9rem}.dashboard-v3 #googleButton{display:flex;justify-content:center;margin:12px 0}
.dashboard-v3 .preview-notice{grid-column:1/-1;background:#fff3d7;border:1px solid #e6ca81;border-radius:12px;padding:10px 18px;font-size:.82rem;color:#684819;font-weight:600}
.dashboard-v3 .preview-notice~.dash-sidebar{top:12px}
/* E-Leave reference: cards + form + workflow + history */
.staff-v3 .leave-grid{display:grid;grid-template-columns:1.13fr .87fr;gap:14px;align-items:start}
.staff-v3 .leave-grid .leave-history{grid-column:1/-1}
.staff-v3 .workflow-v3{min-height:360px}
.staff-v3 .workflow-steps{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:22px 3px 16px}
.staff-v3 .workflow-steps>div{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:3px;text-align:center}
.staff-v3 .workflow-steps>div b{font-size:1.75rem;background:#f9e3eb;display:grid;place-items:center;border-radius:50%;width:57px;height:57px;color:#a51c54}
.staff-v3 .workflow-steps>div:nth-of-type(2) b{background:#edf5df;color:#558327}.staff-v3 .workflow-steps>div:nth-of-type(3) b{background:#fff1d8;color:#ad781a}
.staff-v3 .workflow-steps strong{font-size:.76rem}.staff-v3 .workflow-steps small{font-size:.67rem;color:#7e7180}.staff-v3 .workflow-steps>span{color:#5c863e;font-size:1.2rem}
.staff-v3 .workflow-note{margin-top:15px;background:#eef7e8;border:1px solid #d6e9c9;color:#4f6c38}
.staff-v3 .leave-entry{min-height:360px}.staff-v3 #leaveForm .form-grid{gap:11px}.staff-v3 #leaveForm .wide .btn{width:auto}
/* Mobile: no overflow, admin sidebar horizontally scrollable only */
@media(max-width:1120px){.bprs-v3 .nav a{font-size:.78rem;padding:13px 8px}.bprs-v3 .nav .nav-staff{padding:7px 8px}.home-v3 .school-snapshot{gap:12px}.home-v3 .snapshot-info ul{font-size:.75rem}.dashboard-v3 .dash-layout,.dashboard-v3 #staffApp.reference-dash{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:930px){.bprs-v3 .identity-inner{min-height:79px}.bprs-v3 .brand img{width:63px;height:63px}.bprs-v3 .nav-toggle{display:block}.bprs-v3 .header-aside{margin-left:auto;margin-right:15px}.bprs-v3 .header-tag{display:none}.bprs-v3 .nav-ribbon{border:0;height:0}.bprs-v3 .nav{display:none;position:absolute;z-index:100;top:0;left:0;right:0;flex-direction:column;background:#a91a50;box-shadow:0 15px 24px #0002;padding:6px 20px 14px}.bprs-v3 .nav.is-open{display:flex}.bprs-v3 .nav a{justify-content:flex-start;text-align:left;font-size:.92rem;padding:10px 15px;border-bottom:1px solid #ffffff20}.bprs-v3 .nav .nav-staff{margin:10px 0 0}.home-v3 .school-snapshot{grid-template-columns:1fr 1fr}.home-v3 .snapshot-photo{display:none}.home-v3 .quick-v3{grid-template-columns:repeat(3,1fr)}.home-v3 .news-grid{grid-template-columns:repeat(2,1fr)}.home-v3 .closing-v3{grid-template-columns:1fr}.dashboard-v3 .dash-ribbon-inner{height:auto;min-height:76px;gap:12px;flex-wrap:wrap}.dashboard-v3 .ribbon-title{font-size:1.25rem}.dashboard-v3 .ribbon-sub{font-size:.74rem}.dashboard-v3 .dash-layout,.dashboard-v3 #staffApp.reference-dash{grid-template-columns:1fr}.dashboard-v3 .dash-sidebar{position:static;display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;white-space:nowrap;align-items:center;gap:3px;padding:7px;max-width:100%}.dashboard-v3 .dash-sidebar .side-person{display:none}.dashboard-v3 .dash-sidebar a,.dashboard-v3 .dash-sidebar button{white-space:nowrap;width:auto;flex:none;padding:9px 12px;font-size:.78rem}.dashboard-v3 .preview-notice{grid-column:1/-1}}
@media(max-width:640px){.bprs-v3 .container{width:calc(100% - 26px)}.bprs-v3 .identity-inner{min-height:75px}.bprs-v3 .brand img{height:51px;width:51px}.bprs-v3 .brand{gap:6px}.bprs-v3 .brand-name{font-size:.8rem}.bprs-v3 .brand-sub{font-size:.53rem;letter-spacing:0}.bprs-v3 .header-entry{display:none}.bprs-v3 .nav{top:0}.home-v3 .hero-screen{height:260px;background-position:center}.home-v3 .hero-copy{padding-left:12px;border-left-width:3px}.home-v3 .hero-copy h1{font-size:1.2rem}.home-v3 .hero-copy p{font-size:.79rem}.home-v3 .hero-small-link{font-size:.71rem}.home-v3 .hero-wave{height:25px}.home-v3 .stat-podium{grid-template-columns:repeat(2,1fr);gap:0}.home-v3 .stat-chip{min-height:74px;padding:11px 6px;justify-content:flex-start;gap:7px}.home-v3 .stat-chip:nth-child(2){border-right:0}.home-v3 .stat-chip:nth-child(-n+2){border-bottom:1px solid #ecdae1}.home-v3 .stat-ico{font-size:1.58rem;min-width:26px}.home-v3 .stat-chip small{font-size:.65rem}.home-v3 .stat-chip strong{font-size:1.15rem}.home-v3 .stat-chip strong.smaller{font-size:.9rem}.home-v3 .school-snapshot{display:flex;flex-direction:column;gap:11px;margin:10px auto}.home-v3 .snapshot-info{order:-1;padding:4px}.home-v3 .snapshot-sign{min-height:120px;max-height:190px}.home-v3 .snapshot-sign img{height:190px}.home-v3 .snapshot-info h2{font-size:1rem}.home-v3 .snapshot-info ul{font-size:.75rem}.home-v3 .quick-v3{grid-template-columns:repeat(3,1fr);gap:7px;margin:13px auto 19px}.home-v3 .quick-v3 a{min-height:83px;font-size:.64rem;padding:9px 3px}.home-v3 .quick-v3 a span{font-size:1.4rem}.home-v3 .latest-v3 .news-grid{grid-template-columns:1fr}.home-v3 .latest-v3 .news-card:nth-child(n+3){display:none}.home-v3 .news-card{display:flex}.home-v3 .news-card>a{display:flex;width:100%;gap:6px;align-items:stretch}.home-v3 .news-card img{width:38%;max-height:135px;object-fit:cover;aspect-ratio:auto}.home-v3 .news-card-body{padding:9px;flex:1}.home-v3 .closing-v3{gap:20px}.home-v3 .feature-chips{grid-template-columns:repeat(2,1fr)}.home-v3 .docs-list{grid-template-columns:repeat(3,1fr)}.home-v3 .docs-list a{font-size:.62rem}.home-v3 .section-top h2,.home-v3 .closing-v3 h2{font-size:.95rem}.bprs-v3 .footer-links{flex-direction:column;align-items:flex-start;gap:4px}.bprs-v3 .footer-bottom{flex-direction:column;gap:2px}.dashboard-v3 .dash-ribbon-inner{min-height:66px}.dashboard-v3 .ribbon-title{font-size:1rem;padding-right:0;border:0}.dashboard-v3 .ribbon-sub{display:none}.dashboard-v3 .dashboard-section{padding:12px 0 35px}.dashboard-v3 .dash-cards{grid-template-columns:repeat(2,1fr);gap:8px}.dashboard-v3 .dash-kpi{min-height:77px;padding:11px 7px}.dashboard-v3 .dash-kpi strong{font-size:1.5rem}.dashboard-v3 .dash-kpi span{font-size:.69rem}.dashboard-v3 .app-section{padding:14px}.dashboard-v3 .app-section>h2{margin:-14px -14px 13px;padding:10px 13px;font-size:1rem}.dashboard-v3 .dash-main>.toolbar h2{font-size:1rem}.dashboard-v3 .form-grid{grid-template-columns:1fr}.dashboard-v3 .field label{font-size:.82rem}.staff-v3 .leave-grid{grid-template-columns:1fr}.staff-v3 .leave-grid .leave-history{grid-column:1}.staff-v3 .workflow-v3,.staff-v3 .leave-entry{min-height:0}.dashboard-v3 .dashboard-section .container{width:calc(100% - 20px)}}

/* News editor mobile-first image attachments and safe local preview */
.dashboard-v3 .inline-uploads{border:1px dashed #dcaec1;border-radius:12px;background:#fff9fb;padding:13px}
.dashboard-v3 .inline-uploads label{display:block;color:#92244f;font-size:.85rem}
.dashboard-v3 .inline-uploads input[type=file]{background:white;border:1px dashed #e6baca;padding:10px}
.dashboard-v3 .inline-uploads small{font-size:.72rem;color:#7a6670}
.dashboard-v3 .inline-uploads .thumb-row{margin-top:10px}
.dashboard-v3 .inline-uploads .preview-image{height:75px;width:110px;object-fit:cover;border-radius:8px;box-shadow:0 2px 9px #b95c8142}
.news-modal{border:1px solid #c28aa3;box-shadow:0 26px 70px #36202b50;border-radius:14px;max-width:min(720px,calc(100% - 22px));width:100%;padding:23px;font-family:'Prompt','Sarabun',sans-serif}
.news-modal::backdrop{background:#150c13ae}.news-modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ead5e0;padding-bottom:8px}.news-modal-head h2{font-size:1.2rem;margin:0}.news-modal-head button{background:#a61f57;color:#fff;border:0;border-radius:7px;padding:8px 13px}.news-modal #newsPreviewContent{line-height:1.8;padding-top:15px;max-height:65vh;overflow:auto;overflow-wrap:anywhere}

.mobile-tabbar{display:none}
@media(max-width:640px){.mobile-tabbar{position:fixed;bottom:0;left:0;right:0;z-index:90;display:grid;grid-template-columns:repeat(5,1fr);background:linear-gradient(120deg,#8b1746,#b91d60);border-top:3px solid #eabd4c;color:white;box-shadow:0 -6px 25px #4a143350}.mobile-tabbar a{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:1px;color:#fff!important;padding:7px 1px 9px;font-size:.64rem;line-height:1.15;text-align:center}.mobile-tabbar span{font-size:1.18rem}.mobile-tabbar small{font-size:.61rem}.bprs-v3{padding-bottom:60px}.dashboard-v3 .app-section .actions{flex-wrap:wrap}.dashboard-v3 .app-section .actions .btn{flex:1 1 42%;min-width:0;text-align:center;font-size:.75rem}}
