:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-body: 16px; --font-small: 14px; --font-caption: 14px; --font-control: 15px; --font-title: 23px; --font-display: 39px; --font-login-title: 25px; --font-brand: 22px; --font-section: 16px; --font-dialog: 19px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --bg: #f1f4f2; --surface: #ffffff; --surface-muted: #eaf0ec;
  --text: #283d34; --secondary: #52675c; --muted: #62766a; --line: #c5d1c9;
  --nav-bg: #102d25; --nav-text: #d4e1da; --nav-muted: #abc1b4; --nav-selected: #285749; --nav-line: #345348;
  --primary: #205f4d; --primary-hover: #174c3d; --on-primary: #ffffff;
  --good: #22633e; --good-bg: #eaf4ec; --busy: #246197; --busy-bg: #eaf2fa;
  --pending: #925713; --pending-bg: #fff3df; --danger: #a12e35; --danger-bg: #fbeef0;
  --disabled-text: #58685f; --disabled-bg: #e8ede9; --focus: #c77b17;
  --media-workspace: #252c2b; --backdrop: #102d254d;
  --row-height: 48px; --row-pad: 7px; --sidebar-width: 224px; --radius: 3px;
  color: var(--text); background: var(--bg); font-size: var(--font-body); line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; } [hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; }
button:hover:not(:disabled) { background: var(--surface-muted); border-color: var(--secondary); }
button:disabled { cursor: not-allowed; color: var(--disabled-text); background: var(--disabled-bg); border-color: var(--line); }
button.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
button.primary:hover:not(:disabled) { background: var(--primary-hover); }
button.danger { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
button.danger:hover:not(:disabled) { color: var(--on-primary); background: var(--danger); }
button.danger:disabled { color: var(--danger); opacity: .75; }
input, select { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 6px 9px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type=checkbox] { accent-color: var(--primary); }
.muted, .quiet { color: var(--muted); }
.eyebrow { font-size: var(--font-caption); letter-spacing: 1.3px; color: var(--muted); font-weight: 600; margin: 0 0 var(--space-1); }
.wordmark { font-size: 23px; letter-spacing: 1px; font-weight: 750; }
.wordmark span { font-size: var(--font-small); font-weight: 500; margin-left: var(--space-2); }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.login-brand { padding: 11vh 8vw; background: var(--nav-bg); color: var(--on-primary); }
.login-brand h1 { font-size: var(--font-display); line-height: 1.5; font-weight: 550; margin: 10vh 0 var(--space-5); }
.login-brand > p { color: var(--nav-text); line-height: 1.9; }
.login-brand .quiet { color: var(--nav-muted); font-size: var(--font-small); margin-top: 13vh; }
.login-form { align-self: center; max-width: 360px; width: calc(100% - 64px); margin: 32px auto; display: flex; flex-direction: column; gap: var(--space-3); }
.login-form h2 { font-size: var(--font-login-title); margin: 0; font-weight: 600; }
.login-form > p.muted { margin: 0 0 var(--space-4); font-size: var(--font-small); line-height: 1.8; }
.login-form label { font-weight: 600; margin-top: var(--space-1); }
.login-form input, .login-form .primary { padding: 11px; }
.login-form .primary { margin-top: var(--space-2); }
.form-message { font-size: var(--font-small); line-height: 1.8; min-height: 22px; color: var(--danger); }
.locked-screen { max-width: 600px; margin: 18vh auto; padding: var(--space-6); line-height: 1.8; }
.locked-screen button { margin-right: var(--space-2); }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav-bg); color: var(--nav-text); padding: var(--space-5) var(--space-3); display: flex; flex-direction: column; }
.brand { display: flex; gap: var(--space-3); align-items: center; padding: 0 var(--space-2) var(--space-5); font-size: var(--font-brand); font-weight: 700; letter-spacing: 1px; }
.brand-symbol { width: 32px; height: 34px; display: grid; place-items: center; background: var(--nav-selected); color: var(--on-primary); border: 1px solid var(--nav-line); border-radius: var(--radius); font-size: var(--font-brand); }
.brand small { display: block; font-size: var(--font-caption); color: var(--nav-muted); font-weight: 400; margin-top: 3px; letter-spacing: .4px; }
.nav-label { font-size: var(--font-caption); color: var(--nav-muted); letter-spacing: 1px; padding: 0 var(--space-3); margin: var(--space-1) 0 var(--space-2); }
.nav-item { display: block; border: 0; width: 100%; text-align: left; padding: 9px var(--space-3); background: transparent; margin-bottom: var(--space-1); color: var(--nav-text); }
.nav-item.active, .sidebar button:hover:not(:disabled) { color: var(--on-primary); background: var(--nav-selected); border-color: transparent; }
.node-panel { margin-top: var(--space-4); border-top: 1px solid var(--nav-line); padding-top: var(--space-3); overflow: auto; }
.tree-heading { font-size: var(--font-small); color: var(--nav-muted); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-2) var(--space-2); }
.text-button { border: 0; background: transparent; font-size: var(--font-caption); padding: 3px; color: inherit; }
.node-tree { font-size: var(--font-small); color: var(--nav-text); }
.tree-all, .tree-node, .tree-device { display: block; border: 0; background: transparent; color: inherit; text-align: left; width: 100%; padding: 7px var(--space-2); overflow: hidden; text-overflow: ellipsis; }
.tree-device { padding-left: var(--space-6); font-size: var(--font-small); }
.tree-node { font-weight: 550; font-size: var(--font-body); }
.node-tree button.selected { background: var(--nav-selected); color: var(--on-primary); }
.node-tree details summary { list-style: none; display: flex; align-items: center; }
.node-tree details summary:before { content: '›'; font-size: 18px; color: var(--nav-muted); }
.node-tree details[open] summary:before { transform: rotate(90deg); }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--nav-line); padding: var(--space-4) var(--space-2) 0; font-size: var(--font-small); color: var(--nav-muted); line-height: 1.7; }
.sidebar-footer small { display: block; font-size: var(--font-caption); padding-left: var(--space-3); }
.connection-dot { display: inline-block; width: 6px; height: 6px; background: var(--nav-muted); border-radius: 50%; margin-right: 5px; }
main { min-width: 0; padding: 0 var(--space-5); display: flex; flex-direction: column; }
.topbar { height: 49px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: var(--font-small); gap: var(--space-4); }
.account { display: flex; align-items: center; gap: var(--space-2); color: var(--text); }
.account > button { font-size: var(--font-small); padding: 4px var(--space-2); }
.role-label { font-size: var(--font-caption); color: var(--secondary); background: var(--surface-muted); padding: 3px 6px; border-radius: var(--radius); }
.scope-banner { display: flex; gap: var(--space-2); align-items: center; font-size: var(--font-small); color: var(--secondary); padding: var(--space-3) 0 0; flex-wrap: wrap; }
.scope-banner #check-label { margin-left: auto; font-size: var(--font-caption); }
.label { font-size: var(--font-caption); padding: 2px 6px; border: 1px solid var(--line); color: var(--primary); background: var(--good-bg); border-radius: var(--radius); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0 var(--space-3); }
.page-heading h1 { font-size: var(--font-title); font-weight: 600; margin: 0 0 5px; }
.page-heading p:last-child { font-size: var(--font-small); color: var(--secondary); margin: 0; }
.heading-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.density-toggle { display: flex; align-items: center; font-size: var(--font-small); color: var(--secondary); gap: var(--space-1); }
.density-toggle input { margin: 0; }
.toolbar { display: flex; align-items: center; gap: var(--space-2); padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toolbar label { font-size: var(--font-small); color: var(--secondary); }
.toolbar input[type=search] { min-width: 210px; flex: 1; max-width: 340px; }
.toolbar select { font-size: var(--font-small); min-height: 33px; }
.toolbar .result-meta { margin-left: auto; font-size: var(--font-small); color: var(--secondary); }
.summary-strip { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-bottom: 0; font-size: var(--font-small); color: var(--secondary); background: var(--surface-muted); flex-wrap: wrap; }
.summary-strip strong { color: var(--text); font-size: var(--font-body); margin-left: 6px; }
.summary-strip .summary-note { margin-left: auto; font-size: var(--font-caption); }
.table-scroll { overflow: auto; border: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - 300px); min-height: 120px; }
table { border-collapse: collapse; width: 100%; font-size: var(--font-body); white-space: nowrap; }
thead { position: sticky; top: 0; z-index: 1; }
th { text-align: left; background: var(--surface-muted); color: var(--secondary); font-size: var(--font-small); font-weight: 600; padding: 9px var(--space-3); border-bottom: 1px solid var(--line); position: relative; }
td { height: var(--row-height); padding: var(--row-pad) var(--space-3); border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: var(--good-bg); }
.environment-table { table-layout: fixed; }
.environment-table td { overflow: hidden; text-overflow: ellipsis; }
.name-link { background: transparent; border: 0; color: var(--primary); font-size: var(--font-body); font-weight: 600; line-height: 1.5; padding: 0; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.name-link:hover:not(:disabled) { background: transparent; text-decoration: underline; border: 0; }
.subline { display: block; font-size: var(--font-caption); line-height: 1.5; color: var(--secondary); margin-top: 1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: Consolas, monospace; font-size: var(--font-small); color: var(--secondary); }
.status { display: inline-flex; align-items: center; gap: 5px; color: var(--good); font-size: var(--font-body); }
.status:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.busy { color: var(--busy); } .status.pending { color: var(--pending); } .status.danger { color: var(--danger); } .status.neutral { color: var(--secondary); }
.operation-group { display: flex; gap: 5px; }
.operation-group button { font-size: var(--font-small); padding: 4px 7px; }
.column-resizer { position: absolute; top: 5px; right: 0; width: 9px; height: 24px; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; cursor: col-resize; touch-action: none; }
.column-resizer:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-muted); }
.empty-cell { height: 120px; text-align: center; font-size: var(--font-body); color: var(--secondary); white-space: normal; line-height: 2; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: var(--space-3) 0; font-size: var(--font-small); color: var(--secondary); }
.pagination > span:first-child { margin-right: auto; }
.pagination button { font-size: var(--font-small); }
.main-footer { margin-top: auto; display: flex; justify-content: space-between; padding: var(--space-4) 0; border-top: 1px solid var(--line); font-size: var(--font-caption); color: var(--muted); gap: var(--space-4); }
.notice { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--good); background: var(--good-bg); color: var(--good); font-size: var(--font-body); line-height: 1.7; }
.notice.error { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.drawer { position: fixed; margin: 0 0 0 auto; top: 0; right: 0; width: 510px; max-width: 100vw; height: 100vh; max-height: 100vh; border: 0; border-left: 1px solid var(--line); padding: 0; background: var(--surface); color: var(--text); }
.drawer::backdrop, .modal::backdrop { background: var(--backdrop); }
.drawer > header, .modal > header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--line); padding: var(--space-4) var(--space-5); }
.drawer h2, .modal h2 { font-size: var(--font-dialog); font-weight: 600; margin: var(--space-1) 0; }
.drawer #drawer-body { padding: var(--space-5); line-height: 1.8; }
.drawer h3 { font-size: var(--font-body); color: var(--secondary); border-bottom: 1px solid var(--line); padding-bottom: var(--space-2); margin-top: var(--space-5); }
.kv { display: grid; grid-template-columns: 115px minmax(0,1fr); font-size: var(--font-body); row-gap: var(--space-2); }
.kv dt { color: var(--secondary); } .kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.drawer p { font-size: var(--font-small); color: var(--secondary); }
.drawer table { font-size: var(--font-small); } .drawer .table-scroll { max-height: 220px; min-height: 60px; }
.modal { width: 620px; max-width: calc(100vw - 24px); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.modal #modal-body { padding: var(--space-5); }
.modal .form-grid { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: var(--space-3); align-items: center; }
.form-grid > label { color: var(--secondary); font-size: var(--font-body); }
.form-grid input, .form-grid select { width: 100%; }
.form-grid .checks { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 380px; }
.checks label { display: flex; align-items: center; gap: var(--space-1); font-size: var(--font-small); color: var(--secondary); }
.checks input { width: auto; margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: var(--space-2); border-top: 1px solid var(--line); margin-top: var(--space-5); padding-top: var(--space-4); }
.form-help { font-size: var(--font-small); line-height: 1.8; color: var(--secondary); }
.dialog-options { display: flex; flex-direction: column; gap: var(--space-2); }
.dialog-options button { text-align: left; padding: var(--space-2) var(--space-3); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: var(--space-4) 0 var(--space-3); }
.section-title h2 { font-size: var(--font-section); font-weight: 600; margin: 0; }
.user-table { min-width: 680px; } .audit-table { min-width: 760px; }
.filter-empty { padding: var(--space-5); color: var(--secondary); }
.compact { --row-pad: 5px; }
.media-workspace { background: var(--media-workspace); color: var(--on-primary); }
@media(max-width:1100px) { :root { --sidebar-width: 200px; } main { padding: 0 var(--space-4); } .heading-actions { max-width: 330px; justify-content: flex-end; } .scope-banner #check-label { display: none; } }
@media(max-width:720px) { .workspace { grid-template-columns: 1fr; } .sidebar { height: auto; position: static; padding: var(--space-3); } .brand { padding: 0 0 var(--space-2); } .nav-label, .sidebar-footer, .node-panel { display: none !important; } .sidebar nav { display: flex; flex-wrap: wrap; gap: var(--space-1); } .nav-item { width: auto; margin: 0; padding: var(--space-2); } .topbar { height: 48px; } .page-heading { align-items: flex-start; flex-direction: column; padding-top: var(--space-3); } .heading-actions { max-width: none; } .scope-banner { line-height: 1.7; } .table-scroll { max-height: 60vh; } .login-screen { grid-template-columns: 1fr; } .login-brand { display: none; } .login-form { min-height: 75vh; justify-content: center; } .main-footer { flex-direction: column; } .toolbar input[type=search] { min-width: 180px; } .modal .form-grid { grid-template-columns: 1fr; } .modal { width: 94vw; } .role-label { display: none; } .summary-strip { gap: var(--space-3); } }
/* Comfortable default: no page scaling; overflow preserves readable type. */
button { font-size: var(--font-control); line-height: 1.5; min-height: 40px; }
input:not([type=checkbox]), select { height: 40px; line-height: 1.5; }
th { font-size: var(--font-control); line-height: 1.5; }
.nav-item, .tree-all, .tree-node, .tree-device { font-size: var(--font-body); line-height: 1.5; }
.operation-group button, .pagination button, .account > button { font-size: var(--font-control); }
.operation-group button { min-height: 32px; }
.name-link { min-height: 0; line-height: 1.5; }
.column-resizer { min-height: 0; }
.environment-table td.binding-cell { height: 60px; padding-top: 6px; padding-bottom: 6px; }
.environment-table td { white-space: nowrap; }
.cell-line { display: block; overflow: hidden; text-overflow: ellipsis; }
.environment-table .subline { margin-top: 0; }
.sidebar { overflow-y: auto; }

.text-button { font-size: var(--font-control); }

.login-form input, .login-form .primary { height: 40px; padding: 6px 10px; }

/* Unified P3.5 layout: readable tables fill the available workspace. */
:root { --font-body:15px; --font-control:14px; --font-title:22px; --row-height:46px; --row-pad:6px; }
.workspace { height:100dvh; min-height:0; overflow:hidden; }
main { height:100%; overflow:hidden; }
#page-content { min-height:0; flex:1; display:flex; flex-direction:column; overflow:auto; }
#page-content > .table-scroll { flex:1; min-height:100px; max-height:none; }
#page-content > .toolbar, #page-content > .summary-strip, #page-content > .pagination { flex-shrink:0; }
.table-scroll table { width:100%; }
.environment-table td.binding-cell { height:54px; padding-top:4px; padding-bottom:4px; }
button { min-height:36px; padding:5px 10px; }
input:not([type=checkbox]), select, .login-form input, .login-form .primary { height:auto; min-height:36px; padding:5px 9px; }
.name-link { min-height:0; }
.column-resizer { min-height:0; }
.toolbar input[type=search] { max-width:none; flex:1 1 180px; min-width:160px; }
.toolbar select { max-width:240px; min-height:36px; }
.scope-banner { padding-top:8px; }
.page-heading { padding:10px 0; }
.main-footer { margin-top:0; padding:6px 0; }
.action-menu { position:fixed; z-index:20; width:180px; max-height:calc(100dvh - 16px); overflow:auto; background:var(--surface); border:1px solid var(--line); box-shadow:0 4px 18px #102d2530; padding:4px; }
.action-menu button { display:block; width:100%; text-align:left; border:0; min-height:34px; }
.action-menu button:focus-visible { outline-offset:-3px; background:var(--surface-muted); }
.drawer { width:560px; }
@media(max-width:720px) { .workspace { display:flex; flex-direction:column; } .sidebar { flex-shrink:0; } main { flex:1; min-height:0; } .drawer { width:100vw; } .main-footer { display:none; } }

.watch-workspace { background:var(--media-workspace); color:#fff; padding:16px; text-align:center; }
.watch-workspace p { color:#e0e7e2; overflow-wrap:anywhere; }
.watch-workspace strong { color:#ffe673; }
.watch-workspace canvas { display:block; width:240px; max-width:100%; height:auto; margin:12px auto; image-rendering:pixelated; background:#202525; }

.watch-workspace video { display:block; width:100%; max-height:70vh; background:#151d21; object-fit:contain; }
.watch-workspace video[tabindex] { touch-action:none; user-select:none; cursor:crosshair; }
.watch-workspace video[tabindex]:focus-visible { outline:2px solid #ffe673; outline-offset:2px; }
.watch-workspace .control-bar { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:12px 0; }
.watch-workspace .control-bar input { min-width:12em; }
.watch-workspace .watch-meta { font-size:.9em; }
/* P43C cloud-phone window: floating, draggable; screen + right toolbar + bottom navigation. */
.phone-window { --pw-chrome:#1d2226; --pw-chrome-2:#262c31; --pw-ink:#e6ecef; --pw-dim:#9aa7ae; --pw-accent:#3ddc97;
  position:fixed; z-index:1000; top:64px; right:24px; display:flex; flex-direction:column; width:max-content; max-width:calc(100vw - 16px);
  background:var(--pw-chrome); color:var(--pw-ink); border-radius:12px; box-shadow:0 18px 48px #0007, 0 0 0 1px #ffffff14; overflow:hidden; user-select:none; }
.phone-window.pinned { z-index:1001; box-shadow:0 18px 48px #0008, 0 0 0 2px var(--pw-accent); }
.phone-window .pw-title { display:flex; align-items:center; gap:8px; height:38px; padding:0 6px 0 12px; background:var(--pw-chrome-2); cursor:move; touch-action:none; }
.phone-window.pinned .pw-title { cursor:default; }
.phone-window .pw-name { font-size:13px; font-weight:600; max-width:12em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-window .pw-badge { font-size:11px; color:var(--pw-dim); background:#ffffff0f; border-radius:9px; padding:1px 8px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.phone-window .pw-actions { margin-left:auto; display:flex; gap:2px; }
.phone-window button { color:inherit; background:transparent; border:0; border-radius:6px; padding:0; display:grid; place-items:center; }
.phone-window button:hover:not(:disabled) { background:#ffffff1a; border:0; }
.phone-window .pw-head-btn { width:28px; height:28px; color:var(--pw-dim); }
.phone-window .pw-head-btn[aria-pressed=true] { color:var(--pw-accent); }
.phone-window .pw-close:hover:not(:disabled) { background:#e5484d; color:#fff; }
.phone-window .pw-icon, .phone-window .pw-icon svg { width:18px; height:18px; display:block; }
.phone-window .pw-body { display:flex; align-items:stretch; }
.phone-window .pw-screen { position:relative; background:#000; display:flex; align-items:center; justify-content:center; }
.phone-window .pw-screen video { display:block; height:min(72vh, 680px); width:auto; aspect-ratio:296/640; max-width:calc(100vw - 80px); object-fit:contain; background:#000; }
.phone-window .pw-screen:fullscreen video { height:100vh; max-width:100vw; }
.phone-window video[tabindex] { touch-action:none; user-select:none; cursor:default; outline:none; }
.phone-window .pw-tools { display:flex; flex-direction:column; gap:6px; padding:10px 6px; background:var(--pw-chrome); border-left:1px solid #ffffff10; }
.phone-window .pw-tool { width:36px; height:36px; color:var(--pw-ink); }
.phone-window .pw-nav { display:flex; justify-content:space-around; padding:4px 44px 4px 0; background:var(--pw-chrome-2); }
.phone-window .pw-nav-btn { width:64px; height:34px; color:var(--pw-ink); }
.phone-window .pw-text { display:flex; gap:6px; padding:8px; background:var(--pw-chrome-2); border-top:1px solid #ffffff10; }
.phone-window .pw-text input { flex:1; min-width:0; background:#11161a; color:var(--pw-ink); border:1px solid #ffffff26; }
.phone-window .pw-text button { padding:4px 12px; background:var(--pw-accent); color:#06281a; }
.phone-window .pw-status { margin:0; padding:0 10px; font-size:11px; color:var(--pw-dim); max-width:340px; }
.phone-window .pw-status:empty { display:none; }
.phone-window .pw-status:not(:empty) { padding:4px 10px 6px; }
.phone-window.minimized .pw-body, .phone-window.minimized .pw-nav, .phone-window.minimized .pw-text, .phone-window.minimized .pw-status { display:none; }
@media (max-width:720px) { .phone-window { top:8px; right:8px; } .phone-window .pw-screen video { height:min(64vh, 560px); } }
