/* Webcam workspace only; shared fixed partials own hero, article and shell. */
.tn-webcam-page { width: 100%; max-width: 1180px; margin: 0 auto; }
.tn-webcam-page .tn-webcam-ad { width: 100%; max-width: 900px; min-height: 90px; margin: 20px auto; background: transparent; border: 0; box-shadow: none; }
.tn-webcam-page .tn-webcam-tool {
  --webcam-paper: #faf6ee;
  --webcam-wash: #f5efdf;
  --webcam-surface: #fffdf7;
  --webcam-ink: #1a1208;
  --webcam-muted: #5a4a30;
  --webcam-line: #b8a888;
  --webcam-soft: #ddd4be;
  --webcam-accent: #c44a00;
  --webcam-primary: #1a1208;
  --webcam-primary-hover: #823200;
  --webcam-primary-text: #faf6ee;
  --webcam-secondary: #ede6d4;
  --webcam-secondary-hover: #dfd4bb;
  --webcam-secondary-text: #1a1208;
  --webcam-error: #8a2b15;
  --webcam-scheme: light;
  --webcam-number: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
  --webcam-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 1px solid var(--webcam-line) !important;
  border-top: 3px double var(--webcam-line) !important;
  border-radius: 0 !important;
  background: var(--webcam-paper) !important;
  color: var(--webcam-ink) !important;
  -webkit-text-fill-color: var(--webcam-ink) !important;
  font: 14px/1.6 var(--webcam-number) !important;
  color-scheme: var(--webcam-scheme);
  box-shadow: none !important;
  overflow-wrap: anywhere;
}
.tn-webcam-page .tn-webcam-tool,
.tn-webcam-page .tn-webcam-tool *,
.tn-webcam-page .tn-webcam-tool *::before,
.tn-webcam-page .tn-webcam-tool *::after { box-sizing: border-box !important; min-width: 0; }
.tn-webcam-page #tnWebcamTool [hidden] { display: none !important; }
.tn-webcam-page .tn-webcam-tool :is(p,dl,dt,dd) { margin: 0 !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-workspace { display: grid !important; grid-template-columns: 275px minmax(0,1fr) !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-controls { display: grid !important; align-content: start; gap: 14px; padding: 20px; border-right: 1px solid var(--webcam-line); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-field { display: grid; gap: 5px; border: 0; background: none; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-field label { padding: 0; margin: 0; color: var(--webcam-ink); font-size: 13px; font-weight: 700; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-select { position: relative; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-select::after { content: ''; position: absolute; right: 14px; top: 13px; width: 7px; height: 7px; border-right: 1px solid var(--webcam-ink); border-bottom: 1px solid var(--webcam-ink); transform: rotate(45deg); pointer-events: none; }
.tn-webcam-page .tn-webcam-tool select { appearance: none; width: 100% !important; max-width: 100%; height: 38px !important; padding: 0 32px 0 10px !important; margin: 0 !important; border: 1px solid var(--webcam-line) !important; border-radius: 0 !important; background: var(--webcam-wash) !important; color: var(--webcam-ink) !important; -webkit-text-fill-color: var(--webcam-ink) !important; font: 600 13px var(--webcam-number) !important; cursor: pointer; text-overflow: ellipsis; box-shadow: none !important; }
.tn-webcam-page .tn-webcam-tool select:disabled { cursor: not-allowed; opacity: 1; color: var(--webcam-muted) !important; -webkit-text-fill-color: var(--webcam-muted) !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-mirror { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0; margin: 0; font: 600 13px/1.5 var(--webcam-number); cursor: pointer; }
.tn-webcam-page .tn-webcam-tool #tnWebcamMirror { appearance: auto !important; display: inline-block !important; position: static !important; flex: 0 0 18px; width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; opacity: 1 !important; clip: auto !important; accent-color: var(--webcam-accent); cursor: pointer; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-mirror + .tn-webcam-hint { margin-top: -12px !important; padding-left: 27px; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-actions { display: flex !important; gap: 8px; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-actions button { flex: 1 1 0; }
.tn-webcam-page .tn-webcam-tool button { display: inline-grid !important; place-items: center !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 8px !important; border: 1px solid var(--webcam-line) !important; border-radius: 0 !important; background: var(--webcam-secondary) !important; color: var(--webcam-secondary-text) !important; -webkit-text-fill-color: var(--webcam-secondary-text) !important; font: 700 13px/1 var(--webcam-mono) !important; text-decoration: none !important; text-align: center; text-transform: none !important; letter-spacing: normal !important; white-space: nowrap; box-shadow: none !important; cursor: pointer; outline: none; }
.tn-webcam-page .tn-webcam-tool button:hover:not(:disabled),
.tn-webcam-page .tn-webcam-tool button:focus-visible:not(:disabled) { background: var(--webcam-secondary-hover) !important; }
.tn-webcam-page .tn-webcam-tool button.tn-webcam-primary { background: var(--webcam-primary) !important; color: var(--webcam-primary-text) !important; -webkit-text-fill-color: var(--webcam-primary-text) !important; border-color: var(--webcam-primary) !important; }
.tn-webcam-page .tn-webcam-tool button.tn-webcam-primary:hover:not(:disabled),
.tn-webcam-page .tn-webcam-tool button.tn-webcam-primary:focus-visible:not(:disabled) { background: var(--webcam-primary-hover) !important; }
.tn-webcam-page .tn-webcam-tool button:disabled { opacity: 1 !important; color: var(--webcam-muted) !important; -webkit-text-fill-color: var(--webcam-muted) !important; background: var(--webcam-wash) !important; border-color: var(--webcam-soft) !important; cursor: not-allowed; }
.tn-webcam-page .tn-webcam-tool :is(button,a,select,input):focus-visible { outline: 2px solid var(--webcam-accent) !important; outline-offset: 2px !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-hint { color: var(--webcam-muted) !important; -webkit-text-fill-color: var(--webcam-muted) !important; font: 400 12px/1.65 var(--webcam-number) !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-mic-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; margin-top: 2px; padding: 12px 0 0; border-top: 1px solid var(--webcam-soft); color: var(--webcam-ink) !important; -webkit-text-fill-color: var(--webcam-ink) !important; font: 700 13px/1.7 var(--webcam-number); text-decoration: underline !important; text-underline-offset: 3px; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-mic-link:hover { color: var(--webcam-accent) !important; -webkit-text-fill-color: var(--webcam-accent) !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-monitor { display: grid; align-content: start; gap: 12px; padding: 20px 24px; background: var(--webcam-surface); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-monitor-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-label { font-size: 12px; font-weight: 600; color: var(--webcam-muted); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-signal { font-size: 12px; font-weight: 700; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-signal::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border: 1px solid var(--webcam-muted); vertical-align: 1px; }
.tn-webcam-page .tn-webcam-tool[data-state="live"] .tn-webcam-signal::before { background: var(--webcam-accent); border-color: var(--webcam-accent); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--webcam-line); background: var(--webcam-wash); }
.tn-webcam-page .tn-webcam-tool #tnWebcamVideo { display: block; position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100% !important; margin: 0 !important; object-fit: contain !important; object-position: center; background: var(--webcam-wash); opacity: 0; }
.tn-webcam-page .tn-webcam-tool[data-state="live"] #tnWebcamVideo { opacity: 1; }
.tn-webcam-page .tn-webcam-tool[data-mirror="true"] #tnWebcamVideo { transform: scaleX(-1); }
.tn-webcam-page .tn-webcam-tool[data-mirror="false"] #tnWebcamVideo { transform: none; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 16px 24px; text-align: center; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-camera-icon { display: block; flex: 0 0 auto; width: 48px; height: 48px; color: var(--webcam-muted); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder strong { font-size: 14px; font-weight: 700; line-height: 1.5; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder p { max-width: 340px; font-size: 12px; line-height: 1.6; color: var(--webcam-muted); -webkit-text-fill-color: var(--webcam-muted); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-readings { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-readings dt { font-size: 11px; color: var(--webcam-muted); -webkit-text-fill-color: var(--webcam-muted); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-readings dd { margin-top: 3px !important; font-size: 13px; line-height: 1.5; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-readings .tn-webcam-number { font: 800 22px/1.3 var(--webcam-number) !important; font-variant-numeric: lining-nums tabular-nums !important; letter-spacing: normal !important; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-device-reading { grid-column: 1/-1; padding-top: 10px; border-top: 1px solid var(--webcam-soft); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-feedback { display: grid; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--webcam-line); background: var(--webcam-wash); font-size: 13px; }
.tn-webcam-page .tn-webcam-tool #tnWebcamError { color: var(--webcam-error) !important; -webkit-text-fill-color: var(--webcam-error) !important; font-weight: 600; }
.tn-webcam-page .tn-webcam-tool .tn-webcam-list-warning { color: var(--webcam-muted) !important; -webkit-text-fill-color: var(--webcam-muted) !important; padding-top: 6px; border-top: 1px solid var(--webcam-soft); }
.tn-webcam-page .tn-webcam-tool .tn-webcam-privacy { padding: 12px 20px !important; border-top: 1px solid var(--webcam-soft); color: var(--webcam-muted) !important; -webkit-text-fill-color: var(--webcam-muted) !important; font-size: 12px; line-height: 1.75; }
body:is([data-scheme="dark"],[data-scheme="inverse"],[data-scheme="auto"][data-d="dark"],[data-scheme="auto"][data-l="dark"]) .tn-webcam-page .tn-webcam-tool,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-webcam-page .tn-webcam-tool {
  --webcam-paper: #241d12; --webcam-wash: #2c2517; --webcam-surface: #322a1a; --webcam-ink: #f7ead1; --webcam-muted: #c3b492; --webcam-line: #6f6047; --webcam-soft: #574a37; --webcam-accent: #e8823f; --webcam-primary: #6a3b1f; --webcam-primary-hover: #824826; --webcam-primary-text: #f7ead1; --webcam-secondary: #2f2115; --webcam-secondary-hover: #3a2a1b; --webcam-secondary-text: #f7ead1; --webcam-error: #f0b18a; --webcam-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  body[data-scheme="auto"] .tn-webcam-page .tn-webcam-tool {
    --webcam-paper: #241d12; --webcam-wash: #2c2517; --webcam-surface: #322a1a; --webcam-ink: #f7ead1; --webcam-muted: #c3b492; --webcam-line: #6f6047; --webcam-soft: #574a37; --webcam-accent: #e8823f; --webcam-primary: #6a3b1f; --webcam-primary-hover: #824826; --webcam-primary-text: #f7ead1; --webcam-secondary: #2f2115; --webcam-secondary-hover: #3a2a1b; --webcam-secondary-text: #f7ead1; --webcam-error: #f0b18a; --webcam-scheme: dark;
  }
}
@media (max-width: 760px) {
  .tn-webcam-page .tn-webcam-tool { width: calc(100% - 10px) !important; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-workspace { grid-template-columns: minmax(0,1fr) !important; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-controls { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; gap: 10px 12px; border-right: 0; border-bottom: 1px solid var(--webcam-line); }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-field { align-content: start; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-mirror { grid-column: 1/-1; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-mirror + .tn-webcam-hint { grid-column: 1/-1; margin-top: -10px !important; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-actions { grid-column: 1/-1; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-actions + .tn-webcam-hint,
  .tn-webcam-page .tn-webcam-tool .tn-webcam-mic-link { grid-column: 1/-1; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-monitor { padding: 14px; gap: 10px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder { gap: 5px; padding: 10px 12px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-camera-icon { width: 32px; height: 32px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder strong { font-size: 13px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-placeholder p { font-size: 11px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-readings .tn-webcam-number { font-size: 19px !important; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-feedback { padding: 12px 14px; }
  .tn-webcam-page .tn-webcam-tool .tn-webcam-privacy { padding: 12px 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-webcam-page .tn-webcam-tool * { transition: none !important; animation: none !important; }
}
