:root{color-scheme:dark;--bg:#151116;--panel:#211a22;--elevated:#2b202a;--line:#43313e;--rose:#e9a6b8;--gold:#f1b8a7;--text:#fff1ed;--muted:#bca7b3;--green:#9bd7b5;--red:#ffa4ad;--radius:16px;font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:16px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--rose);outline-offset:3px}a{color:inherit}button{transition:background .15s,border-color .15s}button:hover:not(:disabled){filter:brightness(1.08)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.045em;font-weight:650;line-height:1.18}h2{font-size:1.1rem;font-weight:650;letter-spacing:-.02em}h3{font-size:1rem;font-weight:600}.muted{color:var(--muted)}.small{font-size:.875rem;line-height:1.6}.eyebrow{color:var(--rose);font-size:.75rem;font-weight:650;letter-spacing:.12em;display:block;margin-bottom:12px}.loading{height:100vh;display:grid;place-items:center;color:var(--rose)}.primary,.secondary,.duration-options button{border:1px solid transparent;border-radius:9px;padding:11px 17px;font-size:.875rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.4;white-space:nowrap}.primary{background:var(--rose);color:#2c1825;border-color:var(--rose)}.secondary{background:transparent;border-color:#684653;color:var(--text)}.text-button,.icon-button{border:0;background:transparent;color:var(--muted);padding:8px}.text-button{font-size:.875rem;font-weight:600}.icon-button{font-size:1.5rem;width:36px;height:36px;display:grid;place-items:center;line-height:1}.danger{color:var(--red)}.full{width:100%}.error{font-size:.875rem;color:var(--red);line-height:1.6;min-height:1em}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:750;letter-spacing:.025em;font-size:1.1rem}.brand img{border-radius:11px}.brand small{display:block;font-size:.625rem;letter-spacing:.18em;color:var(--muted);font-weight:500;margin-top:5px}.app{display:flex;min-height:100vh}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#1b151d;border-right:1px solid var(--line);padding:30px 18px 18px;display:flex;flex-direction:column}.sidebar .brand{padding:0 10px;margin-bottom:54px}.nav-heading{font-size:.65rem;letter-spacing:.1em;color:#927f8c;padding:0 12px;margin-bottom:14px}nav{display:grid;gap:6px}.nav-button{display:flex;width:100%;align-items:center;gap:11px;border:1px solid transparent;border-radius:9px;padding:12px;color:var(--muted);background:transparent;font-size:.875rem;text-align:left}.nav-button.selected{color:var(--rose);background:#34232e;border-color:#573341}.nav-symbol{font-size:1.25rem;width:22px;text-align:center}.count{margin-left:auto;border-radius:6px;padding:2px 7px;background:#4e303f;font-size:.75rem}.sidebar-note{margin-top:auto;border:1px solid var(--line);border-radius:12px;padding:16px;background:#221a23}.sidebar-note strong{font-size:.875rem;display:block;margin:10px 0 6px}.sidebar-note p{font-size:.8rem;line-height:1.6;color:var(--muted)}.mini-key{color:var(--rose);font-size:1.5rem}.owner{display:flex;align-items:center;gap:10px;padding:24px 3px 0}.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#4a3040;color:var(--rose);font-size:.75rem;font-weight:700}.owner>div{min-width:0;flex:1}.owner strong{font-size:.875rem;display:block;overflow:hidden;text-overflow:ellipsis}.owner small{color:var(--muted);font-size:.75rem}.workspace{margin-left:242px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:74px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:var(--muted);gap:12px}.breadcrumb{color:#897382;margin-left:9px}.breadcrumb b{font-weight:500;color:var(--text);margin-left:9px}.connection{font-size:.75rem;background:#222d27;color:var(--green);padding:6px 10px;border-radius:20px;white-space:nowrap}.content{padding:38px;flex:1;width:100%;max-width:1520px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.page-heading p{font-size:.9375rem;margin-top:10px;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-align:left;color:var(--text)}.stat.selected{border-color:#805363}.stat span{display:block;color:var(--muted);font-size:.875rem}.stat strong{display:block;font-size:2rem;line-height:1.3;letter-spacing:-.04em;margin:12px 0 7px;font-weight:650}.stat small{font-size:.75rem;color:var(--muted)}.stat[data-filter=active] strong{color:var(--green)}.stat[data-filter=expiring] strong{color:#f0cc8b}.stat[data-filter=expired] strong{color:#d5b8c5}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel-header{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-header p{margin-top:5px}.toolbar{display:flex;gap:12px;padding:0 24px 20px}.search{flex:1;display:flex;align-items:center;position:relative}.search span{position:absolute;left:13px;color:var(--muted);font-size:1.4rem;top:7px}.search input{padding-left:40px;width:100%}input,select,textarea{border:1px solid #5c4051;background:#1a141c;color:var(--text);border-radius:8px;padding:11px 12px;font-size:.9375rem;min-width:0}input::placeholder,textarea::placeholder{color:#917c8c;font-size:.875rem}select{appearance:none;padding-right:36px;background-image:url("/chevron.svg");background-position:right 12px center;background-repeat:no-repeat}textarea{resize:vertical}.table-wrap{width:100%}table{width:100%;border-collapse:collapse;font-size:.875rem;table-layout:fixed}th{text-align:left;color:var(--muted);font-weight:500;font-size:.75rem;padding:13px 14px;background:#261d27;border-block:1px solid var(--line)}th:first-child,td:first-child{padding-left:24px;width:27%}th:last-child,td:last-child{width:74px;padding-right:20px}td{padding:20px 14px;border-bottom:1px solid #372a35;vertical-align:middle;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#281e29}.customer-name{display:block;font-weight:600;margin-bottom:6px}.key-hint{font-family:ui-monospace,Consolas,monospace;font-size:.75rem;color:var(--muted)}.badge{display:inline-block;padding:5px 8px;border-radius:6px;font-size:.75rem;line-height:1.5;background:#312a32;color:var(--muted)}.badge.active{background:#25392e;color:#a8ddba}.badge.expired{background:#3e3024;color:#efc18e}.badge.revoked{background:#422731;color:#ffb0bd}.entitlement{display:block;font-size:.75rem;color:var(--muted);line-height:1.7}.pagination{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:16px 24px;gap:10px}.pagination>div{display:flex;gap:8px}.pagination .secondary{padding:7px 12px;font-size:.75rem}.empty{padding:42px 20px 48px;text-align:center}.empty-icon{width:58px;height:58px;margin:0 auto 15px;border:1px solid #694052;border-radius:16px;display:grid;place-items:center;font-size:2rem;color:var(--rose);background:#30202b}.empty p{font-size:.875rem;color:var(--muted);line-height:1.6;max-width:370px;margin:10px auto 19px}.scope-note{font-size:.8rem;color:var(--muted);line-height:1.6;margin-top:20px}.site-footer{padding:18px 38px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:.75rem;color:#9c8897}.settings-panel{max-width:580px;padding:28px;display:grid;gap:20px}.settings-panel .primary{justify-self:start}label{font-size:.875rem;font-weight:500;display:grid;gap:8px}label small{font-weight:400}.audit-item{display:flex;gap:16px;padding:21px 24px;border-bottom:1px solid var(--line)}.audit-mark{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border:1px solid #654153;border-radius:9px;color:var(--rose)}.audit-item h3{font-size:.875rem}.audit-item p{font-size:.8rem;color:var(--muted);line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.audit-item time{margin-left:auto;color:var(--muted);font-size:.75rem;white-space:nowrap}.audit-item:last-child{border-bottom:0}dialog{background:var(--panel);border:1px solid #805363;border-radius:18px;color:var(--text);padding:0;box-shadow:0 24px 100px #0008;max-height:calc(100dvh - 40px);max-width:calc(100vw - 32px)}dialog::backdrop{background:#09060bc9;backdrop-filter:blur(4px)}.editor{width:600px}.editor form{display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-bottom:1px solid var(--line);gap:16px}.dialog-header .eyebrow{margin-bottom:8px}.dialog-header h2{font-size:1.4rem}.dialog-body{padding:24px 28px;display:grid;gap:20px;overflow:auto}.dialog-footer{padding:18px 28px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line)}.form-row{display:grid;grid-template-columns:2fr 1fr;gap:15px}.form-row input{width:100%}.duration-options{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.duration-options button{background:#271d28;color:var(--muted);border-color:var(--line);padding:8px 12px;font-size:.8rem}.duration-options button.selected{background:#4b2d3e;color:var(--rose);border-color:#a0647b}fieldset{border:0;margin:0;padding:0;display:grid;gap:10px}legend{font-size:.875rem;margin-bottom:12px}.check-card{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--line);border-radius:10px;background:#261b27}.check-card input{accent-color:var(--rose);width:17px;height:17px;margin-top:2px}.check-card strong{font-size:.875rem;font-weight:500;display:block}.check-card small{display:block;color:var(--muted);font-size:.75rem;line-height:1.6;margin-top:4px}.sub-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px}.device-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:.8rem}.device-row>div{flex:1;min-width:0}.device-row code{overflow-wrap:anywhere;font-size:.75rem}.device-row small{display:block;color:var(--muted);margin-top:6px}.device-row button{flex-shrink:0}.status-section{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px}.status-section p{margin-top:6px}.issued,.confirm-dialog{width:520px}.issued-key,#issued-key{font-family:ui-monospace,Consolas,monospace;color:var(--rose);line-height:1.7;overflow-wrap:anywhere}.notice{background:#362531;border:1px solid #624052;border-radius:10px;padding:13px;font-size:.875rem;line-height:1.6;color:#f5d7e0}.button-row{display:flex;gap:10px;flex-wrap:wrap}.confirm-dialog p{color:var(--muted);font-size:.9375rem;line-height:1.7}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:10;background:#efd3dc;color:#291b25;border:1px solid #fff0f2;border-radius:12px;padding:14px 20px;max-width:calc(100vw - 30px);box-shadow:0 8px 30px #0005;font-size:.875rem}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#211722;padding:44px 60px;display:flex;flex-direction:column;border-right:1px solid var(--line)}.auth-intro{margin:auto 0;padding:60px 0 30px}.auth-intro h1{font-size:3.5rem;line-height:1.08;letter-spacing:-.055em}.auth-intro p{font-size:1rem;line-height:1.8;color:var(--muted);max-width:380px;margin-top:24px}.auth-foot{color:#9a8091;font-size:.8rem}.auth-art{margin:40px 0 20px;width:290px;height:180px;border:1px solid #815567;border-radius:24px;position:relative;transform:rotate(-5deg);background:linear-gradient(125deg,#513142,#231823);box-shadow:10px 14px 0 #1610194d}.key-shape{position:absolute;top:35px;left:40px;width:170px;height:70px;transform:rotate(-25deg)}.key-shape i{display:block;width:65px;height:65px;border:13px solid #e9a6b8;border-radius:50%;box-shadow:inset 0 0 0 2px #7b4a60}.key-shape b{position:absolute;left:58px;top:26px;width:95px;height:14px;background:#e9a6b8;border-radius:4px}.key-shape b:before,.key-shape b:after{content:"";position:absolute;right:0;top:5px;width:13px;height:29px;background:#e9a6b8;border-radius:3px}.key-shape b:after{right:26px;height:23px}.art-label{position:absolute;bottom:20px;left:26px;font-size:.65rem;color:#cba9bb;letter-spacing:.16em}.auth-form-wrap{display:grid;place-items:center;padding:60px 40px}.auth-form{width:100%;max-width:370px;display:grid;gap:20px}.auth-form h2{font-size:1.75rem;letter-spacing:-.035em}.auth-form .eyebrow{margin-bottom:-8px}.auth-form .muted{line-height:1.7;font-size:.875rem}.auth-form>p:nth-of-type(1){margin-top:-8px;margin-bottom:10px}.password-field{position:relative;display:flex}.password-field input{width:100%;padding-right:60px}.password-field button{position:absolute;right:6px;top:5px}.auth-form .error:empty{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1550px){.content{padding-top:48px}}@media(max-width:1160px){.sidebar{width:210px}.workspace{margin-left:210px}.content{padding:28px 24px}.topbar{padding:0 24px}.stat{padding:16px}th:nth-child(5),td:nth-child(5){display:none}th:first-child,td:first-child{width:34%}.auth-story{padding:40px}.auth-intro h1{font-size:3rem}}@media(max-width:850px){.sidebar{width:190px;padding:24px 12px 16px}.workspace{margin-left:190px}.sidebar .brand{gap:8px;font-size:.95rem;padding:0 4px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.breadcrumb{display:none}.toolbar{flex-direction:column}.toolbar select{width:100%}.panel-header{padding:20px}.toolbar{padding:0 20px 16px}.page-heading{align-items:flex-start}.page-heading>button{margin-top:27px}.auth-story{padding:30px}.auth-intro h1{font-size:2.7rem}.auth-art{width:250px}.auth-form-wrap{padding:40px 25px}.content{padding:26px 20px}.site-footer{padding:18px 20px}.site-footer span:last-child{display:none}th:first-child,td:first-child{padding-left:16px}td,th{padding-left:9px;padding-right:9px}.audit-item{flex-wrap:wrap}.audit-item time{width:100%;margin-left:48px}.stat small{font-size:.7rem}}@media(max-width:640px){.app{display:block}.sidebar{position:static;width:100%;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 0 15px;font-size:1rem}.sidebar .brand img{width:30px;height:30px}.brand small{font-size:.6rem}.sidebar nav{display:flex;gap:5px}.nav-button{width:auto;flex:1;justify-content:center;font-size:.8rem;padding:9px 7px;gap:6px}.nav-symbol,.nav-heading,.sidebar-note,.count{display:none}.owner{position:absolute;right:16px;top:11px;padding:0}.owner .avatar,.owner>div{display:none}.workspace{margin-left:0}.topbar{height:49px;padding:0 18px;font-size:.75rem}.content{padding:26px 16px}.page-heading{display:block;margin-bottom:22px}.page-heading>button{margin-top:18px;width:100%}h1{font-size:1.75rem}.stats{gap:10px;margin-bottom:20px}.stat{padding:15px}.stat strong{font-size:1.75rem;margin:9px 0 5px}.stat span{font-size:.8rem}.panel-header{padding:17px 15px}.panel-header p{font-size:.75rem}.panel-header h2{font-size:1rem}.panel-header .secondary{font-size:.75rem;padding:8px}.toolbar{padding:0 15px 16px}.search input{font-size:.875rem}.search input::placeholder{font-size:.75rem}.table-wrap{padding:0 15px}table,tbody{display:block}thead{display:none}tbody tr{display:grid;grid-template-columns:1fr 100px;gap:10px;padding:18px 0;border-bottom:1px solid var(--line)}td{padding:0!important;border:0!important;width:auto!important;overflow:visible}td:first-child{grid-column:1;grid-row:1;min-width:0}td:nth-child(2){grid-column:2;grid-row:1;text-align:right}td:nth-child(3){font-size:.8rem;grid-column:1;grid-row:2;color:var(--muted)}td:nth-child(3):before{content:"Hết hạn: ";font-size:.75rem}td:nth-child(4){grid-column:1;grid-row:3;font-size:.8rem;color:var(--muted)}td:nth-child(4):before{content:"Số máy: "}td:last-child{grid-column:2;grid-row:2 / 4;align-self:center;text-align:right}.pagination{padding:14px 15px}.auth-screen{grid-template-columns:1fr}.auth-story{padding:25px 25px 0;border-right:0;background:var(--bg)}.auth-intro,.auth-foot{display:none}.auth-form-wrap{padding:50px 25px;align-items:start}.auth-form h2{font-size:1.6rem}.dialog-body{padding:22px 20px}.dialog-header{padding:22px 20px}.dialog-footer{padding:17px 20px}.dialog-header h2{font-size:1.25rem}.form-row{grid-template-columns:1fr}.duration-options button{flex:1}.status-section{align-items:flex-start}.scope-note{font-size:.75rem}.site-footer{padding:17px}.settings-panel{padding:22px}.toast{bottom:15px;width:max-content}.audit-item{padding:18px 16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
th:last-child,td:last-child{width:96px}.text-button{white-space:nowrap}.badge,.entitlement{font-size:.875rem}
