/* ONVIDEL media, sharing and profile behavior. Visual foundation: Carbon. */
.quality-bar{display:flex;height:12px;margin:16px 0;background:var(--raised)}.quality-bar .online{background:#33825b}.quality-bar .offline{background:#d3473e}.quality-bar .unknown{background:#8a8c92}
:root{--action-bg:#bd4500;--action-ink:#fff;--action-hover:#973700;--danger-ink:#b32620;--danger-bg:#fff3f1}
[data-theme=dark]{--action-bg:#ff963f;--action-ink:#17191c;--action-hover:#ffad69;--danger-ink:#ffb4ab;--danger-bg:#392321}
button,.button-link{transition:background-color .14s,color .14s,border-color .14s;filter:none}
button:hover,.button-link:hover{filter:none}
button:not([class]),button[type=submit],#grid-save,#start-add,#add-camera-button,#create-user-button,.dds-primary,.ak-dialog form>button[type=submit]{background:var(--action-bg);color:var(--action-ink);border:1px solid var(--action-bg)}
button:not([class]):hover,button[type=submit]:hover,#grid-save:hover,#start-add:hover,#add-camera-button:hover,#create-user-button:hover,.dds-primary:hover,.ak-dialog form>button[type=submit]:hover{background:var(--action-hover);color:var(--action-ink)}
button.secondary,.button-link.secondary,.ak-select.secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}
button.secondary:hover,.button-link.secondary:hover,.ak-select.secondary:hover{color:var(--text);background:var(--raised);border-color:var(--muted)}
button.danger,button.danger:disabled,.button-link.danger{color:var(--danger-ink);background:var(--danger-bg);border:1px solid var(--danger-ink)}
button.danger:hover{color:var(--danger-bg);background:var(--danger-ink)}
button:disabled,button[aria-disabled=true]{opacity:.5;cursor:not-allowed;filter:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app-shell .main-sidebar nav button,.app-shell .topbar button{color:#e8e9eb;background:transparent}
.app-shell .main-sidebar nav button:hover,.app-shell .topbar button:hover{background:#303338;color:#fff}
.app-shell .main-sidebar nav button.active{background:#332820;border-color:#fb8c36;color:#ffad6b}
.app-shell .section-tabs button,.ak-tabs .ak-tab{color:var(--muted);background:transparent}
.app-shell .section-tabs button:hover,.ak-tabs .ak-tab:hover{color:var(--text);background:var(--raised)}
.app-shell .section-tabs button.active,.ak-tabs .ak-tab[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent)}
.app-shell .topbar #logout-button{border:1px solid #6b6e75}
.app-shell .topbar #logout-button:hover{border-color:#ff9a50}
.app-shell .device-name,.app-shell .table-sort,.app-shell .text-button,.app-shell .notice-item,.app-shell .icon-button{color:var(--text)}
.app-shell .profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:20px;align-items:start;max-width:none}
.app-shell #profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0;background:none;border:0}
.profile-section{padding:20px;border:1px solid var(--border);background:var(--surface);min-width:0}
.profile-section>label{display:block;margin-bottom:18px}.profile-section h2,.profile-section h3{margin-top:0}
#profile-form>.customer-details{grid-column:1/-1;padding:20px;background:var(--surface);border:1px solid var(--border);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#profile-form>.customer-details h3,#profile-form>.customer-details>p{grid-column:1/-1;margin:0}
#profile-form .customer-company{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#profile-form .customer-company[hidden]{display:none}
.profile-save{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:12px 16px;background:var(--surface);border:1px solid var(--border)}
.profile-save .form-error{flex:1;margin:0}.profile-save button{margin-left:auto}
.app-shell .profile-card{width:100%;padding:20px;font-size:14px}.app-shell .profile-card h2{font-size:20px}
.sharing-layout{display:grid;grid-template-columns:minmax(280px,400px) minmax(0,1fr);gap:20px;align-items:start}
#share-cameras{max-height:260px;overflow:auto;margin:18px 0;border:1px solid var(--border);padding:12px}
#share-cameras label{display:flex;align-items:center;gap:10px;padding:8px;margin:0}
.share-card{border-bottom:1px solid var(--border);padding:16px 0}.share-card:first-child{padding-top:0}.share-card h3{margin:0}.share-card p{margin:8px 0}.share-card small{color:var(--muted)}
.camera-settings{margin-top:20px;border-top:1px solid var(--border);padding-top:16px}.camera-settings summary{cursor:pointer;font-weight:500}.camera-settings form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.camera-settings .check-setting{align-self:center}.camera-settings .settings-note{grid-column:1/-1}
.export-panel{margin-top:20px;border-top:1px solid var(--border);padding-top:20px}.export-panel form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.export-panel label{flex:1;min-width:180px;margin:0}.export-panel button{width:auto}.export-panel small{display:block;margin-top:12px;color:var(--muted)}
.onvidel-player{position:relative;aspect-ratio:16/9;background:#08090a;overflow:hidden;isolation:isolate;min-width:0;width:100%;color:#fff}
.onvidel-player video{display:block;width:100%;height:100%;object-fit:contain}.onvidel-player.cover video{object-fit:cover}
.onvidel-player .player-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:14px;color:#fff;background:#101215db;padding:10px 16px;margin:0;max-width:90%;text-align:center}
.onvidel-player .player-controls{position:absolute;bottom:0;inset-inline:0;padding:14px 12px 10px;display:flex;gap:6px;align-items:center;background:linear-gradient(transparent,#000c);opacity:0;transition:opacity .15s;z-index:3}
.onvidel-player:hover .player-controls,.onvidel-player:focus-within .player-controls{opacity:1}
.app-shell .onvidel-player .player-controls button{border:1px solid #ffffff50;border-radius:3px;color:#fff;background:#171a20ce;min-height:34px;min-width:34px;padding:4px;font-size:19px;width:auto}
.app-shell .onvidel-player .player-controls button:hover{background:#4c3323;color:#ffad69;border-color:#ffad69}
.player-live{margin-right:auto;font-size:11px;color:#9ae3b3;letter-spacing:.06em}
.player-watermark{position:absolute;z-index:2;font-size:clamp(12px,1.5vw,26px);font-weight:750;letter-spacing:-.06em;text-shadow:0 1px 3px #000,1px 0 #000;opacity:.85;pointer-events:none}
.player-watermark[data-position^=top]{top:14px}.player-watermark[data-position^=bottom]{bottom:56px}.player-watermark[data-position$=right]{right:16px}.player-watermark[data-position$=left]{left:16px}
.player-stats{position:absolute;top:52px;left:12px;font-size:12px;background:#101215de;color:#fff;padding:8px;z-index:4;max-width:90%}
.browser-theater{position:fixed!important;inset:0!important;margin:0!important;z-index:9000!important;width:100vw!important;height:100dvh!important;aspect-ratio:auto!important;max-width:none!important;background:#08090a!important;display:grid!important;align-content:stretch!important;padding:48px 8px 8px!important;overflow:auto!important}
.onvidel-player.browser-theater{display:block!important}.onvidel-player.browser-theater video{height:100%}
.theater-open{overflow:hidden}.app-shell .theater-exit{position:absolute;top:8px;left:12px;z-index:9010;background:#24272c;color:#fff;border-color:#858a92;width:auto}
.app-shell .camera-grid.editing .tile-video{height:180px;min-height:0;aspect-ratio:auto}.camera-grid.editing .tile-video .onvidel-player{height:100%;aspect-ratio:auto}
.camera-grid .onvidel-player{height:100%;aspect-ratio:auto}.camera-grid .tile-caption{bottom:50px;pointer-events:none;max-width:90%}
.camera-grid:fullscreen{background:#08090a;padding:8px}.camera-grid:fullscreen .tile-bar,.browser-theater .tile-bar{display:none}
.dds-catalog{max-width:none}.dds-catalog>p{max-width:920px}.dds-tokens{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.dds-token{border:1px solid var(--border);padding:16px;min-width:130px}.dds-token i{display:block;height:30px;background:var(--swatch);margin-bottom:8px}.dds-token small{display:block}
.dds-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dds-example{padding:20px;border:1px solid var(--border);min-width:0;background:var(--surface)}.dds-example .actions{flex-wrap:wrap}.dds-example label{display:block;margin:14px 0}.dds-example input:not([type=checkbox]){width:100%}.dds-example fieldset{border:1px solid var(--border)}.dds-example .check-setting{display:flex}.dds-example .check-setting input{width:auto}.dds-example>small{color:var(--muted);display:block;margin:12px 0}.dds-example table{width:100%}.dds-example th,.dds-example td{text-align:left;padding:10px;border-bottom:1px solid var(--border)}.dds-example .notice{margin:10px 0}
@media(hover:none){.onvidel-player .player-controls{opacity:1}}
@media(max-width:1100px){.app-shell .profile-layout{grid-template-columns:minmax(0,1fr)}.app-shell .profile-card{order:-1;display:none}#profile-form>.customer-details,#profile-form .customer-company{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.sharing-layout,.dds-examples{grid-template-columns:1fr}.app-shell #profile-form{grid-template-columns:1fr}#profile-form>.customer-details,#profile-form .customer-company{grid-template-columns:1fr}.profile-save{position:static}.onvidel-player .player-controls{gap:4px;padding:6px}.app-shell .onvidel-player .player-controls button{min-width:30px;min-height:30px;font-size:16px}.player-live{font-size:9px}.app-shell .camera-grid.editing .tile-video{height:120px}}
@media(prefers-reduced-motion:reduce){button,.button-link,.onvidel-player .player-controls{transition:none}}

.app-shell .section-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent}

.onvidel-player:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto}
