:root {
  --bg: #0c0d10;
  --panel: #14161b;
  --panel-2: #1a1d23;
  --line: #292d35;
  --text: #f5f5f2;
  --muted: #969ca8;
  --accent: #ff5f48;
  --green: #41d19a;
  --yellow: #e9b949;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, label, select, input[type="range"] { cursor: pointer; }
.hidden { display: none !important; }
.topbar { height: 64px; display: grid; grid-template-columns: 286px 1fr 286px; align-items: center; border-bottom: 1px solid var(--line); background: #111318; }
.brand { display: flex; gap: 10px; align-items: center; padding-left: 18px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); border-radius: 9px; font-weight: 900; }
.brand strong, .brand small { display: block; }.brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; margin-top: 2px; }
.project-title { justify-self: center; color: #d7d9df; font-size: 14px; }.online-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 8px; }
.profile { justify-self: end; padding-right: 18px; color: var(--muted); font-size: 12px; display: flex; gap: 10px; align-items: center; }.logout-button { border: 0; background: transparent; color: var(--muted); padding: 4px; font-size: 10px; }.logout-button:hover { color: white; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #313641; color: white; font-size: 12px; font-weight: 700; }.avatar.small { flex: 0 0 auto; width: 28px; height: 28px; }
.workspace { height: calc(100vh - 64px); display: grid; grid-template-columns: 286px minmax(420px, 1fr) 340px; }
.sidebar, .comments-panel { background: var(--panel); min-height: 0; display: flex; flex-direction: column; }.sidebar { border-right: 1px solid var(--line); }.comments-panel { border-left: 1px solid var(--line); }
.sidebar { position: relative; }.sidebar-collapse { position: absolute; top: 20px; right: -13px; z-index: 8; width: 26px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--text); font-size: 20px; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.28); }.sidebar-collapse:hover { border-color: var(--accent); color: white; }.review-view .workspace.sidebar-collapsed { grid-template-columns: 42px minmax(420px,1fr) 330px; }.sidebar.collapsed > :not(.sidebar-collapse) { display: none !important; }.sidebar.collapsed .sidebar-collapse { right: 7px; }
.panel-heading, .comments-header { height: 78px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
small { color: var(--muted); font-size: 9px; letter-spacing: .14em; }.panel-heading h2, .comments-header h2 { margin: 3px 0 0; font-size: 17px; }.comments-header h2 span { color: var(--muted); font-weight: 400; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel-2); border-radius: 7px; font-size: 20px; }
.filter-row { display: flex; gap: 5px; padding: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }.filter { border: 0; border-radius: 14px; padding: 5px 9px; color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; }.filter.active { background: #2d3139; color: white; }
.video-list { flex: 1; overflow-y: auto; padding: 8px; }.video-item { position: relative; width: 100%; border: 1px solid transparent; background: transparent; color: white; border-radius: 9px; }.video-item:hover { background: #1c1f25; }.video-item.active { background: #23262d; border-color: #343943; }.video-open { width: 100%; display: grid; grid-template-columns: 50px 1fr; gap: 10px; text-align: left; border: 0; background: transparent; color: white; padding: 9px 31px 9px 9px; }.delete-video { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border: 0; border-radius: 5px; color: #7e8490; background: transparent; font-size: 16px; }.delete-video:hover { color: white; background: #9e3e36; }.video-thumb { width: 50px; height: 38px; border-radius: 5px; background: linear-gradient(135deg, #393e49, #1b1e25); display: grid; place-items: center; color: #d8dbe2; }.video-copy { min-width: 0; }.video-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.video-meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 10px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; display: inline-block; }.pending_annotation { background: #7f8794; }.pending_approval { background: var(--yellow); }.approved { background: var(--green); }
.upload-card { margin: 10px; padding: 13px; border: 1px dashed #3a3f49; border-radius: 9px; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }.upload-card:hover { border-color: var(--accent); }.upload-card strong { font-size: 11px; }.upload-card small { grid-column: 2; margin-top: 3px; font-size: 8px; letter-spacing: 0; }.upload-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; background: #262a31; border-radius: 6px; }.upload-notice { padding: 9px 14px; color: #ffe0da; background: #37201d; font-size: 11px; }
.review-area { min-width: 0; min-height: 0; background: #0e1014; overflow-y: auto; }.empty-state { height: 100%; display: grid; place-content: center; text-align: center; padding: 40px; }.empty-icon { margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #20232a; color: var(--accent); font-size: 26px; }.empty-state h1 { font-size: 23px; margin: 22px 0 8px; }.empty-state p { max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.review-content { min-height: 100%; padding-bottom: 24px; }.video-titlebar { min-height: 78px; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }.video-titlebar h1 { margin: 0; font-size: 17px; max-width: 500px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.video-titlebar p { color: var(--muted); font-size: 10px; margin: 6px 0 0; }.title-actions { display: flex; gap: 8px; align-items: center; }.secondary-button { border: 1px solid var(--line); background: #1a1d23; color: #dadddf; border-radius: 6px; padding: 8px 11px; font-size: 11px; text-decoration: none; }.workflow-button { border: 0; border-radius: 6px; padding: 8px 13px; color: white; font-size: 11px; font-weight: 700; }.workflow-button.save-project { background: var(--accent); }.workflow-button.approve-project { background: #2dbb83; }.workflow-button.approved-project { color: #7ce3b8; background: #17392d; cursor: default; }
.stage-shell { --video-ratio: 1.77778; --portrait-width: 380px; position: relative; background: #070809; margin: 0 22px; border: 1px solid #22252b; border-radius: 9px; overflow: hidden; }.stage-shell.portrait { width: min(var(--portrait-width), calc(100% - 44px)); min-width: 270px; margin: 0 auto; }.video-stage { position: relative; width: 100%; aspect-ratio: var(--video-ratio); display: grid; place-items: center; overflow: hidden; }.video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #050506; }.video-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }.frame-badge { position: absolute; top: 10px; right: 10px; background: rgba(5,6,7,.72); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 5px 8px; font: 10px ui-monospace, monospace; }
.toolstrip { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 8px; background: rgba(20,22,27,.9); border: 1px solid #363a42; }.tool { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; color: #c3c7cf; background: transparent; border: 0; border-radius: 5px; }.tool:hover, .tool.active { color: white; background: #3a3e47; }.tool.active { outline: 1px solid #555b67; }.divider { height: 1px; background: #3a3e47; margin: 2px 3px; }.toolstrip input[type="color"] { width: 27px; height: 27px; border: 0; padding: 3px; background: transparent; }
.transport { display: grid; grid-template-columns: 30px 38px 30px 1fr 86px 58px; gap: 7px; align-items: center; padding: 12px 22px; }.transport button { border: 0; color: #d8dbe2; background: transparent; }.transport .play-button { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #111; }.transport span { font: 10px ui-monospace, monospace; color: #afb4be; }.timeline-stack { min-width: 0; display: flex; flex-direction: column; align-self: stretch; }.timeline-wrap { position: relative; height: 34px; display: flex; align-items: center; }.timecode-center { min-height: 16px; display: flex; justify-content: center; gap: 5px; white-space: nowrap; }.transport input[type="range"] { position: relative; z-index: 1; accent-color: var(--accent); width: 100%; }.timeline-markers { pointer-events: none; position: absolute; z-index: 2; inset: 0 8px; }.timeline-marker { pointer-events: auto; position: absolute; top: 1px; width: 22px; min-width: 22px; height: 19px; transform: translateX(-2px); padding: 0; border: 2px solid #111318 !important; border-radius: 4px; background: #7f858f !important; color: white !important; box-shadow: 0 1px 5px rgba(0,0,0,.55); white-space: nowrap; }.timeline-marker::after { content: ''; position: absolute; left: 6px; bottom: -5px; border-width: 4px 3px 0; border-style: solid; border-color: #7f858f transparent transparent; }.timeline-marker span { display: block; padding: 0 3px; overflow: hidden; color: #fff !important; font: 10px/15px sans-serif !important; text-align: center; }.timeline-marker.selected { outline: 2px solid var(--accent); outline-offset: 1px; background: #a3a8b0 !important; }.timeline-marker.selected::after { border-top-color: #a3a8b0; }.fps-label { text-align: right; }
.comment-compose { margin: 4px 22px 0; padding: 10px; display: flex; gap: 9px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }.comment-compose textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: white; line-height: 1.5; font-size: 12px; }.attach-button, .reply-attach { color: #d1d4da; font-size: 10px; padding: 6px 8px; border: 1px solid #3a3f48; border-radius: 5px; white-space: nowrap; }.attach-button:hover, .reply-attach:hover { color: white; border-color: #69707d; }.primary-button { border: 0; background: var(--accent); color: white; border-radius: 6px; padding: 8px 12px; font-size: 11px; font-weight: 700; }.attachment-name { margin: 5px 24px; color: var(--muted); font-size: 10px; }
.comment-compose > .compose-action{flex:0 0 78px;width:78px;height:36px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:7px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;line-height:1;cursor:pointer}.comment-compose > .compose-action:hover{color:#fff;border-color:transparent;filter:brightness(1.08)}.comment-compose > .compose-action:disabled{cursor:not-allowed;opacity:.55;filter:none}
.all-visible-label { color: var(--muted); font-size: 9px; }.comments-list { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }.comment-card { position: relative; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #181a20; cursor: pointer; transition: border-color .2s, box-shadow .2s; }.comment-card.resolved { opacity: 1; }.comment-card.active, .comment-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,95,72,.12); }.comment-top { display: flex; justify-content: space-between; gap: 8px; }.comment-top-actions { display: flex; align-items: center; gap: 5px; }.resolved-badge { color: #76e0b5; background: #17392d; border: 1px solid #285a46; border-radius: 10px; padding: 3px 6px; font-size: 9px; font-weight: 700; white-space: nowrap; }.comment-author { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }.comment-time { color: var(--accent); border: 0; background: #32211f; border-radius: 4px; font: 10px ui-monospace, monospace; padding: 4px 6px; }.comment-body { font-size: 12px; line-height: 1.55; color: #d7dae0; margin: 10px 0; white-space: pre-wrap; }.comment-image-hint { color: var(--muted); font-size: 10px; margin-bottom: 8px; }.attachment-link { display: block; color: #bfc8ff; background: #21242c; padding: 7px; border-radius: 5px; font-size: 10px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }.attachment-preview { margin-top: 8px; padding: 6px; background: #101216; border: 1px solid #2c3038; border-radius: 6px; }.attachment-preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; border-radius: 4px; background: #08090b; }.attachment-preview a { display: block; margin-top: 6px; color: #bfc8ff; font-size: 9px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.comment-actions { display: flex; gap: 12px; margin-top: 9px; }.comment-actions button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 10px; }.reply { margin: 9px 0 0 20px; padding: 8px 0 0 9px; border-left: 2px solid #30343d; font-size: 10px; color: #b9bec7; }.reply strong { color: #e7e8eb; }.reply-compose { display: none; gap: 5px; margin-top: 8px; flex-wrap: wrap; }.reply-compose.open { display: flex; }.reply-compose .reply-text { min-width: 120px; flex: 1; border: 1px solid var(--line); background: #101216; color: white; border-radius: 4px; padding: 6px; font-size: 10px; }.reply-compose button { border: 0; background: #363b45; color: white; border-radius: 4px; font-size: 10px; }.reply-file-name { flex-basis: 100%; color: var(--muted); font-size: 9px; }
.login-page { min-height: 100vh; overflow: auto; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 10%, #252a33, #0c0d10 55%); }.login-card { width: min(390px, 100%); padding: 34px; border: 1px solid #30343c; border-radius: 14px; background: rgba(20,22,27,.96); box-shadow: 0 30px 70px rgba(0,0,0,.45); }.login-brand { display: flex; align-items: center; gap: 11px; }.login-brand strong, .login-brand small { display: block; }.login-brand small { margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }.login-card h1 { margin: 28px 0 8px; font-size: 24px; }.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; }.login-card form { display: grid; gap: 15px; }.login-card label { color: #c9cdd4; font-size: 11px; }.login-card input { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #343943; border-radius: 7px; outline: 0; background: #0f1115; color: white; }.login-card input:focus { border-color: var(--accent); }.login-card button { margin-top: 4px; padding: 11px; border: 0; border-radius: 7px; background: var(--accent); color: white; font-weight: 700; }.login-card button:disabled { opacity: .6; }.login-error { min-height: 17px; color: #ff9383; font-size: 10px; line-height: 1.5; }
.comment-actions .danger-action, .reply-actions [data-delete-reply] { color: #d6756c; }.reply-actions { display: flex; gap: 9px; margin-top: 7px; }.reply-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }.inline-edit { margin-top: 9px; padding: 9px; border: 1px solid #343943; border-radius: 6px; background: #111318; }.inline-edit textarea { width: 100%; resize: vertical; min-height: 58px; padding: 8px; border: 1px solid #30353e; border-radius: 5px; outline: none; background: #0b0d10; color: white; font-size: 11px; line-height: 1.5; }.inline-edit textarea:focus { border-color: var(--accent); }.edit-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; }.edit-tools button, .edit-attach { padding: 5px 8px; border: 1px solid #3a3f48; border-radius: 5px; background: #262a31; color: #d8dbe2; font-size: 9px; }.edit-tools button:hover, .edit-attach:hover { border-color: #69707d; color: white; }.remove-attachment { color: #c9a6a2; font-size: 9px; }.remove-attachment input { vertical-align: middle; }.edit-file-name { flex-basis: 100%; color: var(--muted); font-size: 9px; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; background: #f5f5f2; color: #111; padding: 9px 15px; border-radius: 7px; font-size: 12px; transition: .2s; z-index: 10; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1050px) { .workspace { grid-template-columns: 235px minmax(400px, 1fr); }.comments-panel { position: fixed; right: 0; top: 64px; bottom: 0; width: 320px; z-index: 5; box-shadow: -15px 0 40px rgba(0,0,0,.35); }.topbar { grid-template-columns: 235px 1fr 180px; } }
@media (max-width: 720px) { body { overflow: auto; }.topbar { grid-template-columns: 1fr auto; }.project-title { display: none; }.workspace { display: block; height: auto; }.sidebar { min-height: 280px; }.review-area { min-height: 640px; }.comments-panel { position: static; width: auto; min-height: 400px; }.transport { grid-template-columns: 28px 34px 28px 1fr; }.transport .timeline-wrap { grid-column: 1 / -1; grid-row: 2; }.transport #duration, .fps-label { display: none; }.comment-compose { flex-wrap: wrap; }.comment-compose textarea { min-width: 220px; } }

/* Portal shell */
:root { --accent:#635bff; --accent-soft:#28245d; --shell:#0d0e17; --nav:#151621; --surface:#171824; --surface-2:#1e202d; --line:#2a2c3b; --text:#f5f6fb; --muted:#8f93aa; --danger:#ff6d72; }
html[data-theme="light"] { --shell:#f5f6fa; --nav:#ffffff; --surface:#ffffff; --surface-2:#f0f1f6; --line:#dfe1e9; --text:#171824; --muted:#6f7383; --accent-soft:#e9e7ff; }
body.app-page { overflow:hidden; background:var(--shell); color:var(--text); }
.app-shell { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr); background:var(--shell); }
.main-nav { min-width:0; display:flex; flex-direction:column; border-right:1px solid var(--line); background:var(--nav); }
.nav-brand { height:64px; padding:0 20px; display:flex; gap:11px; align-items:center; border-bottom:1px solid var(--line); }.nav-brand strong,.nav-brand small{display:block}.nav-brand small{margin-top:2px;font-size:8px;letter-spacing:.16em;color:var(--muted)}
.nav-links { padding:20px 12px; }.nav-divider { height:1px; margin:10px 4px; background:var(--line); }
.nav-item { width:100%; display:flex; align-items:center; gap:12px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:var(--muted); text-align:left; font-size:13px; }.nav-item span:first-child{width:20px;text-align:center;font-size:19px}.nav-item:hover{color:var(--text);background:var(--surface-2)}.nav-item.active{color:#7b74ff;background:var(--accent-soft)}
.nav-bottom { margin-top:auto; padding:14px 12px 18px; border-top:1px solid var(--line); }.nav-account{display:flex;gap:10px;align-items:center;padding:9px 11px 14px}.nav-account strong,.nav-account small{display:block}.nav-account strong{font-size:12px}.nav-account small{margin-top:4px;color:var(--muted);font-size:9px;letter-spacing:0}.nav-account .avatar{background:var(--accent-soft);color:#817bff}
.app-main { min-width:0; height:100vh; display:flex; flex-direction:column; }.app-topbar{height:64px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);background:var(--shell);font-size:12px}.crumb-muted,.crumb-sep{color:var(--muted);margin-right:9px}.top-actions{display:flex;gap:10px}.search-box{width:250px;height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:18px;color:var(--muted);background:var(--surface)}.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text)}.square-button{width:38px;height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted)}
.page-stage{min-height:0;flex:1;overflow:hidden}.portal-view{display:none;height:100%;overflow:auto;padding:34px 36px}.portal-view.active{display:block}.portal-view.review-view{padding:0;overflow:hidden}
.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:34px}.page-heading.compact{margin-bottom:30px}.page-heading h1{margin:3px 0 8px;font-size:25px}.page-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:12px}.eyebrow{margin:0 0 6px!important;color:#7771ff!important;font-size:9px!important;font-weight:800;letter-spacing:.18em}.heading-actions{display:flex;gap:10px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer}.app-page .primary-button{background:var(--accent);color:white;padding:9px 14px}.app-page .secondary-button{background:var(--surface);color:var(--text);border-color:var(--line);padding:9px 13px}.section-label{display:flex;gap:8px;align-items:center;margin-bottom:13px;color:var(--muted);font-size:12px}.count-pill{padding:2px 7px;border-radius:12px;background:var(--surface-2);font-size:9px}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.project-card,.create-project-card{position:relative;min-height:202px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.project-card:hover,.create-project-card:hover{border-color:#5550ba;box-shadow:0 12px 28px rgba(0,0,0,.12)}.project-open{width:100%;height:100%;padding:0;border:0;text-align:left;background:transparent;color:var(--text)}.project-cover{height:126px;display:grid;place-items:center;position:relative;background:linear-gradient(135deg,#282a3d,#171824);color:#8d88ff;font-size:28px}.project-cover small{position:absolute;left:12px;bottom:10px;padding:4px 7px;border-radius:5px;background:rgba(5,6,12,.68);color:#d8d9e6;font-size:9px}.project-card-body{padding:14px;display:flex;justify-content:space-between;gap:10px}.project-card h3{margin:0 0 5px;font-size:13px}.project-card p{margin:0;color:var(--muted);font-size:10px}.project-card-tools{position:absolute;right:9px;top:9px;display:flex;gap:5px}.project-card-tools button{width:30px;height:30px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:rgba(10,11,17,.76);color:#d8d9e6}.project-card-tools .starred{color:#ffd768}.create-project-card{display:flex;gap:14px;align-items:center;justify-content:center;border-style:dashed;color:var(--text)}.create-project-card>span{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:white;font-size:25px}.create-project-card strong,.create-project-card small{display:block;text-align:left}.create-project-card small{margin-top:6px;color:var(--muted)}.trash-card .project-cover{height:105px}.trash-card .project-card-body{align-items:center}.card-actions{display:flex;gap:7px}.card-actions button,.account-actions button{border:1px solid var(--line);border-radius:6px;padding:6px 9px;background:var(--surface-2);color:var(--text);font-size:10px}.danger{color:var(--danger)!important}.portal-empty{grid-column:1/-1;min-height:245px;display:grid;place-content:center;text-align:center;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.portal-empty>span{font-size:32px;color:var(--muted)}.portal-empty strong{margin-top:15px}.portal-empty p{margin:7px 0;color:var(--muted);font-size:11px}
.upload-target{display:flex;justify-content:flex-end;margin-top:-18px;margin-bottom:18px}.upload-target label{color:var(--muted);font-size:10px}.upload-target select{margin-left:9px;min-width:190px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text)}.segment-tabs{display:flex;padding:4px;margin-bottom:16px;border-radius:9px;background:var(--surface-2)}.segment-tabs button{flex:1;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--muted)}.segment-tabs button.active{background:#3b3c49;color:white}.upload-task-list{display:grid;gap:9px}.upload-task{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.upload-file-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--surface-2);color:#817bff}.upload-copy strong{font-size:12px}.upload-copy p{margin:4px 0 8px;color:var(--muted);font-size:9px}.progress-track{height:3px;border-radius:3px;background:var(--line);overflow:hidden}.progress-track i{display:block;height:100%;background:var(--accent)}.upload-status{padding:5px 8px;border-radius:12px;font-size:9px}.upload-status.uploading{color:#aeaaff;background:var(--accent-soft)}.upload-status.completed{color:#55d7a3;background:#16372c}.upload-status.failed{color:#ff999d;background:#3b2025}.upload-error{display:block;margin-top:6px;color:var(--danger)}
.settings-layout{min-height:100%;display:grid;grid-template-columns:220px 1fr;margin:-34px -36px}.settings-menu{padding:32px 14px;border-right:1px solid var(--line);background:var(--nav)}.settings-menu h2{margin:4px 8px 24px}.settings-menu button{width:100%;padding:10px 12px;border:0;border-radius:7px;text-align:left;background:transparent;color:var(--muted)}.settings-menu button.active{background:var(--surface-2);color:var(--text)}.settings-content{padding:36px 30px}.settings-panel{display:none}.settings-panel.active{display:block}.settings-panel h3{margin:0 0 14px;font-size:13px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(180px,250px));gap:14px}.theme-card{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);text-align:left}.theme-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-card strong,.theme-card small{display:block;text-align:center}.theme-card strong{margin-top:12px}.theme-card small{margin-top:5px;color:var(--muted)}.theme-preview{height:112px;display:grid;grid-template-columns:28% 1fr;gap:5px;padding:10px;border-radius:8px;background:#0d0e17}.theme-preview i{grid-row:1/3;background:#181a26}.theme-preview b{background:#252737}.light-preview{background:#f0f1f6}.light-preview i{background:#fff}.light-preview b{background:#dfe1e9}.system-preview{background:linear-gradient(90deg,#10111b 50%,#f5f6fa 50%)}.account-list{display:grid;gap:9px}.account-row{display:grid;grid-template-columns:38px 1fr auto auto;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.account-row strong{font-size:12px}.account-row p{margin:4px 0 0;color:var(--muted);font-size:9px}.account-state,.admin-badge{padding:5px 8px;border-radius:12px;background:#17372d;color:#63d9aa;font-size:9px}.account-state.disabled{background:#352329;color:#e59498}.admin-badge{background:var(--accent-soft);color:#a9a5ff}.account-actions{display:flex;gap:5px}
.review-nav{height:54px;display:flex;align-items:center;gap:20px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--surface)}.back-button{border:0;background:transparent;color:var(--muted)}.review-nav .project-title{justify-self:auto}.review-view .workspace{height:calc(100% - 54px);grid-template-columns:270px minmax(420px,1fr) 330px}.app-page .sidebar,.app-page .comments-panel{background:var(--surface)}.app-page .review-area{background:var(--shell)}.app-page .comment-card{background:var(--surface)}.app-page .comment-compose{background:var(--surface)}
.app-dialog{width:min(480px,calc(100vw - 32px));padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 28px 80px rgba(0,0,0,.38)}.app-dialog::backdrop{background:rgba(4,5,10,.72);backdrop-filter:blur(3px)}.app-dialog form{position:relative;padding:26px;display:grid;gap:15px}.app-dialog h2{margin:0 0 5px}.app-dialog label{color:var(--muted);font-size:10px}.app-dialog input:not([type="checkbox"]),.app-dialog textarea{width:100%;margin-top:7px;padding:10px 11px;border:1px solid var(--line);border-radius:7px;outline:0;background:var(--shell);color:var(--text);resize:vertical}.app-dialog input:focus,.app-dialog textarea:focus{border-color:var(--accent)}.dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:var(--muted);font-size:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.app-dialog fieldset{display:grid;grid-template-columns:1fr 1fr;gap:9px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}.app-dialog fieldset label{color:var(--text)}
.dialog-error{margin:-4px 0 0;padding:11px 13px 11px 38px;border:1px solid #ff6d72;border-radius:8px;background:#3b2025;color:#ffdadd;font-size:12px;font-weight:700;line-height:1.5;white-space:pre-wrap;box-shadow:0 5px 18px rgba(120,20,28,.2);outline:0}.dialog-error::before{content:'!';position:absolute;margin-left:-25px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#ff6d72;color:#fff;font-size:12px;font-weight:900}.account-dialog .dialog-error{position:sticky;top:0;z-index:2}.account-dialog input[aria-invalid="true"]{border-color:#ff6d72!important;box-shadow:0 0 0 2px rgba(255,109,114,.16)}html[data-theme="light"] .dialog-error{background:#fff0f1;color:#a8212a}
html[data-theme="light"] body,html[data-theme="light"] .review-area,html[data-theme="light"] .sidebar,html[data-theme="light"] .comments-panel{color:var(--text)}html[data-theme="light"] .review-area{background:var(--shell)}html[data-theme="light"] .sidebar,html[data-theme="light"] .comments-panel,html[data-theme="light"] .comment-card{background:var(--surface)}html[data-theme="light"] .video-item,html[data-theme="light"] .video-open,html[data-theme="light"] .comment-compose textarea{color:var(--text)}html[data-theme="light"] .video-item:hover,html[data-theme="light"] .video-item.active{background:var(--surface-2)}html[data-theme="light"] .filter.active{background:#dddfea;color:#171824}html[data-theme="light"] .secondary-button{background:var(--surface)}html[data-theme="light"] .comment-compose,html[data-theme="light"] .inline-edit{background:var(--surface)}html[data-theme="light"] .inline-edit textarea{background:#fff;color:#171824}html[data-theme="light"] .attachment-preview{background:#f4f5f8}
@media(max-width:1050px){.app-shell{grid-template-columns:205px 1fr}.review-view .workspace{grid-template-columns:225px minmax(390px,1fr)}.review-view .comments-panel{top:118px}.theme-options{grid-template-columns:1fr 1fr}.project-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr))}}
@media(max-width:760px){body.app-page{overflow:auto}.app-shell{display:block}.main-nav{position:sticky;top:0;z-index:20;display:block;border-right:0}.nav-brand{display:none}.nav-links{height:54px;padding:6px;display:flex}.nav-divider,.nav-bottom{display:none}.nav-item{justify-content:center}.nav-item span:first-child{display:none}.app-main{height:auto;min-height:calc(100vh - 54px)}.app-topbar{position:sticky;top:54px;z-index:15}.search-box{width:150px}.page-stage{overflow:visible}.portal-view{height:auto;min-height:calc(100vh - 118px);padding:22px 16px}.page-heading{display:block}.heading-actions{margin-top:18px}.settings-layout{display:block;margin:-22px -16px}.settings-menu{display:flex;gap:6px;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.settings-menu .eyebrow,.settings-menu h2{display:none}.settings-content{padding:22px 16px}.theme-options{grid-template-columns:1fr}.review-view .workspace{height:auto}.review-nav{position:sticky;top:118px;z-index:10}.review-view .comments-panel{position:static}.app-dialog fieldset{grid-template-columns:1fr}}
.no-upload .nav-item[data-nav="uploads"],.no-upload .upload-card,.no-upload .panel-heading .icon-button{display:none}.read-only-review .comment-compose,.read-only-review .range-compose,.read-only-review .toolstrip,.read-only-review .comment-actions,.read-only-review .reply-actions,.read-only-review .reply-compose{display:none!important}.no-project-management [data-open-trash],.no-project-management .replace-video-button{display:none}
.transport .play-button{position:relative;width:46px!important;height:46px!important;border-radius:50%!important;background:var(--accent)!important;color:#fff!important;font-size:0!important;box-shadow:0 7px 18px rgba(99,91,255,.34);transition:transform .15s,box-shadow .15s}.transport .play-button:hover{transform:scale(1.06);box-shadow:0 9px 24px rgba(99,91,255,.44)}.transport .play-button::before{content:'▶';display:block;margin-left:3px;font-size:18px;line-height:1;color:#fff}.transport .play-button.playing::before{content:'Ⅱ';margin-left:0;font-size:17px;font-weight:800}
.transport .play-button:disabled{cursor:wait;opacity:.55;transform:none;box-shadow:none}.transport .play-button:disabled::before{content:'…';margin-left:0}

/* Review controls and display preferences */
.display-options{max-width:720px;margin-top:28px;display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:12px}.display-options label{padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font-size:11px}.display-options select{float:right;min-width:105px;padding:5px;border:1px solid var(--line);border-radius:5px;background:var(--shell);color:var(--text)}
html[data-card-size="small"] .project-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}html[data-card-size="small"] .project-card,html[data-card-size="small"] .create-project-card{min-height:170px}html[data-card-size="small"] .project-cover{height:100px}html[data-card-size="large"] .project-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr))}html[data-card-size="large"] .project-card,html[data-card-size="large"] .create-project-card{min-height:245px}html[data-card-size="large"] .project-cover{height:165px}html[data-density="compact"] .portal-view{padding-top:22px}html[data-density="compact"] .project-grid{gap:9px}html[data-density="compact"] .account-list{gap:5px}html[data-font-size="small"]{font-size:14px}html[data-font-size="large"]{font-size:18px}html[data-descriptions="false"] .project-card-body p{display:none}
.export-menu{position:relative}.export-menu-list{position:absolute;right:0;top:calc(100% + 6px);z-index:20;width:120px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--surface);box-shadow:0 10px 30px rgba(0,0,0,.35)}.export-menu-list a{display:block;padding:8px;border-radius:5px;color:var(--text);font-size:11px;text-decoration:none;cursor:pointer}.export-menu-list a:hover{background:var(--surface-2)}
.transport{grid-template-columns:30px 46px 30px minmax(180px,1fr) auto auto auto 30px 58px}.transport select{max-width:78px;padding:4px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);font-size:10px}.volume-control{display:flex;align-items:center;gap:3px;font-size:10px}.volume-control input{width:62px!important}.transport #fullscreenButton{font-size:18px}
.range-compose{margin:0 22px 5px;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.range-compose button{padding:5px 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);font-size:9px}.range-compose button:disabled{opacity:.45}.comment-input-wrap{position:relative;display:flex;flex:1}.comment-input-wrap textarea{width:100%}.mention-suggestions{position:absolute;left:0;bottom:calc(100% + 8px);z-index:25;width:230px;max-height:190px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--surface);box-shadow:0 12px 30px rgba(0,0,0,.35)}.mention-suggestions button{width:100%;display:flex;justify-content:space-between;padding:7px;border:0;border-radius:4px;background:transparent;color:var(--text);text-align:left}.mention-suggestions button:hover{background:var(--surface-2)}.mention-suggestions small{letter-spacing:0}.mention{color:#8e88ff;font-weight:700}
.timeline-marker.range-marker{width:max(22px,var(--marker-width,0%));border-radius:9px;background:#635bff!important;opacity:.9}.timeline-marker.range-marker::after{display:none}
.panel-tabs{display:grid;grid-template-columns:1fr 1fr;padding:8px 10px;border-bottom:1px solid var(--line)}.panel-tabs button{padding:8px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted)}.panel-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}[data-side-content="comments"]{min-height:0;display:flex;flex:1;flex-direction:column}[data-side-content="info"]{overflow:auto}.video-info-panel{padding:22px}.video-info-panel h3{margin:0 0 20px;font-size:14px;overflow-wrap:anywhere}.video-info-panel dl{margin:0}.video-info-panel dl div{display:contents}.video-info-panel dt,.video-info-panel dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line);font-size:10px}.video-info-panel dt{float:left;clear:left;color:var(--muted)}.video-info-panel dd{text-align:right;color:var(--text)}
body:fullscreen .stage-shell,.stage-shell:fullscreen{width:100vw!important;height:100vh!important;margin:0!important;border:0!important;border-radius:0!important}.stage-shell:fullscreen .video-stage{height:calc(100vh - 58px);aspect-ratio:auto!important}
@media(max-width:1100px){.transport{grid-template-columns:30px 46px 30px 1fr 70px 30px}.transport .timeline-stack{grid-column:1/-1;grid-row:2}.transport .volume-control,.transport .fps-label,.transport #qualitySelect{display:none}.review-view .workspace.sidebar-collapsed{grid-template-columns:42px minmax(390px,1fr)}}
.layout-settings-wrap{position:relative}.layout-settings-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:35;width:290px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 18px 45px rgba(0,0,0,.35);color:var(--text)}.layout-setting-row,.layout-switch{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}.layout-setting-row label{width:100%;display:flex;align-items:center;justify-content:space-between}.layout-setting-row select{min-width:112px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--shell);color:var(--text)}.segmented{display:flex;padding:2px;border-radius:7px;background:var(--surface-2)}.segmented button{padding:6px 11px;border:0;border-radius:5px;background:transparent;color:var(--muted)}.segmented button.active{background:var(--accent);color:#fff}.layout-switch input{accent-color:var(--accent)}.layout-divider{height:1px;margin:7px 0;background:var(--line)}.layout-settings-panel>small{display:block;margin:8px 0 2px;color:var(--muted);font-size:9px;letter-spacing:.14em}.project-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.project-cover img.failed{display:none}.project-cover img:not(.failed)~.project-cover-fallback{display:none}.project-cover-fallback{position:relative;z-index:0}.project-cover small{z-index:2}.project-card-fields{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;color:var(--muted);font-size:9px}.project-card-fields span::before{margin-right:4px;color:var(--accent)}.project-size-field::before{content:'◫'}.project-uploader-field::before{content:'♙'}html[data-thumbnail-fit="contain"] .project-cover img{object-fit:contain;background:#0d0f16}html[data-project-aspect="landscape"] .project-cover{height:auto;aspect-ratio:16/9}html[data-project-aspect="square"] .project-cover{height:auto;aspect-ratio:1}html[data-project-aspect="portrait"] .project-cover{height:auto;aspect-ratio:3/4}html[data-card-info="false"] .project-card-body p,html[data-card-info="false"] .project-card-fields{display:none}html[data-show-file-size="false"] .project-size-field,html[data-show-uploader="false"] .project-uploader-field{display:none}.project-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--title-lines,1);overflow:hidden}html[data-title-lines="1"]{--title-lines:1}html[data-title-lines="2"]{--title-lines:2}html[data-title-lines="3"]{--title-lines:3}html[data-project-layout="list"] .project-grid{display:flex;flex-direction:column}html[data-project-layout="list"] .project-card,html[data-project-layout="list"] .create-project-card{min-height:106px}html[data-project-layout="list"] .project-open{display:grid;grid-template-columns:170px 1fr}html[data-project-layout="list"] .project-cover{height:104px;aspect-ratio:auto}html[data-project-layout="list"] .project-card-body{align-items:center}html[data-project-layout="list"] .create-project-card{justify-content:flex-start;padding-left:46px}
.upload-notice{padding:10px 14px}.upload-notice-copy{display:flex;justify-content:space-between;gap:8px}.upload-notice-copy strong{color:#fff}.inline-progress,.indeterminate-progress{height:5px;margin-top:8px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.15)}.inline-progress i{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .16s linear}.quality-progress{margin:-4px 22px 10px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:10px}.quality-progress>div:first-child{display:flex;justify-content:space-between;gap:10px}.quality-progress strong{color:var(--accent)}.indeterminate-progress i{display:block;width:38%;height:100%;border-radius:inherit;background:var(--accent);animation:quality-progress 1.1s ease-in-out infinite}@keyframes quality-progress{from{transform:translateX(-110%)}to{transform:translateX(370%)}}
html[data-theme="light"] .comment-body,html[data-theme="light"] .reply,html[data-theme="light"] .reply-content,html[data-theme="light"] .reply strong{color:#252733}html[data-theme="light"] .comment-time{color:#4d45e6;background:#ecebff}html[data-theme="light"] .comment-card{color:#20222a}.comment-card{overflow:hidden}.timeline-markers{overflow:hidden}.timeline-marker.range-marker span{max-width:100%}
html[data-theme="light"]{--accent:#5267ff;--accent-soft:#e7ebff}html[data-theme="light"] .primary-button,html[data-theme="light"] .workflow-button.save-project,html[data-theme="light"] .workflow-button.approve-project,html[data-theme="light"] .segment-tabs button.active,html[data-theme="light"] .filter.active{background:var(--accent);color:#fff}html[data-theme="light"] .workflow-button.no-permission{background:#e4e6ed;color:#7b7f8e}.workflow-button.no-permission{background:#30333c;color:var(--muted);cursor:not-allowed}
.workflow-status{min-width:106px;padding:8px 28px 8px 11px;border:1px solid #48c997;border-radius:6px;background:#17392d;color:#8aebc2;font-size:11px;font-weight:700;outline:0}.workflow-status:focus{box-shadow:0 0 0 2px rgba(65,209,154,.18)}
html[data-theme="light"] .sidebar-collapse{border-color:#d8dbe3;background:#eceef3;color:#747986;box-shadow:0 4px 12px rgba(54,60,78,.12)}html[data-theme="light"] .sidebar-collapse:hover{border-color:#c5c9d3;background:#e2e5eb;color:#4f5461}
@media(max-width:760px){.layout-settings-panel{position:fixed;left:16px;right:16px;top:126px;width:auto}html[data-project-layout="list"] .project-open{grid-template-columns:120px 1fr}}
