:root{--navy:#17243a;--navy-2:#202f49;--ink:#1b2739;--muted:#738096;--muted-light:#aab4c3;--line:#e7ebf1;--bg:#f4f6f9;--surface:#fff;--blue:#365d9c;--blue-soft:#edf2f8;--red:#bd4c4c;--red-bg:#fff7f6;--red-line:#efd0cc;--green:#317650;--green-bg:#f5fbf7;--green-line:#cce5d5;--shadow:0 12px 34px rgba(20,35,56,.055);font-family:'DM Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}
html{min-width:320px;background:var(--bg)}
body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.5 'DM Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
a{color:inherit}
h1,h2,h3,.brand-mark{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.035em}
h1{font-size:clamp(25px,3vw,32px);line-height:1.2;margin:0 0 8px;font-weight:750}
h2{font-size:20px;margin:0 0 8px;font-weight:700}
p{margin:0 0 12px}
.muted{color:var(--muted)}
.small{font-size:13px}
.line-icon{width:20px;height:20px;display:block;flex:none}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:252px;padding:25px 16px 18px;background:var(--navy);color:#eef3fa;display:flex;flex-direction:column;z-index:10}
.side-brand,.public-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf2f8;color:var(--navy);font-size:14px;font-weight:800;letter-spacing:-.04em}
.side-brand b,.public-brand b{display:block;font:700 17px/1.2 Manrope,sans-serif;color:#fff}
.side-brand small,.public-brand small{display:block;margin-top:4px;color:#aeb9c9;font-size:11px;letter-spacing:.015em}
.side-caption{margin:48px 12px 12px;color:#8391a5;font-size:10px;font-weight:700;letter-spacing:.13em}
.side-nav{display:grid;gap:5px}
.side-link{min-height:46px;display:flex;align-items:center;gap:13px;padding:0 13px;border:1px solid transparent;border-radius:9px;color:#c3ccda;text-decoration:none;font-size:14px;font-weight:600;transition:background .15s,color .15s}
.side-link:hover{background:#ffffff0d;color:#fff}
.side-link.active{background:#ffffff14;border-color:#ffffff0d;color:#fff}
.side-link.active .line-icon{color:#d6e2f1}
.side-footer{display:flex;align-items:center;gap:11px;margin-top:auto;padding:14px 10px;border-top:1px solid #ffffff17}
.side-hotel-icon{width:37px;height:37px;display:grid;place-items:center;border:1px solid #ffffff24;border-radius:10px;color:#e0e7f0}
.side-hotel-icon .line-icon{width:19px;height:19px}
.side-footer small{display:block;color:#9aa8ba;font-size:9px;font-weight:700;letter-spacing:.1em}
.side-footer b{display:block;max-width:155px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:white}
.app-main{min-height:100vh;margin-left:252px}
.app-topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 clamp(20px,3vw,42px);background:#fff;border-bottom:1px solid var(--line)}
.app-topbar>div{display:grid;gap:3px}
.topbar-kicker{color:#8b96a6;font-size:9px;font-weight:750;letter-spacing:.12em}
.app-topbar strong{font-size:13px;font-weight:650}
.logout-link{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;color:#5d6878;font-size:12px;font-weight:650;text-decoration:none}
.logout-link:hover{background:#f7f8fa;color:var(--navy)}
.logout-link .line-icon{width:17px;height:17px}
.content{max-width:1500px;margin:0 auto;padding:32px clamp(20px,3vw,42px) 48px}
.content>h1{margin-bottom:8px}
.content>.muted{margin-bottom:22px}
.card{margin:14px 0;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.grid-full{grid-column:1/-1}
.metric{margin-top:8px;font:750 30px/1.1 Manrope,sans-serif;letter-spacing:-.04em;color:var(--ink)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.section-heading h2{margin-bottom:4px}
.section-heading p{margin:0}
.section-count{white-space:nowrap;padding:7px 11px;border:1px solid var(--line);border-radius:8px;color:#5e6c7e;font-size:12px;font-weight:650}
.dept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dept{position:relative;min-height:206px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;border:1px solid var(--line);border-radius:13px;background:#fff;color:inherit;text-decoration:none;text-align:center;transition:border-color .15s,box-shadow .15s,transform .15s}
.dept:hover{border-color:#bac7d7;box-shadow:0 10px 24px #17243a0e;transform:translateY(-1px)}
.dept-icon,.department-glyph{width:46px;height:46px;display:grid;place-items:center;margin-bottom:12px;border:1px solid #e5e9ef;border-radius:12px;background:#f8f9fb;color:#465870}
.dept-icon img{width:28px;height:28px;object-fit:contain}
.department-glyph .line-icon{width:23px;height:23px}
.dept h2{margin:0 0 5px;font-size:17px}
.dept-en,.dept-count{font-size:13px;color:var(--muted)}
.dept-count{margin-top:7px}
.dept-actions{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.icon-button{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:white;color:#66758a;cursor:pointer;text-decoration:none}
.icon-button:hover{background:var(--blue-soft);color:var(--navy)}
.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dept-edit{position:relative}
.dept-edit summary{list-style:none}
.dept-edit summary::-webkit-details-marker{display:none}
.dept-edit-form{position:absolute;z-index:20;top:43px;left:50%;transform:translateX(-50%);width:min(330px,calc(100vw - 36px));padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 44px #17243a24;text-align:left}
.dept-edit-form label{margin:9px 0 4px;font-size:12px}
.dept-edit-form input{padding:9px}
.dept-edit-form button{width:100%;margin-top:12px}
.dept-add{border-style:dashed;background:#fafbfd}
.add-icon{width:40px;height:40px;display:grid;place-items:center;margin-bottom:12px;border:1px solid #d9dfe7;border-radius:11px;color:#637187;font-size:24px;font-weight:400}
.visibility-form{display:flex;align-items:center;gap:8px;margin-top:10px}
.visibility-button{padding:5px 8px;background:transparent;color:#718096;font-size:11px}
.status-label{font-size:10px;font-weight:700}
.status-label.is-live{color:var(--green)}
.status-label.is-hidden{color:#966c31}
label{display:block;margin:13px 0 6px;color:#344154;font-size:13px;font-weight:650}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce2e9;border-radius:8px;background:#fff;color:var(--ink);font:inherit}
textarea{min-height:82px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid #365d9c1c;border-color:#7e96b6}
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 15px;border:1px solid var(--navy);border-radius:8px;background:var(--navy);color:#fff;font:600 13px 'DM Sans',sans-serif;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}
button:hover,.btn:hover{background:#293a56;border-color:#293a56}
.btn.secondary{border-color:#dce2e9!important;background:#fff!important;color:#455266!important}
.btn.secondary:hover{background:#f4f6f8!important}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}
.row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:6px;font-size:10px;font-weight:750;letter-spacing:.04em}
.badge.open{border:1px solid #efc9c5;background:#fff0ee;color:#a63f3b}
.badge.closed{border:1px solid #cce3d3;background:#edf8f1;color:#347650}
.notice{margin:12px 0;padding:13px 14px;border:1px solid #ead8af;border-radius:9px;background:#fff9e9;color:#6b5527}
.notice.error{border-color:#efd1ce;background:#fff4f2;color:#963d38}
.request-list{display:grid;gap:11px;margin:18px 0}
.request-card{padding:17px 19px;border:1px solid;border-radius:12px;background:#fff}
.request-card.request-open{border-color:var(--red-line);background:var(--red-bg)}
.request-card.request-closed{border-color:var(--green-line);background:var(--green-bg)}
.request-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.request-card h2{margin:0;font-size:17px}
.request-open .request-card-title{color:#993d39}
.request-closed .request-card-title{color:#2d6948}
.request-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:11px 0;color:#657184;font-size:12px}
.request-duration{font-weight:700;color:#334155}
.request-details{margin:12px 0;padding:11px 12px;border-radius:8px;background:#ffffffb8;white-space:pre-wrap;font-size:13px}
.public-shell{min-height:100vh}
.public-top{height:72px;display:flex;align-items:center;padding:0 clamp(18px,5vw,72px);background:var(--navy)}
.public-brand b{font-size:16px}
.public-content{max-width:1180px;margin:0 auto;padding:34px 22px 50px}
.public-content>.card{box-shadow:var(--shadow)}
.login-layout{min-height:min(690px,calc(100vh - 150px));display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);overflow:hidden;border:1px solid #e5e9ef;border-radius:16px;background:#fff;box-shadow:0 22px 60px #15223812}
.login-intro{position:relative;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:clamp(32px,5vw,72px);background:var(--navy);color:#fff}
.login-intro:before,.login-intro:after{position:absolute;content:'';border:1px solid #ffffff12;border-radius:50%;pointer-events:none}
.login-intro:before{width:360px;height:360px;right:-125px;top:-155px}
.login-intro:after{width:270px;height:270px;left:-155px;bottom:-150px}
.login-eyebrow{color:#9aaabe;font-size:10px;font-weight:750;letter-spacing:.16em}
.login-intro h1{margin:20px 0 14px;color:#fff;font-size:clamp(27px,3.2vw,41px);line-height:1.22}
.login-intro h1 span{color:#d1dbe7}
.login-intro>p{max-width:440px;margin-bottom:26px;color:#bbc6d4;font-size:14px;line-height:1.75}
.login-feature{display:flex;align-items:center;gap:12px;margin:8px 0;color:#e1e7ef;font-size:13px}
.login-feature .line-icon{width:19px;height:19px;color:#b7c5d7}
.login-intro-foot{margin-top:50px;color:#9baabd;font-size:11px;letter-spacing:.02em}
.login-card{align-self:center;width:min(100%,510px);margin:0 auto;padding:clamp(30px,5vw,64px)}
.login-card-mark{width:46px;height:46px;display:grid;place-items:center;margin-bottom:25px;border:1px solid var(--line);border-radius:12px;background:#f7f8fa;color:#465870}
.login-card-mark .line-icon{width:23px;height:23px}
.login-card h2{margin:8px 0 5px;font-size:27px}
.login-card>.muted{margin-bottom:23px;font-size:13px}
.login-form label{margin:15px 0 6px;font-size:12px}
.login-form input{min-height:46px}
.login-form button{width:100%;min-height:47px;margin-top:22px;font-size:14px}
.login-form button span{margin-left:auto;font-size:18px}
.login-secure{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:20px;color:#8390a1;font-size:11px}
.login-secure .line-icon{width:14px;height:14px;color:var(--green)}
#add-department-form,#request-type-form{scroll-margin-top:24px}
#request-type-form:target{border-color:#bdc9d8;box-shadow:0 0 0 3px #365d9c12,var(--shadow)}
@media(max-width:1000px){.sidebar{width:220px}.app-main{margin-left:220px}.content{padding:25px 22px 38px}.login-layout{grid-template-columns:1fr 1fr}.login-intro{padding:34px}}
@media(max-width:760px){.sidebar{position:sticky;top:0;width:auto;height:auto;min-height:0;padding:10px 14px;flex-direction:row;align-items:center;gap:14px}.side-brand{flex:none}.side-brand .brand-mark{width:36px;height:36px}.side-brand b{font-size:14px}.side-brand small{font-size:9px}.side-caption,.side-footer{display:none}.side-nav{display:flex;gap:4px;overflow-x:auto}.side-link{min-height:38px;flex:none;gap:7px;padding:0 10px;font-size:11px}.side-link .line-icon{width:16px;height:16px}.app-main{margin-left:0;min-height:calc(100vh - 58px)}.app-topbar{height:55px;padding:0 16px}.topbar-kicker{font-size:8px}.app-topbar strong{font-size:12px}.content{padding:22px 16px 36px}.login-layout{min-height:0;grid-template-columns:1fr}.login-intro{padding:28px 24px}.login-intro h1{margin:13px 0 9px;font-size:27px}.login-intro>p{margin-bottom:14px}.login-feature{margin:5px 0;font-size:12px}.login-intro-foot{margin-top:18px}.login-card{width:100%;padding:28px 24px}.public-content{padding:20px 14px 32px}.public-top{height:62px;padding:0 16px}}
@media(max-width:520px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.grid>.card{padding:15px 13px;margin:5px 0}.metric{font-size:24px}.dept-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dept{min-height:166px;padding:14px 9px;border-radius:11px}.dept h2{font-size:14px}.dept-en,.dept-count{font-size:11px}.dept-icon,.department-glyph{width:38px;height:38px;margin-bottom:9px}.dept-actions{gap:6px;margin-top:9px}.icon-button{width:32px;height:32px}.visibility-form{gap:5px}.visibility-button{font-size:10px}.section-heading{align-items:flex-start}.section-count{font-size:10px}.card{padding:17px;margin:11px 0;border-radius:11px}.request-card{padding:14px}.request-top{align-items:flex-start}.request-meta{display:grid;gap:6px}.login-intro h1{font-size:24px}.login-card h2{font-size:24px}}
@media(max-width:370px){.side-brand small{display:none}.side-nav{gap:2px}.side-link{padding:0 8px}.grid{grid-template-columns:1fr}.dept-grid{grid-template-columns:1fr}.dept{min-height:145px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
