:root{--font-geist-sans:Arial, Helvetica, sans-serif;--font-geist-mono:Menlo, Monaco, monospace;--ink:#1d211c;--muted:#6d726b;--paper:#f3f1e9;--surface:#fffef9;--surface-alt:#f8f7f1;--line:#d9d8cf;--line-dark:#b9bbb2;--orange:#e85d36;--orange-dark:#c84927;--green:#2f7654;--green-soft:#e5f3e9;--blue:#3f6889;--blue-soft:#e8f0f6;--yellow:#8a6721;--yellow-soft:#f8efd5;--red:#aa3d31;--red-soft:#f8e7e3;--shadow:0 1px 2px #1d211c0f}*{box-sizing:border-box}html{background:var(--paper);min-width:320px}body{color:var(--ink);background:var(--paper);font-family:var(--font-geist-sans), Arial, Helvetica, sans-serif;margin:0}button,input,select,textarea{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #e85d3642}button:disabled,select:disabled{cursor:not-allowed;opacity:.52}.app-shell{flex-direction:column;min-height:100vh;display:flex}.utility-header{background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;min-height:58px;padding:0 24px;display:flex}.brand{color:var(--ink);letter-spacing:-.04em;align-items:center;gap:9px;font-size:18px;font-weight:780;text-decoration:none;display:inline-flex}.brand-mark{color:#fff;background:var(--orange);border:1px solid var(--ink);width:29px;height:29px;box-shadow:2px 2px 0 var(--ink);border-radius:7px;place-items:center;font-size:17px;display:grid}.brand small{color:var(--orange-dark);font-family:var(--font-geist-mono), monospace;letter-spacing:0;background:#fff2ed;border:1px solid #efc0b1;border-radius:999px;padding:2px 5px;font-size:8px}.local-status{color:var(--muted);align-items:center;gap:8px;font-size:11px;font-weight:650;display:inline-flex}.account-header{justify-content:flex-end;align-items:center;gap:12px;min-width:0;display:flex}.account-email{max-width:260px;color:var(--muted);font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.account-logout{color:var(--muted);font-size:10px;font-weight:680;text-decoration:none}.account-logout:hover{color:var(--ink);text-decoration:underline}.status-dot{background:#4aa574;border-radius:999px;width:7px;height:7px;box-shadow:0 0 0 3px #4aa57421}.workspace{flex:1;width:min(1500px,100% - 32px);margin:16px auto 0}.workspace-heading{justify-content:space-between;align-items:end;gap:24px;min-height:54px;display:flex}.eyebrow{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.11em;text-transform:uppercase;margin:0 0 3px;font-size:9px;font-weight:700}.workspace-heading h1{letter-spacing:-.045em;margin:0;font-size:29px;font-weight:760;line-height:1}.queue-summary{color:var(--muted);align-items:center;gap:7px;font-size:11px;display:flex}.queue-summary strong{color:var(--ink);font-family:var(--font-geist-mono), monospace}.control-bar{background:var(--surface);border:1px solid var(--line-dark);min-height:68px;box-shadow:var(--shadow);border-radius:8px 8px 0 0;grid-template-columns:minmax(280px,1fr) minmax(150px,190px) 112px auto;align-items:stretch;gap:8px;margin-top:12px;padding:9px;display:grid}.destination-control{border-right:1px solid var(--line);grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;column-gap:10px;min-width:0;padding:4px 8px;display:grid}.control-label,.compact-field>span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:9px;font-weight:720}.destination-control>strong{min-width:0;font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:560;overflow:hidden}.inline-actions{align-items:center;gap:4px;display:flex}.inline-actions button,.table-actions button,.detail-actions button{min-height:30px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:5px;padding:0 8px;font-size:10px;font-weight:670}.inline-actions button:hover,.table-actions button:hover,.detail-actions button:hover{color:var(--ink);background:var(--surface-alt);border-color:var(--line)}.inline-actions .repair-button{color:var(--orange-dark);background:#fff3ee;border-color:#efc8ba}.compact-field{border-right:1px solid var(--line);gap:4px;min-width:0;padding:3px 7px;display:grid}.compact-field select{width:100%;min-width:0;height:29px;color:var(--ink);background:var(--surface-alt);border:1px solid var(--line);border-radius:5px;padding:0 25px 0 7px;font-size:10px}.queue-toggle{color:#fff;background:var(--ink);border:1px solid var(--ink);cursor:pointer;white-space:nowrap;border-radius:6px;min-width:108px;padding:0 14px;font-size:11px;font-weight:720}.queue-toggle:hover{background:#333832}.queue-toggle.resume{color:#163d2b;background:var(--green-soft);border-color:#87b69a}.entry-row{border-right:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark);border-left:1px solid var(--line-dark);background:#fff9e8;grid-template-columns:28px 62px minmax(160px,1fr) 92px 112px;align-items:center;gap:7px;min-height:49px;padding:6px 8px;display:grid}.entry-index{width:24px;height:24px;color:var(--yellow);background:var(--yellow-soft);font-family:var(--font-geist-mono), monospace;border:1px solid #e7d394;border-radius:5px;place-items:center;font-weight:800;display:grid}.entry-row label{font-size:10px;font-weight:720}.entry-row textarea{resize:none;width:100%;height:34px;min-height:34px;color:var(--ink);border:1px solid var(--line-dark);font-family:var(--font-geist-mono), monospace;white-space:nowrap;background:#fff;border-radius:5px;padding:8px 10px;font-size:10px;line-height:16px}.entry-row textarea::placeholder{color:#9a9c95}.entry-preset{color:var(--muted);font-family:var(--font-geist-mono), monospace;text-align:center;font-size:10px}.add-button{color:#fff;background:var(--orange);border:1px solid var(--orange-dark);cursor:pointer;border-radius:5px;height:34px;padding:0 12px;font-size:10px;font-weight:740}.add-button:hover{background:var(--orange-dark)}.notice{border:1px solid;border-radius:6px;align-items:center;gap:8px;min-height:38px;margin-top:8px;padding:7px 9px;font-size:11px;display:flex}.notice>span{color:#fff;border-radius:999px;flex:none;place-items:center;width:20px;height:20px;font-weight:800;display:grid}.notice p{overflow-wrap:anywhere;flex:1;min-width:0;margin:0}.notice button{color:inherit;cursor:pointer;background:0 0;border:0;font-size:18px}.notice.error{color:#76261f;background:var(--red-soft);border-color:#e2b3ab}.notice.error>span{background:var(--red)}.notice.success{color:#24563f;background:var(--green-soft);border-color:#b5d2bf}.notice.success>span{background:var(--green)}.table-tools{justify-content:space-between;align-items:center;gap:16px;min-height:45px;margin-top:10px;display:flex}.filters,.table-actions{align-items:center;gap:4px;display:flex}.filters button{height:31px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;align-items:center;gap:7px;padding:0 10px;font-size:10px;font-weight:690;display:inline-flex}.filters button:hover,.filters button.active{color:var(--ink);background:var(--surface);border-color:var(--line)}.filters button.active{box-shadow:var(--shadow)}.filters button span{min-width:18px;color:var(--muted);font-family:var(--font-geist-mono), monospace;text-align:center;background:#ecebe5;border-radius:999px;padding:2px 5px;font-size:8px}.queue-table-wrap{background:var(--surface);border:1px solid var(--line-dark);box-shadow:var(--shadow);border-radius:7px;overflow:hidden}.queue-table{border-collapse:collapse;table-layout:fixed;text-align:left;width:100%}.queue-table th{height:34px;color:var(--muted);border-right:1px solid var(--line);border-bottom:1px solid var(--line-dark);font-family:var(--font-geist-mono), monospace;letter-spacing:.07em;text-transform:uppercase;background:#efeee8;padding:0 9px;font-size:8px;font-weight:730}.queue-table th:last-child,.queue-table td:last-child{border-right:0}.queue-table th:first-child{width:54px}.queue-table th:nth-child(2){width:auto}.queue-table th:nth-child(3){width:126px}.queue-table th:nth-child(4){width:104px}.queue-table th:nth-child(5){width:155px}.queue-table th:nth-child(6){width:150px}.queue-table th:nth-child(7){width:126px}.queue-row{background:var(--surface);height:55px}.queue-row:hover{background:#fffdf5}.queue-row td{border-right:1px solid #ecebe6;border-bottom:1px solid var(--line);vertical-align:middle;min-width:0;padding:7px 9px;font-size:10px;overflow:hidden}.queue-row.status-failed{background:#fffaf8}.queue-row.status-completed{background:#fbfefb}.number-cell{padding:0 5px!important}.expand-button{width:100%;height:31px;color:var(--muted);cursor:pointer;font-family:var(--font-geist-mono), monospace;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;gap:5px;font-size:9px;display:flex}.expand-button:hover{color:var(--ink);background:#ecebe5}.expand-button span{font-size:14px}.title-cell strong,.title-cell span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.title-cell strong{font-size:11px;font-weight:680}.title-cell span{color:var(--muted);margin-top:4px;font-size:9px}.status-badge{max-width:100%;min-height:22px;color:var(--muted);border:1px solid var(--line);text-overflow:ellipsis;white-space:nowrap;background:#efeee9;border-radius:999px;align-items:center;gap:6px;padding:3px 7px;font-size:8px;font-weight:730;display:inline-flex;overflow:hidden}.status-badge i{border:1px solid;border-top-color:#0000;border-radius:999px;flex:none;width:7px;height:7px;animation:.8s linear infinite spin}.status-badge.inspecting,.status-badge.queued,.status-badge.waiting{color:var(--blue);background:var(--blue-soft);border-color:#bfd0de}.status-badge.downloading{color:var(--orange-dark);background:#fff0ea;border-color:#edc0b1}.status-badge.completed{color:var(--green);background:var(--green-soft);border-color:#b4d2bf}.status-badge.failed{color:var(--red);background:var(--red-soft);border-color:#e0b3ab}.status-badge.interrupted,.status-badge.stopped{color:var(--yellow);background:var(--yellow-soft);border-color:#e3d29e}.row-quality{width:100%;height:29px;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:4px;padding:0 22px 0 6px;font-size:9px}.row-quality:disabled{color:var(--muted);background:var(--surface-alt);opacity:1}.row-progress{min-width:0}.row-progress-track{background:#e4e3dd;border-radius:999px;width:100%;height:5px;overflow:hidden}.row-progress-track span{background:var(--orange);border-radius:inherit;height:100%;transition:width .3s;display:block}.status-completed .row-progress-track span{background:var(--green)}.row-progress small{color:var(--muted);font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:8px;display:block;overflow:hidden}.output-cell span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:9px;display:block;overflow:hidden}.status-failed .output-cell span{color:var(--red)}.row-actions{text-align:center}.row-action-group{justify-content:center;gap:4px;display:flex}.row-action-group button{min-width:47px;padding-inline:6px}.row-actions button,.row-actions a{min-width:50px;height:29px;color:var(--ink);border:1px solid var(--line-dark);cursor:pointer;background:#fff;border-radius:4px;justify-content:center;align-items:center;padding:0 8px;font-size:9px;font-weight:680;text-decoration:none;display:inline-flex}.row-actions .primary-action{color:#fff;background:var(--orange);border-color:var(--orange-dark)}.row-actions .danger-action{color:var(--red);background:var(--red-soft);border-color:#dfb1a9}.row-actions .remove-action{color:var(--red);border-color:#dfb1a9}.automatic-label{color:#9a9c96;font-size:8px}.detail-row td{background:var(--surface-alt);border-bottom:1px solid var(--line-dark);padding:0}.row-detail{grid-template-columns:160px minmax(0,1fr) auto;align-items:start;gap:16px;min-height:116px;padding:12px 14px 12px 54px;display:grid}.detail-media,.thumbnail-fallback{border:1px solid var(--line);background:#e5e4de;border-radius:5px;width:160px;height:90px;overflow:hidden}.detail-media img{object-fit:cover;width:100%;height:100%;display:block}.thumbnail-fallback{color:var(--muted);font-family:var(--font-geist-mono), monospace;place-items:center;font-size:9px;display:grid}.row-detail dl{gap:7px;min-width:0;margin:0;display:grid}.row-detail dl>div{grid-template-columns:55px minmax(0,1fr);gap:8px;min-width:0;display:grid}.row-detail dt{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:8px;font-weight:720}.row-detail dd{color:#555a54;min-width:0;font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:9px;line-height:1.45;overflow:hidden}.row-detail .error-copy{color:var(--red);white-space:normal}.empty-row td{height:210px;color:var(--muted);text-align:center}.empty-row strong,.empty-row span{display:block}.empty-row strong{color:var(--ink);font-size:14px}.empty-row span{margin-top:7px;font-size:11px}.utility-footer{color:#858981;border-top:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:20px;width:min(1500px,100% - 32px);min-height:56px;margin:16px auto 0;padding:13px 0 20px;font-size:9px;display:flex}.utility-footer p{margin:0}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1020px){.queue-table th:nth-child(6),.queue-table td:nth-child(6){display:none}}@media (width<=780px){.utility-header{padding:0 15px}.workspace,.utility-footer{width:min(100% - 20px,720px)}.control-bar{grid-template-columns:minmax(0,1fr) auto}.destination-control{border-right:0;border-bottom:1px solid var(--line);grid-column:1/-1}.compact-field{border-right:0}.queue-toggle{grid-area:2/2}.entry-row{grid-template-columns:28px minmax(0,1fr) 102px}.entry-row label,.entry-preset{display:none}.table-tools{flex-direction:column;align-items:flex-start}.filters{width:100%;overflow-x:auto}.queue-table th:nth-child(4),.queue-table td:nth-child(4),.queue-table th:nth-child(5),.queue-table td:nth-child(5),.queue-table th:nth-child(6),.queue-table td:nth-child(6){display:none}.queue-table th:nth-child(3){width:120px}.queue-table th:nth-child(7){width:118px}.row-detail{grid-template-columns:120px minmax(0,1fr);padding-left:12px}.detail-media,.thumbnail-fallback{width:120px;height:68px}.detail-actions{grid-column:2}.utility-footer{flex-direction:column}}@media (width<=540px){.account-email{display:none}.local-status{font-size:0}.workspace-heading{flex-direction:column;align-items:flex-start;gap:8px}.control-bar{grid-template-columns:1fr}.destination-control{grid-template-columns:1fr;row-gap:6px}.inline-actions{flex-wrap:wrap}.compact-field,.queue-toggle{grid-area:auto/1;min-height:45px}.entry-row{grid-template-columns:28px minmax(0,1fr)}.add-button{grid-column:2}.queue-table th:nth-child(3),.queue-table td:nth-child(3){display:none}.row-detail{grid-template-columns:1fr}.detail-media,.thumbnail-fallback{display:none}.detail-actions{grid-column:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.local-status.offline .status-dot,.status-dot.offline{background:#9a9c95;box-shadow:0 0 0 3px #6d726b1f}.remote-entry{background:var(--surface);border:1px solid var(--line-dark);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:minmax(0,1fr) 170px 130px;align-items:end;gap:8px;margin-top:14px;padding:14px;display:grid}.remote-connection-bar{min-height:48px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:7px;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:12px;padding:7px 9px;font-size:10px;display:grid}.remote-connection-bar.connected{background:#f7fcf8;border-color:#b5d2bf}.remote-connection-bar>div{gap:2px;min-width:0;display:grid}.remote-connection-bar strong{color:var(--ink);font-size:11px}.remote-connection-bar>div span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.remote-connection-bar button{min-height:32px;color:var(--ink);background:var(--surface-alt);border:1px solid var(--line-dark);cursor:pointer;border-radius:5px;padding:0 10px;font-size:10px;font-weight:680}.remote-entry label{color:var(--muted);letter-spacing:.05em;text-transform:uppercase;font-size:9px;font-weight:720}.remote-entry label:first-child{grid-column:1}.remote-entry textarea{resize:vertical;min-height:86px;color:var(--ink);background:var(--surface-alt);border:1px solid var(--line);font-family:var(--font-geist-mono), monospace;border-radius:6px;grid-area:2/1/span 2;padding:10px;font-size:11px;line-height:1.5}.remote-entry label[for=remote-preset]{grid-column:2}.remote-entry select{height:36px;color:var(--ink);background:var(--surface-alt);border:1px solid var(--line);border-radius:6px;grid-column:2;padding:0 9px;font-size:11px}.remote-entry .add-button{grid-column:3;height:36px}.remote-list{gap:7px;margin-top:14px;display:grid}.remote-empty{min-height:180px;color:var(--muted);text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;place-content:center;gap:6px;padding:24px;font-size:12px;display:grid}.remote-empty strong{color:var(--ink);font-size:16px}.remote-card{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--line-dark);box-shadow:var(--shadow);border-radius:7px;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:11px 12px;display:grid}.remote-card.status-downloading{border-left-color:var(--blue)}.remote-card.status-completed{border-left-color:var(--green)}.remote-card.status-failed{border-left-color:var(--red)}.remote-card-main{grid-template-columns:minmax(220px,1fr) 130px 110px 68px;align-items:center;gap:12px;min-width:0;display:grid}.remote-source{gap:3px;min-width:0;display:grid}.remote-source strong{font-size:12px}.remote-source a{color:var(--muted);font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;font-size:9px;text-decoration:none;overflow:hidden}.remote-source a:hover{color:var(--orange-dark);text-decoration:underline}.remote-quality,.remote-time{color:var(--muted);font-size:10px}.remote-time{text-align:right}.remote-detail{min-width:0;color:var(--muted);grid-column:1;gap:5px;font-size:10px;display:grid}.remote-detail .row-progress-track{max-width:420px}.remote-actions{grid-area:1/2/span 2;justify-content:end;align-items:center;gap:5px;display:flex}.remote-actions button,.device-row button{min-height:30px;color:var(--muted);background:var(--surface-alt);border:1px solid var(--line);cursor:pointer;border-radius:5px;padding:0 9px;font-size:10px;font-weight:650}.remote-actions button:hover,.device-row button:hover{color:var(--ink);border-color:var(--line-dark)}.devices-panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;margin:24px 0 30px;padding:14px}.devices-panel h2{margin:0 0 12px;font-size:17px}.device-row{border-top:1px solid var(--line);grid-template-columns:8px minmax(140px,1fr) auto auto;align-items:center;gap:10px;min-height:42px;font-size:11px;display:grid}.device-row>span:not(.status-dot),.device-empty{color:var(--muted)}.pair-shell{place-items:center;min-height:100vh;padding:24px;display:grid}.pair-card{background:var(--surface);border:1px solid var(--line-dark);border-radius:10px;gap:18px;width:min(480px,100%);padding:28px;display:grid;box-shadow:0 12px 40px #1d211c17}.pair-card h1,.pair-card p{margin:0}.pair-card>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.6}.pair-code{color:var(--ink);background:var(--yellow-soft);font-family:var(--font-geist-mono), monospace;letter-spacing:.13em;text-align:center;border:1px solid #e7d394;border-radius:7px;padding:13px;font-size:21px;font-weight:750}.pair-card .add-button{height:42px}@media (width<=760px){.inbox-shell .workspace-heading{flex-direction:column;align-items:start;gap:10px}.remote-entry{grid-template-columns:1fr}.remote-entry label,.remote-entry label:first-child,.remote-entry label[for=remote-preset],.remote-entry textarea,.remote-entry select,.remote-entry .add-button{grid-area:auto/1}.remote-card{grid-template-columns:1fr}.remote-card-main{grid-template-columns:1fr auto}.remote-quality{display:none}.remote-time{text-align:left}.remote-actions{grid-area:auto/1;justify-content:start}.device-row{grid-template-columns:8px 1fr auto}.device-row>span:not(.status-dot){display:none}}
