:root{font-family:Inter,system-ui,-apple-system,'Noto Sans Thai',sans-serif;color:#193047;background:#f3f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#d9f4ef 0,transparent 35%),#f3f7fa;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:not-allowed}.app-shell{max-width:950px;margin:auto;padding:0 18px 24px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center}.brand-icon{display:grid;place-items:center;background:linear-gradient(135deg,#12334f,#197c85);color:white;font-weight:800;font-size:23px;border-radius:15px;width:43px;height:43px;box-shadow:0 7px 20px #165c6933}.brand strong{display:block;font-size:20px;letter-spacing:-.6px}.brand small{display:block;color:#6b8191;letter-spacing:2.5px;font-size:9px;font-weight:800}.header-tools{display:flex;gap:7px}.icon-btn{border:1px solid #dce6eb;background:white;color:#285069;min-width:43px;height:43px;border-radius:14px;font-weight:800;font-size:17px;box-shadow:0 2px 7px #163b4a08}.welcome{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:17px 0 22px}.welcome h1{font-size:26px;letter-spacing:-.7px;margin:3px 0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#148b8d;margin:0;text-transform:uppercase}.muted{color:#78909f;font-size:13px;margin:5px 0;line-height:1.5}.live-dot{white-space:nowrap;color:#178c72;background:#e1f6ee;border-radius:20px;padding:7px 10px;font-size:11px;font-weight:800}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:white;padding:7px;border-radius:19px;border:1px solid #e2ebf0;box-shadow:0 8px 24px #14354b0b;margin-bottom:24px}.tabs button{background:transparent;border:0;color:#7c909d;border-radius:13px;padding:11px 7px;font-weight:750;font-size:12px;display:flex;align-items:center;justify-content:center;gap:7px}.tabs button span:first-child{font-size:19px}.tabs button.active{color:white;background:linear-gradient(125deg,#163b59,#16898e);box-shadow:0 5px 15px #176b793b}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.section-title h2{margin:0;font-size:23px;letter-spacing:-.5px}.section-title h3{margin:0}.section-title p{margin:3px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:19px}.stat{background:white;border:1px solid #e5edf1;border-radius:18px;padding:16px;box-shadow:0 5px 15px #1a4b5908}.stat strong{font-size:28px;display:block;letter-spacing:-1px}.stat span{font-size:12px;color:#78909f;font-weight:650}.filters{display:flex;gap:7px;overflow-x:auto;padding-bottom:12px}.filters button{border:1px solid #dfe8ec;background:white;border-radius:99px;padding:9px 15px;color:#668090;font-size:12px;font-weight:750;white-space:nowrap}.filters button.selected{background:#163e59;color:white;border-color:#163e59}.ticket-list{display:grid;gap:12px}.ticket{background:white;border:1px solid #e2ebef;border-radius:20px;padding:18px;box-shadow:0 6px 20px #173f500b}.ticket-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.ticket-room{font-size:18px;font-weight:850;letter-spacing:-.3px}.ticket-no{font-size:11px;color:#8195a1;margin-top:3px;overflow-wrap:anywhere}.ticket-issue{font-size:15px;font-weight:750;margin:13px 0 4px}.ticket-desc{font-size:13px;line-height:1.6;color:#506a7a;margin:0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.ticket-meta{font-size:12px;color:#748d9b;display:flex;gap:8px;flex-wrap:wrap}.status{font-size:10px;font-weight:850;letter-spacing:.3px;border-radius:99px;padding:8px 10px;background:#eaf2f8;color:#355e79;white-space:nowrap}.status.OPEN,.status.ASSIGNED{background:#fff3d9;color:#986318}.status.ACCEPTED,.status.IN_PROGRESS{background:#e4f3ff;color:#226a9a}.status.COMPLETED{background:#e0f7ef;color:#168466}.status.CLOSED{background:#eaf0f2;color:#637985}.status.CANCELLED{background:#fbe9ea;color:#a64c52}.ticket-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:13px;border-top:1px solid #edf2f4}.btn{border:1px solid #dbe8eb;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:800;background:#f4f8fa;color:#355a70}.btn.main{background:linear-gradient(120deg,#173c5a,#138d91);color:white;border:0;box-shadow:0 5px 13px #197e8930}.btn.warn{color:#b55a44;background:#fff2ed}.panel,.auth-card{background:white;border:1px solid #e0ebef;border-radius:22px;padding:22px;margin-bottom:16px;box-shadow:0 8px 24px #153a500b}form{display:grid;gap:16px}label{display:grid;gap:7px;font-size:13px;font-weight:750;color:#385267}input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;background:#f8fafc;border:1.5px solid #e0e9ee;border-radius:13px;padding:13px 14px;color:#19374d;outline:none;min-height:48px}input:focus,select:focus,textarea:focus{border-color:#15999a;box-shadow:0 0 0 3px #1a9d9e20}textarea{resize:vertical}.primary{background:linear-gradient(110deg,#173b59,#168e91);color:white;border:0;border-radius:13px;padding:13px 17px;font-weight:800;box-shadow:0 6px 18px #127d8833}.large{min-height:52px;font-size:15px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented label{cursor:pointer}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;border:2px solid #e1eaf0;background:#f7fafb;padding:16px 6px;border-radius:15px;color:#688294;font-weight:800}.segmented input:checked+span{border-color:#169b9b;background:#e8f8f5;color:#126c75;box-shadow:0 4px 13px #149d9822}.segmented input:focus-visible+span{outline:3px solid #9ad4d5}.auth-card{max-width:420px;margin:45px auto;padding:30px}.auth-card h1{font-size:27px;margin:8px 0}.auth-card form{margin-top:25px}.hero-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:18px;background:#e5f7f5;color:#188a89;font-size:30px}.notice:not(:empty){background:#e8f5f4;color:#0c6f73;border:1px solid #b8e5df;padding:12px 16px;border-radius:14px;margin-bottom:15px;font-weight:650;font-size:13px}.empty{text-align:center;padding:34px 16px;border:1px dashed #ccdce2;border-radius:20px;color:#8297a2}.history{background:#f5f9fb;border-radius:13px;padding:12px;margin-top:12px}.history p{font-size:12px;margin:6px 0;color:#557082}.checkline{display:flex;align-items:center;gap:9px}.checkline input{width:18px;height:18px}.dept-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #eef1f3}.dept-row small{display:block;color:#8295a2;font-size:11px}.dept-row button{flex-shrink:0}.panel h3{margin-top:0}dialog{width:min(92vw,450px);border:0;border-radius:24px;padding:24px;color:#19374d;box-shadow:0 20px 65px #102f4870}dialog::backdrop{background:#102b47a8}.dialog-heading{display:flex;justify-content:space-between}.dialog-icon{background:#e5f7f5;color:#168a8c;border-radius:15px;width:45px;height:45px;display:grid;place-items:center;font-size:23px}dialog h2{margin:6px 0}footer{text-align:center;color:#9aadb6;font-size:11px;padding:28px 0}[hidden]{display:none!important}@media(max-width:550px){.app-shell{padding:0 13px 16px}.topbar{height:67px}.welcome h1{font-size:23px}.tabs{position:sticky;top:6px;z-index:4;gap:2px}.tabs button{flex-direction:column;gap:3px;font-size:10px;padding:10px 3px}.tabs button span:first-child{font-size:19px}.stats{gap:7px}.stat{padding:12px}.stat strong{font-size:25px}.stat span{font-size:10px}.ticket{padding:15px}.ticket-room{font-size:16px}.panel{padding:17px}}

/* v0.3.1: visual refresh only; preserves existing API and permissions */
:root{color:#102b4e;background:#f2f6fd;--navy:#112b50;--blue:#116bd5;--teal:#008f9c;--line:#e0e9f5}
body{background:radial-gradient(circle at 96% 2%,#dbeaff 0,transparent 32%),radial-gradient(circle at 3% 48%,#e8f7ff 0,transparent 38%),#f3f7fe}
.app-shell{max-width:1120px;padding:0 22px 30px}
.topbar{height:84px}.brand-icon{width:49px;height:49px;border-radius:17px;background:linear-gradient(145deg,#142c54,#007ea0);box-shadow:0 9px 23px #073b7640}.brand strong{font-size:22px;color:#102b50}.brand small{color:#3d7093}.header-tools .icon-btn{background:#fff;border:1px solid #dce8f5;box-shadow:0 6px 17px #123e6b12}
.welcome{margin:17px 0 17px}.welcome h1{font-size:30px}.eyebrow{color:#147f9b}.live-dot{background:#dff9ed;color:#08785a;border:1px solid #bdeed7}
.app-intro{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(115deg,#0b2448 0%,#123e79 51%,#087f9d 100%);border-radius:25px;color:white;padding:24px 30px;margin-bottom:19px;min-height:138px;box-shadow:0 16px 32px #103c7540}
.intro-glow{position:absolute;inset:auto -40px -150px auto;width:420px;height:310px;background:radial-gradient(circle,#47dcdf66,transparent 70%);z-index:-1}.intro-kicker{margin:0 0 10px;color:#a8eaf5;font-size:11px;letter-spacing:2px;font-weight:900}.app-intro h2{font-size:clamp(19px,3vw,29px);margin:0 0 6px;letter-spacing:-.6px}.app-intro p:last-of-type{color:#d4e7fc;font-size:13px;margin:0}.intro-art{position:absolute;right:30px;top:6px;color:#ffffff33;font-size:82px;display:flex;gap:10px;transform:rotate(-12deg);pointer-events:none}
.tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;background:transparent;border:0;padding:0;box-shadow:none;margin:0 0 27px}.tabs:has(#adminTab:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}
.tabs button{position:relative;min-height:78px;display:flex;align-items:center;justify-content:flex-start;gap:14px;text-align:left;padding:14px 17px;border:1px solid #dfe9f6;border-radius:20px;background:#fff;color:#193c65;font-size:14px;font-weight:850;box-shadow:0 8px 20px #163f7010;transition:transform .18s,box-shadow .18s,border-color .18s}
.tabs button:hover{transform:translateY(-2px);box-shadow:0 12px 24px #163f7022;border-color:#b9d6ee}.tabs button.active{background:linear-gradient(125deg,#08699d,#0d8f9a);border-color:transparent;color:#fff;box-shadow:0 12px 27px #07829c45}
.tabs button[data-view=create]:not(.active){background:linear-gradient(120deg,#e2fff5,#f4fffd);border-color:#b8edda;color:#087e64}.tabs button[data-view=create].active{background:linear-gradient(120deg,#087e67,#12b48a)}
.tabs button .nav-symbol{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:14px;background:#eaf3ff;color:#1569c2;font-size:27px;font-weight:750}.tabs button.active .nav-symbol{background:#ffffff2b;color:white}.tabs button[data-view=create]:not(.active) .nav-symbol{background:#c8f5e3;color:#00875f}
.section-title h2{font-size:26px}.section-title .muted{color:#7088a5}.icon-btn{border-radius:14px}
.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.stat{padding:20px;border:1px solid #dce8f8;border-radius:20px;background:linear-gradient(135deg,#fff,#eef6ff);box-shadow:0 9px 21px #133f7111}.stat:nth-child(2){background:linear-gradient(135deg,#fff,#e7f9f6)}.stat:nth-child(3){background:linear-gradient(135deg,#fff,#fff3e7)}.stat strong{font-size:32px;color:#153a6b}.stat span{color:#57738e}
.filters{gap:10px}.filters button{padding:11px 18px;border-radius:13px;background:white;color:#446687;border-color:#dce8f6}.filters button.selected{background:#143c73;border-color:#143c73;box-shadow:0 5px 12px #143c7326}
.ticket-list{gap:14px}.ticket{position:relative;overflow:hidden;border-radius:21px;padding:22px 23px;border:1px solid #e0e9f5;box-shadow:0 10px 25px #143d7011;transition:transform .18s,box-shadow .18s}.ticket:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:#3297f0}.ticket:has(.status.CLOSED):before{background:#96a8ba}.ticket:has(.status.IN_PROGRESS):before{background:#348bff}.ticket:has(.status.COMPLETED):before{background:#1ebd91}.ticket:has(.status.OPEN):before{background:#ffac45}.ticket:hover{box-shadow:0 13px 30px #143d701b}.ticket-room{font-size:21px;color:#0f3159}.ticket-no{color:#7b90a7}.ticket-issue{font-size:16px;color:#17395c}.ticket-desc{color:#4d6b85}.ticket-meta{color:#68819b;gap:11px}.status{font-size:11px;padding:8px 13px}.status.OPEN,.status.ASSIGNED{background:#fff0d7;color:#a15b00}.status.IN_PROGRESS{background:#e1efff;color:#075ec8}.status.ACCEPTED{background:#ece9ff;color:#5a45c2}.status.COMPLETED{background:#d9f9ed;color:#087d5b}.status.CLOSED{background:#eaf0f6;color:#5e7086}
.ticket-actions{gap:10px}.btn{padding:12px 17px;border-radius:13px;background:#f5f9ff;color:#245581;border-color:#d9e7f7}.btn.main{background:linear-gradient(120deg,#0b69cf,#0785b3);box-shadow:0 7px 15px #126cbd33}.btn:hover,.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}.primary{border-radius:15px;background:linear-gradient(110deg,#096acb,#008fa0);box-shadow:0 9px 21px #087da13b}.large{min-height:56px}
.panel,.auth-card{border-radius:23px;border-color:#e1eaf5;box-shadow:0 11px 26px #153d7012}.segmented span{border-radius:16px}.segmented input:checked+span{border-color:#1682d2;background:#e8f3ff;color:#0b5eae}
input:not([type=radio]):not([type=checkbox]),select,textarea{background:#fbfdff;border-color:#dce7f3;border-radius:14px}input:focus,select:focus,textarea:focus{border-color:#147bd0;box-shadow:0 0 0 4px #147bd01a}dialog{border-radius:26px}.dialog-icon{background:#e5f2ff;color:#126fba}
@media(max-width:760px){.app-shell{padding:0 14px 22px}.tabs{gap:7px}.tabs button{min-height:76px;justify-content:center;flex-direction:column;text-align:center;padding:10px 5px;gap:5px;font-size:11px;border-radius:17px}.tabs button .nav-symbol{width:37px;height:37px;font-size:23px;border-radius:12px}.app-intro{min-height:117px;padding:21px 20px;border-radius:21px}.intro-art{right:0;opacity:.45}.ticket{padding:18px}.stats{gap:8px}.stat{padding:14px}}
@media(max-width:400px){.tabs button{font-size:10px}.tabs:has(#adminTab:not([hidden])){gap:5px}.tabs button .nav-symbol{width:32px;height:32px;font-size:20px}.app-intro h2{font-size:19px}.intro-art{display:none}}
@media(prefers-reduced-motion:reduce){button,.ticket{transition:none!important}}

/* Rembrandt Corporate UI v0.3.2 — visual only; no API/workflow changes */
:root{--burgundy:#792630;--burgundy-dark:#551c25;--wine:#963d48;--ivory:#faf7f2;--charcoal:#292523;--gold:#ba9a74;--line:#eadfd5;color:var(--charcoal);background:var(--ivory)}
body{background:radial-gradient(circle at 95% 3%,#f6e9e2,transparent 38%),#faf7f2;color:var(--charcoal)}
.app-shell{max-width:1120px}
.topbar{height:72px;border-bottom:1px solid #eaded5}
.brand{gap:9px;align-items:center}.brand-logo{display:block;width:183px;height:59px;object-fit:contain;object-position:left center}.brand-subtitle{font-size:10px;letter-spacing:2px;color:#845d55;font-weight:850;border-left:1px solid #dcc9bb;padding-left:11px}
.header-tools .icon-btn,.icon-btn{border:1px solid #e6d9d0;color:var(--burgundy);background:#fffaf7;box-shadow:0 3px 12px #683d3110}
.welcome{margin:10px 0 10px}.welcome h1{font-size:24px;color:#302622}.eyebrow{color:var(--burgundy);font-size:10px}.muted{color:#8a7b73}
.live-dot{background:#e4f4e9;color:#19764e;border-color:#cae8d2}
.app-intro{min-height:0;padding:13px 20px;margin-bottom:13px;border-radius:17px;background:linear-gradient(105deg,#58202b,#873341 72%,#a75b5b);box-shadow:0 8px 18px #6b29342b}
.app-intro .intro-kicker{font-size:9px;margin-bottom:4px;color:#f6d9b8}.app-intro h2{font-size:19px;margin-bottom:2px}.app-intro p:last-of-type{font-size:11px;color:#f6e3db}.intro-art{font-size:46px;right:24px;top:0}.intro-glow{background:radial-gradient(circle,#e9b1a944,transparent 70%)}
.tabs{gap:10px;margin-bottom:15px}.tabs button{min-height:63px;border:1px solid #e8dbd2;border-radius:16px;background:#fffdfb;color:#51343a;box-shadow:0 5px 13px #5333260d;font-size:13px}
.tabs button.active{background:linear-gradient(115deg,#66202b,#963c48);color:white;border-color:transparent;box-shadow:0 8px 18px #752c3c3b}
.tabs button[data-view=create]:not(.active){background:#fff4ed;border-color:#f0d7c5;color:#85323c}.tabs button[data-view=create].active{background:linear-gradient(115deg,#722632,#a44a53)}
.tabs button .nav-symbol{width:38px;height:38px;border-radius:12px;background:#f8ebe5;color:#84333d;font-size:24px}.tabs button.active .nav-symbol{background:#ffffff24;color:#fff}.tabs button[data-view=create]:not(.active) .nav-symbol{background:#fbe4d9;color:#963d48}
.section-title{margin-bottom:9px}.section-title h2{font-size:23px;color:#342827}.section-title .muted{color:#887a72}
.stats{gap:9px}.stat{padding:13px 17px;border-color:#eaded5;border-radius:16px;background:#fffdfb;box-shadow:0 4px 13px #6c44300d}.stat:nth-child(2){background:#fff8f0}.stat:nth-child(3){background:#f4f7f0}.stat strong{font-size:27px;color:#742c36}.stat span{color:#806f68}
.filters{margin-top:10px;gap:7px}.filters button{border-color:#e8d9d0;background:#fffdfb;color:#6d5351;border-radius:11px;padding:9px 15px}.filters button.selected{background:#7d2b35;border-color:#7d2b35;box-shadow:0 4px 10px #6d263027}
.ticket{border:1px solid #e9ddd4;border-radius:17px;padding:16px 18px;box-shadow:0 6px 17px #654b350e;background:#fffdfb}.ticket:before{background:#b99b77}.ticket-room,.ticket-issue{color:#3c2929}.ticket-desc{color:#645653}.ticket-meta,.ticket-no{color:#887c75}.ticket:has(.status.OPEN):before{background:#e4a343}.ticket:has(.status.IN_PROGRESS):before{background:#5582be}.ticket:has(.status.COMPLETED):before{background:#43a37b}.ticket:has(.status.CLOSED):before{background:#aaa19a}
.btn{border-color:#e8dbd2;background:#fff9f5;color:#763540;border-radius:11px}.btn.main,.primary{background:linear-gradient(110deg,#702631,#993d49);color:#fff;box-shadow:0 7px 16px #742b3930}.btn.warn{background:#fff1eb;color:#a64c42}
.panel,.auth-card{background:#fffdfb;border-color:#eaded5;box-shadow:0 8px 20px #62422e10}.segmented span{background:#fffaf6;border-color:#eaded5;color:#745f58}.segmented input:checked+span{border-color:#a54e5b;background:#fbecef;color:#762a36}
label{color:#5d4946}input:not([type=radio]):not([type=checkbox]),select,textarea{background:#fffdfa;border-color:#e5d9d0;color:#362b29}input:focus,select:focus,textarea:focus{border-color:#a24856;box-shadow:0 0 0 4px #a248561a}
.notice:not(:empty){background:#f6ece9;color:#792d37;border-color:#ead2d0}.history{background:#faf5f0}.dialog-icon,.hero-icon{background:#f9e7e7;color:#8a3441}dialog{color:#392d2c}dialog::backdrop{background:#30191cb3}
@media(max-width:760px){.topbar{height:66px}.brand-logo{width:144px;height:51px}.brand-subtitle{font-size:8px;letter-spacing:1px;padding-left:7px}.app-intro{padding:11px 14px;min-height:0}.app-intro h2{font-size:17px}.intro-art{display:none}.tabs{gap:6px;margin-bottom:12px}.tabs button{min-height:65px;padding:7px 4px;font-size:11px}.tabs button .nav-symbol{width:30px;height:30px;font-size:20px}.welcome{margin:8px 0}.welcome h1{font-size:21px}.stat{padding:11px}.stat strong{font-size:24px}}
@media(max-width:390px){.brand-logo{width:125px}.brand-subtitle{font-size:7px}.app-intro .intro-kicker{font-size:8px}}


/* v0.3.3 — visual cleanup: no decorative pseudo-buttons or banner stars. */
.app-intro{
  background:linear-gradient(110deg,#57202b 0%,#782b38 55%,#98414b 100%);
}
.intro-art,.intro-glow,.dialog-icon,.hero-icon{display:none!important}

/* Action modal — clean title, real close control, compact form. */
#actionDialog{
  width:min(92vw,520px);
  max-height:88vh;
  max-height:88dvh;
  overflow-y:auto;
  padding:clamp(19px,3vw,28px);
  border:1px solid #edddd3;
  border-radius:22px;
  background:#fffefa;
  box-shadow:0 20px 55px #321c2270;
}
#actionDialog #actionForm{display:grid;gap:15px}
#actionDialog .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#actionDialog #actionTitle{
  margin:0;
  color:#452930;
  font-size:clamp(22px,4vw,27px);
  font-weight:800;
  line-height:1.25;
}
#actionDialog .dialog-close{
  flex:0 0 42px;
  width:42px;
  min-width:42px;
  height:42px;
  border:1px solid #e6d9d0;
  border-radius:12px;
  background:#fffaf7;
  color:#7b303b;
  font-size:24px;
  line-height:1;
  box-shadow:none;
}
#actionDialog .dialog-close:hover{background:#fbecef;border-color:#c9a8a9}
#actionDialog .dialog-close:focus-visible{outline:3px solid #b97580;outline-offset:3px}
#actionDialog #actionTicket{margin:-7px 0 4px;font-size:12px;overflow-wrap:anywhere}
#actionDialog label{font-size:13px;gap:7px;color:#4d3536}
#actionDialog select,#actionDialog textarea{border-radius:13px;background:#fffdfb}
#actionDialog select{min-height:49px}
#actionDialog textarea{min-height:92px;resize:vertical}
#actionDialog #actionSubmit{min-height:52px;width:100%;margin-top:2px;border-radius:14px}
@media(max-width:600px){
  #actionDialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:18px;border-radius:18px}
  #actionDialog #actionTitle{font-size:22px}
  #actionDialog #actionForm{gap:12px}
  #actionDialog #actionSubmit{min-height:51px}
}

/* v0.4 — visible, actionable notification center and management metrics */
.header-tools{align-items:center}
.bell-btn{position:relative;font-size:20px;min-width:45px}
.bell-count{position:absolute;right:-5px;top:-7px;min-width:21px;height:21px;padding:2px 5px;border-radius:20px;background:#ba2738;color:white;font-weight:900;font-size:11px;line-height:17px;border:2px solid #fff;box-sizing:content-box}
.tabs:has(#dashboardTab:not([hidden])){grid-template-columns:repeat(5,minmax(0,1fr))}
.tabs button[data-view=dashboard]:not(.active){background:#f7f1e9;border-color:#e9dacc;color:#734a3e}
.tabs button[data-view=dashboard]:not(.active) .nav-symbol{background:#efe2d4;color:#815748}
.tabs button .nav-symbol{flex-shrink:0}
.dashboard-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px;margin-bottom:14px}
.dashboard-toolbar label{min-width:210px}
.dashboard-toolbar select{min-height:45px}
.dashboard-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:16px}
.dashboard-kpi{display:flex;flex-direction:column;gap:4px;padding:17px;border:1px solid #e8ddd4;background:white;border-radius:17px;box-shadow:0 5px 13px #4e302412}
.dashboard-kpi strong{font-size:clamp(25px,4vw,34px);letter-spacing:-.5px;color:#722c39;line-height:1.1}
.dashboard-kpi span{font-size:12px;font-weight:750;color:#745f5b}
.dashboard-kpi.orange{background:#fff7eb}.dashboard-kpi.orange strong{color:#a45b20}
.dashboard-kpi.blue{background:#f1f6ff}.dashboard-kpi.blue strong{color:#35659c}
.dashboard-kpi.green{background:#f0faf3}.dashboard-kpi.green strong{color:#287454}
.dashboard-kpi.red{background:#fff1ef}.dashboard-kpi.red strong{color:#b03b3b}
.dashboard-kpi.wine{background:#fff2f3}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.dashboard-panel h3{color:#3d2827;font-size:17px}
.dashboard-departments{display:grid;gap:16px}
.dept-metric{display:grid;gap:7px}.dept-metric-title{display:flex;justify-content:space-between;gap:10px;font-size:13px;flex-wrap:wrap}
.dept-metric-title span{font-size:12px;color:#8c7a70}
.dept-meter{height:9px;background:#f0e6df;border-radius:18px;overflow:hidden}
.dept-bar{height:100%;background:linear-gradient(90deg,#78323d,#bc7775);border-radius:18px;max-width:100%}
.dashboard-ticket{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #efe5e0;padding:12px 0}
.dashboard-ticket strong{font-size:13px;overflow-wrap:anywhere;color:#492e31}
.dashboard-ticket span{font-size:12px;color:#826e6a;line-height:1.5}
.notify-dialog{width:min(92vw,550px);max-height:min(88dvh,850px);overflow:auto;background:#fffefa;color:#3c2c2a;padding:23px;border:1px solid #e9dad0;border-radius:22px}
.notify-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.notify-head h2{margin:0;font-size:22px}.notify-head .muted{margin-top:4px}
.notify-dialog .dialog-close{flex-shrink:0;width:42px;height:42px;font-size:25px;border-radius:12px}
.notify-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 8px}
.notify-toolbar .btn{padding:9px 12px;font-size:11px}
.notify-list{display:grid;gap:8px}
.notify-item{position:relative;display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:13px 14px;border:1px solid #eadbd3;background:#fff7f3;border-radius:13px}
.notify-item.read{background:#fffdfa;border-color:#f0e7e1;opacity:.88}
.notify-item strong{font-size:13px;color:#522b33}
.notify-item p{grid-column:1;margin:0;overflow-wrap:anywhere}
.notify-item small{grid-column:1;font-size:11px;color:#928077}
.notify-item .notify-view{grid-column:2;grid-row:1 / span 3;align-self:center}
.notify-headline{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:22px 0 10px;flex-wrap:wrap}
.notify-headline h3{font-size:17px;margin:0}
.notify-threshold{font-size:11px;color:#92674d;background:#fcf0e4;border-radius:99px;padding:7px 9px}
.notify-foot{font-size:11px;margin-top:16px}
.ticket-highlight{outline:3px solid #be8a5b;outline-offset:4px}
@media(max-width:850px){
 .tabs:has(#dashboardTab:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
 .tabs:has(#dashboardTab:not([hidden])) button{min-height:62px}
 .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
 .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .dashboard-kpi{padding:13px}
 .dashboard-kpi span{font-size:11px}
 .dashboard-toolbar{align-items:start}
 .dashboard-toolbar label{width:100%}
 .notify-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 24px);padding:15px;border-radius:17px}
 .notify-item{grid-template-columns:1fr}.notify-item .notify-view{grid-column:1;grid-row:auto;justify-self:start;margin-top:5px}
 .topbar .header-tools{gap:4px}.topbar .icon-btn{min-width:38px;height:40px}
}

.bell-btn svg{display:block;width:20px;height:20px;margin:auto;color:#7d2b35}

/* v0.5 Readable & Calm — final overrides. Limit colors, improve mobile touch and typography. */
:root{--rw-bg:#f8f7f4;--rw-ink:#29282a;--rw-muted:#625b5b;--rw-wine:#752c38;--rw-line:#e7dfd8}
body{background:var(--rw-bg);color:var(--rw-ink);font-size:15px;line-height:1.5}
.app-shell{max-width:1100px}
.topbar{border-bottom-color:var(--rw-line)}
.brand-fallback{color:#60232e;font-family:Georgia,serif;font-size:20px;letter-spacing:2px}
.app-intro{background:#71303b;border-radius:15px;padding:12px 17px;box-shadow:none}
.app-intro h2{font-size:19px;line-height:1.45;font-weight:750;letter-spacing:0}
.app-intro .intro-kicker{font-size:10px}
.welcome h1{font-size:clamp(21px,3vw,25px)}
.muted{color:#6e6360;font-size:13px;line-height:1.55}
.live-dot{background:#f0e9e3;color:#674b46;border:1px solid #e6d7cf;font-size:12px}
.tabs{box-shadow:none;background:transparent;border:0;padding:0;gap:8px}
.tabs button{background:#fffdfb;border:1px solid var(--rw-line);box-shadow:none;min-height:58px;border-radius:12px;font-size:13px;letter-spacing:0}
.tabs button.active{background:var(--rw-wine);box-shadow:none}
.tabs button .nav-symbol{width:26px;height:26px;font-size:18px;border-radius:7px}
.tabs button.active .nav-symbol{background:transparent}
.section-title h2{font-size:23px}
.stats{gap:10px;margin-bottom:14px}
.stat,.stat:nth-child(2),.stat:nth-child(3){background:#fffefc;box-shadow:none;border:1px solid var(--rw-line);padding:15px;border-radius:14px}
.stat strong{font-size:29px;color:#6c2a35}
.stat span{font-size:13px;color:#5f5654}
.filters{gap:8px;margin-top:1px;padding-bottom:12px}
.filters button{font-size:13px;min-height:44px;padding:10px 14px}
.queue-search{margin-bottom:16px}
.queue-search label{margin-bottom:7px;font-size:13px}
.queue-search input{background:#fffefc!important}
.queue-search .muted{margin-top:4px;font-size:11px}
.ticket{border:1px solid var(--rw-line);border-radius:14px;padding:18px;box-shadow:none;background:#fffefd}
.ticket:hover{box-shadow:0 3px 13px #3a22250c}
.ticket-room{font-size:20px;color:#302b2b}
.ticket-issue{font-size:16px}
.ticket-desc{font-size:14px;color:#4b4644}
.ticket-meta{font-size:12px;color:#645c59}
.status{font-size:12px;letter-spacing:0;padding:7px 11px}
.ticket-actions{gap:8px}
.btn,.btn.main,.btn.warn,.primary{border-radius:11px;box-shadow:none;min-height:44px;font-size:13px}
.btn.main,.primary{background:#752c38;color:#fff}
.btn.warn{border:1px solid #e7c9c4;background:#fff5f1;color:#973c3f}
.btn:focus-visible,.primary:focus-visible,.icon-btn:focus-visible,.tabs button:focus-visible{outline:3px solid #be7885;outline-offset:2px}
.btn:hover,.primary:hover{transform:none;filter:brightness(.96)}
.panel,.auth-card{box-shadow:none;border-color:var(--rw-line);border-radius:16px}
label{font-size:14px;color:#463b3b}
input:not([type=radio]):not([type=checkbox]),select,textarea{font-size:16px;min-height:49px;border-color:#d9cec8}
.ticket-highlight{outline:3px solid #dca55d;outline-offset:1px}
.priority-tag{display:inline-flex;align-self:flex-start;border-radius:7px;padding:4px 8px;margin-top:3px;font-size:11px;font-weight:800;color:#8c2828;background:#fce7e4}
.priority-tag.HIGH{background:#fff1db;color:#865400}
.push-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e7d9ce;border-radius:13px;background:#fffefa;padding:13px 16px;margin-bottom:18px}
.push-settings-copy{min-width:0;flex:1}
.push-settings-copy strong{font-size:14px;color:#553036}
.push-settings-copy p{margin:4px 0 0;font-size:12px}
.push-controls{display:flex;gap:7px;flex-shrink:0}
.push-controls button{white-space:nowrap}
.notify-item{background:#fffbf8}
.notify-item strong{font-size:14px}
.dashboard-kpi{box-shadow:none;border-radius:13px}
.dashboard-kpi span{font-size:13px}
.empty{font-size:14px;color:#5c5451}
@media(max-width:760px){
 .app-shell{padding:0 13px 22px}
 .topbar{height:68px}
 .tabs{display:flex;overflow-x:auto;scrollbar-width:thin;gap:7px;position:sticky;top:0;background:#f8f7f4;padding:6px 0;z-index:5;margin-bottom:15px}
 .tabs button{flex:1 0 69px;min-width:69px;min-height:58px;padding:7px 6px;gap:3px;font-size:11px}
 .tabs button .nav-symbol{width:24px;height:24px;font-size:17px}
 .app-intro{padding:10px 14px}
 .app-intro h2{font-size:17px}
 .stat{padding:13px 10px!important}
 .stat strong{font-size:25px}
 .stat span{font-size:12px}
 .section-title h2{font-size:21px}
 .ticket{padding:15px}
 .ticket-room{font-size:18px}
 .ticket-actions .btn{flex:1 0 auto;min-width:92px;min-height:46px}
 .push-settings{flex-wrap:wrap;gap:9px;padding:12px}
 .push-controls{width:100%}
 .push-controls .btn{width:100%}
 .brand-logo{max-width:144px}
}
@media(max-width:380px){.topbar .brand-subtitle{display:none}.stats{gap:6px}.stat strong{font-size:22px}.ticket-actions .btn{min-width:85px}}
/* v0.5: edit department inline instead of stacked browser prompt/confirm dialogs. */
.dept-edit{display:grid;gap:12px;flex:1;border:1px solid var(--rw-line);background:#fdfaf7;border-radius:12px;padding:14px}
.dept-edit .checkline{display:flex;align-items:center;gap:9px;font-weight:600}
.dept-edit .checkline input{min-height:20px;min-width:20px}
.dept-edit-actions{display:flex;gap:8px;flex-wrap:wrap}
.dept-row:has(.dept-edit){align-items:stretch}


/* v0.5.1 Presentation refinement — UI only. No workflow/server changes. */
:root{--rw-bg:#f7f6f3;--rw-ink:#282728;--rw-wine:#702a37;--rw-line:#e9e4df}
html{scroll-padding-top:95px}
body{background:var(--rw-bg)!important;color:var(--rw-ink)}
.app-shell{max-width:1260px;padding:0 24px 25px}
.topbar{height:63px;border-bottom:1px solid #e8e0da;margin-bottom:5px}
.brand-logo{width:145px;height:48px}
.brand-fallback{font-size:21px;letter-spacing:1.8px}
.brand-subtitle{font-size:9px}
.welcome{margin:9px 0 12px;align-items:center}
.welcome h1{font-size:clamp(19px,2.4vw,23px);margin:0 0 2px}
.welcome .eyebrow{display:none}
.welcome .muted{margin:0;font-size:12px}
.live-dot{background:#f1f1ed;color:#695b56;border:1px solid #e6e3dd;font-size:11px;padding:5px 10px}
.app-intro{display:none!important}
.tabs,.tabs:has(#adminTab:not([hidden])),.tabs:has(#dashboardTab:not([hidden])){display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;padding:0}
.tabs button{flex:1 1 0;min-width:100px;max-width:240px;justify-content:center;min-height:52px!important;padding:8px 10px;border-radius:12px;font-size:13px!important;background:#fffdfa;box-shadow:none!important}
.tabs button .nav-symbol{width:24px;height:24px;background:transparent;color:inherit;font-size:19px}
.tabs button.active{background:#702a37;border-color:#702a37;color:#fff}
.tabs button[data-view=create]:not(.active){background:#fffdfa;border-color:#e9e4df;color:#6a4b4c}
.tabs button[data-view=create]:not(.active) .nav-symbol{background:transparent;color:inherit}
.section-title{margin-bottom:10px}
.section-title h2{font-size:21px}
.section-title .muted{margin:1px 0;font-size:12px}
.stats{gap:10px;margin-bottom:13px}
.stat,.stat:nth-child(2),.stat:nth-child(3){padding:13px 16px!important;background:#fffefb;border:1px solid #e8e3dd;border-radius:12px}
.stat strong{font-size:27px;line-height:1.2;letter-spacing:-.6px}
.stat span{font-size:12px}
.queue-tools{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,400px);align-items:center;gap:12px;margin-bottom:14px}
.queue-tools .filters{margin:0;padding:0;align-self:center;flex-wrap:wrap}
.queue-tools .filters button{padding:9px 13px;min-height:40px;font-size:12px}
.queue-tools .queue-search{margin:0;position:relative}
.queue-tools .queue-search label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.queue-tools .queue-search p{display:none}
.queue-tools .queue-search input{min-height:43px;padding:10px 13px;background:#fffefb!important;border:1px solid #ded9d2;font-size:13px}
.ticket-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ticket{padding:16px 17px;border-radius:14px;border:1px solid #e5dfda;background:#fffefb;box-shadow:none;min-width:0;display:flex;flex-direction:column}
.ticket:before{width:4px}
.ticket-head{align-items:flex-start}
.ticket-room{font-size:19px}
.ticket-no{font-size:11px;margin-top:1px}
.ticket-issue{margin:10px 0 4px;font-size:15px}
.ticket-desc{font-size:13px;margin-bottom:11px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ticket-meta{gap:6px 10px;font-size:11px}
.ticket-meta span{word-break:break-word}
.ticket-actions{margin-top:auto;padding-top:11px;gap:7px;border-top:1px solid #f0ebe5}
.ticket-actions .btn{min-height:40px;padding:8px 12px;font-size:12px}
.ticket-actions .btn.main{background:#702a37}
.ticket-actions .btn.warn{margin-left:auto;background:#fff8f6;color:#93444a}
.status{padding:6px 9px;font-size:11px}
.panel,.auth-card{border-radius:14px;box-shadow:none}
.panel h3{font-size:17px}
.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-kpi{padding:15px;border:1px solid #e5dfda}
.dashboard-kpi strong{font-size:30px}
.dashboard-kpi span{font-size:12px}
.dashboard-panel h3{font-size:16px}
.push-settings{margin:7px 0 18px;padding:11px;border:1px solid #e5dfda;background:#fffdf9;border-radius:12px}
.notify-dialog .push-settings{display:flex}
.notify-dialog{border-radius:16px}
#notice:not(:empty){margin:8px 0;padding:9px 12px;font-size:12px}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a86b77;outline-offset:2px}
@media(max-width:800px){
 .app-shell{padding:0 14px 24px}
 .ticket-list{grid-template-columns:1fr}
 .queue-tools{grid-template-columns:1fr;gap:9px}
 .queue-tools .filters{justify-content:flex-start}
 .tabs,.tabs:has(#adminTab:not([hidden])),.tabs:has(#dashboardTab:not([hidden])){flex-wrap:nowrap;overflow-x:auto;gap:6px;position:sticky;top:0;padding:5px 0 7px;background:#f7f6f3;z-index:5;margin-bottom:12px;scrollbar-width:thin}
 .tabs button{flex:1 0 72px;min-width:72px;min-height:55px!important;padding:7px 4px;flex-direction:column;gap:2px;font-size:10.5px!important}
 .tabs button .nav-symbol{font-size:17px;width:20px;height:20px}
 .topbar{height:58px}
 .brand-logo{width:128px;height:42px}
 .welcome{margin:7px 0 9px}
 .welcome h1{font-size:19px}
 .live-dot{font-size:10px;padding:5px 7px}
 .stats{gap:7px;margin-bottom:10px}
 .stat,.stat:nth-child(2),.stat:nth-child(3){padding:9px 10px!important}
 .stat strong{font-size:23px}
 .stat span{font-size:11px}
 .section-title{margin-bottom:8px}
 .section-title h2{font-size:20px}
 .queue-tools .filters{flex-wrap:nowrap}
 .queue-tools .filters button{font-size:11.5px;padding:8px 10px;white-space:nowrap}
 .ticket{padding:14px}
 .ticket-room{font-size:18px}
 .ticket-issue{margin:8px 0 3px}
 .ticket-actions{margin-top:12px}
 .ticket-actions .btn{flex:1 1 auto;min-width:80px;min-height:44px}
}
@media(min-width:801px) and (max-width:1000px){.ticket-list{grid-template-columns:1fr 1fr}.queue-tools{grid-template-columns:1fr 340px}}
@media(max-width:400px){.live-dot{display:none}.brand-subtitle{font-size:8px}.tabs button{min-width:67px;flex-basis:67px}.ticket-meta{font-size:11px}}
@media(prefers-reduced-motion:reduce){.ticket,.btn{transition:none!important}}

/* v0.6 - Ticket discussion, photo evidence, and issue catalog (comfortable on tablet). */
.ticket-detail-dialog{width:min(900px,calc(100vw - 28px));max-height:92dvh;overflow:auto;border-radius:20px;padding:clamp(18px,3vw,28px);background:#fffdfa;border:1px solid #ebdfd6;color:#352a2a;box-shadow:0 22px 75px #281a2459}
.ticket-detail-dialog::backdrop{background:#27202db0}
.detail-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;position:sticky;top:-30px;z-index:2;background:#fffdfa;padding:8px 0 12px;border-bottom:1px solid #e9ded6}
.detail-top h2{margin:2px 0 4px;font-size:clamp(22px,3vw,27px);color:#542a37}
.detail-top .eyebrow{margin:0;color:#806660;font-size:11px;font-weight:700}
.detail-top .muted{margin:0;font-size:12px;overflow-wrap:anywhere}
.detail-problem{padding:12px 14px;border-radius:12px;background:#faf5f0;color:#554044;line-height:1.65;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-section{padding:16px 0;border-top:1px solid #ede4dc}
.detail-section h3{margin:0 0 5px;color:#63303d;font-size:18px}
.detail-section>.muted{margin:0 0 12px}
.chat-thread{display:grid;gap:10px;max-height:335px;overflow:auto;padding:10px;background:#f7f5f1;border:1px solid #eee2dc;border-radius:13px}
.chat-message{max-width:94%;padding:10px 12px;background:white;border:1px solid #e8ded6;border-radius:13px}
.chat-message.mine{background:#f8e9e8;border-color:#e8cecf;justify-self:end}
.chat-message-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 16px;font-size:12px}
.chat-message-head time{color:#826f6a;font-size:11px}
.chat-message p{margin:7px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.chat-compose{display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-top:12px}
.chat-compose label{margin:0}.chat-compose textarea{min-height:73px;font-size:15px;resize:vertical}
.chat-compose button{min-height:48px;white-space:nowrap}
.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;min-height:35px}
.ticket-photo{min-width:0;display:flex;flex-direction:column;gap:5px;text-decoration:none;color:#593744;background:white;border:1px solid #eadfd6;border-radius:12px;padding:8px;overflow:hidden}
.ticket-photo img{width:100%;height:126px;object-fit:cover;border-radius:7px;background:#ede6df}
.ticket-photo strong{font-size:13px}.ticket-photo small{color:#806d6c;font-size:10px;overflow-wrap:anywhere}
.photo-form{display:grid;grid-template-columns:minmax(130px,190px) 1fr auto;gap:10px;align-items:end;margin-top:14px}
.photo-form label{margin:0}.photo-form input[type=file]{width:100%;font-size:12px;max-width:350px}
.photo-form button{min-height:48px}
.detail-history{display:grid;gap:8px}.history-entry{padding:11px 13px;border-left:3px solid #b78b8f;background:#faf7f3;border-radius:8px;display:grid;gap:4px}
.history-entry strong{font-size:13px}.history-entry small{font-size:11px;color:#857676}.history-entry p{white-space:pre-wrap;margin:2px 0 0;font-size:13px;overflow-wrap:anywhere}
.issue-type-list{display:grid;gap:9px;margin:12px 0 18px}.issue-type-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;padding:12px;border:1px solid #e9ded7;border-radius:12px;background:#fffdfb}
.issue-type-row>div{display:grid;gap:5px}.issue-type-row strong{font-size:14px}.issue-type-row small{font-size:11px;color:#87746f}.issue-type-row form{width:100%;display:grid;gap:11px}.issue-edit-buttons{display:flex;gap:8px}
.upload-create input[type=file]{margin-top:7px;max-width:100%;font-size:13px}
@media(max-width:680px){.ticket-detail-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:15px;border-radius:14px}.detail-top{top:-15px}.chat-compose,.photo-form{grid-template-columns:1fr}.chat-compose button,.photo-form button{width:100%}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-photo img{height:115px}.chat-message{max-width:100%}}

/* v0.7 — readable priorities and safe staff administration */
.priority-hint{display:block;font-size:12px;line-height:1.55;color:#675c59;margin-top:5px}
.staff-user-list{display:grid;gap:11px;margin-top:16px}
.staff-user-card{display:grid;gap:10px;padding:14px;border:1px solid #e7dcd4;border-radius:14px;background:#fffdfb}
.staff-user-card .staff-user-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.staff-user-card .staff-user-controls{display:flex;gap:9px;flex-wrap:wrap;align-items:end}
.staff-user-card .staff-user-controls label{flex:1 1 170px;font-size:12px}
.staff-user-card .staff-user-controls button{min-height:43px}
.staff-user-card small{font-size:12px;color:#74645e}
@media(max-width:640px){.staff-user-card .staff-user-controls label,.staff-user-card .staff-user-controls button{width:100%;flex:1 1 100%}}
.priority-tag.LOW{background:#f2f0ed;color:#706964}
.user-reset-form{display:flex;flex-wrap:wrap;gap:9px;align-items:end;padding-top:8px;border-top:1px solid #e9ddd5}
.user-reset-form label{flex:1 1 220px}
.user-reset-form input{min-height:44px}
.user-reset-form button{min-height:44px}
#priorityDialog #priorityForm{display:grid;gap:15px}
#priorityDialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#priorityDialog .dialog-heading h2{margin:0}

/* v0.7.1 — Archive view for departments that transferred a ticket out. */
.past-department-section{margin-top:27px;border-top:1px solid #e8ded5;padding-top:18px}
.past-department-section h3{font-size:18px;margin:0 0 4px;color:#442e30}
.past-department-section>.muted{font-size:13px;margin:0 0 13px}
.past-department-ticket{background:#faf8f5;border-style:dashed;box-shadow:none}
.past-department-ticket .history{margin-top:10px}
.notify-item .muted{font-weight:600;color:#553e40}
.notify-item small{font-size:12px;line-height:1.45;overflow-wrap:anywhere}

/* v0.7.2 cross-department work history */
.work-stage-list{display:grid;gap:10px}.work-stage{border:1px solid #eaded5;background:#fffcf8;border-radius:12px;padding:13px}.work-stage-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}.work-stage p{margin:7px 0;line-height:1.5}.work-stage small{display:block;margin-top:7px}.ticket-current-task{padding:9px 12px;border-left:3px solid #8b4750;background:#fcf6f0;border-radius:6px;font-size:13px;line-height:1.5}.history-outcome{font-weight:700;color:#6c3640}.history-dept{font-size:12px;color:#725e58}#transferResultRow select,#transferNextTaskRow input{width:100%}#transferWorkLabel textarea{width:100%}

/* v0.7.3 staff-first UX: keep advanced tracking behind simple actions. */
#actionDialog .transfer-hint{font-size:13px;line-height:1.55;color:#654d4b;background:#f8f2ed;border-left:3px solid #944f5c;border-radius:8px;padding:10px 12px;margin:0}
#actionDialog .transfer-extra{border:1px solid #e6dcd6;background:#fffdfa;border-radius:11px;padding:10px 13px}
#actionDialog .transfer-extra summary{cursor:pointer;font-weight:750;color:#6e3e45;font-size:14px;padding:4px 0}
#actionDialog .transfer-extra label{padding-top:12px}
#actionDialog #transferResultRow select,#actionDialog #actionDepartmentRow select{min-height:52px}
#actionDialog #transferNextTaskRow input{font-size:16px}
#actionDialog .primary{min-height:52px}
.ticket-desc,.ticket-current-task{font-size:14px;line-height:1.6}
.ticket-meta{font-size:12px;line-height:1.5}
.ticket-actions .btn{min-height:44px}
.past-department-section .ticket{border-style:solid;opacity:1}
.past-department-section .ticket .btn{font-size:13px}
@media (max-width:760px){
 #actionDialog{padding:18px;max-height:calc(100dvh - 22px);overflow-y:auto}
 #actionDialog #actionForm{gap:11px}
 .section-title .muted{font-size:13px}
 .ticket-actions .btn{font-size:13px}
}

/* v0.7.4: clear but unobtrusive guidance for unaccepted transfer. */
.transfer-accept-hint:not([hidden]) {border:1px solid #e8d7c3;border-radius:12px;
 background:#fff7e9;color:#754c24;padding:10px 12px;font-size:13px;line-height:1.55;}
