:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color-scheme:light dark;--bg:#f5f6f9;--panel:#fff;--text:#202737;--muted:#788190;--line:#e5e8ef;--accent:#5465d9;--accent-soft:#eff1fd;--input:#fbfcfe;--shadow:0 10px 35px #26345108;--danger:#ba454c;--green:#329477}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#12151c;--panel:#1b202b;--text:#e6eaf2;--muted:#9ba5b7;--line:#303746;--accent:#9ca9ff;--accent-soft:#252d4c;--input:#171c26;--shadow:0 10px 35px #0002;--danger:#f18c92;--green:#71cfad;--on-accent:#171c35}}
:root[data-theme=dark]{--bg:#12151c;--panel:#1b202b;--text:#e6eaf2;--muted:#9ba5b7;--line:#303746;--accent:#9ca9ff;--accent-soft:#252d4c;--input:#171c26;--shadow:0 10px 35px #0002;--danger:#f18c92;--green:#71cfad;--on-accent:#171c35}
*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.6;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;transition:background .15s,transform .15s}button:disabled{cursor:wait;opacity:.6}button:hover:not(:disabled){filter:brightness(.96)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.3;letter-spacing:-1.2px;font-weight:650}h2{font-size:19px;font-weight:600;letter-spacing:-.3px}h3{font-size:15px;font-weight:600}.muted{color:var(--muted)}.topbar{height:78px;padding:0 max(28px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--panel)}.brand{display:flex;align-items:center;gap:12px;font-weight:650;letter-spacing:.7px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;background:var(--text);color:var(--panel);font-size:29px;line-height:1;border-radius:10px;font-weight:500}.brand-muted{color:var(--muted);font-weight:400;font-size:13px;letter-spacing:0}.header-right{display:flex;gap:14px;align-items:center}.secure{font-size:11px;color:var(--green);letter-spacing:1px}.icon-button{background:transparent;color:var(--muted);font-size:23px;border-radius:8px;min-width:36px;height:36px}.quiet{background:transparent;color:var(--muted);font-size:12px;padding:6px 10px;border-radius:6px}main{max-width:1200px;margin:auto;padding:52px 28px 24px}.eyebrow,.mini-label{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--accent)}.mini-label{letter-spacing:1px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px}.page-heading h1{margin:8px 0 9px}.domain-pill{background:var(--panel);border:1px solid var(--line);padding:9px 15px;border-radius:30px;font-size:12px;color:var(--muted);white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--green);margin-right:8px}.subscription-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:30px 32px;display:grid;grid-template-columns:1.1fr 1fr;gap:35px;align-items:center;box-shadow:var(--shadow);position:relative;overflow:hidden}.subscription-card:before{content:"";position:absolute;left:0;top:30px;bottom:30px;width:3px;border-radius:3px;background:var(--accent)}.subscription-card h2{margin:8px 0 9px;font-size:22px}.subscription-card p{font-size:12px;color:var(--muted)}.subscription-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch}.subscription-url{display:flex;border:1px solid var(--line);background:var(--input);border-radius:8px;align-items:center;padding-right:5px}.subscription-url input{border:0;background:none;min-width:0;font-family:ui-monospace,monospace;font-size:12px}.subscription-actions .primary{align-self:flex-end;min-width:164px;display:flex;justify-content:space-between;gap:20px}.primary,.secondary,.danger-quiet{border-radius:8px;padding:10px 16px;font-size:12px;font-weight:550}.primary{background:var(--accent);color:var(--on-accent,#fff)}.secondary{border:1px solid var(--line);background:var(--panel);color:var(--text)}.danger-quiet{color:var(--danger);background:transparent;padding-left:0}.full{width:100%}.button-row{display:flex;align-items:center;gap:10px}.section-title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:37px 0 18px}.section-title p{font-size:12px;margin-top:5px}.count{display:inline-grid;place-items:center;min-width:25px;height:22px;margin-left:6px;padding:0 7px;background:var(--accent-soft);color:var(--accent);border-radius:6px;font-size:11px;vertical-align:2px}.nodes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.node-card{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:23px 24px}.node-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.node-title{overflow-wrap:anywhere;font-size:15px;font-weight:600;line-height:1.5}.protocol{font-size:9px;letter-spacing:1px;color:var(--accent);background:var(--accent-soft);border-radius:5px;padding:4px 7px;white-space:nowrap}.node-address{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:var(--muted);margin:16px 0 20px;overflow-wrap:anywhere}.node-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:13px;border-top:1px solid var(--line)}.node-meta{font-size:10px;color:var(--muted)}.node-bottom .quiet{color:var(--accent)}.node-bottom .delete{color:var(--muted)}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}.panel{border:1px solid var(--line);background:var(--panel);padding:24px;border-radius:13px}.panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.panel-heading h2{font-size:15px}.panel-heading p{font-size:11px;margin-top:4px}.panel-icon{font-size:23px;color:var(--accent);background:var(--accent-soft);width:39px;height:39px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.pill{font-size:10px;color:var(--muted);margin-left:auto;white-space:nowrap}label{font-size:12px;display:block;color:var(--text);font-weight:500}input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--input);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}input::placeholder,textarea::placeholder{color:var(--muted);font-size:12px}input[readonly]{color:var(--muted)}.input-row{display:flex;gap:8px;margin-top:8px}.input-row input{min-width:0}.input-row button{flex-shrink:0}.hint{font-size:11px;line-height:1.8;color:var(--muted);margin-top:14px}.backup-actions{margin-top:26px;margin-bottom:20px}.settings{margin-top:24px}.settings summary{font-size:13px;cursor:pointer;font-weight:550}.settings summary span{font-size:11px;color:var(--muted);font-weight:400;margin-left:15px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.settings-grid p{font-size:12px;margin:7px 0 15px}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:.4px;margin:32px 2px 0}footer span{letter-spacing:0}.empty{text-align:center;padding:45px;border:1px dashed var(--line);border-radius:12px}.empty p{color:var(--muted);margin:8px 0 20px}.login-layout{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:90px;max-width:980px;min-height:calc(100vh - 220px);margin:auto}.login-intro h1{font-size:48px;line-height:1.4;margin:18px 0;letter-spacing:-2px}.login-intro>p{font-size:14px;color:var(--muted);max-width:330px}.login-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:36px;box-shadow:var(--shadow)}.login-card h2{font-size:25px;margin:10px 0}.login-card .muted{font-size:12px;margin-bottom:28px}.login-card input{margin-top:9px;padding:13px}.login-card .primary{padding:13px 16px;display:flex;justify-content:space-between;margin-top:4px}.login-note{font-size:10px;text-align:center;color:var(--muted);margin-top:20px}.error{font-size:12px;color:var(--danger);min-height:20px;margin:10px 0}.connection-art{position:relative;width:330px;height:145px;margin-top:30px;background:radial-gradient(ellipse at 50% 40%,var(--accent-soft),transparent 65%)}.connection-art:before,.connection-art:after{content:"";position:absolute;left:75px;right:65px;height:1px;background:var(--line);top:70px;transform:rotate(22deg)}.connection-art:after{transform:rotate(-22deg)}.art-center{position:absolute;left:140px;top:35px;width:56px;height:56px;border-radius:16px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:40px;z-index:2;box-shadow:0 10px 24px #5465d925}.art-device{position:absolute;background:var(--panel);border:1px solid var(--line);padding:8px 15px;border-radius:9px;color:var(--muted);font-size:11px;z-index:1}.device-a{left:20px;top:10px}.device-b{right:10px;top:28px}.device-c{left:60px;bottom:5px}dialog{width:620px;max-width:calc(100vw - 32px);max-height:90vh;overflow:auto;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#10182c70;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-heading h2{margin-top:4px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:17px;margin-top:14px;border-top:1px solid var(--line)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid input,.form-grid select{margin-top:6px}.span-2{grid-column:span 2}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:12px 0 20px}.tab{background:none;color:var(--muted);padding:10px 0;font-size:12px;border-bottom:2px solid transparent}.tab.active{color:var(--accent);border-color:var(--accent)}textarea{font-family:ui-monospace,SFMono-Regular,monospace;resize:vertical;line-height:1.7;font-size:12px;tab-size:2}.checkbox{display:flex;align-items:center;gap:9px;margin-top:17px}.checkbox input{width:15px;height:15px;margin:0;accent-color:var(--accent)}#import-dialog textarea{margin-top:18px}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--text);color:var(--panel);border-radius:9px;padding:12px 22px;box-shadow:0 6px 30px #0002;font-size:13px;max-width:90vw;z-index:30}
@media(max-width:800px){main{padding:30px 20px 20px}.topbar{padding:0 20px;height:65px}.subscription-card{grid-template-columns:1fr;gap:22px;padding:24px}.subscription-actions .primary{align-self:stretch}.login-layout{gap:35px;grid-template-columns:1fr 1fr}.login-intro h1{font-size:37px}.connection-art{width:270px}.art-center{left:112px}.lower-grid{grid-template-columns:1fr}.page-heading h1{font-size:29px}.domain-pill{font-size:10px}.settings-grid{grid-template-columns:1fr}.login-card{padding:26px}}
@media(max-width:580px){.brand-muted{font-size:11px}.header-right{gap:6px}.secure{font-size:9px}.page-heading{display:block}.domain-pill{display:inline-block;margin-top:15px}.nodes-grid{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column}.section-title .button-row{align-self:flex-end}.subscription-card h2{font-size:19px}.node-card{padding:21px}.login-layout{display:block;min-height:0;max-width:380px}.login-intro{margin:15px 0 30px}.login-intro h1{font-size:32px;margin:10px 0}.login-intro h1 br{display:none}.login-intro>p{font-size:12px}.connection-art{display:none}.login-card{padding:28px}.settings summary span{display:none}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}dialog{padding:22px}footer{gap:10px;flex-direction:column}.panel{padding:21px}}

.subscription-url .quiet{flex-shrink:0;white-space:nowrap}

.optional{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px}.source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line)}.source-row h3{font-size:13px}.source-row p{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.source-row .source-tools{display:flex;gap:2px;flex-shrink:0;align-items:center}.source-row .quiet{padding:5px 7px;font-size:11px}.source-row .enabled{color:var(--green)}.link-label{margin-top:17px;margin-bottom:7px}#node-link-name,#source-name{margin-top:7px}#node-link-fields textarea,#source-url{font-size:12px;overflow-wrap:anywhere}.subscription-actions .button-row{justify-content:flex-end}.subscription-actions .button-row button{white-space:nowrap}.node-bottom .quiet{padding:5px 8px}.panel-heading>button{margin-left:auto;flex-shrink:0}@media(max-width:580px){.source-row{align-items:flex-start}.source-row .source-tools{flex-wrap:wrap;max-width:120px;justify-content:flex-end}.subscription-actions .button-row{flex-wrap:wrap}.subscription-actions .button-row .primary{flex:1}.panel-heading>button{padding:7px 10px}.node-bottom .quiet{padding:5px 7px}}

.keys-panel{margin-top:20px}.password-settings{max-width:480px;padding-top:24px}.password-settings h3{margin-bottom:8px}#key-format{width:100%}#key-url{margin-top:8px}#login-form label{display:block}#key-result{width:660px;max-width:calc(100vw - 32px)}

.qr-block{display:flex;align-items:center;gap:22px;margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:14px}.qr-block img{width:180px;height:180px;image-rendering:pixelated;background:#fff;border-radius:8px;flex-shrink:0}.qr-block p{margin:10px 0 0}.qr-block h3{margin:0}@media(max-width:560px){.qr-block{flex-direction:column;text-align:center}.qr-block img{width:210px;height:210px}}

.check-hint{margin:-8px 0 20px}.node-check{margin:14px 0}.check-badge{display:inline-flex;padding:4px 9px;border-radius:6px;font-size:11px;font-weight:600;background:var(--line);color:var(--muted)}.check-badge.available{color:var(--green);background:rgba(33,160,116,.12)}.check-badge.unavailable,.check-badge.error{color:#d35d55;background:rgba(211,93,85,.1)}.check-badge.checking{color:var(--green)}.check-detail{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}.node-bottom>div{display:flex;flex-wrap:wrap;justify-content:flex-end}.node-bottom{gap:8px}@media(max-width:580px){.section-title>.button-row{flex-wrap:wrap;justify-content:flex-end}.node-bottom{align-items:flex-start;flex-direction:column}.node-bottom>div{justify-content:flex-start}}

.source-details{min-width:0;flex:1}.source-usage{margin-top:10px}.source-usage strong{display:block;font-size:12px;font-weight:600;color:var(--green)}.source-usage p{margin:4px 0 0!important;line-height:1.6}.source-usage progress{display:block;width:min(100%,280px);height:5px;margin:8px 0;border:0;border-radius:4px;overflow:hidden;accent-color:var(--green)}.source-usage progress::-webkit-progress-bar{background:var(--line);border-radius:4px}.source-usage progress::-webkit-progress-value{background:var(--green);border-radius:4px}.source-usage progress.usage-low::-webkit-progress-value{background:#d35d55}.source-usage .usage-warning{color:#d35d55!important}.source-usage .usage-updated{opacity:.8}.source-row:has(.source-usage){align-items:flex-start}.source-row:has(.source-usage) .source-tools{flex-wrap:wrap;justify-content:flex-end;max-width:190px}@media(max-width:580px){.source-row:has(.source-usage) .source-tools{max-width:116px}}

/* Connected subscriptions share a full-width section; backups stay compact. */
.subscription-section{margin-top:42px}.subscription-section>.section-title{margin-top:0}.subscription-section .eyebrow{font-size:9px}.subscription-section h2{margin-top:7px}.sources-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.source-card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.source-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 24px 0}.source-identity{display:flex;align-items:center;gap:12px;min-width:0}.source-mark{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:11px;font-size:18px;font-weight:650;color:var(--accent);background:var(--accent-soft)}.source-card:nth-child(even) .source-mark{color:var(--green);background:rgba(33,160,116,.09)}.source-identity h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.source-identity p{font-size:10px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.source-heading-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}.source-enabled{font-size:10px;border:1px solid var(--line);border-radius:30px;color:var(--muted);padding:4px 9px;white-space:nowrap}.source-enabled.is-enabled{color:var(--green);background:rgba(33,160,116,.07);border-color:transparent}.source-menu{position:relative}.source-menu summary{list-style:none;cursor:pointer;font-size:22px;line-height:28px;width:28px;text-align:center;color:var(--muted);border-radius:6px}.source-menu summary::-webkit-details-marker{display:none}.source-menu summary:hover{background:var(--accent-soft);color:var(--accent)}.source-menu>div{position:absolute;z-index:20;right:0;top:34px;min-width:136px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.12)}.source-menu button{display:block;width:100%;padding:9px 12px;border-radius:6px;text-align:left;background:transparent;color:var(--text);font-size:12px}.source-menu button:hover{background:var(--accent-soft)}.source-menu .source-remove{color:var(--danger)}.source-card-body{padding:25px 24px 20px;min-height:180px}.usage-metrics{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.usage-label{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.usage-remaining{display:block;font-size:26px;font-weight:620;letter-spacing:-.8px;line-height:1.25;color:var(--text)}.usage-expiry{text-align:right;padding-bottom:2px}.usage-expiry strong{font-size:13px;font-weight:500;white-space:nowrap}.usage-consumption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;color:var(--muted);font-size:10px}.quota-progress{appearance:none;display:block;height:5px;width:100%;border:0;border-radius:5px;overflow:hidden;margin:9px 0 11px;background:var(--line);accent-color:var(--accent)}.quota-progress::-webkit-progress-bar{background:var(--line)}.quota-progress::-webkit-progress-value{background:var(--accent);border-radius:5px}.source-card:nth-child(even) .quota-progress::-webkit-progress-value{background:var(--green)}.quota-progress.usage-low::-webkit-progress-value{background:var(--danger)}.quota-empty{opacity:.5}.usage-caption{font-size:10px;line-height:1.6;color:var(--muted)}.usage-warning{color:var(--danger)!important}.usage-placeholder{min-height:130px;display:flex;flex-direction:column;justify-content:center}.usage-placeholder p{font-size:13px;color:var(--muted)}.source-card-footer{padding:17px 24px 21px;border-top:1px solid var(--line)}.source-snapshot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 10px;color:var(--muted);font-size:9px;line-height:1.7}.snapshot-label{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--text)}.snapshot-dot{width:5px;height:5px;border-radius:50%;background:var(--green);display:inline-block}.snapshot-notice{font-size:10px;line-height:1.7;color:var(--danger);margin-top:7px}.source-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.source-card-actions .secondary{font-size:11px;padding:8px 12px;background:var(--input)}.source-expand{font-size:11px;color:var(--accent);background:transparent;padding:8px 0}.source-footnote{color:var(--muted);font-size:10px;line-height:1.9;margin:15px 2px 0}.source-node-browser{border-top:1px solid var(--line);padding:18px 24px 14px;background:var(--input);border-radius:0 0 16px 16px}.source-search{display:flex;gap:12px;align-items:center;margin-bottom:12px}.source-search input{font-size:11px;padding:9px 11px;background:var(--panel);min-width:0}.source-search>span{font-size:10px;color:var(--muted);white-space:nowrap}.source-node-list{max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.source-node-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:12px 0;border-top:1px solid var(--line)}.source-node-row:first-child{border-top:0}.source-node-row strong{font-size:11px;font-weight:550;line-height:1.6;display:block;overflow-wrap:anywhere}.source-node-address{display:block;margin-top:3px;font-family:ui-monospace,SFMono-Regular,monospace;font-size:9px;color:var(--muted);overflow-wrap:anywhere}.source-node-row .protocol{font-size:8px;letter-spacing:.3px}.source-node-row .quiet{font-size:10px;padding:6px 3px;color:var(--accent)}.source-node-empty{font-size:11px;color:var(--muted);line-height:1.8;padding:14px 0}.source-more{display:block;margin:8px auto 0;font-size:10px;color:var(--accent)}#source-node-dialog{width:700px}.source-node-config{padding:18px;margin-top:18px;background:var(--input);border:1px solid var(--line);border-radius:10px;font-size:11px;line-height:1.8;max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.backup-panel{display:grid;grid-template-columns:1fr 1.35fr;gap:40px;margin-top:28px;padding:30px 32px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.backup-intro .eyebrow{font-size:9px}.backup-intro h2{font-size:18px;margin:8px 0 8px}.backup-intro>p{font-size:11px;color:var(--muted);line-height:1.8}.backup-stat{display:flex;align-items:center;gap:9px;margin-top:20px;font-size:10px;color:var(--muted)}.backup-stat-number{font-size:19px;font-weight:600;color:var(--text);letter-spacing:-.5px}.backup-latest{display:block;color:var(--muted);font-size:9px;margin-top:5px}.backup-actions-grid{display:grid;grid-template-columns:1fr;gap:9px;align-content:start}.backup-action{display:flex;align-items:center;gap:13px;width:100%;border:1px solid var(--line);background:var(--input);padding:16px;border-radius:11px;text-align:left;color:var(--text)}.backup-action:hover{border-color:var(--accent);background:var(--accent-soft)}.backup-action-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;font-size:20px;color:var(--accent);background:var(--panel);flex-shrink:0}.backup-action strong{display:block;font-size:12px;font-weight:550}.backup-action small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:3px}.backup-arrow{margin-left:auto;color:var(--muted);font-size:15px}.backup-note{color:var(--muted);font-size:9px;line-height:1.9;padding:0 2px;margin-top:2px}
@media(max-width:820px){.sources-grid{grid-template-columns:1fr}.source-card-body{min-height:0}.source-snapshot{font-size:10px}.backup-panel{gap:25px;grid-template-columns:1fr 1.2fr;padding:26px}.source-card-heading{padding-top:22px}.source-identity h3{font-size:15px}}
@media(max-width:580px){.subscription-section{margin-top:30px}.subscription-section .section-title{align-items:center}.subscription-section .section-title>button{padding:8px 11px;white-space:nowrap}.source-card-heading,.source-card-body,.source-card-footer{padding-left:19px;padding-right:19px}.source-mark{width:36px;height:36px;font-size:16px}.source-heading-tools{gap:5px}.source-identity{gap:10px}.source-enabled{font-size:9px;padding:4px 7px}.usage-remaining{font-size:25px}.usage-expiry strong{font-size:12px}.source-card-body{padding-top:24px}.source-snapshot{align-items:flex-start;flex-direction:column;gap:3px;font-size:9px}.source-card-actions{margin-top:13px}.source-node-browser{padding:15px 19px 12px}.source-node-row{gap:7px}.source-node-row .protocol{padding:4px 5px;font-size:7px}.backup-panel{grid-template-columns:1fr;gap:23px;padding:23px 20px}.backup-intro h2{font-size:17px}.backup-stat{margin-top:15px}.backup-action{padding:13px}.backup-note{font-size:9px}.source-footnote{font-size:9px}}

.source-policy{display:flex;gap:7px;margin-bottom:18px}.source-policy span{font-size:9px;color:var(--muted);border:1px solid var(--line);padding:3px 7px;border-radius:5px}.source-advanced{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.source-advanced summary{cursor:pointer;font-size:12px;color:var(--accent);margin-bottom:15px}.source-advanced select{margin-top:6px}.source-advanced .hint{margin-top:8px}
@media(max-width:580px){.subscription-section>.section-title{flex-direction:row;align-items:center}.subscription-section>.section-title>div{min-width:0;flex:1}.subscription-section>.section-title>button{flex-shrink:0}.subscription-section>.section-title .muted{font-size:10px;line-height:1.8}}

.source-check-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px}
.source-check-toolbar .secondary{font-size:10px;padding:7px 10px}
.source-check-toolbar [role=status]{font-size:10px;color:var(--muted)}
.source-check-note{font-size:9px;color:var(--muted);line-height:1.8;margin:9px 0 12px}
.source-node-row{grid-template-columns:minmax(0,1fr) auto auto auto}
.source-node-main{min-width:0}
.source-node-status{font-size:9px;white-space:nowrap;justify-self:start}
.source-node-tools{display:flex;gap:7px;align-items:center}
#backup-history-dialog{width:940px}
.backup-history-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:22px;margin-top:20px}
.backup-history-list{display:flex;flex-direction:column;gap:7px;max-height:430px;overflow:auto;padding-right:5px}
.backup-version{text-align:left;color:var(--text);background:var(--input);border:1px solid var(--line);border-radius:9px;padding:12px}
.backup-version.is-selected{border-color:var(--accent);background:var(--accent-soft)}
.backup-version strong{display:block;font-size:11px;font-weight:550}
.backup-version span{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.backup-history-preview{min-width:0;max-height:430px;overflow:auto;padding:4px 8px 4px 0;font-size:12px;overflow-wrap:anywhere}
.backup-preview-heading{padding-bottom:17px;border-bottom:1px solid var(--line)}
.backup-preview-heading h3{font-size:17px;margin:7px 0}
.backup-preview-heading p{color:var(--muted);font-size:11px}
.backup-compare-title{font-size:12px;margin:18px 0 12px}
.backup-change{margin:13px 0}
.backup-change h3,.backup-contents h3{font-size:11px;margin-bottom:4px}
.backup-change p,.backup-contents p{font-size:11px;line-height:1.9;color:var(--muted)}
.backup-change p span{color:var(--accent);margin-right:5px}
.backup-contents{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
.backup-contents summary{font-size:11px;color:var(--accent);cursor:pointer;margin-bottom:13px}
.backup-contents h3{margin-top:10px}
@media(max-width:580px){
  .source-node-row{grid-template-columns:minmax(0,1fr) auto auto;row-gap:7px;padding:13px 0}
  .source-node-main{grid-column:1/3;grid-row:1}
  .source-node-row>.protocol{grid-column:3;grid-row:1;justify-self:end}
  .source-node-status{grid-column:1/3;grid-row:2}
  .source-node-tools{grid-column:3;grid-row:2;justify-self:end;gap:13px}
  .source-node-row .quiet{padding:6px 2px;font-size:11px}
  .source-check-toolbar [role=status]{width:100%}
  .backup-history-layout{grid-template-columns:1fr;gap:16px}
  .backup-history-list{max-height:165px;padding-right:4px}
  .backup-history-preview{max-height:260px}
  #backup-history-dialog .dialog-actions{gap:7px;flex-wrap:wrap}
  #backup-history-dialog .dialog-actions button{padding:9px 12px}
}
