/* Compact tool layout */
.topbar{height:64px}.brand{font-size:20px;letter-spacing:0}.brand-icon{width:34px;height:34px;border-radius:8px}.topbar nav{gap:12px}.nav-link{border:0;font-size:14px}.query-wrap{max-width:880px}.query-intro{display:block;padding:28px 0 24px}.query-form{box-shadow:none;padding:24px}.query-form h1{font-size:24px;letter-spacing:0}.query-form .section-top{margin-bottom:16px}.query-form label{font-size:14px}.query-form .primary{margin-top:20px}.card{box-shadow:none;border-radius:12px}.login-layout{display:block;max-width:440px;margin:60px auto}.login-layout .card{padding:28px}.workspace-main{margin:0 auto;padding-top:28px;padding-bottom:32px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:26px}.sidebar{padding-top:22px}.sidebar-bottom>.dot{display:none}.overview-grid{display:block}.share-action{margin-top:20px}.rule-grid{display:block;max-width:640px}.rule-history{max-width:none}.stats .stat{border-radius:10px}.stats .stat-value{margin-top:8px}.section-top:empty{display:none}.tiny-pill{font-size:12px}.drop-zone{padding:26px 16px}.drop-zone input{max-width:100%}.table-scroll{max-width:100%}.rule-history td:first-child{overflow-wrap:anywhere}.results-heading h2{font-size:21px}.day summary{min-height:78px}.drama summary{min-height:60px}.day-date{font-variant-numeric:tabular-nums}.drama summary>span{min-width:0;overflow-wrap:anywhere}.video-detail>div{min-width:0;overflow-wrap:anywhere}input,select{font-size:16px!important}button{min-height:44px}.query-stats .stat-value{overflow-wrap:anywhere}.sidebar-bottom{padding-top:24px}
@media(max-width:760px){
 body{font-size:15px}.topbar{height:60px;padding:0 16px}.brand{gap:9px}.nav-link{padding:8px 0}.query-wrap{padding:0 12px}.query-intro{padding:16px 0}.query-form{padding:20px 16px}.query-form h1{font-size:23px}.query-form .section-top{margin-bottom:10px}.query-form input,.query-form select{min-height:48px}.query-form .primary{min-height:48px;font-size:16px}.date-grid{gap:12px}.date-grid input{padding:10px 8px;font-size:16px!important}.date-grid label{font-size:13px}.query-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.query-stats .stat:first-child{grid-column:1/-1}.query-stats .stat:first-child .stat-value{font-size:34px}.query-stats .stat-value{font-size:24px}.query-stats .stat{padding:16px}.stat-label{font-size:13px}.results-heading{gap:10px;margin:8px 4px 16px}.results-heading h2{font-size:20px}.latest-tag{font-size:12px;padding:4px 8px}.daily-list{gap:10px}.day summary{padding:16px 14px;gap:10px}.day summary .day-date{font-size:15px}.day summary .day-subtitle{font-size:12px;margin-top:6px}.day-income{font-size:20px;white-space:nowrap}.day summary:after{font-size:16px}.drama-list{padding:4px 14px 14px}.drama summary{gap:8px}.drama summary strong{font-size:15px}.video-detail{padding:12px 0;font-size:14px}.video-detail p{font-size:12px}.day.missing>.section-top{padding:16px 14px}.day.missing .day-date{font-size:14px}.workspace{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.sidebar{position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;border:0;border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -3px 12px #00000005}.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:2px}.side-button{font-size:11px;white-space:normal;padding:5px 1px;text-align:center;min-height:54px;border-radius:8px;line-height:1.4}.side-button span{display:block;width:auto;font-size:19px;line-height:1.2;margin-bottom:4px}.sidebar-bottom{display:none}.workspace-main{padding:20px 12px 12px}.page-heading{align-items:flex-start;margin-bottom:20px;gap:12px}.page-heading h1{font-size:24px}.page-heading .primary{font-size:13px;padding:10px 12px;white-space:nowrap}.card{padding:18px 16px}.stats{gap:10px}.stats .stat{padding:16px 12px;min-width:0}.stat-value.date-value{font-size:19px}.overview-grid>.card{padding:18px 14px}.login-layout{margin:30px auto;padding:0 16px}.login-layout .card{padding:24px 20px}.upload-actions{align-items:stretch;gap:12px}.upload-actions>button{width:100%;min-height:48px}.upload-actions>.muted{width:100%;overflow-wrap:anywhere}.drop-zone{padding:22px 10px;gap:10px}.drop-zone>span:last-of-type{font-size:12px;line-height:1.7}.drop-zone input{font-size:13px!important;overflow:hidden}.upload-icon{width:38px;height:38px;font-size:23px}.preview-item{align-items:flex-start}.preview-item>div{min-width:0}.preview-item strong{font-size:14px}.preview-item p{font-size:12px}.info-box{font-size:13px;padding:14px 16px}.rule-grid{max-width:none}.rule-history{padding:18px 14px}.form-hint{font-size:13px}.checkbox-label{font-size:13px;gap:10px;padding:8px 0}.checkbox-label input{width:20px;height:20px}.narrow{max-width:none}.notice{top:70px;max-width:calc(100% - 24px);width:max-content}.table-scroll table{font-size:13px}.table-scroll th,.table-scroll td{padding:12px 6px}.account-id{font-size:12px;word-break:break-all}.account-actions .text-button{padding:8px 10px;min-height:44px}.pager{gap:10px}.pager button{padding:8px 12px}.query-wrap{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 #accounts-list table,#accounts-list tbody,#accounts-list tr,#accounts-list td{display:block;width:100%}#accounts-list thead{display:none}#accounts-list tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;border-bottom:1px solid var(--line);padding:14px 0}#accounts-list td{border:0;padding:0}#accounts-list td:first-child{grid-column:1/-1;margin-bottom:10px}#accounts-list td:first-child strong{font-size:16px}#accounts-list td:nth-child(2){align-self:center}#accounts-list td:last-child{width:auto;justify-self:end}#accounts-list .account-actions{display:block}#accounts-list .badge{font-size:12px}#accounts-list .table-scroll{overflow:visible}
 .rule-history table,.rule-history tbody,.rule-history tr,.rule-history td{display:block;width:100%}.rule-history thead{display:none}.rule-history tr{padding:14px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:8px}.rule-history td{padding:0;border:0}.rule-history td:first-child{grid-column:1/-1;font-weight:600}.rule-history td:nth-child(3){grid-row:3;color:var(--muted)}.rule-history td:last-child{grid-column:2;grid-row:2/4;width:auto}.rule-history .table-scroll{overflow:visible}
}
@media(max-width:360px){.date-grid{grid-template-columns:1fr}.day summary .day-subtitle{max-width:180px;font-size:11px}.day-income{font-size:18px}.page-heading{flex-wrap:wrap}.stat-value.date-value{font-size:17px}}
