@font-face{font-family:JournalThai;src:url('/assets/fonts/noto-sans-thai-variable.woff') format('woff');font-display:swap}.journal-page{background:linear-gradient(155deg,#edfaff,#e7f0ff 50%,#f6fbff);color:#123d63;font-family:JournalThai,Tahoma,sans-serif}.journal-page *{box-sizing:border-box}.journal-shell{max-width:1280px;margin:auto;padding:28px 26px 60px}.j-hero{isolation:isolate;position:relative;overflow:hidden;border:1px solid #ffffff82;background:linear-gradient(115deg,#103b91,#087fc7 55%,#30bfe1);border-radius:28px;color:white;padding:42px;box-shadow:0 12px 0 #1054a21c,0 24px 45px #1765a72b,inset 0 1px 1px #ffffff8a}.j-hero:after{content:'';position:absolute;width:380px;height:380px;right:-60px;top:-150px;border:45px solid #ffffff10;border-radius:50%;z-index:-1}.j-hero h1{font-size:clamp(26px,3.7vw,42px);line-height:1.5;margin:12px 0}.j-hero p{line-height:1.9;color:#e5f8ff}.j-kicker{font-size:12px;font-weight:700;letter-spacing:1.3px;margin:0;color:#207aa6}.j-hero .j-kicker{color:#bfefff}.j-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;font-size:12px}.j-tags span{border:1px solid #ffffff40;background:#ffffff13;padding:8px 13px;border-radius:30px}.j-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:22px 0}.journal-page button,.j-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:11px 16px;border:1px solid #bcd8ed;border-radius:12px;color:#135484;background:linear-gradient(#fff,#edf7ff);box-shadow:0 3px 0 #b8d0e24d;text-decoration:none;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.journal-page .j-primary{background:linear-gradient(145deg,#10a6df,#1260b8);border-color:#1681c2;color:white;box-shadow:0 4px 0 #0e4b8b3d,0 7px 14px #0b81c124}.journal-page button:hover,.j-btn:hover{filter:brightness(.97);transform:translateY(-1px)}.journal-page button:disabled{opacity:.55;cursor:wait}.journal-page :focus-visible{outline:3px solid #ffa923;outline-offset:3px}.j-access,.j-note{background:#fff;border:1px solid #c6dfef;border-radius:18px;padding:22px;line-height:1.8}.j-access h2,.j-note p{margin-top:0}.j-access form{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.j-access form label{flex:1;min-width:200px}.j-filterbar{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;background:#ffffffb3;padding:20px;border-radius:20px;border:1px solid #d4e6f3;margin:22px 0}.journal-page label{display:block;font-size:14px;font-weight:600;line-height:1.9}.journal-page input,.journal-page select,.journal-page textarea{display:block;width:100%;padding:11px;border:1px solid #bbd4e5;border-radius:10px;background:white;font:inherit;font-size:14px;color:#173f5e;margin:5px 0 12px}.journal-page textarea{resize:vertical}.j-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:25px 0}.j-stat{background:linear-gradient(150deg,#fff,#f4fbff);padding:21px;border:1px solid #c7e2f4;border-radius:19px;box-shadow:0 5px 0 #94c8e521}.j-stat strong{display:block;color:#087fbd;font-size:32px;margin:6px 0}.j-muted,.j-stat small{font-size:13px;color:#5c7a91}.j-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:32px 0 18px}.j-section-head h2{font-size:23px;margin:5px 0}.j-projects{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.j-project{background:white;border:1px solid #cee3f1;border-top:5px solid #39b5e6;border-radius:19px;padding:22px;box-shadow:0 7px 0 #b3d4ee2b;display:flex;flex-direction:column;gap:10px}.j-project:nth-child(3n+2){border-top-color:#197ad1}.j-project:nth-child(3n){border-top-color:#3758a9}.j-project h3{font-size:18px;margin:0}.j-project p{margin:0;line-height:1.8}.j-project .j-value{font-size:26px;font-weight:700;color:#096bb4}.j-project button{margin-top:auto}.journal-page progress{display:block;width:100%;height:12px;accent-color:#138dc9}.j-timeline-section{margin-bottom:28px}.j-event{position:relative;background:#fff;border:1px solid #cce1f0;border-radius:20px;padding:24px;margin:18px 0 18px 20px;box-shadow:0 5px 18px #245d8e08}.j-event:before{content:'';position:absolute;top:25px;left:-24px;width:13px;height:13px;border:3px solid #b5e7ff;border-radius:50%;background:#1682cf}.j-event h3{font-size:20px;margin:10px 0}.j-event p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.j-event-top{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;align-items:center;color:#46738e}.j-status{background:#e8f4ff;color:#126ba7;padding:5px 11px;border-radius:30px}.j-status.approved{background:#e3f6f0;color:#167459}.j-status.rejected{background:#fff0e9;color:#a34426}.j-result{background:#f0f8ff;border-radius:12px;padding:15px;display:flex;flex-wrap:wrap;gap:20px;font-size:14px}.j-gallery,.j-previews{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.j-gallery button{padding:0;display:block;overflow:hidden;background:#f0f8ff;text-align:left}.j-gallery img,.j-previews img{width:100%;height:170px;object-fit:cover;display:block;border-radius:10px}.j-gallery span{display:block;padding:8px;font-size:12px;white-space:normal}.j-previews input{font-size:12px}.j-empty{grid-column:1/-1;border:2px dashed #b4d2e7;border-radius:18px;text-align:center;padding:35px 22px;color:#5d7a91;background:#ffffff75;line-height:1.9}.journal-page dialog{border:1px solid #cce3f2;border-radius:22px;padding:28px;width:min(760px,calc(100% - 28px));max-height:90dvh;color:#173f5e;box-shadow:0 25px 70px #173f5e40}.journal-page dialog::backdrop{background:#0d2d5c99;backdrop-filter:blur(4px)}.j-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.j-consent{display:flex!important;gap:12px;align-items:flex-start}.j-consent input{width:20px;flex-shrink:0;margin-top:7px}.j-error{color:#a72c36}.j-note{margin:20px 0;background:#f9fcff;font-size:13px}#j-message{line-height:1.8}#j-photo-dialog{width:min(1100px,96%)}#j-full-photo{max-height:75vh;width:100%;object-fit:contain;margin-top:15px}#j-key-result{overflow-wrap:anywhere}.journal-page [hidden]{display:none!important}@media(max-width:900px){.j-projects{grid-template-columns:repeat(2,1fr)}.j-filterbar,.j-stats{grid-template-columns:repeat(2,1fr)}.j-hero{padding:30px}}@media(max-width:560px){.journal-shell{padding:18px 14px 40px}.j-hero{padding:25px 20px;border-radius:20px}.j-projects{grid-template-columns:1fr}.j-fields{grid-template-columns:1fr}.j-gallery,.j-previews{grid-template-columns:repeat(2,1fr)}.j-gallery img,.j-previews img{height:130px}.j-event{padding:17px;margin-left:14px}.j-event:before{left:-19px}.j-toolbar{gap:8px}.journal-page button,.j-btn{font-size:12px;padding:10px 12px}.j-stats{gap:10px}.j-stat{padding:16px}.j-stat strong{font-size:27px}.j-filterbar{padding:14px;gap:10px}.j-section-head h2{font-size:20px}}@media(prefers-reduced-motion:no-preference){.journal-page button,.j-btn{transition:transform .15s,filter .15s}}
/* Shared simple-entry controls: no fixed overlays over text. */
.journal-page dialog input,.journal-page dialog select,.journal-page dialog textarea{font-size:18px;min-height:48px}.journal-page dialog button{font-size:18px;min-height:48px}.j-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.j-choice-grid button{justify-content:flex-start;text-align:left;min-height:70px;padding:17px}.j-choice-grid button[aria-pressed=true]{border:2px solid #056eb5;background:#dff2ff;box-shadow:inset 0 0 0 1px #056eb5}.journal-page dialog details{padding:12px;background:#f0f8ff;border-radius:12px;margin:15px 0}.journal-page dialog summary{cursor:pointer;min-height:40px;line-height:1.8}#j-step-label{color:#0968a7;font-size:17px}.j-stars{position:absolute;right:20px;top:22px;display:flex;gap:8px;perspective:200px;pointer-events:none}.j-stars span{color:#ffe6a0;font-size:25px;text-shadow:1px 1px #cb912b,2px 3px #805b17,0 0 10px #fff3ca;animation:jStar 5s ease-in-out infinite}.j-stars span:nth-child(2){animation-delay:1.6s}.j-stars span:nth-child(3){animation-delay:3.2s}.j-hero{padding-top:66px}.j-carbon{margin:15px 0;padding:13px;background:#eff8ff;border-radius:12px}.journal-page label{font-size:16px}#j-summary-consent{width:24px;height:24px;min-height:24px;flex:none}#j-event-form .j-toolbar{margin:14px 0}#j-event-form .j-toolbar button{flex:1;white-space:normal}#j-review-summary{overflow-wrap:anywhere}.journal-page [hidden]{display:none!important}@keyframes jStar{0%,100%{opacity:.65;transform:rotateY(-15deg) scale(.94)}50%{opacity:1;transform:rotateY(15deg) scale(1.05)}}@media(prefers-reduced-motion:reduce){.j-stars span{animation:none}}@media(max-width:560px){.j-choice-grid{grid-template-columns:1fr}.journal-page dialog{padding:18px;max-height:calc(100dvh - 24px)}.journal-page button,.j-btn{min-height:44px;font-size:16px}.j-hero{padding-top:65px}.j-hero h1{padding-right:0}.j-stars{top:18px;right:18px}#j-event-form h2{font-size:23px}}@media(max-height:500px) and (orientation:landscape){.journal-page dialog{max-height:calc(100dvh - 12px)}.j-choice-grid{grid-template-columns:1fr 1fr}}

/* Single-page activity entry, with flexible columns on narrow phones. */
.j-quick-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;margin:26px 0 16px;border:1px solid #c7e2f4;border-radius:20px;background:#fff;box-shadow:0 5px 18px #245d8e08}.j-quick-entry h2{margin:0 0 8px;font-size:22px}.j-quick-entry p{margin:6px 0;line-height:1.8}.j-quick-entry .j-primary{flex-shrink:0;font-size:18px;min-height:50px}.j-editor-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.j-editor-head h2{margin:0}.j-editor-head button{flex-shrink:0}.j-filterbar{grid-template-columns:repeat(4,minmax(0,1fr))}.j-filterbar label,.j-access form label,.j-previews>*{min-width:0}.journal-page input,.journal-page select,.journal-page textarea{max-width:100%;min-width:0}.j-note,.j-quick-entry,.j-access{overflow-wrap:anywhere}.j-previews:empty{display:none}.j-previews button{width:100%;margin-top:6px}.j-previews img{height:130px}.j-hero .j-kicker{overflow-wrap:anywhere}#j-event-form label{margin-top:16px}#j-event-form input[type=file]{padding:12px;font-size:16px}#j-event-form input::file-selector-button{font:inherit;white-space:normal;padding:8px;border:1px solid #bcd8ed;border-radius:8px;background:#edf7ff;color:#135484;margin-right:8px}.j-section-head{flex-wrap:wrap}
@media(max-width:900px){.j-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.j-quick-entry{flex-direction:column;align-items:stretch;padding:18px}.j-quick-entry h2{font-size:20px}.j-quick-entry .j-primary{width:100%}.journal-page dialog{width:calc(100% - 24px)}.j-access form label{min-width:0;flex-basis:100%}}

.j-permission-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.j-permission-options label{display:flex;align-items:flex-start;gap:10px;font-weight:500}.j-permission-options input{width:22px;flex:0 0 22px;margin:4px 0;min-height:22px}.j-access-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.j-access-row{padding:16px;margin:14px 0;border:1px solid #c7e2f4;border-radius:14px;background:white}.j-access-row h3{margin:0 0 8px}.j-access-row p{margin:5px 0}.j-access-row label{font-weight:500}.j-note summary{cursor:pointer;font-size:18px;font-weight:700;min-height:44px}#j-permission fieldset{border:1px solid #c7e2f4;border-radius:12px;padding:15px}#j-permission legend{font-weight:700}.j-history-item{border-bottom:1px solid #c7e2f4;padding:14px 0}.j-history-item dt{font-weight:700;margin-top:10px}.j-history-item dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:560px){.j-permission-options{grid-template-columns:1fr}.j-access-actions>*{flex:1 1 100%}}

/* Request and approver actions share a row, then stack into full-width phone targets. */
.j-request-actions{align-items:stretch;margin:12px 0}.j-request-actions>*{min-height:44px}.j-approver-entry{white-space:normal;text-align:center;font-size:17px;font-weight:700;line-height:1.5;padding:12px 16px;max-width:100%;overflow-wrap:anywhere}#j-permission-admin{scroll-margin-top:24px}@media(max-width:560px){.j-request-actions{width:100%}}

/* Compact branch request and pending-first approval flow. */
#j-start{display:block}#j-start fieldset{min-width:0;border:1px solid #c7e2f4;border-radius:12px;padding:15px;margin:14px 0}#j-start legend{font-weight:700}.j-admin-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.j-admin-filter label{flex:1 1 210px;min-width:0}.j-admin-filter button{min-height:44px}.j-access-note{margin:12px 0}.j-access-note summary,.j-backup-details summary{font-size:15px}.j-access-row,.j-access-row p{overflow-wrap:anywhere}.j-backup-details{margin:16px 0}.j-permission-options input:focus-visible{outline:3px solid #0873bc;outline-offset:3px}@media(max-width:560px){.j-admin-filter>*{flex:1 1 100%}.j-admin-filter button{width:100%}}
