:root{color-scheme:light;--bg: #f6f7f9;--panel: #fff;--text: #1a1d21;--muted: #5c6570;--border: #d8dde3;--accent: #1f6feb;--danger: #f04438;--ok: #12b76a;--tap: 2.5rem;--pad-x: .75rem;font-family:IBM Plex Sans,Noto Sans SC,PingFang SC,Helvetica Neue,sans-serif;line-height:1.45;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}*{box-sizing:border-box}html{margin:0;width:100%;max-width:100%;overflow-x:clip;overscroll-behavior-x:none}body{margin:0;min-height:100%;min-height:100dvh;width:100%;max-width:100%;overflow-x:clip;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y;position:relative}#root{width:100%;max-width:100%;overflow-x:clip}a{color:var(--accent)}button,input,textarea,select{font:inherit}button{cursor:pointer;background:#eef1f5;color:var(--accent);border:1px solid var(--accent);border-radius:6px;padding:.55rem .9rem;min-height:var(--tap);touch-action:manipulation}button.secondary{background:#eef1f5;color:var(--text);border-color:var(--border)}button.danger{background:#eef1f5;color:var(--danger);border-color:var(--danger)}button:disabled{opacity:.55;cursor:not-allowed}input,textarea,select{width:100%;border:1px solid var(--border);border-radius:6px;padding:.55rem .7rem;background:#fff;font-size:1rem;max-width:100%}input{min-height:var(--tap)}select{min-height:2.4rem;height:2.4rem;padding-top:.35rem;padding-bottom:.35rem;line-height:1.25}textarea{min-height:8rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95rem;line-height:1.4;resize:vertical}textarea.url-batch{min-height:12rem;font-family:inherit;line-height:1.4}.cookie-grid{display:grid;gap:.75rem;grid-template-columns:1fr}@media(min-width:768px){.cookie-grid{grid-template-columns:1fr 1fr;align-items:start}}label{display:grid;gap:.35rem;font-size:.95rem;margin-bottom:.75rem}.layout{width:100%;max-width:1680px;margin:0 auto;padding-top:max(.65rem,env(safe-area-inset-top,0px));padding-right:calc(var(--pad-x) + env(safe-area-inset-right,0px));padding-bottom:max(1.5rem,env(safe-area-inset-bottom,0px));padding-left:calc(var(--pad-x) + env(safe-area-inset-left,0px));overflow-x:clip;box-sizing:border-box}.layout>*{max-width:100%;min-width:0;box-sizing:border-box}.form-narrow{max-width:36rem;width:100%}.path-select-row{display:flex;flex-wrap:nowrap;align-items:center;gap:.55rem}.path-select-label{color:var(--muted);font-size:.92rem;white-space:nowrap;flex:0 0 auto}.path-select,.path-select-row select{flex:1 1 auto;min-width:0;width:auto;min-height:2.25rem;height:2.25rem;padding:.3rem .55rem}.paste-heading{display:inline-flex;align-items:center;background:transparent;color:var(--text);border:0;border-radius:6px;padding:.15rem .25rem;margin:0 0 .55rem;min-height:auto;font-size:clamp(1.05rem,2vw,1.15rem);font-weight:600;line-height:1.3}.paste-heading:hover:not(:disabled){color:var(--accent);background:transparent}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.15rem;width:100%;max-width:100%;box-sizing:border-box}.topbar-text{min-width:0;flex:1 1 auto;overflow:hidden}.brand-title{display:inline-flex;align-items:center;gap:.35rem}.brand-globe{display:inline-flex;align-items:center;line-height:1}.brand-cred-img{width:1.15em;height:1.15em;display:block;border-radius:3px}.brand-globe.ok .brand-cred-img{filter:none;opacity:1}.brand-globe.bad .brand-cred-img{filter:grayscale(1);opacity:.55}.topbar-text .muted{overflow-wrap:anywhere;word-break:break-word}.icon-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:var(--tap);height:var(--tap);min-width:var(--tap);min-height:var(--tap);padding:0;border-radius:8px;border:1px solid var(--border);background:#eef1f5;color:var(--text);margin-right:0}.icon-btn:hover:not(:disabled){background:#e2e7ee}.submit-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.submit-panel textarea.url-batch{min-height:min(22vh,9.5rem);max-height:14rem;resize:vertical}.tasks-page{gap:1rem}.tasks-list-panel{padding-top:.85rem}.tasks-list-head{margin-bottom:.45rem;align-items:center;flex-wrap:wrap;gap:.45rem .75rem;padding-bottom:.45rem;border-bottom:1px solid var(--border)}.tasks-list-title{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;min-width:0;flex:1 1 auto}.tasks-list-head h2{margin:0;display:inline-flex;align-items:baseline;gap:.35rem;flex:0 0 auto}.tasks-count{font-size:.78rem;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}.tasks-list-panel .status-tabs{margin:0;border-bottom:none;overflow:hidden;scrollbar-width:none;flex:1 1 auto;min-width:0}.tasks-list-panel .status-tabs::-webkit-scrollbar{display:none}.tasks-list-panel .status-tabs button{padding:.2rem .45rem;font-size:.85rem;min-height:1.75rem;border-bottom:2px solid transparent;margin-bottom:0;border-radius:0;background:transparent}.tasks-list-panel .status-tabs button.active{border-bottom-color:var(--accent);background:transparent;color:var(--accent);font-weight:600}.tasks-empty{margin:.35rem 0 .15rem}.tasks-list-panel table{min-width:0;table-layout:fixed}.tasks-list-panel th:nth-child(1),.tasks-list-panel td:nth-child(1){width:auto;word-break:break-word}.tasks-list-panel th:nth-child(2),.tasks-list-panel td:nth-child(2){width:6.5rem;white-space:nowrap}.tasks-list-panel th:nth-child(3),.tasks-list-panel td:nth-child(3){width:7.5rem;white-space:nowrap}.nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:.15rem;margin:.45rem 0 .85rem;padding:0 0 .45rem;border-bottom:1px solid var(--border);width:100%;max-width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.nav button{background:transparent;color:var(--muted);border:1px solid transparent;flex:1 1 0;min-width:0;min-height:2.2rem;padding:.3rem .2rem;white-space:nowrap;font-size:clamp(.75rem,2.8vw,.92rem);overflow:hidden;text-overflow:ellipsis}.nav button.active{color:var(--text);border-color:var(--border);background:var(--panel)}.status-tabs{display:flex;flex-wrap:nowrap;gap:0;border-bottom:1px solid var(--border);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;max-width:100%}.status-tabs button{background:transparent;color:var(--muted);border:none;border-bottom:2px solid transparent;border-radius:0;padding:.55rem .85rem;margin-bottom:-1px;flex:0 0 auto;white-space:nowrap}.status-tabs button:hover:not(:disabled){color:var(--text);background:transparent}.status-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);background:transparent;font-weight:600}.toolbar{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;justify-content:space-between}.toolbar-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1rem clamp(.85rem,2vw,1.15rem);overflow:hidden;max-width:100%;box-sizing:border-box}.stack{display:grid;gap:.75rem;max-width:100%;min-width:0}.row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}h1{font-size:clamp(1.2rem,2.5vw,1.45rem);margin:0 0 .35rem}h2{font-size:clamp(1.05rem,2vw,1.15rem);margin:0 0 .75rem}.section-subhead{font-size:1rem;font-weight:600;margin:1.1rem 0 .65rem}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.panel-head h2{margin:0}.plus-icon{font-size:1.35rem;font-weight:600;line-height:1}.users-page{gap:.65rem}.panel-compact{padding:.75rem clamp(.7rem,2vw,.95rem);border-radius:8px}.panel-head-tight{margin-bottom:.45rem}.panel-head-title{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .55rem;min-width:0}.panel-head-title h2{margin:0;font-size:1.05rem}.stack-tight{gap:.45rem}.btn-compact{min-height:2rem;padding:.28rem .65rem;font-size:.88rem;border-radius:5px}.icon-btn-sm{width:2rem;height:2rem;min-width:2rem;min-height:2rem}.hint-tight{margin:0;font-size:.85rem}.users-page .section-subhead{font-size:.92rem;margin:.75rem 0 .4rem;padding-top:.55rem;border-top:1px solid var(--border)}.users-page label{gap:.25rem;font-size:.9rem}.users-page input:not([type=checkbox]),.users-page select,.users-page textarea{padding:.4rem .55rem}.user-edit-sections,.user-edit-layout{display:grid;gap:.65rem}@media(min-width:768px){.user-edit-layout{grid-template-columns:1fr 1fr;align-items:start}}.user-edit-block{border:1px solid var(--border);border-radius:8px;padding:.65rem .75rem;background:#fafbfc;display:grid;gap:.45rem;min-width:0}.user-edit-block-title{margin:0;font-size:.92rem;font-weight:600}.user-edit-fields{display:grid;gap:.45rem}@media(min-width:641px){.user-edit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.user-edit-fields label:first-child{grid-column:1 / -1}}.user-edit-inline{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.user-edit-inline input{flex:1 1 10rem;min-width:0;width:auto}.passkey-list{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}.passkey-list-row{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .55rem;font-size:.88rem}.passkey-list-row code{margin-right:auto}.auth-bar{display:inline-flex;flex-wrap:wrap;gap:.3rem;align-items:center}.auth-chip{min-width:2rem;min-height:2rem;width:auto;height:2rem;padding:0 .4rem;border-radius:6px;font-size:.72rem;font-weight:600;line-height:1;background:#fff;color:#9aa3ad;border:1px solid #cfd5dc}.auth-chip.on{color:var(--accent);border-color:var(--accent);background:#eef4ff}.auth-chip.off{color:#9aa3ad;border-color:#d5dae0;background:#f3f5f8}.auth-chip.action{color:var(--text);border-color:var(--border);background:#fff;font-weight:500}.auth-chip:disabled{opacity:.45}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:1rem;background:#14181e73}.modal-card{width:min(100%,26rem);max-height:min(90vh,36rem);overflow:auto;background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 40px #0000002e;padding:.85rem .95rem}.modal-card-wide{width:min(100%,34rem)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.modal-head h3{margin:0;font-size:1rem}.modal-body{display:grid;gap:.55rem}.user-list-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;justify-content:flex-end}.user-list{list-style:none;margin:0;padding:0;display:grid;gap:0}.user-list-compact .user-list-row{padding:.45rem .15rem;gap:.4rem .6rem;border-bottom:1px solid #e8ebef}.user-list-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem .75rem;padding:.65rem 0;border-bottom:1px solid var(--border)}.user-list-row:last-child{border-bottom:none;padding-bottom:0}.user-list-main{display:flex;flex-direction:column;gap:.25rem;min-width:0;flex:1 1 8rem}.user-list-name{font-weight:600;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-badges{display:flex;flex-wrap:wrap;gap:.28rem;align-items:center}.badge{display:inline-flex;align-items:center;font-size:.72rem;font-weight:600;line-height:1;padding:.22rem .42rem;border-radius:999px;background:#eef1f5;color:var(--muted);letter-spacing:.01em}.badge-admin{background:#e8f0fe;color:#174ea6}.badge-user{background:#f0f2f5;color:#3c4450}.badge-ok{background:#e6f4ea;color:var(--ok)}.badge-off{background:#fce8e6;color:var(--danger)}.badge-web{background:#e8f0fe;color:var(--accent)}.badge-muted{background:#f0f2f5;color:var(--muted)}.user-list-status{font-size:.88rem;color:var(--muted)}.user-list-status.ok{color:var(--ok)}.user-list-status.off{color:var(--danger)}.user-list-actions{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;justify-content:flex-end}.user-list-actions button{min-height:1.9rem;padding:.25rem .55rem;font-size:.82rem}.check-row{display:flex!important;flex-direction:row!important;align-items:center;gap:.5rem;margin-bottom:.75rem}.check-row-tight{margin-bottom:.25rem!important}.token-box-compact{padding:.4rem .55rem;font-size:.82rem}.check-row input[type=checkbox]{width:1.1rem;height:1.1rem;min-height:0;padding:0;flex:0 0 auto}.muted{color:var(--muted);font-size:.92rem}.msg{padding:.55rem .7rem;border-radius:6px;background:#eef2f7;white-space:pre-wrap;word-break:break-word}.msg.error{background:#fef3f2;color:var(--danger)}.msg.ok{background:#ecfdf3;color:var(--ok)}.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:36rem}th,td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid var(--border);vertical-align:middle}td .row{flex-wrap:wrap}code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}code{background:#f3f5f8;color:var(--text);padding:.1em .35em;border-radius:4px}pre{background:#f3f5f8;color:var(--text);padding:.85rem;border-radius:8px;overflow:auto;max-width:100%}pre code{padding:0;background:transparent}.token-box{word-break:break-all;background:#f3f5f8;padding:.6rem;border-radius:6px;max-width:100%}.center-card{width:min(100%,26rem);margin:clamp(1.25rem,8vh,3rem) auto}.login-toggle-password{width:100%;background:transparent;color:var(--muted);border:1px dashed var(--border);font-size:1rem;line-height:1;min-height:2.2rem;padding:.35rem}.login-toggle-password:hover:not(:disabled){color:var(--text);background:#f3f5f8}.secret-input-wrap{position:relative;display:block;width:100%}.secret-input-wrap input{padding-right:2.6rem}.secret-toggle{position:absolute;top:50%;right:.2rem;transform:translateY(-50%);width:2.1rem;height:2.1rem;min-width:2.1rem;min-height:2.1rem;padding:0;border:none;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.secret-toggle:hover:not(:disabled){color:var(--text);background:transparent}.secret-toggle svg{width:1.1rem;height:1.1rem;display:block}img{max-width:100%;height:auto}.task-status-finished{color:#00c853;font-weight:600;text-shadow:0 0 .55em rgba(0,200,83,.45)}.task-status-downloading{color:var(--accent);font-weight:600}.task-status-failed{color:#ff3b30;font-weight:600;text-shadow:0 0 .55em rgba(255,59,48,.45)}.task-status-unknown{color:var(--muted)}@media(max-width:640px){:root{--tap: 2.4rem;--pad-x: .65rem}.submit-actions{grid-template-columns:1fr}.path-select-row{flex-wrap:nowrap;align-items:center;max-width:100%}.path-select,.path-select-row select{width:auto;flex:1 1 auto;min-width:0}.toolbar{flex-direction:column;align-items:stretch}.toolbar-actions{width:100%}.toolbar-actions button{flex:1 1 auto}h1{font-size:1.15rem}.table-scroll{max-width:100%}table{min-width:28rem;font-size:.88rem}.panel{border-radius:8px}.form-narrow{max-width:none}}@media(min-width:641px){:root{--pad-x: clamp(.85rem, 2.5vw, 1.75rem);--tap: 2.6rem}.nav button{flex:0 1 auto;padding:.35rem .7rem;font-size:.92rem}}@media(min-width:641px)and (max-width:1024px){.layout{max-width:100%}.submit-panel textarea.url-batch{min-height:8.5rem}td .row{flex-wrap:wrap}}@media(min-width:1025px){td .row{flex-wrap:nowrap}table{min-width:40rem}}@media(hover:none)and (pointer:coarse){button:hover:not(:disabled){filter:none}.status-tabs button:hover:not(:disabled){color:var(--muted)}.status-tabs button.active:hover:not(:disabled){color:var(--accent)}}
