/* [next]/internal/font/google/geist_f15bd114.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_f15bd114-module__7725RG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_f15bd114-module__7725RG__variable {
  --font-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_6ed36146.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_6ed36146-module__KdPPOG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_6ed36146-module__KdPPOG__variable {
  --font-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-hover: #f0f1f3;
  --surface-active: #e6e8eb;
  --border: #e2e4e8;
  --border-strong: #cbcfd6;
  --text: #11141a;
  --text-secondary: #58606e;
  --text-muted: #8c93a0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent-red: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px #0000000a;
  --shadow: 0 1px 3px #00000014, 0 1px 2px #0000000a;
  --shadow-lg: 0 10px 25px -5px #00000014;
  --sidebar-w: 240px;
  --font: var(--font-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b20;
  --surface-hover: #22262e;
  --surface-active: #2b303a;
  --border: #282d37;
  --border-strong: #383f4d;
  --text: #f3f4f6;
  --text-secondary: #9da5b4;
  --text-muted: #6b7280;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #3b82f626;
  --accent-red: #f87171;
  --success: #10b981;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #22d3ee;
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow: 0 2px 6px #0006;
  --shadow-lg: 0 12px 30px #00000080;
}

*, :before, :after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color .15s, color .15s;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

.sr-only {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  display: none !important;
}

nextjs-portal, [data-nextjs-toast], [data-nextjs-dev-overlay-root], div[data-nextjs-dialog-overlay] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 30;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  padding: 14px 10px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand-header {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 10px 18px;
  display: flex;
}

.brand-logo-icon {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  box-shadow: 0 2px 6px #2563eb4d;
}

.brand-title {
  letter-spacing: -.02em;
  font-size: 17px;
  font-weight: 800;
}

.sidebar-upload-btn {
  background: var(--primary);
  border-radius: var(--radius-sm);
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color .15s;
  display: flex;
  color: #fff !important;
}

.sidebar-upload-btn:hover {
  background: var(--primary-hover);
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  display: flex;
}

.nav-group-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
}

.nav-item {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
}

.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  display: flex;
}

.theme-switch-btn {
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
  width: 100%;
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s;
  display: flex;
}

.theme-switch-btn:hover {
  color: var(--text);
}

.user-card {
  background: var(--surface-hover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  transition: all .15s;
  display: flex;
}

.user-card:hover {
  background: var(--surface-active);
  border-color: var(--border-strong);
}

.user-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.user-avatar-circle {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: 700;
  display: grid;
}

.user-online-dot {
  border: 2px solid var(--surface);
  background: #10b981;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name-text {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}

.user-email-text {
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.25;
  overflow: hidden;
}

.user-action-btn {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
}

.user-action-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.app-main-wrapper {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
}

.desktop-top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 25;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 1px 2px #00000005;
}

.top-bar-left {
  align-items: center;
  gap: 12px;
  display: flex;
}

.top-brand-crumb {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.top-brand-crumb b {
  color: var(--text);
  font-weight: 700;
}

.top-bar-right {
  align-items: center;
  gap: 10px;
  display: flex;
}

.theme-toggle-switch {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: none;
  outline: none;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.switch-track {
  border: 1px solid var(--border-strong);
  background: #e2e4e9;
  border-radius: 30px;
  align-items: center;
  width: 52px;
  height: 28px;
  transition: background-color .25s, border-color .25s;
  display: flex;
  position: relative;
  box-shadow: inset 0 2px 4px #00000014;
}

[data-theme="dark"] .switch-track {
  background: #181c24;
  border-color: #313847;
  box-shadow: inset 0 2px 4px #0006;
}

.switch-thumb {
  background: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), background-color .2s;
  display: flex;
  position: absolute;
  top: 2px;
  left: 3px;
  box-shadow: 0 2px 5px #0003;
}

[data-theme="dark"] .switch-thumb {
  background: #252b36;
  transform: translateX(24px);
  box-shadow: 0 2px 6px #00000080;
}

.theme-toggle-switch:hover .switch-thumb {
  box-shadow: 0 2px 8px #2563eb4d;
}

.top-logout-btn {
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
}

.top-logout-btn:hover {
  color: var(--danger);
  background: #ef444414;
}

.ios-dialog-backdrop {
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  background: #00000073;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: .2s forwards iosBackdropFadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

@keyframes iosBackdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ios-dialog-card {
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  text-align: center;
  background: #ffffffe0;
  border: 1px solid #fff6;
  border-radius: 22px;
  width: 100%;
  max-width: 310px;
  animation: .25s cubic-bezier(.175, .885, .32, 1.2) forwards iosDialogPopIn;
  overflow: hidden;
  box-shadow: 0 20px 45px #00000040;
}

[data-theme="dark"] .ios-dialog-card {
  background: #1e222beb;
  border: 1px solid #ffffff1a;
  box-shadow: 0 24px 50px #0009;
}

@keyframes iosDialogPopIn {
  from {
    opacity: 0;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ios-dialog-body {
  padding: 22px 18px 18px;
}

.ios-dialog-icon {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1;
  display: inline-block;
}

.ios-dialog-title {
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 700;
}

.ios-dialog-message {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.45;
}

.ios-dialog-actions {
  border-top: .5px solid var(--border);
  display: flex;
}

.ios-dialog-btn {
  color: #007aff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 46px;
  font-size: 15.5px;
  font-weight: 500;
  transition: background .15s;
  display: flex;
}

.ios-dialog-btn:active {
  background: #0000000d;
}

[data-theme="dark"] .ios-dialog-btn:active {
  background: #ffffff14;
}

.ios-dialog-btn + .ios-dialog-btn {
  border-left: .5px solid var(--border);
}

.ios-dialog-btn.cancel {
  color: var(--text-secondary);
  font-weight: 400;
}

.ios-dialog-btn.confirm {
  color: #007aff;
  font-weight: 600;
}

.ios-dialog-btn.danger {
  color: #ff3b30;
  font-weight: 600;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 60px;
}

.mobile-top-bar, .mobile-bottom-nav {
  display: none;
}

.uploaded-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}

.uploaded-banner-inner {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.uploaded-file-info {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.uploaded-filename {
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 380px;
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
}

.resolution-tag {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
}

.uploaded-status-text {
  color: var(--success);
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  display: flex;
}

.banner-progress-line {
  background: var(--success);
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.studio-grid {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: flex-start;
  gap: 24px;
  display: grid;
}

.studio-form {
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  display: flex;
}

.studio-side {
  flex-direction: column;
  gap: 16px;
  display: flex;
  position: sticky;
  top: 20px;
}

.studio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.studio-card-title {
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
}

.form-group {
  margin-bottom: 18px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  display: block;
}

.form-label-desc {
  color: var(--text-muted);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
}

.caption-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

.caption-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.caption-textarea {
  resize: vertical;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.caption-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-hover);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.caption-shortcuts {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.shortcut-tag {
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-size: 12.5px;
  font-weight: 600;
}

.shortcut-tag:hover {
  color: var(--primary);
}

.char-count {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
}

.upload-drop-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 36px 20px;
  transition: all .2s;
}

.upload-drop-area:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon-circle {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  width: 50px;
  height: 50px;
  color: var(--primary);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 12px;
  display: grid;
}

.channel-row {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.channel-toggle {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  transition: all .15s;
  display: inline-flex;
}

.channel-toggle:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.channel-toggle.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.channel-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}

.radio-group {
  align-items: center;
  gap: 20px;
  display: flex;
}

.radio-option {
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
}

.radio-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.studio-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  outline: none;
  width: 100%;
  max-width: 320px;
  height: 38px;
  padding: 0 10px;
  font-size: 13.5px;
}

.studio-select:focus {
  border-color: var(--primary);
}

.toggle-item {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.toggle-item:last-child {
  border-bottom: none;
}

.switch-label-title {
  font-size: 13.5px;
  font-weight: 600;
}

.switch-label-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.switch-input {
  appearance: none;
  background: var(--border-strong);
  cursor: pointer;
  border-radius: 20px;
  outline: none;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  transition: background .2s;
  position: relative;
}

.switch-input:checked {
  background: var(--primary);
}

.switch-input:before {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transition: transform .2s;
  position: absolute;
  top: 2px;
  left: 2px;
}

.switch-input:checked:before {
  transform: translateX(16px);
}

.studio-action-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 20px;
  display: flex;
}

.btn-studio-primary {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
  display: inline-flex;
}

.btn-studio-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-studio-secondary {
  background: var(--surface-hover);
  height: 40px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s;
}

.btn-studio-secondary:hover {
  background: var(--surface-active);
}

.btn-studio-ghost {
  height: 40px;
  color: var(--text-secondary);
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.btn-studio-ghost:hover {
  color: var(--text);
}

.preview-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  overflow: hidden;
}

.preview-tab-row {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  display: flex;
}

.preview-tab-btn {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  background: var(--surface-hover);
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s;
}

.preview-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tiktok-phone-skin {
  color: #fff;
  background: #000;
  border-radius: 44px;
  flex-direction: column;
  width: 100%;
  max-width: 336px;
  height: 730px;
  margin: 0 auto;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px #00000059, 0 0 0 4.5px #141416, 0 0 0 5.5px #2a2a2e;
}

.tiktok-phone-skin, .tiktok-phone-skin * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.tiktok-phone-skin::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.tiktok-phone-skin ::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.tiktok-phone-skin:before {
  content: "";
  z-index: 30;
  pointer-events: none;
  background: #000;
  border-radius: 20px;
  width: 86px;
  height: 22px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.tiktok-phone-skin:after {
  content: "";
  z-index: 30;
  pointer-events: none;
  background: #ffffff80;
  border-radius: 3px;
  width: 115px;
  height: 4px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 3px #0000004d;
}

.tiktok-phone-screen {
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.tiktok-video-bg {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.tiktok-overlay-gradient {
  pointer-events: none;
  background: linear-gradient(#0000004d 0%, #0000 15% 60%, #000000d9 100%);
  position: absolute;
  inset: 0;
}

.tiktok-top-bar {
  z-index: 2;
  justify-content: center;
  gap: 16px;
  padding: 34px 0 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  position: relative;
}

.tiktok-top-tab {
  opacity: .7;
}

.tiktok-top-tab.active {
  opacity: 1;
  position: relative;
}

.tiktok-top-tab.active:after {
  content: "";
  background: #fff;
  border-radius: 2px;
  width: 20px;
  height: 2px;
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.tiktok-side-actions {
  z-index: 2;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  display: flex;
  position: absolute;
  bottom: 70px;
  right: 10px;
}

.tiktok-action-item {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
}

.tiktok-avatar-circle {
  object-fit: cover;
  background: #262626;
  border: 1.5px solid #fff;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}

.tiktok-disc-spin {
  background: conic-gradient(#333, #111, #333);
  border: 5px solid #222;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.tiktok-bottom-info {
  z-index: 2;
  max-width: calc(100% - 50px);
  padding: 0 12px 14px;
  position: relative;
}

.tiktok-author-handle {
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 700;
}

.tiktok-caption-text {
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 12.5px;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}

.tiktok-sound-info {
  opacity: .9;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  display: flex;
}

.studio-preview-tools {
  border-top: 1px solid var(--border);
  justify-content: space-around;
  margin-top: 12px;
  padding-top: 12px;
  display: flex;
}

.studio-tool-item {
  color: var(--text-secondary);
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  display: flex;
}

.badge {
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.badge-success {
  color: var(--success);
  background: #10b9811f;
}

.badge-pending {
  color: var(--warning);
  background: #f59e0b1f;
}

.badge-failed {
  color: var(--danger);
  background: #ef44441f;
}

.badge-processing {
  color: var(--info);
  background: #06b6d41f;
}

.spinner {
  border: 2px solid;
  border-top-color: #0000;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: .6s linear infinite spin;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-host {
  z-index: 100;
  flex-direction: column;
  gap: 8px;
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.toast {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
}

.toast-ok {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-info {
  border-left: 4px solid var(--info);
}

@media (max-width: 1024px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-side {
    position: static;
  }

  .tiktok-phone-skin {
    max-width: 290px;
  }
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
    padding-bottom: 60px;
  }

  .sidebar {
    display: none;
  }

  .mobile-top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 40;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-bottom-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 50;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .mobile-nav-btn {
    color: var(--text-secondary);
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px;
    font-size: 10.5px;
    font-weight: 600;
    display: flex;
  }

  .mobile-nav-btn.active {
    color: var(--primary);
  }

  .main-content {
    padding: 16px 14px 40px;
  }

  .studio-card {
    padding: 16px;
  }

  .studio-action-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .btn-studio-primary, .btn-studio-secondary, .btn-studio-ghost {
    width: 100%;
  }

  .uploaded-filename {
    max-width: 200px;
  }

  .desktop-top-bar {
    display: none;
  }

  .post-row {
    grid-template-columns: 80px minmax(0, 1fr) !important;
  }

  .post-thumb {
    width: 80px !important;
    height: 110px !important;
  }
}

.page-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  display: flex;
}

.page-title {
  letter-spacing: -.02em;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 850;
}

.page-sub {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13.5px;
}

.spacer {
  flex: 1;
}

.row {
  align-items: center;
  gap: 10px;
  display: flex;
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: all .15s;
  display: inline-flex;
}

.btn-primary {
  background: var(--primary);
  box-shadow: 0 1px 3px #2563eb40;
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-icon {
  border-radius: var(--radius-xs);
  justify-content: center;
  align-items: center;
  padding: 7px;
  display: inline-flex;
}

.btn-danger {
  color: var(--danger) !important;
}

.btn-danger:hover {
  border-color: var(--danger) !important;
  background: #ef44441a !important;
}

.btn-block {
  width: 100%;
}

.filter-bar {
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  display: flex;
  overflow-x: auto;
}

.post-list {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.post-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 20px;
  transition: all .18s;
  display: grid;
}

.post-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.post-thumb {
  border-radius: var(--radius-sm);
  background: #111;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 140px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.post-thumb video, .post-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.post-thumb .count {
  color: #fff;
  background: #000000bf;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  position: absolute;
  bottom: 6px;
  right: 6px;
}

.post-when {
  color: var(--text-secondary);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
}

.post-caption {
  color: var(--text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.post-caption .dim {
  color: var(--text-muted);
  font-style: italic;
}

.target-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.target-item {
  background: var(--surface-hover);
  border-radius: var(--radius-xs);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 13px;
  display: flex;
}

.target-name {
  color: var(--text);
  font-weight: 650;
}

.target-link {
  color: var(--primary);
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.target-link:hover {
  text-decoration: underline;
}

.target-error {
  width: 100%;
  color: var(--danger);
  background: #ef444414;
  border-radius: 4px;
  margin-top: 4px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card-sub {
  color: var(--text-secondary);
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px 24px;
}

.empty-icon {
  background: var(--surface-hover);
  width: 52px;
  height: 52px;
  color: var(--text-muted);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 14px;
  display: grid;
}

.empty h3 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}

.so9-header-card {
  margin-bottom: 24px;
}

.so9-title-row {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.so9-main-title {
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.so9-verified-badge {
  color: #fff;
  background: #1877f2;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
}

.so9-subtitle {
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.so9-channel-list {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.so9-channel-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  transition: all .15s;
  display: flex;
}

.so9-channel-row:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.so9-channel-row.has-notice {
  flex-direction: column;
  align-items: stretch;
}

.so9-channel-main {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  display: flex;
}

.so9-channel-left {
  align-items: center;
  gap: 14px;
  min-width: 240px;
  display: flex;
}

.so9-channel-icon {
  color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  display: grid;
}

.so9-channel-icon.facebook {
  background: #1877f2;
}

.so9-channel-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.so9-channel-icon.tiktok {
  background: #000;
}

.so9-channel-icon.youtube {
  background: red;
}

.so9-channel-icon.x {
  background: #0f1419;
}

.so9-channel-info {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.so9-channel-name-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.so9-channel-name {
  color: var(--text);
  font-size: 15.5px;
  font-weight: 800;
}

.so9-channel-sub {
  color: var(--text-muted);
  font-size: 12.5px;
}

.so9-tag {
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.so9-tag.popular {
  color: var(--primary);
  background: #2563eb1f;
  border: 1px solid #2563eb33;
}

.so9-tag.trending {
  color: #dc2743;
  background: #dc27431f;
  border: 1px solid #dc274333;
}

.so9-tag.engaging {
  color: var(--warning);
  background: #f59e0b1f;
  border: 1px solid #f59e0b33;
}

.so9-tag.official {
  color: var(--success);
  background: #10b9811f;
  border: 1px solid #10b98133;
}

.so9-tag.beta {
  color: var(--text-secondary);
  background: #6b728026;
}

.so9-features-wrap {
  flex-direction: column;
  flex: 1;
  gap: 5px;
  min-width: 250px;
  display: flex;
}

.so9-features-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.so9-features-tags {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}

.so9-feature-tag {
  color: var(--text-secondary);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

.so9-actions-wrap {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  display: flex;
}

.so9-connect-btn {
  color: #fff;
  cursor: pointer;
  background: #233876;
  border: none;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .15s;
  box-shadow: 0 1px 3px #2338764d;
}

[data-theme="dark"] .so9-connect-btn {
  background: #3b82f6;
}

.so9-connect-btn:hover {
  background: #1d2d5a;
  transform: translateY(-1px);
}

[data-theme="dark"] .so9-connect-btn:hover {
  background: #2563eb;
}

.so9-connect-btn.secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.so9-connect-btn.secondary:hover {
  background: var(--surface-active);
  border-color: var(--primary);
  color: var(--primary);
}

.so9-chevron {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.so9-warning-notice {
  border-top: 1px solid var(--border);
  color: #ea580c;
  margin-top: 12px;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

[data-theme="dark"] .so9-warning-notice {
  color: #fb923c;
}

.so9-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  animation: .25s cubic-bezier(.175, .885, .32, 1.2) forwards iosDialogPopIn;
  display: flex;
}

.so9-modal-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.so9-modal-title {
  color: var(--text);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 20px;
  font-weight: 850;
}

.so9-modal-desc {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.so9-modal-section {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.so9-modal-section-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.so9-box {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.so9-box.warning {
  background: #f59e0b0f;
  border-color: #f59e0b4d;
}

.so9-perm-option {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  display: flex;
}

.so9-perm-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.so9-perm-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.so9-perm-title {
  color: var(--text);
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 700;
}

.so9-perm-sub {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.so9-modal-footer {
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  display: flex;
}

.account-table {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.account-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  display: flex;
}

.account-row-name {
  font-size: 14.5px;
  font-weight: 700;
}

.avatar-wrap {
  flex-shrink: 0;
  position: relative;
}

.avatar {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 15px;
  font-weight: 750;
  display: grid;
  overflow: hidden;
}

.avatar-badge {
  color: #fff;
  border: 2px solid var(--surface);
  border-radius: 50%;
  place-items: center;
  width: 19px;
  height: 19px;
  display: grid;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.cal-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.cal-top-header {
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  display: flex;
}

.cal-title-group {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.cal-date-range {
  color: var(--text);
  letter-spacing: -.01em;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
}

.cal-timezone-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.cal-controls-group {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.cal-nav-btns {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  display: inline-flex;
  overflow: hidden;
}

.cal-nav-btn {
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}

.cal-nav-btn:hover {
  background: var(--surface-active);
}

.cal-nav-btn + .cal-nav-btn {
  border-left: 1px solid var(--border);
}

.cal-view-selector {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.cal-view-btn {
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .15s;
}

.cal-view-btn.active {
  background: var(--primary);
  color: #fff;
}

.cal-timeline-container {
  background: var(--surface);
  max-height: 680px;
  position: relative;
  overflow: auto;
}

.cal-timeline-table {
  background: var(--surface);
  grid-template-columns: 65px repeat(7, minmax(130px, 1fr));
  min-width: 980px;
  display: grid;
}

.cal-timeline-header-cell {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  z-index: 10;
  padding: 12px 6px;
  position: sticky;
  top: 0;
}

.cal-timeline-header-cell.time-axis-head {
  background: var(--surface);
  border-left: none;
}

.cal-day-col-pill {
  color: var(--text-secondary);
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 750;
  transition: all .15s;
  display: inline-flex;
}

.cal-day-col-pill.today {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px #2563eb59;
}

.cal-time-axis-cell {
  text-align: right;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  -webkit-user-select: none;
  user-select: none;
  padding: 8px 10px 0;
  font-size: 11.5px;
  font-weight: 600;
}

.cal-timeline-slot {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 4px;
  transition: background .12s;
  display: flex;
  position: relative;
}

.cal-timeline-slot:hover {
  background: var(--surface-hover);
}

.cal-thumb-card-wrap {
  cursor: pointer;
  width: 100%;
  transition: transform .16s;
  position: relative;
}

.cal-thumb-card-wrap:hover {
  z-index: 5;
  transform: translateY(-2px);
}

.cal-card-stack-layer {
  background: var(--surface-active);
  border: 1px solid var(--border-strong);
  z-index: 1;
  border-radius: 9px;
  position: absolute;
  inset: -3px 4px 0;
}

.cal-thumb-card {
  z-index: 2;
  background: #111;
  border: 1px solid #ffffff2e;
  border-radius: 9px;
  width: 100%;
  height: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 8px #00000040;
}

.cal-thumb-card.compact {
  height: 48px;
}

[data-theme="light"] .cal-thumb-card {
  border: 1px solid #0000001f;
  box-shadow: 0 2px 6px #0000001a;
}

.cal-thumb-media {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.cal-thumb-placeholder {
  color: #fff;
  background: #222;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  display: flex;
}

.cal-thumb-type-badge {
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  background: #000000a6;
  border: 1px solid #fff3;
  border-radius: 4px;
  place-items: center;
  width: 19px;
  height: 19px;
  font-size: 11px;
  display: grid;
  position: absolute;
  top: 4px;
  left: 4px;
}

.cal-thumb-pill-badge {
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #000000c7;
  border: 1px solid #fff3;
  border-radius: 12px;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 8px);
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
}

.cal-month-container {
  flex-direction: column;
  display: flex;
}

.cal-head {
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 0;
  font-size: 12px;
  font-weight: 750;
  display: grid;
}

.cal-grid {
  grid-template-columns: repeat(7, 1fr);
  display: grid;
}

.cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  min-height: 110px;
  padding: 8px;
  transition: background .15s;
  display: flex;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.muted {
  background: var(--surface-hover);
  opacity: .5;
}

.cal-cell.today {
  background: var(--primary-light);
}

.cal-day {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 750;
  display: flex;
}

.cal-add {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  opacity: 0;
  border-radius: 4px;
  place-items: center;
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
  display: grid;
}

.cal-cell:hover .cal-add {
  opacity: 1;
  background: var(--surface-hover);
}

.modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0000008c;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.login-page-root {
  background-color: var(--bg);
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-bg-glow {
  filter: blur(100px);
  pointer-events: none;
  opacity: .55;
  border-radius: 50%;
  position: absolute;
}

.glow-1 {
  background: radial-gradient(circle, #2563eb59, #0000 70%);
  width: 480px;
  height: 480px;
  animation: 12s ease-in-out infinite alternate floatGlow;
  top: -120px;
  left: 10%;
}

.glow-2 {
  background: radial-gradient(circle, #a855f74d, #0000 70%);
  width: 420px;
  height: 420px;
  animation: 14s ease-in-out infinite alternate-reverse floatGlow;
  bottom: -90px;
  right: 10%;
}

.glow-3 {
  background: radial-gradient(circle, #06b6d440, #0000 70%);
  width: 320px;
  height: 320px;
  animation: 10s ease-in-out infinite alternate floatGlow;
  top: 40%;
  right: 25%;
}

@keyframes floatGlow {
  0% {
    transform: translate(0) scale(1);
  }

  100% {
    transform: translate(30px, 40px) scale(1.1);
  }
}

.login-container {
  z-index: 10;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.login-glass-card {
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: #ffffffdb;
  border: 1px solid #ffffffb3;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px -10px #00000014, 0 0 0 1px #00000008;
}

[data-theme="dark"] .login-glass-card {
  background: #181b20d1;
  border: 1px solid #ffffff17;
  box-shadow: 0 25px 60px -15px #0009, 0 0 0 1px #ffffff0d;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
}

.brand-logo-glow {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 4px 12px #2563eb59;
}

.brand-badge-info {
  align-items: center;
  gap: 6px;
  display: flex;
}

.brand-name {
  color: var(--text);
  letter-spacing: -.02em;
  font-size: 16px;
  font-weight: 800;
}

.brand-tag {
  color: #2563eb;
  background: #2563eb1a;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.login-title {
  color: var(--text);
  letter-spacing: -.025em;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.login-subtitle {
  color: var(--text-secondary);
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
}

.login-platforms-pill {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.plat-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  transition: transform .15s;
  display: inline-flex;
}

.plat-badge:hover {
  transform: translateY(-1px);
}

.plat-badge.meta {
  color: #1877f2;
}

.plat-badge.insta {
  color: #e1306c;
}

.plat-badge.tiktok {
  color: #11141a;
}

[data-theme="dark"] .plat-badge.tiktok {
  color: #25f4ee;
}

.plat-badge.yt {
  color: #f03;
}

.login-error-alert {
  color: #ef4444;
  background: #ef44441a;
  border: 1px solid #ef444440;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.login-form {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.login-field-group {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.login-label-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.login-field-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.toggle-pwd-btn {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.toggle-pwd-btn:hover {
  text-decoration: underline;
}

.login-input-wrapper {
  align-items: center;
  display: flex;
  position: relative;
}

.login-input-icon {
  pointer-events: none;
  opacity: .65;
  font-size: 15px;
  position: absolute;
  left: 14px;
}

.login-input {
  border: 1.5px solid var(--border);
  background: var(--surface);
  width: 100%;
  height: 48px;
  color: var(--text);
  border-radius: 14px;
  outline: none;
  padding: 0 16px 0 42px;
  font-size: 14px;
  transition: all .2s;
}

.login-input:focus {
  background: var(--surface);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb26;
}

.login-eye-btn {
  color: var(--text-muted);
  z-index: 10;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 8px;
  transition: all .15s;
  display: flex;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer !important;
}

.login-eye-btn svg {
  pointer-events: none;
}

.login-eye-btn:hover {
  color: var(--primary);
  background: #2563eb14;
}

[data-theme="dark"] .login-eye-btn:hover {
  color: #60a5fa;
  background: #3b82f626;
}

.login-submit-btn {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: none;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 50px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  display: flex;
  box-shadow: 0 8px 20px -4px #2563eb66;
}

.login-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 12px 24px -4px #2563eb80;
}

.login-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit-btn.loading {
  opacity: .75;
  cursor: not-allowed;
}

.btn-arrow-icon {
  font-size: 18px;
  transition: transform .2s;
}

.login-submit-btn:hover .btn-arrow-icon {
  transform: translateX(3px);
}

.login-spinner {
  border: 2.5px solid #ffffff59;
  border-top-color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: .8s linear infinite spin;
}

.login-credentials-box {
  background: var(--surface-hover);
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  margin-top: 24px;
  padding: 12px 14px;
  font-size: 12.5px;
}

.cred-box-header {
  color: var(--text);
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 750;
  display: flex;
}

.cred-status-dot {
  background: #10b981;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.cred-fill-btn {
  color: #2563eb;
  cursor: pointer;
  background: #2563eb1a;
  border: 1px solid #2563eb33;
  border-radius: 6px;
  margin-left: auto;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  transition: all .15s;
}

.cred-fill-btn:hover {
  color: #fff;
  background: #2563eb;
}

.cred-box-body {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.cred-item {
  align-items: center;
  gap: 8px;
  display: flex;
}

.cred-label {
  color: var(--text-muted);
  width: 60px;
}

.cred-value {
  font-family: var(--font-mono, monospace);
  color: var(--text);
  font-weight: 600;
}

.login-footer-security {
  text-align: center;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 11.5px;
  display: flex;
}

@media (max-width: 900px) {
  .app-layout {
    flex-direction: column !important;
  }

  aside.app-sidebar, .desktop-top-bar {
    display: none !important;
  }

  .mobile-top-bar {
    z-index: 100 !important;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
  }

  .top-logout-btn {
    color: var(--danger) !important;
    border-radius: var(--radius-xs) !important;
    cursor: pointer !important;
    background: #ef444414 !important;
    border: 1px solid #ef444433 !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .mobile-bottom-nav {
    z-index: 100 !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    justify-content: space-around !important;
    align-items: center !important;
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-shadow: 0 -4px 16px #0000000f !important;
  }

  .mobile-nav-link {
    color: var(--text-muted) !important;
    border-radius: 8px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    min-width: 58px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all .15s !important;
    display: flex !important;
  }

  .mobile-nav-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
  }

  .mobile-nav-icon {
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }

  .main-content {
    padding: 16px 14px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .studio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .studio-side {
    order: 2 !important;
    position: static !important;
    top: auto !important;
  }

  .tiktok-phone-skin {
    max-width: 320px !important;
    height: 650px !important;
    margin: 0 auto !important;
  }

  .accounts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .posts-table-wrap {
    overflow-x: auto !important;
  }

  .upload-drop-area {
    padding: 28px 16px !important;
  }
}

@media (max-width: 480px) {
  .login-glass-card {
    border-radius: 22px !important;
    padding: 28px 20px !important;
  }

  .login-title {
    font-size: 20px !important;
  }

  .login-subtitle {
    font-size: 12.5px !important;
  }

  .login-platforms-pill {
    gap: 6px !important;
  }

  .plat-badge {
    padding: 3px 8px !important;
    font-size: 11px !important;
  }

  .main-content {
    padding: 12px 10px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__19i4vwpp66e7h._.css.map*/