@font-face{font-family:"DS Indigo";src:url("dsindigo-light.woff2") format("woff2");font-weight:300}
@font-face{font-family:"DS Indigo";src:url("dsindigo-regular.woff2") format("woff2");font-weight:400}
@font-face{font-family:"DS Indigo";src:url("dsindigo-medium.woff2") format("woff2");font-weight:500}
@font-face{font-family:"DS Indigo";src:url("dsindigo-semibold.woff2") format("woff2");font-weight:600}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
img{-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}
html{font-size:14px}
body{font-family:"DS Indigo",Helvetica,Arial,sans-serif;font-weight:400;line-height:1.4;color:#1e1e1e;background:#fff;min-height:100vh}

.ink-authentication{display:flex;flex-direction:column;min-height:100vh}
.ink-header{height:44px;background:#fff;border-bottom:1px solid #ddd;display:flex;align-items:center;padding:0 16px}
.ink-header img{height:18px}
.ink-footer{background:#fff;border-top:1px solid #ddd;padding:10px 16px}
.ink-footer-inner{max-width:1200px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:10px}
.ink-footer-logo img{height:12px}
.ink-footer-links{display:flex;gap:12px}
.ink-footer-links a{color:#666;text-decoration:none}
.ink-footer-copy{color:#999;margin-left:auto}
.ink-body{background:#F7F6F7;flex:1;display:flex;align-items:center;justify-content:center;padding:2rem 1rem}
.ink-auth-main{padding:2.5rem 3rem;background:#fff;border:1px solid #ddd;border-radius:6px;max-width:480px;width:100%;text-align:center}
.ink-image-icon{margin-bottom:1.5rem}
.ink-page-title{font-size:1.35rem;font-weight:600;margin-bottom:10px}
.ink-page-text{font-size:0.95rem;color:#555;line-height:1.6}
@media(max-width:500px){.ink-body{background:#fff}.ink-auth-main{border:none;padding:2rem 1.5rem}}

.panel{display:flex;flex-direction:column;min-height:100vh;background:#f4f4f4}
.panel-header{background:#1a1a2e;padding:8px 14px;display:flex;align-items:center;justify-content:space-between}
.panel-brand{display:flex;align-items:center;gap:10px}
.panel-logo{height:16px;filter:brightness(0) invert(1)}
.panel-name{color:#fff;font-size:11px;opacity:0.8}
.panel-content{flex:1;padding:12px;max-width:960px;margin:0 auto;width:100%}

.tabs{display:flex;background:#fff;border-radius:4px 4px 0 0;border-bottom:1px solid #ddd;margin-bottom:12px}
.tab{padding:10px 14px;font-size:11px;font-weight:500;color:#666;cursor:pointer;border:none;background:none;border-bottom:2px solid transparent}
.tab:hover{color:#333}
.tab.active{color:#4C00FF;border-bottom-color:#4C00FF}
.tab-content{display:none}
.tab-content.active{display:block}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.stat{background:#fff;border-radius:4px;padding:14px}
.stat-value{font-size:1.5rem;font-weight:600;color:#4C00FF}
.stat-label{font-size:10px;color:#888;margin-top:2px}
.grid{display:grid;gap:12px;margin-bottom:12px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.box{background:#fff;border-radius:4px}
.box-head{padding:10px 12px;border-bottom:1px solid #f0f0f0;font-size:11px;font-weight:600;display:flex;align-items:center;gap:6px}
.box-head svg{width:14px;height:14px;color:#4C00FF}
.box-head-note{font-weight:400;font-size:9px;color:#999;margin-left:auto}
.box-body{padding:10px 12px}
.item{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #f8f8f8;font-size:11px}
.item:last-child{border-bottom:none}
.item-count{font-weight:600;color:#4C00FF;background:rgba(76,0,255,0.06);padding:2px 6px;border-radius:4px;font-size:10px}
.times{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.time{text-align:center;padding:10px 6px;background:#fafafa;border-radius:4px}
.time-value{font-size:1.25rem;font-weight:600;color:#4C00FF}
.time-label{font-size:10px;color:#555}
.time-range{font-size:9px;color:#999}
.empty{text-align:center;padding:14px;color:#aaa;font-size:11px}

.sbox{background:#fff;border-radius:4px;padding:16px}
.sec{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #f0f0f0}
.sec:last-child{border:none;margin:0;padding:0}
.sec-title{font-size:12px;font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.sec-title svg{width:14px;height:14px}
.sec-desc{font-size:10px;color:#888;margin-bottom:10px}
.fld{margin-bottom:10px}
.fld-label{display:block;font-size:11px;font-weight:500;margin-bottom:3px}
.fld-input{width:100%;padding:8px 10px;border:1px solid #ddd;border-radius:4px;font-size:12px;font-family:inherit}
.fld-input:focus{outline:none;border-color:#4C00FF}
.fld-hint{font-size:9px;color:#888;margin-top:3px}
.tgl-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.tgl{position:relative;width:32px;height:18px}
.tgl input{opacity:0;width:0;height:0}
.tgl-track{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:18px}
.tgl-track::before{content:"";position:absolute;height:12px;width:12px;left:3px;bottom:3px;background:#fff;border-radius:50%}
.tgl input:checked+.tgl-track{background:#4C00FF}
.tgl input:checked+.tgl-track::before{transform:translateX(14px)}
.tgl-label{font-size:11px}
.btn{padding:8px 14px;border-radius:4px;font-size:11px;font-weight:500;cursor:pointer;border:none;font-family:inherit}
.btn-primary{background:#4C00FF;color:#fff}
.btn-primary:hover{background:#3d00cc}
.btn-secondary{background:#eee;color:#333}
.btn-danger{background:#dc3545;color:#fff}
.btn-sm{padding:5px 10px;font-size:10px}
.btn-block{width:100%}
.btn-ghost{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);color:#fff;padding:6px 10px;font-size:10px}
.danger-box{background:#fff5f5;border:1px solid rgba(220,53,69,0.2);border-radius:4px;padding:12px}
.danger-title{font-size:11px;font-weight:600;color:#dc3545;margin-bottom:4px;display:flex;align-items:center;gap:4px}
.danger-text{font-size:10px;color:#666;margin-bottom:10px}

.login{min-height:100vh;display:flex;flex-direction:column}
.login-main{flex:1;display:flex;align-items:center;justify-content:center;background:#F7F6F7}
.login-card{background:#fff;border-radius:4px;box-shadow:0 2px 10px rgba(0,0,0,0.08);padding:1.5rem;max-width:280px;width:100%}
.login-title{font-size:1rem;font-weight:600;text-align:center;margin-bottom:1.25rem}
.login-err{background:#fff5f5;border:1px solid rgba(220,53,69,0.3);color:#dc3545;padding:8px;border-radius:4px;margin-bottom:10px;font-size:11px;text-align:center}

.msg{padding:10px 12px;border-radius:4px;margin-bottom:12px;font-size:11px}
.msg-ok{background:#d4edda;border:1px solid #c3e6cb;color:#155724}
.msg-err{background:#f8d7da;border:1px solid #f5c6cb;color:#721c24}

.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,0.5);display:none;align-items:center;justify-content:center;z-index:1000}
.modal-bg.active{display:flex}
.modal{background:#fff;border-radius:4px;max-width:320px;width:100%;margin:16px}
.modal-head{padding:12px 14px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;font-size:12px;font-weight:600}
.modal-close{background:none;border:none;font-size:18px;cursor:pointer;color:#999}
.modal-body{padding:14px;font-size:11px;color:#555}
.modal-foot{padding:10px 14px;border-top:1px solid #eee;display:flex;justify-content:flex-end;gap:8px}

@media(max-width:800px){.grid-2{grid-template-columns:1fr}}
@media(max-width:500px){.stats{grid-template-columns:1fr}.stat{display:flex;justify-content:space-between;align-items:center}.times{grid-template-columns:1fr}.time{display:flex;justify-content:space-between;align-items:center;text-align:left}}
