:root {
  color-scheme: dark;
  --background: #111111;
  --surface: #1a1a1a;
  --raised: #212121;
  --foreground: #f5f5f5;
  --muted: #a0a0a0;
  --line: #2b2b2b;
  --brand: #07cf43;
  --brand-hover: #22e15c;
  --brand-surface: #07cf4318;
  --danger: #ff7987;
  --radius: 16px;
  /* Compatibility tokens for the existing account and upload components. */
  --ink: var(--foreground);
  --ink-soft: #cecece;
  --paper: var(--background);
  --white: var(--surface);
  --copper: var(--brand);
  --copper-dark: var(--brand);
  --wash: var(--raised);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, Thonburi, "Noto Sans Thai", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 76px; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, video:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.4; letter-spacing: -.04em; font-weight: 750; }
h2 { font-size: 22px; line-height: 1.45; letter-spacing: -.025em; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.5; font-weight: 650; }
p { max-width: 70ch; }
small { font-size: 12px; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.muted, .count { color: var(--muted); }
::selection { background: #07cf434a; color: white; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 150; background: var(--brand); color: #111; border-radius: 8px; padding: 10px 18px; }
.skip-link:focus { top: 12px; }
.loading-state { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { display: inline-grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #07cf4355; border-radius: 9px; background: var(--brand-surface); color: var(--brand); font-size: 23px; line-height: 1; }
.brand-name { overflow-wrap: anywhere; line-height: 1.3; max-width: 210px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.brand-accent { color: var(--brand); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 999px; padding: 10px 21px; background: var(--brand); color: #101a13; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.button:hover, .button.copper:hover { background: var(--brand-hover); }
.button.copper { background: var(--brand); }
.button.secondary { border-color: var(--line); background: var(--raised); color: var(--foreground); }
.button.secondary:hover { background: #2d2d2d; }
.button.subtle { background: transparent; color: var(--muted); font-weight: 500; padding: 8px 12px; }
.button.subtle:hover { color: #fff; background: var(--raised); }
.button.danger { background: #b42d3b; color: white; }
.button.danger:hover { background: #cc3444; }
.button.small { min-height: 36px; font-size: 12px; padding: 7px 14px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: #ddd; font-size: 22px; line-height: 1; }
.icon-button:hover { background: #333; color: #fff; }

/* Shared navigation: wide sidebar, quiet header, compact mobile tabs. */
.catalog-shell { display: flex; align-items: flex-start; gap: 32px; width: 100%; max-width: 1440px; min-height: 100dvh; margin: 0 auto; padding: 0 24px; }
.catalog-sidebar { display: flex; flex-direction: column; flex: 0 0 224px; width: 224px; position: sticky; top: 0; height: 100dvh; padding: 19px 12px 24px 0; overflow-y: auto; scrollbar-width: thin; }
.catalog-sidebar > .brand { min-height: 40px; margin: 0 12px 34px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; background: transparent; color: var(--muted); text-decoration: none; text-align: left; font-size: 14px; font-weight: 500; }
.side-nav a:hover, .side-nav button:hover { background: var(--raised); color: #fff; }
.side-nav .active, .side-nav [aria-current="page"] { background: var(--brand-surface); color: var(--brand); }
.side-nav svg { width: 20px; height: 20px; }
.side-nav .nav-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 20px; }
.sidebar-label { margin: 26px 12px 10px; color: #757575; font-size: 11px; font-weight: 600; }
.sidebar-note { margin-top: auto; padding: 36px 12px 0; color: #777; font-size: 11px; line-height: 1.8; }
.sidebar-note p + p { margin-top: 8px; }
.sidebar-note strong { color: #b3b3b3; font-weight: 600; }
.catalog-stage { min-width: 0; width: 100%; flex: 1; }
.catalog-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 12px 0; background: #111111f5; }
.catalog-topbar > .brand, .catalog-topbar .topbar-brand { display: none; }
.catalog-search { position: relative; width: 100%; max-width: 448px; min-width: 0; }
.catalog-search > span { display: none; }
.catalog-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--foreground); padding: 9px 42px 9px 17px; font-size: 13px; }
.catalog-search input::placeholder { color: #888; }
.catalog-search input:focus { border-color: #555; }
.catalog-search > svg, .search-icon { position: absolute; top: 50%; right: 15px; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: #8f8f8f; }
.catalog-search button { position: absolute; top: 0; right: 3px; display: grid; place-items: center; width: 38px; height: 40px; padding: 0; border-radius: 50%; background: transparent; color: #999; }
.catalog-search button:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; flex-shrink: 0; }
.topbar-actions .button { min-height: 38px; padding: 8px 19px; font-size: 13px; }
.account-button { display: flex; align-items: center; gap: 8px; max-width: 190px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #c9c9c9; font-size: 12px; }
.account-button:hover { background: var(--raised); color: white; }
.account-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-name small { display: block; color: var(--muted); font-size: 10px; }
.logout { background: transparent; color: var(--muted); font-size: 12px; padding: 8px 0; }
.logout:hover { color: white; }
.catalog-main { padding: 20px 0 40px; min-height: calc(100dvh - 72px); }
.catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.catalog-intro h1 { font-size: 25px; }
.catalog-intro p { margin-top: 7px; font-size: 12px; color: var(--muted); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.catalog-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.catalog-tabs a, .catalog-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; text-decoration: none; }
.catalog-tabs a:hover, .catalog-tabs button:hover { background: var(--raised); color: #fff; }
.catalog-tabs .active, .catalog-tabs [aria-current="page"], .catalog-tabs [aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #101a13; font-weight: 700; }
.catalog-sort { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.catalog-sort select, select.catalog-sort { width: auto; max-width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 30px 7px 14px; background: var(--surface); color: #b8b8b8; font-size: 12px; }
.mobile-nav { display: none; }
.heading-actions { display: flex; gap: 10px; flex-shrink: 0; }
.section-bar, .catalog-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; font-size: 13px; }
.catalog-section-head h2 { font-size: 22px; }
.catalog-toolbar .catalog-section-head { margin: 0; }
.section-bar > span { font-weight: 650; }
.section-bar .count, .catalog-section-head .count { margin-left: 7px; font-weight: 400; font-size: 12px; }
.catalog-results { color: var(--muted); font-size: 12px; }
.search { max-width: 260px; }
.search input { width: 100%; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: white; font-size: 12px; }

/* Portrait posters use the reference's compact, image-led density. */
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px 16px; }
.video-card { min-width: 0; }
.poster-button { display: block; position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; padding: 0; border-radius: 16px; background: #232323; color: white; text-align: left; isolation: isolate; }
.poster-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster-button:hover img { transform: scale(1.045); }
.poster-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; position: relative; width: 100%; height: 100%; overflow: hidden; padding: 20px; background: linear-gradient(150deg, #27332c 0%, #202923 48%, #151a17 100%); text-align: center; }
.poster-placeholder::before { content: ""; position: absolute; inset: 16px; border: 1px solid #ffffff12; border-radius: 7px; }
.poster-placeholder .brand-mark { position: relative; width: 48px; height: 48px; border: 1px solid #ffffff30; border-radius: 50%; background: #0002; color: #a2b9a8; font-size: 26px; }
.poster-placeholder .poster-letter { position: relative; font-size: 40px; color: #b9c9bd; font-weight: 500; }
.poster-placeholder .poster-initial { position: relative; font-size: 36px; color: #b9c9bd; font-weight: 500; }
.poster-placeholder .poster-fallback-label { position: relative; color: #809386; font-size: 11px; }
.poster-placeholder .poster-caption { position: relative; max-width: 100%; color: #c6d1c9; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.video-card:nth-child(3n + 2) .poster-placeholder { background: linear-gradient(150deg, #313038, #24242a 50%, #18171b); }
.video-card:nth-child(3n) .poster-placeholder { background: linear-gradient(150deg, #32302b, #28261f 50%, #191815); }
.play-label { position: absolute; inset: 0; display: grid; place-items: center; background: #0004; opacity: 0; transition: opacity .16s ease; }
.play-label span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #111; font-size: 21px; padding-left: 3px; box-shadow: 0 6px 28px #0006; }
.poster-button:hover .play-label, .poster-button:focus-visible .play-label { opacity: 1; }
.duration { position: absolute; right: 8px; bottom: 8px; border-radius: 5px; padding: 2px 6px; background: #000b; color: #fff; font-size: 10px; font-weight: 600; }
.card-badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; background: var(--brand); color: #112017; font-size: 9px; font-weight: 750; }
.card-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; padding-top: 10px; }
.card-info > div { min-width: 0; }
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; padding: 0; background: transparent; color: #eee; font-size: 13px; font-weight: 600; line-height: 1.55; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.card-title:hover { color: var(--brand); }
.card-info p { margin-top: 4px; font-size: 10px; color: #888; }
.card-menu { flex-shrink: 0; padding: 3px 0 3px 4px; background: transparent; color: #999; font-size: 10px; }
.card-menu:hover { color: #fff; }
.tiny-empty { grid-column: 1 / -1; padding: 34px 0; color: var(--muted); font-size: 13px; }

/* The open landing page uses the same catalog chrome before authentication. */
.home-page { padding-top: 12px; }
.home-hero { position: relative; display: flex; align-items: center; gap: 32px; min-height: 250px; margin: 0 0 28px; padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: #191b19; overflow: hidden; }
.home-copy { position: relative; z-index: 1; max-width: 570px; }
.home-copy h1 { margin-bottom: 12px; font-size: clamp(26px, 2.6vw, 37px); line-height: 1.4; letter-spacing: -.045em; }
.home-copy > p { max-width: 440px; color: #a5aaa6; font-size: 13px; line-height: 1.85; }
.home-cta { min-height: 44px; margin-top: 23px; padding: 11px 23px; }
.home-copy .home-caption { margin-top: 13px; font-size: 11px; color: #7c857e; }
.home-visual { position: relative; display: grid; place-items: center; flex: 0 0 190px; height: 190px; margin-left: auto; color: var(--brand); }
.home-screen { display: grid; place-items: center; width: 152px; aspect-ratio: 9 / 13; border: 1px solid #07cf4333; border-radius: 16px; background: linear-gradient(155deg, #233229, #131b15); transform: rotate(7deg); box-shadow: -16px 10px 0 #111a13, -17px 11px 0 #07cf4326; }
.home-play { display: grid; place-items: center; width: 55px; height: 55px; border: 1px solid #07cf4370; border-radius: 50%; font-size: 31px; padding-left: 4px; }
.screen-corner, .home-seat-row { display: none; }
.catalog-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 235px; padding: 36px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.catalog-gate > div { max-width: 480px; }
.catalog-gate h2 { margin-bottom: 9px; font-size: 19px; }
.catalog-gate p { margin-left: auto; margin-right: auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.catalog-gate .button { margin-top: 21px; }
.gate-icon { display: grid; place-items: center; margin: 0 auto 17px; width: 46px; height: 46px; border: 1px solid #07cf4330; border-radius: 14px; background: var(--brand-surface); color: var(--brand); font-size: 24px; }
.gate-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border: 1px solid #07cf4330; border-radius: 14px; background: var(--brand-surface); color: var(--brand); font-size: 24px; }
.catalog-status { padding: 28px 0; color: var(--muted); font-size: 13px; }
.home-note { display: flex; justify-content: space-between; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.home-note h2 { max-width: 350px; font-size: 17px; }
.home-note p { max-width: 430px; font-size: 12px; color: var(--muted); }
.home-notice { margin-top: 16px; color: var(--muted); font-size: 12px; }

/* Detail overview and the playback entry match the reference's hierarchy. */
.watch-page { position: relative; max-width: 768px; margin: 0 auto; padding-top: 0; }
.watch-backdrop { position: relative; height: 256px; margin: 0; overflow: hidden; border-radius: 14px 14px 0 0; background: #1d2720; }
.watch-backdrop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.12); filter: blur(26px); opacity: .65; }
.watch-backdrop > .poster-placeholder { filter: blur(26px); opacity: .55; }
.watch-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #1112 0%, #1117 45%, #111 100%); }
.watch-back, .watch-back-link { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 9px 14px; border-radius: 999px; background: #0009; color: #eee; font-size: 12px; text-decoration: none; }
.watch-back:hover, .watch-back-link:hover { background: #000c; }
.watch-summary { position: relative; display: flex; align-items: flex-start; gap: 22px; margin-top: -128px; padding: 0 16px; }
.watch-poster { flex: 0 0 144px; width: 144px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; box-shadow: 0 12px 32px #0009; background: var(--raised); }
.watch-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch-copy { min-width: 0; flex: 1; padding-top: 12px; }
.watch-copy h1 { font-size: 26px; line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; }
.watch-copy > p, .watch-description { margin-top: 17px; color: #b2b2b2; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.watch-meta, .watch-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; color: #939393; font-size: 11px; }
.watch-copy > .watch-meta { margin-top: 12px; color: #939393; font-size: 11px; white-space: normal; }
.watch-badges { margin: 0 0 8px; }
.watch-meta .tag { font-size: 10px; }
.watch-badges > span { padding: 3px 8px; border-radius: 999px; background: var(--raised); color: #c2c2c2; font-size: 10px; }
.watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.watch-actions .button { min-height: 48px; padding-left: 26px; padding-right: 26px; }
.watch-actions .button.secondary { min-height: 42px; padding-left: 17px; padding-right: 17px; font-size: 12px; }
.episode-panel { margin: 36px 16px 0; }
.episode-panel > h2 { margin-bottom: 14px; font-size: 18px; }
.episode-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: #eee; text-align: left; text-decoration: none; }
button.episode-row:hover, a.episode-row:hover { background: var(--raised); }
.episode-number { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: #292929; color: #ddd; font-size: 14px; font-weight: 650; }
.episode-info { min-width: 0; flex: 1; }
.episode-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.episode-info small, .episode-info p { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.episode-play { display: grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 38px; padding: 0; border-radius: 999px; background: var(--brand-surface); color: var(--brand); font-size: 12px; }
.episode-play:hover { background: #07cf432c; }
.watch-related { margin: 38px 16px 0; }
.watch-related > h2 { margin-bottom: 18px; font-size: 18px; }
.watch-related .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Authentication and membership retain the same controls in the new skin. */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; max-width: 1440px; margin: 0 auto; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 650px; padding: 40px clamp(32px, 5vw, 80px); background: #141a16; border-right: 1px solid #27312a; }
.auth-story h1 { margin: 60px 0 20px; max-width: 520px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.45; letter-spacing: -.04em; }
.auth-story p { max-width: 390px; color: #a0aca3; font-size: 14px; line-height: 1.85; }
.auth-art { position: relative; height: 100px; margin-top: 30px; overflow: hidden; }
.screen-line { position: absolute; top: 15px; left: 0; width: 78%; height: 70px; border: 1px solid #07cf432e; border-radius: 12px; transform: rotate(-6deg); }
.screen-line.second { top: 25px; left: 15%; border-color: #07cf4340; transform: rotate(6deg); }
.auth-story .auth-caption { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #75887a; }
.auth-main { display: grid; align-content: center; justify-items: center; padding: 60px 40px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h2 { margin-bottom: 10px; font-size: 26px; }
.auth-intro { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.auth-form .button { width: 100%; min-height: 48px; margin-top: 6px; }
.auth-hint { margin-top: 23px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.auth-hint a { color: #c2c2c2; }
.auth-hint a:hover, .auth-back:hover { color: var(--brand); }
.auth-back { display: inline-block; margin-top: 25px; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 19px; }
.field label, .field-label { font-size: 13px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #363636; border-radius: 10px; background: var(--raised); color: var(--foreground); }
.field input::placeholder, .field textarea::placeholder { color: #747474; }
.field textarea { min-height: 100px; resize: vertical; }
.field small { color: var(--muted); font-size: 11px; }
.field input[readonly] { background: #181818; color: #8f8f8f; }
.form-error { margin-bottom: 18px; padding: 11px 13px; border: 1px solid #78323b; border-radius: 9px; background: #3b1e24; color: #ffb6bf; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.empty-state { display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 310px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.empty-screen { display: grid; place-items: center; flex-shrink: 0; width: 116px; aspect-ratio: 9 / 12; border: 1px solid #07cf4333; border-radius: 14px; background: #1b251e; }
.empty-screen .brand-mark { width: 46px; height: 46px; border-radius: 50%; }
.empty-copy { max-width: 410px; }
.empty-copy h2 { font-size: 21px; }
.empty-copy p { margin: 11px 0 21px; color: var(--muted); font-size: 13px; }
.empty-copy small { font-size: 11px; }
.empty-copy a:not(.button) { color: #c2c2c2; }
.member-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.panel h2 { font-size: 18px; }
.panel-intro { margin: 10px 0 22px; color: var(--muted); font-size: 12px; }
.member-list { list-style: none; margin: 18px 0 0; padding: 0; }
.member-row, .invite-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: #303a32; color: #b9d6c2; font-weight: 600; }
.member-detail { min-width: 0; flex: 1; }
.member-detail strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.member-detail small { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--raised); color: #a3a3a3; font-size: 10px; }
.invite-list { margin-top: 28px; }
.invite-link-box { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--raised); }
.invite-link-box input { width: 100%; margin: 10px 0; border: 1px solid #3a3a3a; border-radius: 6px; padding: 9px; background: #141414; color: #ddd; font-size: 11px; }
.invite-link-box p { font-size: 12px; }
.account-details { display: grid; gap: 12px; color: #ccc; font-size: 13px; overflow-wrap: anywhere; }
.account-details p { color: var(--muted); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Upload, access, and playback dialogs. */
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #333; border-radius: 18px; background: var(--surface); color: var(--foreground); box-shadow: 0 28px 110px #000b; overflow: auto; scrollbar-width: thin; }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 26px 18px; }
.dialog-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.dialog-body { padding: 0 26px 26px; }
.dialog-description { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.dialog-actions .left { margin-right: auto; }
.file-field { padding: 22px 18px; border: 1px dashed #4c4c4c; border-radius: 12px; background: #202020; }
.file-field input { max-width: 100%; margin-top: 10px; font-size: 11px; }
.file-field input::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid #414141; border-radius: 6px; background: #303030; color: #eee; cursor: pointer; }
.upload-progress { margin-top: 22px; }
.upload-progress progress { display: block; width: 100%; height: 8px; margin: 12px 0; accent-color: var(--brand); }
.upload-progress p { color: var(--muted); font-size: 12px; }
.progress-title { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.grant-list { max-height: 230px; margin-top: 10px; overflow: auto; border-top: 1px solid var(--line); }
.grant-option { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.grant-option input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.grant-option strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.grant-option small { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.permission-note { margin-top: 18px; color: var(--muted); font-size: 11px; }
.danger-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone button { padding: 0; background: transparent; color: var(--danger); font-size: 12px; }
.player-dialog { width: min(1050px, calc(100% - 32px)); background: #151515; }
.player-dialog .dialog-head { padding: 16px 20px; }
.player-dialog .dialog-head h2 { font-size: 17px; }
.player-dialog .icon-button { border-color: #444; background: #222; color: white; }
.player-dialog video { display: block; width: 100%; max-height: 65dvh; background: #000; }
.player-info { padding: 19px 23px 23px; }
.player-info p { color: #b9b9b9; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.player-info small { display: block; margin-top: 11px; color: #888; font-size: 11px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid #454545; border-radius: 12px; background: #292929; color: #fff; box-shadow: 0 8px 30px #0008; font-size: 12px; }
.error-page { max-width: 600px; margin: 15vh auto; padding: 28px; }
.error-page > .brand { margin-bottom: 30px; }
.error-page p { margin: 16px 0 24px; color: var(--muted); }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #242424; color: #737373; font-size: 10px; }
.privacy-note { display: flex; align-items: center; gap: 7px; }
.privacy-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.watch-page .page-footer { margin-left: 16px; margin-right: 16px; }

/* Compatibility for the approval-waiting screen and standalone account pages. */
.site-header { border-bottom: 1px solid var(--line); background: var(--background); }
.header-inner { display: flex; align-items: center; gap: 30px; max-width: 1200px; min-height: 72px; margin: auto; padding: 15px 30px; }
.account { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.navigation { display: flex; align-items: center; gap: 16px; }
.nav-button { padding: 10px 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: none; }
.nav-button.active { color: var(--brand); }
.page { max-width: 1200px; margin: 0 auto; padding: 40px 30px; }
.catalog-main.page { padding: 20px 0 40px; }
.catalog-main.watch-page.page { padding-top: 65px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.home-header-link { color: var(--brand); font-size: 13px; }

@media (max-width: 1250px) {
  .catalog-shell { gap: 24px; }
  .catalog-sidebar { flex-basis: 204px; width: 204px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-hero { padding: 30px; }
  .home-visual { flex-basis: 150px; }
  .home-screen { width: 128px; }
  .member-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .catalog-shell { display: block; max-width: 768px; padding: 0 20px; }
  .catalog-sidebar { display: none; }
  .catalog-topbar { min-height: 64px; gap: 18px; padding: 12px 0; }
  .catalog-topbar > .brand, .catalog-topbar .topbar-brand { display: inline-flex; flex-shrink: 0; font-size: 21px; }
  .catalog-topbar > .brand .brand-mark { width: 27px; height: 27px; font-size: 20px; }
  .catalog-topbar .brand-name { max-width: 130px; }
  .catalog-search { margin-left: auto; }
  .topbar-actions { margin-left: 0; gap: 9px; }
  .topbar-actions .account-name { display: none; }
  .catalog-main { min-height: calc(100dvh - 64px); padding-top: 20px; padding-bottom: 94px; }
  .catalog-main.page { padding-bottom: 94px; }
  .mobile-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch; justify-content: space-around; gap: 4px; min-height: 60px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #2c2c2c; background: #141414f5; backdrop-filter: blur(14px); }
  .mobile-nav a, .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 68px; padding: 3px 10px; border-radius: 8px; background: transparent; color: #868686; font-size: 10px; text-decoration: none; }
  .mobile-nav .active, .mobile-nav [aria-current="page"] { color: var(--brand); }
  .mobile-nav a:hover, .mobile-nav button:hover { background: var(--raised); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav .nav-icon { font-size: 20px; line-height: 1.1; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .watch-page { padding-top: 0; }
  .home-hero { min-height: 235px; }
  .auth-story { padding: 34px; }
  .auth-main { padding: 45px 30px; }
}
@media (max-width: 639px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .catalog-shell { padding: 0 16px; }
  .catalog-topbar { flex-wrap: wrap; gap: 12px; min-height: 56px; padding: 10px 0; }
  .catalog-topbar > .brand, .catalog-topbar .topbar-brand { font-size: 21px; gap: 7px; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .button { min-height: 34px; padding: 7px 14px; font-size: 11px; }
  .topbar-actions .logout { font-size: 11px; }
  .account-button { max-width: 140px; min-height: 44px; padding: 7px 11px; font-size: 11px; }
  .catalog-search { order: 3; flex-basis: 100%; max-width: none; }
  .catalog-search input { height: 38px; font-size: 12px; }
  .catalog-search button { height: 38px; }
  .catalog-main { padding-top: 17px; }
  .catalog-intro { align-items: flex-start; gap: 15px; margin-bottom: 18px; }
  .catalog-intro h1 { font-size: 23px; }
  .catalog-intro p { margin-top: 6px; font-size: 11px; }
  .catalog-intro .button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
  .catalog-toolbar { gap: 12px; margin: 20px 0 18px; }
  .catalog-tabs { gap: 6px; }
  .catalog-tabs a, .catalog-tabs button { min-height: 32px; padding: 6px 12px; font-size: 11px; }
  .catalog-sort { font-size: 10px; }
  .catalog-sort select, select.catalog-sort { min-height: 32px; font-size: 10px; padding-left: 11px; padding-right: 25px; }
  .catalog-section-head h2 { font-size: 19px; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .poster-button { border-radius: 12px; }
  .poster-placeholder { padding: 12px; }
  .poster-placeholder::before { inset: 10px; }
  .poster-placeholder .brand-mark { width: 38px; height: 38px; font-size: 21px; }
  .poster-placeholder .poster-caption { font-size: 10px; }
  .poster-placeholder .poster-initial { font-size: 28px; }
  .poster-placeholder .poster-fallback-label { font-size: 9px; }
  .card-info { padding-top: 8px; gap: 4px; }
  .card-title { font-size: 11px; }
  .card-info p { font-size: 9px; }
  .card-menu { font-size: 9px; }
  .duration { right: 6px; bottom: 6px; padding: 1px 5px; font-size: 9px; }
  .play-label span { width: 38px; height: 38px; font-size: 17px; }
  .home-page { padding-top: 12px; }
  .home-hero { min-height: 230px; gap: 10px; margin-bottom: 24px; padding: 25px 22px; border-radius: 16px; }
  .home-copy { max-width: 400px; }
  .home-copy h1 { margin-bottom: 10px; font-size: 26px; }
  .home-copy > p { font-size: 12px; }
  .home-cta { min-height: 42px; margin-top: 19px; padding: 10px 18px; font-size: 12px; }
  .home-copy .home-caption { font-size: 10px; margin-top: 12px; }
  .home-visual { display: none; }
  .catalog-gate { min-height: 220px; padding: 30px 20px; }
  .catalog-gate h2 { font-size: 17px; }
  .catalog-gate p { font-size: 12px; }
  .home-note { flex-direction: column; gap: 12px; padding: 23px 0; }
  .home-note h2 { font-size: 16px; }
  .watch-page { margin-left: -16px; margin-right: -16px; padding-top: 0; }
  .watch-backdrop { height: 224px; border-radius: 0; }
  .watch-summary { gap: 16px; margin-top: -112px; padding: 0 16px; }
  .watch-poster { flex-basis: 120px; width: 120px; border-radius: 14px; }
  .watch-copy { padding-top: 8px; }
  .watch-copy h1 { font-size: 21px; }
  .watch-copy > p, .watch-description { margin-top: 12px; font-size: 12px; line-height: 1.8; }
  .watch-meta { gap: 6px; font-size: 10px; margin-top: 9px; }
  .watch-actions { gap: 8px; margin-top: 16px; }
  .watch-actions .button { width: 100%; padding: 10px 15px; font-size: 12px; }
  .watch-actions .button.secondary { min-height: 36px; font-size: 11px; }
  .episode-panel { margin-top: 28px; }
  .episode-panel > h2, .watch-related > h2 { font-size: 17px; }
  .episode-row { min-height: 66px; }
  .watch-related .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-layout { display: block; }
  .auth-story { min-height: 0; padding: 23px 24px 27px; border-right: 0; border-bottom: 1px solid #27312a; }
  .auth-story h1 { margin: 28px 0 12px; font-size: 28px; max-width: 400px; }
  .auth-story p { font-size: 12px; }
  .auth-art, .auth-story .auth-caption { display: none; }
  .auth-main { padding: 32px 24px 45px; }
  .auth-form { max-width: 420px; }
  .auth-form h2 { font-size: 23px; }
  .auth-intro { margin-bottom: 24px; font-size: 12px; }
  .header-inner { min-height: 64px; gap: 15px; padding: 14px 18px; }
  .header-inner .account-name { display: none; }
  .header-inner .brand { font-size: 21px; }
  .account { gap: 12px; }
  .page { padding: 29px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .page-heading p { font-size: 12px; }
  .empty-state { flex-direction: column; gap: 25px; padding: 30px 23px; text-align: center; }
  .empty-screen { width: 88px; aspect-ratio: 9 / 10; }
  .empty-copy h2 { font-size: 19px; }
  .empty-copy p { font-size: 12px; }
  .member-layout { gap: 20px; }
  .panel { padding: 20px; }
  .dialog-head { gap: 12px; padding: 20px 20px 16px; }
  .dialog-head h2 { font-size: 18px; }
  .dialog-body { padding: 0 20px 22px; }
  .dialog-actions .button { min-height: 42px; padding: 10px 16px; font-size: 12px; }
  .player-dialog { width: calc(100% - 20px); border-radius: 13px; }
  .player-dialog .dialog-head { padding: 13px 15px; }
  .player-dialog .dialog-head h2 { font-size: 14px; }
  .player-info { padding: 16px; }
  .player-info p { font-size: 12px; }
  .page-footer { flex-direction: column; gap: 7px; margin-top: 34px; padding-top: 17px; font-size: 9px; }
}
@media (max-width: 374px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-intro { flex-wrap: wrap; }
  .watch-summary { gap: 13px; }
  .watch-poster { flex-basis: 104px; width: 104px; }
  .watch-copy h1 { font-size: 19px; }
  .watch-related .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions .left { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Owner workspace: scoped surfaces preserve the public catalog layout. */
.admin-page { min-width: 0; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading h1 { font-size: 27px; }
.admin-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-heading > .button, .admin-heading .heading-actions { flex-shrink: 0; }
.admin-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #a1a1a1; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-tab:hover { background: var(--raised); color: #fff; }
.admin-tab.active, .admin-tab[aria-current="page"], .admin-tab[aria-selected="true"] { border-color: #07cf434a; background: var(--brand-surface); color: var(--brand); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 130px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-stat strong { display: block; color: #f5f5f5; font-size: 30px; line-height: 1.25; letter-spacing: -.04em; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.admin-stat > span { color: #a9a9a9; font-size: 12px; line-height: 1.7; }
.admin-stat small { color: #7f7f7f; font-size: 10px; }
.admin-stat:first-child { border-color: #295737; background: #17231a; }
.admin-stat:first-child strong { color: var(--brand); }
.admin-panel { min-width: 0; margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.admin-panel-head h2 { font-size: 18px; }
.admin-panel-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.admin-panel-head > a:not(.button) { color: var(--brand); font-size: 12px; text-decoration: none; }
.admin-panel-head > a:not(.button):hover { text-decoration: underline; }
.admin-panel > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-search { display: block; flex: 1; min-width: 180px; max-width: 390px; }
.admin-search input { width: 100%; min-height: 44px; padding: 10px 15px; border: 1px solid #383838; border-radius: 10px; background: var(--raised); color: #f1f1f1; font-size: 13px; }
.admin-search input::placeholder { color: #888; }
.admin-search > span, .admin-search > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.admin-sort { display: flex; align-items: center; gap: 9px; max-width: 100%; color: var(--muted); font-size: 12px; }
.admin-sort select, select.admin-sort { max-width: 100%; min-height: 44px; padding: 10px 33px 10px 13px; border: 1px solid #383838; border-radius: 10px; background: var(--raised); color: #ddd; font-size: 12px; }
.admin-table-wrap { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #505050 #202020; border: 1px solid var(--line); border-radius: 12px; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 12px; }
.admin-table th { padding: 13px 14px; border-bottom: 1px solid #333; background: #222; color: #a9a9a9; font-size: 11px; font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 14px; border-bottom: 1px solid var(--line); color: #c3c3c3; vertical-align: middle; font-variant-numeric: tabular-nums; }
.admin-table th:first-child, .admin-table td:first-child { padding-left: 16px; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #ffffff03; }
.admin-table td:first-child { width: 43%; }
.admin-table td > small { display: block; margin-top: 3px; color: #8f8f8f; font-size: 10px; }
.admin-video-cell { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.admin-video-cell > img, .admin-video-cell > .poster-placeholder, .admin-video-cell > .admin-video-poster { display: block; width: 40px; height: 60px; flex: 0 0 40px; overflow: hidden; border-radius: 6px; object-fit: cover; background: #29332d; }
.admin-video-cell > .poster-placeholder { display: grid; place-items: center; padding: 5px; }
.admin-video-cell > .admin-video-placeholder { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 60px; border: 1px solid #34483b; border-radius: 6px; background: #1c2a21; color: #789882; font-size: 21px; }
.admin-video-cell > .poster-placeholder::before { display: none; }
.admin-video-cell .poster-initial { font-size: 15px; }
.admin-video-cell .poster-fallback-label { display: none; }
.admin-video-cell > div, .admin-video-cell > span:not(.poster-placeholder) { min-width: 0; }
.admin-video-cell strong, .admin-video-cell a, .admin-video-cell .card-title { display: block; max-width: 320px; color: #eee; font-size: 12px; font-weight: 600; line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
.admin-video-cell a:hover { color: var(--brand); }
.admin-video-cell small, .admin-video-cell p { display: block; margin-top: 3px; color: #858585; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.admin-row-actions .button { min-height: 40px; padding: 9px 13px; font-size: 11px; white-space: nowrap; }
.admin-row-actions .button.danger { border-color: #71323a; background: #351f24; color: #ff9aa6; }
.admin-row-actions .button.danger:hover { background: #4c242c; }
.admin-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border: 1px solid #3d3d3d; border-radius: 999px; background: #252525; color: #b4b4b4; font-size: 10px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.admin-status.ready, .admin-status.approved, .admin-status[data-status="ready"], .admin-status[data-status="approved"] { border-color: #295c39; background: #173421; color: #79dc96; }
.admin-status.pending, .admin-status.uploading, .admin-status[data-status="pending"], .admin-status[data-status="uploading"] { border-color: #6f5830; background: #362e1b; color: #e8c175; }
.admin-status.suspended, .admin-status.failed, .admin-status[data-status="suspended"], .admin-status[data-status="failed"] { border-color: #6d333c; background: #382027; color: #f39aa7; }
.admin-status.owner, .admin-status[data-status="owner"] { border-color: #445574; background: #212c40; color: #a8c1ec; }
.admin-pending-list { display: grid; gap: 0; }
.admin-pending-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.admin-pending-row:first-child { border-top: 0; padding-top: 0; }
.admin-pending-row:last-child { padding-bottom: 0; }
.admin-pending-row > div:first-child { min-width: 0; flex: 1; }
.admin-pending-row strong { display: block; color: #ddd; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.admin-pending-row progress { display: block; width: 100%; height: 6px; max-width: 390px; margin: 12px 0 8px; overflow: hidden; border: 0; border-radius: 99px; background: #353535; accent-color: #cfad61; }
.admin-pending-row progress::-webkit-progress-bar { border-radius: 99px; background: #353535; }
.admin-pending-row progress::-webkit-progress-value { border-radius: 99px; background: #cfad61; }
.admin-pending-row progress::-moz-progress-bar { border-radius: 99px; background: #cfad61; }
.admin-pending-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #939393; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.admin-upload-row .admin-pending-meta { display: grid; justify-items: start; gap: 6px; }
.admin-upload-row .admin-pending-meta > progress { margin-top: 4px; margin-bottom: 4px; }
.admin-upload-row .admin-pending-meta > small { font-size: 11px; }
.admin-pending-row > .button { flex-shrink: 0; min-height: 42px; font-size: 11px; }
.admin-member-list { display: grid; gap: 0; }
.admin-member-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 17px 0; border-top: 1px solid var(--line); }
.admin-member-row:first-child { border-top: 0; padding-top: 0; }
.admin-member-row:last-child { padding-bottom: 0; }
.admin-member-detail { min-width: 0; flex: 1; }
.admin-member-detail strong { display: block; color: #ddd; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.admin-member-detail small, .admin-member-detail p { display: block; margin-top: 3px; color: #919191; font-size: 11px; overflow-wrap: anywhere; }
.admin-member-row > .admin-status, .admin-member-row > .tag { margin-left: auto; flex-shrink: 0; }
.admin-member-row > .admin-row-actions { margin-left: auto; }
.admin-settings { margin: 0; }
.admin-settings dl { margin: 0; }
.admin-setting { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1fr); align-items: start; gap: 20px; margin: 0; padding: 17px 0; border-top: 1px solid var(--line); }
.admin-setting:first-child { padding-top: 0; border-top: 0; }
.admin-setting:last-child { padding-bottom: 0; }
.admin-setting dt { color: #909090; font-size: 12px; line-height: 1.8; }
.admin-setting dd { margin: 0; color: #ddd; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.admin-setting dd a { color: #a4d6b2; }
.admin-setting dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.admin-notice { margin: 18px 0; padding: 13px 16px; border-left: 3px solid #377b4b; border-radius: 0 9px 9px 0; background: #18241b; color: #b1c6b7; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.admin-notice a { color: #8bdfa3; }
.admin-panel > .admin-notice:last-child { margin-bottom: 0; }
.admin-panel > .admin-notice { color: #b1c6b7; font-size: 12px; }
.admin-denied { max-width: 610px; margin: 40px auto; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.admin-denied h1, .admin-denied h2 { font-size: 23px; }
.admin-denied p { margin: 12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.admin-denied.catalog-main { min-height: 0; padding: 36px; }
.admin-loading { padding: 38px 0; color: var(--muted); font-size: 13px; }
.admin-page .tiny-empty { padding: 22px 0; }
.admin-page .button:focus-visible, .admin-tab:focus-visible, .admin-table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* A manual portrait cover supplements the generated video frame. */
.cover-field { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 15px; margin: 6px 0 24px; padding: 16px; border: 1px solid #383838; border-radius: 12px; background: #202020; }
.cover-field > label, .cover-field > .field-label, .cover-field > .cover-status { grid-column: 1 / -1; }
.cover-field > .form-error { grid-column: 1 / -1; margin-bottom: 0; }
.cover-field label { color: #ddd; font-size: 13px; font-weight: 600; }
.cover-preview { display: grid; place-items: center; width: 100px; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid #3b483f; border-radius: 9px; background: #1b251e; }
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-preview-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 10px; color: #849e8c; font-size: 11px; text-align: center; }
.cover-field > div:not(.cover-preview) { min-width: 0; }
.cover-field input[type="file"] { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 9px; font-size: 11px; color: #999; }
.cover-field input[type="file"]::file-selector-button { display: block; margin: 0 0 9px; min-height: 40px; padding: 9px 14px; border: 1px solid #494949; border-radius: 8px; background: #303030; color: #eee; font: inherit; font-size: 12px; cursor: pointer; }
.cover-field small, .cover-field p { margin-top: 9px; color: #969696; font-size: 11px; line-height: 1.8; }
.cover-controls > small { display: block; }
.cover-field .button { min-height: 40px; margin-top: 12px; padding: 8px 13px; font-size: 11px; }
.cover-status { min-width: 0; margin: 0; color: #abbdb0; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.cover-status:empty { display: none; }
.cover-status[role="alert"] { color: #ffadb7; }

@media (max-width: 1250px) {
  .admin-stats { gap: 10px; }
  .admin-stat { min-height: 124px; padding: 18px; }
  .admin-stat strong { font-size: 27px; }
  .admin-table { min-width: 600px; }
  .admin-video-cell strong, .admin-video-cell a { max-width: 230px; }
}
@media (max-width: 767px) {
  .admin-heading { gap: 18px; margin-bottom: 23px; }
  .admin-heading h1 { font-size: 24px; }
  .admin-heading p { font-size: 12px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 23px; }
  .admin-stat { min-height: 112px; padding: 18px; }
  .admin-stat strong { font-size: 28px; }
  .admin-panel { padding: 20px; }
  .admin-tabs { gap: 4px; margin-bottom: 23px; padding-bottom: 14px; }
  .admin-tab { padding: 10px 15px; font-size: 12px; }
  .admin-pending-row { align-items: flex-start; gap: 14px; }
  .admin-member-row { align-items: flex-start; gap: 11px; }
  .admin-member-row > .admin-status { margin-top: 2px; }
}
@media (max-width: 479px) {
  .admin-heading { flex-wrap: wrap; gap: 15px; }
  .admin-heading h1 { font-size: 24px; }
  .admin-heading > .button, .admin-heading .button { min-height: 44px; padding: 10px 17px; font-size: 12px; }
  .admin-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .admin-tab { min-width: 0; padding: 10px 5px; font-size: 11px; }
  .admin-stats { gap: 10px; }
  .admin-stat { min-height: 110px; gap: 6px; padding: 17px 14px; border-radius: 12px; }
  .admin-stat strong { font-size: 26px; }
  .admin-stat > span { font-size: 11px; }
  .admin-stat small { font-size: 9px; }
  .admin-panel { padding: 17px 15px; margin-bottom: 19px; border-radius: 14px; }
  .admin-panel-head { gap: 10px; margin-bottom: 17px; }
  .admin-panel-head h2 { font-size: 17px; }
  .admin-panel-head .button { min-height: 40px; font-size: 11px; }
  .admin-toolbar { gap: 12px; margin-bottom: 16px; }
  .admin-search { flex-basis: 100%; max-width: none; min-width: 0; }
  .admin-search input { font-size: 12px; }
  .admin-sort { width: 100%; justify-content: space-between; }
  .admin-sort select { flex: 1; min-width: 0; max-width: 210px; }
  .admin-table { min-width: 570px; }
  .admin-table td, .admin-table th { padding-left: 12px; padding-right: 12px; }
  .admin-table td:first-child, .admin-table th:first-child { padding-left: 12px; }
  .admin-table td:first-child { width: 36%; }
  .admin-video-cell { gap: 9px; min-width: 170px; }
  .admin-video-cell > img, .admin-video-cell > .poster-placeholder, .admin-video-cell > .admin-video-poster { width: 35px; height: 52px; flex-basis: 35px; }
  .admin-video-cell > .admin-video-placeholder { width: 35px; height: 52px; flex-basis: 35px; }
  .admin-video-cell strong, .admin-video-cell a { max-width: 170px; font-size: 11px; }
  .admin-row-actions .button { min-height: 44px; padding: 10px 12px; }
  .admin-pending-row { flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .admin-pending-row > div:first-child { flex-basis: 100%; }
  .admin-pending-row > .button { min-height: 44px; }
  .admin-pending-row strong { font-size: 12px; }
  .admin-pending-meta { font-size: 10px; gap: 5px 10px; }
  .admin-member-row { flex-wrap: wrap; gap: 9px; padding: 15px 0; }
  .admin-member-row .avatar { width: 34px; height: 34px; font-size: 12px; }
  .admin-member-detail, .admin-member-row .member-detail { flex-basis: calc(100% - 45px); }
  .admin-member-row > .admin-status, .admin-member-row > .tag { margin-left: 43px; margin-top: 0; }
  .admin-member-row > .admin-row-actions { margin-left: 43px; }
  .admin-setting { grid-template-columns: 1fr; gap: 5px; padding: 15px 0; }
  .admin-setting dt { font-size: 11px; }
  .admin-setting dd { font-size: 12px; }
  .admin-notice { padding: 12px 13px; font-size: 11px; }
  .admin-panel > .admin-notice { font-size: 11px; }
  .admin-denied { margin: 20px 0; padding: 28px 22px; }
  .admin-denied.catalog-main { padding: 28px 22px; }
  .admin-denied h1, .admin-denied h2 { font-size: 21px; }
  .admin-denied p { font-size: 12px; }
  .cover-field { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .cover-preview { width: 84px; }
  .cover-field input[type="file"]::file-selector-button { min-height: 44px; padding: 9px 11px; font-size: 11px; }
  .cover-field .button { min-height: 44px; }
}

/* On phones, each video keeps its metadata and all three actions in view. */
@media (max-width: 640px) {
  .admin-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .admin-table { display: block; width: 100%; min-width: 0; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .admin-table tbody { display: grid; gap: 12px; }
  .admin-table .admin-video-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; min-width: 0; padding: 15px; border: 1px solid #333; border-radius: 12px; background: #202020; }
  .admin-table .admin-video-row:hover { background: #202020; }
  .admin-table td, .admin-table td:first-child { display: block; min-width: 0; width: auto; padding: 0; border: 0; color: #c9c9c9; font-size: 12px; }
  .admin-table td::before { display: block; content: attr(data-label); margin-bottom: 4px; color: #8e8e8e; font-size: 10px; font-weight: 400; }
  .admin-table td:first-child, .admin-table td:nth-child(4), .admin-table td:last-child { grid-column: 1 / -1; }
  .admin-table td:first-child::before, .admin-table td:last-child::before { display: none; }
  .admin-table td:nth-child(4) { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
  .admin-table td:nth-child(4)::before { margin-bottom: 0; }
  .admin-video-cell { min-width: 0; gap: 12px; }
  .admin-video-cell > img, .admin-video-cell > .poster-placeholder, .admin-video-cell > .admin-video-poster, .admin-video-cell > .admin-video-placeholder { width: 42px; height: 64px; flex-basis: 42px; }
  .admin-video-cell strong, .admin-video-cell a { max-width: none; font-size: 13px; }
  .admin-video-cell small { font-size: 10px; }
  .admin-table .admin-row-actions { flex-wrap: wrap; gap: 7px; width: 100%; padding-top: 12px; border-top: 1px solid #363636; }
  .admin-table .admin-row-actions .button { flex: 1; min-height: 44px; padding: 10px 11px; font-size: 11px; }
  .admin-table .admin-row-actions .button:first-child { flex: 1.5; }
}

/* Administration follows the separate white/lavender workspace reference. */
:is(.admin-workspace, dialog.admin-dialog) {
  color-scheme: light;
  --background: #f7f8fb;
  --surface: #ffffff;
  --raised: #f4f2fa;
  --foreground: #2d2b39;
  --muted: #898393;
  --line: #eeedf4;
  --brand: #7659ee;
  --brand-hover: #6748df;
  --brand-surface: #f0edff;
  --danger: #b84f67;
  --ink: #2d2b39;
  --ink-soft: #575064;
  --paper: #f7f8fb;
  --white: #ffffff;
  --copper: #7659ee;
  --copper-dark: #7659ee;
  --wash: #f4f2fa;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--foreground);
}
.admin-workspace { display: flex; min-height: 100dvh; width: 100%; background: radial-gradient(ellipse at 75% -20%, #e9e4fc66, transparent 50%), #f7f8fb; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: 228px; height: 100dvh; padding: 26px 17px 18px; border-right: 1px solid #ecebf2; background: #fff; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ddd7ed transparent; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; color: #302b3d; text-decoration: none; }
.admin-brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #b3a3ff, #7255ed); color: #fff; font: bold 21px/1 Georgia, serif; box-shadow: 0 4px 10px #8870e633; }
.admin-brand-copy { min-width: 0; }
.admin-brand-copy strong { display: block; color: #302b3d; font-size: 17px; letter-spacing: -.5px; line-height: 1.5; }
.admin-brand-copy small { display: block; color: #a09bac; font-size: 9px; line-height: 1.7; }
.admin-nav-caption { margin: 40px 14px 15px; color: #aaa0ba; font-size: 10px; }
.admin-workspace .brand { color: #302b3d; font-size: 22px; font-weight: 750; letter-spacing: -.055em; }
.admin-workspace .brand-mark { width: 34px; height: 36px; border: 0; border-radius: 10px; background: linear-gradient(145deg, #b3a3ff, #7255ed); color: #fff; box-shadow: 0 4px 10px #8870e633; }
.admin-brand > small, .admin-brand p { display: block; margin: 6px 0 0 43px; color: #a09bac; font-size: 9px; font-weight: 400; letter-spacing: .1px; }
.admin-side-nav { display: flex; flex-direction: column; gap: 5px; margin-top: 38px; }
.admin-workspace .admin-side-nav.admin-tabs { display: flex; flex-direction: column; align-items: stretch; gap: 5px; margin: 0; padding: 0; border: 0; }
.admin-side-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 11px 14px; border: 0; border-radius: 9px; background: transparent; color: #77798c; font-size: 12px; font-weight: 400; text-align: left; text-decoration: none; }
.admin-side-link:hover { background: #f7f5fc; color: #5d4c85; }
.admin-side-link svg { width: 17px; height: 17px; }
.admin-side-link .nav-icon { display: grid; place-items: center; width: 18px; height: 18px; font-size: 19px; }
.admin-side-link.active, .admin-side-link[aria-current="page"] { background: #f0edff; color: #5944b4; font-weight: 700; }
.admin-side-link.active::before, .admin-side-link[aria-current="page"]::before { position: absolute; left: -1px; top: 12px; width: 3px; height: 21px; border-radius: 5px; background: linear-gradient(#29d8e1, #8b58ff); content: ""; }
.admin-sidebar-bottom, .admin-side-footer { margin-top: auto; padding-top: 30px; }
.admin-sidebar-bottom > a, .admin-sidebar-bottom > button, .admin-side-footer > a, .admin-side-footer > button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; color: #8a8899; font-size: 11px; text-decoration: none; }
.admin-sidebar-note { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 12px 10px; border: 1px solid #eeebf6; border-radius: 10px; background: #faf9fd; color: #8a7ba8; font-size: 10px; line-height: 1.8; }
.admin-sidebar-note small { display: block; color: #aaa2b8; font-size: 9px; }
.admin-stage { display: flex; flex-direction: column; flex: 1; min-width: 0; width: calc(100% - 228px); margin-left: 228px; }
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 13px 30px; border-bottom: 1px solid #edecf3; background: #ffffffed; backdrop-filter: blur(12px); }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: #9c99a9; font-size: 11px; white-space: nowrap; }
.admin-breadcrumb a { color: #9c99a9; text-decoration: none; }
.admin-breadcrumb a:hover { color: #7659ee; }
.admin-breadcrumb > span:last-child, .admin-breadcrumb > strong { color: #545261; font-weight: 400; }
.admin-global-search { display: flex; align-items: center; gap: 9px; width: 280px; min-width: 0; height: 39px; margin-left: auto; padding: 0 13px; border: 1px solid transparent; border-radius: 999px; background: #f1f2f6; color: #a3a3af; }
.admin-global-search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: #514b60; font-size: 11px; }
.admin-global-search input::placeholder { color: #9e99aa; }
.admin-global-search:focus-within { border-color: #c6b8f6; }
.admin-global-search input:focus-visible { outline: none; }
.admin-global-search button { display: grid; place-items: center; flex: 0 0 28px; height: 30px; padding: 0; border-radius: 50%; background: transparent; color: #9a93ac; }
.admin-global-search button:hover { color: #7659ee; }
.admin-topbar-spacer { margin-left: auto; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-topbar-actions .account-button { min-height: 40px; max-width: 185px; padding: 5px 12px 5px 7px; border-color: #ecebf1; background: #f1f2f6; color: #514961; font-size: 11px; }
.admin-topbar-actions .account-button > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; border-radius: 50%; background: linear-gradient(140deg, #d6cbfb, #94b9bc); color: #61548b; }
.admin-topbar-actions .account-button:hover { background: #ebe8f5; }
.admin-user-chip { display: flex; align-items: center; gap: 8px; min-height: 40px; max-width: 190px; padding: 5px 12px 5px 5px; border: 1px solid #ecebf1; border-radius: 999px; background: #f1f2f6; color: #655872; font-size: 10px; text-align: left; }
.admin-user-chip:hover { background: #ebe8f5; }
.admin-user-chip > span, .admin-user-chip > div { min-width: 0; }
.admin-user-chip > span:last-child { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-chip strong { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 400; }
.admin-user-chip small { display: block; color: #a49cad; font-size: 8px; }
.admin-user-chip .avatar { width: 29px; height: 29px; font-size: 11px; }
.admin-notifications { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f2f6; color: #9a98ab; text-decoration: none; }
.admin-notifications:hover { background: #eae5f5; color: #8068a7; }
.admin-notifications svg { width: 18px; height: 18px; }
.admin-notification-count { position: absolute; top: -3px; right: -4px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border: 2px solid white; border-radius: 999px; background: #a087e8; color: #fff; font-size: 8px; }
.admin-menu-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }
.admin-workspace .admin-page { flex: 1; width: 100%; max-width: 1800px; min-height: 0; margin: 0 auto; padding: 28px 30px 40px; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 30px 25px; color: #aca1b9; font-size: 9px; }
.admin-workspace .admin-heading { align-items: center; margin-bottom: 26px; }
.admin-workspace .admin-heading h1 { color: #242532; font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
.admin-workspace .admin-heading p { margin-top: 6px; color: #92909f; font-size: 12px; }
.admin-workspace .admin-tabs { gap: 6px; margin-bottom: 24px; padding-bottom: 15px; border-color: #e8e5f1; }
.admin-workspace .admin-tab { color: #8b839a; min-height: 40px; padding: 9px 17px; border-radius: 9px; font-size: 12px; }
.admin-workspace .admin-tab:hover { background: #f0edf9; color: #66528d; }
.admin-workspace .admin-tab.active, .admin-workspace .admin-tab[aria-current="page"] { border-color: #e6e0fb; background: #f0edff; color: #6249bc; }
:is(.admin-workspace, dialog.admin-dialog) .button { min-height: 42px; padding: 10px 18px; border-radius: 10px; background: #7659ee; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 4px 10px #7659ee12; }
:is(.admin-workspace, dialog.admin-dialog) .button:hover { background: #6748df; }
:is(.admin-workspace, dialog.admin-dialog) .button.secondary { border-color: #e6e1f0; background: #fff; color: #75668f; box-shadow: none; }
:is(.admin-workspace, dialog.admin-dialog) .button.secondary:hover { border-color: #d6caee; background: #f6f3fc; }
:is(.admin-workspace, dialog.admin-dialog) .button.subtle { background: transparent; color: #867c98; box-shadow: none; }
:is(.admin-workspace, dialog.admin-dialog) .button.danger { border-color: #efcdd6; background: #fff2f5; color: #b04d65; box-shadow: none; }
:is(.admin-workspace, dialog.admin-dialog) .button.danger:hover { border-color: #e6afbf; background: #fce4ec; }
:is(.admin-workspace, dialog.admin-dialog) .button.small { min-height: 38px; padding: 8px 12px; font-size: 11px; }
:is(.admin-workspace, dialog.admin-dialog) .icon-button { border-color: #e6e1ed; background: #f7f5fb; color: #9384ad; }
:is(.admin-workspace, dialog.admin-dialog) .icon-button:hover { background: #ede7f8; color: #685091; }
:is(.admin-workspace, dialog.admin-dialog) .field label { color: #62586f; }
:is(.admin-workspace, dialog.admin-dialog) .field input, :is(.admin-workspace, dialog.admin-dialog) .field textarea { border-color: #e3dfec; background: #fff; color: #3d354a; }
:is(.admin-workspace, dialog.admin-dialog) .field input::placeholder, :is(.admin-workspace, dialog.admin-dialog) .field textarea::placeholder { color: #aaa1b7; }
:is(.admin-workspace, dialog.admin-dialog) .field small { color: #92869f; }
:is(.admin-workspace, dialog.admin-dialog) .form-error { border-color: #f0ccd5; background: #fff0f4; color: #b44862; }
:is(.admin-workspace, dialog.admin-dialog) .avatar { background: linear-gradient(140deg, #d6cbfb, #94b9bc); color: #61548b; }
:is(.admin-workspace, dialog.admin-dialog) .tag { background: #f1edf7; color: #8a779e; }
.admin-workspace .admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 248px; align-items: start; gap: 22px; }
.admin-overview-main, .admin-overview-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.admin-workspace .admin-stats { gap: 15px; margin: 0; }
.admin-workspace .admin-stat { position: relative; overflow: hidden; min-height: 148px; padding: 19px 16px 18px; border-color: #eeedf4; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px #27284003; }
.admin-workspace .admin-stat::before { position: absolute; top: 0; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, #35d4db, #9d7bff); content: ""; }
.admin-workspace .admin-stat:first-child { border-color: #eeedf4; background: #fff; }
.admin-workspace .admin-stat > span { color: #8a8198; font-size: 11px; }
.admin-stat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; color: #93859f; font-size: 11px; line-height: 1.7; }
.admin-stat-head svg { width: 16px; height: 16px; color: #b5a5cf; }
.admin-workspace .admin-stat strong { color: #292736; font-family: Arial, Tahoma, sans-serif; font-size: 31px; line-height: 1.5; font-weight: 500; letter-spacing: -1px; }
.admin-workspace .admin-stat small { color: #a29bac; font-size: 10px; line-height: 1.8; }
.admin-workspace .admin-panel { margin-bottom: 22px; padding: 21px; border-color: #eeedf4; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px #24274003; }
.admin-overview-main > .admin-panel, .admin-overview-aside > .admin-panel { margin: 0; }
.admin-workspace .admin-panel-head { margin-bottom: 19px; }
.admin-workspace .admin-panel-head h2, .admin-workspace .admin-panel > h2 { color: #30303a; font-size: 15px; font-weight: 600; }
.admin-workspace .admin-panel-head p, .admin-workspace .admin-panel > p { color: #9793a3; font-size: 11px; }
.admin-workspace .admin-panel-head > a:not(.button) { color: #8b74bd; }
.admin-workspace .admin-panel-head .count, .admin-workspace .admin-panel-head > small { padding: 3px 9px; border: 1px solid #e6e3ee; border-radius: 999px; color: #8b849b; font-size: 10px; }
.admin-analytics-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; gap: 20px; }
.admin-analytics-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-workspace .admin-analytics-grid .admin-panel { margin: 0; }
.admin-analytics-side > .admin-panel { flex: 1; }
.admin-chart-panel { min-height: 355px; }
.admin-chart-panel .admin-panel-head { margin-bottom: 24px; }
.admin-chart-summary { display: flex; align-items: baseline; gap: 7px; margin-bottom: 16px; color: #a193af; font-size: 10px; }
.admin-chart-summary strong { color: #756184; font: 500 23px/1 Arial, sans-serif; }
.admin-upload-chart { display: block; width: 100%; height: auto; min-height: 200px; overflow: visible; color: #9477f7; }
.admin-upload-chart .chart-grid-line { stroke: #f0edf7; stroke-width: 1; }
.admin-upload-chart .chart-bar { fill: #a58af5; }
.admin-upload-chart .chart-line { stroke: #9676f1; fill: none; stroke-width: 2; }
.admin-upload-chart text { fill: #a59ab7; font-family: Tahoma, Arial, sans-serif; font-size: 10px; }
.admin-upload-chart .chart-axis { fill: #b5a9c0; font-size: 9px; }
.admin-upload-chart .chart-date { fill: #a69fb5; font-size: 9px; }
.admin-chart-labels { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 10px 0 0; color: #a69fb5; font-size: 9px; }
.admin-chart-legend { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 17px 0 0; color: #a49caf; font-size: 10px; }
.admin-chart-legend::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9477f7; }
.admin-breakdown-list { display: grid; gap: 18px; }
.admin-format-panel > .admin-breakdown-list, .admin-video-status-panel > .admin-breakdown-list { margin-top: 22px; }
.admin-format-panel > p, .admin-video-status-panel > p { margin-top: 5px; }
.admin-breakdown-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; color: #878296; font-size: 12px; }
.admin-breakdown-row > div:first-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-breakdown-row strong { color: #74628e; font-size: 12px; font-weight: 500; }
.admin-breakdown-meter { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: #f0edf7; }
progress.admin-breakdown-meter { display: block; width: 100%; border: 0; accent-color: #a58af5; }
progress.admin-breakdown-meter::-webkit-progress-bar { border-radius: 999px; background: #f0edf7; }
progress.admin-breakdown-meter::-webkit-progress-value { border-radius: 999px; background: #a58af5; }
progress.admin-breakdown-meter::-moz-progress-bar { border-radius: 999px; background: #a58af5; }
.admin-breakdown-row:nth-child(2) progress.admin-breakdown-meter { accent-color: #42cfdf; }
.admin-breakdown-row:nth-child(2) progress.admin-breakdown-meter::-webkit-progress-value { background: #42cfdf; }
.admin-breakdown-row:nth-child(2) progress.admin-breakdown-meter::-moz-progress-bar { background: #42cfdf; }
.admin-breakdown-meter > span, .admin-breakdown-meter > i { display: block; height: 100%; border-radius: inherit; background: #a58af5; }
.admin-breakdown-row:nth-child(2) .admin-breakdown-meter > span, .admin-breakdown-row:nth-child(2) .admin-breakdown-meter > i { background: #42cfdf; }
.admin-quick-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.admin-quick-actions .button { min-height: 38px; border-radius: 999px; font-size: 11px; }
.admin-status-panel .admin-status { font-size: 10px; }
.admin-status-panel > p { margin-top: 9px; }
.admin-connection-note { display: flex; align-items: center; gap: 7px; margin: 18px 0; color: #92839f; font-size: 10px; }
.admin-connection-note > span { color: #7bd4b5; font-size: 10px; }
.admin-overview-status-item { display: flex; align-items: center; min-height: 64px; margin-top: 9px; padding: 14px; border: 1px solid #ece5f7; border-radius: 12px; color: #947ab0; font-size: 11px; line-height: 1.8; text-decoration: none; }
.admin-overview-status-item:hover { border-color: #d5c4ef; background: #fcf9ff; }
.admin-pending-summary { color: #9385a6; font-size: 12px; line-height: 1.8; }
.admin-pending-summary strong { color: #6e53ae; font-size: 27px; font-weight: 500; }
.admin-pending-summary > p { margin-top: 14px; }
.admin-pending-mini { margin-top: 17px; padding-top: 13px; border-top: 1px solid #f0e8f6; }
.admin-pending-mini strong { display: block; color: #9578a9; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.admin-pending-mini small { display: block; margin-top: 4px; color: #ad94bb; font-size: 10px; }
.admin-workspace-note { padding: 23px; border-radius: 16px; background: linear-gradient(140deg, #9375f6, #7653eb); color: #fff; }
.admin-workspace-note svg { width: 23px; height: 23px; margin-bottom: 20px; color: #dfd4ff; }
.admin-workspace-note h2, .admin-workspace-note h3, .admin-workspace-note strong { display: block; margin-bottom: 10px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.8; }
.admin-workspace-note p { color: #eee7ff; font-size: 11px; line-height: 1.95; }
.admin-workspace-note small { display: block; margin-top: 22px; color: #cdbbff; font-size: 9px; }
.admin-recent-list { display: grid; gap: 0; }
.admin-recent-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 0; border-top: 1px solid #f0ecf6; }
.admin-recent-row:first-child { border-top: 0; padding-top: 0; }
.admin-recent-row:last-child { padding-bottom: 0; }
.admin-recent-row > img, .admin-recent-row > .admin-video-placeholder { flex: 0 0 34px; width: 34px; height: 48px; border: 1px solid #e9dff3; border-radius: 6px; object-fit: cover; background: #f6f0fc; color: #b79bcb; }
.admin-recent-row > .admin-video-placeholder { display: grid; place-items: center; }
.admin-recent-row > div { min-width: 0; flex: 1; }
.admin-recent-row > svg { color: #baa3cf; }
.admin-recent-row strong { display: block; overflow-wrap: anywhere; color: #73617f; font-size: 12px; font-weight: 500; }
.admin-recent-row small, .admin-recent-row > span { display: block; color: #a491b0; font-size: 10px; }
.admin-recent-row > a { margin-left: auto; flex-shrink: 0; color: #9a7cb8; font-size: 10px; text-decoration: none; }
.admin-recent-row > a:hover { color: #7659ee; }
.admin-recent-row > .admin-status { flex-shrink: 0; color: #549e7c; font-size: 9px; }
.admin-workspace .admin-search input, .admin-workspace .admin-sort select { border-color: #e3dfec; background: #fff; color: #665b76; }
.admin-workspace .admin-search input::placeholder { color: #a49bab; }
.admin-workspace .admin-search > span, .admin-workspace .admin-sort { color: #8d839a; }
.admin-workspace .admin-table-wrap { border-color: #eeebf4; scrollbar-color: #d6cdeb #faf9fc; }
.admin-workspace .admin-table th { border-color: #eae5f1; background: #faf9fd; color: #9688a4; font-size: 11px; }
.admin-workspace .admin-table td { border-color: #efebf5; color: #81748f; }
.admin-workspace .admin-table tbody tr:hover { background: #fbfaff; }
.admin-workspace .admin-video-cell strong, .admin-workspace .admin-video-cell a { color: #514160; }
.admin-workspace .admin-video-cell a:hover { color: #7659ee; }
.admin-workspace .admin-video-cell small, .admin-workspace .admin-video-cell p { color: #a094ad; }
.admin-workspace .admin-video-cell > .admin-video-placeholder { border-color: #ded5ef; background: #f4effc; color: #a68ac5; }
.admin-workspace .admin-row-actions .button { padding: 8px 12px; border-radius: 8px; }
.admin-workspace .admin-status { border-color: #e6e1ec; background: #f2eff7; color: #92809f; }
.admin-workspace .admin-status.ready, .admin-workspace .admin-status.approved, .admin-workspace .admin-status[data-status="ready"], .admin-workspace .admin-status[data-status="approved"] { border-color: #d4f0e4; background: #e8faf1; color: #529e7c; }
.admin-workspace .admin-status.pending, .admin-workspace .admin-status.uploading, .admin-workspace .admin-status[data-status="pending"], .admin-workspace .admin-status[data-status="uploading"] { border-color: #f0e4c9; background: #fff8e9; color: #ad8d48; }
.admin-workspace .admin-status.suspended, .admin-workspace .admin-status.failed, .admin-workspace .admin-status[data-status="suspended"], .admin-workspace .admin-status[data-status="failed"] { border-color: #f1dbe4; background: #fbeef3; color: #b46c83; }
.admin-workspace .admin-status.owner, .admin-workspace .admin-status[data-status="owner"] { border-color: #e3dcf5; background: #f1edfc; color: #8b6cb6; }
.admin-workspace .admin-pending-row, .admin-workspace .admin-member-row, .admin-workspace .admin-setting { border-color: #eeebf4; }
.admin-workspace .admin-pending-row strong, .admin-workspace .admin-member-detail strong { color: #5c4e6c; }
.admin-workspace .admin-pending-meta, .admin-workspace .admin-member-detail small, .admin-workspace .admin-member-detail p { color: #a092ae; }
.admin-workspace .admin-pending-row progress { background: #f0edf7; accent-color: #a48add; }
.admin-workspace .admin-pending-row progress::-webkit-progress-bar { background: #f0edf7; }
.admin-workspace .admin-pending-row progress::-webkit-progress-value { background: #a48add; }
.admin-workspace .admin-pending-row progress::-moz-progress-bar { background: #a48add; }
.admin-workspace .admin-setting dt { color: #9a8fa7; }
.admin-workspace .admin-setting dd { color: #5f516e; }
.admin-workspace .admin-setting dd a { color: #8b70bf; }
.admin-workspace .admin-notice, .admin-workspace .admin-panel > .admin-notice { border-left-color: #b6a0ec; background: #f7f3ff; color: #9582ac; }
.admin-workspace .admin-notice a { color: #7659ee; }
.admin-workspace .admin-denied { width: calc(100% - 60px); max-width: 610px; min-height: 0; margin: 40px auto; padding: 36px; border-color: #e8e2f1; background: #fff; }
.admin-workspace .admin-denied p { color: #93849f; }
.admin-workspace .page-footer { margin-top: 44px; border-color: transparent; color: #afa4bd; font-size: 10px; }
.admin-workspace .privacy-dot { background: #ab97d9; }
.admin-workspace .admin-overview-aside .admin-panel-head { align-items: flex-start; }
dialog.admin-dialog { border-color: #e3dcec; border-radius: 16px; background: #fff; box-shadow: 0 25px 100px #34214d35; }
dialog.admin-dialog::backdrop { background: #30204340; backdrop-filter: blur(4px); }
dialog.admin-dialog .dialog-head h2 { color: #44334f; }
dialog.admin-dialog .dialog-description, dialog.admin-dialog .permission-note { color: #9886a7; }
dialog.admin-dialog .account-details { color: #61536e; }
dialog.admin-dialog .account-details p { color: #93829f; }
dialog.admin-dialog .file-field { border-color: #d8cae9; background: #faf7fe; }
dialog.admin-dialog .file-field input::file-selector-button, dialog.admin-dialog .cover-field input::file-selector-button { border-color: #e0d5ee; background: #f2ecfb; color: #84669e; }
dialog.admin-dialog .cover-field { border-color: #e8deef; background: #fbf9fe; }
dialog.admin-dialog .cover-field label { color: #756083; }
dialog.admin-dialog .cover-preview { border-color: #e0d1ec; background: #f5edf9; }
dialog.admin-dialog .cover-preview-placeholder { color: #b397c6; }
dialog.admin-dialog .cover-field small, dialog.admin-dialog .cover-field p { color: #a08bae; }
dialog.admin-dialog .cover-status { color: #9b7ab3; }
dialog.admin-dialog .danger-zone, dialog.admin-dialog .grant-list, dialog.admin-dialog .grant-option { border-color: #ece5f3; }
dialog.admin-dialog .danger-zone button { color: #ba7188; }
dialog.admin-dialog .upload-progress p, dialog.admin-dialog .grant-option small { color: #9a86a7; }

@media (max-width: 1350px) {
  .admin-workspace .admin-overview-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
  .admin-workspace .admin-stats { gap: 11px; }
  .admin-workspace .admin-stat { padding: 18px 12px; }
  .admin-workspace .admin-stat strong { font-size: 28px; }
  .admin-workspace .admin-stat > span { font-size: 10px; }
  .admin-workspace .admin-stat small { font-size: 9px; }
}
@media (max-width: 1150px) {
  .admin-workspace .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-overview-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
  .admin-overview-aside > .admin-panel { height: 100%; }
  .admin-global-search { width: 230px; }
  .admin-topbar { padding-left: 24px; padding-right: 24px; }
  .admin-workspace .admin-page { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .18s ease; box-shadow: 14px 0 45px #34214d15; }
  .admin-sidebar.open, .admin-workspace.menu-open .admin-sidebar { transform: translateX(0); }
  .admin-stage { width: 100%; margin-left: 0; }
  .admin-menu-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #e7e0f0; border-radius: 10px; background: #f7f3fc; color: #9a80b4; font-size: 22px; }
  .admin-sidebar-backdrop { position: fixed; inset: 0; z-index: 60; display: block; background: #30204340; }
  .admin-sidebar-backdrop[hidden] { display: none; }
  .admin-global-search { width: 260px; }
  .admin-workspace .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-workspace .admin-page { padding-bottom: 40px; }
  .admin-workspace .admin-side-nav.admin-tabs { display: flex; }
  .admin-workspace .admin-stat { min-height: 135px; padding: 18px 15px; }
}
@media (max-width: 767px) {
  .admin-topbar { gap: 12px; flex-wrap: wrap; min-height: 72px; padding: 15px 20px; }
  .admin-breadcrumb { flex: 1; font-size: 10px; }
  .admin-topbar-actions { margin-left: auto; }
  .admin-topbar-actions .account-button { max-width: 170px; font-size: 10px; min-height: 40px; }
  .admin-user-chip { max-width: 170px; }
  .admin-global-search { order: 4; width: 100%; margin: 0; height: 40px; }
  .admin-workspace .admin-page { min-height: 0; padding: 25px 20px 32px; }
  .admin-footer { padding-left: 20px; padding-right: 20px; }
  .admin-workspace .admin-heading { align-items: flex-start; gap: 18px; margin-bottom: 23px; }
  .admin-workspace .admin-heading h1 { font-size: 24px; }
  .admin-workspace .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-workspace .admin-stat { min-height: 130px; }
  .admin-workspace .admin-stat > span { font-size: 11px; }
  .admin-workspace .admin-stat small { font-size: 10px; }
  .admin-overview-main, .admin-overview-aside { gap: 18px; }
  .admin-analytics-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .admin-analytics-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .admin-workspace .admin-panel { padding: 19px; }
  .admin-overview-aside { grid-template-columns: minmax(0, 1fr); }
  .admin-workspace .admin-denied { width: calc(100% - 40px); margin: 28px auto; }
}
@media (max-width: 640px) {
  .admin-workspace .admin-table .admin-video-row { border-color: #ebe4f2; background: #fdfcfe; }
  .admin-workspace .admin-table .admin-video-row:hover { background: #fdfcfe; }
  .admin-workspace .admin-table td, .admin-workspace .admin-table td:first-child { color: #867094; }
  .admin-workspace .admin-table td::before { color: #ad98b9; }
  .admin-workspace .admin-table .admin-row-actions { border-color: #eee5f4; }
  .admin-workspace .admin-table .admin-row-actions .button { min-height: 44px; }
}
@media (max-width: 479px) {
  .admin-topbar { gap: 10px; padding: 12px 16px; }
  .admin-breadcrumb { font-size: 10px; gap: 6px; }
  .admin-topbar-actions .account-button { max-width: 130px; padding: 5px 8px 5px 5px; }
  .admin-topbar-actions .account-button > span:first-child { width: 27px; height: 27px; }
  .admin-user-chip { max-width: 124px; padding-right: 9px; gap: 6px; }
  .admin-user-chip strong { max-width: 72px; font-size: 9px; }
  .admin-user-chip > span:last-child { max-width: 72px; font-size: 9px; }
  .admin-user-chip .avatar { width: 27px; height: 27px; }
  .admin-notifications { width: 33px; height: 33px; }
  .admin-workspace .admin-page { padding: 23px 16px 30px; }
  .admin-workspace .admin-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .admin-workspace .admin-heading h1 { font-size: 23px; }
  .admin-workspace .admin-heading p { font-size: 11px; }
  .admin-workspace .admin-heading .heading-actions { width: 100%; flex-wrap: wrap; gap: 9px; }
  .admin-workspace .admin-heading .button { min-height: 44px; padding: 10px 15px; font-size: 11px; }
  .admin-workspace .admin-stats { gap: 10px; }
  .admin-workspace .admin-stat { min-height: 137px; padding: 17px 13px; }
  .admin-workspace .admin-stat strong { font-size: 28px; }
  .admin-workspace .admin-stat small { font-size: 9px; }
  .admin-workspace .admin-panel { padding: 18px 15px; }
  .admin-analytics-side { grid-template-columns: minmax(0, 1fr); }
  .admin-chart-panel { min-height: 260px; }
  .admin-upload-chart { min-height: 175px; }
  .admin-chart-labels { gap: 1px; font-size: 8px; }
  .admin-workspace .admin-denied { width: calc(100% - 32px); padding: 27px 22px; }
  .admin-workspace .page-footer { margin-top: 28px; font-size: 9px; }
  .admin-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px 16px 24px; }
  .admin-recent-row { flex-wrap: wrap; }
  .admin-recent-row > div { flex-basis: calc(100% - 30px); }
  .admin-recent-row > .admin-status { margin-left: 30px; }
  dialog.admin-dialog .button { min-height: 44px; }
}

dialog.admin-dialog .member-access-identity { display: flex; align-items: center; gap: 12px; margin: 0 0 19px; padding: 0 0 17px; border-bottom: 1px solid #eee7f4; }
dialog.admin-dialog .member-access-identity > div { min-width: 0; }
dialog.admin-dialog .member-access-identity strong { display: block; color: #5f496e; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
dialog.admin-dialog .member-access-identity p, dialog.admin-dialog .member-access-identity small { display: block; margin-top: 3px; color: #a087af; font-size: 12px; overflow-wrap: anywhere; }
dialog.admin-dialog .member-access-status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 7px 11px; border: 1px solid #e6ddf0; border-radius: 999px; background: #f4effa; color: #997aad; font-size: 12px; font-weight: 500; }
dialog.admin-dialog .member-access-status.allowed { border-color: #d2eee0; background: #edf9f2; color: #549b75; }
dialog.admin-dialog .member-access-status.denied { border-color: #efdae4; background: #fbf0f4; color: #b57a90; }
dialog.admin-dialog .member-access-details { margin: 0 0 20px; padding: 0; }
dialog.admin-dialog .member-access-detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0eaf5; }
dialog.admin-dialog .member-access-detail:first-child { padding-top: 0; }
dialog.admin-dialog .member-access-detail dt { color: #a38cB2; font-size: 11px; }
dialog.admin-dialog .member-access-detail dd { margin: 0; color: #7c628c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
dialog.admin-dialog .member-access-notice, dialog.admin-dialog .member-protected-note { margin: 16px 0; padding: 13px 15px; border: 1px solid #e9def3; border-radius: 10px; background: #faf5ff; color: #9a7bad; font-size: 12px; line-height: 1.8; }
dialog.admin-dialog .member-access-error { margin: 15px 0; padding: 12px 14px; border: 1px solid #efcdd8; border-radius: 10px; background: #fff0f5; color: #b56d86; font-size: 12px; line-height: 1.8; }
dialog.admin-dialog .member-access-error:empty { display: none; }
dialog.admin-dialog .member-duration-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 20px 0 15px; }
dialog.admin-dialog .member-duration-controls .field { min-width: 0; margin: 0; }
dialog.admin-dialog .member-duration-controls select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #e3d8ec; border-radius: 10px; background: #fff; color: #81628f; font: inherit; font-size: 12px; }
dialog.admin-dialog .member-duration-controls label { display: block; margin-bottom: 7px; color: #9b7cab; font-size: 12px; }
dialog.admin-dialog .member-access-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
dialog.admin-dialog .member-access-actions .button { min-height: 44px; flex: 1; }
dialog.admin-dialog .member-action-note { margin-top: 14px; color: #ad94bc; font-size: 11px; line-height: 1.85; }
.admin-workspace .admin-member-row > .button { flex-shrink: 0; }
@media (max-width: 479px) {
  dialog.admin-dialog .member-access-detail { gap: 10px; }
  dialog.admin-dialog .member-duration-controls { grid-template-columns: 1fr; }
  dialog.admin-dialog .member-access-actions { gap: 9px; }
  dialog.admin-dialog .member-access-actions .button { flex-basis: calc(50% - 5px); padding: 10px 12px; font-size: 11px; }
  dialog.admin-dialog .member-access-notice, dialog.admin-dialog .member-protected-note { font-size: 11px; padding: 12px; }
  .admin-workspace .admin-member-row > .button { min-height: 44px; margin-left: 43px; }
}
