:root {
  color-scheme: light;
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #242435;
  background: #f6f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #89899a;
  --purple: #6d5ce8;
  --border: #ececf2;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 50% 0%, #fff 0, #f8f8fc 48%, #f5f6fa 100%); }
button, select, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.app-shell { width: min(1112px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(227, 228, 237, .8); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: #272638; font: 800 24px/1 'Manrope', sans-serif; letter-spacing: -1.6px; text-decoration: none; }
.brand-period { color: var(--purple); }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #8272f2, #5b49d6); box-shadow: 0 5px 12px #7462df40; }
.brand-mark span { width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; position: relative; }
.brand-mark span::after { content: ''; position: absolute; width: 3px; height: 7px; background: #fff; left: 2px; top: 8px; border-radius: 2px; }
.topbar-right { display: flex; align-items: center; gap: 27px; color: #858596; font-size: 12px; }
.browser-note { display: flex; align-items: center; gap: 8px; }
.secure-dot, .footer-dot { width: 7px; height: 7px; border-radius: 50%; background: #48c48a; box-shadow: 0 0 0 3px #48c48a1c; }
.help-link { color: #77778b; text-decoration: none; transition: color .2s ease; }
.help-link:hover { color: var(--purple); }
.help-link span { margin-left: 4px; }

.intro { padding: 55px 0 33px; text-align: center; }
.eyebrow, .section-kicker { color: #7060df; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 18px; height: 1px; background: #9c91ef; }
h1, h2, p { margin: 0; }
h1 { margin-top: 15px; color: #252438; font: 800 clamp(34px, 5vw, 48px)/1.2 'Manrope', 'PingFang SC', sans-serif; letter-spacing: -2px; }
h1 span { color: var(--purple); }
.intro p { max-width: 520px; margin: 14px auto 0; color: #858596; font-size: 14px; line-height: 1.8; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .92fr); gap: 18px; align-items: stretch; }
.preview-card, .control-card { overflow: hidden; border: 1px solid rgba(230, 230, 239, .9); border-radius: 15px; background: #fff; box-shadow: 0 10px 32px #3130580a, 0 2px 6px #31305805; }
.preview-card { min-width: 0; display: flex; flex-direction: column; }
.preview-toolbar { height: 47px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #f0f0f4; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #e7e7ed; }
.window-dots i:first-child { background: #ff8c83; }
.window-dots i:nth-child(2) { background: #ffd26b; }
.window-dots i:last-child { background: #75d9a1; }
.preview-label { margin-left: 12px; color: #8c8c9a; font-size: 11px; }
.recording-indicator { margin-left: auto; display: flex; gap: 7px; align-items: center; color: #e35358; font-size: 10px; font-weight: 700; }
.recording-indicator span, .live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #e35358; animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.preview-stage { min-height: 330px; flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #252437, #34334e); }
.preview-stage video { width: 100%; height: 100%; min-height: 330px; display: block; object-fit: contain; background: #201f30; }
.preview-empty { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 9px; color: #fff; text-align: center; pointer-events: none; }
.screen-icon { width: 59px; height: 59px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid #ffffff20; border-radius: 17px; color: #aaa1ff; background: #ffffff0a; }
.screen-icon svg { width: 34px; }
.preview-empty strong { font-size: 13px; font-weight: 600; }
.preview-empty span { color: #aaa9bd; font-size: 10px; }
.preview-overlay { position: absolute; left: 13px; right: 13px; top: 13px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 10px; text-shadow: 0 1px 5px #000; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; background: #181824b8; font-size: 9px; letter-spacing: .5px; }
.live-pill i { width: 5px; height: 5px; }
.preview-footer { min-height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #9292a1; font-size: 10px; }
.preview-footer > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.footer-dot { width: 6px; height: 6px; box-shadow: none; background: #c0c0cb; }
.preview-footer.is-live .footer-dot { background: #e35358; box-shadow: 0 0 0 3px #e353581b; }

.control-card { padding: 21px 22px 15px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-kicker { font-size: 9px; letter-spacing: .9px; }
.card-heading h2, .guide h2 { margin-top: 5px; color: #2c2b40; font: 700 17px/1.3 'Manrope', 'PingFang SC', sans-serif; letter-spacing: -.3px; }
.settings-icon { display: grid; place-items: center; width: 29px; height: 29px; color: #7668dc; border-radius: 9px; background: #f2f0ff; font-size: 17px; }
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.select-label { display: block; margin-bottom: 7px; color: #747487; font-size: 10px; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 38px; appearance: none; outline: none; padding: 0 34px 0 11px; border: 1px solid #e8e8ef; border-radius: 7px; color: #46465a; background: #fff; font-size: 10px; }
.format-value { height: 38px; display: flex; align-items: center; padding: 0 11px; border: 1px solid #e8e8ef; border-radius: 7px; color: #46465a; background: #f7f7fa; font-size: 10px; }
.select-wrap select:focus { border-color: #968be9; box-shadow: 0 0 0 3px #796be71a; }
.select-wrap select:disabled { color: #a0a0ad; background: #f7f7fa; cursor: not-allowed; }
.select-wrap > span { position: absolute; right: 12px; top: 9px; color: #9494a2; font-size: 16px; pointer-events: none; }
.setting-row { min-height: 57px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f4; }
.setting-row:first-of-type { margin-top: 6px; }
.trim-setting { min-height: 40px; display: flex; align-items: center; gap: 7px; padding-left: 4px; border-bottom: 1px solid #f0f0f4; color: #747487; font-size: 10px; }
.trim-toggle { display: inline-flex; flex: 1; align-items: center; gap: 7px; cursor: pointer; }
.trim-toggle input { accent-color: #7161e5; }
.seconds-input { width: 58px; height: 27px; padding: 0 6px; border: 1px solid #e8e8ef; border-radius: 6px; color: #46465a; background: #fff; font-size: 10px; }
.seconds-input:focus { outline: 2px solid #796be71a; border-color: #968be9; }
.seconds-input:disabled { color: #a0a0ad; background: #f7f7fa; cursor: not-allowed; }
.seconds-label { color: #9999a8; font-size: 9px; }
.setting-icon { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; font-size: 16px; }
.mic-icon { color: #8d68df; background: #f3edff; }
.audio-icon { color: #ed9c52; background: #fff5e9; }
.setting-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setting-copy strong { color: #454559; font-size: 10px; font-weight: 600; }
.setting-copy span { color: #9999a8; font-size: 9px; line-height: 1.4; }
.switch { width: 31px; height: 18px; position: relative; flex: 0 0 31px; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 20px; background: #e4e4eb; transition: background .2s ease; cursor: pointer; }
.switch-track::after { position: absolute; content: ''; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0002; transition: transform .2s ease; }
.switch input:checked + .switch-track { background: #7161e5; }
.switch input:checked + .switch-track::after { transform: translateX(13px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #7161e545; outline-offset: 2px; }
.format-note { display: flex; align-items: center; gap: 8px; min-height: 39px; color: #9a9aa8; font-size: 8px; }
.format-badge { padding: 4px 5px; border-radius: 4px; color: #6870ac; background: #f1f1fb; font-size: 8px; font-weight: 700; letter-spacing: .4px; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.button { min-height: 41px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 8px; font-size: 11px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:focus-visible { outline: 3px solid #7161e555; outline-offset: 2px; }
.button:active { transform: translateY(1px); }
.button-primary { width: 100%; padding: 0 12px; color: #fff; background: linear-gradient(110deg, #7868ed, #6554dd); box-shadow: 0 5px 12px #7161e533; }
.button-primary:hover { background: linear-gradient(110deg, #8879f3, #705fe7); box-shadow: 0 7px 16px #7161e544; }
.button-primary:disabled { opacity: .55; cursor: wait; }
.button-record-icon { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #ffffff38; }
.button-arrow { margin-left: auto; font-size: 15px; font-weight: 400; }
.recording-actions { display: flex; gap: 8px; }
.recording-actions .button { flex: 1; }
.button-secondary { border: 1px solid #e8e8ef; color: #646477; background: #fff; }
.button-secondary:hover { background: #f8f8fb; }
.button-stop { color: #fff; background: #ed5b64; }
.button-stop:hover { background: #e74c56; }
.button-stop > span { width: 9px; height: 9px; border-radius: 2px; background: #fff; }
.shortcut-hint { color: #9999a8; text-align: center; font-size: 9px; }
.shortcut-hint kbd { padding: 2px 5px; border: 1px solid #e8e8ef; border-radius: 4px; color: #646477; background: #f8f8fb; font: inherit; }
.timer { color: #727286; text-align: center; font: 500 11px 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; }
.button-download { width: 100%; color: #fff; background: #29283e; }
.button-download:hover { background: #3a3955; }
.button-download > span { font-size: 17px; }
.button-edit { width: 100%; border: 1px solid #e6e2ff; color: #6554dd; background: #f7f5ff; }
.button-edit:hover { background: #efedff; }
.editor-panel { display: flex; flex-direction: column; gap: 10px; padding: 13px; border: 1px solid #e8e5fb; border-radius: 9px; background: #faf9ff; }
.editor-panel h3 { margin: 0; color: #35344b; font-size: 12px; }
.editor-description { color: #89899a; font-size: 9px; line-height: 1.5; }
.editor-range { display: flex; align-items: center; gap: 6px; color: #747487; font-size: 9px; }
.editor-range .seconds-input { width: 66px; }
.editor-actions { display: flex; gap: 8px; }
.editor-actions .button { min-height: 34px; flex: 1; padding: 0 8px; font-size: 10px; }
.editor-actions .button-primary { color: #fff; }
.editor-actions .button:disabled { opacity: .6; cursor: wait; }
.permission-note { display: flex; justify-content: center; gap: 5px; margin-top: 10px; color: #a0a0ad; font-size: 8px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0 40px; padding: 17px 24px; border: 1px solid #ececf2; border-radius: 11px; background: #ffffffb8; }
.benefits > div { display: flex; justify-content: center; align-items: center; gap: 10px; }
.benefit-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.benefit-icon.purple { color: #7866e4; background: #f2efff; }
.benefit-icon.green { color: #31a77d; background: #eaf8f1; }
.benefit-icon.orange { color: #e39448; background: #fff4e7; }
.benefits > div > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.benefits strong { color: #505064; font-size: 10px; font-weight: 600; }
.benefits small { color: #9999a7; font-size: 9px; }
.guide { display: grid; grid-template-columns: .8fr 2fr; gap: 35px; align-items: start; padding: 0 8px 45px; }
.guide h2 { margin-top: 7px; font-size: 19px; }
.guide ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.guide li { display: flex; gap: 10px; align-items: flex-start; }
.guide li > span { color: #8b7ee8; font: 700 11px 'Manrope', sans-serif; }
.guide li div { display: flex; flex-direction: column; gap: 4px; }
.guide li strong { color: #555568; font-size: 10px; font-weight: 600; }
.guide li small { color: #9999a7; font-size: 9px; line-height: 1.5; }
.site-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e8e8ef; color: #a0a0ad; font-size: 9px; }
.toast { position: fixed; z-index: 3; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 16px; transform: translateX(-50%); border: 1px solid #f1d2d3; border-radius: 9px; color: #973b42; background: #fff5f5; box-shadow: 0 10px 30px #29283e18; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 32px, 560px); }
  .topbar { height: 68px; }
  .topbar-right { gap: 12px; }
  .browser-note { font-size: 10px; }
  .help-link { display: none; }
  .intro { padding: 39px 0 25px; }
  h1 { letter-spacing: -1.4px; }
  .intro p { font-size: 12px; }
  .workspace { grid-template-columns: 1fr; }
  .preview-stage, .preview-stage video { min-height: clamp(210px, 58vw, 330px); }
  .control-card { padding: 19px; }
  .benefits { margin: 14px 0 32px; padding: 15px 10px; gap: 8px; }
  .benefits > div { justify-content: flex-start; gap: 7px; }
  .benefit-icon { width: 25px; height: 25px; flex: 0 0 25px; }
  .benefits small { font-size: 8px; }
  .guide { grid-template-columns: 1fr; gap: 18px; padding: 0 2px 32px; }
  .guide ol { gap: 7px; }
  .guide li { gap: 6px; }
  .guide li strong { font-size: 9px; }
}

@media (max-width: 420px) {
  .app-shell { width: calc(100% - 24px); }
  .browser-note { font-size: 9px; }
  .guide ol { grid-template-columns: 1fr; gap: 12px; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .benefits > div { justify-content: center; }
}